1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for amanda 3.3.9.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='amanda'
589PACKAGE_TARNAME='amanda'
590PACKAGE_VERSION='3.3.9'
591PACKAGE_STRING='amanda 3.3.9'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="common-src/amanda.h"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632gl_use_threads_default=
633ac_header_list=
634ac_func_list=
635gl_getopt_required=POSIX
636gl_getopt_required=POSIX
637ac_subst_vars='gltests_LTLIBOBJS
638gltests_LIBOBJS
639gl_LTLIBOBJS
640gl_LIBOBJS
641am__EXEEXT_FALSE
642am__EXEEXT_TRUE
643LTLIBOBJS
644LIBOBJS
645WANT_NDMP_DEVICE_FALSE
646WANT_NDMP_DEVICE_TRUE
647WANT_DVDRW_DEVICE_FALSE
648WANT_DVDRW_DEVICE_TRUE
649WANT_TAPE_DEVICE_FALSE
650WANT_TAPE_DEVICE_TRUE
651WANT_S3_DEVICE_FALSE
652WANT_S3_DEVICE_TRUE
653LIBCURL
654LIBCURL_CPPFLAGS
655_libcurl_config
656READLINE_LIBS
657GLIB_COMPILE_RESOURCES
658PKG_CONFIG_LIBDIR
659PKG_CONFIG_PATH
660PKG_CONFIG
661GLIB_MKENUMS
662GOBJECT_QUERY
663GLIB_GENMARSHAL
664GLIB_LIBS
665GLIB_CFLAGS
666AMANDA_STATIC_LDFLAGS
667LIBTOOL_DEPS
668LT_SYS_LIBRARY_PATH
669OTOOL64
670OTOOL
671LIPO
672NMEDIT
673DSYMUTIL
674MANIFEST_TOOL
675ac_ct_AR
676DLLTOOL
677OBJDUMP
678LN_S
679NM
680ac_ct_DUMPBIN
681DUMPBIN
682LD
683FGREP
684SED
685LIBTOOL
686AMANDA_SWIG_PERL_CFLAGS
687SSE42_CFLAGS
688GCC_COMPILER_FALSE
689GCC_COMPILER_TRUE
690NETCAT
691NC6
692NC
693RPCGEN
694PS_ARGUMENT_ARGS
695PS_ARGUMENT
696PS
697LPRFLAG
698LPR
699UNAME
700UMOUNT
701MOUNT
702MTX
703MT_FILE_FLAG
704MT
705DEFAULT_MAILER
706MAILER
707SORT
708BASH
709DD
710YFLAGS
711YACC
712LEXLIB
713LEX_OUTPUT_ROOT
714LEX
715AMLINTFLAGS
716AMLINT
717USE_RUNDUMP
718WANT_SAMBA_FALSE
719WANT_SAMBA_TRUE
720SAMBA_CLIENT
721SUNTAR
722BSDTAR
723STAR
724GNUTAR
725DUMP_RETURNS_1
726AIX_BACKUP
727RESTORE
728DUMP
729VRESTORE
730VDUMP
731VXRESTORE
732VXDUMP
733XFSRESTORE
734XFSDUMP
735AM_READLINK
736READLINK
737REALPATH
738KRB5_SECURITY
739WANT_KRB5_SECURITY_FALSE
740WANT_KRB5_SECURITY_TRUE
741SSH_SECURITY
742WANT_SSH_SECURITY_FALSE
743WANT_SSH_SECURITY_TRUE
744SSH
745RSH_SECURITY
746WANT_RSH_SECURITY_FALSE
747WANT_RSH_SECURITY_TRUE
748BSDUDP_SECURITY
749WANT_BSDUDP_SECURITY_FALSE
750WANT_BSDUDP_SECURITY_TRUE
751BSDTCP_SECURITY
752WANT_BSDTCP_SECURITY_FALSE
753WANT_BSDTCP_SECURITY_TRUE
754USE_AMANDAHOSTS
755BSD_SECURITY
756WANT_BSD_SECURITY_FALSE
757WANT_BSD_SECURITY_TRUE
758POSUB
759INTLLIBS
760LTLIBICONV
761LIBICONV
762INTL_MACOSX_LIBS
763MSGMERGE
764XGETTEXT_015
765XGETTEXT
766GMSGFMT_015
767MSGFMT_015
768GMSGFMT
769USE_NLS
770GETTEXT
771MSGFMT
772amdatadir
773APPLICATION_DIR
774amperldir
775amincludedir
776amlibexecdir
777amlibdir
778CLIENT_SCRIPTS_OPT
779HAVE_GZIP
780UNCOMPRESS_OPT
781UNCOMPRESS_PATH
782COMPRESS_BEST_OPT
783COMPRESS_FAST_OPT
784COMPRESS_SUFFIX
785COMPRESS_PATH
786CAT
787PERLEXTLIBS
788WANT_MANDATORY_THREAD_CHECK_FALSE
789WANT_MANDATORY_THREAD_CHECK_TRUE
790WANT_CYGWIN_COPY_PERL_DLL_FALSE
791WANT_CYGWIN_COPY_PERL_DLL_TRUE
792PERL_INC
793PERL
794SWIG_LIB
795SWIG
796LOCKING
797WANT_AMFLOCK_LNLOCK_FALSE
798WANT_AMFLOCK_LNLOCK_TRUE
799WANT_AMFLOCK_LOCKF_FALSE
800WANT_AMFLOCK_LOCKF_TRUE
801WANT_AMFLOCK_FLOCK_FALSE
802WANT_AMFLOCK_FLOCK_TRUE
803WANT_AMFLOCK_POSIX_FALSE
804WANT_AMFLOCK_POSIX_TRUE
805GETCONF
806DEFAULT_SECURITY_FILE
807DEFAULT_AMANDATES_FILE
808EXAMPLE_TAPEDEV
809DEFAULT_TAPE_DEVICE
810DEFAULT_TAPE_SERVER
811DEFAULT_CONFIG
812DEFAULT_SERVER
813CONFIG_CLOBBER_MY_CONFIG
814DOC_BUILD_DATE
815XSLREL
816ENABLE_MANPAGE_BUILD_FALSE
817ENABLE_MANPAGE_BUILD_TRUE
818XSLTPROC
819XSLTPROC_FLAGS
820WANT_AMPLOT_FALSE
821WANT_AMPLOT_TRUE
822AMPLOT_CAT_PACK
823AMPLOT_CAT_COMPRESS
824AMPLOT_CAT_GZIP
825AMPLOT_COMPRESS
826GZIP
827COMPRESS
828PCAT
829GNUPLOT
830AMANDA_COMPONENTS
831WANT_TAPE_FALSE
832WANT_TAPE_TRUE
833WANT_NDMP_FALSE
834WANT_NDMP_TRUE
835WANT_RECOVER_FALSE
836WANT_RECOVER_TRUE
837WANT_SERVER_FALSE
838WANT_SERVER_TRUE
839WANT_RESTORE_FALSE
840WANT_RESTORE_TRUE
841WANT_CLIENT_FALSE
842WANT_CLIENT_TRUE
843SYNTAX_CHECKS_FALSE
844SYNTAX_CHECKS_TRUE
845WANT_INSTALLPERMS_FALSE
846WANT_INSTALLPERMS_TRUE
847WANT_SETUID_CLIENT_FALSE
848WANT_SETUID_CLIENT_TRUE
849SERVICE_SUFFIX
850AMANDA_DEBUG_DAYS
851AMANDA_DBGDIR
852ASSERTIONS
853LOW_TCPPORTRANGE
854TCPPORTRANGE
855UDPPORTRANGE
856BINARY_OWNER
857CHECK_USERID_FALSE
858CHECK_USERID_TRUE
859CHECK_USERID
860AMANDA_TMPDIR
861GNUTAR_LISTED_INCREMENTAL_DIR
862CONFIG_DIR
863SETUID_GROUP
864CLIENT_LOGIN
865AS_NEEDED_FLAGS
866WANT_AS_NEEDED_FALSE
867WANT_AS_NEEDED_TRUE
868AMANDA_WARNING_CFLAGS
869gltests_WITNESS
870REPLACE_TOWLOWER
871REPLACE_ISWCNTRL
872HAVE_WCTYPE_H
873NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
874NEXT_WCTYPE_H
875HAVE_ISWCNTRL
876REPLACE_ISWBLANK
877HAVE_WCTRANS_T
878HAVE_WCTYPE_T
879HAVE_ISWBLANK
880GNULIB_TOWCTRANS
881GNULIB_WCTRANS
882GNULIB_ISWCTYPE
883GNULIB_WCTYPE
884GNULIB_ISWBLANK
885HAVE_WINT_T
886NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
887NEXT_WCHAR_H
888HAVE_UNISTD_H
889NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
890NEXT_UNISTD_H
891PTHREAD_H_DEFINES_STRUCT_TIMESPEC
892SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
893TIME_H_DEFINES_STRUCT_TIMESPEC
894NEXT_AS_FIRST_DIRECTIVE_TIME_H
895NEXT_TIME_H
896REPLACE_TIMEGM
897REPLACE_NANOSLEEP
898REPLACE_MKTIME
899REPLACE_LOCALTIME_R
900HAVE_TIMEGM
901HAVE_STRPTIME
902HAVE_NANOSLEEP
903HAVE_DECL_LOCALTIME_R
904GNULIB_TIME_R
905GNULIB_TIMEGM
906GNULIB_STRPTIME
907GNULIB_NANOSLEEP
908GNULIB_MKTIME
909HAVE_SYS_UIO_H
910NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
911NEXT_SYS_UIO_H
912NEXT_AS_FIRST_DIRECTIVE_STRING_H
913NEXT_STRING_H
914NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
915NEXT_STDLIB_H
916NEXT_AS_FIRST_DIRECTIVE_STDIO_H
917NEXT_STDIO_H
918GL_GENERATE_STDINT_H_FALSE
919GL_GENERATE_STDINT_H_TRUE
920STDINT_H
921WINT_T_SUFFIX
922WCHAR_T_SUFFIX
923SIG_ATOMIC_T_SUFFIX
924SIZE_T_SUFFIX
925PTRDIFF_T_SUFFIX
926HAVE_SIGNED_WINT_T
927HAVE_SIGNED_WCHAR_T
928HAVE_SIGNED_SIG_ATOMIC_T
929BITSIZEOF_WINT_T
930BITSIZEOF_WCHAR_T
931BITSIZEOF_SIG_ATOMIC_T
932BITSIZEOF_SIZE_T
933BITSIZEOF_PTRDIFF_T
934HAVE_SYS_BITYPES_H
935HAVE_SYS_INTTYPES_H
936HAVE_STDINT_H
937NEXT_AS_FIRST_DIRECTIVE_STDINT_H
938NEXT_STDINT_H
939HAVE_SYS_TYPES_H
940HAVE_INTTYPES_H
941HAVE_WCHAR_H
942HAVE_UNSIGNED_LONG_LONG_INT
943HAVE_LONG_LONG_INT
944HAVE__BOOL
945GL_GENERATE_STDBOOL_H_FALSE
946GL_GENERATE_STDBOOL_H_TRUE
947STDBOOL_H
948GL_GENERATE_STDALIGN_H_FALSE
949GL_GENERATE_STDALIGN_H_TRUE
950STDALIGN_H
951LIBSOCKET
952NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
953NEXT_SIGNAL_H
954REPLACE_RAISE
955REPLACE_PTHREAD_SIGMASK
956HAVE_SIGHANDLER_T
957HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
958HAVE_STRUCT_SIGACTION_SA_SIGACTION
959HAVE_SIGACTION
960HAVE_SIGINFO_T
961HAVE_SIGSET_T
962HAVE_RAISE
963HAVE_PTHREAD_SIGMASK
964HAVE_POSIX_SIGNALBLOCKING
965GNULIB_SIGACTION
966GNULIB_SIGPROCMASK
967GNULIB_SIGNAL_H_SIGPIPE
968GNULIB_RAISE
969GNULIB_PTHREAD_SIGMASK
970GL_GENERATE_NETINET_IN_H_FALSE
971GL_GENERATE_NETINET_IN_H_TRUE
972NETINET_IN_H
973HAVE_NETINET_IN_H
974NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
975NEXT_NETINET_IN_H
976APPLE_UNIVERSAL_BUILD
977UNDEFINE_STRTOK_R
978REPLACE_STRTOK_R
979REPLACE_STRSIGNAL
980REPLACE_STRNLEN
981REPLACE_STRNDUP
982REPLACE_STRNCAT
983REPLACE_STRERROR_R
984REPLACE_STRERROR
985REPLACE_STRCHRNUL
986REPLACE_STRCASESTR
987REPLACE_STRSTR
988REPLACE_STRDUP
989REPLACE_STPNCPY
990REPLACE_MEMMEM
991REPLACE_MEMCHR
992HAVE_STRVERSCMP
993HAVE_DECL_STRSIGNAL
994HAVE_DECL_STRERROR_R
995HAVE_DECL_STRTOK_R
996HAVE_STRCASESTR
997HAVE_STRSEP
998HAVE_STRPBRK
999HAVE_DECL_STRNLEN
1000HAVE_DECL_STRNDUP
1001HAVE_DECL_STRDUP
1002HAVE_STRCHRNUL
1003HAVE_STPNCPY
1004HAVE_STPCPY
1005HAVE_RAWMEMCHR
1006HAVE_DECL_MEMRCHR
1007HAVE_MEMPCPY
1008HAVE_DECL_MEMMEM
1009HAVE_MEMCHR
1010HAVE_FFSLL
1011HAVE_FFSL
1012HAVE_MBSLEN
1013GNULIB_STRVERSCMP
1014GNULIB_STRSIGNAL
1015GNULIB_STRERROR_R
1016GNULIB_STRERROR
1017GNULIB_MBSTOK_R
1018GNULIB_MBSSEP
1019GNULIB_MBSSPN
1020GNULIB_MBSPBRK
1021GNULIB_MBSCSPN
1022GNULIB_MBSCASESTR
1023GNULIB_MBSPCASECMP
1024GNULIB_MBSNCASECMP
1025GNULIB_MBSCASECMP
1026GNULIB_MBSSTR
1027GNULIB_MBSRCHR
1028GNULIB_MBSCHR
1029GNULIB_MBSNLEN
1030GNULIB_MBSLEN
1031GNULIB_STRTOK_R
1032GNULIB_STRCASESTR
1033GNULIB_STRSTR
1034GNULIB_STRSEP
1035GNULIB_STRPBRK
1036GNULIB_STRNLEN
1037GNULIB_STRNDUP
1038GNULIB_STRNCAT
1039GNULIB_STRDUP
1040GNULIB_STRCHRNUL
1041GNULIB_STPNCPY
1042GNULIB_STPCPY
1043GNULIB_RAWMEMCHR
1044GNULIB_MEMRCHR
1045GNULIB_MEMPCPY
1046GNULIB_MEMMEM
1047GNULIB_MEMCHR
1048GNULIB_FFSLL
1049GNULIB_FFSL
1050LOCALE_FR_UTF8
1051LOCALE_ZH_CN
1052LOCALE_JA
1053REPLACE_WCTOMB
1054REPLACE_UNSETENV
1055REPLACE_STRTOD
1056REPLACE_SETENV
1057REPLACE_REALPATH
1058REPLACE_REALLOC
1059REPLACE_RANDOM_R
1060REPLACE_PUTENV
1061REPLACE_PTSNAME_R
1062REPLACE_PTSNAME
1063REPLACE_MKSTEMP
1064REPLACE_MBTOWC
1065REPLACE_MALLOC
1066REPLACE_CANONICALIZE_FILE_NAME
1067REPLACE_CALLOC
1068HAVE_DECL_UNSETENV
1069HAVE_UNLOCKPT
1070HAVE_SYS_LOADAVG_H
1071HAVE_STRUCT_RANDOM_DATA
1072HAVE_STRTOULL
1073HAVE_STRTOLL
1074HAVE_STRTOD
1075HAVE_DECL_SETENV
1076HAVE_SETENV
1077HAVE_SECURE_GETENV
1078HAVE_RPMATCH
1079HAVE_REALPATH
1080HAVE_RANDOM_R
1081HAVE_RANDOM_H
1082HAVE_RANDOM
1083HAVE_PTSNAME_R
1084HAVE_PTSNAME
1085HAVE_POSIX_OPENPT
1086HAVE_MKSTEMPS
1087HAVE_MKSTEMP
1088HAVE_MKOSTEMPS
1089HAVE_MKOSTEMP
1090HAVE_MKDTEMP
1091HAVE_GRANTPT
1092HAVE_GETSUBOPT
1093HAVE_DECL_GETLOADAVG
1094HAVE_CANONICALIZE_FILE_NAME
1095HAVE_ATOLL
1096HAVE__EXIT
1097GNULIB_WCTOMB
1098GNULIB_UNSETENV
1099GNULIB_UNLOCKPT
1100GNULIB_SYSTEM_POSIX
1101GNULIB_STRTOULL
1102GNULIB_STRTOLL
1103GNULIB_STRTOD
1104GNULIB_SETENV
1105GNULIB_SECURE_GETENV
1106GNULIB_RPMATCH
1107GNULIB_REALPATH
1108GNULIB_REALLOC_POSIX
1109GNULIB_RANDOM_R
1110GNULIB_RANDOM
1111GNULIB_PUTENV
1112GNULIB_PTSNAME_R
1113GNULIB_PTSNAME
1114GNULIB_POSIX_OPENPT
1115GNULIB_MKSTEMPS
1116GNULIB_MKSTEMP
1117GNULIB_MKOSTEMPS
1118GNULIB_MKOSTEMP
1119GNULIB_MKDTEMP
1120GNULIB_MBTOWC
1121GNULIB_MALLOC_POSIX
1122GNULIB_GRANTPT
1123GNULIB_GETSUBOPT
1124GNULIB_GETLOADAVG
1125GNULIB_CANONICALIZE_FILE_NAME
1126GNULIB_CALLOC_POSIX
1127GNULIB_ATOLL
1128GNULIB__EXIT
1129LTLIBMULTITHREAD
1130LIBMULTITHREAD
1131LTLIBTHREAD
1132LIBTHREAD
1133LTLIBPTH
1134LIBPTH
1135NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1136NEXT_LOCALE_H
1137HAVE_XLOCALE_H
1138NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1139NEXT_STDDEF_H
1140GL_GENERATE_STDDEF_H_FALSE
1141GL_GENERATE_STDDEF_H_TRUE
1142STDDEF_H
1143HAVE_WCHAR_T
1144REPLACE_NULL
1145REPLACE_STRUCT_LCONV
1146REPLACE_DUPLOCALE
1147REPLACE_SETLOCALE
1148REPLACE_LOCALECONV
1149HAVE_DUPLOCALE
1150GNULIB_DUPLOCALE
1151GNULIB_SETLOCALE
1152GNULIB_LOCALECONV
1153LOCALCHARSET_TESTS_ENVIRONMENT
1154GLIBC21
1155HAVE_LANGINFO_YESEXPR
1156HAVE_LANGINFO_ERA
1157HAVE_LANGINFO_T_FMT_AMPM
1158HAVE_LANGINFO_CODESET
1159HAVE_LANGINFO_H
1160NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1161NEXT_LANGINFO_H
1162REPLACE_NL_LANGINFO
1163HAVE_NL_LANGINFO
1164GNULIB_NL_LANGINFO
1165INET_PTON_LIB
1166NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1167NEXT_SYS_TIME_H
1168REPLACE_STRUCT_TIMEVAL
1169REPLACE_GETTIMEOFDAY
1170HAVE_SYS_TIME_H
1171HAVE_STRUCT_TIMEVAL
1172HAVE_GETTIMEOFDAY
1173GNULIB_GETTIMEOFDAY
1174LTLIBINTL
1175LIBINTL
1176GNULIB_GL_UNISTD_H_GETOPT
1177GETOPT_H
1178HAVE_GETOPT_H
1179NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1180NEXT_GETOPT_H
1181GETADDRINFO_LIB
1182INET_NTOP_LIB
1183SERVENT_LIB
1184HOSTENT_LIB
1185HAVE_NETDB_H
1186NEXT_AS_FIRST_DIRECTIVE_NETDB_H
1187NEXT_NETDB_H
1188REPLACE_GAI_STRERROR
1189HAVE_DECL_GETNAMEINFO
1190HAVE_DECL_GETADDRINFO
1191HAVE_DECL_GAI_STRERROR
1192HAVE_DECL_FREEADDRINFO
1193HAVE_STRUCT_ADDRINFO
1194GNULIB_GETADDRINFO
1195HAVE_WINSOCK2_H
1196HAVE_WS2TCPIP_H
1197HAVE_SYS_SOCKET_H
1198NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1199NEXT_SYS_SOCKET_H
1200HAVE_ACCEPT4
1201HAVE_SA_FAMILY_T
1202HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
1203HAVE_STRUCT_SOCKADDR_STORAGE
1204GNULIB_ACCEPT4
1205GNULIB_SHUTDOWN
1206GNULIB_SETSOCKOPT
1207GNULIB_SENDTO
1208GNULIB_RECVFROM
1209GNULIB_SEND
1210GNULIB_RECV
1211GNULIB_LISTEN
1212GNULIB_GETSOCKOPT
1213GNULIB_GETSOCKNAME
1214GNULIB_GETPEERNAME
1215GNULIB_BIND
1216GNULIB_ACCEPT
1217GNULIB_CONNECT
1218GNULIB_SOCKET
1219WINDOWS_64_BIT_ST_SIZE
1220NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1221NEXT_SYS_STAT_H
1222HAVE_MSVC_INVALID_PARAMETER_HANDLER
1223REPLACE_UTIMENSAT
1224REPLACE_STAT
1225REPLACE_MKNOD
1226REPLACE_MKFIFO
1227REPLACE_MKDIR
1228REPLACE_LSTAT
1229REPLACE_FUTIMENS
1230REPLACE_FSTATAT
1231REPLACE_FSTAT
1232HAVE_UTIMENSAT
1233HAVE_MKNODAT
1234HAVE_MKNOD
1235HAVE_MKFIFOAT
1236HAVE_MKFIFO
1237HAVE_MKDIRAT
1238HAVE_LSTAT
1239HAVE_LCHMOD
1240HAVE_FUTIMENS
1241HAVE_FSTATAT
1242HAVE_FCHMODAT
1243GNULIB_UTIMENSAT
1244GNULIB_STAT
1245GNULIB_MKNODAT
1246GNULIB_MKNOD
1247GNULIB_MKFIFOAT
1248GNULIB_MKFIFO
1249GNULIB_MKDIRAT
1250GNULIB_LSTAT
1251GNULIB_LCHMOD
1252GNULIB_FUTIMENS
1253GNULIB_FSTATAT
1254GNULIB_FSTAT
1255GNULIB_FCHMODAT
1256WINDOWS_64_BIT_OFF_T
1257NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
1258NEXT_SYS_TYPES_H
1259REPLACE_VSPRINTF
1260REPLACE_VSNPRINTF
1261REPLACE_VPRINTF
1262REPLACE_VFPRINTF
1263REPLACE_VDPRINTF
1264REPLACE_VASPRINTF
1265REPLACE_TMPFILE
1266REPLACE_STDIO_WRITE_FUNCS
1267REPLACE_STDIO_READ_FUNCS
1268REPLACE_SPRINTF
1269REPLACE_SNPRINTF
1270REPLACE_RENAMEAT
1271REPLACE_RENAME
1272REPLACE_REMOVE
1273REPLACE_PRINTF
1274REPLACE_POPEN
1275REPLACE_PERROR
1276REPLACE_OBSTACK_PRINTF
1277REPLACE_GETLINE
1278REPLACE_GETDELIM
1279REPLACE_FTELLO
1280REPLACE_FTELL
1281REPLACE_FSEEKO
1282REPLACE_FSEEK
1283REPLACE_FREOPEN
1284REPLACE_FPURGE
1285REPLACE_FPRINTF
1286REPLACE_FOPEN
1287REPLACE_FFLUSH
1288REPLACE_FDOPEN
1289REPLACE_FCLOSE
1290REPLACE_DPRINTF
1291HAVE_VDPRINTF
1292HAVE_VASPRINTF
1293HAVE_RENAMEAT
1294HAVE_POPEN
1295HAVE_PCLOSE
1296HAVE_FTELLO
1297HAVE_FSEEKO
1298HAVE_DPRINTF
1299HAVE_DECL_VSNPRINTF
1300HAVE_DECL_SNPRINTF
1301HAVE_DECL_OBSTACK_PRINTF
1302HAVE_DECL_GETLINE
1303HAVE_DECL_GETDELIM
1304HAVE_DECL_FTELLO
1305HAVE_DECL_FSEEKO
1306HAVE_DECL_FPURGE
1307GNULIB_VSPRINTF_POSIX
1308GNULIB_VSNPRINTF
1309GNULIB_VPRINTF_POSIX
1310GNULIB_VPRINTF
1311GNULIB_VFPRINTF_POSIX
1312GNULIB_VFPRINTF
1313GNULIB_VDPRINTF
1314GNULIB_VSCANF
1315GNULIB_VFSCANF
1316GNULIB_VASPRINTF
1317GNULIB_TMPFILE
1318GNULIB_STDIO_H_SIGPIPE
1319GNULIB_STDIO_H_NONBLOCKING
1320GNULIB_SPRINTF_POSIX
1321GNULIB_SNPRINTF
1322GNULIB_SCANF
1323GNULIB_RENAMEAT
1324GNULIB_RENAME
1325GNULIB_REMOVE
1326GNULIB_PUTS
1327GNULIB_PUTCHAR
1328GNULIB_PUTC
1329GNULIB_PRINTF_POSIX
1330GNULIB_PRINTF
1331GNULIB_POPEN
1332GNULIB_PERROR
1333GNULIB_PCLOSE
1334GNULIB_OBSTACK_PRINTF_POSIX
1335GNULIB_OBSTACK_PRINTF
1336GNULIB_GETLINE
1337GNULIB_GETDELIM
1338GNULIB_GETCHAR
1339GNULIB_GETC
1340GNULIB_FWRITE
1341GNULIB_FTELLO
1342GNULIB_FTELL
1343GNULIB_FSEEKO
1344GNULIB_FSEEK
1345GNULIB_FSCANF
1346GNULIB_FREOPEN
1347GNULIB_FREAD
1348GNULIB_FPUTS
1349GNULIB_FPUTC
1350GNULIB_FPURGE
1351GNULIB_FPRINTF_POSIX
1352GNULIB_FPRINTF
1353GNULIB_FOPEN
1354GNULIB_FGETS
1355GNULIB_FGETC
1356GNULIB_FFLUSH
1357GNULIB_FDOPEN
1358GNULIB_FCLOSE
1359GNULIB_DPRINTF
1360REPLACE_ITOLD
1361GL_GENERATE_FLOAT_H_FALSE
1362GL_GENERATE_FLOAT_H_TRUE
1363FLOAT_H
1364NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1365NEXT_FLOAT_H
1366NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1367NEXT_FCNTL_H
1368REPLACE_OPENAT
1369REPLACE_OPEN
1370REPLACE_FCNTL
1371HAVE_OPENAT
1372HAVE_FCNTL
1373GNULIB_OPENAT
1374GNULIB_OPEN
1375GNULIB_NONBLOCKING
1376GNULIB_FCNTL
1377LIB_EACCESS
1378EOVERFLOW_VALUE
1379EOVERFLOW_HIDDEN
1380ENOLINK_VALUE
1381ENOLINK_HIDDEN
1382EMULTIHOP_VALUE
1383EMULTIHOP_HIDDEN
1384GL_GENERATE_ERRNO_H_FALSE
1385GL_GENERATE_ERRNO_H_TRUE
1386ERRNO_H
1387NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1388NEXT_ERRNO_H
1389UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1390UNISTD_H_HAVE_WINSOCK2_H
1391REPLACE_WRITE
1392REPLACE_USLEEP
1393REPLACE_UNLINKAT
1394REPLACE_UNLINK
1395REPLACE_TTYNAME_R
1396REPLACE_SYMLINK
1397REPLACE_SLEEP
1398REPLACE_RMDIR
1399REPLACE_READLINK
1400REPLACE_READ
1401REPLACE_PWRITE
1402REPLACE_PREAD
1403REPLACE_LSEEK
1404REPLACE_LINKAT
1405REPLACE_LINK
1406REPLACE_LCHOWN
1407REPLACE_ISATTY
1408REPLACE_GETPAGESIZE
1409REPLACE_GETGROUPS
1410REPLACE_GETLOGIN_R
1411REPLACE_GETDOMAINNAME
1412REPLACE_GETCWD
1413REPLACE_FTRUNCATE
1414REPLACE_FCHOWNAT
1415REPLACE_DUP2
1416REPLACE_DUP
1417REPLACE_CLOSE
1418REPLACE_CHOWN
1419HAVE_SYS_PARAM_H
1420HAVE_OS_H
1421HAVE_DECL_TTYNAME_R
1422HAVE_DECL_SETHOSTNAME
1423HAVE_DECL_GETUSERSHELL
1424HAVE_DECL_GETPAGESIZE
1425HAVE_DECL_GETLOGIN_R
1426HAVE_DECL_GETDOMAINNAME
1427HAVE_DECL_FDATASYNC
1428HAVE_DECL_FCHDIR
1429HAVE_DECL_ENVIRON
1430HAVE_USLEEP
1431HAVE_UNLINKAT
1432HAVE_SYMLINKAT
1433HAVE_SYMLINK
1434HAVE_SLEEP
1435HAVE_SETHOSTNAME
1436HAVE_READLINKAT
1437HAVE_READLINK
1438HAVE_PWRITE
1439HAVE_PREAD
1440HAVE_PIPE2
1441HAVE_PIPE
1442HAVE_LINKAT
1443HAVE_LINK
1444HAVE_LCHOWN
1445HAVE_GROUP_MEMBER
1446HAVE_GETPAGESIZE
1447HAVE_GETLOGIN
1448HAVE_GETHOSTNAME
1449HAVE_GETGROUPS
1450HAVE_GETDTABLESIZE
1451HAVE_FTRUNCATE
1452HAVE_FSYNC
1453HAVE_FDATASYNC
1454HAVE_FCHOWNAT
1455HAVE_FCHDIR
1456HAVE_FACCESSAT
1457HAVE_EUIDACCESS
1458HAVE_DUP3
1459HAVE_DUP2
1460HAVE_CHOWN
1461GNULIB_WRITE
1462GNULIB_USLEEP
1463GNULIB_UNLINKAT
1464GNULIB_UNLINK
1465GNULIB_UNISTD_H_SIGPIPE
1466GNULIB_UNISTD_H_NONBLOCKING
1467GNULIB_TTYNAME_R
1468GNULIB_SYMLINKAT
1469GNULIB_SYMLINK
1470GNULIB_SLEEP
1471GNULIB_SETHOSTNAME
1472GNULIB_RMDIR
1473GNULIB_READLINKAT
1474GNULIB_READLINK
1475GNULIB_READ
1476GNULIB_PWRITE
1477GNULIB_PREAD
1478GNULIB_PIPE2
1479GNULIB_PIPE
1480GNULIB_LSEEK
1481GNULIB_LINKAT
1482GNULIB_LINK
1483GNULIB_LCHOWN
1484GNULIB_ISATTY
1485GNULIB_GROUP_MEMBER
1486GNULIB_GETUSERSHELL
1487GNULIB_GETPAGESIZE
1488GNULIB_GETLOGIN_R
1489GNULIB_GETLOGIN
1490GNULIB_GETHOSTNAME
1491GNULIB_GETGROUPS
1492GNULIB_GETDTABLESIZE
1493GNULIB_GETDOMAINNAME
1494GNULIB_GETCWD
1495GNULIB_FTRUNCATE
1496GNULIB_FSYNC
1497GNULIB_FDATASYNC
1498GNULIB_FCHOWNAT
1499GNULIB_FCHDIR
1500GNULIB_FACCESSAT
1501GNULIB_EUIDACCESS
1502GNULIB_ENVIRON
1503GNULIB_DUP3
1504GNULIB_DUP2
1505GNULIB_DUP
1506GNULIB_CLOSE
1507GNULIB_CHOWN
1508GNULIB_CHDIR
1509pkglibexecdir
1510lispdir
1511LOCALE_FR
1512REPLACE_WCSWIDTH
1513REPLACE_WCWIDTH
1514REPLACE_WCSNRTOMBS
1515REPLACE_WCSRTOMBS
1516REPLACE_WCRTOMB
1517REPLACE_MBSNRTOWCS
1518REPLACE_MBSRTOWCS
1519REPLACE_MBRLEN
1520REPLACE_MBRTOWC
1521REPLACE_MBSINIT
1522REPLACE_WCTOB
1523REPLACE_BTOWC
1524REPLACE_MBSTATE_T
1525HAVE_DECL_WCWIDTH
1526HAVE_DECL_WCTOB
1527HAVE_WCSWIDTH
1528HAVE_WCSTOK
1529HAVE_WCSSTR
1530HAVE_WCSPBRK
1531HAVE_WCSSPN
1532HAVE_WCSCSPN
1533HAVE_WCSRCHR
1534HAVE_WCSCHR
1535HAVE_WCSDUP
1536HAVE_WCSXFRM
1537HAVE_WCSCOLL
1538HAVE_WCSNCASECMP
1539HAVE_WCSCASECMP
1540HAVE_WCSNCMP
1541HAVE_WCSCMP
1542HAVE_WCSNCAT
1543HAVE_WCSCAT
1544HAVE_WCPNCPY
1545HAVE_WCSNCPY
1546HAVE_WCPCPY
1547HAVE_WCSCPY
1548HAVE_WCSNLEN
1549HAVE_WCSLEN
1550HAVE_WMEMSET
1551HAVE_WMEMMOVE
1552HAVE_WMEMCPY
1553HAVE_WMEMCMP
1554HAVE_WMEMCHR
1555HAVE_WCSNRTOMBS
1556HAVE_WCSRTOMBS
1557HAVE_WCRTOMB
1558HAVE_MBSNRTOWCS
1559HAVE_MBSRTOWCS
1560HAVE_MBRLEN
1561HAVE_MBRTOWC
1562HAVE_MBSINIT
1563HAVE_BTOWC
1564GNULIB_WCSWIDTH
1565GNULIB_WCSTOK
1566GNULIB_WCSSTR
1567GNULIB_WCSPBRK
1568GNULIB_WCSSPN
1569GNULIB_WCSCSPN
1570GNULIB_WCSRCHR
1571GNULIB_WCSCHR
1572GNULIB_WCSDUP
1573GNULIB_WCSXFRM
1574GNULIB_WCSCOLL
1575GNULIB_WCSNCASECMP
1576GNULIB_WCSCASECMP
1577GNULIB_WCSNCMP
1578GNULIB_WCSCMP
1579GNULIB_WCSNCAT
1580GNULIB_WCSCAT
1581GNULIB_WCPNCPY
1582GNULIB_WCSNCPY
1583GNULIB_WCPCPY
1584GNULIB_WCSCPY
1585GNULIB_WCSNLEN
1586GNULIB_WCSLEN
1587GNULIB_WMEMSET
1588GNULIB_WMEMMOVE
1589GNULIB_WMEMCPY
1590GNULIB_WMEMCMP
1591GNULIB_WMEMCHR
1592GNULIB_WCWIDTH
1593GNULIB_WCSNRTOMBS
1594GNULIB_WCSRTOMBS
1595GNULIB_WCRTOMB
1596GNULIB_MBSNRTOWCS
1597GNULIB_MBSRTOWCS
1598GNULIB_MBRLEN
1599GNULIB_MBRTOWC
1600GNULIB_MBSINIT
1601GNULIB_WCTOB
1602GNULIB_BTOWC
1603HAVE_FEATURES_H
1604NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1605NEXT_ARPA_INET_H
1606PRAGMA_COLUMNS
1607PRAGMA_SYSTEM_HEADER
1608INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1609INCLUDE_NEXT
1610HAVE_ARPA_INET_H
1611REPLACE_INET_PTON
1612REPLACE_INET_NTOP
1613HAVE_DECL_INET_PTON
1614HAVE_DECL_INET_NTOP
1615GNULIB_INET_PTON
1616GNULIB_INET_NTOP
1617GL_GENERATE_ALLOCA_H_FALSE
1618GL_GENERATE_ALLOCA_H_TRUE
1619ALLOCA_H
1620ALLOCA
1621GL_COND_LIBTOOL_FALSE
1622GL_COND_LIBTOOL_TRUE
1623RANLIB
1624ARFLAGS
1625AR
1626EGREP
1627CPP
1628am__fastdepCC_FALSE
1629am__fastdepCC_TRUE
1630CCDEPMODE
1631am__nodep
1632AMDEPBACKSLASH
1633AMDEP_FALSE
1634AMDEP_TRUE
1635am__quote
1636am__include
1637DEPDIR
1638OBJEXT
1639EXEEXT
1640ac_ct_CC
1641CPPFLAGS
1642LDFLAGS
1643CFLAGS
1644CC
1645VERSION_COMMENT
1646VERSION_PATCH
1647VERSION_MINOR
1648VERSION_MAJOR
1649SNAPSHOT_STAMP
1650CONFIGURE_ARGS
1651AM_BACKSLASH
1652AM_DEFAULT_VERBOSITY
1653AM_DEFAULT_V
1654AM_V
1655am__untar
1656am__tar
1657AMTAR
1658am__leading_dot
1659SET_MAKE
1660AWK
1661mkdir_p
1662MKDIR_P
1663INSTALL_STRIP_PROGRAM
1664STRIP
1665install_sh
1666MAKEINFO
1667AUTOHEADER
1668AUTOMAKE
1669AUTOCONF
1670ACLOCAL
1671VERSION
1672CYGPATH_W
1673am__isrc
1674INSTALL_DATA
1675INSTALL_SCRIPT
1676INSTALL_PROGRAM
1677GIT
1678SVN
1679GREP
1680PACKAGE
1681host_os
1682host_vendor
1683host_cpu
1684host
1685build_os
1686build_vendor
1687build_cpu
1688build
1689target_alias
1690host_alias
1691build_alias
1692LIBS
1693ECHO_T
1694ECHO_N
1695ECHO_C
1696DEFS
1697mandir
1698localedir
1699libdir
1700psdir
1701pdfdir
1702dvidir
1703htmldir
1704infodir
1705docdir
1706oldincludedir
1707includedir
1708localstatedir
1709sharedstatedir
1710sysconfdir
1711datadir
1712datarootdir
1713libexecdir
1714sbindir
1715bindir
1716program_transform_name
1717prefix
1718exec_prefix
1719PACKAGE_URL
1720PACKAGE_BUGREPORT
1721PACKAGE_STRING
1722PACKAGE_VERSION
1723PACKAGE_TARNAME
1724PACKAGE_NAME
1725PATH_SEPARATOR
1726SHELL'
1727ac_subst_files=''
1728ac_user_opts='
1729enable_option_checking
1730enable_silent_rules
1731enable_dependency_tracking
1732enable_largefile
1733enable_threads
1734with_gnu_ld
1735enable_rpath
1736with_libpth_prefix
1737with_included_regex
1738with_cflags
1739with_includes
1740with_libraries
1741enable_as_needed
1742with_user
1743with_group
1744with_dumperdir
1745with_configdir
1746with_indexdir
1747with_dbdir
1748with_logdir
1749with_suffixes
1750with_gnutar_listdir
1751with_gnutar_listed_incremental
1752with_tmpdir
1753with_force_uid
1754with_owner
1755with_fqdn
1756with_reuseports
1757with_low_tcpportrange
1758with_tcpportrange
1759with_udpportrange
1760with_buffered_dump
1761with_maxtapeblocksize
1762with_assertions
1763with_debugging
1764with_debug_days
1765with_testing
1766with_single_userid
1767enable_installperms
1768enable_syntax_checks
1769with_server
1770with_client
1771with_restore
1772with_amrecover
1773with_client_only
1774with_server_only
1775with_ndmp
1776with_gnuplot
1777enable_manpage_build
1778with_xsltproc
1779with_xsltproc_flags
1780with_index_server
1781with_config
1782with_tape_server
1783with_tape_device
1784with_changer_device
1785with_amandates
1786with_security_file
1787with_perlextlibs
1788with_ipv6
1789with_amlibdir
1790with_amlibexecdir
1791with_amperldir
1792with_amdatadir
1793enable_nls
1794with_libiconv_prefix
1795with_libintl_prefix
1796with_bsd_security
1797with_amandahosts
1798with_bsdtcp_security
1799with_bsdudp_security
1800with_rsh_security
1801with_ssh_security
1802with_ssh_options
1803with_krb5_security
1804with_dump_honor_nodump
1805with_gnutar
1806with_star
1807with_bsdtar
1808with_suntar
1809with_smbclient
1810with_samba_user
1811with_rundump
1812enable_werror
1813enable_swig_error
1814enable_shared
1815enable_static
1816with_pic
1817enable_fast_install
1818with_aix_soname
1819with_sysroot
1820enable_libtool_lock
1821enable_static_binary
1822enable_glibtest
1823with_readline
1824with_libcurl
1825enable_s3_device
1826enable_dvdrw_device
1827enable_ndmp_device
1828'
1829      ac_precious_vars='build_alias
1830host_alias
1831target_alias
1832CC
1833CFLAGS
1834LDFLAGS
1835LIBS
1836CPPFLAGS
1837CPP
1838GNUPLOT
1839SWIG
1840PERL
1841GNUTAR
1842STAR
1843BSDTAR
1844SUNTAR
1845YACC
1846YFLAGS
1847MTX
1848MOUNT
1849UMOUNT
1850LT_SYS_LIBRARY_PATH
1851GLIB_CFLAGS
1852GLIB_LIBS
1853GLIB_GENMARSHAL
1854GOBJECT_QUERY
1855GLIB_MKENUMS
1856PKG_CONFIG
1857PKG_CONFIG_PATH
1858PKG_CONFIG_LIBDIR'
1859
1860
1861# Initialize some variables set by options.
1862ac_init_help=
1863ac_init_version=false
1864ac_unrecognized_opts=
1865ac_unrecognized_sep=
1866# The variables have the same names as the options, with
1867# dashes changed to underlines.
1868cache_file=/dev/null
1869exec_prefix=NONE
1870no_create=
1871no_recursion=
1872prefix=NONE
1873program_prefix=NONE
1874program_suffix=NONE
1875program_transform_name=s,x,x,
1876silent=
1877site=
1878srcdir=
1879verbose=
1880x_includes=NONE
1881x_libraries=NONE
1882
1883# Installation directory options.
1884# These are left unexpanded so users can "make install exec_prefix=/foo"
1885# and all the variables that are supposed to be based on exec_prefix
1886# by default will actually change.
1887# Use braces instead of parens because sh, perl, etc. also accept them.
1888# (The list follows the same order as the GNU Coding Standards.)
1889bindir='${exec_prefix}/bin'
1890sbindir='${exec_prefix}/sbin'
1891libexecdir='${exec_prefix}/libexec'
1892datarootdir='${prefix}/share'
1893datadir='${datarootdir}'
1894sysconfdir='${prefix}/etc'
1895sharedstatedir='${prefix}/com'
1896localstatedir='${prefix}/var'
1897includedir='${prefix}/include'
1898oldincludedir='/usr/include'
1899docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1900infodir='${datarootdir}/info'
1901htmldir='${docdir}'
1902dvidir='${docdir}'
1903pdfdir='${docdir}'
1904psdir='${docdir}'
1905libdir='${exec_prefix}/lib'
1906localedir='${datarootdir}/locale'
1907mandir='${datarootdir}/man'
1908
1909ac_prev=
1910ac_dashdash=
1911for ac_option
1912do
1913  # If the previous option needs an argument, assign it.
1914  if test -n "$ac_prev"; then
1915    eval $ac_prev=\$ac_option
1916    ac_prev=
1917    continue
1918  fi
1919
1920  case $ac_option in
1921  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1922  *=)   ac_optarg= ;;
1923  *)    ac_optarg=yes ;;
1924  esac
1925
1926  # Accept the important Cygnus configure options, so we can diagnose typos.
1927
1928  case $ac_dashdash$ac_option in
1929  --)
1930    ac_dashdash=yes ;;
1931
1932  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1933    ac_prev=bindir ;;
1934  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1935    bindir=$ac_optarg ;;
1936
1937  -build | --build | --buil | --bui | --bu)
1938    ac_prev=build_alias ;;
1939  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1940    build_alias=$ac_optarg ;;
1941
1942  -cache-file | --cache-file | --cache-fil | --cache-fi \
1943  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1944    ac_prev=cache_file ;;
1945  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1946  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1947    cache_file=$ac_optarg ;;
1948
1949  --config-cache | -C)
1950    cache_file=config.cache ;;
1951
1952  -datadir | --datadir | --datadi | --datad)
1953    ac_prev=datadir ;;
1954  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1955    datadir=$ac_optarg ;;
1956
1957  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1958  | --dataroo | --dataro | --datar)
1959    ac_prev=datarootdir ;;
1960  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1961  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1962    datarootdir=$ac_optarg ;;
1963
1964  -disable-* | --disable-*)
1965    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1966    # Reject names that are not valid shell variable names.
1967    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1968      as_fn_error $? "invalid feature name: $ac_useropt"
1969    ac_useropt_orig=$ac_useropt
1970    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1971    case $ac_user_opts in
1972      *"
1973"enable_$ac_useropt"
1974"*) ;;
1975      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1976	 ac_unrecognized_sep=', ';;
1977    esac
1978    eval enable_$ac_useropt=no ;;
1979
1980  -docdir | --docdir | --docdi | --doc | --do)
1981    ac_prev=docdir ;;
1982  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1983    docdir=$ac_optarg ;;
1984
1985  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1986    ac_prev=dvidir ;;
1987  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1988    dvidir=$ac_optarg ;;
1989
1990  -enable-* | --enable-*)
1991    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1992    # Reject names that are not valid shell variable names.
1993    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1994      as_fn_error $? "invalid feature name: $ac_useropt"
1995    ac_useropt_orig=$ac_useropt
1996    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1997    case $ac_user_opts in
1998      *"
1999"enable_$ac_useropt"
2000"*) ;;
2001      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2002	 ac_unrecognized_sep=', ';;
2003    esac
2004    eval enable_$ac_useropt=\$ac_optarg ;;
2005
2006  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2007  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2008  | --exec | --exe | --ex)
2009    ac_prev=exec_prefix ;;
2010  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2011  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2012  | --exec=* | --exe=* | --ex=*)
2013    exec_prefix=$ac_optarg ;;
2014
2015  -gas | --gas | --ga | --g)
2016    # Obsolete; use --with-gas.
2017    with_gas=yes ;;
2018
2019  -help | --help | --hel | --he | -h)
2020    ac_init_help=long ;;
2021  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
2022    ac_init_help=recursive ;;
2023  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
2024    ac_init_help=short ;;
2025
2026  -host | --host | --hos | --ho)
2027    ac_prev=host_alias ;;
2028  -host=* | --host=* | --hos=* | --ho=*)
2029    host_alias=$ac_optarg ;;
2030
2031  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
2032    ac_prev=htmldir ;;
2033  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
2034  | --ht=*)
2035    htmldir=$ac_optarg ;;
2036
2037  -includedir | --includedir | --includedi | --included | --include \
2038  | --includ | --inclu | --incl | --inc)
2039    ac_prev=includedir ;;
2040  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2041  | --includ=* | --inclu=* | --incl=* | --inc=*)
2042    includedir=$ac_optarg ;;
2043
2044  -infodir | --infodir | --infodi | --infod | --info | --inf)
2045    ac_prev=infodir ;;
2046  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2047    infodir=$ac_optarg ;;
2048
2049  -libdir | --libdir | --libdi | --libd)
2050    ac_prev=libdir ;;
2051  -libdir=* | --libdir=* | --libdi=* | --libd=*)
2052    libdir=$ac_optarg ;;
2053
2054  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2055  | --libexe | --libex | --libe)
2056    ac_prev=libexecdir ;;
2057  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2058  | --libexe=* | --libex=* | --libe=*)
2059    libexecdir=$ac_optarg ;;
2060
2061  -localedir | --localedir | --localedi | --localed | --locale)
2062    ac_prev=localedir ;;
2063  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
2064    localedir=$ac_optarg ;;
2065
2066  -localstatedir | --localstatedir | --localstatedi | --localstated \
2067  | --localstate | --localstat | --localsta | --localst | --locals)
2068    ac_prev=localstatedir ;;
2069  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2070  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2071    localstatedir=$ac_optarg ;;
2072
2073  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2074    ac_prev=mandir ;;
2075  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2076    mandir=$ac_optarg ;;
2077
2078  -nfp | --nfp | --nf)
2079    # Obsolete; use --without-fp.
2080    with_fp=no ;;
2081
2082  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2083  | --no-cr | --no-c | -n)
2084    no_create=yes ;;
2085
2086  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2087  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2088    no_recursion=yes ;;
2089
2090  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2091  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2092  | --oldin | --oldi | --old | --ol | --o)
2093    ac_prev=oldincludedir ;;
2094  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2095  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2096  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2097    oldincludedir=$ac_optarg ;;
2098
2099  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2100    ac_prev=prefix ;;
2101  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2102    prefix=$ac_optarg ;;
2103
2104  -program-prefix | --program-prefix | --program-prefi | --program-pref \
2105  | --program-pre | --program-pr | --program-p)
2106    ac_prev=program_prefix ;;
2107  -program-prefix=* | --program-prefix=* | --program-prefi=* \
2108  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2109    program_prefix=$ac_optarg ;;
2110
2111  -program-suffix | --program-suffix | --program-suffi | --program-suff \
2112  | --program-suf | --program-su | --program-s)
2113    ac_prev=program_suffix ;;
2114  -program-suffix=* | --program-suffix=* | --program-suffi=* \
2115  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2116    program_suffix=$ac_optarg ;;
2117
2118  -program-transform-name | --program-transform-name \
2119  | --program-transform-nam | --program-transform-na \
2120  | --program-transform-n | --program-transform- \
2121  | --program-transform | --program-transfor \
2122  | --program-transfo | --program-transf \
2123  | --program-trans | --program-tran \
2124  | --progr-tra | --program-tr | --program-t)
2125    ac_prev=program_transform_name ;;
2126  -program-transform-name=* | --program-transform-name=* \
2127  | --program-transform-nam=* | --program-transform-na=* \
2128  | --program-transform-n=* | --program-transform-=* \
2129  | --program-transform=* | --program-transfor=* \
2130  | --program-transfo=* | --program-transf=* \
2131  | --program-trans=* | --program-tran=* \
2132  | --progr-tra=* | --program-tr=* | --program-t=*)
2133    program_transform_name=$ac_optarg ;;
2134
2135  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2136    ac_prev=pdfdir ;;
2137  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2138    pdfdir=$ac_optarg ;;
2139
2140  -psdir | --psdir | --psdi | --psd | --ps)
2141    ac_prev=psdir ;;
2142  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2143    psdir=$ac_optarg ;;
2144
2145  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2146  | -silent | --silent | --silen | --sile | --sil)
2147    silent=yes ;;
2148
2149  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2150    ac_prev=sbindir ;;
2151  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2152  | --sbi=* | --sb=*)
2153    sbindir=$ac_optarg ;;
2154
2155  -sharedstatedir | --sharedstatedir | --sharedstatedi \
2156  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2157  | --sharedst | --shareds | --shared | --share | --shar \
2158  | --sha | --sh)
2159    ac_prev=sharedstatedir ;;
2160  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2161  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2162  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2163  | --sha=* | --sh=*)
2164    sharedstatedir=$ac_optarg ;;
2165
2166  -site | --site | --sit)
2167    ac_prev=site ;;
2168  -site=* | --site=* | --sit=*)
2169    site=$ac_optarg ;;
2170
2171  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2172    ac_prev=srcdir ;;
2173  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2174    srcdir=$ac_optarg ;;
2175
2176  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2177  | --syscon | --sysco | --sysc | --sys | --sy)
2178    ac_prev=sysconfdir ;;
2179  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2180  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2181    sysconfdir=$ac_optarg ;;
2182
2183  -target | --target | --targe | --targ | --tar | --ta | --t)
2184    ac_prev=target_alias ;;
2185  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2186    target_alias=$ac_optarg ;;
2187
2188  -v | -verbose | --verbose | --verbos | --verbo | --verb)
2189    verbose=yes ;;
2190
2191  -version | --version | --versio | --versi | --vers | -V)
2192    ac_init_version=: ;;
2193
2194  -with-* | --with-*)
2195    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2196    # Reject names that are not valid shell variable names.
2197    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2198      as_fn_error $? "invalid package name: $ac_useropt"
2199    ac_useropt_orig=$ac_useropt
2200    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2201    case $ac_user_opts in
2202      *"
2203"with_$ac_useropt"
2204"*) ;;
2205      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2206	 ac_unrecognized_sep=', ';;
2207    esac
2208    eval with_$ac_useropt=\$ac_optarg ;;
2209
2210  -without-* | --without-*)
2211    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2212    # Reject names that are not valid shell variable names.
2213    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2214      as_fn_error $? "invalid package name: $ac_useropt"
2215    ac_useropt_orig=$ac_useropt
2216    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2217    case $ac_user_opts in
2218      *"
2219"with_$ac_useropt"
2220"*) ;;
2221      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2222	 ac_unrecognized_sep=', ';;
2223    esac
2224    eval with_$ac_useropt=no ;;
2225
2226  --x)
2227    # Obsolete; use --with-x.
2228    with_x=yes ;;
2229
2230  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2231  | --x-incl | --x-inc | --x-in | --x-i)
2232    ac_prev=x_includes ;;
2233  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2234  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2235    x_includes=$ac_optarg ;;
2236
2237  -x-libraries | --x-libraries | --x-librarie | --x-librari \
2238  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2239    ac_prev=x_libraries ;;
2240  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2241  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2242    x_libraries=$ac_optarg ;;
2243
2244  -*) as_fn_error $? "unrecognized option: \`$ac_option'
2245Try \`$0 --help' for more information"
2246    ;;
2247
2248  *=*)
2249    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2250    # Reject names that are not valid shell variable names.
2251    case $ac_envvar in #(
2252      '' | [0-9]* | *[!_$as_cr_alnum]* )
2253      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2254    esac
2255    eval $ac_envvar=\$ac_optarg
2256    export $ac_envvar ;;
2257
2258  *)
2259    # FIXME: should be removed in autoconf 3.0.
2260    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2261    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2262      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2263    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2264    ;;
2265
2266  esac
2267done
2268
2269if test -n "$ac_prev"; then
2270  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2271  as_fn_error $? "missing argument to $ac_option"
2272fi
2273
2274if test -n "$ac_unrecognized_opts"; then
2275  case $enable_option_checking in
2276    no) ;;
2277    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2278    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2279  esac
2280fi
2281
2282# Check all directory arguments for consistency.
2283for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
2284		datadir sysconfdir sharedstatedir localstatedir includedir \
2285		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2286		libdir localedir mandir
2287do
2288  eval ac_val=\$$ac_var
2289  # Remove trailing slashes.
2290  case $ac_val in
2291    */ )
2292      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2293      eval $ac_var=\$ac_val;;
2294  esac
2295  # Be sure to have absolute directory names.
2296  case $ac_val in
2297    [\\/$]* | ?:[\\/]* )  continue;;
2298    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2299  esac
2300  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2301done
2302
2303# There might be people who depend on the old broken behavior: `$host'
2304# used to hold the argument of --host etc.
2305# FIXME: To remove some day.
2306build=$build_alias
2307host=$host_alias
2308target=$target_alias
2309
2310# FIXME: To remove some day.
2311if test "x$host_alias" != x; then
2312  if test "x$build_alias" = x; then
2313    cross_compiling=maybe
2314  elif test "x$build_alias" != "x$host_alias"; then
2315    cross_compiling=yes
2316  fi
2317fi
2318
2319ac_tool_prefix=
2320test -n "$host_alias" && ac_tool_prefix=$host_alias-
2321
2322test "$silent" = yes && exec 6>/dev/null
2323
2324
2325ac_pwd=`pwd` && test -n "$ac_pwd" &&
2326ac_ls_di=`ls -di .` &&
2327ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2328  as_fn_error $? "working directory cannot be determined"
2329test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2330  as_fn_error $? "pwd does not report name of working directory"
2331
2332
2333# Find the source files, if location was not specified.
2334if test -z "$srcdir"; then
2335  ac_srcdir_defaulted=yes
2336  # Try the directory containing this script, then the parent directory.
2337  ac_confdir=`$as_dirname -- "$as_myself" ||
2338$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2339	 X"$as_myself" : 'X\(//\)[^/]' \| \
2340	 X"$as_myself" : 'X\(//\)$' \| \
2341	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2342$as_echo X"$as_myself" |
2343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2344	    s//\1/
2345	    q
2346	  }
2347	  /^X\(\/\/\)[^/].*/{
2348	    s//\1/
2349	    q
2350	  }
2351	  /^X\(\/\/\)$/{
2352	    s//\1/
2353	    q
2354	  }
2355	  /^X\(\/\).*/{
2356	    s//\1/
2357	    q
2358	  }
2359	  s/.*/./; q'`
2360  srcdir=$ac_confdir
2361  if test ! -r "$srcdir/$ac_unique_file"; then
2362    srcdir=..
2363  fi
2364else
2365  ac_srcdir_defaulted=no
2366fi
2367if test ! -r "$srcdir/$ac_unique_file"; then
2368  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2369  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2370fi
2371ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2372ac_abs_confdir=`(
2373	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2374	pwd)`
2375# When building in place, set srcdir=.
2376if test "$ac_abs_confdir" = "$ac_pwd"; then
2377  srcdir=.
2378fi
2379# Remove unnecessary trailing slashes from srcdir.
2380# Double slashes in file names in object file debugging info
2381# mess up M-x gdb in Emacs.
2382case $srcdir in
2383*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2384esac
2385for ac_var in $ac_precious_vars; do
2386  eval ac_env_${ac_var}_set=\${${ac_var}+set}
2387  eval ac_env_${ac_var}_value=\$${ac_var}
2388  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2389  eval ac_cv_env_${ac_var}_value=\$${ac_var}
2390done
2391
2392#
2393# Report the --help message.
2394#
2395if test "$ac_init_help" = "long"; then
2396  # Omit some internal or obsolete options to make the list less imposing.
2397  # This message is too long to be a string in the A/UX 3.1 sh.
2398  cat <<_ACEOF
2399\`configure' configures amanda 3.3.9 to adapt to many kinds of systems.
2400
2401Usage: $0 [OPTION]... [VAR=VALUE]...
2402
2403To assign environment variables (e.g., CC, CFLAGS...), specify them as
2404VAR=VALUE.  See below for descriptions of some of the useful variables.
2405
2406Defaults for the options are specified in brackets.
2407
2408Configuration:
2409  -h, --help              display this help and exit
2410      --help=short        display options specific to this package
2411      --help=recursive    display the short help of all the included packages
2412  -V, --version           display version information and exit
2413  -q, --quiet, --silent   do not print \`checking ...' messages
2414      --cache-file=FILE   cache test results in FILE [disabled]
2415  -C, --config-cache      alias for \`--cache-file=config.cache'
2416  -n, --no-create         do not create output files
2417      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2418
2419Installation directories:
2420  --prefix=PREFIX         install architecture-independent files in PREFIX
2421                          [$ac_default_prefix]
2422  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2423                          [PREFIX]
2424
2425By default, \`make install' will install all the files in
2426\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2427an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2428for instance \`--prefix=\$HOME'.
2429
2430For better control, use the options below.
2431
2432Fine tuning of the installation directories:
2433  --bindir=DIR            user executables [EPREFIX/bin]
2434  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2435  --libexecdir=DIR        program executables [EPREFIX/libexec]
2436  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2437  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2438  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2439  --libdir=DIR            object code libraries [EPREFIX/lib]
2440  --includedir=DIR        C header files [PREFIX/include]
2441  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2442  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2443  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2444  --infodir=DIR           info documentation [DATAROOTDIR/info]
2445  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2446  --mandir=DIR            man documentation [DATAROOTDIR/man]
2447  --docdir=DIR            documentation root [DATAROOTDIR/doc/amanda]
2448  --htmldir=DIR           html documentation [DOCDIR]
2449  --dvidir=DIR            dvi documentation [DOCDIR]
2450  --pdfdir=DIR            pdf documentation [DOCDIR]
2451  --psdir=DIR             ps documentation [DOCDIR]
2452_ACEOF
2453
2454  cat <<\_ACEOF
2455
2456Program names:
2457  --program-prefix=PREFIX            prepend PREFIX to installed program names
2458  --program-suffix=SUFFIX            append SUFFIX to installed program names
2459  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2460
2461System types:
2462  --build=BUILD     configure for building on BUILD [guessed]
2463  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2464_ACEOF
2465fi
2466
2467if test -n "$ac_init_help"; then
2468  case $ac_init_help in
2469     short | recursive ) echo "Configuration of amanda 3.3.9:";;
2470   esac
2471  cat <<\_ACEOF
2472
2473Optional Features:
2474  --disable-option-checking  ignore unrecognized --enable/--with options
2475  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2476  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2477  --enable-silent-rules   less verbose build output (undo: "make V=1")
2478  --disable-silent-rules  verbose build output (undo: "make V=0")
2479  --enable-dependency-tracking
2480                          do not reject slow dependency extractors
2481  --disable-dependency-tracking
2482                          speeds up one-time build
2483  --disable-largefile     omit support for large files
2484  --enable-threads={posix|solaris|pth|windows}
2485                          specify multithreading API
2486  --disable-threads       build without multithread safety
2487  --disable-rpath         do not hardcode runtime library paths
2488  --enable-as-needed      enable use od --as-needed linker flag
2489  --disable-installperms  do not modify ownership and permissions on installed
2490                          files
2491  --enable-syntax-checks  Perform syntax checks when installing - developers
2492                          only
2493  --enable-manpage-build  Build the manpages from their XML source (shipped
2494                          manpages are usually sufficient)
2495  --disable-nls           do not use Native Language Support
2496  --enable-werror         To compile with -Werror compiler flag
2497  --enable-swig-error     To compile swiged C file with -Werror compiler flag
2498  --enable-shared[=PKGS]  build shared libraries [default=yes]
2499  --enable-static[=PKGS]  build static libraries [default=yes]
2500  --enable-fast-install[=PKGS]
2501                          optimize for fast installation [default=yes]
2502  --disable-libtool-lock  avoid locking (might break parallel builds)
2503  --enable-static-binary  To build statically linked binaries
2504  --disable-glibtest      do not try to compile and run a test GLIB program
2505  --disable-s3-device     disable the S3 device
2506  --disable-dvdrw-device  disable the DVD-RW device
2507  --disable-ndmp-device   disable the NDMP device
2508
2509Optional Packages:
2510  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2511  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2512  --with-gnu-ld           assume the C compiler uses GNU ld default=no
2513  --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2514  --without-libpth-prefix     don't search for libpth in includedir and libdir
2515  --without-included-regex
2516                          don't compile regex; this is the default on systems
2517                          with recent-enough versions of the GNU C Library
2518                          (use with caution on other systems).
2519  --with-cflags=FLAGS     deprecated; use ./configure CFLAGS=...
2520  --with-includes=INCLUDE-DIRS
2521                          deprecated; use ./configure CPPFLAGS='-I.. -I..'
2522  --with-libraries=LIBRARY-DIRS
2523                          deprecated; use ./configure LDFLAGS='-L.. -L..' (add
2524                          -R on Solaris, NetBSD)
2525  --with-user=USER        force execution to USER on client systems (REQUIRED)
2526  --with-group=GROUP      group allowed to execute setuid-root programs
2527                          (REQUIRED)
2528  --with-dumperdir=DIR    where we install the dumpers (deprecated)
2529  --with-configdir=DIR    runtime config files in DIR [sysconfdir/amanda]
2530  --with-indexdir         deprecated: use indexdir in amanda.conf
2531  --with-dbdir            deprecated: use infofile in amanda.conf
2532  --with-logdir           deprecated: use logfile in amanda.conf
2533
2534  --with-gnutar-listdir=DIR
2535                          put gnutar directory lists in DIR (default:
2536                          localstatedir/amanda/gnutar-lists)
2537  --with-gnutar-listed-incremental
2538                          deprecated; use --with-gnutar-listdir
2539  --with-tmpdir           directory for temporary and debugging files
2540                          (default: /tmp/amanda)
2541  --without-force-uid     do not check userids when running programs
2542  --with-owner=USER
2543            force ownership of installed files to USER (default same as --with-user)
2544
2545  --with-fqdn             use FQDN's to backup multiple networks
2546  --without-reuseaddr     Don't reuse network connections until full timeout
2547                          period
2548  --with-low-tcpportrange=low,high
2549                          bind reserved TCP server sockets to ports within
2550  --with-tcpportrange=low,high
2551                          bind unreserved TCP server sockets to ports within
2552  --with-udpportrange=low,high
2553                          bind reserved UDP server sockets to ports within
2554  --with-buffered-dump    buffer the dumping sockets on the server for speed
2555(deprecated)
2556  --with-assertions       compile assertions into code
2557  --with-debugging=DIR
2558            put debug logs in DIR (default same as --with-tmpdir)
2559
2560  --with-debug-days=NN    number of days to keep debugging files (default: 4)
2561  --with-testing[=SUFFIX] use alternate service names with suffix (default
2562                          'test')
2563  --with-single-userid
2564            force amanda to run as a single userid (for testing)
2565
2566  --without-server        do not build server stuff (set --without-restore)
2567  --without-client        do not build client stuff
2568  --without-restore       do not build amrestore nor amidxtaped
2569  --without-amrecover     do not build amrecover
2570  --with-client-only      deprecated: use --without-server
2571  --with-server-only      deprecated: use --without-client
2572  --without-ndmp          do not build ndmp
2573  --with-gnuplot=PATH     use gnuplot executable at PATH in amplot
2574  --with-xsltproc[[[=PATH]]]
2575                          Use the xsltproc binary in in PATH.
2576    --with-xsltproc-flags=FLAGS
2577                          Flags to pass to xsltproc (default --nonet)
2578  --with-index-server=HOST
2579                          default amanda index server (default: `uname -n`)
2580  --with-config=CONFIG    default amanda configuration (default: DailySet1)
2581  --with-tape-server=HOST default tape server for restore (default: same as
2582                          index-server)
2583  --with-tape-device=DEVICE
2584                          default device on restore tape server
2585  --with-changer-device=DEV
2586                          (deprecated)
2587  --with-amandates        default location for 'amandates' (default:
2588                          $localstatedir/amanda/amandates)
2589  --with-security-file    Full path of the security file (default:
2590                          /etc/amanda-security.conf)
2591  --with-perlextlibs=libs extra LIBS for Perl extensions
2592  --with-ipv6             enable IPv6 support (default if IPv6 is found)
2593	  --without-ipv6          disable IPv6
2594  --with-amlibdir[[[=PATH]]]
2595                          Where library are installed, default: $libdir/amanda
2596	  --without-amlibdir      Library are installed in $libdir
2597  --with-amlibexecdir[[[=PATH]]]
2598                          Where amanda own programs are installed, default:
2599                          $libexecdir/amanda
2600	  --without-amlibexecdir  Amanda own programs are installed in $libexecdir
2601  --with-amperldir[[[=PATH]]]
2602                          Where amanda's perl modules are installed; default:
2603                          installsitelib
2604	  --without-amperldir     Install amanda's perl modules in $amlibdir/perl
2605  --with-amdatadir[[[=PATH]]]
2606                          Where amanda's templates and examples are installed;
2607                          default: $datadir/amanda
2608  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2609  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2610  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2611  --without-libintl-prefix     don't search for libintl in includedir and libdir
2612  --without-bsd-security  do not include BSD authentication
2613   --without-amandahosts  use ".rhosts" instead of ".amandahosts"
2614  --with-bsdtcp-security  include BSDTCP authentication
2615  --with-bsdudp-security  include BSDUDP authentication
2616  --with-rsh-security     include RSH authentication
2617  --with-ssh-security     include SSH authentication
2618   --with-ssh-options=[OPTIONS]
2619                          Use these ssh options for ssh security; the default
2620                          should work
2621  --with-krb5-security=DIR
2622                          Location of Kerberos V software [/usr/kerberos
2623                          /usr/cygnus /usr /opt/kerberos]
2624  --with-dump-honor-nodump
2625                          if dump supports -h, use it for level0s too
2626  --with-gnutar=PROG      use PROG as GNU 'tar'
2627  --with-star=PROG        use PROG as 'star'
2628  --with-bsdtar=PROG      use PROG as 'bsdtar'
2629  --with-suntar=PROG      use PROG as 'suntar'
2630  --with-smbclient=PROG   use PROG as 'smbclient'
2631  --with-samba-user       deprecated; place username in 'amandapass'
2632  --with-rundump          use rundump, a setuid-root wrapper, to invoke dump
2633  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2634                          both]
2635  --with-aix-soname=aix|svr4|both
2636                          shared library versioning (aka "SONAME") variant to
2637                          provide on AIX, [default=aix].
2638  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2639  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2640                          compiler's sysroot if not specified).
2641  --with-readline         require readline support (for amrecover)
2642  --without-readline      don't search for readline
2643  --with-libcurl=PREFIX   look for the curl library in PREFIX/lib and headers
2644                          in PREFIX/include
2645
2646Some influential environment variables:
2647  CC          C compiler command
2648  CFLAGS      C compiler flags
2649  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2650              nonstandard directory <lib dir>
2651  LIBS        libraries to pass to the linker, e.g. -l<library>
2652  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2653              you have headers in a nonstandard directory <include dir>
2654  CPP         C preprocessor
2655  GNUPLOT     Location of the 'gnuplot' binary
2656  SWIG        Path to the 'swig' binary (developers only)
2657  PERL        Path to the 'perl' binary
2658  GNUTAR      Location of the GNU 'tar' binary
2659  STAR        Location of the 'star' binary
2660  BSDTAR      Location of the 'bsdtar' binary
2661  SUNTAR      Location of the 'suntar' binary
2662  YACC        The `Yet Another Compiler Compiler' implementation to use.
2663              Defaults to the first program found out of: `bison -y', `byacc',
2664              `yacc'.
2665  YFLAGS      The list of arguments that will be passed by default to $YACC.
2666              This script will default YFLAGS to the empty string to avoid a
2667              default value of `-d' given by some make applications.
2668  MTX         Path to the 'mtx' binary
2669  MOUNT       Path to the 'mount' binary
2670  UMOUNT      Path to the 'umount' binary
2671  LT_SYS_LIBRARY_PATH
2672              User-defined run-time library search path.
2673  GLIB_CFLAGS CFLAGS to build with glib; disables use of pkg-config; must
2674              specify all GLIB_ vars
2675  GLIB_LIBS   libraries to build with glib; disables use of pkg-config; must
2676              specify all GLIB_vars
2677  GLIB_GENMARSHAL
2678              genmarshal binary to use with glib; disables use of pkg-config;
2679              must specify all GLIB_ vars
2680  GOBJECT_QUERY
2681              gobject_query binary to use with glib; disables use of
2682              pkg-config; must specify all GLIB_ vars
2683  GLIB_MKENUMS
2684              mkenums binary to use with glib; disables use of pkg-config;
2685              must specify all GLIB_ vars
2686  PKG_CONFIG  path to pkg-config utility
2687  PKG_CONFIG_PATH
2688              directories to add to pkg-config's search path
2689  PKG_CONFIG_LIBDIR
2690              path overriding pkg-config's built-in search path
2691
2692Use these variables to override the choices made by `configure' or to help
2693it to find libraries and programs with nonstandard names/locations.
2694
2695Report bugs to the package provider.
2696_ACEOF
2697ac_status=$?
2698fi
2699
2700if test "$ac_init_help" = "recursive"; then
2701  # If there are subdirs, report their specific --help.
2702  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2703    test -d "$ac_dir" ||
2704      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2705      continue
2706    ac_builddir=.
2707
2708case "$ac_dir" in
2709.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2710*)
2711  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2712  # A ".." for each directory in $ac_dir_suffix.
2713  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2714  case $ac_top_builddir_sub in
2715  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2716  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2717  esac ;;
2718esac
2719ac_abs_top_builddir=$ac_pwd
2720ac_abs_builddir=$ac_pwd$ac_dir_suffix
2721# for backward compatibility:
2722ac_top_builddir=$ac_top_build_prefix
2723
2724case $srcdir in
2725  .)  # We are building in place.
2726    ac_srcdir=.
2727    ac_top_srcdir=$ac_top_builddir_sub
2728    ac_abs_top_srcdir=$ac_pwd ;;
2729  [\\/]* | ?:[\\/]* )  # Absolute name.
2730    ac_srcdir=$srcdir$ac_dir_suffix;
2731    ac_top_srcdir=$srcdir
2732    ac_abs_top_srcdir=$srcdir ;;
2733  *) # Relative name.
2734    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2735    ac_top_srcdir=$ac_top_build_prefix$srcdir
2736    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2737esac
2738ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2739
2740    cd "$ac_dir" || { ac_status=$?; continue; }
2741    # Check for guested configure.
2742    if test -f "$ac_srcdir/configure.gnu"; then
2743      echo &&
2744      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2745    elif test -f "$ac_srcdir/configure"; then
2746      echo &&
2747      $SHELL "$ac_srcdir/configure" --help=recursive
2748    else
2749      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2750    fi || ac_status=$?
2751    cd "$ac_pwd" || { ac_status=$?; break; }
2752  done
2753fi
2754
2755test -n "$ac_init_help" && exit $ac_status
2756if $ac_init_version; then
2757  cat <<\_ACEOF
2758amanda configure 3.3.9
2759generated by GNU Autoconf 2.69
2760
2761Copyright (C) 2012 Free Software Foundation, Inc.
2762This configure script is free software; the Free Software Foundation
2763gives unlimited permission to copy, distribute and modify it.
2764_ACEOF
2765  exit
2766fi
2767
2768## ------------------------ ##
2769## Autoconf initialization. ##
2770## ------------------------ ##
2771
2772# ac_fn_c_try_compile LINENO
2773# --------------------------
2774# Try to compile conftest.$ac_ext, and return whether this succeeded.
2775ac_fn_c_try_compile ()
2776{
2777  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2778  rm -f conftest.$ac_objext
2779  if { { ac_try="$ac_compile"
2780case "(($ac_try" in
2781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782  *) ac_try_echo=$ac_try;;
2783esac
2784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2785$as_echo "$ac_try_echo"; } >&5
2786  (eval "$ac_compile") 2>conftest.err
2787  ac_status=$?
2788  if test -s conftest.err; then
2789    grep -v '^ *+' conftest.err >conftest.er1
2790    cat conftest.er1 >&5
2791    mv -f conftest.er1 conftest.err
2792  fi
2793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2794  test $ac_status = 0; } && {
2795	 test -z "$ac_c_werror_flag" ||
2796	 test ! -s conftest.err
2797       } && test -s conftest.$ac_objext; then :
2798  ac_retval=0
2799else
2800  $as_echo "$as_me: failed program was:" >&5
2801sed 's/^/| /' conftest.$ac_ext >&5
2802
2803	ac_retval=1
2804fi
2805  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2806  as_fn_set_status $ac_retval
2807
2808} # ac_fn_c_try_compile
2809
2810# ac_fn_c_try_cpp LINENO
2811# ----------------------
2812# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2813ac_fn_c_try_cpp ()
2814{
2815  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2816  if { { ac_try="$ac_cpp conftest.$ac_ext"
2817case "(($ac_try" in
2818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819  *) ac_try_echo=$ac_try;;
2820esac
2821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2822$as_echo "$ac_try_echo"; } >&5
2823  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2824  ac_status=$?
2825  if test -s conftest.err; then
2826    grep -v '^ *+' conftest.err >conftest.er1
2827    cat conftest.er1 >&5
2828    mv -f conftest.er1 conftest.err
2829  fi
2830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2831  test $ac_status = 0; } > conftest.i && {
2832	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2833	 test ! -s conftest.err
2834       }; then :
2835  ac_retval=0
2836else
2837  $as_echo "$as_me: failed program was:" >&5
2838sed 's/^/| /' conftest.$ac_ext >&5
2839
2840    ac_retval=1
2841fi
2842  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2843  as_fn_set_status $ac_retval
2844
2845} # ac_fn_c_try_cpp
2846
2847# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2848# -------------------------------------------------------
2849# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2850# the include files in INCLUDES and setting the cache variable VAR
2851# accordingly.
2852ac_fn_c_check_header_mongrel ()
2853{
2854  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2855  if eval \${$3+:} false; then :
2856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2857$as_echo_n "checking for $2... " >&6; }
2858if eval \${$3+:} false; then :
2859  $as_echo_n "(cached) " >&6
2860fi
2861eval ac_res=\$$3
2862	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2863$as_echo "$ac_res" >&6; }
2864else
2865  # Is the header compilable?
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2867$as_echo_n "checking $2 usability... " >&6; }
2868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869/* end confdefs.h.  */
2870$4
2871#include <$2>
2872_ACEOF
2873if ac_fn_c_try_compile "$LINENO"; then :
2874  ac_header_compiler=yes
2875else
2876  ac_header_compiler=no
2877fi
2878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2880$as_echo "$ac_header_compiler" >&6; }
2881
2882# Is the header present?
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2884$as_echo_n "checking $2 presence... " >&6; }
2885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886/* end confdefs.h.  */
2887#include <$2>
2888_ACEOF
2889if ac_fn_c_try_cpp "$LINENO"; then :
2890  ac_header_preproc=yes
2891else
2892  ac_header_preproc=no
2893fi
2894rm -f conftest.err conftest.i conftest.$ac_ext
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2896$as_echo "$ac_header_preproc" >&6; }
2897
2898# So?  What about this header?
2899case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2900  yes:no: )
2901    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2902$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2903    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2904$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2905    ;;
2906  no:yes:* )
2907    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2908$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2909    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2910$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2911    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2912$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2913    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2914$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2915    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2916$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2917    ;;
2918esac
2919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2920$as_echo_n "checking for $2... " >&6; }
2921if eval \${$3+:} false; then :
2922  $as_echo_n "(cached) " >&6
2923else
2924  eval "$3=\$ac_header_compiler"
2925fi
2926eval ac_res=\$$3
2927	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2928$as_echo "$ac_res" >&6; }
2929fi
2930  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2931
2932} # ac_fn_c_check_header_mongrel
2933
2934# ac_fn_c_try_run LINENO
2935# ----------------------
2936# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2937# that executables *can* be run.
2938ac_fn_c_try_run ()
2939{
2940  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2941  if { { ac_try="$ac_link"
2942case "(($ac_try" in
2943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944  *) ac_try_echo=$ac_try;;
2945esac
2946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2947$as_echo "$ac_try_echo"; } >&5
2948  (eval "$ac_link") 2>&5
2949  ac_status=$?
2950  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2951  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2952  { { case "(($ac_try" in
2953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954  *) ac_try_echo=$ac_try;;
2955esac
2956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2957$as_echo "$ac_try_echo"; } >&5
2958  (eval "$ac_try") 2>&5
2959  ac_status=$?
2960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961  test $ac_status = 0; }; }; then :
2962  ac_retval=0
2963else
2964  $as_echo "$as_me: program exited with status $ac_status" >&5
2965       $as_echo "$as_me: failed program was:" >&5
2966sed 's/^/| /' conftest.$ac_ext >&5
2967
2968       ac_retval=$ac_status
2969fi
2970  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2971  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2972  as_fn_set_status $ac_retval
2973
2974} # ac_fn_c_try_run
2975
2976# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2977# -------------------------------------------------------
2978# Tests whether HEADER exists and can be compiled using the include files in
2979# INCLUDES, setting the cache variable VAR accordingly.
2980ac_fn_c_check_header_compile ()
2981{
2982  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2983  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2984$as_echo_n "checking for $2... " >&6; }
2985if eval \${$3+:} false; then :
2986  $as_echo_n "(cached) " >&6
2987else
2988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2989/* end confdefs.h.  */
2990$4
2991#include <$2>
2992_ACEOF
2993if ac_fn_c_try_compile "$LINENO"; then :
2994  eval "$3=yes"
2995else
2996  eval "$3=no"
2997fi
2998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2999fi
3000eval ac_res=\$$3
3001	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3002$as_echo "$ac_res" >&6; }
3003  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3004
3005} # ac_fn_c_check_header_compile
3006
3007# ac_fn_c_try_link LINENO
3008# -----------------------
3009# Try to link conftest.$ac_ext, and return whether this succeeded.
3010ac_fn_c_try_link ()
3011{
3012  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3013  rm -f conftest.$ac_objext conftest$ac_exeext
3014  if { { ac_try="$ac_link"
3015case "(($ac_try" in
3016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017  *) ac_try_echo=$ac_try;;
3018esac
3019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3020$as_echo "$ac_try_echo"; } >&5
3021  (eval "$ac_link") 2>conftest.err
3022  ac_status=$?
3023  if test -s conftest.err; then
3024    grep -v '^ *+' conftest.err >conftest.er1
3025    cat conftest.er1 >&5
3026    mv -f conftest.er1 conftest.err
3027  fi
3028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029  test $ac_status = 0; } && {
3030	 test -z "$ac_c_werror_flag" ||
3031	 test ! -s conftest.err
3032       } && test -s conftest$ac_exeext && {
3033	 test "$cross_compiling" = yes ||
3034	 test -x conftest$ac_exeext
3035       }; then :
3036  ac_retval=0
3037else
3038  $as_echo "$as_me: failed program was:" >&5
3039sed 's/^/| /' conftest.$ac_ext >&5
3040
3041	ac_retval=1
3042fi
3043  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3044  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3045  # interfere with the next link command; also delete a directory that is
3046  # left behind by Apple's compiler.  We do this before executing the actions.
3047  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3048  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3049  as_fn_set_status $ac_retval
3050
3051} # ac_fn_c_try_link
3052
3053# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3054# -------------------------------------------
3055# Tests whether TYPE exists after having included INCLUDES, setting cache
3056# variable VAR accordingly.
3057ac_fn_c_check_type ()
3058{
3059  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3061$as_echo_n "checking for $2... " >&6; }
3062if eval \${$3+:} false; then :
3063  $as_echo_n "(cached) " >&6
3064else
3065  eval "$3=no"
3066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067/* end confdefs.h.  */
3068$4
3069int
3070main ()
3071{
3072if (sizeof ($2))
3073	 return 0;
3074  ;
3075  return 0;
3076}
3077_ACEOF
3078if ac_fn_c_try_compile "$LINENO"; then :
3079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080/* end confdefs.h.  */
3081$4
3082int
3083main ()
3084{
3085if (sizeof (($2)))
3086	    return 0;
3087  ;
3088  return 0;
3089}
3090_ACEOF
3091if ac_fn_c_try_compile "$LINENO"; then :
3092
3093else
3094  eval "$3=yes"
3095fi
3096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3097fi
3098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3099fi
3100eval ac_res=\$$3
3101	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3102$as_echo "$ac_res" >&6; }
3103  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3104
3105} # ac_fn_c_check_type
3106
3107# ac_fn_c_check_func LINENO FUNC VAR
3108# ----------------------------------
3109# Tests whether FUNC exists, setting the cache variable VAR accordingly
3110ac_fn_c_check_func ()
3111{
3112  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3114$as_echo_n "checking for $2... " >&6; }
3115if eval \${$3+:} false; then :
3116  $as_echo_n "(cached) " >&6
3117else
3118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119/* end confdefs.h.  */
3120/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3121   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3122#define $2 innocuous_$2
3123
3124/* System header to define __stub macros and hopefully few prototypes,
3125    which can conflict with char $2 (); below.
3126    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3127    <limits.h> exists even on freestanding compilers.  */
3128
3129#ifdef __STDC__
3130# include <limits.h>
3131#else
3132# include <assert.h>
3133#endif
3134
3135#undef $2
3136
3137/* Override any GCC internal prototype to avoid an error.
3138   Use char because int might match the return type of a GCC
3139   builtin and then its argument prototype would still apply.  */
3140#ifdef __cplusplus
3141extern "C"
3142#endif
3143char $2 ();
3144/* The GNU C library defines this for functions which it implements
3145    to always fail with ENOSYS.  Some functions are actually named
3146    something starting with __ and the normal name is an alias.  */
3147#if defined __stub_$2 || defined __stub___$2
3148choke me
3149#endif
3150
3151int
3152main ()
3153{
3154return $2 ();
3155  ;
3156  return 0;
3157}
3158_ACEOF
3159if ac_fn_c_try_link "$LINENO"; then :
3160  eval "$3=yes"
3161else
3162  eval "$3=no"
3163fi
3164rm -f core conftest.err conftest.$ac_objext \
3165    conftest$ac_exeext conftest.$ac_ext
3166fi
3167eval ac_res=\$$3
3168	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3169$as_echo "$ac_res" >&6; }
3170  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3171
3172} # ac_fn_c_check_func
3173
3174# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3175# --------------------------------------------
3176# Tries to find the compile-time value of EXPR in a program that includes
3177# INCLUDES, setting VAR accordingly. Returns whether the value could be
3178# computed
3179ac_fn_c_compute_int ()
3180{
3181  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3182  if test "$cross_compiling" = yes; then
3183    # Depending upon the size, compute the lo and hi bounds.
3184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3185/* end confdefs.h.  */
3186$4
3187int
3188main ()
3189{
3190static int test_array [1 - 2 * !(($2) >= 0)];
3191test_array [0] = 0;
3192return test_array [0];
3193
3194  ;
3195  return 0;
3196}
3197_ACEOF
3198if ac_fn_c_try_compile "$LINENO"; then :
3199  ac_lo=0 ac_mid=0
3200  while :; do
3201    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202/* end confdefs.h.  */
3203$4
3204int
3205main ()
3206{
3207static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3208test_array [0] = 0;
3209return test_array [0];
3210
3211  ;
3212  return 0;
3213}
3214_ACEOF
3215if ac_fn_c_try_compile "$LINENO"; then :
3216  ac_hi=$ac_mid; break
3217else
3218  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3219			if test $ac_lo -le $ac_mid; then
3220			  ac_lo= ac_hi=
3221			  break
3222			fi
3223			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3224fi
3225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226  done
3227else
3228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229/* end confdefs.h.  */
3230$4
3231int
3232main ()
3233{
3234static int test_array [1 - 2 * !(($2) < 0)];
3235test_array [0] = 0;
3236return test_array [0];
3237
3238  ;
3239  return 0;
3240}
3241_ACEOF
3242if ac_fn_c_try_compile "$LINENO"; then :
3243  ac_hi=-1 ac_mid=-1
3244  while :; do
3245    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246/* end confdefs.h.  */
3247$4
3248int
3249main ()
3250{
3251static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3252test_array [0] = 0;
3253return test_array [0];
3254
3255  ;
3256  return 0;
3257}
3258_ACEOF
3259if ac_fn_c_try_compile "$LINENO"; then :
3260  ac_lo=$ac_mid; break
3261else
3262  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3263			if test $ac_mid -le $ac_hi; then
3264			  ac_lo= ac_hi=
3265			  break
3266			fi
3267			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3268fi
3269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270  done
3271else
3272  ac_lo= ac_hi=
3273fi
3274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275fi
3276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277# Binary search between lo and hi bounds.
3278while test "x$ac_lo" != "x$ac_hi"; do
3279  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281/* end confdefs.h.  */
3282$4
3283int
3284main ()
3285{
3286static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3287test_array [0] = 0;
3288return test_array [0];
3289
3290  ;
3291  return 0;
3292}
3293_ACEOF
3294if ac_fn_c_try_compile "$LINENO"; then :
3295  ac_hi=$ac_mid
3296else
3297  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3298fi
3299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300done
3301case $ac_lo in #((
3302?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3303'') ac_retval=1 ;;
3304esac
3305  else
3306    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307/* end confdefs.h.  */
3308$4
3309static long int longval () { return $2; }
3310static unsigned long int ulongval () { return $2; }
3311#include <stdio.h>
3312#include <stdlib.h>
3313int
3314main ()
3315{
3316
3317  FILE *f = fopen ("conftest.val", "w");
3318  if (! f)
3319    return 1;
3320  if (($2) < 0)
3321    {
3322      long int i = longval ();
3323      if (i != ($2))
3324	return 1;
3325      fprintf (f, "%ld", i);
3326    }
3327  else
3328    {
3329      unsigned long int i = ulongval ();
3330      if (i != ($2))
3331	return 1;
3332      fprintf (f, "%lu", i);
3333    }
3334  /* Do not output a trailing newline, as this causes \r\n confusion
3335     on some platforms.  */
3336  return ferror (f) || fclose (f) != 0;
3337
3338  ;
3339  return 0;
3340}
3341_ACEOF
3342if ac_fn_c_try_run "$LINENO"; then :
3343  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3344else
3345  ac_retval=1
3346fi
3347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3348  conftest.$ac_objext conftest.beam conftest.$ac_ext
3349rm -f conftest.val
3350
3351  fi
3352  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3353  as_fn_set_status $ac_retval
3354
3355} # ac_fn_c_compute_int
3356
3357# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3358# ---------------------------------------------
3359# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3360# accordingly.
3361ac_fn_c_check_decl ()
3362{
3363  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3364  as_decl_name=`echo $2|sed 's/ *(.*//'`
3365  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3367$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3368if eval \${$3+:} false; then :
3369  $as_echo_n "(cached) " >&6
3370else
3371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372/* end confdefs.h.  */
3373$4
3374int
3375main ()
3376{
3377#ifndef $as_decl_name
3378#ifdef __cplusplus
3379  (void) $as_decl_use;
3380#else
3381  (void) $as_decl_name;
3382#endif
3383#endif
3384
3385  ;
3386  return 0;
3387}
3388_ACEOF
3389if ac_fn_c_try_compile "$LINENO"; then :
3390  eval "$3=yes"
3391else
3392  eval "$3=no"
3393fi
3394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3395fi
3396eval ac_res=\$$3
3397	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3398$as_echo "$ac_res" >&6; }
3399  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3400
3401} # ac_fn_c_check_decl
3402
3403# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3404# ----------------------------------------------------
3405# Tries to find if the field MEMBER exists in type AGGR, after including
3406# INCLUDES, setting cache variable VAR accordingly.
3407ac_fn_c_check_member ()
3408{
3409  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3411$as_echo_n "checking for $2.$3... " >&6; }
3412if eval \${$4+:} false; then :
3413  $as_echo_n "(cached) " >&6
3414else
3415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416/* end confdefs.h.  */
3417$5
3418int
3419main ()
3420{
3421static $2 ac_aggr;
3422if (ac_aggr.$3)
3423return 0;
3424  ;
3425  return 0;
3426}
3427_ACEOF
3428if ac_fn_c_try_compile "$LINENO"; then :
3429  eval "$4=yes"
3430else
3431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432/* end confdefs.h.  */
3433$5
3434int
3435main ()
3436{
3437static $2 ac_aggr;
3438if (sizeof ac_aggr.$3)
3439return 0;
3440  ;
3441  return 0;
3442}
3443_ACEOF
3444if ac_fn_c_try_compile "$LINENO"; then :
3445  eval "$4=yes"
3446else
3447  eval "$4=no"
3448fi
3449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450fi
3451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452fi
3453eval ac_res=\$$4
3454	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3455$as_echo "$ac_res" >&6; }
3456  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3457
3458} # ac_fn_c_check_member
3459cat >config.log <<_ACEOF
3460This file contains any messages produced by compilers while
3461running configure, to aid debugging if configure makes a mistake.
3462
3463It was created by amanda $as_me 3.3.9, which was
3464generated by GNU Autoconf 2.69.  Invocation command line was
3465
3466  $ $0 $@
3467
3468_ACEOF
3469exec 5>>config.log
3470{
3471cat <<_ASUNAME
3472## --------- ##
3473## Platform. ##
3474## --------- ##
3475
3476hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3477uname -m = `(uname -m) 2>/dev/null || echo unknown`
3478uname -r = `(uname -r) 2>/dev/null || echo unknown`
3479uname -s = `(uname -s) 2>/dev/null || echo unknown`
3480uname -v = `(uname -v) 2>/dev/null || echo unknown`
3481
3482/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3483/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3484
3485/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3486/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3487/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3488/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3489/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3490/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3491/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3492
3493_ASUNAME
3494
3495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496for as_dir in $PATH
3497do
3498  IFS=$as_save_IFS
3499  test -z "$as_dir" && as_dir=.
3500    $as_echo "PATH: $as_dir"
3501  done
3502IFS=$as_save_IFS
3503
3504} >&5
3505
3506cat >&5 <<_ACEOF
3507
3508
3509## ----------- ##
3510## Core tests. ##
3511## ----------- ##
3512
3513_ACEOF
3514
3515
3516# Keep a trace of the command line.
3517# Strip out --no-create and --no-recursion so they do not pile up.
3518# Strip out --silent because we don't want to record it for future runs.
3519# Also quote any args containing shell meta-characters.
3520# Make two passes to allow for proper duplicate-argument suppression.
3521ac_configure_args=
3522ac_configure_args0=
3523ac_configure_args1=
3524ac_must_keep_next=false
3525for ac_pass in 1 2
3526do
3527  for ac_arg
3528  do
3529    case $ac_arg in
3530    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3531    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3532    | -silent | --silent | --silen | --sile | --sil)
3533      continue ;;
3534    *\'*)
3535      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3536    esac
3537    case $ac_pass in
3538    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3539    2)
3540      as_fn_append ac_configure_args1 " '$ac_arg'"
3541      if test $ac_must_keep_next = true; then
3542	ac_must_keep_next=false # Got value, back to normal.
3543      else
3544	case $ac_arg in
3545	  *=* | --config-cache | -C | -disable-* | --disable-* \
3546	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3547	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3548	  | -with-* | --with-* | -without-* | --without-* | --x)
3549	    case "$ac_configure_args0 " in
3550	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3551	    esac
3552	    ;;
3553	  -* ) ac_must_keep_next=true ;;
3554	esac
3555      fi
3556      as_fn_append ac_configure_args " '$ac_arg'"
3557      ;;
3558    esac
3559  done
3560done
3561{ ac_configure_args0=; unset ac_configure_args0;}
3562{ ac_configure_args1=; unset ac_configure_args1;}
3563
3564# When interrupted or exit'd, cleanup temporary files, and complete
3565# config.log.  We remove comments because anyway the quotes in there
3566# would cause problems or look ugly.
3567# WARNING: Use '\'' to represent an apostrophe within the trap.
3568# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3569trap 'exit_status=$?
3570  # Save into config.log some information that might help in debugging.
3571  {
3572    echo
3573
3574    $as_echo "## ---------------- ##
3575## Cache variables. ##
3576## ---------------- ##"
3577    echo
3578    # The following way of writing the cache mishandles newlines in values,
3579(
3580  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3581    eval ac_val=\$$ac_var
3582    case $ac_val in #(
3583    *${as_nl}*)
3584      case $ac_var in #(
3585      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3586$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3587      esac
3588      case $ac_var in #(
3589      _ | IFS | as_nl) ;; #(
3590      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3591      *) { eval $ac_var=; unset $ac_var;} ;;
3592      esac ;;
3593    esac
3594  done
3595  (set) 2>&1 |
3596    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3597    *${as_nl}ac_space=\ *)
3598      sed -n \
3599	"s/'\''/'\''\\\\'\'''\''/g;
3600	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3601      ;; #(
3602    *)
3603      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3604      ;;
3605    esac |
3606    sort
3607)
3608    echo
3609
3610    $as_echo "## ----------------- ##
3611## Output variables. ##
3612## ----------------- ##"
3613    echo
3614    for ac_var in $ac_subst_vars
3615    do
3616      eval ac_val=\$$ac_var
3617      case $ac_val in
3618      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3619      esac
3620      $as_echo "$ac_var='\''$ac_val'\''"
3621    done | sort
3622    echo
3623
3624    if test -n "$ac_subst_files"; then
3625      $as_echo "## ------------------- ##
3626## File substitutions. ##
3627## ------------------- ##"
3628      echo
3629      for ac_var in $ac_subst_files
3630      do
3631	eval ac_val=\$$ac_var
3632	case $ac_val in
3633	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3634	esac
3635	$as_echo "$ac_var='\''$ac_val'\''"
3636      done | sort
3637      echo
3638    fi
3639
3640    if test -s confdefs.h; then
3641      $as_echo "## ----------- ##
3642## confdefs.h. ##
3643## ----------- ##"
3644      echo
3645      cat confdefs.h
3646      echo
3647    fi
3648    test "$ac_signal" != 0 &&
3649      $as_echo "$as_me: caught signal $ac_signal"
3650    $as_echo "$as_me: exit $exit_status"
3651  } >&5
3652  rm -f core *.core core.conftest.* &&
3653    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3654    exit $exit_status
3655' 0
3656for ac_signal in 1 2 13 15; do
3657  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3658done
3659ac_signal=0
3660
3661# confdefs.h avoids OS command line length limits that DEFS can exceed.
3662rm -f -r conftest* confdefs.h
3663
3664$as_echo "/* confdefs.h */" > confdefs.h
3665
3666# Predefined preprocessor variables.
3667
3668cat >>confdefs.h <<_ACEOF
3669#define PACKAGE_NAME "$PACKAGE_NAME"
3670_ACEOF
3671
3672cat >>confdefs.h <<_ACEOF
3673#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3674_ACEOF
3675
3676cat >>confdefs.h <<_ACEOF
3677#define PACKAGE_VERSION "$PACKAGE_VERSION"
3678_ACEOF
3679
3680cat >>confdefs.h <<_ACEOF
3681#define PACKAGE_STRING "$PACKAGE_STRING"
3682_ACEOF
3683
3684cat >>confdefs.h <<_ACEOF
3685#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3686_ACEOF
3687
3688cat >>confdefs.h <<_ACEOF
3689#define PACKAGE_URL "$PACKAGE_URL"
3690_ACEOF
3691
3692
3693# Let the site file select an alternate cache file if it wants to.
3694# Prefer an explicitly selected file to automatically selected ones.
3695ac_site_file1=NONE
3696ac_site_file2=NONE
3697if test -n "$CONFIG_SITE"; then
3698  # We do not want a PATH search for config.site.
3699  case $CONFIG_SITE in #((
3700    -*)  ac_site_file1=./$CONFIG_SITE;;
3701    */*) ac_site_file1=$CONFIG_SITE;;
3702    *)   ac_site_file1=./$CONFIG_SITE;;
3703  esac
3704elif test "x$prefix" != xNONE; then
3705  ac_site_file1=$prefix/share/config.site
3706  ac_site_file2=$prefix/etc/config.site
3707else
3708  ac_site_file1=$ac_default_prefix/share/config.site
3709  ac_site_file2=$ac_default_prefix/etc/config.site
3710fi
3711for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3712do
3713  test "x$ac_site_file" = xNONE && continue
3714  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3715    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3716$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3717    sed 's/^/| /' "$ac_site_file" >&5
3718    . "$ac_site_file" \
3719      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721as_fn_error $? "failed to load site script $ac_site_file
3722See \`config.log' for more details" "$LINENO" 5; }
3723  fi
3724done
3725
3726if test -r "$cache_file"; then
3727  # Some versions of bash will fail to source /dev/null (special files
3728  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3729  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3730    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3731$as_echo "$as_me: loading cache $cache_file" >&6;}
3732    case $cache_file in
3733      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3734      *)                      . "./$cache_file";;
3735    esac
3736  fi
3737else
3738  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3739$as_echo "$as_me: creating cache $cache_file" >&6;}
3740  >$cache_file
3741fi
3742
3743as_fn_append ac_header_list " arpa/inet.h"
3744as_fn_append ac_header_list " features.h"
3745as_fn_append ac_func_list " btowc"
3746as_fn_append ac_header_list " unistd.h"
3747as_fn_append ac_func_list " faccessat"
3748as_fn_append ac_func_list " symlink"
3749as_fn_append ac_func_list " _set_invalid_parameter_handler"
3750as_fn_append ac_header_list " sys/stat.h"
3751as_fn_append ac_header_list " sys/param.h"
3752as_fn_append ac_header_list " sys/vfs.h"
3753as_fn_append ac_header_list " sys/fs_types.h"
3754as_fn_append ac_func_list " ftruncate"
3755as_fn_append ac_header_list " sys/socket.h"
3756as_fn_append ac_header_list " netdb.h"
3757as_fn_append ac_header_list " netinet/in.h"
3758gl_getopt_required=GNU
3759as_fn_append ac_header_list " getopt.h"
3760as_fn_append ac_header_list " sys/time.h"
3761as_fn_append ac_func_list " gettimeofday"
3762as_fn_append ac_header_list " langinfo.h"
3763as_fn_append ac_header_list " xlocale.h"
3764as_fn_append ac_func_list " lstat"
3765as_fn_append ac_func_list " mbsinit"
3766as_fn_append ac_func_list " mbrtowc"
3767as_fn_append ac_header_list " sys/mman.h"
3768as_fn_append ac_func_list " mprotect"
3769as_fn_append ac_func_list " nl_langinfo"
3770as_fn_append ac_func_list " isblank"
3771as_fn_append ac_func_list " iswctype"
3772as_fn_append ac_func_list " wcscoll"
3773as_fn_append ac_func_list " secure_getenv"
3774as_fn_append ac_func_list " snprintf"
3775as_fn_append ac_header_list " wchar.h"
3776as_fn_append ac_header_list " stdint.h"
3777as_fn_append ac_header_list " sys/uio.h"
3778as_fn_append ac_func_list " vasnprintf"
3779as_fn_append ac_func_list " wcrtomb"
3780as_fn_append ac_func_list " iswcntrl"
3781as_fn_append ac_header_list " wctype.h"
3782# Check that the precious variables saved in the cache have kept the same
3783# value.
3784ac_cache_corrupted=false
3785for ac_var in $ac_precious_vars; do
3786  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3787  eval ac_new_set=\$ac_env_${ac_var}_set
3788  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3789  eval ac_new_val=\$ac_env_${ac_var}_value
3790  case $ac_old_set,$ac_new_set in
3791    set,)
3792      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3793$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3794      ac_cache_corrupted=: ;;
3795    ,set)
3796      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3797$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3798      ac_cache_corrupted=: ;;
3799    ,);;
3800    *)
3801      if test "x$ac_old_val" != "x$ac_new_val"; then
3802	# differences in whitespace do not lead to failure.
3803	ac_old_val_w=`echo x $ac_old_val`
3804	ac_new_val_w=`echo x $ac_new_val`
3805	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3806	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3807$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3808	  ac_cache_corrupted=:
3809	else
3810	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3811$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3812	  eval $ac_var=\$ac_old_val
3813	fi
3814	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3815$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3816	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3817$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3818      fi;;
3819  esac
3820  # Pass precious variables to config.status.
3821  if test "$ac_new_set" = set; then
3822    case $ac_new_val in
3823    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3824    *) ac_arg=$ac_var=$ac_new_val ;;
3825    esac
3826    case " $ac_configure_args " in
3827      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3828      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3829    esac
3830  fi
3831done
3832if $ac_cache_corrupted; then
3833  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3836$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3837  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3838fi
3839## -------------------- ##
3840## Main body of script. ##
3841## -------------------- ##
3842
3843ac_ext=c
3844ac_cpp='$CPP $CPPFLAGS'
3845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848
3849
3850
3851ac_aux_dir=
3852for ac_dir in config "$srcdir"/config; do
3853  if test -f "$ac_dir/install-sh"; then
3854    ac_aux_dir=$ac_dir
3855    ac_install_sh="$ac_aux_dir/install-sh -c"
3856    break
3857  elif test -f "$ac_dir/install.sh"; then
3858    ac_aux_dir=$ac_dir
3859    ac_install_sh="$ac_aux_dir/install.sh -c"
3860    break
3861  elif test -f "$ac_dir/shtool"; then
3862    ac_aux_dir=$ac_dir
3863    ac_install_sh="$ac_aux_dir/shtool install -c"
3864    break
3865  fi
3866done
3867if test -z "$ac_aux_dir"; then
3868  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3869fi
3870
3871# These three variables are undocumented and unsupported,
3872# and are intended to be withdrawn in a future Autoconf release.
3873# They can cause serious problems if a builder's source tree is in a directory
3874# whose full name contains unusual characters.
3875ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3876ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3877ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3878
3879
3880
3881# Make sure we can run config.sub.
3882$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3883  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3884
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3886$as_echo_n "checking build system type... " >&6; }
3887if ${ac_cv_build+:} false; then :
3888  $as_echo_n "(cached) " >&6
3889else
3890  ac_build_alias=$build_alias
3891test "x$ac_build_alias" = x &&
3892  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3893test "x$ac_build_alias" = x &&
3894  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3895ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3896  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3897
3898fi
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3900$as_echo "$ac_cv_build" >&6; }
3901case $ac_cv_build in
3902*-*-*) ;;
3903*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3904esac
3905build=$ac_cv_build
3906ac_save_IFS=$IFS; IFS='-'
3907set x $ac_cv_build
3908shift
3909build_cpu=$1
3910build_vendor=$2
3911shift; shift
3912# Remember, the first character of IFS is used to create $*,
3913# except with old shells:
3914build_os=$*
3915IFS=$ac_save_IFS
3916case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3917
3918
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3920$as_echo_n "checking host system type... " >&6; }
3921if ${ac_cv_host+:} false; then :
3922  $as_echo_n "(cached) " >&6
3923else
3924  if test "x$host_alias" = x; then
3925  ac_cv_host=$ac_cv_build
3926else
3927  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3928    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3929fi
3930
3931fi
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3933$as_echo "$ac_cv_host" >&6; }
3934case $ac_cv_host in
3935*-*-*) ;;
3936*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3937esac
3938host=$ac_cv_host
3939ac_save_IFS=$IFS; IFS='-'
3940set x $ac_cv_host
3941shift
3942host_cpu=$1
3943host_vendor=$2
3944shift; shift
3945# Remember, the first character of IFS is used to create $*,
3946# except with old shells:
3947host_os=$*
3948IFS=$ac_save_IFS
3949case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3950
3951
3952
3953PACKAGE=amanda
3954
3955
3956
3957    SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/sfw/bin:/usr/bsd:/etc:/usr/etc"
3958    # expand prefix or exec_prefix in LOCPATH
3959    LOCPATH=`(
3960	test "x$prefix" = xNONE && prefix=$ac_default_prefix
3961	test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3962	eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
3963    )`
3964    SYSLOCPATH="$SYSPATH:$LOCPATH"
3965    LOCSYSPATH="$LOCPATH:$SYSPATH"
3966
3967
3968
3969    # Extract the first word of "grep", so it can be a program name with args.
3970set dummy grep; ac_word=$2
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3972$as_echo_n "checking for $ac_word... " >&6; }
3973if ${ac_cv_path_GREP+:} false; then :
3974  $as_echo_n "(cached) " >&6
3975else
3976  case $GREP in
3977  [\\/]* | ?:[\\/]*)
3978  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3979  ;;
3980  *)
3981  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982for as_dir in $LOCSYSPATH
3983do
3984  IFS=$as_save_IFS
3985  test -z "$as_dir" && as_dir=.
3986    for ac_exec_ext in '' $ac_executable_extensions; do
3987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3990    break 2
3991  fi
3992done
3993  done
3994IFS=$as_save_IFS
3995
3996  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
3997  ;;
3998esac
3999fi
4000GREP=$ac_cv_path_GREP
4001if test -n "$GREP"; then
4002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
4003$as_echo "$GREP" >&6; }
4004else
4005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006$as_echo "no" >&6; }
4007fi
4008
4009
4010
4011cat >>confdefs.h <<_ACEOF
4012#define GREP "$GREP"
4013_ACEOF
4014
4015
4016
4017
4018
4019
4020
4021    # Extract the first word of "svn", so it can be a program name with args.
4022set dummy svn; ac_word=$2
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024$as_echo_n "checking for $ac_word... " >&6; }
4025if ${ac_cv_path_SVN+:} false; then :
4026  $as_echo_n "(cached) " >&6
4027else
4028  case $SVN in
4029  [\\/]* | ?:[\\/]*)
4030  ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
4031  ;;
4032  *)
4033  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034for as_dir in $LOCSYSPATH
4035do
4036  IFS=$as_save_IFS
4037  test -z "$as_dir" && as_dir=.
4038    for ac_exec_ext in '' $ac_executable_extensions; do
4039  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040    ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
4041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042    break 2
4043  fi
4044done
4045  done
4046IFS=$as_save_IFS
4047
4048  ;;
4049esac
4050fi
4051SVN=$ac_cv_path_SVN
4052if test -n "$SVN"; then
4053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN" >&5
4054$as_echo "$SVN" >&6; }
4055else
4056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057$as_echo "no" >&6; }
4058fi
4059
4060
4061    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Subversion revision information" >&5
4062$as_echo_n "checking Subversion revision information... " >&6; }
4063    if test -d $srcdir/.svn -a -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
4064	SVN_REV=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
4065	SVN_URL=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
4066	SVN_PATH=`$GREP URL: conftemp.svn|cut -d "/" -f 7-`
4067	SVN_TYPE=`echo ${SVN_PATH} |cut -d "/" -f 1`
4068	SVN_BRANCH=`echo "${SVN_PATH}"| cut -d "/" -f 2`
4069	url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
4070	( echo '#define BUILT_REV "'$SVN_REV'"'
4071	  echo '#define BUILT_BRANCH "'$SVN_BRANCH'"'
4072	) > common-src/svn-info.h
4073
4074	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: updated" >&5
4075$as_echo "updated" >&6; }
4076    else
4077	# Makefiles will be upset if the file doesn't exist, so double-check
4078	if test -f common-src/svn-info.h; then
4079	    : # all good
4080	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not changed" >&5
4081$as_echo "not changed" >&6; }
4082	else
4083	    echo '/* no information available */' > common-src/svn-info.h
4084	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
4085$as_echo "not available" >&6; }
4086	fi
4087    fi
4088
4089    rm -f conftemp.svn
4090
4091
4092
4093
4094
4095    # Extract the first word of "git", so it can be a program name with args.
4096set dummy git; ac_word=$2
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098$as_echo_n "checking for $ac_word... " >&6; }
4099if ${ac_cv_path_GIT+:} false; then :
4100  $as_echo_n "(cached) " >&6
4101else
4102  case $GIT in
4103  [\\/]* | ?:[\\/]*)
4104  ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
4105  ;;
4106  *)
4107  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108for as_dir in $LOCSYSPATH
4109do
4110  IFS=$as_save_IFS
4111  test -z "$as_dir" && as_dir=.
4112    for ac_exec_ext in '' $ac_executable_extensions; do
4113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114    ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
4115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116    break 2
4117  fi
4118done
4119  done
4120IFS=$as_save_IFS
4121
4122  ;;
4123esac
4124fi
4125GIT=$ac_cv_path_GIT
4126if test -n "$GIT"; then
4127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4128$as_echo "$GIT" >&6; }
4129else
4130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131$as_echo "no" >&6; }
4132fi
4133
4134
4135    { $as_echo "$as_me:${as_lineno-$LINENO}: checking git revision information" >&5
4136$as_echo_n "checking git revision information... " >&6; }
4137    if test -d $srcdir/.git -a -n "$GIT"; then
4138	GIT_SHA1=`(cd $srcdir > /dev/null ; $GIT rev-parse HEAD | cut -c -8 )`
4139	if test -n "$GIT_SHA1"; then
4140	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT_SHA1" >&5
4141$as_echo "$GIT_SHA1" >&6; }
4142	else
4143	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'git rev-parse HEAD' failed" >&5
4144$as_echo "'git rev-parse HEAD' failed" >&6; }
4145	fi
4146    else
4147	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
4148$as_echo "not available" >&6; }
4149    fi
4150
4151    rm -f conftemp.git
4152
4153
4154    { $as_echo "$as_me:${as_lineno-$LINENO}: \"version: $VERSION\"" >&5
4155$as_echo "$as_me: \"version: $VERSION\"" >&6;}
4156
4157am__api_version='1.15'
4158
4159# Find a good install program.  We prefer a C program (faster),
4160# so one script is as good as another.  But avoid the broken or
4161# incompatible versions:
4162# SysV /etc/install, /usr/sbin/install
4163# SunOS /usr/etc/install
4164# IRIX /sbin/install
4165# AIX /bin/install
4166# AmigaOS /C/install, which installs bootblocks on floppy discs
4167# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4168# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4169# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4170# OS/2's system install, which has a completely different semantic
4171# ./install, which can be erroneously created by make from ./install.sh.
4172# Reject install programs that cannot install multiple files.
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4174$as_echo_n "checking for a BSD-compatible install... " >&6; }
4175if test -z "$INSTALL"; then
4176if ${ac_cv_path_install+:} false; then :
4177  $as_echo_n "(cached) " >&6
4178else
4179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180for as_dir in $PATH
4181do
4182  IFS=$as_save_IFS
4183  test -z "$as_dir" && as_dir=.
4184    # Account for people who put trailing slashes in PATH elements.
4185case $as_dir/ in #((
4186  ./ | .// | /[cC]/* | \
4187  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4188  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4189  /usr/ucb/* ) ;;
4190  *)
4191    # OSF1 and SCO ODT 3.0 have their own names for install.
4192    # Don't use installbsd from OSF since it installs stuff as root
4193    # by default.
4194    for ac_prog in ginstall scoinst install; do
4195      for ac_exec_ext in '' $ac_executable_extensions; do
4196	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4197	  if test $ac_prog = install &&
4198	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4199	    # AIX install.  It has an incompatible calling convention.
4200	    :
4201	  elif test $ac_prog = install &&
4202	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4203	    # program-specific install script used by HP pwplus--don't use.
4204	    :
4205	  else
4206	    rm -rf conftest.one conftest.two conftest.dir
4207	    echo one > conftest.one
4208	    echo two > conftest.two
4209	    mkdir conftest.dir
4210	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4211	      test -s conftest.one && test -s conftest.two &&
4212	      test -s conftest.dir/conftest.one &&
4213	      test -s conftest.dir/conftest.two
4214	    then
4215	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4216	      break 3
4217	    fi
4218	  fi
4219	fi
4220      done
4221    done
4222    ;;
4223esac
4224
4225  done
4226IFS=$as_save_IFS
4227
4228rm -rf conftest.one conftest.two conftest.dir
4229
4230fi
4231  if test "${ac_cv_path_install+set}" = set; then
4232    INSTALL=$ac_cv_path_install
4233  else
4234    # As a last resort, use the slow shell script.  Don't cache a
4235    # value for INSTALL within a source directory, because that will
4236    # break other packages using the cache if that directory is
4237    # removed, or if the value is a relative name.
4238    INSTALL=$ac_install_sh
4239  fi
4240fi
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4242$as_echo "$INSTALL" >&6; }
4243
4244# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4245# It thinks the first close brace ends the variable substitution.
4246test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4247
4248test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4249
4250test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4251
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4253$as_echo_n "checking whether build environment is sane... " >&6; }
4254# Reject unsafe characters in $srcdir or the absolute working directory
4255# name.  Accept space and tab only in the latter.
4256am_lf='
4257'
4258case `pwd` in
4259  *[\\\"\#\$\&\'\`$am_lf]*)
4260    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4261esac
4262case $srcdir in
4263  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4264    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4265esac
4266
4267# Do 'set' in a subshell so we don't clobber the current shell's
4268# arguments.  Must try -L first in case configure is actually a
4269# symlink; some systems play weird games with the mod time of symlinks
4270# (eg FreeBSD returns the mod time of the symlink's containing
4271# directory).
4272if (
4273   am_has_slept=no
4274   for am_try in 1 2; do
4275     echo "timestamp, slept: $am_has_slept" > conftest.file
4276     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4277     if test "$*" = "X"; then
4278	# -L didn't work.
4279	set X `ls -t "$srcdir/configure" conftest.file`
4280     fi
4281     if test "$*" != "X $srcdir/configure conftest.file" \
4282	&& test "$*" != "X conftest.file $srcdir/configure"; then
4283
4284	# If neither matched, then we have a broken ls.  This can happen
4285	# if, for instance, CONFIG_SHELL is bash and it inherits a
4286	# broken ls alias from the environment.  This has actually
4287	# happened.  Such a system could not be considered "sane".
4288	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4289  alias in your environment" "$LINENO" 5
4290     fi
4291     if test "$2" = conftest.file || test $am_try -eq 2; then
4292       break
4293     fi
4294     # Just in case.
4295     sleep 1
4296     am_has_slept=yes
4297   done
4298   test "$2" = conftest.file
4299   )
4300then
4301   # Ok.
4302   :
4303else
4304   as_fn_error $? "newly created file is older than distributed files!
4305Check your system clock" "$LINENO" 5
4306fi
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4308$as_echo "yes" >&6; }
4309# If we didn't sleep, we still need to ensure time stamps of config.status and
4310# generated files are strictly newer.
4311am_sleep_pid=
4312if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4313  ( sleep 1 ) &
4314  am_sleep_pid=$!
4315fi
4316
4317rm -f conftest.file
4318
4319test "$program_prefix" != NONE &&
4320  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4321# Use a double $ so make ignores it.
4322test "$program_suffix" != NONE &&
4323  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4324# Double any \ or $.
4325# By default was `s,x,x', remove it if useless.
4326ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4327program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4328
4329# Expand $ac_aux_dir to an absolute path.
4330am_aux_dir=`cd "$ac_aux_dir" && pwd`
4331
4332if test x"${MISSING+set}" != xset; then
4333  case $am_aux_dir in
4334  *\ * | *\	*)
4335    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4336  *)
4337    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4338  esac
4339fi
4340# Use eval to expand $SHELL
4341if eval "$MISSING --is-lightweight"; then
4342  am_missing_run="$MISSING "
4343else
4344  am_missing_run=
4345  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4346$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4347fi
4348
4349if test x"${install_sh+set}" != xset; then
4350  case $am_aux_dir in
4351  *\ * | *\	*)
4352    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4353  *)
4354    install_sh="\${SHELL} $am_aux_dir/install-sh"
4355  esac
4356fi
4357
4358# Installed binaries are usually stripped using 'strip' when the user
4359# run "make install-strip".  However 'strip' might not be the right
4360# tool to use in cross-compilation environments, therefore Automake
4361# will honor the 'STRIP' environment variable to overrule this program.
4362if test "$cross_compiling" != no; then
4363  if test -n "$ac_tool_prefix"; then
4364  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4365set dummy ${ac_tool_prefix}strip; ac_word=$2
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367$as_echo_n "checking for $ac_word... " >&6; }
4368if ${ac_cv_prog_STRIP+:} false; then :
4369  $as_echo_n "(cached) " >&6
4370else
4371  if test -n "$STRIP"; then
4372  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4373else
4374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375for as_dir in $PATH
4376do
4377  IFS=$as_save_IFS
4378  test -z "$as_dir" && as_dir=.
4379    for ac_exec_ext in '' $ac_executable_extensions; do
4380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383    break 2
4384  fi
4385done
4386  done
4387IFS=$as_save_IFS
4388
4389fi
4390fi
4391STRIP=$ac_cv_prog_STRIP
4392if test -n "$STRIP"; then
4393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4394$as_echo "$STRIP" >&6; }
4395else
4396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397$as_echo "no" >&6; }
4398fi
4399
4400
4401fi
4402if test -z "$ac_cv_prog_STRIP"; then
4403  ac_ct_STRIP=$STRIP
4404  # Extract the first word of "strip", so it can be a program name with args.
4405set dummy strip; ac_word=$2
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4407$as_echo_n "checking for $ac_word... " >&6; }
4408if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4409  $as_echo_n "(cached) " >&6
4410else
4411  if test -n "$ac_ct_STRIP"; then
4412  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4413else
4414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH
4416do
4417  IFS=$as_save_IFS
4418  test -z "$as_dir" && as_dir=.
4419    for ac_exec_ext in '' $ac_executable_extensions; do
4420  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4421    ac_cv_prog_ac_ct_STRIP="strip"
4422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423    break 2
4424  fi
4425done
4426  done
4427IFS=$as_save_IFS
4428
4429fi
4430fi
4431ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4432if test -n "$ac_ct_STRIP"; then
4433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4434$as_echo "$ac_ct_STRIP" >&6; }
4435else
4436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437$as_echo "no" >&6; }
4438fi
4439
4440  if test "x$ac_ct_STRIP" = x; then
4441    STRIP=":"
4442  else
4443    case $cross_compiling:$ac_tool_warned in
4444yes:)
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4447ac_tool_warned=yes ;;
4448esac
4449    STRIP=$ac_ct_STRIP
4450  fi
4451else
4452  STRIP="$ac_cv_prog_STRIP"
4453fi
4454
4455fi
4456INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4457
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4459$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4460if test -z "$MKDIR_P"; then
4461  if ${ac_cv_path_mkdir+:} false; then :
4462  $as_echo_n "(cached) " >&6
4463else
4464  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4466do
4467  IFS=$as_save_IFS
4468  test -z "$as_dir" && as_dir=.
4469    for ac_prog in mkdir gmkdir; do
4470	 for ac_exec_ext in '' $ac_executable_extensions; do
4471	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4472	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4473	     'mkdir (GNU coreutils) '* | \
4474	     'mkdir (coreutils) '* | \
4475	     'mkdir (fileutils) '4.1*)
4476	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4477	       break 3;;
4478	   esac
4479	 done
4480       done
4481  done
4482IFS=$as_save_IFS
4483
4484fi
4485
4486  test -d ./--version && rmdir ./--version
4487  if test "${ac_cv_path_mkdir+set}" = set; then
4488    MKDIR_P="$ac_cv_path_mkdir -p"
4489  else
4490    # As a last resort, use the slow shell script.  Don't cache a
4491    # value for MKDIR_P within a source directory, because that will
4492    # break other packages using the cache if that directory is
4493    # removed, or if the value is a relative name.
4494    MKDIR_P="$ac_install_sh -d"
4495  fi
4496fi
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4498$as_echo "$MKDIR_P" >&6; }
4499
4500for ac_prog in gawk mawk nawk awk
4501do
4502  # Extract the first word of "$ac_prog", so it can be a program name with args.
4503set dummy $ac_prog; ac_word=$2
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505$as_echo_n "checking for $ac_word... " >&6; }
4506if ${ac_cv_prog_AWK+:} false; then :
4507  $as_echo_n "(cached) " >&6
4508else
4509  if test -n "$AWK"; then
4510  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4511else
4512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513for as_dir in $PATH
4514do
4515  IFS=$as_save_IFS
4516  test -z "$as_dir" && as_dir=.
4517    for ac_exec_ext in '' $ac_executable_extensions; do
4518  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4519    ac_cv_prog_AWK="$ac_prog"
4520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4521    break 2
4522  fi
4523done
4524  done
4525IFS=$as_save_IFS
4526
4527fi
4528fi
4529AWK=$ac_cv_prog_AWK
4530if test -n "$AWK"; then
4531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4532$as_echo "$AWK" >&6; }
4533else
4534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535$as_echo "no" >&6; }
4536fi
4537
4538
4539  test -n "$AWK" && break
4540done
4541
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4543$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4544set x ${MAKE-make}
4545ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4546if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4547  $as_echo_n "(cached) " >&6
4548else
4549  cat >conftest.make <<\_ACEOF
4550SHELL = /bin/sh
4551all:
4552	@echo '@@@%%%=$(MAKE)=@@@%%%'
4553_ACEOF
4554# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4555case `${MAKE-make} -f conftest.make 2>/dev/null` in
4556  *@@@%%%=?*=@@@%%%*)
4557    eval ac_cv_prog_make_${ac_make}_set=yes;;
4558  *)
4559    eval ac_cv_prog_make_${ac_make}_set=no;;
4560esac
4561rm -f conftest.make
4562fi
4563if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4565$as_echo "yes" >&6; }
4566  SET_MAKE=
4567else
4568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569$as_echo "no" >&6; }
4570  SET_MAKE="MAKE=${MAKE-make}"
4571fi
4572
4573rm -rf .tst 2>/dev/null
4574mkdir .tst 2>/dev/null
4575if test -d .tst; then
4576  am__leading_dot=.
4577else
4578  am__leading_dot=_
4579fi
4580rmdir .tst 2>/dev/null
4581
4582# Check whether --enable-silent-rules was given.
4583if test "${enable_silent_rules+set}" = set; then :
4584  enableval=$enable_silent_rules;
4585fi
4586
4587case $enable_silent_rules in # (((
4588  yes) AM_DEFAULT_VERBOSITY=0;;
4589   no) AM_DEFAULT_VERBOSITY=1;;
4590    *) AM_DEFAULT_VERBOSITY=1;;
4591esac
4592am_make=${MAKE-make}
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4594$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4595if ${am_cv_make_support_nested_variables+:} false; then :
4596  $as_echo_n "(cached) " >&6
4597else
4598  if $as_echo 'TRUE=$(BAR$(V))
4599BAR0=false
4600BAR1=true
4601V=1
4602am__doit:
4603	@$(TRUE)
4604.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4605  am_cv_make_support_nested_variables=yes
4606else
4607  am_cv_make_support_nested_variables=no
4608fi
4609fi
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4611$as_echo "$am_cv_make_support_nested_variables" >&6; }
4612if test $am_cv_make_support_nested_variables = yes; then
4613    AM_V='$(V)'
4614  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4615else
4616  AM_V=$AM_DEFAULT_VERBOSITY
4617  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4618fi
4619AM_BACKSLASH='\'
4620
4621if test "`cd $srcdir && pwd`" != "`pwd`"; then
4622  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4623  # is not polluted with repeated "-I."
4624  am__isrc=' -I$(srcdir)'
4625  # test to see if srcdir already configured
4626  if test -f $srcdir/config.status; then
4627    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4628  fi
4629fi
4630
4631# test whether we have cygpath
4632if test -z "$CYGPATH_W"; then
4633  if (cygpath --version) >/dev/null 2>/dev/null; then
4634    CYGPATH_W='cygpath -w'
4635  else
4636    CYGPATH_W=echo
4637  fi
4638fi
4639
4640
4641# Define the identity of the package.
4642 PACKAGE='amanda'
4643 VERSION='3.3.9'
4644
4645
4646cat >>confdefs.h <<_ACEOF
4647#define PACKAGE "$PACKAGE"
4648_ACEOF
4649
4650
4651cat >>confdefs.h <<_ACEOF
4652#define VERSION "$VERSION"
4653_ACEOF
4654
4655# Some tools Automake needs.
4656
4657ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4658
4659
4660AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4661
4662
4663AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4664
4665
4666AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4667
4668
4669MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4670
4671# For better backward compatibility.  To be removed once Automake 1.9.x
4672# dies out for good.  For more background, see:
4673# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4674# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4675mkdir_p='$(MKDIR_P)'
4676
4677# We need awk for the "check" target (and possibly the TAP driver).  The
4678# system "awk" is bad on some platforms.
4679# Always define AMTAR for backward compatibility.  Yes, it's still used
4680# in the wild :-(  We should find a proper way to deprecate it ...
4681AMTAR='$${TAR-tar}'
4682
4683
4684# We'll loop over all known methods to create a tar archive until one works.
4685_am_tools='gnutar plaintar pax cpio none'
4686
4687# The POSIX 1988 'ustar' format is defined with fixed-size fields.
4688      # There is notably a 21 bits limit for the UID and the GID.  In fact,
4689      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4690      # and bug#13588).
4691      am_max_uid=2097151 # 2^21 - 1
4692      am_max_gid=$am_max_uid
4693      # The $UID and $GID variables are not portable, so we need to resort
4694      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
4695      # below are definitely unexpected, so allow the users to see them
4696      # (that is, avoid stderr redirection).
4697      am_uid=`id -u || echo unknown`
4698      am_gid=`id -g || echo unknown`
4699      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4700$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4701      if test $am_uid -le $am_max_uid; then
4702         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4703$as_echo "yes" >&6; }
4704      else
4705         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706$as_echo "no" >&6; }
4707         _am_tools=none
4708      fi
4709      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4710$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4711      if test $am_gid -le $am_max_gid; then
4712         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4713$as_echo "yes" >&6; }
4714      else
4715        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716$as_echo "no" >&6; }
4717        _am_tools=none
4718      fi
4719
4720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4721$as_echo_n "checking how to create a ustar tar archive... " >&6; }
4722
4723  # Go ahead even if we have the value already cached.  We do so because we
4724  # need to set the values for the 'am__tar' and 'am__untar' variables.
4725  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4726
4727  for _am_tool in $_am_tools; do
4728    case $_am_tool in
4729    gnutar)
4730      for _am_tar in tar gnutar gtar; do
4731        { echo "$as_me:$LINENO: $_am_tar --version" >&5
4732   ($_am_tar --version) >&5 2>&5
4733   ac_status=$?
4734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735   (exit $ac_status); } && break
4736      done
4737      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4738      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4739      am__untar="$_am_tar -xf -"
4740      ;;
4741    plaintar)
4742      # Must skip GNU tar: if it does not support --format= it doesn't create
4743      # ustar tarball either.
4744      (tar --version) >/dev/null 2>&1 && continue
4745      am__tar='tar chf - "$$tardir"'
4746      am__tar_='tar chf - "$tardir"'
4747      am__untar='tar xf -'
4748      ;;
4749    pax)
4750      am__tar='pax -L -x ustar -w "$$tardir"'
4751      am__tar_='pax -L -x ustar -w "$tardir"'
4752      am__untar='pax -r'
4753      ;;
4754    cpio)
4755      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4756      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4757      am__untar='cpio -i -H ustar -d'
4758      ;;
4759    none)
4760      am__tar=false
4761      am__tar_=false
4762      am__untar=false
4763      ;;
4764    esac
4765
4766    # If the value was cached, stop now.  We just wanted to have am__tar
4767    # and am__untar set.
4768    test -n "${am_cv_prog_tar_ustar}" && break
4769
4770    # tar/untar a dummy directory, and stop if the command works.
4771    rm -rf conftest.dir
4772    mkdir conftest.dir
4773    echo GrepMe > conftest.dir/file
4774    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4775   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4776   ac_status=$?
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); }
4779    rm -rf conftest.dir
4780    if test -s conftest.tar; then
4781      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4782   ($am__untar <conftest.tar) >&5 2>&5
4783   ac_status=$?
4784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785   (exit $ac_status); }
4786      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4787   (cat conftest.dir/file) >&5 2>&5
4788   ac_status=$?
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); }
4791      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4792    fi
4793  done
4794  rm -rf conftest.dir
4795
4796  if ${am_cv_prog_tar_ustar+:} false; then :
4797  $as_echo_n "(cached) " >&6
4798else
4799  am_cv_prog_tar_ustar=$_am_tool
4800fi
4801
4802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4803$as_echo "$am_cv_prog_tar_ustar" >&6; }
4804
4805
4806
4807
4808
4809
4810# POSIX will say in a future version that running "rm -f" with no argument
4811# is OK; and we want to be able to make that assumption in our Makefile
4812# recipes.  So use an aggressive probe to check that the usage we want is
4813# actually supported "in the wild" to an acceptable degree.
4814# See automake bug#10828.
4815# To make any issue more visible, cause the running configure to be aborted
4816# by default if the 'rm' program in use doesn't match our expectations; the
4817# user can still override this though.
4818if rm -f && rm -fr && rm -rf; then : OK; else
4819  cat >&2 <<'END'
4820Oops!
4821
4822Your 'rm' program seems unable to run without file operands specified
4823on the command line, even when the '-f' option is present.  This is contrary
4824to the behaviour of most rm programs out there, and not conforming with
4825the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4826
4827Please tell bug-automake@gnu.org about your system, including the value
4828of your $PATH and any error possibly output before this message.  This
4829can help us improve future automake versions.
4830
4831END
4832  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4833    echo 'Configuration will proceed anyway, since you have set the' >&2
4834    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4835    echo >&2
4836  else
4837    cat >&2 <<'END'
4838Aborting the configuration process, to ensure you take notice of the issue.
4839
4840You can download and install GNU coreutils to get an 'rm' implementation
4841that behaves properly: <http://www.gnu.org/software/coreutils/>.
4842
4843If you want to complete the configuration process using your problematic
4844'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4845to "yes", and re-run configure.
4846
4847END
4848    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4849  fi
4850fi
4851
4852ac_config_headers="$ac_config_headers config/config.h"
4853
4854
4855
4856
4857#
4858# Take care of some early Amanda-specific setup
4859#
4860
4861    CONFIGURE_ARGS=$ac_configure_args
4862
4863cat >>confdefs.h <<_ACEOF
4864#define CONFIGURE_ARGS "$CONFIGURE_ARGS"
4865_ACEOF
4866
4867
4868
4869
4870    # initialize warnings file
4871    rm -f config.warnings
4872
4873
4874    if test -f "$srcdir/SNAPSHOT"; then
4875      cat < "$srcdir/SNAPSHOT"
4876
4877      snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
4878
4879      test -z "$snapdate" || VERSION="$VERSION-$snapdate"
4880      SNAPSHOT_STAMP=SNAPSHOT
4881    else
4882      SNAPSHOT_STAMP=
4883    fi
4884
4885
4886
4887
4888    VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
4889    VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
4890    if test -z "$VERSION_MINOR"; then
4891	VERSION_MINOR=0
4892	VERSION_PATCH=0
4893	VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\(.*\)'`\"
4894    else
4895	VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
4896	if test -z "$VERSION_PATCH"; then
4897	    VERSION_PATCH=0
4898	    VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\(.*\)'`\"
4899	else
4900	    VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
4901	fi
4902    fi
4903
4904
4905
4906
4907
4908
4909
4910
4911cat >>confdefs.h <<_ACEOF
4912#define VERSION_MAJOR $VERSION_MAJOR
4913_ACEOF
4914
4915
4916cat >>confdefs.h <<_ACEOF
4917#define VERSION_MINOR $VERSION_MINOR
4918_ACEOF
4919
4920
4921cat >>confdefs.h <<_ACEOF
4922#define VERSION_PATCH $VERSION_PATCH
4923_ACEOF
4924
4925
4926cat >>confdefs.h <<_ACEOF
4927#define VERSION_COMMENT $VERSION_COMMENT
4928_ACEOF
4929
4930
4931
4932    if test -f config.local; then
4933	echo "running local script ./config.local"
4934	. ./config.local
4935    fi
4936
4937
4938#
4939# Set up compiler location, basic flags, and include locations
4940# and library locations before we start checking the system
4941# configuration in more detail...
4942#
4943ac_ext=c
4944ac_cpp='$CPP $CPPFLAGS'
4945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947ac_compiler_gnu=$ac_cv_c_compiler_gnu
4948if test -n "$ac_tool_prefix"; then
4949  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4950set dummy ${ac_tool_prefix}gcc; ac_word=$2
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952$as_echo_n "checking for $ac_word... " >&6; }
4953if ${ac_cv_prog_CC+:} false; then :
4954  $as_echo_n "(cached) " >&6
4955else
4956  if test -n "$CC"; then
4957  ac_cv_prog_CC="$CC" # Let the user override the test.
4958else
4959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960for as_dir in $PATH
4961do
4962  IFS=$as_save_IFS
4963  test -z "$as_dir" && as_dir=.
4964    for ac_exec_ext in '' $ac_executable_extensions; do
4965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4966    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968    break 2
4969  fi
4970done
4971  done
4972IFS=$as_save_IFS
4973
4974fi
4975fi
4976CC=$ac_cv_prog_CC
4977if test -n "$CC"; then
4978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4979$as_echo "$CC" >&6; }
4980else
4981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982$as_echo "no" >&6; }
4983fi
4984
4985
4986fi
4987if test -z "$ac_cv_prog_CC"; then
4988  ac_ct_CC=$CC
4989  # Extract the first word of "gcc", so it can be a program name with args.
4990set dummy gcc; ac_word=$2
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992$as_echo_n "checking for $ac_word... " >&6; }
4993if ${ac_cv_prog_ac_ct_CC+:} false; then :
4994  $as_echo_n "(cached) " >&6
4995else
4996  if test -n "$ac_ct_CC"; then
4997  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4998else
4999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000for as_dir in $PATH
5001do
5002  IFS=$as_save_IFS
5003  test -z "$as_dir" && as_dir=.
5004    for ac_exec_ext in '' $ac_executable_extensions; do
5005  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006    ac_cv_prog_ac_ct_CC="gcc"
5007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008    break 2
5009  fi
5010done
5011  done
5012IFS=$as_save_IFS
5013
5014fi
5015fi
5016ac_ct_CC=$ac_cv_prog_ac_ct_CC
5017if test -n "$ac_ct_CC"; then
5018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5019$as_echo "$ac_ct_CC" >&6; }
5020else
5021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022$as_echo "no" >&6; }
5023fi
5024
5025  if test "x$ac_ct_CC" = x; then
5026    CC=""
5027  else
5028    case $cross_compiling:$ac_tool_warned in
5029yes:)
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5032ac_tool_warned=yes ;;
5033esac
5034    CC=$ac_ct_CC
5035  fi
5036else
5037  CC="$ac_cv_prog_CC"
5038fi
5039
5040if test -z "$CC"; then
5041          if test -n "$ac_tool_prefix"; then
5042    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5043set dummy ${ac_tool_prefix}cc; ac_word=$2
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045$as_echo_n "checking for $ac_word... " >&6; }
5046if ${ac_cv_prog_CC+:} false; then :
5047  $as_echo_n "(cached) " >&6
5048else
5049  if test -n "$CC"; then
5050  ac_cv_prog_CC="$CC" # Let the user override the test.
5051else
5052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053for as_dir in $PATH
5054do
5055  IFS=$as_save_IFS
5056  test -z "$as_dir" && as_dir=.
5057    for ac_exec_ext in '' $ac_executable_extensions; do
5058  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5059    ac_cv_prog_CC="${ac_tool_prefix}cc"
5060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061    break 2
5062  fi
5063done
5064  done
5065IFS=$as_save_IFS
5066
5067fi
5068fi
5069CC=$ac_cv_prog_CC
5070if test -n "$CC"; then
5071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5072$as_echo "$CC" >&6; }
5073else
5074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075$as_echo "no" >&6; }
5076fi
5077
5078
5079  fi
5080fi
5081if test -z "$CC"; then
5082  # Extract the first word of "cc", so it can be a program name with args.
5083set dummy cc; ac_word=$2
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085$as_echo_n "checking for $ac_word... " >&6; }
5086if ${ac_cv_prog_CC+:} false; then :
5087  $as_echo_n "(cached) " >&6
5088else
5089  if test -n "$CC"; then
5090  ac_cv_prog_CC="$CC" # Let the user override the test.
5091else
5092  ac_prog_rejected=no
5093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094for as_dir in $PATH
5095do
5096  IFS=$as_save_IFS
5097  test -z "$as_dir" && as_dir=.
5098    for ac_exec_ext in '' $ac_executable_extensions; do
5099  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5101       ac_prog_rejected=yes
5102       continue
5103     fi
5104    ac_cv_prog_CC="cc"
5105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106    break 2
5107  fi
5108done
5109  done
5110IFS=$as_save_IFS
5111
5112if test $ac_prog_rejected = yes; then
5113  # We found a bogon in the path, so make sure we never use it.
5114  set dummy $ac_cv_prog_CC
5115  shift
5116  if test $# != 0; then
5117    # We chose a different compiler from the bogus one.
5118    # However, it has the same basename, so the bogon will be chosen
5119    # first if we set CC to just the basename; use the full file name.
5120    shift
5121    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5122  fi
5123fi
5124fi
5125fi
5126CC=$ac_cv_prog_CC
5127if test -n "$CC"; then
5128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5129$as_echo "$CC" >&6; }
5130else
5131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132$as_echo "no" >&6; }
5133fi
5134
5135
5136fi
5137if test -z "$CC"; then
5138  if test -n "$ac_tool_prefix"; then
5139  for ac_prog in cl.exe
5140  do
5141    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5142set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144$as_echo_n "checking for $ac_word... " >&6; }
5145if ${ac_cv_prog_CC+:} false; then :
5146  $as_echo_n "(cached) " >&6
5147else
5148  if test -n "$CC"; then
5149  ac_cv_prog_CC="$CC" # Let the user override the test.
5150else
5151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152for as_dir in $PATH
5153do
5154  IFS=$as_save_IFS
5155  test -z "$as_dir" && as_dir=.
5156    for ac_exec_ext in '' $ac_executable_extensions; do
5157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160    break 2
5161  fi
5162done
5163  done
5164IFS=$as_save_IFS
5165
5166fi
5167fi
5168CC=$ac_cv_prog_CC
5169if test -n "$CC"; then
5170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5171$as_echo "$CC" >&6; }
5172else
5173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174$as_echo "no" >&6; }
5175fi
5176
5177
5178    test -n "$CC" && break
5179  done
5180fi
5181if test -z "$CC"; then
5182  ac_ct_CC=$CC
5183  for ac_prog in cl.exe
5184do
5185  # Extract the first word of "$ac_prog", so it can be a program name with args.
5186set dummy $ac_prog; ac_word=$2
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188$as_echo_n "checking for $ac_word... " >&6; }
5189if ${ac_cv_prog_ac_ct_CC+:} false; then :
5190  $as_echo_n "(cached) " >&6
5191else
5192  if test -n "$ac_ct_CC"; then
5193  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5194else
5195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH
5197do
5198  IFS=$as_save_IFS
5199  test -z "$as_dir" && as_dir=.
5200    for ac_exec_ext in '' $ac_executable_extensions; do
5201  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202    ac_cv_prog_ac_ct_CC="$ac_prog"
5203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204    break 2
5205  fi
5206done
5207  done
5208IFS=$as_save_IFS
5209
5210fi
5211fi
5212ac_ct_CC=$ac_cv_prog_ac_ct_CC
5213if test -n "$ac_ct_CC"; then
5214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5215$as_echo "$ac_ct_CC" >&6; }
5216else
5217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218$as_echo "no" >&6; }
5219fi
5220
5221
5222  test -n "$ac_ct_CC" && break
5223done
5224
5225  if test "x$ac_ct_CC" = x; then
5226    CC=""
5227  else
5228    case $cross_compiling:$ac_tool_warned in
5229yes:)
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5232ac_tool_warned=yes ;;
5233esac
5234    CC=$ac_ct_CC
5235  fi
5236fi
5237
5238fi
5239
5240
5241test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5243as_fn_error $? "no acceptable C compiler found in \$PATH
5244See \`config.log' for more details" "$LINENO" 5; }
5245
5246# Provide some information about the compiler.
5247$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5248set X $ac_compile
5249ac_compiler=$2
5250for ac_option in --version -v -V -qversion; do
5251  { { ac_try="$ac_compiler $ac_option >&5"
5252case "(($ac_try" in
5253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254  *) ac_try_echo=$ac_try;;
5255esac
5256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5257$as_echo "$ac_try_echo"; } >&5
5258  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5259  ac_status=$?
5260  if test -s conftest.err; then
5261    sed '10a\
5262... rest of stderr output deleted ...
5263         10q' conftest.err >conftest.er1
5264    cat conftest.er1 >&5
5265  fi
5266  rm -f conftest.er1 conftest.err
5267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5268  test $ac_status = 0; }
5269done
5270
5271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272/* end confdefs.h.  */
5273
5274int
5275main ()
5276{
5277
5278  ;
5279  return 0;
5280}
5281_ACEOF
5282ac_clean_files_save=$ac_clean_files
5283ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5284# Try to create an executable without -o first, disregard a.out.
5285# It will help us diagnose broken compilers, and finding out an intuition
5286# of exeext.
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5288$as_echo_n "checking whether the C compiler works... " >&6; }
5289ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5290
5291# The possible output files:
5292ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5293
5294ac_rmfiles=
5295for ac_file in $ac_files
5296do
5297  case $ac_file in
5298    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5299    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5300  esac
5301done
5302rm -f $ac_rmfiles
5303
5304if { { ac_try="$ac_link_default"
5305case "(($ac_try" in
5306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307  *) ac_try_echo=$ac_try;;
5308esac
5309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5310$as_echo "$ac_try_echo"; } >&5
5311  (eval "$ac_link_default") 2>&5
5312  ac_status=$?
5313  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5314  test $ac_status = 0; }; then :
5315  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5316# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5317# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5318# so that the user can short-circuit this test for compilers unknown to
5319# Autoconf.
5320for ac_file in $ac_files ''
5321do
5322  test -f "$ac_file" || continue
5323  case $ac_file in
5324    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5325	;;
5326    [ab].out )
5327	# We found the default executable, but exeext='' is most
5328	# certainly right.
5329	break;;
5330    *.* )
5331	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5332	then :; else
5333	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5334	fi
5335	# We set ac_cv_exeext here because the later test for it is not
5336	# safe: cross compilers may not add the suffix if given an `-o'
5337	# argument, so we may need to know it at that point already.
5338	# Even if this section looks crufty: it has the advantage of
5339	# actually working.
5340	break;;
5341    * )
5342	break;;
5343  esac
5344done
5345test "$ac_cv_exeext" = no && ac_cv_exeext=
5346
5347else
5348  ac_file=''
5349fi
5350if test -z "$ac_file"; then :
5351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352$as_echo "no" >&6; }
5353$as_echo "$as_me: failed program was:" >&5
5354sed 's/^/| /' conftest.$ac_ext >&5
5355
5356{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5358as_fn_error 77 "C compiler cannot create executables
5359See \`config.log' for more details" "$LINENO" 5; }
5360else
5361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5362$as_echo "yes" >&6; }
5363fi
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5365$as_echo_n "checking for C compiler default output file name... " >&6; }
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5367$as_echo "$ac_file" >&6; }
5368ac_exeext=$ac_cv_exeext
5369
5370rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5371ac_clean_files=$ac_clean_files_save
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5373$as_echo_n "checking for suffix of executables... " >&6; }
5374if { { ac_try="$ac_link"
5375case "(($ac_try" in
5376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377  *) ac_try_echo=$ac_try;;
5378esac
5379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5380$as_echo "$ac_try_echo"; } >&5
5381  (eval "$ac_link") 2>&5
5382  ac_status=$?
5383  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5384  test $ac_status = 0; }; then :
5385  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5386# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5387# work properly (i.e., refer to `conftest.exe'), while it won't with
5388# `rm'.
5389for ac_file in conftest.exe conftest conftest.*; do
5390  test -f "$ac_file" || continue
5391  case $ac_file in
5392    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5393    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5394	  break;;
5395    * ) break;;
5396  esac
5397done
5398else
5399  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5401as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5402See \`config.log' for more details" "$LINENO" 5; }
5403fi
5404rm -f conftest conftest$ac_cv_exeext
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5406$as_echo "$ac_cv_exeext" >&6; }
5407
5408rm -f conftest.$ac_ext
5409EXEEXT=$ac_cv_exeext
5410ac_exeext=$EXEEXT
5411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412/* end confdefs.h.  */
5413#include <stdio.h>
5414int
5415main ()
5416{
5417FILE *f = fopen ("conftest.out", "w");
5418 return ferror (f) || fclose (f) != 0;
5419
5420  ;
5421  return 0;
5422}
5423_ACEOF
5424ac_clean_files="$ac_clean_files conftest.out"
5425# Check that the compiler produces executables we can run.  If not, either
5426# the compiler is broken, or we cross compile.
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5428$as_echo_n "checking whether we are cross compiling... " >&6; }
5429if test "$cross_compiling" != yes; then
5430  { { ac_try="$ac_link"
5431case "(($ac_try" in
5432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433  *) ac_try_echo=$ac_try;;
5434esac
5435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5436$as_echo "$ac_try_echo"; } >&5
5437  (eval "$ac_link") 2>&5
5438  ac_status=$?
5439  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5440  test $ac_status = 0; }
5441  if { ac_try='./conftest$ac_cv_exeext'
5442  { { case "(($ac_try" in
5443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444  *) ac_try_echo=$ac_try;;
5445esac
5446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5447$as_echo "$ac_try_echo"; } >&5
5448  (eval "$ac_try") 2>&5
5449  ac_status=$?
5450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5451  test $ac_status = 0; }; }; then
5452    cross_compiling=no
5453  else
5454    if test "$cross_compiling" = maybe; then
5455	cross_compiling=yes
5456    else
5457	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5459as_fn_error $? "cannot run C compiled programs.
5460If you meant to cross compile, use \`--host'.
5461See \`config.log' for more details" "$LINENO" 5; }
5462    fi
5463  fi
5464fi
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5466$as_echo "$cross_compiling" >&6; }
5467
5468rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5469ac_clean_files=$ac_clean_files_save
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5471$as_echo_n "checking for suffix of object files... " >&6; }
5472if ${ac_cv_objext+:} false; then :
5473  $as_echo_n "(cached) " >&6
5474else
5475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476/* end confdefs.h.  */
5477
5478int
5479main ()
5480{
5481
5482  ;
5483  return 0;
5484}
5485_ACEOF
5486rm -f conftest.o conftest.obj
5487if { { ac_try="$ac_compile"
5488case "(($ac_try" in
5489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490  *) ac_try_echo=$ac_try;;
5491esac
5492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5493$as_echo "$ac_try_echo"; } >&5
5494  (eval "$ac_compile") 2>&5
5495  ac_status=$?
5496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5497  test $ac_status = 0; }; then :
5498  for ac_file in conftest.o conftest.obj conftest.*; do
5499  test -f "$ac_file" || continue;
5500  case $ac_file in
5501    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5502    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5503       break;;
5504  esac
5505done
5506else
5507  $as_echo "$as_me: failed program was:" >&5
5508sed 's/^/| /' conftest.$ac_ext >&5
5509
5510{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5512as_fn_error $? "cannot compute suffix of object files: cannot compile
5513See \`config.log' for more details" "$LINENO" 5; }
5514fi
5515rm -f conftest.$ac_cv_objext conftest.$ac_ext
5516fi
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5518$as_echo "$ac_cv_objext" >&6; }
5519OBJEXT=$ac_cv_objext
5520ac_objext=$OBJEXT
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5522$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5523if ${ac_cv_c_compiler_gnu+:} false; then :
5524  $as_echo_n "(cached) " >&6
5525else
5526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527/* end confdefs.h.  */
5528
5529int
5530main ()
5531{
5532#ifndef __GNUC__
5533       choke me
5534#endif
5535
5536  ;
5537  return 0;
5538}
5539_ACEOF
5540if ac_fn_c_try_compile "$LINENO"; then :
5541  ac_compiler_gnu=yes
5542else
5543  ac_compiler_gnu=no
5544fi
5545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546ac_cv_c_compiler_gnu=$ac_compiler_gnu
5547
5548fi
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5550$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5551if test $ac_compiler_gnu = yes; then
5552  GCC=yes
5553else
5554  GCC=
5555fi
5556ac_test_CFLAGS=${CFLAGS+set}
5557ac_save_CFLAGS=$CFLAGS
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5559$as_echo_n "checking whether $CC accepts -g... " >&6; }
5560if ${ac_cv_prog_cc_g+:} false; then :
5561  $as_echo_n "(cached) " >&6
5562else
5563  ac_save_c_werror_flag=$ac_c_werror_flag
5564   ac_c_werror_flag=yes
5565   ac_cv_prog_cc_g=no
5566   CFLAGS="-g"
5567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568/* end confdefs.h.  */
5569
5570int
5571main ()
5572{
5573
5574  ;
5575  return 0;
5576}
5577_ACEOF
5578if ac_fn_c_try_compile "$LINENO"; then :
5579  ac_cv_prog_cc_g=yes
5580else
5581  CFLAGS=""
5582      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583/* end confdefs.h.  */
5584
5585int
5586main ()
5587{
5588
5589  ;
5590  return 0;
5591}
5592_ACEOF
5593if ac_fn_c_try_compile "$LINENO"; then :
5594
5595else
5596  ac_c_werror_flag=$ac_save_c_werror_flag
5597	 CFLAGS="-g"
5598	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599/* end confdefs.h.  */
5600
5601int
5602main ()
5603{
5604
5605  ;
5606  return 0;
5607}
5608_ACEOF
5609if ac_fn_c_try_compile "$LINENO"; then :
5610  ac_cv_prog_cc_g=yes
5611fi
5612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613fi
5614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615fi
5616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5617   ac_c_werror_flag=$ac_save_c_werror_flag
5618fi
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5620$as_echo "$ac_cv_prog_cc_g" >&6; }
5621if test "$ac_test_CFLAGS" = set; then
5622  CFLAGS=$ac_save_CFLAGS
5623elif test $ac_cv_prog_cc_g = yes; then
5624  if test "$GCC" = yes; then
5625    CFLAGS="-g -O2"
5626  else
5627    CFLAGS="-g"
5628  fi
5629else
5630  if test "$GCC" = yes; then
5631    CFLAGS="-O2"
5632  else
5633    CFLAGS=
5634  fi
5635fi
5636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5637$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5638if ${ac_cv_prog_cc_c89+:} false; then :
5639  $as_echo_n "(cached) " >&6
5640else
5641  ac_cv_prog_cc_c89=no
5642ac_save_CC=$CC
5643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644/* end confdefs.h.  */
5645#include <stdarg.h>
5646#include <stdio.h>
5647struct stat;
5648/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5649struct buf { int x; };
5650FILE * (*rcsopen) (struct buf *, struct stat *, int);
5651static char *e (p, i)
5652     char **p;
5653     int i;
5654{
5655  return p[i];
5656}
5657static char *f (char * (*g) (char **, int), char **p, ...)
5658{
5659  char *s;
5660  va_list v;
5661  va_start (v,p);
5662  s = g (p, va_arg (v,int));
5663  va_end (v);
5664  return s;
5665}
5666
5667/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5668   function prototypes and stuff, but not '\xHH' hex character constants.
5669   These don't provoke an error unfortunately, instead are silently treated
5670   as 'x'.  The following induces an error, until -std is added to get
5671   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5672   array size at least.  It's necessary to write '\x00'==0 to get something
5673   that's true only with -std.  */
5674int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5675
5676/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5677   inside strings and character constants.  */
5678#define FOO(x) 'x'
5679int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5680
5681int test (int i, double x);
5682struct s1 {int (*f) (int a);};
5683struct s2 {int (*f) (double a);};
5684int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5685int argc;
5686char **argv;
5687int
5688main ()
5689{
5690return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5691  ;
5692  return 0;
5693}
5694_ACEOF
5695for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5696	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5697do
5698  CC="$ac_save_CC $ac_arg"
5699  if ac_fn_c_try_compile "$LINENO"; then :
5700  ac_cv_prog_cc_c89=$ac_arg
5701fi
5702rm -f core conftest.err conftest.$ac_objext
5703  test "x$ac_cv_prog_cc_c89" != "xno" && break
5704done
5705rm -f conftest.$ac_ext
5706CC=$ac_save_CC
5707
5708fi
5709# AC_CACHE_VAL
5710case "x$ac_cv_prog_cc_c89" in
5711  x)
5712    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5713$as_echo "none needed" >&6; } ;;
5714  xno)
5715    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5716$as_echo "unsupported" >&6; } ;;
5717  *)
5718    CC="$CC $ac_cv_prog_cc_c89"
5719    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5720$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5721esac
5722if test "x$ac_cv_prog_cc_c89" != xno; then :
5723
5724fi
5725
5726ac_ext=c
5727ac_cpp='$CPP $CPPFLAGS'
5728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730ac_compiler_gnu=$ac_cv_c_compiler_gnu
5731
5732ac_ext=c
5733ac_cpp='$CPP $CPPFLAGS'
5734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5736ac_compiler_gnu=$ac_cv_c_compiler_gnu
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5738$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5739if ${am_cv_prog_cc_c_o+:} false; then :
5740  $as_echo_n "(cached) " >&6
5741else
5742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743/* end confdefs.h.  */
5744
5745int
5746main ()
5747{
5748
5749  ;
5750  return 0;
5751}
5752_ACEOF
5753  # Make sure it works both with $CC and with simple cc.
5754  # Following AC_PROG_CC_C_O, we do the test twice because some
5755  # compilers refuse to overwrite an existing .o file with -o,
5756  # though they will create one.
5757  am_cv_prog_cc_c_o=yes
5758  for am_i in 1 2; do
5759    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5760   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5761   ac_status=$?
5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763   (exit $ac_status); } \
5764         && test -f conftest2.$ac_objext; then
5765      : OK
5766    else
5767      am_cv_prog_cc_c_o=no
5768      break
5769    fi
5770  done
5771  rm -f core conftest*
5772  unset am_i
5773fi
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5775$as_echo "$am_cv_prog_cc_c_o" >&6; }
5776if test "$am_cv_prog_cc_c_o" != yes; then
5777   # Losing compiler, so override with the script.
5778   # FIXME: It is wrong to rewrite CC.
5779   # But if we don't then we get into trouble of one sort or another.
5780   # A longer-term fix would be to have automake use am__CC in this case,
5781   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5782   CC="$am_aux_dir/compile $CC"
5783fi
5784ac_ext=c
5785ac_cpp='$CPP $CPPFLAGS'
5786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788ac_compiler_gnu=$ac_cv_c_compiler_gnu
5789
5790DEPDIR="${am__leading_dot}deps"
5791
5792ac_config_commands="$ac_config_commands depfiles"
5793
5794
5795am_make=${MAKE-make}
5796cat > confinc << 'END'
5797am__doit:
5798	@echo this is the am__doit target
5799.PHONY: am__doit
5800END
5801# If we don't find an include directive, just comment out the code.
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5803$as_echo_n "checking for style of include used by $am_make... " >&6; }
5804am__include="#"
5805am__quote=
5806_am_result=none
5807# First try GNU make style include.
5808echo "include confinc" > confmf
5809# Ignore all kinds of additional output from 'make'.
5810case `$am_make -s -f confmf 2> /dev/null` in #(
5811*the\ am__doit\ target*)
5812  am__include=include
5813  am__quote=
5814  _am_result=GNU
5815  ;;
5816esac
5817# Now try BSD make style include.
5818if test "$am__include" = "#"; then
5819   echo '.include "confinc"' > confmf
5820   case `$am_make -s -f confmf 2> /dev/null` in #(
5821   *the\ am__doit\ target*)
5822     am__include=.include
5823     am__quote="\""
5824     _am_result=BSD
5825     ;;
5826   esac
5827fi
5828
5829
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5831$as_echo "$_am_result" >&6; }
5832rm -f confinc confmf
5833
5834# Check whether --enable-dependency-tracking was given.
5835if test "${enable_dependency_tracking+set}" = set; then :
5836  enableval=$enable_dependency_tracking;
5837fi
5838
5839if test "x$enable_dependency_tracking" != xno; then
5840  am_depcomp="$ac_aux_dir/depcomp"
5841  AMDEPBACKSLASH='\'
5842  am__nodep='_no'
5843fi
5844 if test "x$enable_dependency_tracking" != xno; then
5845  AMDEP_TRUE=
5846  AMDEP_FALSE='#'
5847else
5848  AMDEP_TRUE='#'
5849  AMDEP_FALSE=
5850fi
5851
5852
5853
5854depcc="$CC"   am_compiler_list=
5855
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5857$as_echo_n "checking dependency style of $depcc... " >&6; }
5858if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5859  $as_echo_n "(cached) " >&6
5860else
5861  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5862  # We make a subdir and do the tests there.  Otherwise we can end up
5863  # making bogus files that we don't know about and never remove.  For
5864  # instance it was reported that on HP-UX the gcc test will end up
5865  # making a dummy file named 'D' -- because '-MD' means "put the output
5866  # in D".
5867  rm -rf conftest.dir
5868  mkdir conftest.dir
5869  # Copy depcomp to subdir because otherwise we won't find it if we're
5870  # using a relative directory.
5871  cp "$am_depcomp" conftest.dir
5872  cd conftest.dir
5873  # We will build objects and dependencies in a subdirectory because
5874  # it helps to detect inapplicable dependency modes.  For instance
5875  # both Tru64's cc and ICC support -MD to output dependencies as a
5876  # side effect of compilation, but ICC will put the dependencies in
5877  # the current directory while Tru64 will put them in the object
5878  # directory.
5879  mkdir sub
5880
5881  am_cv_CC_dependencies_compiler_type=none
5882  if test "$am_compiler_list" = ""; then
5883     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5884  fi
5885  am__universal=false
5886  case " $depcc " in #(
5887     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5888     esac
5889
5890  for depmode in $am_compiler_list; do
5891    # Setup a source with many dependencies, because some compilers
5892    # like to wrap large dependency lists on column 80 (with \), and
5893    # we should not choose a depcomp mode which is confused by this.
5894    #
5895    # We need to recreate these files for each test, as the compiler may
5896    # overwrite some of them when testing with obscure command lines.
5897    # This happens at least with the AIX C compiler.
5898    : > sub/conftest.c
5899    for i in 1 2 3 4 5 6; do
5900      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5901      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5902      # Solaris 10 /bin/sh.
5903      echo '/* dummy */' > sub/conftst$i.h
5904    done
5905    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5906
5907    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5908    # mode.  It turns out that the SunPro C++ compiler does not properly
5909    # handle '-M -o', and we need to detect this.  Also, some Intel
5910    # versions had trouble with output in subdirs.
5911    am__obj=sub/conftest.${OBJEXT-o}
5912    am__minus_obj="-o $am__obj"
5913    case $depmode in
5914    gcc)
5915      # This depmode causes a compiler race in universal mode.
5916      test "$am__universal" = false || continue
5917      ;;
5918    nosideeffect)
5919      # After this tag, mechanisms are not by side-effect, so they'll
5920      # only be used when explicitly requested.
5921      if test "x$enable_dependency_tracking" = xyes; then
5922	continue
5923      else
5924	break
5925      fi
5926      ;;
5927    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5928      # This compiler won't grok '-c -o', but also, the minuso test has
5929      # not run yet.  These depmodes are late enough in the game, and
5930      # so weak that their functioning should not be impacted.
5931      am__obj=conftest.${OBJEXT-o}
5932      am__minus_obj=
5933      ;;
5934    none) break ;;
5935    esac
5936    if depmode=$depmode \
5937       source=sub/conftest.c object=$am__obj \
5938       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5939       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5940         >/dev/null 2>conftest.err &&
5941       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5942       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5943       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5944       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5945      # icc doesn't choke on unknown options, it will just issue warnings
5946      # or remarks (even with -Werror).  So we grep stderr for any message
5947      # that says an option was ignored or not supported.
5948      # When given -MP, icc 7.0 and 7.1 complain thusly:
5949      #   icc: Command line warning: ignoring option '-M'; no argument required
5950      # The diagnosis changed in icc 8.0:
5951      #   icc: Command line remark: option '-MP' not supported
5952      if (grep 'ignoring option' conftest.err ||
5953          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5954        am_cv_CC_dependencies_compiler_type=$depmode
5955        break
5956      fi
5957    fi
5958  done
5959
5960  cd ..
5961  rm -rf conftest.dir
5962else
5963  am_cv_CC_dependencies_compiler_type=none
5964fi
5965
5966fi
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5968$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5969CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5970
5971 if
5972  test "x$enable_dependency_tracking" != xno \
5973  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5974  am__fastdepCC_TRUE=
5975  am__fastdepCC_FALSE='#'
5976else
5977  am__fastdepCC_TRUE='#'
5978  am__fastdepCC_FALSE=
5979fi
5980
5981
5982
5983ac_ext=c
5984ac_cpp='$CPP $CPPFLAGS'
5985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5987ac_compiler_gnu=$ac_cv_c_compiler_gnu
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5989$as_echo_n "checking how to run the C preprocessor... " >&6; }
5990# On Suns, sometimes $CPP names a directory.
5991if test -n "$CPP" && test -d "$CPP"; then
5992  CPP=
5993fi
5994if test -z "$CPP"; then
5995  if ${ac_cv_prog_CPP+:} false; then :
5996  $as_echo_n "(cached) " >&6
5997else
5998      # Double quotes because CPP needs to be expanded
5999    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6000    do
6001      ac_preproc_ok=false
6002for ac_c_preproc_warn_flag in '' yes
6003do
6004  # Use a header file that comes with gcc, so configuring glibc
6005  # with a fresh cross-compiler works.
6006  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6007  # <limits.h> exists even on freestanding compilers.
6008  # On the NeXT, cc -E runs the code through the compiler's parser,
6009  # not just through cpp. "Syntax error" is here to catch this case.
6010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011/* end confdefs.h.  */
6012#ifdef __STDC__
6013# include <limits.h>
6014#else
6015# include <assert.h>
6016#endif
6017		     Syntax error
6018_ACEOF
6019if ac_fn_c_try_cpp "$LINENO"; then :
6020
6021else
6022  # Broken: fails on valid input.
6023continue
6024fi
6025rm -f conftest.err conftest.i conftest.$ac_ext
6026
6027  # OK, works on sane cases.  Now check whether nonexistent headers
6028  # can be detected and how.
6029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030/* end confdefs.h.  */
6031#include <ac_nonexistent.h>
6032_ACEOF
6033if ac_fn_c_try_cpp "$LINENO"; then :
6034  # Broken: success on invalid input.
6035continue
6036else
6037  # Passes both tests.
6038ac_preproc_ok=:
6039break
6040fi
6041rm -f conftest.err conftest.i conftest.$ac_ext
6042
6043done
6044# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6045rm -f conftest.i conftest.err conftest.$ac_ext
6046if $ac_preproc_ok; then :
6047  break
6048fi
6049
6050    done
6051    ac_cv_prog_CPP=$CPP
6052
6053fi
6054  CPP=$ac_cv_prog_CPP
6055else
6056  ac_cv_prog_CPP=$CPP
6057fi
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6059$as_echo "$CPP" >&6; }
6060ac_preproc_ok=false
6061for ac_c_preproc_warn_flag in '' yes
6062do
6063  # Use a header file that comes with gcc, so configuring glibc
6064  # with a fresh cross-compiler works.
6065  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6066  # <limits.h> exists even on freestanding compilers.
6067  # On the NeXT, cc -E runs the code through the compiler's parser,
6068  # not just through cpp. "Syntax error" is here to catch this case.
6069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070/* end confdefs.h.  */
6071#ifdef __STDC__
6072# include <limits.h>
6073#else
6074# include <assert.h>
6075#endif
6076		     Syntax error
6077_ACEOF
6078if ac_fn_c_try_cpp "$LINENO"; then :
6079
6080else
6081  # Broken: fails on valid input.
6082continue
6083fi
6084rm -f conftest.err conftest.i conftest.$ac_ext
6085
6086  # OK, works on sane cases.  Now check whether nonexistent headers
6087  # can be detected and how.
6088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089/* end confdefs.h.  */
6090#include <ac_nonexistent.h>
6091_ACEOF
6092if ac_fn_c_try_cpp "$LINENO"; then :
6093  # Broken: success on invalid input.
6094continue
6095else
6096  # Passes both tests.
6097ac_preproc_ok=:
6098break
6099fi
6100rm -f conftest.err conftest.i conftest.$ac_ext
6101
6102done
6103# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6104rm -f conftest.i conftest.err conftest.$ac_ext
6105if $ac_preproc_ok; then :
6106
6107else
6108  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6110as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6111See \`config.log' for more details" "$LINENO" 5; }
6112fi
6113
6114ac_ext=c
6115ac_cpp='$CPP $CPPFLAGS'
6116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6118ac_compiler_gnu=$ac_cv_c_compiler_gnu
6119
6120
6121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6122$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6123if ${ac_cv_path_GREP+:} false; then :
6124  $as_echo_n "(cached) " >&6
6125else
6126  if test -z "$GREP"; then
6127  ac_path_GREP_found=false
6128  # Loop through the user's path and test for each of PROGNAME-LIST
6129  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6131do
6132  IFS=$as_save_IFS
6133  test -z "$as_dir" && as_dir=.
6134    for ac_prog in grep ggrep; do
6135    for ac_exec_ext in '' $ac_executable_extensions; do
6136      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6137      as_fn_executable_p "$ac_path_GREP" || continue
6138# Check for GNU ac_path_GREP and select it if it is found.
6139  # Check for GNU $ac_path_GREP
6140case `"$ac_path_GREP" --version 2>&1` in
6141*GNU*)
6142  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6143*)
6144  ac_count=0
6145  $as_echo_n 0123456789 >"conftest.in"
6146  while :
6147  do
6148    cat "conftest.in" "conftest.in" >"conftest.tmp"
6149    mv "conftest.tmp" "conftest.in"
6150    cp "conftest.in" "conftest.nl"
6151    $as_echo 'GREP' >> "conftest.nl"
6152    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6153    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6154    as_fn_arith $ac_count + 1 && ac_count=$as_val
6155    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6156      # Best one so far, save it but keep looking for a better one
6157      ac_cv_path_GREP="$ac_path_GREP"
6158      ac_path_GREP_max=$ac_count
6159    fi
6160    # 10*(2^10) chars as input seems more than enough
6161    test $ac_count -gt 10 && break
6162  done
6163  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6164esac
6165
6166      $ac_path_GREP_found && break 3
6167    done
6168  done
6169  done
6170IFS=$as_save_IFS
6171  if test -z "$ac_cv_path_GREP"; then
6172    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6173  fi
6174else
6175  ac_cv_path_GREP=$GREP
6176fi
6177
6178fi
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6180$as_echo "$ac_cv_path_GREP" >&6; }
6181 GREP="$ac_cv_path_GREP"
6182
6183
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6185$as_echo_n "checking for egrep... " >&6; }
6186if ${ac_cv_path_EGREP+:} false; then :
6187  $as_echo_n "(cached) " >&6
6188else
6189  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6190   then ac_cv_path_EGREP="$GREP -E"
6191   else
6192     if test -z "$EGREP"; then
6193  ac_path_EGREP_found=false
6194  # Loop through the user's path and test for each of PROGNAME-LIST
6195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6197do
6198  IFS=$as_save_IFS
6199  test -z "$as_dir" && as_dir=.
6200    for ac_prog in egrep; do
6201    for ac_exec_ext in '' $ac_executable_extensions; do
6202      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6203      as_fn_executable_p "$ac_path_EGREP" || continue
6204# Check for GNU ac_path_EGREP and select it if it is found.
6205  # Check for GNU $ac_path_EGREP
6206case `"$ac_path_EGREP" --version 2>&1` in
6207*GNU*)
6208  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6209*)
6210  ac_count=0
6211  $as_echo_n 0123456789 >"conftest.in"
6212  while :
6213  do
6214    cat "conftest.in" "conftest.in" >"conftest.tmp"
6215    mv "conftest.tmp" "conftest.in"
6216    cp "conftest.in" "conftest.nl"
6217    $as_echo 'EGREP' >> "conftest.nl"
6218    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6219    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6220    as_fn_arith $ac_count + 1 && ac_count=$as_val
6221    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6222      # Best one so far, save it but keep looking for a better one
6223      ac_cv_path_EGREP="$ac_path_EGREP"
6224      ac_path_EGREP_max=$ac_count
6225    fi
6226    # 10*(2^10) chars as input seems more than enough
6227    test $ac_count -gt 10 && break
6228  done
6229  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6230esac
6231
6232      $ac_path_EGREP_found && break 3
6233    done
6234  done
6235  done
6236IFS=$as_save_IFS
6237  if test -z "$ac_cv_path_EGREP"; then
6238    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6239  fi
6240else
6241  ac_cv_path_EGREP=$EGREP
6242fi
6243
6244   fi
6245fi
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6247$as_echo "$ac_cv_path_EGREP" >&6; }
6248 EGREP="$ac_cv_path_EGREP"
6249
6250
6251
6252
6253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6254$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6255if ${gl_cv_c_amsterdam_compiler+:} false; then :
6256  $as_echo_n "(cached) " >&6
6257else
6258
6259      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260/* end confdefs.h.  */
6261
6262#ifdef __ACK__
6263Amsterdam
6264#endif
6265
6266_ACEOF
6267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6268  $EGREP "Amsterdam" >/dev/null 2>&1; then :
6269  gl_cv_c_amsterdam_compiler=yes
6270else
6271  gl_cv_c_amsterdam_compiler=no
6272fi
6273rm -f conftest*
6274
6275
6276fi
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6278$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6279  if test -z "$AR"; then
6280    if test $gl_cv_c_amsterdam_compiler = yes; then
6281      AR='cc -c.a'
6282      if test -z "$ARFLAGS"; then
6283        ARFLAGS='-o'
6284      fi
6285    else
6286                  if test -n "$ac_tool_prefix"; then
6287  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6288set dummy ${ac_tool_prefix}ar; ac_word=$2
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290$as_echo_n "checking for $ac_word... " >&6; }
6291if ${ac_cv_prog_AR+:} false; then :
6292  $as_echo_n "(cached) " >&6
6293else
6294  if test -n "$AR"; then
6295  ac_cv_prog_AR="$AR" # Let the user override the test.
6296else
6297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298for as_dir in $PATH
6299do
6300  IFS=$as_save_IFS
6301  test -z "$as_dir" && as_dir=.
6302    for ac_exec_ext in '' $ac_executable_extensions; do
6303  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304    ac_cv_prog_AR="${ac_tool_prefix}ar"
6305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306    break 2
6307  fi
6308done
6309  done
6310IFS=$as_save_IFS
6311
6312fi
6313fi
6314AR=$ac_cv_prog_AR
6315if test -n "$AR"; then
6316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6317$as_echo "$AR" >&6; }
6318else
6319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320$as_echo "no" >&6; }
6321fi
6322
6323
6324fi
6325if test -z "$ac_cv_prog_AR"; then
6326  ac_ct_AR=$AR
6327  # Extract the first word of "ar", so it can be a program name with args.
6328set dummy ar; ac_word=$2
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330$as_echo_n "checking for $ac_word... " >&6; }
6331if ${ac_cv_prog_ac_ct_AR+:} false; then :
6332  $as_echo_n "(cached) " >&6
6333else
6334  if test -n "$ac_ct_AR"; then
6335  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6336else
6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338for as_dir in $PATH
6339do
6340  IFS=$as_save_IFS
6341  test -z "$as_dir" && as_dir=.
6342    for ac_exec_ext in '' $ac_executable_extensions; do
6343  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6344    ac_cv_prog_ac_ct_AR="ar"
6345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346    break 2
6347  fi
6348done
6349  done
6350IFS=$as_save_IFS
6351
6352fi
6353fi
6354ac_ct_AR=$ac_cv_prog_ac_ct_AR
6355if test -n "$ac_ct_AR"; then
6356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6357$as_echo "$ac_ct_AR" >&6; }
6358else
6359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360$as_echo "no" >&6; }
6361fi
6362
6363  if test "x$ac_ct_AR" = x; then
6364    AR="ar"
6365  else
6366    case $cross_compiling:$ac_tool_warned in
6367yes:)
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370ac_tool_warned=yes ;;
6371esac
6372    AR=$ac_ct_AR
6373  fi
6374else
6375  AR="$ac_cv_prog_AR"
6376fi
6377
6378      if test -z "$ARFLAGS"; then
6379        ARFLAGS='cru'
6380      fi
6381    fi
6382  else
6383    if test -z "$ARFLAGS"; then
6384      ARFLAGS='cru'
6385    fi
6386  fi
6387
6388
6389  if test -z "$RANLIB"; then
6390    if test $gl_cv_c_amsterdam_compiler = yes; then
6391      RANLIB=':'
6392    else
6393            if test -n "$ac_tool_prefix"; then
6394  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6395set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397$as_echo_n "checking for $ac_word... " >&6; }
6398if ${ac_cv_prog_RANLIB+:} false; then :
6399  $as_echo_n "(cached) " >&6
6400else
6401  if test -n "$RANLIB"; then
6402  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6403else
6404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405for as_dir in $PATH
6406do
6407  IFS=$as_save_IFS
6408  test -z "$as_dir" && as_dir=.
6409    for ac_exec_ext in '' $ac_executable_extensions; do
6410  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6411    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6413    break 2
6414  fi
6415done
6416  done
6417IFS=$as_save_IFS
6418
6419fi
6420fi
6421RANLIB=$ac_cv_prog_RANLIB
6422if test -n "$RANLIB"; then
6423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6424$as_echo "$RANLIB" >&6; }
6425else
6426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427$as_echo "no" >&6; }
6428fi
6429
6430
6431fi
6432if test -z "$ac_cv_prog_RANLIB"; then
6433  ac_ct_RANLIB=$RANLIB
6434  # Extract the first word of "ranlib", so it can be a program name with args.
6435set dummy ranlib; ac_word=$2
6436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6437$as_echo_n "checking for $ac_word... " >&6; }
6438if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6439  $as_echo_n "(cached) " >&6
6440else
6441  if test -n "$ac_ct_RANLIB"; then
6442  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6443else
6444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445for as_dir in $PATH
6446do
6447  IFS=$as_save_IFS
6448  test -z "$as_dir" && as_dir=.
6449    for ac_exec_ext in '' $ac_executable_extensions; do
6450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6451    ac_cv_prog_ac_ct_RANLIB="ranlib"
6452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6453    break 2
6454  fi
6455done
6456  done
6457IFS=$as_save_IFS
6458
6459fi
6460fi
6461ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6462if test -n "$ac_ct_RANLIB"; then
6463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6464$as_echo "$ac_ct_RANLIB" >&6; }
6465else
6466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467$as_echo "no" >&6; }
6468fi
6469
6470  if test "x$ac_ct_RANLIB" = x; then
6471    RANLIB=":"
6472  else
6473    case $cross_compiling:$ac_tool_warned in
6474yes:)
6475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477ac_tool_warned=yes ;;
6478esac
6479    RANLIB=$ac_ct_RANLIB
6480  fi
6481else
6482  RANLIB="$ac_cv_prog_RANLIB"
6483fi
6484
6485    fi
6486  fi
6487
6488
6489
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6491$as_echo_n "checking for ANSI C header files... " >&6; }
6492if ${ac_cv_header_stdc+:} false; then :
6493  $as_echo_n "(cached) " >&6
6494else
6495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496/* end confdefs.h.  */
6497#include <stdlib.h>
6498#include <stdarg.h>
6499#include <string.h>
6500#include <float.h>
6501
6502int
6503main ()
6504{
6505
6506  ;
6507  return 0;
6508}
6509_ACEOF
6510if ac_fn_c_try_compile "$LINENO"; then :
6511  ac_cv_header_stdc=yes
6512else
6513  ac_cv_header_stdc=no
6514fi
6515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516
6517if test $ac_cv_header_stdc = yes; then
6518  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520/* end confdefs.h.  */
6521#include <string.h>
6522
6523_ACEOF
6524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6525  $EGREP "memchr" >/dev/null 2>&1; then :
6526
6527else
6528  ac_cv_header_stdc=no
6529fi
6530rm -f conftest*
6531
6532fi
6533
6534if test $ac_cv_header_stdc = yes; then
6535  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537/* end confdefs.h.  */
6538#include <stdlib.h>
6539
6540_ACEOF
6541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6542  $EGREP "free" >/dev/null 2>&1; then :
6543
6544else
6545  ac_cv_header_stdc=no
6546fi
6547rm -f conftest*
6548
6549fi
6550
6551if test $ac_cv_header_stdc = yes; then
6552  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6553  if test "$cross_compiling" = yes; then :
6554  :
6555else
6556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557/* end confdefs.h.  */
6558#include <ctype.h>
6559#include <stdlib.h>
6560#if ((' ' & 0x0FF) == 0x020)
6561# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6562# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6563#else
6564# define ISLOWER(c) \
6565		   (('a' <= (c) && (c) <= 'i') \
6566		     || ('j' <= (c) && (c) <= 'r') \
6567		     || ('s' <= (c) && (c) <= 'z'))
6568# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6569#endif
6570
6571#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6572int
6573main ()
6574{
6575  int i;
6576  for (i = 0; i < 256; i++)
6577    if (XOR (islower (i), ISLOWER (i))
6578	|| toupper (i) != TOUPPER (i))
6579      return 2;
6580  return 0;
6581}
6582_ACEOF
6583if ac_fn_c_try_run "$LINENO"; then :
6584
6585else
6586  ac_cv_header_stdc=no
6587fi
6588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6589  conftest.$ac_objext conftest.beam conftest.$ac_ext
6590fi
6591
6592fi
6593fi
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6595$as_echo "$ac_cv_header_stdc" >&6; }
6596if test $ac_cv_header_stdc = yes; then
6597
6598$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6599
6600fi
6601
6602# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6603for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6604		  inttypes.h stdint.h unistd.h
6605do :
6606  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6607ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6608"
6609if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6610  cat >>confdefs.h <<_ACEOF
6611#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6612_ACEOF
6613
6614fi
6615
6616done
6617
6618
6619
6620  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6621if test "x$ac_cv_header_minix_config_h" = xyes; then :
6622  MINIX=yes
6623else
6624  MINIX=
6625fi
6626
6627
6628  if test "$MINIX" = yes; then
6629
6630$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6631
6632
6633$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6634
6635
6636$as_echo "#define _MINIX 1" >>confdefs.h
6637
6638
6639$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6640
6641  fi
6642
6643
6644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6645$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6646if ${ac_cv_safe_to_define___extensions__+:} false; then :
6647  $as_echo_n "(cached) " >&6
6648else
6649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650/* end confdefs.h.  */
6651
6652#         define __EXTENSIONS__ 1
6653          $ac_includes_default
6654int
6655main ()
6656{
6657
6658  ;
6659  return 0;
6660}
6661_ACEOF
6662if ac_fn_c_try_compile "$LINENO"; then :
6663  ac_cv_safe_to_define___extensions__=yes
6664else
6665  ac_cv_safe_to_define___extensions__=no
6666fi
6667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668fi
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6670$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6671  test $ac_cv_safe_to_define___extensions__ = yes &&
6672    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6673
6674  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6675
6676  $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6677
6678  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6679
6680  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6681
6682  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6683
6684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6685$as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6686if ${ac_cv_should_define__xopen_source+:} false; then :
6687  $as_echo_n "(cached) " >&6
6688else
6689  ac_cv_should_define__xopen_source=no
6690     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h.  */
6692
6693          #include <wchar.h>
6694          mbstate_t x;
6695int
6696main ()
6697{
6698
6699  ;
6700  return 0;
6701}
6702_ACEOF
6703if ac_fn_c_try_compile "$LINENO"; then :
6704
6705else
6706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707/* end confdefs.h.  */
6708
6709             #define _XOPEN_SOURCE 500
6710             #include <wchar.h>
6711             mbstate_t x;
6712int
6713main ()
6714{
6715
6716  ;
6717  return 0;
6718}
6719_ACEOF
6720if ac_fn_c_try_compile "$LINENO"; then :
6721  ac_cv_should_define__xopen_source=yes
6722fi
6723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724fi
6725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726fi
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6728$as_echo "$ac_cv_should_define__xopen_source" >&6; }
6729  test $ac_cv_should_define__xopen_source = yes &&
6730    $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6731
6732
6733
6734
6735
6736
6737
6738
6739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6740$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6741if ${ac_cv_sys_largefile_source+:} false; then :
6742  $as_echo_n "(cached) " >&6
6743else
6744  while :; do
6745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746/* end confdefs.h.  */
6747#include <sys/types.h> /* for off_t */
6748     #include <stdio.h>
6749int
6750main ()
6751{
6752int (*fp) (FILE *, off_t, int) = fseeko;
6753     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6754  ;
6755  return 0;
6756}
6757_ACEOF
6758if ac_fn_c_try_link "$LINENO"; then :
6759  ac_cv_sys_largefile_source=no; break
6760fi
6761rm -f core conftest.err conftest.$ac_objext \
6762    conftest$ac_exeext conftest.$ac_ext
6763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764/* end confdefs.h.  */
6765#define _LARGEFILE_SOURCE 1
6766#include <sys/types.h> /* for off_t */
6767     #include <stdio.h>
6768int
6769main ()
6770{
6771int (*fp) (FILE *, off_t, int) = fseeko;
6772     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6773  ;
6774  return 0;
6775}
6776_ACEOF
6777if ac_fn_c_try_link "$LINENO"; then :
6778  ac_cv_sys_largefile_source=1; break
6779fi
6780rm -f core conftest.err conftest.$ac_objext \
6781    conftest$ac_exeext conftest.$ac_ext
6782  ac_cv_sys_largefile_source=unknown
6783  break
6784done
6785fi
6786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
6787$as_echo "$ac_cv_sys_largefile_source" >&6; }
6788case $ac_cv_sys_largefile_source in #(
6789  no | unknown) ;;
6790  *)
6791cat >>confdefs.h <<_ACEOF
6792#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6793_ACEOF
6794;;
6795esac
6796rm -rf conftest*
6797
6798# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6799# in glibc 2.1.3, but that breaks too many other things.
6800# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6801if test $ac_cv_sys_largefile_source != unknown; then
6802
6803$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
6804
6805fi
6806
6807# Check whether --enable-largefile was given.
6808if test "${enable_largefile+set}" = set; then :
6809  enableval=$enable_largefile;
6810fi
6811
6812if test "$enable_largefile" != no; then
6813
6814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6815$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6816if ${ac_cv_sys_largefile_CC+:} false; then :
6817  $as_echo_n "(cached) " >&6
6818else
6819  ac_cv_sys_largefile_CC=no
6820     if test "$GCC" != yes; then
6821       ac_save_CC=$CC
6822       while :; do
6823         # IRIX 6.2 and later do not support large files by default,
6824         # so use the C compiler's -n32 option if that helps.
6825         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826/* end confdefs.h.  */
6827#include <sys/types.h>
6828 /* Check that off_t can represent 2**63 - 1 correctly.
6829    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6830    since some C++ compilers masquerading as C compilers
6831    incorrectly reject 9223372036854775807.  */
6832#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6833  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6834                       && LARGE_OFF_T % 2147483647 == 1)
6835                      ? 1 : -1];
6836int
6837main ()
6838{
6839
6840  ;
6841  return 0;
6842}
6843_ACEOF
6844         if ac_fn_c_try_compile "$LINENO"; then :
6845  break
6846fi
6847rm -f core conftest.err conftest.$ac_objext
6848         CC="$CC -n32"
6849         if ac_fn_c_try_compile "$LINENO"; then :
6850  ac_cv_sys_largefile_CC=' -n32'; break
6851fi
6852rm -f core conftest.err conftest.$ac_objext
6853         break
6854       done
6855       CC=$ac_save_CC
6856       rm -f conftest.$ac_ext
6857    fi
6858fi
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6860$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6861  if test "$ac_cv_sys_largefile_CC" != no; then
6862    CC=$CC$ac_cv_sys_largefile_CC
6863  fi
6864
6865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6866$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6867if ${ac_cv_sys_file_offset_bits+:} false; then :
6868  $as_echo_n "(cached) " >&6
6869else
6870  while :; do
6871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872/* end confdefs.h.  */
6873#include <sys/types.h>
6874 /* Check that off_t can represent 2**63 - 1 correctly.
6875    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6876    since some C++ compilers masquerading as C compilers
6877    incorrectly reject 9223372036854775807.  */
6878#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6879  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6880                       && LARGE_OFF_T % 2147483647 == 1)
6881                      ? 1 : -1];
6882int
6883main ()
6884{
6885
6886  ;
6887  return 0;
6888}
6889_ACEOF
6890if ac_fn_c_try_compile "$LINENO"; then :
6891  ac_cv_sys_file_offset_bits=no; break
6892fi
6893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895/* end confdefs.h.  */
6896#define _FILE_OFFSET_BITS 64
6897#include <sys/types.h>
6898 /* Check that off_t can represent 2**63 - 1 correctly.
6899    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6900    since some C++ compilers masquerading as C compilers
6901    incorrectly reject 9223372036854775807.  */
6902#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6903  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6904                       && LARGE_OFF_T % 2147483647 == 1)
6905                      ? 1 : -1];
6906int
6907main ()
6908{
6909
6910  ;
6911  return 0;
6912}
6913_ACEOF
6914if ac_fn_c_try_compile "$LINENO"; then :
6915  ac_cv_sys_file_offset_bits=64; break
6916fi
6917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6918  ac_cv_sys_file_offset_bits=unknown
6919  break
6920done
6921fi
6922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6923$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6924case $ac_cv_sys_file_offset_bits in #(
6925  no | unknown) ;;
6926  *)
6927cat >>confdefs.h <<_ACEOF
6928#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6929_ACEOF
6930;;
6931esac
6932rm -rf conftest*
6933  if test $ac_cv_sys_file_offset_bits = unknown; then
6934    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6935$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6936if ${ac_cv_sys_large_files+:} false; then :
6937  $as_echo_n "(cached) " >&6
6938else
6939  while :; do
6940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941/* end confdefs.h.  */
6942#include <sys/types.h>
6943 /* Check that off_t can represent 2**63 - 1 correctly.
6944    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6945    since some C++ compilers masquerading as C compilers
6946    incorrectly reject 9223372036854775807.  */
6947#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6948  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6949                       && LARGE_OFF_T % 2147483647 == 1)
6950                      ? 1 : -1];
6951int
6952main ()
6953{
6954
6955  ;
6956  return 0;
6957}
6958_ACEOF
6959if ac_fn_c_try_compile "$LINENO"; then :
6960  ac_cv_sys_large_files=no; break
6961fi
6962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964/* end confdefs.h.  */
6965#define _LARGE_FILES 1
6966#include <sys/types.h>
6967 /* Check that off_t can represent 2**63 - 1 correctly.
6968    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6969    since some C++ compilers masquerading as C compilers
6970    incorrectly reject 9223372036854775807.  */
6971#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6972  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6973                       && LARGE_OFF_T % 2147483647 == 1)
6974                      ? 1 : -1];
6975int
6976main ()
6977{
6978
6979  ;
6980  return 0;
6981}
6982_ACEOF
6983if ac_fn_c_try_compile "$LINENO"; then :
6984  ac_cv_sys_large_files=1; break
6985fi
6986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6987  ac_cv_sys_large_files=unknown
6988  break
6989done
6990fi
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6992$as_echo "$ac_cv_sys_large_files" >&6; }
6993case $ac_cv_sys_large_files in #(
6994  no | unknown) ;;
6995  *)
6996cat >>confdefs.h <<_ACEOF
6997#define _LARGE_FILES $ac_cv_sys_large_files
6998_ACEOF
6999;;
7000esac
7001rm -rf conftest*
7002  fi
7003
7004
7005$as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
7006
7007fi
7008
7009
7010
7011
7012
7013
7014  # Check whether --enable-threads was given.
7015if test "${enable_threads+set}" = set; then :
7016  enableval=$enable_threads; gl_use_threads=$enableval
7017else
7018  if test -n "$gl_use_threads_default"; then
7019       gl_use_threads="$gl_use_threads_default"
7020     else
7021       case "$host_os" in
7022                                                               osf*) gl_use_threads=no ;;
7023         cygwin*)
7024               case `uname -r` in
7025                 1.[0-5].*) gl_use_threads=no ;;
7026                 *)         gl_use_threads=yes ;;
7027               esac
7028               ;;
7029         *)    gl_use_threads=yes ;;
7030       esac
7031     fi
7032
7033fi
7034
7035  if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7036    # For using <pthread.h>:
7037    case "$host_os" in
7038      osf*)
7039        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7040        # groks <pthread.h>. cc also understands the flag -pthread, but
7041        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7042        # 2. putting a flag into CPPFLAGS that has an effect on the linker
7043        # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7044        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7045        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7046        ;;
7047    esac
7048    # Some systems optimize for single-threaded programs by default, and
7049    # need special flags to disable these optimizations. For example, the
7050    # definition of 'errno' in <errno.h>.
7051    case "$host_os" in
7052      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7053      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7054    esac
7055  fi
7056
7057
7058
7059
7060  # Code from module alloca-opt:
7061  # Code from module arpa_inet:
7062  # Code from module base64:
7063  # Code from module btowc:
7064  # Code from module c-ctype:
7065  # Code from module configmake:
7066  # Code from module dosname:
7067  # Code from module environ:
7068  # Code from module errno:
7069  # Code from module euidaccess:
7070  # Code from module extensions:
7071
7072  # Code from module extern-inline:
7073  # Code from module fcntl-h:
7074  # Code from module fd-hook:
7075  # Code from module float:
7076  # Code from module fseek:
7077  # Code from module fseeko:
7078
7079  # Code from module fstat:
7080  # Code from module fsusage:
7081  # Code from module ftell:
7082  # Code from module ftello:
7083
7084  # Code from module ftruncate:
7085  # Code from module full-read:
7086  # Code from module full-write:
7087  # Code from module getaddrinfo:
7088  # Code from module getgroups:
7089  # Code from module getopt-gnu:
7090  # Code from module getopt-posix:
7091  # Code from module gettext-h:
7092  # Code from module gettimeofday:
7093  # Code from module group-member:
7094  # Code from module havelib:
7095  # Code from module hostent:
7096  # Code from module include_next:
7097  # Code from module inet_ntop:
7098  # Code from module inet_pton:
7099  # Code from module langinfo:
7100  # Code from module largefile:
7101
7102  # Code from module localcharset:
7103  # Code from module locale:
7104  # Code from module localeconv:
7105  # Code from module lock:
7106  # Code from module lseek:
7107  # Code from module lstat:
7108  # Code from module malloc-gnu:
7109  # Code from module malloc-posix:
7110  # Code from module mbrtowc:
7111  # Code from module mbsinit:
7112  # Code from module mbtowc:
7113  # Code from module memchr:
7114  # Code from module mkdtemp:
7115  # Code from module msvc-inval:
7116  # Code from module msvc-nothrow:
7117  # Code from module multiarch:
7118  # Code from module netdb:
7119  # Code from module netinet_in:
7120  # Code from module nl_langinfo:
7121  # Code from module nocrash:
7122  # Code from module pathmax:
7123  # Code from module physmem:
7124  # Code from module raise:
7125  # Code from module read:
7126  # Code from module regex:
7127  # Code from module root-uid:
7128  # Code from module safe-read:
7129  # Code from module safe-write:
7130  # Code from module secure_getenv:
7131  # Code from module servent:
7132  # Code from module signal-h:
7133  # Code from module size_max:
7134  # Code from module snippet/_Noreturn:
7135  # Code from module snippet/arg-nonnull:
7136  # Code from module snippet/c++defs:
7137  # Code from module snippet/warn-on-use:
7138  # Code from module snprintf:
7139  # Code from module socketlib:
7140  # Code from module sockets:
7141  # Code from module socklen:
7142  # Code from module ssize_t:
7143  # Code from module stat:
7144  # Code from module stdalign:
7145  # Code from module stdbool:
7146  # Code from module stddef:
7147  # Code from module stdint:
7148  # Code from module stdio:
7149  # Code from module stdlib:
7150  # Code from module streq:
7151  # Code from module string:
7152  # Code from module sys_socket:
7153  # Code from module sys_stat:
7154  # Code from module sys_time:
7155  # Code from module sys_types:
7156  # Code from module sys_uio:
7157  # Code from module tempname:
7158  # Code from module threadlib:
7159
7160
7161
7162  # Code from module time:
7163  # Code from module unistd:
7164  # Code from module vasnprintf:
7165  # Code from module verify:
7166  # Code from module wchar:
7167  # Code from module wcrtomb:
7168  # Code from module wctype-h:
7169  # Code from module write:
7170  # Code from module xalloc-oversized:
7171  # Code from module xsize:
7172
7173
7174
7175
7176
7177
7178          LIBC_FATAL_STDERR_=1
7179  export LIBC_FATAL_STDERR_
7180
7181ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7182if test "x$ac_cv_type_size_t" = xyes; then :
7183
7184else
7185
7186cat >>confdefs.h <<_ACEOF
7187#define size_t unsigned int
7188_ACEOF
7189
7190fi
7191
7192# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7193# for constant arguments.  Useless!
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7195$as_echo_n "checking for working alloca.h... " >&6; }
7196if ${ac_cv_working_alloca_h+:} false; then :
7197  $as_echo_n "(cached) " >&6
7198else
7199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200/* end confdefs.h.  */
7201#include <alloca.h>
7202int
7203main ()
7204{
7205char *p = (char *) alloca (2 * sizeof (int));
7206			  if (p) return 0;
7207  ;
7208  return 0;
7209}
7210_ACEOF
7211if ac_fn_c_try_link "$LINENO"; then :
7212  ac_cv_working_alloca_h=yes
7213else
7214  ac_cv_working_alloca_h=no
7215fi
7216rm -f core conftest.err conftest.$ac_objext \
7217    conftest$ac_exeext conftest.$ac_ext
7218fi
7219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7220$as_echo "$ac_cv_working_alloca_h" >&6; }
7221if test $ac_cv_working_alloca_h = yes; then
7222
7223$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7224
7225fi
7226
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7228$as_echo_n "checking for alloca... " >&6; }
7229if ${ac_cv_func_alloca_works+:} false; then :
7230  $as_echo_n "(cached) " >&6
7231else
7232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233/* end confdefs.h.  */
7234#ifdef __GNUC__
7235# define alloca __builtin_alloca
7236#else
7237# ifdef _MSC_VER
7238#  include <malloc.h>
7239#  define alloca _alloca
7240# else
7241#  ifdef HAVE_ALLOCA_H
7242#   include <alloca.h>
7243#  else
7244#   ifdef _AIX
7245 #pragma alloca
7246#   else
7247#    ifndef alloca /* predefined by HP cc +Olibcalls */
7248void *alloca (size_t);
7249#    endif
7250#   endif
7251#  endif
7252# endif
7253#endif
7254
7255int
7256main ()
7257{
7258char *p = (char *) alloca (1);
7259				    if (p) return 0;
7260  ;
7261  return 0;
7262}
7263_ACEOF
7264if ac_fn_c_try_link "$LINENO"; then :
7265  ac_cv_func_alloca_works=yes
7266else
7267  ac_cv_func_alloca_works=no
7268fi
7269rm -f core conftest.err conftest.$ac_objext \
7270    conftest$ac_exeext conftest.$ac_ext
7271fi
7272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7273$as_echo "$ac_cv_func_alloca_works" >&6; }
7274
7275if test $ac_cv_func_alloca_works = yes; then
7276
7277$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7278
7279else
7280  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7281# that cause trouble.  Some versions do not even contain alloca or
7282# contain a buggy version.  If you still want to use their alloca,
7283# use ar to extract alloca.o from them instead of compiling alloca.c.
7284
7285
7286
7287
7288
7289ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7290
7291$as_echo "#define C_ALLOCA 1" >>confdefs.h
7292
7293
7294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7295$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7296if ${ac_cv_os_cray+:} false; then :
7297  $as_echo_n "(cached) " >&6
7298else
7299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300/* end confdefs.h.  */
7301#if defined CRAY && ! defined CRAY2
7302webecray
7303#else
7304wenotbecray
7305#endif
7306
7307_ACEOF
7308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7309  $EGREP "webecray" >/dev/null 2>&1; then :
7310  ac_cv_os_cray=yes
7311else
7312  ac_cv_os_cray=no
7313fi
7314rm -f conftest*
7315
7316fi
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7318$as_echo "$ac_cv_os_cray" >&6; }
7319if test $ac_cv_os_cray = yes; then
7320  for ac_func in _getb67 GETB67 getb67; do
7321    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7322ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7323if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7324
7325cat >>confdefs.h <<_ACEOF
7326#define CRAY_STACKSEG_END $ac_func
7327_ACEOF
7328
7329    break
7330fi
7331
7332  done
7333fi
7334
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7336$as_echo_n "checking stack direction for C alloca... " >&6; }
7337if ${ac_cv_c_stack_direction+:} false; then :
7338  $as_echo_n "(cached) " >&6
7339else
7340  if test "$cross_compiling" = yes; then :
7341  ac_cv_c_stack_direction=0
7342else
7343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344/* end confdefs.h.  */
7345$ac_includes_default
7346int
7347find_stack_direction (int *addr, int depth)
7348{
7349  int dir, dummy = 0;
7350  if (! addr)
7351    addr = &dummy;
7352  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7353  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7354  return dir + dummy;
7355}
7356
7357int
7358main (int argc, char **argv)
7359{
7360  return find_stack_direction (0, argc + !argv + 20) < 0;
7361}
7362_ACEOF
7363if ac_fn_c_try_run "$LINENO"; then :
7364  ac_cv_c_stack_direction=1
7365else
7366  ac_cv_c_stack_direction=-1
7367fi
7368rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7369  conftest.$ac_objext conftest.beam conftest.$ac_ext
7370fi
7371
7372fi
7373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7374$as_echo "$ac_cv_c_stack_direction" >&6; }
7375cat >>confdefs.h <<_ACEOF
7376#define STACK_DIRECTION $ac_cv_c_stack_direction
7377_ACEOF
7378
7379
7380fi
7381
7382
7383  GNULIB_INET_NTOP=0;
7384  GNULIB_INET_PTON=0;
7385    HAVE_DECL_INET_NTOP=1;
7386  HAVE_DECL_INET_PTON=1;
7387  REPLACE_INET_NTOP=0;
7388  REPLACE_INET_PTON=0;
7389
7390
7391
7392
7393  for ac_header in $ac_header_list
7394do :
7395  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7396ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7397"
7398if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7399  cat >>confdefs.h <<_ACEOF
7400#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7401_ACEOF
7402
7403fi
7404
7405done
7406
7407
7408
7409
7410
7411  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
7412$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7413if ${gl_cv_have_include_next+:} false; then :
7414  $as_echo_n "(cached) " >&6
7415else
7416  rm -rf conftestd1a conftestd1b conftestd2
7417     mkdir conftestd1a conftestd1b conftestd2
7418                                                  cat <<EOF > conftestd1a/conftest.h
7419#define DEFINED_IN_CONFTESTD1
7420#include_next <conftest.h>
7421#ifdef DEFINED_IN_CONFTESTD2
7422int foo;
7423#else
7424#error "include_next doesn't work"
7425#endif
7426EOF
7427     cat <<EOF > conftestd1b/conftest.h
7428#define DEFINED_IN_CONFTESTD1
7429#include <stdio.h>
7430#include_next <conftest.h>
7431#ifdef DEFINED_IN_CONFTESTD2
7432int foo;
7433#else
7434#error "include_next doesn't work"
7435#endif
7436EOF
7437     cat <<EOF > conftestd2/conftest.h
7438#ifndef DEFINED_IN_CONFTESTD1
7439#error "include_next test doesn't work"
7440#endif
7441#define DEFINED_IN_CONFTESTD2
7442EOF
7443     gl_save_CPPFLAGS="$CPPFLAGS"
7444     CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7445     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446/* end confdefs.h.  */
7447#include <conftest.h>
7448_ACEOF
7449if ac_fn_c_try_compile "$LINENO"; then :
7450  gl_cv_have_include_next=yes
7451else
7452  CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7453        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454/* end confdefs.h.  */
7455#include <conftest.h>
7456_ACEOF
7457if ac_fn_c_try_compile "$LINENO"; then :
7458  gl_cv_have_include_next=buggy
7459else
7460  gl_cv_have_include_next=no
7461fi
7462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463
7464fi
7465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7466     CPPFLAGS="$gl_save_CPPFLAGS"
7467     rm -rf conftestd1a conftestd1b conftestd2
7468
7469fi
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7471$as_echo "$gl_cv_have_include_next" >&6; }
7472  PRAGMA_SYSTEM_HEADER=
7473  if test $gl_cv_have_include_next = yes; then
7474    INCLUDE_NEXT=include_next
7475    INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7476    if test -n "$GCC"; then
7477      PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
7478    fi
7479  else
7480    if test $gl_cv_have_include_next = buggy; then
7481      INCLUDE_NEXT=include
7482      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7483    else
7484      INCLUDE_NEXT=include
7485      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
7486    fi
7487  fi
7488
7489
7490
7491  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
7492$as_echo_n "checking whether system header files limit the line length... " >&6; }
7493if ${gl_cv_pragma_columns+:} false; then :
7494  $as_echo_n "(cached) " >&6
7495else
7496       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497/* end confdefs.h.  */
7498
7499#ifdef __TANDEM
7500choke me
7501#endif
7502
7503_ACEOF
7504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7505  $EGREP "choke me" >/dev/null 2>&1; then :
7506  gl_cv_pragma_columns=yes
7507else
7508  gl_cv_pragma_columns=no
7509fi
7510rm -f conftest*
7511
7512
7513fi
7514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
7515$as_echo "$gl_cv_pragma_columns" >&6; }
7516  if test $gl_cv_pragma_columns = yes; then
7517    PRAGMA_COLUMNS="#pragma COLUMNS 10000"
7518  else
7519    PRAGMA_COLUMNS=
7520  fi
7521
7522
7523
7524
7525
7526
7527  if test $ac_cv_header_features_h = yes; then
7528    HAVE_FEATURES_H=1
7529  else
7530    HAVE_FEATURES_H=0
7531  fi
7532
7533
7534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7535$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7536if ${ac_cv_c_restrict+:} false; then :
7537  $as_echo_n "(cached) " >&6
7538else
7539  ac_cv_c_restrict=no
7540   # The order here caters to the fact that C++ does not require restrict.
7541   for ac_kw in __restrict __restrict__ _Restrict restrict; do
7542     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543/* end confdefs.h.  */
7544typedef int * int_ptr;
7545	int foo (int_ptr $ac_kw ip) {
7546	return ip[0];
7547       }
7548int
7549main ()
7550{
7551int s[1];
7552	int * $ac_kw t = s;
7553	t[0] = 0;
7554	return foo(t)
7555  ;
7556  return 0;
7557}
7558_ACEOF
7559if ac_fn_c_try_compile "$LINENO"; then :
7560  ac_cv_c_restrict=$ac_kw
7561fi
7562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563     test "$ac_cv_c_restrict" != no && break
7564   done
7565
7566fi
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7568$as_echo "$ac_cv_c_restrict" >&6; }
7569
7570 case $ac_cv_c_restrict in
7571   restrict) ;;
7572   no) $as_echo "#define restrict /**/" >>confdefs.h
7573 ;;
7574   *)  cat >>confdefs.h <<_ACEOF
7575#define restrict $ac_cv_c_restrict
7576_ACEOF
7577 ;;
7578 esac
7579
7580
7581  GNULIB_BTOWC=0;
7582  GNULIB_WCTOB=0;
7583  GNULIB_MBSINIT=0;
7584  GNULIB_MBRTOWC=0;
7585  GNULIB_MBRLEN=0;
7586  GNULIB_MBSRTOWCS=0;
7587  GNULIB_MBSNRTOWCS=0;
7588  GNULIB_WCRTOMB=0;
7589  GNULIB_WCSRTOMBS=0;
7590  GNULIB_WCSNRTOMBS=0;
7591  GNULIB_WCWIDTH=0;
7592  GNULIB_WMEMCHR=0;
7593  GNULIB_WMEMCMP=0;
7594  GNULIB_WMEMCPY=0;
7595  GNULIB_WMEMMOVE=0;
7596  GNULIB_WMEMSET=0;
7597  GNULIB_WCSLEN=0;
7598  GNULIB_WCSNLEN=0;
7599  GNULIB_WCSCPY=0;
7600  GNULIB_WCPCPY=0;
7601  GNULIB_WCSNCPY=0;
7602  GNULIB_WCPNCPY=0;
7603  GNULIB_WCSCAT=0;
7604  GNULIB_WCSNCAT=0;
7605  GNULIB_WCSCMP=0;
7606  GNULIB_WCSNCMP=0;
7607  GNULIB_WCSCASECMP=0;
7608  GNULIB_WCSNCASECMP=0;
7609  GNULIB_WCSCOLL=0;
7610  GNULIB_WCSXFRM=0;
7611  GNULIB_WCSDUP=0;
7612  GNULIB_WCSCHR=0;
7613  GNULIB_WCSRCHR=0;
7614  GNULIB_WCSCSPN=0;
7615  GNULIB_WCSSPN=0;
7616  GNULIB_WCSPBRK=0;
7617  GNULIB_WCSSTR=0;
7618  GNULIB_WCSTOK=0;
7619  GNULIB_WCSWIDTH=0;
7620    HAVE_BTOWC=1;
7621  HAVE_MBSINIT=1;
7622  HAVE_MBRTOWC=1;
7623  HAVE_MBRLEN=1;
7624  HAVE_MBSRTOWCS=1;
7625  HAVE_MBSNRTOWCS=1;
7626  HAVE_WCRTOMB=1;
7627  HAVE_WCSRTOMBS=1;
7628  HAVE_WCSNRTOMBS=1;
7629  HAVE_WMEMCHR=1;
7630  HAVE_WMEMCMP=1;
7631  HAVE_WMEMCPY=1;
7632  HAVE_WMEMMOVE=1;
7633  HAVE_WMEMSET=1;
7634  HAVE_WCSLEN=1;
7635  HAVE_WCSNLEN=1;
7636  HAVE_WCSCPY=1;
7637  HAVE_WCPCPY=1;
7638  HAVE_WCSNCPY=1;
7639  HAVE_WCPNCPY=1;
7640  HAVE_WCSCAT=1;
7641  HAVE_WCSNCAT=1;
7642  HAVE_WCSCMP=1;
7643  HAVE_WCSNCMP=1;
7644  HAVE_WCSCASECMP=1;
7645  HAVE_WCSNCASECMP=1;
7646  HAVE_WCSCOLL=1;
7647  HAVE_WCSXFRM=1;
7648  HAVE_WCSDUP=1;
7649  HAVE_WCSCHR=1;
7650  HAVE_WCSRCHR=1;
7651  HAVE_WCSCSPN=1;
7652  HAVE_WCSSPN=1;
7653  HAVE_WCSPBRK=1;
7654  HAVE_WCSSTR=1;
7655  HAVE_WCSTOK=1;
7656  HAVE_WCSWIDTH=1;
7657  HAVE_DECL_WCTOB=1;
7658  HAVE_DECL_WCWIDTH=1;
7659  REPLACE_MBSTATE_T=0;
7660  REPLACE_BTOWC=0;
7661  REPLACE_WCTOB=0;
7662  REPLACE_MBSINIT=0;
7663  REPLACE_MBRTOWC=0;
7664  REPLACE_MBRLEN=0;
7665  REPLACE_MBSRTOWCS=0;
7666  REPLACE_MBSNRTOWCS=0;
7667  REPLACE_WCRTOMB=0;
7668  REPLACE_WCSRTOMBS=0;
7669  REPLACE_WCSNRTOMBS=0;
7670  REPLACE_WCWIDTH=0;
7671  REPLACE_WCSWIDTH=0;
7672
7673
7674            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
7675$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
7676if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
7677  $as_echo_n "(cached) " >&6
7678else
7679  gl_cv_header_wchar_h_correct_inline=yes
7680     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681/* end confdefs.h.  */
7682
7683       #define wcstod renamed_wcstod
7684/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7685   <wchar.h>.
7686   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7687   included before <wchar.h>.  */
7688#include <stddef.h>
7689#include <stdio.h>
7690#include <time.h>
7691#include <wchar.h>
7692extern int zero (void);
7693int main () { return zero(); }
7694
7695_ACEOF
7696     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7697  (eval $ac_compile) 2>&5
7698  ac_status=$?
7699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7700  test $ac_status = 0; }; then
7701       mv conftest.$ac_objext conftest1.$ac_objext
7702       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703/* end confdefs.h.  */
7704
7705         #define wcstod renamed_wcstod
7706/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7707   <wchar.h>.
7708   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7709   included before <wchar.h>.  */
7710#include <stddef.h>
7711#include <stdio.h>
7712#include <time.h>
7713#include <wchar.h>
7714int zero (void) { return 0; }
7715
7716_ACEOF
7717       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7718  (eval $ac_compile) 2>&5
7719  ac_status=$?
7720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7721  test $ac_status = 0; }; then
7722         mv conftest.$ac_objext conftest2.$ac_objext
7723         if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
7724           :
7725         else
7726           gl_cv_header_wchar_h_correct_inline=no
7727         fi
7728       fi
7729     fi
7730     rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
7731
7732fi
7733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
7734$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
7735  if test $gl_cv_header_wchar_h_correct_inline = no; then
7736    as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
7737This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
7738C99 mode. You have four options:
7739  - Add the flag -fgnu89-inline to CC and reconfigure, or
7740  - Fix your include files, using parts of
7741    <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
7742  - Use a gcc version older than 4.3, or
7743  - Don't use the flags -std=c99 or -std=gnu99.
7744Configuration aborted." "$LINENO" 5
7745  fi
7746
7747
7748
7749
7750  for ac_func in $ac_func_list
7751do :
7752  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7753ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7754if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7755  cat >>confdefs.h <<_ACEOF
7756#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7757_ACEOF
7758
7759fi
7760done
7761
7762
7763
7764
7765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7766$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7767if ${am_cv_langinfo_codeset+:} false; then :
7768  $as_echo_n "(cached) " >&6
7769else
7770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771/* end confdefs.h.  */
7772#include <langinfo.h>
7773int
7774main ()
7775{
7776char* cs = nl_langinfo(CODESET);
7777  ;
7778  return 0;
7779}
7780_ACEOF
7781if ac_fn_c_try_link "$LINENO"; then :
7782  am_cv_langinfo_codeset=yes
7783else
7784  am_cv_langinfo_codeset=no
7785fi
7786rm -f core conftest.err conftest.$ac_objext \
7787    conftest$ac_exeext conftest.$ac_ext
7788
7789fi
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7791$as_echo "$am_cv_langinfo_codeset" >&6; }
7792  if test $am_cv_langinfo_codeset = yes; then
7793
7794$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7795
7796  fi
7797
7798
7799
7800
7801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
7802$as_echo_n "checking for a traditional french locale... " >&6; }
7803if ${gt_cv_locale_fr+:} false; then :
7804  $as_echo_n "(cached) " >&6
7805else
7806
7807    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808/* end confdefs.h.  */
7809
7810#include <locale.h>
7811#include <time.h>
7812#if HAVE_LANGINFO_CODESET
7813# include <langinfo.h>
7814#endif
7815#include <stdlib.h>
7816#include <string.h>
7817struct tm t;
7818char buf[16];
7819int main () {
7820  /* Check whether the given locale name is recognized by the system.  */
7821#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7822  /* On native Windows, setlocale(category, "") looks at the system settings,
7823     not at the environment variables.  Also, when an encoding suffix such
7824     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7825     category of the locale to "C".  */
7826  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7827      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7828    return 1;
7829#else
7830  if (setlocale (LC_ALL, "") == NULL) return 1;
7831#endif
7832  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7833     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7834     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7835     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7836     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7837     some unit tests fail.
7838     On MirBSD 10, when an unsupported locale is specified, setlocale()
7839     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
7840#if HAVE_LANGINFO_CODESET
7841  {
7842    const char *cs = nl_langinfo (CODESET);
7843    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7844        || strcmp (cs, "UTF-8") == 0)
7845      return 1;
7846  }
7847#endif
7848#ifdef __CYGWIN__
7849  /* On Cygwin, avoid locale names without encoding suffix, because the
7850     locale_charset() function relies on the encoding suffix.  Note that
7851     LC_ALL is set on the command line.  */
7852  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7853#endif
7854  /* Check whether in the abbreviation of the second month, the second
7855     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7856     one byte long. This excludes the UTF-8 encoding.  */
7857  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7858  if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7859#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
7860  /* Check whether the decimal separator is a comma.
7861     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7862     are nl_langinfo(RADIXCHAR) are both ".".  */
7863  if (localeconv () ->decimal_point[0] != ',') return 1;
7864#endif
7865  return 0;
7866}
7867
7868_ACEOF
7869    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7870  (eval $ac_link) 2>&5
7871  ac_status=$?
7872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7874      case "$host_os" in
7875        # Handle native Windows specially, because there setlocale() interprets
7876        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7877        # "fr" or "fra" as "French" or "French_France.1252",
7878        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7879        # "ja" as "Japanese" or "Japanese_Japan.932",
7880        # and similar.
7881        mingw*)
7882          # Test for the native Windows locale name.
7883          if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7884            gt_cv_locale_fr=French_France.1252
7885          else
7886            # None found.
7887            gt_cv_locale_fr=none
7888          fi
7889          ;;
7890        *)
7891          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7892          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7893          # configure script would override the LC_ALL setting. Likewise for
7894          # LC_CTYPE, which is also set at the beginning of the configure script.
7895          # Test for the usual locale name.
7896          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7897            gt_cv_locale_fr=fr_FR
7898          else
7899            # Test for the locale name with explicit encoding suffix.
7900            if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7901              gt_cv_locale_fr=fr_FR.ISO-8859-1
7902            else
7903              # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7904              if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7905                gt_cv_locale_fr=fr_FR.ISO8859-1
7906              else
7907                # Test for the HP-UX locale name.
7908                if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7909                  gt_cv_locale_fr=fr_FR.iso88591
7910                else
7911                  # Test for the Solaris 7 locale name.
7912                  if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7913                    gt_cv_locale_fr=fr
7914                  else
7915                    # None found.
7916                    gt_cv_locale_fr=none
7917                  fi
7918                fi
7919              fi
7920            fi
7921          fi
7922          ;;
7923      esac
7924    fi
7925    rm -fr conftest*
7926
7927fi
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
7929$as_echo "$gt_cv_locale_fr" >&6; }
7930  LOCALE_FR=$gt_cv_locale_fr
7931
7932
7933
7934  GNULIB_CHDIR=0;
7935  GNULIB_CHOWN=0;
7936  GNULIB_CLOSE=0;
7937  GNULIB_DUP=0;
7938  GNULIB_DUP2=0;
7939  GNULIB_DUP3=0;
7940  GNULIB_ENVIRON=0;
7941  GNULIB_EUIDACCESS=0;
7942  GNULIB_FACCESSAT=0;
7943  GNULIB_FCHDIR=0;
7944  GNULIB_FCHOWNAT=0;
7945  GNULIB_FDATASYNC=0;
7946  GNULIB_FSYNC=0;
7947  GNULIB_FTRUNCATE=0;
7948  GNULIB_GETCWD=0;
7949  GNULIB_GETDOMAINNAME=0;
7950  GNULIB_GETDTABLESIZE=0;
7951  GNULIB_GETGROUPS=0;
7952  GNULIB_GETHOSTNAME=0;
7953  GNULIB_GETLOGIN=0;
7954  GNULIB_GETLOGIN_R=0;
7955  GNULIB_GETPAGESIZE=0;
7956  GNULIB_GETUSERSHELL=0;
7957  GNULIB_GROUP_MEMBER=0;
7958  GNULIB_ISATTY=0;
7959  GNULIB_LCHOWN=0;
7960  GNULIB_LINK=0;
7961  GNULIB_LINKAT=0;
7962  GNULIB_LSEEK=0;
7963  GNULIB_PIPE=0;
7964  GNULIB_PIPE2=0;
7965  GNULIB_PREAD=0;
7966  GNULIB_PWRITE=0;
7967  GNULIB_READ=0;
7968  GNULIB_READLINK=0;
7969  GNULIB_READLINKAT=0;
7970  GNULIB_RMDIR=0;
7971  GNULIB_SETHOSTNAME=0;
7972  GNULIB_SLEEP=0;
7973  GNULIB_SYMLINK=0;
7974  GNULIB_SYMLINKAT=0;
7975  GNULIB_TTYNAME_R=0;
7976  GNULIB_UNISTD_H_NONBLOCKING=0;
7977  GNULIB_UNISTD_H_SIGPIPE=0;
7978  GNULIB_UNLINK=0;
7979  GNULIB_UNLINKAT=0;
7980  GNULIB_USLEEP=0;
7981  GNULIB_WRITE=0;
7982    HAVE_CHOWN=1;
7983  HAVE_DUP2=1;
7984  HAVE_DUP3=1;
7985  HAVE_EUIDACCESS=1;
7986  HAVE_FACCESSAT=1;
7987  HAVE_FCHDIR=1;
7988  HAVE_FCHOWNAT=1;
7989  HAVE_FDATASYNC=1;
7990  HAVE_FSYNC=1;
7991  HAVE_FTRUNCATE=1;
7992  HAVE_GETDTABLESIZE=1;
7993  HAVE_GETGROUPS=1;
7994  HAVE_GETHOSTNAME=1;
7995  HAVE_GETLOGIN=1;
7996  HAVE_GETPAGESIZE=1;
7997  HAVE_GROUP_MEMBER=1;
7998  HAVE_LCHOWN=1;
7999  HAVE_LINK=1;
8000  HAVE_LINKAT=1;
8001  HAVE_PIPE=1;
8002  HAVE_PIPE2=1;
8003  HAVE_PREAD=1;
8004  HAVE_PWRITE=1;
8005  HAVE_READLINK=1;
8006  HAVE_READLINKAT=1;
8007  HAVE_SETHOSTNAME=1;
8008  HAVE_SLEEP=1;
8009  HAVE_SYMLINK=1;
8010  HAVE_SYMLINKAT=1;
8011  HAVE_UNLINKAT=1;
8012  HAVE_USLEEP=1;
8013  HAVE_DECL_ENVIRON=1;
8014  HAVE_DECL_FCHDIR=1;
8015  HAVE_DECL_FDATASYNC=1;
8016  HAVE_DECL_GETDOMAINNAME=1;
8017  HAVE_DECL_GETLOGIN_R=1;
8018  HAVE_DECL_GETPAGESIZE=1;
8019  HAVE_DECL_GETUSERSHELL=1;
8020  HAVE_DECL_SETHOSTNAME=1;
8021  HAVE_DECL_TTYNAME_R=1;
8022  HAVE_OS_H=0;
8023  HAVE_SYS_PARAM_H=0;
8024  REPLACE_CHOWN=0;
8025  REPLACE_CLOSE=0;
8026  REPLACE_DUP=0;
8027  REPLACE_DUP2=0;
8028  REPLACE_FCHOWNAT=0;
8029  REPLACE_FTRUNCATE=0;
8030  REPLACE_GETCWD=0;
8031  REPLACE_GETDOMAINNAME=0;
8032  REPLACE_GETLOGIN_R=0;
8033  REPLACE_GETGROUPS=0;
8034  REPLACE_GETPAGESIZE=0;
8035  REPLACE_ISATTY=0;
8036  REPLACE_LCHOWN=0;
8037  REPLACE_LINK=0;
8038  REPLACE_LINKAT=0;
8039  REPLACE_LSEEK=0;
8040  REPLACE_PREAD=0;
8041  REPLACE_PWRITE=0;
8042  REPLACE_READ=0;
8043  REPLACE_READLINK=0;
8044  REPLACE_RMDIR=0;
8045  REPLACE_SLEEP=0;
8046  REPLACE_SYMLINK=0;
8047  REPLACE_TTYNAME_R=0;
8048  REPLACE_UNLINK=0;
8049  REPLACE_UNLINKAT=0;
8050  REPLACE_USLEEP=0;
8051  REPLACE_WRITE=0;
8052  UNISTD_H_HAVE_WINSOCK2_H=0;
8053  UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
8066$as_echo_n "checking if environ is properly declared... " >&6; }
8067  if ${gt_cv_var_environ_declaration+:} false; then :
8068  $as_echo_n "(cached) " >&6
8069else
8070
8071    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072/* end confdefs.h.  */
8073#if HAVE_UNISTD_H
8074     #include <unistd.h>
8075     #endif
8076     /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
8077     #include <stdlib.h>
8078
8079           extern struct { int foo; } environ;
8080int
8081main ()
8082{
8083environ.foo = 1;
8084  ;
8085  return 0;
8086}
8087_ACEOF
8088if ac_fn_c_try_compile "$LINENO"; then :
8089  gt_cv_var_environ_declaration=no
8090else
8091  gt_cv_var_environ_declaration=yes
8092fi
8093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094fi
8095
8096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
8097$as_echo "$gt_cv_var_environ_declaration" >&6; }
8098  if test $gt_cv_var_environ_declaration = yes; then
8099
8100$as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
8101
8102  fi
8103
8104
8105  if test $gt_cv_var_environ_declaration != yes; then
8106    HAVE_DECL_ENVIRON=0
8107  fi
8108
8109
8110
8111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
8112$as_echo_n "checking for complete errno.h... " >&6; }
8113if ${gl_cv_header_errno_h_complete+:} false; then :
8114  $as_echo_n "(cached) " >&6
8115else
8116
8117    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118/* end confdefs.h.  */
8119
8120#include <errno.h>
8121#if !defined ETXTBSY
8122booboo
8123#endif
8124#if !defined ENOMSG
8125booboo
8126#endif
8127#if !defined EIDRM
8128booboo
8129#endif
8130#if !defined ENOLINK
8131booboo
8132#endif
8133#if !defined EPROTO
8134booboo
8135#endif
8136#if !defined EMULTIHOP
8137booboo
8138#endif
8139#if !defined EBADMSG
8140booboo
8141#endif
8142#if !defined EOVERFLOW
8143booboo
8144#endif
8145#if !defined ENOTSUP
8146booboo
8147#endif
8148#if !defined ENETRESET
8149booboo
8150#endif
8151#if !defined ECONNABORTED
8152booboo
8153#endif
8154#if !defined ESTALE
8155booboo
8156#endif
8157#if !defined EDQUOT
8158booboo
8159#endif
8160#if !defined ECANCELED
8161booboo
8162#endif
8163#if !defined EOWNERDEAD
8164booboo
8165#endif
8166#if !defined ENOTRECOVERABLE
8167booboo
8168#endif
8169#if !defined EILSEQ
8170booboo
8171#endif
8172
8173_ACEOF
8174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8175  $EGREP "booboo" >/dev/null 2>&1; then :
8176  gl_cv_header_errno_h_complete=no
8177else
8178  gl_cv_header_errno_h_complete=yes
8179fi
8180rm -f conftest*
8181
8182
8183fi
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
8185$as_echo "$gl_cv_header_errno_h_complete" >&6; }
8186  if test $gl_cv_header_errno_h_complete = yes; then
8187    ERRNO_H=''
8188  else
8189
8190
8191
8192
8193
8194
8195
8196
8197     if test $gl_cv_have_include_next = yes; then
8198       gl_cv_next_errno_h='<'errno.h'>'
8199     else
8200       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
8201$as_echo_n "checking absolute name of <errno.h>... " >&6; }
8202if ${gl_cv_next_errno_h+:} false; then :
8203  $as_echo_n "(cached) " >&6
8204else
8205
8206               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207/* end confdefs.h.  */
8208#include <errno.h>
8209
8210_ACEOF
8211                                                                                                                        case "$host_os" in
8212                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8213                 *)    gl_absname_cpp="$ac_cpp" ;;
8214               esac
8215
8216               case "$host_os" in
8217                 mingw*)
8218                                                                                                                                     gl_dirsep_regex='[/\\]'
8219                   ;;
8220                 *)
8221                   gl_dirsep_regex='\/'
8222                   ;;
8223               esac
8224                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8225
8226               gl_header_literal_regex=`echo 'errno.h' \
8227                                        | sed -e "$gl_make_literal_regex_sed"`
8228               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8229                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8230                   s|^/[^/]|//&|
8231                   p
8232                   q
8233                 }'
8234                                                            gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8235                      sed -n "$gl_absolute_header_sed"`'"'
8236
8237
8238fi
8239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
8240$as_echo "$gl_cv_next_errno_h" >&6; }
8241     fi
8242     NEXT_ERRNO_H=$gl_cv_next_errno_h
8243
8244     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8245       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8246       gl_next_as_first_directive='<'errno.h'>'
8247     else
8248       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8249       gl_next_as_first_directive=$gl_cv_next_errno_h
8250     fi
8251     NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
8252
8253
8254
8255
8256    ERRNO_H='errno.h'
8257  fi
8258
8259   if test -n "$ERRNO_H"; then
8260  GL_GENERATE_ERRNO_H_TRUE=
8261  GL_GENERATE_ERRNO_H_FALSE='#'
8262else
8263  GL_GENERATE_ERRNO_H_TRUE='#'
8264  GL_GENERATE_ERRNO_H_FALSE=
8265fi
8266
8267
8268  if test -n "$ERRNO_H"; then
8269    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
8270$as_echo_n "checking for EMULTIHOP value... " >&6; }
8271if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
8272  $as_echo_n "(cached) " >&6
8273else
8274
8275      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276/* end confdefs.h.  */
8277
8278#include <errno.h>
8279#ifdef EMULTIHOP
8280yes
8281#endif
8282
8283_ACEOF
8284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8285  $EGREP "yes" >/dev/null 2>&1; then :
8286  gl_cv_header_errno_h_EMULTIHOP=yes
8287else
8288  gl_cv_header_errno_h_EMULTIHOP=no
8289fi
8290rm -f conftest*
8291
8292      if test $gl_cv_header_errno_h_EMULTIHOP = no; then
8293        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294/* end confdefs.h.  */
8295
8296#define _XOPEN_SOURCE_EXTENDED 1
8297#include <errno.h>
8298#ifdef EMULTIHOP
8299yes
8300#endif
8301
8302_ACEOF
8303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8304  $EGREP "yes" >/dev/null 2>&1; then :
8305  gl_cv_header_errno_h_EMULTIHOP=hidden
8306fi
8307rm -f conftest*
8308
8309        if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
8310                              if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
8311#define _XOPEN_SOURCE_EXTENDED 1
8312#include <errno.h>
8313/* The following two lines are a workaround against an autoconf-2.52 bug.  */
8314#include <stdio.h>
8315#include <stdlib.h>
8316"; then :
8317
8318fi
8319
8320        fi
8321      fi
8322
8323fi
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
8325$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
8326    case $gl_cv_header_errno_h_EMULTIHOP in
8327      yes | no)
8328        EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
8329        ;;
8330      *)
8331        EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
8332        ;;
8333    esac
8334
8335
8336  fi
8337
8338
8339  if test -n "$ERRNO_H"; then
8340    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
8341$as_echo_n "checking for ENOLINK value... " >&6; }
8342if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
8343  $as_echo_n "(cached) " >&6
8344else
8345
8346      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347/* end confdefs.h.  */
8348
8349#include <errno.h>
8350#ifdef ENOLINK
8351yes
8352#endif
8353
8354_ACEOF
8355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8356  $EGREP "yes" >/dev/null 2>&1; then :
8357  gl_cv_header_errno_h_ENOLINK=yes
8358else
8359  gl_cv_header_errno_h_ENOLINK=no
8360fi
8361rm -f conftest*
8362
8363      if test $gl_cv_header_errno_h_ENOLINK = no; then
8364        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365/* end confdefs.h.  */
8366
8367#define _XOPEN_SOURCE_EXTENDED 1
8368#include <errno.h>
8369#ifdef ENOLINK
8370yes
8371#endif
8372
8373_ACEOF
8374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8375  $EGREP "yes" >/dev/null 2>&1; then :
8376  gl_cv_header_errno_h_ENOLINK=hidden
8377fi
8378rm -f conftest*
8379
8380        if test $gl_cv_header_errno_h_ENOLINK = hidden; then
8381                              if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
8382#define _XOPEN_SOURCE_EXTENDED 1
8383#include <errno.h>
8384/* The following two lines are a workaround against an autoconf-2.52 bug.  */
8385#include <stdio.h>
8386#include <stdlib.h>
8387"; then :
8388
8389fi
8390
8391        fi
8392      fi
8393
8394fi
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
8396$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
8397    case $gl_cv_header_errno_h_ENOLINK in
8398      yes | no)
8399        ENOLINK_HIDDEN=0; ENOLINK_VALUE=
8400        ;;
8401      *)
8402        ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
8403        ;;
8404    esac
8405
8406
8407  fi
8408
8409
8410  if test -n "$ERRNO_H"; then
8411    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
8412$as_echo_n "checking for EOVERFLOW value... " >&6; }
8413if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
8414  $as_echo_n "(cached) " >&6
8415else
8416
8417      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418/* end confdefs.h.  */
8419
8420#include <errno.h>
8421#ifdef EOVERFLOW
8422yes
8423#endif
8424
8425_ACEOF
8426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8427  $EGREP "yes" >/dev/null 2>&1; then :
8428  gl_cv_header_errno_h_EOVERFLOW=yes
8429else
8430  gl_cv_header_errno_h_EOVERFLOW=no
8431fi
8432rm -f conftest*
8433
8434      if test $gl_cv_header_errno_h_EOVERFLOW = no; then
8435        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436/* end confdefs.h.  */
8437
8438#define _XOPEN_SOURCE_EXTENDED 1
8439#include <errno.h>
8440#ifdef EOVERFLOW
8441yes
8442#endif
8443
8444_ACEOF
8445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8446  $EGREP "yes" >/dev/null 2>&1; then :
8447  gl_cv_header_errno_h_EOVERFLOW=hidden
8448fi
8449rm -f conftest*
8450
8451        if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
8452                              if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
8453#define _XOPEN_SOURCE_EXTENDED 1
8454#include <errno.h>
8455/* The following two lines are a workaround against an autoconf-2.52 bug.  */
8456#include <stdio.h>
8457#include <stdlib.h>
8458"; then :
8459
8460fi
8461
8462        fi
8463      fi
8464
8465fi
8466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8467$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8468    case $gl_cv_header_errno_h_EOVERFLOW in
8469      yes | no)
8470        EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
8471        ;;
8472      *)
8473        EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
8474        ;;
8475    esac
8476
8477
8478  fi
8479
8480
8481
8482
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8484$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8485if ${ac_cv_type_uid_t+:} false; then :
8486  $as_echo_n "(cached) " >&6
8487else
8488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489/* end confdefs.h.  */
8490#include <sys/types.h>
8491
8492_ACEOF
8493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8494  $EGREP "uid_t" >/dev/null 2>&1; then :
8495  ac_cv_type_uid_t=yes
8496else
8497  ac_cv_type_uid_t=no
8498fi
8499rm -f conftest*
8500
8501fi
8502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8503$as_echo "$ac_cv_type_uid_t" >&6; }
8504if test $ac_cv_type_uid_t = no; then
8505
8506$as_echo "#define uid_t int" >>confdefs.h
8507
8508
8509$as_echo "#define gid_t int" >>confdefs.h
8510
8511fi
8512
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8514$as_echo_n "checking type of array argument to getgroups... " >&6; }
8515if ${ac_cv_type_getgroups+:} false; then :
8516  $as_echo_n "(cached) " >&6
8517else
8518  if test "$cross_compiling" = yes; then :
8519  ac_cv_type_getgroups=cross
8520else
8521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522/* end confdefs.h.  */
8523/* Thanks to Mike Rendell for this test.  */
8524$ac_includes_default
8525#define NGID 256
8526#undef MAX
8527#define MAX(x, y) ((x) > (y) ? (x) : (y))
8528
8529int
8530main ()
8531{
8532  gid_t gidset[NGID];
8533  int i, n;
8534  union { gid_t gval; long int lval; }  val;
8535
8536  val.lval = -1;
8537  for (i = 0; i < NGID; i++)
8538    gidset[i] = val.gval;
8539  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8540		 gidset);
8541  /* Exit non-zero if getgroups seems to require an array of ints.  This
8542     happens when gid_t is short int but getgroups modifies an array
8543     of ints.  */
8544  return n > 0 && gidset[n] != val.gval;
8545}
8546_ACEOF
8547if ac_fn_c_try_run "$LINENO"; then :
8548  ac_cv_type_getgroups=gid_t
8549else
8550  ac_cv_type_getgroups=int
8551fi
8552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8553  conftest.$ac_objext conftest.beam conftest.$ac_ext
8554fi
8555
8556if test $ac_cv_type_getgroups = cross; then
8557        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558/* end confdefs.h.  */
8559#include <unistd.h>
8560
8561_ACEOF
8562if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8563  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8564  ac_cv_type_getgroups=gid_t
8565else
8566  ac_cv_type_getgroups=int
8567fi
8568rm -f conftest*
8569
8570fi
8571fi
8572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8573$as_echo "$ac_cv_type_getgroups" >&6; }
8574
8575cat >>confdefs.h <<_ACEOF
8576#define GETGROUPS_T $ac_cv_type_getgroups
8577_ACEOF
8578
8579
8580
8581
8582
8583
8584  GNULIB_FCNTL=0;
8585  GNULIB_NONBLOCKING=0;
8586  GNULIB_OPEN=0;
8587  GNULIB_OPENAT=0;
8588    HAVE_FCNTL=1;
8589  HAVE_OPENAT=1;
8590  REPLACE_FCNTL=0;
8591  REPLACE_OPEN=0;
8592  REPLACE_OPENAT=0;
8593
8594
8595
8596
8597
8598
8599
8600
8601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8602$as_echo_n "checking for working fcntl.h... " >&6; }
8603if ${gl_cv_header_working_fcntl_h+:} false; then :
8604  $as_echo_n "(cached) " >&6
8605else
8606  if test "$cross_compiling" = yes; then :
8607  gl_cv_header_working_fcntl_h=cross-compiling
8608else
8609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610/* end confdefs.h.  */
8611#include <sys/types.h>
8612           #include <sys/stat.h>
8613           #if HAVE_UNISTD_H
8614           # include <unistd.h>
8615           #else /* on Windows with MSVC */
8616           # include <io.h>
8617           # include <stdlib.h>
8618           # defined sleep(n) _sleep ((n) * 1000)
8619           #endif
8620           #include <fcntl.h>
8621           #ifndef O_NOATIME
8622            #define O_NOATIME 0
8623           #endif
8624           #ifndef O_NOFOLLOW
8625            #define O_NOFOLLOW 0
8626           #endif
8627           static int const constants[] =
8628            {
8629              O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8630              O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8631            };
8632
8633int
8634main ()
8635{
8636
8637            int result = !constants;
8638            #if HAVE_SYMLINK
8639            {
8640              static char const sym[] = "conftest.sym";
8641              if (symlink ("/dev/null", sym) != 0)
8642                result |= 2;
8643              else
8644                {
8645                  int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8646                  if (fd >= 0)
8647                    {
8648                      close (fd);
8649                      result |= 4;
8650                    }
8651                }
8652              if (unlink (sym) != 0 || symlink (".", sym) != 0)
8653                result |= 2;
8654              else
8655                {
8656                  int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8657                  if (fd >= 0)
8658                    {
8659                      close (fd);
8660                      result |= 4;
8661                    }
8662                }
8663              unlink (sym);
8664            }
8665            #endif
8666            {
8667              static char const file[] = "confdefs.h";
8668              int fd = open (file, O_RDONLY | O_NOATIME);
8669              if (fd < 0)
8670                result |= 8;
8671              else
8672                {
8673                  struct stat st0;
8674                  if (fstat (fd, &st0) != 0)
8675                    result |= 16;
8676                  else
8677                    {
8678                      char c;
8679                      sleep (1);
8680                      if (read (fd, &c, 1) != 1)
8681                        result |= 24;
8682                      else
8683                        {
8684                          if (close (fd) != 0)
8685                            result |= 32;
8686                          else
8687                            {
8688                              struct stat st1;
8689                              if (stat (file, &st1) != 0)
8690                                result |= 40;
8691                              else
8692                                if (st0.st_atime != st1.st_atime)
8693                                  result |= 64;
8694                            }
8695                        }
8696                    }
8697                }
8698            }
8699            return result;
8700  ;
8701  return 0;
8702}
8703_ACEOF
8704if ac_fn_c_try_run "$LINENO"; then :
8705  gl_cv_header_working_fcntl_h=yes
8706else
8707  case $? in #(
8708        4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8709        64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8710        68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8711         *) gl_cv_header_working_fcntl_h='no';;
8712        esac
8713fi
8714rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8715  conftest.$ac_objext conftest.beam conftest.$ac_ext
8716fi
8717
8718fi
8719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8720$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8721
8722  case $gl_cv_header_working_fcntl_h in #(
8723  *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8724  *) ac_val=1;;
8725  esac
8726
8727cat >>confdefs.h <<_ACEOF
8728#define HAVE_WORKING_O_NOATIME $ac_val
8729_ACEOF
8730
8731
8732  case $gl_cv_header_working_fcntl_h in #(
8733  *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8734  *) ac_val=1;;
8735  esac
8736
8737cat >>confdefs.h <<_ACEOF
8738#define HAVE_WORKING_O_NOFOLLOW $ac_val
8739_ACEOF
8740
8741
8742ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8743if test "x$ac_cv_type_pid_t" = xyes; then :
8744
8745else
8746
8747cat >>confdefs.h <<_ACEOF
8748#define pid_t int
8749_ACEOF
8750
8751fi
8752
8753ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8754if test "x$ac_cv_type_mode_t" = xyes; then :
8755
8756else
8757
8758cat >>confdefs.h <<_ACEOF
8759#define mode_t int
8760_ACEOF
8761
8762fi
8763
8764
8765  GNULIB_DPRINTF=0;
8766  GNULIB_FCLOSE=0;
8767  GNULIB_FDOPEN=0;
8768  GNULIB_FFLUSH=0;
8769  GNULIB_FGETC=0;
8770  GNULIB_FGETS=0;
8771  GNULIB_FOPEN=0;
8772  GNULIB_FPRINTF=0;
8773  GNULIB_FPRINTF_POSIX=0;
8774  GNULIB_FPURGE=0;
8775  GNULIB_FPUTC=0;
8776  GNULIB_FPUTS=0;
8777  GNULIB_FREAD=0;
8778  GNULIB_FREOPEN=0;
8779  GNULIB_FSCANF=0;
8780  GNULIB_FSEEK=0;
8781  GNULIB_FSEEKO=0;
8782  GNULIB_FTELL=0;
8783  GNULIB_FTELLO=0;
8784  GNULIB_FWRITE=0;
8785  GNULIB_GETC=0;
8786  GNULIB_GETCHAR=0;
8787  GNULIB_GETDELIM=0;
8788  GNULIB_GETLINE=0;
8789  GNULIB_OBSTACK_PRINTF=0;
8790  GNULIB_OBSTACK_PRINTF_POSIX=0;
8791  GNULIB_PCLOSE=0;
8792  GNULIB_PERROR=0;
8793  GNULIB_POPEN=0;
8794  GNULIB_PRINTF=0;
8795  GNULIB_PRINTF_POSIX=0;
8796  GNULIB_PUTC=0;
8797  GNULIB_PUTCHAR=0;
8798  GNULIB_PUTS=0;
8799  GNULIB_REMOVE=0;
8800  GNULIB_RENAME=0;
8801  GNULIB_RENAMEAT=0;
8802  GNULIB_SCANF=0;
8803  GNULIB_SNPRINTF=0;
8804  GNULIB_SPRINTF_POSIX=0;
8805  GNULIB_STDIO_H_NONBLOCKING=0;
8806  GNULIB_STDIO_H_SIGPIPE=0;
8807  GNULIB_TMPFILE=0;
8808  GNULIB_VASPRINTF=0;
8809  GNULIB_VFSCANF=0;
8810  GNULIB_VSCANF=0;
8811  GNULIB_VDPRINTF=0;
8812  GNULIB_VFPRINTF=0;
8813  GNULIB_VFPRINTF_POSIX=0;
8814  GNULIB_VPRINTF=0;
8815  GNULIB_VPRINTF_POSIX=0;
8816  GNULIB_VSNPRINTF=0;
8817  GNULIB_VSPRINTF_POSIX=0;
8818    HAVE_DECL_FPURGE=1;
8819  HAVE_DECL_FSEEKO=1;
8820  HAVE_DECL_FTELLO=1;
8821  HAVE_DECL_GETDELIM=1;
8822  HAVE_DECL_GETLINE=1;
8823  HAVE_DECL_OBSTACK_PRINTF=1;
8824  HAVE_DECL_SNPRINTF=1;
8825  HAVE_DECL_VSNPRINTF=1;
8826  HAVE_DPRINTF=1;
8827  HAVE_FSEEKO=1;
8828  HAVE_FTELLO=1;
8829  HAVE_PCLOSE=1;
8830  HAVE_POPEN=1;
8831  HAVE_RENAMEAT=1;
8832  HAVE_VASPRINTF=1;
8833  HAVE_VDPRINTF=1;
8834  REPLACE_DPRINTF=0;
8835  REPLACE_FCLOSE=0;
8836  REPLACE_FDOPEN=0;
8837  REPLACE_FFLUSH=0;
8838  REPLACE_FOPEN=0;
8839  REPLACE_FPRINTF=0;
8840  REPLACE_FPURGE=0;
8841  REPLACE_FREOPEN=0;
8842  REPLACE_FSEEK=0;
8843  REPLACE_FSEEKO=0;
8844  REPLACE_FTELL=0;
8845  REPLACE_FTELLO=0;
8846  REPLACE_GETDELIM=0;
8847  REPLACE_GETLINE=0;
8848  REPLACE_OBSTACK_PRINTF=0;
8849  REPLACE_PERROR=0;
8850  REPLACE_POPEN=0;
8851  REPLACE_PRINTF=0;
8852  REPLACE_REMOVE=0;
8853  REPLACE_RENAME=0;
8854  REPLACE_RENAMEAT=0;
8855  REPLACE_SNPRINTF=0;
8856  REPLACE_SPRINTF=0;
8857  REPLACE_STDIO_READ_FUNCS=0;
8858  REPLACE_STDIO_WRITE_FUNCS=0;
8859  REPLACE_TMPFILE=0;
8860  REPLACE_VASPRINTF=0;
8861  REPLACE_VDPRINTF=0;
8862  REPLACE_VFPRINTF=0;
8863  REPLACE_VPRINTF=0;
8864  REPLACE_VSNPRINTF=0;
8865  REPLACE_VSPRINTF=0;
8866
8867
8868    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
8869$as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
8870if ${gl_cv_var_stdin_large_offset+:} false; then :
8871  $as_echo_n "(cached) " >&6
8872else
8873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874/* end confdefs.h.  */
8875#include <stdio.h>
8876int
8877main ()
8878{
8879#if defined __SL64 && defined __SCLE /* cygwin */
8880  /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
8881     fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
8882     it is easier to do a version check than building a runtime test.  */
8883# include <cygwin/version.h>
8884# if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
8885  choke me
8886# endif
8887#endif
8888  ;
8889  return 0;
8890}
8891_ACEOF
8892if ac_fn_c_try_link "$LINENO"; then :
8893  gl_cv_var_stdin_large_offset=yes
8894else
8895  gl_cv_var_stdin_large_offset=no
8896fi
8897rm -f core conftest.err conftest.$ac_objext \
8898    conftest$ac_exeext conftest.$ac_ext
8899fi
8900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
8901$as_echo "$gl_cv_var_stdin_large_offset" >&6; }
8902
8903
8904
8905
8906
8907  case "$host_os" in
8908    mingw*)
8909                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
8910$as_echo_n "checking for 64-bit off_t... " >&6; }
8911if ${gl_cv_type_off_t_64+:} false; then :
8912  $as_echo_n "(cached) " >&6
8913else
8914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915/* end confdefs.h.  */
8916#include <sys/types.h>
8917                int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
8918
8919int
8920main ()
8921{
8922
8923  ;
8924  return 0;
8925}
8926_ACEOF
8927if ac_fn_c_try_compile "$LINENO"; then :
8928  gl_cv_type_off_t_64=yes
8929else
8930  gl_cv_type_off_t_64=no
8931fi
8932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933
8934fi
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
8936$as_echo "$gl_cv_type_off_t_64" >&6; }
8937      if test $gl_cv_type_off_t_64 = no; then
8938        WINDOWS_64_BIT_OFF_T=1
8939      else
8940        WINDOWS_64_BIT_OFF_T=0
8941      fi
8942                  WINDOWS_64_BIT_ST_SIZE=1
8943      ;;
8944    *)
8945                                                      WINDOWS_64_BIT_OFF_T=0
8946      WINDOWS_64_BIT_ST_SIZE=0
8947      ;;
8948  esac
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966     if test $gl_cv_have_include_next = yes; then
8967       gl_cv_next_sys_types_h='<'sys/types.h'>'
8968     else
8969       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
8970$as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
8971if ${gl_cv_next_sys_types_h+:} false; then :
8972  $as_echo_n "(cached) " >&6
8973else
8974
8975               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976/* end confdefs.h.  */
8977#include <sys/types.h>
8978
8979_ACEOF
8980                                                                                                                        case "$host_os" in
8981                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8982                 *)    gl_absname_cpp="$ac_cpp" ;;
8983               esac
8984
8985               case "$host_os" in
8986                 mingw*)
8987                                                                                                                                     gl_dirsep_regex='[/\\]'
8988                   ;;
8989                 *)
8990                   gl_dirsep_regex='\/'
8991                   ;;
8992               esac
8993                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8994
8995               gl_header_literal_regex=`echo 'sys/types.h' \
8996                                        | sed -e "$gl_make_literal_regex_sed"`
8997               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8998                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8999                   s|^/[^/]|//&|
9000                   p
9001                   q
9002                 }'
9003                                                            gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9004                      sed -n "$gl_absolute_header_sed"`'"'
9005
9006
9007fi
9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
9009$as_echo "$gl_cv_next_sys_types_h" >&6; }
9010     fi
9011     NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
9012
9013     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9014       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9015       gl_next_as_first_directive='<'sys/types.h'>'
9016     else
9017       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9018       gl_next_as_first_directive=$gl_cv_next_sys_types_h
9019     fi
9020     NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
9033if test "x$ac_cv_have_decl_fseeko" = xyes; then :
9034  ac_have_decl=1
9035else
9036  ac_have_decl=0
9037fi
9038
9039cat >>confdefs.h <<_ACEOF
9040#define HAVE_DECL_FSEEKO $ac_have_decl
9041_ACEOF
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
9052$as_echo_n "checking for fseeko... " >&6; }
9053if ${gl_cv_func_fseeko+:} false; then :
9054  $as_echo_n "(cached) " >&6
9055else
9056
9057      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058/* end confdefs.h.  */
9059#include <stdio.h>
9060
9061int
9062main ()
9063{
9064fseeko (stdin, 0, 0);
9065  ;
9066  return 0;
9067}
9068_ACEOF
9069if ac_fn_c_try_link "$LINENO"; then :
9070  gl_cv_func_fseeko=yes
9071else
9072  gl_cv_func_fseeko=no
9073fi
9074rm -f core conftest.err conftest.$ac_objext \
9075    conftest$ac_exeext conftest.$ac_ext
9076
9077fi
9078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
9079$as_echo "$gl_cv_func_fseeko" >&6; }
9080
9081
9082  if test $ac_cv_have_decl_fseeko = no; then
9083    HAVE_DECL_FSEEKO=0
9084  fi
9085
9086  if test $gl_cv_func_fseeko = no; then
9087    HAVE_FSEEKO=0
9088  else
9089    if test $WINDOWS_64_BIT_OFF_T = 1; then
9090      REPLACE_FSEEKO=1
9091    fi
9092    if test $gl_cv_var_stdin_large_offset = no; then
9093      REPLACE_FSEEKO=1
9094    fi
9095
9096  fi
9097
9098
9099     GNULIB_FCHMODAT=0;
9100  GNULIB_FSTAT=0;
9101  GNULIB_FSTATAT=0;
9102  GNULIB_FUTIMENS=0;
9103  GNULIB_LCHMOD=0;
9104  GNULIB_LSTAT=0;
9105  GNULIB_MKDIRAT=0;
9106  GNULIB_MKFIFO=0;
9107  GNULIB_MKFIFOAT=0;
9108  GNULIB_MKNOD=0;
9109  GNULIB_MKNODAT=0;
9110  GNULIB_STAT=0;
9111  GNULIB_UTIMENSAT=0;
9112    HAVE_FCHMODAT=1;
9113  HAVE_FSTATAT=1;
9114  HAVE_FUTIMENS=1;
9115  HAVE_LCHMOD=1;
9116  HAVE_LSTAT=1;
9117  HAVE_MKDIRAT=1;
9118  HAVE_MKFIFO=1;
9119  HAVE_MKFIFOAT=1;
9120  HAVE_MKNOD=1;
9121  HAVE_MKNODAT=1;
9122  HAVE_UTIMENSAT=1;
9123  REPLACE_FSTAT=0;
9124  REPLACE_FSTATAT=0;
9125  REPLACE_FUTIMENS=0;
9126  REPLACE_LSTAT=0;
9127  REPLACE_MKDIR=0;
9128  REPLACE_MKFIFO=0;
9129  REPLACE_MKNOD=0;
9130  REPLACE_STAT=0;
9131  REPLACE_UTIMENSAT=0;
9132
9133
9134
9135
9136
9137  if test $ac_cv_func__set_invalid_parameter_handler = yes; then
9138    HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
9139
9140$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
9141
9142  else
9143    HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
9144  fi
9145
9146
9147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9148$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9149if ${ac_cv_header_stat_broken+:} false; then :
9150  $as_echo_n "(cached) " >&6
9151else
9152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153/* end confdefs.h.  */
9154#include <sys/types.h>
9155#include <sys/stat.h>
9156
9157#if defined S_ISBLK && defined S_IFDIR
9158extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9159#endif
9160
9161#if defined S_ISBLK && defined S_IFCHR
9162extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9163#endif
9164
9165#if defined S_ISLNK && defined S_IFREG
9166extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9167#endif
9168
9169#if defined S_ISSOCK && defined S_IFREG
9170extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9171#endif
9172
9173_ACEOF
9174if ac_fn_c_try_compile "$LINENO"; then :
9175  ac_cv_header_stat_broken=no
9176else
9177  ac_cv_header_stat_broken=yes
9178fi
9179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9180fi
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9182$as_echo "$ac_cv_header_stat_broken" >&6; }
9183if test $ac_cv_header_stat_broken = yes; then
9184
9185$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9186
9187fi
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205     if test $gl_cv_have_include_next = yes; then
9206       gl_cv_next_sys_stat_h='<'sys/stat.h'>'
9207     else
9208       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
9209$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
9210if ${gl_cv_next_sys_stat_h+:} false; then :
9211  $as_echo_n "(cached) " >&6
9212else
9213
9214             if test $ac_cv_header_sys_stat_h = yes; then
9215
9216
9217               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218/* end confdefs.h.  */
9219#include <sys/stat.h>
9220
9221_ACEOF
9222                                                                                                                        case "$host_os" in
9223                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9224                 *)    gl_absname_cpp="$ac_cpp" ;;
9225               esac
9226
9227               case "$host_os" in
9228                 mingw*)
9229                                                                                                                                     gl_dirsep_regex='[/\\]'
9230                   ;;
9231                 *)
9232                   gl_dirsep_regex='\/'
9233                   ;;
9234               esac
9235                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9236
9237               gl_header_literal_regex=`echo 'sys/stat.h' \
9238                                        | sed -e "$gl_make_literal_regex_sed"`
9239               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9240                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9241                   s|^/[^/]|//&|
9242                   p
9243                   q
9244                 }'
9245                                                            gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9246                      sed -n "$gl_absolute_header_sed"`'"'
9247          else
9248               gl_cv_next_sys_stat_h='<'sys/stat.h'>'
9249             fi
9250
9251
9252fi
9253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
9254$as_echo "$gl_cv_next_sys_stat_h" >&6; }
9255     fi
9256     NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
9257
9258     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9259       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9260       gl_next_as_first_directive='<'sys/stat.h'>'
9261     else
9262       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9263       gl_next_as_first_directive=$gl_cv_next_sys_stat_h
9264     fi
9265     NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277  if test $WINDOWS_64_BIT_ST_SIZE = 1; then
9278
9279$as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
9280
9281  fi
9282
9283      ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
9284     #include <sys/stat.h>
9285"
9286if test "x$ac_cv_type_nlink_t" = xyes; then :
9287
9288else
9289
9290$as_echo "#define nlink_t int" >>confdefs.h
9291
9292fi
9293
9294
9295
9296    for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
9297    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9298    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9299$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9300if eval \${$as_gl_Symbol+:} false; then :
9301  $as_echo_n "(cached) " >&6
9302else
9303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304/* end confdefs.h.  */
9305#include <sys/stat.h>
9306
9307int
9308main ()
9309{
9310#undef $gl_func
9311  (void) $gl_func;
9312  ;
9313  return 0;
9314}
9315_ACEOF
9316if ac_fn_c_try_compile "$LINENO"; then :
9317  eval "$as_gl_Symbol=yes"
9318else
9319  eval "$as_gl_Symbol=no"
9320fi
9321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322fi
9323eval ac_res=\$$as_gl_Symbol
9324	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9325$as_echo "$ac_res" >&6; }
9326    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9327  cat >>confdefs.h <<_ACEOF
9328#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9329_ACEOF
9330
9331                     eval ac_cv_have_decl_$gl_func=yes
9332fi
9333      done
9334
9335
9336
9337
9338
9339
9340
9341
9342ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
9343if test "x$ac_cv_have_decl_ftello" = xyes; then :
9344  ac_have_decl=1
9345else
9346  ac_have_decl=0
9347fi
9348
9349cat >>confdefs.h <<_ACEOF
9350#define HAVE_DECL_FTELLO $ac_have_decl
9351_ACEOF
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362  if test $ac_cv_have_decl_ftello = no; then
9363    HAVE_DECL_FTELLO=0
9364  fi
9365
9366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
9367$as_echo_n "checking for ftello... " >&6; }
9368if ${gl_cv_func_ftello+:} false; then :
9369  $as_echo_n "(cached) " >&6
9370else
9371
9372      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373/* end confdefs.h.  */
9374#include <stdio.h>
9375int
9376main ()
9377{
9378ftello (stdin);
9379  ;
9380  return 0;
9381}
9382_ACEOF
9383if ac_fn_c_try_link "$LINENO"; then :
9384  gl_cv_func_ftello=yes
9385else
9386  gl_cv_func_ftello=no
9387fi
9388rm -f core conftest.err conftest.$ac_objext \
9389    conftest$ac_exeext conftest.$ac_ext
9390
9391fi
9392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
9393$as_echo "$gl_cv_func_ftello" >&6; }
9394  if test $gl_cv_func_ftello = no; then
9395    HAVE_FTELLO=0
9396  else
9397    if test $WINDOWS_64_BIT_OFF_T = 1; then
9398      REPLACE_FTELLO=1
9399    fi
9400    if test $gl_cv_var_stdin_large_offset = no; then
9401      REPLACE_FTELLO=1
9402    fi
9403    if test $REPLACE_FTELLO = 0; then
9404
9405      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
9406$as_echo_n "checking whether ftello works... " >&6; }
9407if ${gl_cv_func_ftello_works+:} false; then :
9408  $as_echo_n "(cached) " >&6
9409else
9410
9411                              case "$host_os" in
9412                      # Guess no on Solaris.
9413            solaris*) gl_cv_func_ftello_works="guessing no" ;;
9414                      # Guess yes otherwise.
9415            *)        gl_cv_func_ftello_works="guessing yes" ;;
9416          esac
9417          if test "$cross_compiling" = yes; then :
9418  :
9419else
9420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421/* end confdefs.h.  */
9422
9423#include <stdio.h>
9424#include <stdlib.h>
9425#include <string.h>
9426#define TESTFILE "conftest.tmp"
9427int
9428main (void)
9429{
9430  FILE *fp;
9431
9432  /* Create a file with some contents.  */
9433  fp = fopen (TESTFILE, "w");
9434  if (fp == NULL)
9435    return 70;
9436  if (fwrite ("foogarsh", 1, 8, fp) < 8)
9437    return 71;
9438  if (fclose (fp))
9439    return 72;
9440
9441  /* The file's contents is now "foogarsh".  */
9442
9443  /* Try writing after reading to EOF.  */
9444  fp = fopen (TESTFILE, "r+");
9445  if (fp == NULL)
9446    return 73;
9447  if (fseek (fp, -1, SEEK_END))
9448    return 74;
9449  if (!(getc (fp) == 'h'))
9450    return 1;
9451  if (!(getc (fp) == EOF))
9452    return 2;
9453  if (!(ftell (fp) == 8))
9454    return 3;
9455  if (!(ftell (fp) == 8))
9456    return 4;
9457  if (!(putc ('!', fp) == '!'))
9458    return 5;
9459  if (!(ftell (fp) == 9))
9460    return 6;
9461  if (!(fclose (fp) == 0))
9462    return 7;
9463  fp = fopen (TESTFILE, "r");
9464  if (fp == NULL)
9465    return 75;
9466  {
9467    char buf[10];
9468    if (!(fread (buf, 1, 10, fp) == 9))
9469      return 10;
9470    if (!(memcmp (buf, "foogarsh!", 9) == 0))
9471      return 11;
9472  }
9473  if (!(fclose (fp) == 0))
9474    return 12;
9475
9476  /* The file's contents is now "foogarsh!".  */
9477
9478  return 0;
9479}
9480_ACEOF
9481if ac_fn_c_try_run "$LINENO"; then :
9482  gl_cv_func_ftello_works=yes
9483else
9484  gl_cv_func_ftello_works=no
9485fi
9486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9487  conftest.$ac_objext conftest.beam conftest.$ac_ext
9488fi
9489
9490
9491fi
9492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
9493$as_echo "$gl_cv_func_ftello_works" >&6; }
9494      case "$gl_cv_func_ftello_works" in
9495        *yes) ;;
9496        *)
9497          REPLACE_FTELLO=1
9498
9499$as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
9500
9501          ;;
9502      esac
9503    fi
9504  fi
9505
9506
9507
9508
9509  GNULIB_SOCKET=0;
9510  GNULIB_CONNECT=0;
9511  GNULIB_ACCEPT=0;
9512  GNULIB_BIND=0;
9513  GNULIB_GETPEERNAME=0;
9514  GNULIB_GETSOCKNAME=0;
9515  GNULIB_GETSOCKOPT=0;
9516  GNULIB_LISTEN=0;
9517  GNULIB_RECV=0;
9518  GNULIB_SEND=0;
9519  GNULIB_RECVFROM=0;
9520  GNULIB_SENDTO=0;
9521  GNULIB_SETSOCKOPT=0;
9522  GNULIB_SHUTDOWN=0;
9523  GNULIB_ACCEPT4=0;
9524  HAVE_STRUCT_SOCKADDR_STORAGE=1;
9525  HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
9526
9527  HAVE_SA_FAMILY_T=1;
9528  HAVE_ACCEPT4=1;
9529
9530
9531
9532
9533   if test $ac_cv_header_sys_socket_h = no; then
9534                         for ac_header in ws2tcpip.h
9535do :
9536  ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
9537if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
9538  cat >>confdefs.h <<_ACEOF
9539#define HAVE_WS2TCPIP_H 1
9540_ACEOF
9541
9542fi
9543
9544done
9545
9546   fi
9547
9548
9549
9550
9551
9552        case "$host_os" in
9553    osf*)
9554
9555$as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
9556
9557      ;;
9558  esac
9559
9560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
9561$as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
9562if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
9563  $as_echo_n "(cached) " >&6
9564else
9565
9566      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567/* end confdefs.h.  */
9568#include <sys/socket.h>
9569int
9570main ()
9571{
9572
9573  ;
9574  return 0;
9575}
9576_ACEOF
9577if ac_fn_c_try_compile "$LINENO"; then :
9578  gl_cv_header_sys_socket_h_selfcontained=yes
9579else
9580  gl_cv_header_sys_socket_h_selfcontained=no
9581fi
9582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9583
9584fi
9585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
9586$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
9587  if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
9588            for ac_func in shutdown
9589do :
9590  ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
9591if test "x$ac_cv_func_shutdown" = xyes; then :
9592  cat >>confdefs.h <<_ACEOF
9593#define HAVE_SHUTDOWN 1
9594_ACEOF
9595
9596fi
9597done
9598
9599    if test $ac_cv_func_shutdown = yes; then
9600      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
9601$as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
9602if ${gl_cv_header_sys_socket_h_shut+:} false; then :
9603  $as_echo_n "(cached) " >&6
9604else
9605
9606          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607/* end confdefs.h.  */
9608#include <sys/socket.h>
9609int
9610main ()
9611{
9612int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
9613  ;
9614  return 0;
9615}
9616_ACEOF
9617if ac_fn_c_try_compile "$LINENO"; then :
9618  gl_cv_header_sys_socket_h_shut=yes
9619else
9620  gl_cv_header_sys_socket_h_shut=no
9621fi
9622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9623
9624fi
9625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
9626$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
9627      if test $gl_cv_header_sys_socket_h_shut = no; then
9628        SYS_SOCKET_H='sys/socket.h'
9629      fi
9630    fi
9631  fi
9632  # We need to check for ws2tcpip.h now.
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644     if test $gl_cv_have_include_next = yes; then
9645       gl_cv_next_sys_socket_h='<'sys/socket.h'>'
9646     else
9647       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
9648$as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
9649if ${gl_cv_next_sys_socket_h+:} false; then :
9650  $as_echo_n "(cached) " >&6
9651else
9652
9653             if test $ac_cv_header_sys_socket_h = yes; then
9654
9655
9656               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657/* end confdefs.h.  */
9658#include <sys/socket.h>
9659
9660_ACEOF
9661                                                                                                                        case "$host_os" in
9662                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9663                 *)    gl_absname_cpp="$ac_cpp" ;;
9664               esac
9665
9666               case "$host_os" in
9667                 mingw*)
9668                                                                                                                                     gl_dirsep_regex='[/\\]'
9669                   ;;
9670                 *)
9671                   gl_dirsep_regex='\/'
9672                   ;;
9673               esac
9674                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9675
9676               gl_header_literal_regex=`echo 'sys/socket.h' \
9677                                        | sed -e "$gl_make_literal_regex_sed"`
9678               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9679                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9680                   s|^/[^/]|//&|
9681                   p
9682                   q
9683                 }'
9684                                                            gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9685                      sed -n "$gl_absolute_header_sed"`'"'
9686          else
9687               gl_cv_next_sys_socket_h='<'sys/socket.h'>'
9688             fi
9689
9690
9691fi
9692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
9693$as_echo "$gl_cv_next_sys_socket_h" >&6; }
9694     fi
9695     NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
9696
9697     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9698       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9699       gl_next_as_first_directive='<'sys/socket.h'>'
9700     else
9701       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9702       gl_next_as_first_directive=$gl_cv_next_sys_socket_h
9703     fi
9704     NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
9705
9706
9707
9708
9709  if test $ac_cv_header_sys_socket_h = yes; then
9710    HAVE_SYS_SOCKET_H=1
9711    HAVE_WS2TCPIP_H=0
9712  else
9713    HAVE_SYS_SOCKET_H=0
9714    if test $ac_cv_header_ws2tcpip_h = yes; then
9715      HAVE_WS2TCPIP_H=1
9716    else
9717      HAVE_WS2TCPIP_H=0
9718    fi
9719  fi
9720
9721
9722
9723  ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
9724  /* sys/types.h is not needed according to POSIX, but the
9725     sys/socket.h in i386-unknown-freebsd4.10 and
9726     powerpc-apple-darwin5.5 required it. */
9727#include <sys/types.h>
9728#ifdef HAVE_SYS_SOCKET_H
9729#include <sys/socket.h>
9730#endif
9731#ifdef HAVE_WS2TCPIP_H
9732#include <ws2tcpip.h>
9733#endif
9734
9735"
9736if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
9737
9738cat >>confdefs.h <<_ACEOF
9739#define HAVE_STRUCT_SOCKADDR_STORAGE 1
9740_ACEOF
9741
9742
9743fi
9744ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
9745  /* sys/types.h is not needed according to POSIX, but the
9746     sys/socket.h in i386-unknown-freebsd4.10 and
9747     powerpc-apple-darwin5.5 required it. */
9748#include <sys/types.h>
9749#ifdef HAVE_SYS_SOCKET_H
9750#include <sys/socket.h>
9751#endif
9752#ifdef HAVE_WS2TCPIP_H
9753#include <ws2tcpip.h>
9754#endif
9755
9756"
9757if test "x$ac_cv_type_sa_family_t" = xyes; then :
9758
9759cat >>confdefs.h <<_ACEOF
9760#define HAVE_SA_FAMILY_T 1
9761_ACEOF
9762
9763
9764fi
9765
9766  if test $ac_cv_type_struct_sockaddr_storage = no; then
9767    HAVE_STRUCT_SOCKADDR_STORAGE=0
9768  fi
9769  if test $ac_cv_type_sa_family_t = no; then
9770    HAVE_SA_FAMILY_T=0
9771  fi
9772  if test $ac_cv_type_struct_sockaddr_storage != no; then
9773    ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
9774       #ifdef HAVE_SYS_SOCKET_H
9775       #include <sys/socket.h>
9776       #endif
9777       #ifdef HAVE_WS2TCPIP_H
9778       #include <ws2tcpip.h>
9779       #endif
9780
9781"
9782if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
9783
9784cat >>confdefs.h <<_ACEOF
9785#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9786_ACEOF
9787
9788
9789else
9790  HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
9791fi
9792
9793  fi
9794  if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
9795     || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
9796    SYS_SOCKET_H='sys/socket.h'
9797  fi
9798
9799
9800
9801
9802  if test $ac_cv_header_sys_socket_h != yes; then
9803                    for ac_header in winsock2.h
9804do :
9805  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9806if test "x$ac_cv_header_winsock2_h" = xyes; then :
9807  cat >>confdefs.h <<_ACEOF
9808#define HAVE_WINSOCK2_H 1
9809_ACEOF
9810
9811fi
9812
9813done
9814
9815  fi
9816  if test "$ac_cv_header_winsock2_h" = yes; then
9817    HAVE_WINSOCK2_H=1
9818    UNISTD_H_HAVE_WINSOCK2_H=1
9819    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
9820  else
9821    HAVE_WINSOCK2_H=0
9822  fi
9823
9824
9825
9826
9827    for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
9828    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9829    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9830$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9831if eval \${$as_gl_Symbol+:} false; then :
9832  $as_echo_n "(cached) " >&6
9833else
9834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835/* end confdefs.h.  */
9836
9837/* Some systems require prerequisite headers.  */
9838#include <sys/types.h>
9839#include <sys/socket.h>
9840
9841int
9842main ()
9843{
9844#undef $gl_func
9845  (void) $gl_func;
9846  ;
9847  return 0;
9848}
9849_ACEOF
9850if ac_fn_c_try_compile "$LINENO"; then :
9851  eval "$as_gl_Symbol=yes"
9852else
9853  eval "$as_gl_Symbol=no"
9854fi
9855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9856fi
9857eval ac_res=\$$as_gl_Symbol
9858	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9859$as_echo "$ac_res" >&6; }
9860    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9861  cat >>confdefs.h <<_ACEOF
9862#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9863_ACEOF
9864
9865                     eval ac_cv_have_decl_$gl_func=yes
9866fi
9867      done
9868
9869
9870
9871  GNULIB_GETADDRINFO=0;
9872    HAVE_STRUCT_ADDRINFO=1;
9873  HAVE_DECL_FREEADDRINFO=1;
9874  HAVE_DECL_GAI_STRERROR=1;
9875  HAVE_DECL_GETADDRINFO=1;
9876  HAVE_DECL_GETNAMEINFO=1;
9877  REPLACE_GAI_STRERROR=0;
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892     if test $gl_cv_have_include_next = yes; then
9893       gl_cv_next_netdb_h='<'netdb.h'>'
9894     else
9895       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
9896$as_echo_n "checking absolute name of <netdb.h>... " >&6; }
9897if ${gl_cv_next_netdb_h+:} false; then :
9898  $as_echo_n "(cached) " >&6
9899else
9900
9901             if test $ac_cv_header_netdb_h = yes; then
9902
9903
9904               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905/* end confdefs.h.  */
9906#include <netdb.h>
9907
9908_ACEOF
9909                                                                                                                        case "$host_os" in
9910                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9911                 *)    gl_absname_cpp="$ac_cpp" ;;
9912               esac
9913
9914               case "$host_os" in
9915                 mingw*)
9916                                                                                                                                     gl_dirsep_regex='[/\\]'
9917                   ;;
9918                 *)
9919                   gl_dirsep_regex='\/'
9920                   ;;
9921               esac
9922                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9923
9924               gl_header_literal_regex=`echo 'netdb.h' \
9925                                        | sed -e "$gl_make_literal_regex_sed"`
9926               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9927                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9928                   s|^/[^/]|//&|
9929                   p
9930                   q
9931                 }'
9932                                                            gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9933                      sed -n "$gl_absolute_header_sed"`'"'
9934          else
9935               gl_cv_next_netdb_h='<'netdb.h'>'
9936             fi
9937
9938
9939fi
9940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
9941$as_echo "$gl_cv_next_netdb_h" >&6; }
9942     fi
9943     NEXT_NETDB_H=$gl_cv_next_netdb_h
9944
9945     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9946       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9947       gl_next_as_first_directive='<'netdb.h'>'
9948     else
9949       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9950       gl_next_as_first_directive=$gl_cv_next_netdb_h
9951     fi
9952     NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
9953
9954
9955
9956
9957  if test $ac_cv_header_netdb_h = yes; then
9958    HAVE_NETDB_H=1
9959  else
9960    HAVE_NETDB_H=0
9961  fi
9962
9963
9964
9965    for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
9966    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9967    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9968$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9969if eval \${$as_gl_Symbol+:} false; then :
9970  $as_echo_n "(cached) " >&6
9971else
9972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973/* end confdefs.h.  */
9974#include <netdb.h>
9975int
9976main ()
9977{
9978#undef $gl_func
9979  (void) $gl_func;
9980  ;
9981  return 0;
9982}
9983_ACEOF
9984if ac_fn_c_try_compile "$LINENO"; then :
9985  eval "$as_gl_Symbol=yes"
9986else
9987  eval "$as_gl_Symbol=no"
9988fi
9989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9990fi
9991eval ac_res=\$$as_gl_Symbol
9992	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9993$as_echo "$ac_res" >&6; }
9994    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9995  cat >>confdefs.h <<_ACEOF
9996#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9997_ACEOF
9998
9999                     eval ac_cv_have_decl_$gl_func=yes
10000fi
10001      done
10002
10003
10004
10005                  HOSTENT_LIB=
10006  gl_saved_libs="$LIBS"
10007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10008$as_echo_n "checking for library containing gethostbyname... " >&6; }
10009if ${ac_cv_search_gethostbyname+:} false; then :
10010  $as_echo_n "(cached) " >&6
10011else
10012  ac_func_search_save_LIBS=$LIBS
10013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014/* end confdefs.h.  */
10015
10016/* Override any GCC internal prototype to avoid an error.
10017   Use char because int might match the return type of a GCC
10018   builtin and then its argument prototype would still apply.  */
10019#ifdef __cplusplus
10020extern "C"
10021#endif
10022char gethostbyname ();
10023int
10024main ()
10025{
10026return gethostbyname ();
10027  ;
10028  return 0;
10029}
10030_ACEOF
10031for ac_lib in '' nsl network net; do
10032  if test -z "$ac_lib"; then
10033    ac_res="none required"
10034  else
10035    ac_res=-l$ac_lib
10036    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10037  fi
10038  if ac_fn_c_try_link "$LINENO"; then :
10039  ac_cv_search_gethostbyname=$ac_res
10040fi
10041rm -f core conftest.err conftest.$ac_objext \
10042    conftest$ac_exeext
10043  if ${ac_cv_search_gethostbyname+:} false; then :
10044  break
10045fi
10046done
10047if ${ac_cv_search_gethostbyname+:} false; then :
10048
10049else
10050  ac_cv_search_gethostbyname=no
10051fi
10052rm conftest.$ac_ext
10053LIBS=$ac_func_search_save_LIBS
10054fi
10055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10056$as_echo "$ac_cv_search_gethostbyname" >&6; }
10057ac_res=$ac_cv_search_gethostbyname
10058if test "$ac_res" != no; then :
10059  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10060  if test "$ac_cv_search_gethostbyname" != "none required"; then
10061       HOSTENT_LIB="$ac_cv_search_gethostbyname"
10062     fi
10063fi
10064
10065  LIBS="$gl_saved_libs"
10066  if test -z "$HOSTENT_LIB"; then
10067    for ac_func in gethostbyname
10068do :
10069  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10070if test "x$ac_cv_func_gethostbyname" = xyes; then :
10071  cat >>confdefs.h <<_ACEOF
10072#define HAVE_GETHOSTBYNAME 1
10073_ACEOF
10074
10075else
10076
10077      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
10078$as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
10079if ${gl_cv_w32_gethostbyname+:} false; then :
10080  $as_echo_n "(cached) " >&6
10081else
10082  gl_cv_w32_gethostbyname=no
10083         gl_save_LIBS="$LIBS"
10084         LIBS="$LIBS -lws2_32"
10085         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086/* end confdefs.h.  */
10087
10088#ifdef HAVE_WINSOCK2_H
10089#include <winsock2.h>
10090#endif
10091#include <stddef.h>
10092
10093int
10094main ()
10095{
10096gethostbyname(NULL);
10097  ;
10098  return 0;
10099}
10100_ACEOF
10101if ac_fn_c_try_link "$LINENO"; then :
10102  gl_cv_w32_gethostbyname=yes
10103fi
10104rm -f core conftest.err conftest.$ac_objext \
10105    conftest$ac_exeext conftest.$ac_ext
10106         LIBS="$gl_save_LIBS"
10107
10108fi
10109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
10110$as_echo "$gl_cv_w32_gethostbyname" >&6; }
10111      if test "$gl_cv_w32_gethostbyname" = "yes"; then
10112        HOSTENT_LIB="-lws2_32"
10113      fi
10114
10115fi
10116done
10117
10118  fi
10119
10120
10121
10122                      SERVENT_LIB=
10123  gl_saved_libs="$LIBS"
10124  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
10125$as_echo_n "checking for library containing getservbyname... " >&6; }
10126if ${ac_cv_search_getservbyname+:} false; then :
10127  $as_echo_n "(cached) " >&6
10128else
10129  ac_func_search_save_LIBS=$LIBS
10130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10131/* end confdefs.h.  */
10132
10133/* Override any GCC internal prototype to avoid an error.
10134   Use char because int might match the return type of a GCC
10135   builtin and then its argument prototype would still apply.  */
10136#ifdef __cplusplus
10137extern "C"
10138#endif
10139char getservbyname ();
10140int
10141main ()
10142{
10143return getservbyname ();
10144  ;
10145  return 0;
10146}
10147_ACEOF
10148for ac_lib in '' socket network net; do
10149  if test -z "$ac_lib"; then
10150    ac_res="none required"
10151  else
10152    ac_res=-l$ac_lib
10153    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10154  fi
10155  if ac_fn_c_try_link "$LINENO"; then :
10156  ac_cv_search_getservbyname=$ac_res
10157fi
10158rm -f core conftest.err conftest.$ac_objext \
10159    conftest$ac_exeext
10160  if ${ac_cv_search_getservbyname+:} false; then :
10161  break
10162fi
10163done
10164if ${ac_cv_search_getservbyname+:} false; then :
10165
10166else
10167  ac_cv_search_getservbyname=no
10168fi
10169rm conftest.$ac_ext
10170LIBS=$ac_func_search_save_LIBS
10171fi
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
10173$as_echo "$ac_cv_search_getservbyname" >&6; }
10174ac_res=$ac_cv_search_getservbyname
10175if test "$ac_res" != no; then :
10176  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10177  if test "$ac_cv_search_getservbyname" != "none required"; then
10178       SERVENT_LIB="$ac_cv_search_getservbyname"
10179     fi
10180fi
10181
10182  LIBS="$gl_saved_libs"
10183  if test -z "$SERVENT_LIB"; then
10184    for ac_func in getservbyname
10185do :
10186  ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
10187if test "x$ac_cv_func_getservbyname" = xyes; then :
10188  cat >>confdefs.h <<_ACEOF
10189#define HAVE_GETSERVBYNAME 1
10190_ACEOF
10191
10192else
10193
10194      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
10195$as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
10196if ${gl_cv_w32_getservbyname+:} false; then :
10197  $as_echo_n "(cached) " >&6
10198else
10199  gl_cv_w32_getservbyname=no
10200         gl_save_LIBS="$LIBS"
10201         LIBS="$LIBS -lws2_32"
10202         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203/* end confdefs.h.  */
10204
10205#ifdef HAVE_WINSOCK2_H
10206#include <winsock2.h>
10207#endif
10208#include <stddef.h>
10209
10210int
10211main ()
10212{
10213getservbyname(NULL,NULL);
10214  ;
10215  return 0;
10216}
10217_ACEOF
10218if ac_fn_c_try_link "$LINENO"; then :
10219  gl_cv_w32_getservbyname=yes
10220fi
10221rm -f core conftest.err conftest.$ac_objext \
10222    conftest$ac_exeext conftest.$ac_ext
10223         LIBS="$gl_save_LIBS"
10224
10225fi
10226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
10227$as_echo "$gl_cv_w32_getservbyname" >&6; }
10228      if test "$gl_cv_w32_getservbyname" = "yes"; then
10229        SERVENT_LIB="-lws2_32"
10230      fi
10231
10232fi
10233done
10234
10235  fi
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245              HAVE_INET_NTOP=1
10246  INET_NTOP_LIB=
10247
10248
10249
10250
10251  if test $ac_cv_header_sys_socket_h != yes; then
10252                    for ac_header in winsock2.h
10253do :
10254  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10255if test "x$ac_cv_header_winsock2_h" = xyes; then :
10256  cat >>confdefs.h <<_ACEOF
10257#define HAVE_WINSOCK2_H 1
10258_ACEOF
10259
10260fi
10261
10262done
10263
10264  fi
10265  if test "$ac_cv_header_winsock2_h" = yes; then
10266    HAVE_WINSOCK2_H=1
10267    UNISTD_H_HAVE_WINSOCK2_H=1
10268    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
10269  else
10270    HAVE_WINSOCK2_H=0
10271  fi
10272
10273
10274  if test $HAVE_WINSOCK2_H = 1; then
10275    ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
10276"
10277if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
10278  ac_have_decl=1
10279else
10280  ac_have_decl=0
10281fi
10282
10283cat >>confdefs.h <<_ACEOF
10284#define HAVE_DECL_INET_NTOP $ac_have_decl
10285_ACEOF
10286
10287    if test $ac_cv_have_decl_inet_ntop = yes; then
10288                  REPLACE_INET_NTOP=1
10289      INET_NTOP_LIB="-lws2_32"
10290    else
10291      HAVE_DECL_INET_NTOP=0
10292      HAVE_INET_NTOP=0
10293    fi
10294  else
10295    gl_save_LIBS=$LIBS
10296    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
10297$as_echo_n "checking for library containing inet_ntop... " >&6; }
10298if ${ac_cv_search_inet_ntop+:} false; then :
10299  $as_echo_n "(cached) " >&6
10300else
10301  ac_func_search_save_LIBS=$LIBS
10302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303/* end confdefs.h.  */
10304
10305/* Override any GCC internal prototype to avoid an error.
10306   Use char because int might match the return type of a GCC
10307   builtin and then its argument prototype would still apply.  */
10308#ifdef __cplusplus
10309extern "C"
10310#endif
10311char inet_ntop ();
10312int
10313main ()
10314{
10315return inet_ntop ();
10316  ;
10317  return 0;
10318}
10319_ACEOF
10320for ac_lib in '' nsl resolv; do
10321  if test -z "$ac_lib"; then
10322    ac_res="none required"
10323  else
10324    ac_res=-l$ac_lib
10325    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10326  fi
10327  if ac_fn_c_try_link "$LINENO"; then :
10328  ac_cv_search_inet_ntop=$ac_res
10329fi
10330rm -f core conftest.err conftest.$ac_objext \
10331    conftest$ac_exeext
10332  if ${ac_cv_search_inet_ntop+:} false; then :
10333  break
10334fi
10335done
10336if ${ac_cv_search_inet_ntop+:} false; then :
10337
10338else
10339  ac_cv_search_inet_ntop=no
10340fi
10341rm conftest.$ac_ext
10342LIBS=$ac_func_search_save_LIBS
10343fi
10344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
10345$as_echo "$ac_cv_search_inet_ntop" >&6; }
10346ac_res=$ac_cv_search_inet_ntop
10347if test "$ac_res" != no; then :
10348  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10349
10350else
10351  for ac_func in inet_ntop
10352do :
10353  ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
10354if test "x$ac_cv_func_inet_ntop" = xyes; then :
10355  cat >>confdefs.h <<_ACEOF
10356#define HAVE_INET_NTOP 1
10357_ACEOF
10358
10359fi
10360done
10361
10362       if test $ac_cv_func_inet_ntop = no; then
10363         HAVE_INET_NTOP=0
10364       fi
10365
10366fi
10367
10368    LIBS=$gl_save_LIBS
10369
10370    if test "$ac_cv_search_inet_ntop" != "no" \
10371       && test "$ac_cv_search_inet_ntop" != "none required"; then
10372      INET_NTOP_LIB="$ac_cv_search_inet_ntop"
10373    fi
10374
10375
10376    ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
10377        #if HAVE_NETDB_H
10378        # include <netdb.h>
10379        #endif
10380
10381"
10382if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
10383  ac_have_decl=1
10384else
10385  ac_have_decl=0
10386fi
10387
10388cat >>confdefs.h <<_ACEOF
10389#define HAVE_DECL_INET_NTOP $ac_have_decl
10390_ACEOF
10391
10392    if test $ac_cv_have_decl_inet_ntop = no; then
10393      HAVE_DECL_INET_NTOP=0
10394    fi
10395  fi
10396
10397
10398
10399
10400
10401
10402
10403
10404  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
10405$as_echo_n "checking for IPv4 sockets... " >&6; }
10406  if ${gl_cv_socket_ipv4+:} false; then :
10407  $as_echo_n "(cached) " >&6
10408else
10409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410/* end confdefs.h.  */
10411#include <sys/types.h>
10412#ifdef HAVE_SYS_SOCKET_H
10413#include <sys/socket.h>
10414#endif
10415#ifdef HAVE_NETINET_IN_H
10416#include <netinet/in.h>
10417#endif
10418#ifdef HAVE_WINSOCK2_H
10419#include <winsock2.h>
10420#endif
10421int
10422main ()
10423{
10424int x = AF_INET; struct in_addr y; struct sockaddr_in z;
10425 if (&x && &y && &z) return 0;
10426  ;
10427  return 0;
10428}
10429_ACEOF
10430if ac_fn_c_try_compile "$LINENO"; then :
10431  gl_cv_socket_ipv4=yes
10432else
10433  gl_cv_socket_ipv4=no
10434fi
10435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10436fi
10437
10438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
10439$as_echo "$gl_cv_socket_ipv4" >&6; }
10440  if test $gl_cv_socket_ipv4 = yes; then
10441
10442$as_echo "#define HAVE_IPV4 1" >>confdefs.h
10443
10444  fi
10445
10446  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
10447$as_echo_n "checking for IPv6 sockets... " >&6; }
10448  if ${gl_cv_socket_ipv6+:} false; then :
10449  $as_echo_n "(cached) " >&6
10450else
10451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452/* end confdefs.h.  */
10453#include <sys/types.h>
10454#ifdef HAVE_SYS_SOCKET_H
10455#include <sys/socket.h>
10456#endif
10457#ifdef HAVE_NETINET_IN_H
10458#include <netinet/in.h>
10459#endif
10460#ifdef HAVE_WINSOCK2_H
10461#include <winsock2.h>
10462#endif
10463#ifdef HAVE_WS2TCPIP_H
10464#include <ws2tcpip.h>
10465#endif
10466int
10467main ()
10468{
10469int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
10470 if (&x && &y && &z) return 0;
10471  ;
10472  return 0;
10473}
10474_ACEOF
10475if ac_fn_c_try_compile "$LINENO"; then :
10476  gl_cv_socket_ipv6=yes
10477else
10478  gl_cv_socket_ipv6=no
10479fi
10480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10481fi
10482
10483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
10484$as_echo "$gl_cv_socket_ipv6" >&6; }
10485  if test $gl_cv_socket_ipv6 = yes; then
10486
10487$as_echo "#define HAVE_IPV6 1" >>confdefs.h
10488
10489  fi
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506     if test $gl_cv_have_include_next = yes; then
10507       gl_cv_next_getopt_h='<'getopt.h'>'
10508     else
10509       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
10510$as_echo_n "checking absolute name of <getopt.h>... " >&6; }
10511if ${gl_cv_next_getopt_h+:} false; then :
10512  $as_echo_n "(cached) " >&6
10513else
10514
10515             if test $ac_cv_header_getopt_h = yes; then
10516
10517
10518               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10519/* end confdefs.h.  */
10520#include <getopt.h>
10521
10522_ACEOF
10523                                                                                                                        case "$host_os" in
10524                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10525                 *)    gl_absname_cpp="$ac_cpp" ;;
10526               esac
10527
10528               case "$host_os" in
10529                 mingw*)
10530                                                                                                                                     gl_dirsep_regex='[/\\]'
10531                   ;;
10532                 *)
10533                   gl_dirsep_regex='\/'
10534                   ;;
10535               esac
10536                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10537
10538               gl_header_literal_regex=`echo 'getopt.h' \
10539                                        | sed -e "$gl_make_literal_regex_sed"`
10540               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10541                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10542                   s|^/[^/]|//&|
10543                   p
10544                   q
10545                 }'
10546                                                            gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10547                      sed -n "$gl_absolute_header_sed"`'"'
10548          else
10549               gl_cv_next_getopt_h='<'getopt.h'>'
10550             fi
10551
10552
10553fi
10554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
10555$as_echo "$gl_cv_next_getopt_h" >&6; }
10556     fi
10557     NEXT_GETOPT_H=$gl_cv_next_getopt_h
10558
10559     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10560       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10561       gl_next_as_first_directive='<'getopt.h'>'
10562     else
10563       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10564       gl_next_as_first_directive=$gl_cv_next_getopt_h
10565     fi
10566     NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
10567
10568
10569
10570
10571  if test $ac_cv_header_getopt_h = yes; then
10572    HAVE_GETOPT_H=1
10573  else
10574    HAVE_GETOPT_H=0
10575  fi
10576
10577
10578  gl_replace_getopt=
10579
10580    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
10581    for ac_header in getopt.h
10582do :
10583  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
10584if test "x$ac_cv_header_getopt_h" = xyes; then :
10585  cat >>confdefs.h <<_ACEOF
10586#define HAVE_GETOPT_H 1
10587_ACEOF
10588
10589else
10590  gl_replace_getopt=yes
10591fi
10592
10593done
10594
10595  fi
10596
10597    if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
10598    for ac_func in getopt_long_only
10599do :
10600  ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
10601if test "x$ac_cv_func_getopt_long_only" = xyes; then :
10602  cat >>confdefs.h <<_ACEOF
10603#define HAVE_GETOPT_LONG_ONLY 1
10604_ACEOF
10605
10606else
10607  gl_replace_getopt=yes
10608fi
10609done
10610
10611  fi
10612
10613          if test -z "$gl_replace_getopt"; then
10614    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
10615$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
10616if ${gl_cv_func_getopt_posix+:} false; then :
10617  $as_echo_n "(cached) " >&6
10618else
10619
10620                                                if test $cross_compiling = no; then
10621                              if test "$cross_compiling" = yes; then :
10622  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10624as_fn_error $? "cannot run test program while cross compiling
10625See \`config.log' for more details" "$LINENO" 5; }
10626else
10627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628/* end confdefs.h.  */
10629
10630#include <unistd.h>
10631#include <stdlib.h>
10632#include <string.h>
10633
10634int
10635main ()
10636{
10637  static char program[] = "program";
10638  static char a[] = "-a";
10639  static char foo[] = "foo";
10640  static char bar[] = "bar";
10641  char *argv[] = { program, a, foo, bar, NULL };
10642  int c;
10643
10644  c = getopt (4, argv, "ab");
10645  if (!(c == 'a'))
10646    return 1;
10647  c = getopt (4, argv, "ab");
10648  if (!(c == -1))
10649    return 2;
10650  if (!(optind == 2))
10651    return 3;
10652  return 0;
10653}
10654
10655_ACEOF
10656if ac_fn_c_try_run "$LINENO"; then :
10657  gl_cv_func_getopt_posix=maybe
10658else
10659  gl_cv_func_getopt_posix=no
10660fi
10661rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10662  conftest.$ac_objext conftest.beam conftest.$ac_ext
10663fi
10664
10665          if test $gl_cv_func_getopt_posix = maybe; then
10666                                    if test "$cross_compiling" = yes; then :
10667  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10669as_fn_error $? "cannot run test program while cross compiling
10670See \`config.log' for more details" "$LINENO" 5; }
10671else
10672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673/* end confdefs.h.  */
10674
10675#include <unistd.h>
10676#include <stdlib.h>
10677#include <string.h>
10678
10679int
10680main ()
10681{
10682  static char program[] = "program";
10683  static char donald[] = "donald";
10684  static char p[] = "-p";
10685  static char billy[] = "billy";
10686  static char duck[] = "duck";
10687  static char a[] = "-a";
10688  static char bar[] = "bar";
10689  char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
10690  int c;
10691
10692  c = getopt (7, argv, "+abp:q:");
10693  if (!(c == -1))
10694    return 4;
10695  if (!(strcmp (argv[0], "program") == 0))
10696    return 5;
10697  if (!(strcmp (argv[1], "donald") == 0))
10698    return 6;
10699  if (!(strcmp (argv[2], "-p") == 0))
10700    return 7;
10701  if (!(strcmp (argv[3], "billy") == 0))
10702    return 8;
10703  if (!(strcmp (argv[4], "duck") == 0))
10704    return 9;
10705  if (!(strcmp (argv[5], "-a") == 0))
10706    return 10;
10707  if (!(strcmp (argv[6], "bar") == 0))
10708    return 11;
10709  if (!(optind == 1))
10710    return 12;
10711  return 0;
10712}
10713
10714_ACEOF
10715if ac_fn_c_try_run "$LINENO"; then :
10716  gl_cv_func_getopt_posix=maybe
10717else
10718  gl_cv_func_getopt_posix=no
10719fi
10720rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10721  conftest.$ac_objext conftest.beam conftest.$ac_ext
10722fi
10723
10724          fi
10725          if test $gl_cv_func_getopt_posix = maybe; then
10726                        if test "$cross_compiling" = yes; then :
10727  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10729as_fn_error $? "cannot run test program while cross compiling
10730See \`config.log' for more details" "$LINENO" 5; }
10731else
10732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733/* end confdefs.h.  */
10734
10735#include <unistd.h>
10736#include <stdlib.h>
10737#include <string.h>
10738
10739int
10740main ()
10741{
10742  static char program[] = "program";
10743  static char ab[] = "-ab";
10744  char *argv[3] = { program, ab, NULL };
10745  if (getopt (2, argv, "ab:") != 'a')
10746    return 13;
10747  if (getopt (2, argv, "ab:") != '?')
10748    return 14;
10749  if (optopt != 'b')
10750    return 15;
10751  if (optind != 2)
10752    return 16;
10753  return 0;
10754}
10755
10756_ACEOF
10757if ac_fn_c_try_run "$LINENO"; then :
10758  gl_cv_func_getopt_posix=yes
10759else
10760  gl_cv_func_getopt_posix=no
10761fi
10762rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10763  conftest.$ac_objext conftest.beam conftest.$ac_ext
10764fi
10765
10766          fi
10767        else
10768          case "$host_os" in
10769            darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
10770            *)                       gl_cv_func_getopt_posix="guessing yes";;
10771          esac
10772        fi
10773
10774fi
10775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
10776$as_echo "$gl_cv_func_getopt_posix" >&6; }
10777    case "$gl_cv_func_getopt_posix" in
10778      *no) gl_replace_getopt=yes ;;
10779    esac
10780  fi
10781
10782  if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
10783    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
10784$as_echo_n "checking for working GNU getopt function... " >&6; }
10785if ${gl_cv_func_getopt_gnu+:} false; then :
10786  $as_echo_n "(cached) " >&6
10787else
10788  # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
10789       # optstring is necessary for programs like m4 that have POSIX-mandated
10790       # semantics for supporting options interspersed with files.
10791       # Also, since getopt_long is a GNU extension, we require optind=0.
10792       # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
10793       # so take care to revert to the correct (non-)export state.
10794       gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
10795       case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
10796         xx) gl_had_POSIXLY_CORRECT=exported ;;
10797         x)  gl_had_POSIXLY_CORRECT=yes      ;;
10798         *)  gl_had_POSIXLY_CORRECT=         ;;
10799       esac
10800       POSIXLY_CORRECT=1
10801       export POSIXLY_CORRECT
10802       if test "$cross_compiling" = yes; then :
10803           gl_cv_func_getopt_gnu="guessing no"
10804
10805else
10806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807/* end confdefs.h.  */
10808#include <getopt.h>
10809                           #include <stddef.h>
10810                           #include <string.h>
10811
10812#include <stdlib.h>
10813#if defined __MACH__ && defined __APPLE__
10814/* Avoid a crash on Mac OS X.  */
10815#include <mach/mach.h>
10816#include <mach/mach_error.h>
10817#include <mach/thread_status.h>
10818#include <mach/exception.h>
10819#include <mach/task.h>
10820#include <pthread.h>
10821/* The exception port on which our thread listens.  */
10822static mach_port_t our_exception_port;
10823/* The main function of the thread listening for exceptions of type
10824   EXC_BAD_ACCESS.  */
10825static void *
10826mach_exception_thread (void *arg)
10827{
10828  /* Buffer for a message to be received.  */
10829  struct {
10830    mach_msg_header_t head;
10831    mach_msg_body_t msgh_body;
10832    char data[1024];
10833  } msg;
10834  mach_msg_return_t retval;
10835  /* Wait for a message on the exception port.  */
10836  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
10837                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
10838  if (retval != MACH_MSG_SUCCESS)
10839    abort ();
10840  exit (1);
10841}
10842static void
10843nocrash_init (void)
10844{
10845  mach_port_t self = mach_task_self ();
10846  /* Allocate a port on which the thread shall listen for exceptions.  */
10847  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
10848      == KERN_SUCCESS) {
10849    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
10850    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
10851                                MACH_MSG_TYPE_MAKE_SEND)
10852        == KERN_SUCCESS) {
10853      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
10854         for us.  */
10855      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
10856      /* Create the thread listening on the exception port.  */
10857      pthread_attr_t attr;
10858      pthread_t thread;
10859      if (pthread_attr_init (&attr) == 0
10860          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
10861          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
10862        pthread_attr_destroy (&attr);
10863        /* Replace the exception port info for these exceptions with our own.
10864           Note that we replace the exception port for the entire task, not only
10865           for a particular thread.  This has the effect that when our exception
10866           port gets the message, the thread specific exception port has already
10867           been asked, and we don't need to bother about it.
10868           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
10869        task_set_exception_ports (self, mask, our_exception_port,
10870                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
10871      }
10872    }
10873  }
10874}
10875#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
10876/* Avoid a crash on native Windows.  */
10877#define WIN32_LEAN_AND_MEAN
10878#include <windows.h>
10879#include <winerror.h>
10880static LONG WINAPI
10881exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
10882{
10883  switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
10884    {
10885    case EXCEPTION_ACCESS_VIOLATION:
10886    case EXCEPTION_IN_PAGE_ERROR:
10887    case EXCEPTION_STACK_OVERFLOW:
10888    case EXCEPTION_GUARD_PAGE:
10889    case EXCEPTION_PRIV_INSTRUCTION:
10890    case EXCEPTION_ILLEGAL_INSTRUCTION:
10891    case EXCEPTION_DATATYPE_MISALIGNMENT:
10892    case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
10893    case EXCEPTION_NONCONTINUABLE_EXCEPTION:
10894      exit (1);
10895    }
10896  return EXCEPTION_CONTINUE_SEARCH;
10897}
10898static void
10899nocrash_init (void)
10900{
10901  SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
10902}
10903#else
10904/* Avoid a crash on POSIX systems.  */
10905#include <signal.h>
10906/* A POSIX signal handler.  */
10907static void
10908exception_handler (int sig)
10909{
10910  exit (1);
10911}
10912static void
10913nocrash_init (void)
10914{
10915#ifdef SIGSEGV
10916  signal (SIGSEGV, exception_handler);
10917#endif
10918#ifdef SIGBUS
10919  signal (SIGBUS, exception_handler);
10920#endif
10921}
10922#endif
10923
10924
10925int
10926main ()
10927{
10928
10929             int result = 0;
10930
10931             nocrash_init();
10932
10933             /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
10934                and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
10935                OSF/1 5.1, Solaris 10.  */
10936             {
10937               static char conftest[] = "conftest";
10938               static char plus[] = "-+";
10939               char *argv[3] = { conftest, plus, NULL };
10940               opterr = 0;
10941               if (getopt (2, argv, "+a") != '?')
10942                 result |= 1;
10943             }
10944             /* This code succeeds on glibc 2.8, mingw,
10945                and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
10946                IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
10947             {
10948               static char program[] = "program";
10949               static char p[] = "-p";
10950               static char foo[] = "foo";
10951               static char bar[] = "bar";
10952               char *argv[] = { program, p, foo, bar, NULL };
10953
10954               optind = 1;
10955               if (getopt (4, argv, "p::") != 'p')
10956                 result |= 2;
10957               else if (optarg != NULL)
10958                 result |= 4;
10959               else if (getopt (4, argv, "p::") != -1)
10960                 result |= 6;
10961               else if (optind != 2)
10962                 result |= 8;
10963             }
10964             /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
10965             {
10966               static char program[] = "program";
10967               static char foo[] = "foo";
10968               static char p[] = "-p";
10969               char *argv[] = { program, foo, p, NULL };
10970               optind = 0;
10971               if (getopt (3, argv, "-p") != 1)
10972                 result |= 16;
10973               else if (getopt (3, argv, "-p") != 'p')
10974                 result |= 16;
10975             }
10976             /* This code fails on glibc 2.11.  */
10977             {
10978               static char program[] = "program";
10979               static char b[] = "-b";
10980               static char a[] = "-a";
10981               char *argv[] = { program, b, a, NULL };
10982               optind = opterr = 0;
10983               if (getopt (3, argv, "+:a:b") != 'b')
10984                 result |= 32;
10985               else if (getopt (3, argv, "+:a:b") != ':')
10986                 result |= 32;
10987             }
10988             /* This code dumps core on glibc 2.14.  */
10989             {
10990               static char program[] = "program";
10991               static char w[] = "-W";
10992               static char dummy[] = "dummy";
10993               char *argv[] = { program, w, dummy, NULL };
10994               optind = opterr = 1;
10995               if (getopt (3, argv, "W;") != 'W')
10996                 result |= 64;
10997             }
10998             return result;
10999
11000  ;
11001  return 0;
11002}
11003_ACEOF
11004if ac_fn_c_try_run "$LINENO"; then :
11005  gl_cv_func_getopt_gnu=yes
11006else
11007  gl_cv_func_getopt_gnu=no
11008fi
11009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11010  conftest.$ac_objext conftest.beam conftest.$ac_ext
11011fi
11012
11013       case $gl_had_POSIXLY_CORRECT in
11014         exported) ;;
11015         yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
11016         *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
11017       esac
11018
11019fi
11020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
11021$as_echo "$gl_cv_func_getopt_gnu" >&6; }
11022    if test "$gl_cv_func_getopt_gnu" != yes; then
11023      gl_replace_getopt=yes
11024    else
11025      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
11026$as_echo_n "checking for working GNU getopt_long function... " >&6; }
11027if ${gl_cv_func_getopt_long_gnu+:} false; then :
11028  $as_echo_n "(cached) " >&6
11029else
11030  if test "$cross_compiling" = yes; then :
11031              case "$host_os" in
11032              openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
11033              *)        gl_cv_func_getopt_long_gnu="guessing yes";;
11034            esac
11035
11036else
11037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11038/* end confdefs.h.  */
11039#include <getopt.h>
11040                #include <stddef.h>
11041                #include <string.h>
11042
11043int
11044main ()
11045{
11046static const struct option long_options[] =
11047                  {
11048                    { "xtremely-",no_argument,       NULL, 1003 },
11049                    { "xtra",     no_argument,       NULL, 1001 },
11050                    { "xtreme",   no_argument,       NULL, 1002 },
11051                    { "xtremely", no_argument,       NULL, 1003 },
11052                    { NULL,       0,                 NULL, 0 }
11053                  };
11054                /* This code fails on OpenBSD 5.0.  */
11055                {
11056                  static char program[] = "program";
11057                  static char xtremel[] = "--xtremel";
11058                  char *argv[] = { program, xtremel, NULL };
11059                  int option_index;
11060                  optind = 1; opterr = 0;
11061                  if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
11062                    return 1;
11063                }
11064                return 0;
11065
11066  ;
11067  return 0;
11068}
11069_ACEOF
11070if ac_fn_c_try_run "$LINENO"; then :
11071  gl_cv_func_getopt_long_gnu=yes
11072else
11073  gl_cv_func_getopt_long_gnu=no
11074fi
11075rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11076  conftest.$ac_objext conftest.beam conftest.$ac_ext
11077fi
11078
11079
11080fi
11081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
11082$as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
11083      case "$gl_cv_func_getopt_long_gnu" in
11084        *yes) ;;
11085        *) gl_replace_getopt=yes ;;
11086      esac
11087    fi
11088  fi
11089
11090
11091
11092
11093
11094
11095    REPLACE_GETOPT=0
11096    if test -n "$gl_replace_getopt"; then
11097      REPLACE_GETOPT=1
11098    fi
11099
11100  if test $REPLACE_GETOPT = 1; then
11101
11102  GETOPT_H=getopt.h
11103
11104$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
11105
11106
11107
11108  fi
11109
11110ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
11111if test "x$ac_cv_have_decl_getenv" = xyes; then :
11112  ac_have_decl=1
11113else
11114  ac_have_decl=0
11115fi
11116
11117cat >>confdefs.h <<_ACEOF
11118#define HAVE_DECL_GETENV $ac_have_decl
11119_ACEOF
11120
11121
11122  GNULIB_GETTIMEOFDAY=0;
11123    HAVE_GETTIMEOFDAY=1;
11124  HAVE_STRUCT_TIMEVAL=1;
11125  HAVE_SYS_TIME_H=1;
11126  REPLACE_GETTIMEOFDAY=0;
11127  REPLACE_STRUCT_TIMEVAL=0;
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144     if test $gl_cv_have_include_next = yes; then
11145       gl_cv_next_sys_time_h='<'sys/time.h'>'
11146     else
11147       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
11148$as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
11149if ${gl_cv_next_sys_time_h+:} false; then :
11150  $as_echo_n "(cached) " >&6
11151else
11152
11153             if test $ac_cv_header_sys_time_h = yes; then
11154
11155
11156               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157/* end confdefs.h.  */
11158#include <sys/time.h>
11159
11160_ACEOF
11161                                                                                                                        case "$host_os" in
11162                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11163                 *)    gl_absname_cpp="$ac_cpp" ;;
11164               esac
11165
11166               case "$host_os" in
11167                 mingw*)
11168                                                                                                                                     gl_dirsep_regex='[/\\]'
11169                   ;;
11170                 *)
11171                   gl_dirsep_regex='\/'
11172                   ;;
11173               esac
11174                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11175
11176               gl_header_literal_regex=`echo 'sys/time.h' \
11177                                        | sed -e "$gl_make_literal_regex_sed"`
11178               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11179                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11180                   s|^/[^/]|//&|
11181                   p
11182                   q
11183                 }'
11184                                                            gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11185                      sed -n "$gl_absolute_header_sed"`'"'
11186          else
11187               gl_cv_next_sys_time_h='<'sys/time.h'>'
11188             fi
11189
11190
11191fi
11192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
11193$as_echo "$gl_cv_next_sys_time_h" >&6; }
11194     fi
11195     NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
11196
11197     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11198       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11199       gl_next_as_first_directive='<'sys/time.h'>'
11200     else
11201       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11202       gl_next_as_first_directive=$gl_cv_next_sys_time_h
11203     fi
11204     NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
11205
11206
11207
11208
11209
11210  if test $ac_cv_header_sys_time_h != yes; then
11211    HAVE_SYS_TIME_H=0
11212  fi
11213
11214
11215
11216
11217
11218  if test $ac_cv_header_sys_socket_h != yes; then
11219                    for ac_header in winsock2.h
11220do :
11221  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11222if test "x$ac_cv_header_winsock2_h" = xyes; then :
11223  cat >>confdefs.h <<_ACEOF
11224#define HAVE_WINSOCK2_H 1
11225_ACEOF
11226
11227fi
11228
11229done
11230
11231  fi
11232  if test "$ac_cv_header_winsock2_h" = yes; then
11233    HAVE_WINSOCK2_H=1
11234    UNISTD_H_HAVE_WINSOCK2_H=1
11235    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
11236  else
11237    HAVE_WINSOCK2_H=0
11238  fi
11239
11240
11241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
11242$as_echo_n "checking for struct timeval... " >&6; }
11243if ${gl_cv_sys_struct_timeval+:} false; then :
11244  $as_echo_n "(cached) " >&6
11245else
11246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247/* end confdefs.h.  */
11248#if HAVE_SYS_TIME_H
11249             #include <sys/time.h>
11250            #endif
11251            #include <time.h>
11252            #if HAVE_WINSOCK2_H
11253            # include <winsock2.h>
11254            #endif
11255
11256int
11257main ()
11258{
11259static struct timeval x; x.tv_sec = x.tv_usec;
11260  ;
11261  return 0;
11262}
11263_ACEOF
11264if ac_fn_c_try_compile "$LINENO"; then :
11265  gl_cv_sys_struct_timeval=yes
11266else
11267  gl_cv_sys_struct_timeval=no
11268fi
11269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11270
11271fi
11272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
11273$as_echo "$gl_cv_sys_struct_timeval" >&6; }
11274  if test $gl_cv_sys_struct_timeval != yes; then
11275    HAVE_STRUCT_TIMEVAL=0
11276  else
11277                            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
11278$as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
11279if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
11280  $as_echo_n "(cached) " >&6
11281else
11282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11283/* end confdefs.h.  */
11284#if HAVE_SYS_TIME_H
11285               #include <sys/time.h>
11286              #endif
11287              #include <time.h>
11288              #if HAVE_WINSOCK2_H
11289              # include <winsock2.h>
11290              #endif
11291
11292int
11293main ()
11294{
11295static struct timeval x;
11296              typedef int verify_tv_sec_type[
11297                sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
11298              ];
11299
11300  ;
11301  return 0;
11302}
11303_ACEOF
11304if ac_fn_c_try_compile "$LINENO"; then :
11305  gl_cv_sys_struct_timeval_tv_sec=yes
11306else
11307  gl_cv_sys_struct_timeval_tv_sec=no
11308fi
11309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11310
11311fi
11312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
11313$as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
11314    if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
11315      REPLACE_STRUCT_TIMEVAL=1
11316    fi
11317  fi
11318
11319
11320    for gl_func in gettimeofday; do
11321    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11322    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11323$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11324if eval \${$as_gl_Symbol+:} false; then :
11325  $as_echo_n "(cached) " >&6
11326else
11327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328/* end confdefs.h.  */
11329
11330#if HAVE_SYS_TIME_H
11331# include <sys/time.h>
11332#endif
11333#include <time.h>
11334
11335int
11336main ()
11337{
11338#undef $gl_func
11339  (void) $gl_func;
11340  ;
11341  return 0;
11342}
11343_ACEOF
11344if ac_fn_c_try_compile "$LINENO"; then :
11345  eval "$as_gl_Symbol=yes"
11346else
11347  eval "$as_gl_Symbol=no"
11348fi
11349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11350fi
11351eval ac_res=\$$as_gl_Symbol
11352	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11353$as_echo "$ac_res" >&6; }
11354    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
11355  cat >>confdefs.h <<_ACEOF
11356#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11357_ACEOF
11358
11359                     eval ac_cv_have_decl_$gl_func=yes
11360fi
11361      done
11362
11363
11364
11365
11366
11367
11368
11369
11370  GNULIB_NL_LANGINFO=0;
11371    HAVE_NL_LANGINFO=1;
11372  REPLACE_NL_LANGINFO=0;
11373
11374
11375
11376ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
11377if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
11378  ac_have_decl=1
11379else
11380  ac_have_decl=0
11381fi
11382
11383cat >>confdefs.h <<_ACEOF
11384#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
11385_ACEOF
11386
11387
11388    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
11389$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
11390if ${ac_cv_gnu_library_2_1+:} false; then :
11391  $as_echo_n "(cached) " >&6
11392else
11393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394/* end confdefs.h.  */
11395
11396#include <features.h>
11397#ifdef __GNU_LIBRARY__
11398 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11399  Lucky GNU user
11400 #endif
11401#endif
11402
11403_ACEOF
11404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11405  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
11406  ac_cv_gnu_library_2_1=yes
11407else
11408  ac_cv_gnu_library_2_1=no
11409fi
11410rm -f conftest*
11411
11412
11413
11414fi
11415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11416$as_echo "$ac_cv_gnu_library_2_1" >&6; }
11417
11418    GLIBC21="$ac_cv_gnu_library_2_1"
11419
11420
11421
11422  GNULIB_LOCALECONV=0;
11423  GNULIB_SETLOCALE=0;
11424  GNULIB_DUPLOCALE=0;
11425    HAVE_DUPLOCALE=1;
11426  REPLACE_LOCALECONV=0;
11427  REPLACE_SETLOCALE=0;
11428  REPLACE_DUPLOCALE=0;
11429  REPLACE_STRUCT_LCONV=0;
11430
11431
11432    REPLACE_NULL=0;
11433  HAVE_WCHAR_T=1;
11434
11435
11436  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11437$as_echo_n "checking for wchar_t... " >&6; }
11438if ${gt_cv_c_wchar_t+:} false; then :
11439  $as_echo_n "(cached) " >&6
11440else
11441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11442/* end confdefs.h.  */
11443#include <stddef.h>
11444       wchar_t foo = (wchar_t)'\0';
11445int
11446main ()
11447{
11448
11449  ;
11450  return 0;
11451}
11452_ACEOF
11453if ac_fn_c_try_compile "$LINENO"; then :
11454  gt_cv_c_wchar_t=yes
11455else
11456  gt_cv_c_wchar_t=no
11457fi
11458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11459fi
11460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11461$as_echo "$gt_cv_c_wchar_t" >&6; }
11462  if test $gt_cv_c_wchar_t = yes; then
11463
11464$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11465
11466  fi
11467
11468
11469
11470
11471  STDDEF_H=
11472  if test $gt_cv_c_wchar_t = no; then
11473    HAVE_WCHAR_T=0
11474    STDDEF_H=stddef.h
11475  fi
11476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
11477$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
11478if ${gl_cv_decl_null_works+:} false; then :
11479  $as_echo_n "(cached) " >&6
11480else
11481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482/* end confdefs.h.  */
11483#include <stddef.h>
11484      int test[2 * (sizeof NULL == sizeof (void *)) -1];
11485
11486int
11487main ()
11488{
11489
11490  ;
11491  return 0;
11492}
11493_ACEOF
11494if ac_fn_c_try_compile "$LINENO"; then :
11495  gl_cv_decl_null_works=yes
11496else
11497  gl_cv_decl_null_works=no
11498fi
11499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11500fi
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
11502$as_echo "$gl_cv_decl_null_works" >&6; }
11503  if test $gl_cv_decl_null_works = no; then
11504    REPLACE_NULL=1
11505    STDDEF_H=stddef.h
11506  fi
11507
11508   if test -n "$STDDEF_H"; then
11509  GL_GENERATE_STDDEF_H_TRUE=
11510  GL_GENERATE_STDDEF_H_FALSE='#'
11511else
11512  GL_GENERATE_STDDEF_H_TRUE='#'
11513  GL_GENERATE_STDDEF_H_FALSE=
11514fi
11515
11516  if test -n "$STDDEF_H"; then
11517
11518
11519
11520
11521
11522
11523
11524
11525     if test $gl_cv_have_include_next = yes; then
11526       gl_cv_next_stddef_h='<'stddef.h'>'
11527     else
11528       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
11529$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
11530if ${gl_cv_next_stddef_h+:} false; then :
11531  $as_echo_n "(cached) " >&6
11532else
11533
11534               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535/* end confdefs.h.  */
11536#include <stddef.h>
11537
11538_ACEOF
11539                                                                                                                        case "$host_os" in
11540                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11541                 *)    gl_absname_cpp="$ac_cpp" ;;
11542               esac
11543
11544               case "$host_os" in
11545                 mingw*)
11546                                                                                                                                     gl_dirsep_regex='[/\\]'
11547                   ;;
11548                 *)
11549                   gl_dirsep_regex='\/'
11550                   ;;
11551               esac
11552                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11553
11554               gl_header_literal_regex=`echo 'stddef.h' \
11555                                        | sed -e "$gl_make_literal_regex_sed"`
11556               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11557                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11558                   s|^/[^/]|//&|
11559                   p
11560                   q
11561                 }'
11562                                                            gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11563                      sed -n "$gl_absolute_header_sed"`'"'
11564
11565
11566fi
11567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
11568$as_echo "$gl_cv_next_stddef_h" >&6; }
11569     fi
11570     NEXT_STDDEF_H=$gl_cv_next_stddef_h
11571
11572     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11573       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11574       gl_next_as_first_directive='<'stddef.h'>'
11575     else
11576       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11577       gl_next_as_first_directive=$gl_cv_next_stddef_h
11578     fi
11579     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
11580
11581
11582
11583
11584  fi
11585
11586
11587
11588
11589      if test "X$prefix" = "XNONE"; then
11590    acl_final_prefix="$ac_default_prefix"
11591  else
11592    acl_final_prefix="$prefix"
11593  fi
11594  if test "X$exec_prefix" = "XNONE"; then
11595    acl_final_exec_prefix='${prefix}'
11596  else
11597    acl_final_exec_prefix="$exec_prefix"
11598  fi
11599  acl_save_prefix="$prefix"
11600  prefix="$acl_final_prefix"
11601  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11602  prefix="$acl_save_prefix"
11603
11604
11605# Check whether --with-gnu-ld was given.
11606if test "${with_gnu_ld+set}" = set; then :
11607  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11608else
11609  with_gnu_ld=no
11610fi
11611
11612# Prepare PATH_SEPARATOR.
11613# The user is always right.
11614if test "${PATH_SEPARATOR+set}" != set; then
11615  echo "#! /bin/sh" >conf$$.sh
11616  echo  "exit 0"   >>conf$$.sh
11617  chmod +x conf$$.sh
11618  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11619    PATH_SEPARATOR=';'
11620  else
11621    PATH_SEPARATOR=:
11622  fi
11623  rm -f conf$$.sh
11624fi
11625ac_prog=ld
11626if test "$GCC" = yes; then
11627  # Check if gcc -print-prog-name=ld gives a path.
11628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11629$as_echo_n "checking for ld used by GCC... " >&6; }
11630  case $host in
11631  *-*-mingw*)
11632    # gcc leaves a trailing carriage return which upsets mingw
11633    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11634  *)
11635    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11636  esac
11637  case $ac_prog in
11638    # Accept absolute paths.
11639    [\\/]* | [A-Za-z]:[\\/]*)
11640      re_direlt='/[^/][^/]*/\.\./'
11641      # Canonicalize the path of ld
11642      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11643      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11644	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11645      done
11646      test -z "$LD" && LD="$ac_prog"
11647      ;;
11648  "")
11649    # If it fails, then pretend we aren't using GCC.
11650    ac_prog=ld
11651    ;;
11652  *)
11653    # If it is relative, then search for the first ld in PATH.
11654    with_gnu_ld=unknown
11655    ;;
11656  esac
11657elif test "$with_gnu_ld" = yes; then
11658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11659$as_echo_n "checking for GNU ld... " >&6; }
11660else
11661  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11662$as_echo_n "checking for non-GNU ld... " >&6; }
11663fi
11664if ${acl_cv_path_LD+:} false; then :
11665  $as_echo_n "(cached) " >&6
11666else
11667  if test -z "$LD"; then
11668  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11669  for ac_dir in $PATH; do
11670    test -z "$ac_dir" && ac_dir=.
11671    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11672      acl_cv_path_LD="$ac_dir/$ac_prog"
11673      # Check to see if the program is GNU ld.  I'd rather use --version,
11674      # but apparently some GNU ld's only accept -v.
11675      # Break only if it was the GNU/non-GNU ld that we prefer.
11676      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11677      *GNU* | *'with BFD'*)
11678	test "$with_gnu_ld" != no && break ;;
11679      *)
11680	test "$with_gnu_ld" != yes && break ;;
11681      esac
11682    fi
11683  done
11684  IFS="$ac_save_ifs"
11685else
11686  acl_cv_path_LD="$LD" # Let the user override the test with a path.
11687fi
11688fi
11689
11690LD="$acl_cv_path_LD"
11691if test -n "$LD"; then
11692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11693$as_echo "$LD" >&6; }
11694else
11695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696$as_echo "no" >&6; }
11697fi
11698test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11700$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11701if ${acl_cv_prog_gnu_ld+:} false; then :
11702  $as_echo_n "(cached) " >&6
11703else
11704  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11705case `$LD -v 2>&1 </dev/null` in
11706*GNU* | *'with BFD'*)
11707  acl_cv_prog_gnu_ld=yes ;;
11708*)
11709  acl_cv_prog_gnu_ld=no ;;
11710esac
11711fi
11712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11713$as_echo "$acl_cv_prog_gnu_ld" >&6; }
11714with_gnu_ld=$acl_cv_prog_gnu_ld
11715
11716
11717
11718
11719                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11720$as_echo_n "checking for shared library run path origin... " >&6; }
11721if ${acl_cv_rpath+:} false; then :
11722  $as_echo_n "(cached) " >&6
11723else
11724
11725    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11726    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11727    . ./conftest.sh
11728    rm -f ./conftest.sh
11729    acl_cv_rpath=done
11730
11731fi
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11733$as_echo "$acl_cv_rpath" >&6; }
11734  wl="$acl_cv_wl"
11735  libext="$acl_cv_libext"
11736  shlibext="$acl_cv_shlibext"
11737  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11738  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11739  hardcode_direct="$acl_cv_hardcode_direct"
11740  hardcode_minus_L="$acl_cv_hardcode_minus_L"
11741    # Check whether --enable-rpath was given.
11742if test "${enable_rpath+set}" = set; then :
11743  enableval=$enable_rpath; :
11744else
11745  enable_rpath=yes
11746fi
11747
11748
11749
11750                  acl_libdirstem=lib
11751  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11752  if test -n "$searchpath"; then
11753    acl_save_IFS="${IFS= 	}"; IFS=":"
11754    for searchdir in $searchpath; do
11755      if test -d "$searchdir"; then
11756        case "$searchdir" in
11757          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11758          *) searchdir=`cd "$searchdir" && pwd`
11759             case "$searchdir" in
11760               */lib64 ) acl_libdirstem=lib64 ;;
11761             esac ;;
11762        esac
11763      fi
11764    done
11765    IFS="$acl_save_IFS"
11766  fi
11767
11768
11769
11770  gl_threads_api=none
11771  LIBTHREAD=
11772  LTLIBTHREAD=
11773  LIBMULTITHREAD=
11774  LTLIBMULTITHREAD=
11775  if test "$gl_use_threads" != no; then
11776        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
11777$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
11778if ${gl_cv_have_weak+:} false; then :
11779  $as_echo_n "(cached) " >&6
11780else
11781  gl_cv_have_weak=no
11782              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783/* end confdefs.h.  */
11784extern void xyzzy ();
11785#pragma weak xyzzy
11786int
11787main ()
11788{
11789xyzzy();
11790  ;
11791  return 0;
11792}
11793_ACEOF
11794if ac_fn_c_try_link "$LINENO"; then :
11795  gl_cv_have_weak=maybe
11796fi
11797rm -f core conftest.err conftest.$ac_objext \
11798    conftest$ac_exeext conftest.$ac_ext
11799       if test $gl_cv_have_weak = maybe; then
11800                           if test "$cross_compiling" = yes; then :
11801                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802/* end confdefs.h.  */
11803#ifdef __ELF__
11804               Extensible Linking Format
11805               #endif
11806
11807_ACEOF
11808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11809  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
11810  gl_cv_have_weak="guessing yes"
11811else
11812  gl_cv_have_weak="guessing no"
11813fi
11814rm -f conftest*
11815
11816
11817else
11818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819/* end confdefs.h.  */
11820
11821#include <stdio.h>
11822#pragma weak fputs
11823int main ()
11824{
11825  return (fputs == NULL);
11826}
11827_ACEOF
11828if ac_fn_c_try_run "$LINENO"; then :
11829  gl_cv_have_weak=yes
11830else
11831  gl_cv_have_weak=no
11832fi
11833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11834  conftest.$ac_objext conftest.beam conftest.$ac_ext
11835fi
11836
11837       fi
11838
11839fi
11840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
11841$as_echo "$gl_cv_have_weak" >&6; }
11842    if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
11843      # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
11844      # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
11845      ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11846if test "x$ac_cv_header_pthread_h" = xyes; then :
11847  gl_have_pthread_h=yes
11848else
11849  gl_have_pthread_h=no
11850fi
11851
11852
11853      if test "$gl_have_pthread_h" = yes; then
11854        # Other possible tests:
11855        #   -lpthreads (FSU threads, PCthreads)
11856        #   -lgthreads
11857        gl_have_pthread=
11858        # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
11859        # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
11860        # the second one only in libpthread, and lock.c needs it.
11861        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862/* end confdefs.h.  */
11863#include <pthread.h>
11864int
11865main ()
11866{
11867pthread_mutex_lock((pthread_mutex_t*)0);
11868               pthread_mutexattr_init((pthread_mutexattr_t*)0);
11869  ;
11870  return 0;
11871}
11872_ACEOF
11873if ac_fn_c_try_link "$LINENO"; then :
11874  gl_have_pthread=yes
11875fi
11876rm -f core conftest.err conftest.$ac_objext \
11877    conftest$ac_exeext conftest.$ac_ext
11878        # Test for libpthread by looking for pthread_kill. (Not pthread_self,
11879        # since it is defined as a macro on OSF/1.)
11880        if test -n "$gl_have_pthread"; then
11881          # The program links fine without libpthread. But it may actually
11882          # need to link with libpthread in order to create multiple threads.
11883          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
11884$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
11885if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
11886  $as_echo_n "(cached) " >&6
11887else
11888  ac_check_lib_save_LIBS=$LIBS
11889LIBS="-lpthread  $LIBS"
11890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11891/* end confdefs.h.  */
11892
11893/* Override any GCC internal prototype to avoid an error.
11894   Use char because int might match the return type of a GCC
11895   builtin and then its argument prototype would still apply.  */
11896#ifdef __cplusplus
11897extern "C"
11898#endif
11899char pthread_kill ();
11900int
11901main ()
11902{
11903return pthread_kill ();
11904  ;
11905  return 0;
11906}
11907_ACEOF
11908if ac_fn_c_try_link "$LINENO"; then :
11909  ac_cv_lib_pthread_pthread_kill=yes
11910else
11911  ac_cv_lib_pthread_pthread_kill=no
11912fi
11913rm -f core conftest.err conftest.$ac_objext \
11914    conftest$ac_exeext conftest.$ac_ext
11915LIBS=$ac_check_lib_save_LIBS
11916fi
11917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
11918$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
11919if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
11920  LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
11921             # On Solaris and HP-UX, most pthread functions exist also in libc.
11922             # Therefore pthread_in_use() needs to actually try to create a
11923             # thread: pthread_create from libc will fail, whereas
11924             # pthread_create will actually create a thread.
11925             case "$host_os" in
11926               solaris* | hpux*)
11927
11928$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
11929
11930             esac
11931
11932fi
11933
11934        else
11935          # Some library is needed. Try libpthread and libc_r.
11936          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
11937$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
11938if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
11939  $as_echo_n "(cached) " >&6
11940else
11941  ac_check_lib_save_LIBS=$LIBS
11942LIBS="-lpthread  $LIBS"
11943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944/* end confdefs.h.  */
11945
11946/* Override any GCC internal prototype to avoid an error.
11947   Use char because int might match the return type of a GCC
11948   builtin and then its argument prototype would still apply.  */
11949#ifdef __cplusplus
11950extern "C"
11951#endif
11952char pthread_kill ();
11953int
11954main ()
11955{
11956return pthread_kill ();
11957  ;
11958  return 0;
11959}
11960_ACEOF
11961if ac_fn_c_try_link "$LINENO"; then :
11962  ac_cv_lib_pthread_pthread_kill=yes
11963else
11964  ac_cv_lib_pthread_pthread_kill=no
11965fi
11966rm -f core conftest.err conftest.$ac_objext \
11967    conftest$ac_exeext conftest.$ac_ext
11968LIBS=$ac_check_lib_save_LIBS
11969fi
11970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
11971$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
11972if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
11973  gl_have_pthread=yes
11974             LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
11975             LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
11976fi
11977
11978          if test -z "$gl_have_pthread"; then
11979            # For FreeBSD 4.
11980            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
11981$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
11982if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
11983  $as_echo_n "(cached) " >&6
11984else
11985  ac_check_lib_save_LIBS=$LIBS
11986LIBS="-lc_r  $LIBS"
11987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988/* end confdefs.h.  */
11989
11990/* Override any GCC internal prototype to avoid an error.
11991   Use char because int might match the return type of a GCC
11992   builtin and then its argument prototype would still apply.  */
11993#ifdef __cplusplus
11994extern "C"
11995#endif
11996char pthread_kill ();
11997int
11998main ()
11999{
12000return pthread_kill ();
12001  ;
12002  return 0;
12003}
12004_ACEOF
12005if ac_fn_c_try_link "$LINENO"; then :
12006  ac_cv_lib_c_r_pthread_kill=yes
12007else
12008  ac_cv_lib_c_r_pthread_kill=no
12009fi
12010rm -f core conftest.err conftest.$ac_objext \
12011    conftest$ac_exeext conftest.$ac_ext
12012LIBS=$ac_check_lib_save_LIBS
12013fi
12014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
12015$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
12016if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
12017  gl_have_pthread=yes
12018               LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
12019               LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
12020fi
12021
12022          fi
12023        fi
12024        if test -n "$gl_have_pthread"; then
12025          gl_threads_api=posix
12026
12027$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
12028
12029          if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
12030            if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
12031
12032$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
12033
12034              LIBTHREAD=
12035              LTLIBTHREAD=
12036            fi
12037          fi
12038        fi
12039      fi
12040    fi
12041    if test -z "$gl_have_pthread"; then
12042      if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
12043        gl_have_solaristhread=
12044        gl_save_LIBS="$LIBS"
12045        LIBS="$LIBS -lthread"
12046        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047/* end confdefs.h.  */
12048
12049#include <thread.h>
12050#include <synch.h>
12051
12052int
12053main ()
12054{
12055thr_self();
12056  ;
12057  return 0;
12058}
12059_ACEOF
12060if ac_fn_c_try_link "$LINENO"; then :
12061  gl_have_solaristhread=yes
12062fi
12063rm -f core conftest.err conftest.$ac_objext \
12064    conftest$ac_exeext conftest.$ac_ext
12065        LIBS="$gl_save_LIBS"
12066        if test -n "$gl_have_solaristhread"; then
12067          gl_threads_api=solaris
12068          LIBTHREAD=-lthread
12069          LTLIBTHREAD=-lthread
12070          LIBMULTITHREAD="$LIBTHREAD"
12071          LTLIBMULTITHREAD="$LTLIBTHREAD"
12072
12073$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
12074
12075          if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
12076
12077$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
12078
12079            LIBTHREAD=
12080            LTLIBTHREAD=
12081          fi
12082        fi
12083      fi
12084    fi
12085    if test "$gl_use_threads" = pth; then
12086      gl_save_CPPFLAGS="$CPPFLAGS"
12087
12088
12089
12090
12091
12092  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
12093$as_echo_n "checking how to link with libpth... " >&6; }
12094if ${ac_cv_libpth_libs+:} false; then :
12095  $as_echo_n "(cached) " >&6
12096else
12097
12098
12099
12100
12101    use_additional=yes
12102
12103  acl_save_prefix="$prefix"
12104  prefix="$acl_final_prefix"
12105  acl_save_exec_prefix="$exec_prefix"
12106  exec_prefix="$acl_final_exec_prefix"
12107
12108    eval additional_includedir=\"$includedir\"
12109    eval additional_libdir=\"$libdir\"
12110
12111  exec_prefix="$acl_save_exec_prefix"
12112  prefix="$acl_save_prefix"
12113
12114
12115# Check whether --with-libpth-prefix was given.
12116if test "${with_libpth_prefix+set}" = set; then :
12117  withval=$with_libpth_prefix;
12118    if test "X$withval" = "Xno"; then
12119      use_additional=no
12120    else
12121      if test "X$withval" = "X"; then
12122
12123  acl_save_prefix="$prefix"
12124  prefix="$acl_final_prefix"
12125  acl_save_exec_prefix="$exec_prefix"
12126  exec_prefix="$acl_final_exec_prefix"
12127
12128          eval additional_includedir=\"$includedir\"
12129          eval additional_libdir=\"$libdir\"
12130
12131  exec_prefix="$acl_save_exec_prefix"
12132  prefix="$acl_save_prefix"
12133
12134      else
12135        additional_includedir="$withval/include"
12136        additional_libdir="$withval/$acl_libdirstem"
12137      fi
12138    fi
12139
12140fi
12141
12142      LIBPTH=
12143  LTLIBPTH=
12144  INCPTH=
12145  rpathdirs=
12146  ltrpathdirs=
12147  names_already_handled=
12148  names_next_round='pth '
12149  while test -n "$names_next_round"; do
12150    names_this_round="$names_next_round"
12151    names_next_round=
12152    for name in $names_this_round; do
12153      already_handled=
12154      for n in $names_already_handled; do
12155        if test "$n" = "$name"; then
12156          already_handled=yes
12157          break
12158        fi
12159      done
12160      if test -z "$already_handled"; then
12161        names_already_handled="$names_already_handled $name"
12162                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12163        eval value=\"\$HAVE_LIB$uppername\"
12164        if test -n "$value"; then
12165          if test "$value" = yes; then
12166            eval value=\"\$LIB$uppername\"
12167            test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
12168            eval value=\"\$LTLIB$uppername\"
12169            test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
12170          else
12171                                    :
12172          fi
12173        else
12174                              found_dir=
12175          found_la=
12176          found_so=
12177          found_a=
12178          if test $use_additional = yes; then
12179            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12180              found_dir="$additional_libdir"
12181              found_so="$additional_libdir/lib$name.$shlibext"
12182              if test -f "$additional_libdir/lib$name.la"; then
12183                found_la="$additional_libdir/lib$name.la"
12184              fi
12185            else
12186              if test -f "$additional_libdir/lib$name.$libext"; then
12187                found_dir="$additional_libdir"
12188                found_a="$additional_libdir/lib$name.$libext"
12189                if test -f "$additional_libdir/lib$name.la"; then
12190                  found_la="$additional_libdir/lib$name.la"
12191                fi
12192              fi
12193            fi
12194          fi
12195          if test "X$found_dir" = "X"; then
12196            for x in $LDFLAGS $LTLIBPTH; do
12197
12198  acl_save_prefix="$prefix"
12199  prefix="$acl_final_prefix"
12200  acl_save_exec_prefix="$exec_prefix"
12201  exec_prefix="$acl_final_exec_prefix"
12202  eval x=\"$x\"
12203  exec_prefix="$acl_save_exec_prefix"
12204  prefix="$acl_save_prefix"
12205
12206              case "$x" in
12207                -L*)
12208                  dir=`echo "X$x" | sed -e 's/^X-L//'`
12209                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12210                    found_dir="$dir"
12211                    found_so="$dir/lib$name.$shlibext"
12212                    if test -f "$dir/lib$name.la"; then
12213                      found_la="$dir/lib$name.la"
12214                    fi
12215                  else
12216                    if test -f "$dir/lib$name.$libext"; then
12217                      found_dir="$dir"
12218                      found_a="$dir/lib$name.$libext"
12219                      if test -f "$dir/lib$name.la"; then
12220                        found_la="$dir/lib$name.la"
12221                      fi
12222                    fi
12223                  fi
12224                  ;;
12225              esac
12226              if test "X$found_dir" != "X"; then
12227                break
12228              fi
12229            done
12230          fi
12231          if test "X$found_dir" != "X"; then
12232                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
12233            if test "X$found_so" != "X"; then
12234                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12235                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12236              else
12237                                                                                haveit=
12238                for x in $ltrpathdirs; do
12239                  if test "X$x" = "X$found_dir"; then
12240                    haveit=yes
12241                    break
12242                  fi
12243                done
12244                if test -z "$haveit"; then
12245                  ltrpathdirs="$ltrpathdirs $found_dir"
12246                fi
12247                                if test "$hardcode_direct" = yes; then
12248                                                      LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12249                else
12250                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12251                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12252                                                            haveit=
12253                    for x in $rpathdirs; do
12254                      if test "X$x" = "X$found_dir"; then
12255                        haveit=yes
12256                        break
12257                      fi
12258                    done
12259                    if test -z "$haveit"; then
12260                      rpathdirs="$rpathdirs $found_dir"
12261                    fi
12262                  else
12263                                                                                haveit=
12264                    for x in $LDFLAGS $LIBPTH; do
12265
12266  acl_save_prefix="$prefix"
12267  prefix="$acl_final_prefix"
12268  acl_save_exec_prefix="$exec_prefix"
12269  exec_prefix="$acl_final_exec_prefix"
12270  eval x=\"$x\"
12271  exec_prefix="$acl_save_exec_prefix"
12272  prefix="$acl_save_prefix"
12273
12274                      if test "X$x" = "X-L$found_dir"; then
12275                        haveit=yes
12276                        break
12277                      fi
12278                    done
12279                    if test -z "$haveit"; then
12280                      LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
12281                    fi
12282                    if test "$hardcode_minus_L" != no; then
12283                                                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12284                    else
12285                                                                                                                                                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
12286                    fi
12287                  fi
12288                fi
12289              fi
12290            else
12291              if test "X$found_a" != "X"; then
12292                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
12293              else
12294                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
12295              fi
12296            fi
12297                        additional_includedir=
12298            case "$found_dir" in
12299              */$acl_libdirstem | */$acl_libdirstem/)
12300                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12301                additional_includedir="$basedir/include"
12302                ;;
12303            esac
12304            if test "X$additional_includedir" != "X"; then
12305                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
12306                haveit=
12307                if test "X$additional_includedir" = "X/usr/local/include"; then
12308                  if test -n "$GCC"; then
12309                    case $host_os in
12310                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12311                    esac
12312                  fi
12313                fi
12314                if test -z "$haveit"; then
12315                  for x in $CPPFLAGS $INCPTH; do
12316
12317  acl_save_prefix="$prefix"
12318  prefix="$acl_final_prefix"
12319  acl_save_exec_prefix="$exec_prefix"
12320  exec_prefix="$acl_final_exec_prefix"
12321  eval x=\"$x\"
12322  exec_prefix="$acl_save_exec_prefix"
12323  prefix="$acl_save_prefix"
12324
12325                    if test "X$x" = "X-I$additional_includedir"; then
12326                      haveit=yes
12327                      break
12328                    fi
12329                  done
12330                  if test -z "$haveit"; then
12331                    if test -d "$additional_includedir"; then
12332                                            INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
12333                    fi
12334                  fi
12335                fi
12336              fi
12337            fi
12338                        if test -n "$found_la"; then
12339                                                        save_libdir="$libdir"
12340              case "$found_la" in
12341                */* | *\\*) . "$found_la" ;;
12342                *) . "./$found_la" ;;
12343              esac
12344              libdir="$save_libdir"
12345                            for dep in $dependency_libs; do
12346                case "$dep" in
12347                  -L*)
12348                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12349                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12350                      haveit=
12351                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12352                        if test -n "$GCC"; then
12353                          case $host_os in
12354                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12355                          esac
12356                        fi
12357                      fi
12358                      if test -z "$haveit"; then
12359                        haveit=
12360                        for x in $LDFLAGS $LIBPTH; do
12361
12362  acl_save_prefix="$prefix"
12363  prefix="$acl_final_prefix"
12364  acl_save_exec_prefix="$exec_prefix"
12365  exec_prefix="$acl_final_exec_prefix"
12366  eval x=\"$x\"
12367  exec_prefix="$acl_save_exec_prefix"
12368  prefix="$acl_save_prefix"
12369
12370                          if test "X$x" = "X-L$additional_libdir"; then
12371                            haveit=yes
12372                            break
12373                          fi
12374                        done
12375                        if test -z "$haveit"; then
12376                          if test -d "$additional_libdir"; then
12377                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
12378                          fi
12379                        fi
12380                        haveit=
12381                        for x in $LDFLAGS $LTLIBPTH; do
12382
12383  acl_save_prefix="$prefix"
12384  prefix="$acl_final_prefix"
12385  acl_save_exec_prefix="$exec_prefix"
12386  exec_prefix="$acl_final_exec_prefix"
12387  eval x=\"$x\"
12388  exec_prefix="$acl_save_exec_prefix"
12389  prefix="$acl_save_prefix"
12390
12391                          if test "X$x" = "X-L$additional_libdir"; then
12392                            haveit=yes
12393                            break
12394                          fi
12395                        done
12396                        if test -z "$haveit"; then
12397                          if test -d "$additional_libdir"; then
12398                                                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
12399                          fi
12400                        fi
12401                      fi
12402                    fi
12403                    ;;
12404                  -R*)
12405                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
12406                    if test "$enable_rpath" != no; then
12407                                                                  haveit=
12408                      for x in $rpathdirs; do
12409                        if test "X$x" = "X$dir"; then
12410                          haveit=yes
12411                          break
12412                        fi
12413                      done
12414                      if test -z "$haveit"; then
12415                        rpathdirs="$rpathdirs $dir"
12416                      fi
12417                                                                  haveit=
12418                      for x in $ltrpathdirs; do
12419                        if test "X$x" = "X$dir"; then
12420                          haveit=yes
12421                          break
12422                        fi
12423                      done
12424                      if test -z "$haveit"; then
12425                        ltrpathdirs="$ltrpathdirs $dir"
12426                      fi
12427                    fi
12428                    ;;
12429                  -l*)
12430                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12431                    ;;
12432                  *.la)
12433                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12434                    ;;
12435                  *)
12436                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
12437                    LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
12438                    ;;
12439                esac
12440              done
12441            fi
12442          else
12443                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
12444            LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
12445          fi
12446        fi
12447      fi
12448    done
12449  done
12450  if test "X$rpathdirs" != "X"; then
12451    if test -n "$hardcode_libdir_separator"; then
12452                        alldirs=
12453      for found_dir in $rpathdirs; do
12454        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12455      done
12456            acl_save_libdir="$libdir"
12457      libdir="$alldirs"
12458      eval flag=\"$hardcode_libdir_flag_spec\"
12459      libdir="$acl_save_libdir"
12460      LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
12461    else
12462            for found_dir in $rpathdirs; do
12463        acl_save_libdir="$libdir"
12464        libdir="$found_dir"
12465        eval flag=\"$hardcode_libdir_flag_spec\"
12466        libdir="$acl_save_libdir"
12467        LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
12468      done
12469    fi
12470  fi
12471  if test "X$ltrpathdirs" != "X"; then
12472            for found_dir in $ltrpathdirs; do
12473      LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
12474    done
12475  fi
12476
12477    ac_cv_libpth_libs="$LIBPTH"
12478    ac_cv_libpth_ltlibs="$LTLIBPTH"
12479    ac_cv_libpth_cppflags="$INCPTH"
12480
12481fi
12482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
12483$as_echo "$ac_cv_libpth_libs" >&6; }
12484  LIBPTH="$ac_cv_libpth_libs"
12485  LTLIBPTH="$ac_cv_libpth_ltlibs"
12486  INCPTH="$ac_cv_libpth_cppflags"
12487
12488  for element in $INCPTH; do
12489    haveit=
12490    for x in $CPPFLAGS; do
12491
12492  acl_save_prefix="$prefix"
12493  prefix="$acl_final_prefix"
12494  acl_save_exec_prefix="$exec_prefix"
12495  exec_prefix="$acl_final_exec_prefix"
12496  eval x=\"$x\"
12497  exec_prefix="$acl_save_exec_prefix"
12498  prefix="$acl_save_prefix"
12499
12500      if test "X$x" = "X$element"; then
12501        haveit=yes
12502        break
12503      fi
12504    done
12505    if test -z "$haveit"; then
12506      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12507    fi
12508  done
12509
12510
12511
12512      HAVE_LIBPTH=yes
12513
12514
12515
12516      gl_have_pth=
12517      gl_save_LIBS="$LIBS"
12518      LIBS="$LIBS $LIBPTH"
12519      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520/* end confdefs.h.  */
12521#include <pth.h>
12522int
12523main ()
12524{
12525pth_self();
12526  ;
12527  return 0;
12528}
12529_ACEOF
12530if ac_fn_c_try_link "$LINENO"; then :
12531  gl_have_pth=yes
12532fi
12533rm -f core conftest.err conftest.$ac_objext \
12534    conftest$ac_exeext conftest.$ac_ext
12535      LIBS="$gl_save_LIBS"
12536      if test -n "$gl_have_pth"; then
12537        gl_threads_api=pth
12538        LIBTHREAD="$LIBPTH"
12539        LTLIBTHREAD="$LTLIBPTH"
12540        LIBMULTITHREAD="$LIBTHREAD"
12541        LTLIBMULTITHREAD="$LTLIBTHREAD"
12542
12543$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
12544
12545        if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
12546          if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
12547
12548$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
12549
12550            LIBTHREAD=
12551            LTLIBTHREAD=
12552          fi
12553        fi
12554      else
12555        CPPFLAGS="$gl_save_CPPFLAGS"
12556      fi
12557    fi
12558    if test -z "$gl_have_pthread"; then
12559      case "$gl_use_threads" in
12560        yes | windows | win32) # The 'win32' is for backward compatibility.
12561          if { case "$host_os" in
12562                 mingw*) true;;
12563                 *) false;;
12564               esac
12565             }; then
12566            gl_threads_api=windows
12567
12568$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
12569
12570          fi
12571          ;;
12572      esac
12573    fi
12574  fi
12575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
12576$as_echo_n "checking for multithread API to use... " >&6; }
12577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
12578$as_echo "$gl_threads_api" >&6; }
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
12592$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
12593if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
12594  $as_echo_n "(cached) " >&6
12595else
12596  rm -f conftest.sym conftest.file
12597     echo >conftest.file
12598     if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12599       if test "$cross_compiling" = yes; then :
12600  case "$host_os" in
12601                    # Guess yes on glibc systems.
12602            *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
12603                    # If we don't know, assume the worst.
12604            *)      gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
12605          esac
12606
12607else
12608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609/* end confdefs.h.  */
12610$ac_includes_default
12611int
12612main ()
12613{
12614struct stat sbuf;
12615              /* Linux will dereference the symlink and fail, as required by
12616                 POSIX.  That is better in the sense that it means we will not
12617                 have to compile and use the lstat wrapper.  */
12618              return lstat ("conftest.sym/", &sbuf) == 0;
12619
12620  ;
12621  return 0;
12622}
12623_ACEOF
12624if ac_fn_c_try_run "$LINENO"; then :
12625  gl_cv_func_lstat_dereferences_slashed_symlink=yes
12626else
12627  gl_cv_func_lstat_dereferences_slashed_symlink=no
12628fi
12629rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12630  conftest.$ac_objext conftest.beam conftest.$ac_ext
12631fi
12632
12633     else
12634       # If the 'ln -s' command failed, then we probably don't even
12635       # have an lstat function.
12636       gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
12637     fi
12638     rm -f conftest.sym conftest.file
12639
12640fi
12641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
12642$as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
12643  case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
12644    *yes)
12645
12646cat >>confdefs.h <<_ACEOF
12647#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12648_ACEOF
12649
12650      ;;
12651  esac
12652
12653
12654  GNULIB__EXIT=0;
12655  GNULIB_ATOLL=0;
12656  GNULIB_CALLOC_POSIX=0;
12657  GNULIB_CANONICALIZE_FILE_NAME=0;
12658  GNULIB_GETLOADAVG=0;
12659  GNULIB_GETSUBOPT=0;
12660  GNULIB_GRANTPT=0;
12661  GNULIB_MALLOC_POSIX=0;
12662  GNULIB_MBTOWC=0;
12663  GNULIB_MKDTEMP=0;
12664  GNULIB_MKOSTEMP=0;
12665  GNULIB_MKOSTEMPS=0;
12666  GNULIB_MKSTEMP=0;
12667  GNULIB_MKSTEMPS=0;
12668  GNULIB_POSIX_OPENPT=0;
12669  GNULIB_PTSNAME=0;
12670  GNULIB_PTSNAME_R=0;
12671  GNULIB_PUTENV=0;
12672  GNULIB_RANDOM=0;
12673  GNULIB_RANDOM_R=0;
12674  GNULIB_REALLOC_POSIX=0;
12675  GNULIB_REALPATH=0;
12676  GNULIB_RPMATCH=0;
12677  GNULIB_SECURE_GETENV=0;
12678  GNULIB_SETENV=0;
12679  GNULIB_STRTOD=0;
12680  GNULIB_STRTOLL=0;
12681  GNULIB_STRTOULL=0;
12682  GNULIB_SYSTEM_POSIX=0;
12683  GNULIB_UNLOCKPT=0;
12684  GNULIB_UNSETENV=0;
12685  GNULIB_WCTOMB=0;
12686    HAVE__EXIT=1;
12687  HAVE_ATOLL=1;
12688  HAVE_CANONICALIZE_FILE_NAME=1;
12689  HAVE_DECL_GETLOADAVG=1;
12690  HAVE_GETSUBOPT=1;
12691  HAVE_GRANTPT=1;
12692  HAVE_MKDTEMP=1;
12693  HAVE_MKOSTEMP=1;
12694  HAVE_MKOSTEMPS=1;
12695  HAVE_MKSTEMP=1;
12696  HAVE_MKSTEMPS=1;
12697  HAVE_POSIX_OPENPT=1;
12698  HAVE_PTSNAME=1;
12699  HAVE_PTSNAME_R=1;
12700  HAVE_RANDOM=1;
12701  HAVE_RANDOM_H=1;
12702  HAVE_RANDOM_R=1;
12703  HAVE_REALPATH=1;
12704  HAVE_RPMATCH=1;
12705  HAVE_SECURE_GETENV=1;
12706  HAVE_SETENV=1;
12707  HAVE_DECL_SETENV=1;
12708  HAVE_STRTOD=1;
12709  HAVE_STRTOLL=1;
12710  HAVE_STRTOULL=1;
12711  HAVE_STRUCT_RANDOM_DATA=1;
12712  HAVE_SYS_LOADAVG_H=0;
12713  HAVE_UNLOCKPT=1;
12714  HAVE_DECL_UNSETENV=1;
12715  REPLACE_CALLOC=0;
12716  REPLACE_CANONICALIZE_FILE_NAME=0;
12717  REPLACE_MALLOC=0;
12718  REPLACE_MBTOWC=0;
12719  REPLACE_MKSTEMP=0;
12720  REPLACE_PTSNAME=0;
12721  REPLACE_PTSNAME_R=0;
12722  REPLACE_PUTENV=0;
12723  REPLACE_RANDOM_R=0;
12724  REPLACE_REALLOC=0;
12725  REPLACE_REALPATH=0;
12726  REPLACE_SETENV=0;
12727  REPLACE_STRTOD=0;
12728  REPLACE_UNSETENV=0;
12729  REPLACE_WCTOMB=0;
12730
12731
12732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
12733$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
12734if ${gl_cv_func_malloc_posix+:} false; then :
12735  $as_echo_n "(cached) " >&6
12736else
12737
12738                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12739/* end confdefs.h.  */
12740
12741int
12742main ()
12743{
12744#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
12745             choke me
12746             #endif
12747
12748  ;
12749  return 0;
12750}
12751_ACEOF
12752if ac_fn_c_try_compile "$LINENO"; then :
12753  gl_cv_func_malloc_posix=yes
12754else
12755  gl_cv_func_malloc_posix=no
12756fi
12757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12758
12759fi
12760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
12761$as_echo "$gl_cv_func_malloc_posix" >&6; }
12762
12763
12764
12765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
12766$as_echo_n "checking for mbstate_t... " >&6; }
12767if ${ac_cv_type_mbstate_t+:} false; then :
12768  $as_echo_n "(cached) " >&6
12769else
12770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771/* end confdefs.h.  */
12772$ac_includes_default
12773/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12774   <wchar.h>.
12775   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12776   included before <wchar.h>.  */
12777#include <stddef.h>
12778#include <stdio.h>
12779#include <time.h>
12780#include <wchar.h>
12781int
12782main ()
12783{
12784mbstate_t x; return sizeof x;
12785  ;
12786  return 0;
12787}
12788_ACEOF
12789if ac_fn_c_try_compile "$LINENO"; then :
12790  ac_cv_type_mbstate_t=yes
12791else
12792  ac_cv_type_mbstate_t=no
12793fi
12794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12795fi
12796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
12797$as_echo "$ac_cv_type_mbstate_t" >&6; }
12798   if test $ac_cv_type_mbstate_t = yes; then
12799
12800$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
12801
12802   else
12803
12804$as_echo "#define mbstate_t int" >>confdefs.h
12805
12806   fi
12807
12808
12809
12810
12811
12812
12813
12814
12815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
12816$as_echo_n "checking for a traditional japanese locale... " >&6; }
12817if ${gt_cv_locale_ja+:} false; then :
12818  $as_echo_n "(cached) " >&6
12819else
12820
12821    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822/* end confdefs.h.  */
12823
12824#include <locale.h>
12825#include <time.h>
12826#if HAVE_LANGINFO_CODESET
12827# include <langinfo.h>
12828#endif
12829#include <stdlib.h>
12830#include <string.h>
12831struct tm t;
12832char buf[16];
12833int main ()
12834{
12835  const char *p;
12836  /* Check whether the given locale name is recognized by the system.  */
12837#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12838  /* On native Windows, setlocale(category, "") looks at the system settings,
12839     not at the environment variables.  Also, when an encoding suffix such
12840     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12841     category of the locale to "C".  */
12842  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12843      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12844    return 1;
12845#else
12846  if (setlocale (LC_ALL, "") == NULL) return 1;
12847#endif
12848  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12849     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12850     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12851     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12852     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12853     some unit tests fail.
12854     On MirBSD 10, when an unsupported locale is specified, setlocale()
12855     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
12856#if HAVE_LANGINFO_CODESET
12857  {
12858    const char *cs = nl_langinfo (CODESET);
12859    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12860        || strcmp (cs, "UTF-8") == 0)
12861      return 1;
12862  }
12863#endif
12864#ifdef __CYGWIN__
12865  /* On Cygwin, avoid locale names without encoding suffix, because the
12866     locale_charset() function relies on the encoding suffix.  Note that
12867     LC_ALL is set on the command line.  */
12868  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12869#endif
12870  /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
12871     on Cygwin 1.5.x.  */
12872  if (MB_CUR_MAX == 1)
12873    return 1;
12874  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12875     This excludes the UTF-8 encoding (except on MirBSD).  */
12876  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12877  if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12878  for (p = buf; *p != '\0'; p++)
12879    if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12880      return 1;
12881  return 0;
12882}
12883
12884_ACEOF
12885    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12886  (eval $ac_link) 2>&5
12887  ac_status=$?
12888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12889  test $ac_status = 0; } && test -s conftest$ac_exeext; then
12890      case "$host_os" in
12891        # Handle native Windows specially, because there setlocale() interprets
12892        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12893        # "fr" or "fra" as "French" or "French_France.1252",
12894        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12895        # "ja" as "Japanese" or "Japanese_Japan.932",
12896        # and similar.
12897        mingw*)
12898          # Note that on native Windows, the Japanese locale is
12899          # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
12900          # cannot use it here.
12901          gt_cv_locale_ja=none
12902          ;;
12903        *)
12904          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12905          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12906          # configure script would override the LC_ALL setting. Likewise for
12907          # LC_CTYPE, which is also set at the beginning of the configure script.
12908          # Test for the AIX locale name.
12909          if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12910            gt_cv_locale_ja=ja_JP
12911          else
12912            # Test for the locale name with explicit encoding suffix.
12913            if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12914              gt_cv_locale_ja=ja_JP.EUC-JP
12915            else
12916              # Test for the HP-UX, OSF/1, NetBSD locale name.
12917              if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12918                gt_cv_locale_ja=ja_JP.eucJP
12919              else
12920                # Test for the IRIX, FreeBSD locale name.
12921                if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12922                  gt_cv_locale_ja=ja_JP.EUC
12923                else
12924                  # Test for the Solaris 7 locale name.
12925                  if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12926                    gt_cv_locale_ja=ja
12927                  else
12928                    # Special test for NetBSD 1.6.
12929                    if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
12930                      gt_cv_locale_ja=ja_JP.eucJP
12931                    else
12932                      # None found.
12933                      gt_cv_locale_ja=none
12934                    fi
12935                  fi
12936                fi
12937              fi
12938            fi
12939          fi
12940          ;;
12941      esac
12942    fi
12943    rm -fr conftest*
12944
12945fi
12946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
12947$as_echo "$gt_cv_locale_ja" >&6; }
12948  LOCALE_JA=$gt_cv_locale_ja
12949
12950
12951
12952
12953
12954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
12955$as_echo_n "checking for a transitional chinese locale... " >&6; }
12956if ${gt_cv_locale_zh_CN+:} false; then :
12957  $as_echo_n "(cached) " >&6
12958else
12959
12960    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961/* end confdefs.h.  */
12962
12963#include <locale.h>
12964#include <stdlib.h>
12965#include <time.h>
12966#if HAVE_LANGINFO_CODESET
12967# include <langinfo.h>
12968#endif
12969#include <stdlib.h>
12970#include <string.h>
12971struct tm t;
12972char buf[16];
12973int main ()
12974{
12975  const char *p;
12976  /* Check whether the given locale name is recognized by the system.  */
12977#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12978  /* On native Windows, setlocale(category, "") looks at the system settings,
12979     not at the environment variables.  Also, when an encoding suffix such
12980     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12981     category of the locale to "C".  */
12982  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12983      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12984    return 1;
12985#else
12986  if (setlocale (LC_ALL, "") == NULL) return 1;
12987#endif
12988  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12989     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12990     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12991     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12992     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12993     some unit tests fail.
12994     On MirBSD 10, when an unsupported locale is specified, setlocale()
12995     succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
12996#if HAVE_LANGINFO_CODESET
12997  {
12998    const char *cs = nl_langinfo (CODESET);
12999    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
13000        || strcmp (cs, "UTF-8") == 0)
13001      return 1;
13002  }
13003#endif
13004#ifdef __CYGWIN__
13005  /* On Cygwin, avoid locale names without encoding suffix, because the
13006     locale_charset() function relies on the encoding suffix.  Note that
13007     LC_ALL is set on the command line.  */
13008  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
13009#endif
13010  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
13011     This excludes the UTF-8 encoding (except on MirBSD).  */
13012  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
13013  if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
13014  for (p = buf; *p != '\0'; p++)
13015    if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
13016      return 1;
13017  /* Check whether a typical GB18030 multibyte sequence is recognized as a
13018     single wide character.  This excludes the GB2312 and GBK encodings.  */
13019  if (mblen ("\203\062\332\066", 5) != 4)
13020    return 1;
13021  return 0;
13022}
13023
13024_ACEOF
13025    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13026  (eval $ac_link) 2>&5
13027  ac_status=$?
13028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13029  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13030      case "$host_os" in
13031        # Handle native Windows specially, because there setlocale() interprets
13032        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
13033        # "fr" or "fra" as "French" or "French_France.1252",
13034        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
13035        # "ja" as "Japanese" or "Japanese_Japan.932",
13036        # and similar.
13037        mingw*)
13038          # Test for the hypothetical native Windows locale name.
13039          if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13040            gt_cv_locale_zh_CN=Chinese_China.54936
13041          else
13042            # None found.
13043            gt_cv_locale_zh_CN=none
13044          fi
13045          ;;
13046        solaris2.8)
13047          # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
13048          # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
13049          # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
13050          gt_cv_locale_zh_CN=none
13051          ;;
13052        *)
13053          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
13054          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
13055          # configure script would override the LC_ALL setting. Likewise for
13056          # LC_CTYPE, which is also set at the beginning of the configure script.
13057          # Test for the locale name without encoding suffix.
13058          if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13059            gt_cv_locale_zh_CN=zh_CN
13060          else
13061            # Test for the locale name with explicit encoding suffix.
13062            if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13063              gt_cv_locale_zh_CN=zh_CN.GB18030
13064            else
13065              # None found.
13066              gt_cv_locale_zh_CN=none
13067            fi
13068          fi
13069          ;;
13070      esac
13071    else
13072      # If there was a link error, due to mblen(), the system is so old that
13073      # it certainly doesn't have a chinese locale.
13074      gt_cv_locale_zh_CN=none
13075    fi
13076    rm -fr conftest*
13077
13078fi
13079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
13080$as_echo "$gt_cv_locale_zh_CN" >&6; }
13081  LOCALE_ZH_CN=$gt_cv_locale_zh_CN
13082
13083
13084
13085
13086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
13087$as_echo_n "checking for a french Unicode locale... " >&6; }
13088if ${gt_cv_locale_fr_utf8+:} false; then :
13089  $as_echo_n "(cached) " >&6
13090else
13091
13092    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093/* end confdefs.h.  */
13094
13095#include <locale.h>
13096#include <time.h>
13097#if HAVE_LANGINFO_CODESET
13098# include <langinfo.h>
13099#endif
13100#include <stdlib.h>
13101#include <string.h>
13102struct tm t;
13103char buf[16];
13104int main () {
13105  /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
13106     imitates locale dependent behaviour by looking at the environment
13107     variables, and all locales use the UTF-8 encoding.  */
13108#if !(defined __BEOS__ || defined __HAIKU__)
13109  /* Check whether the given locale name is recognized by the system.  */
13110# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
13111  /* On native Windows, setlocale(category, "") looks at the system settings,
13112     not at the environment variables.  Also, when an encoding suffix such
13113     as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
13114     category of the locale to "C".  */
13115  if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
13116      || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
13117    return 1;
13118# else
13119  if (setlocale (LC_ALL, "") == NULL) return 1;
13120# endif
13121  /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
13122     On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
13123     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
13124     On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
13125     succeeds but then nl_langinfo(CODESET) is "646". In this situation,
13126     some unit tests fail.  */
13127# if HAVE_LANGINFO_CODESET
13128  {
13129    const char *cs = nl_langinfo (CODESET);
13130    if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
13131      return 1;
13132  }
13133# endif
13134# ifdef __CYGWIN__
13135  /* On Cygwin, avoid locale names without encoding suffix, because the
13136     locale_charset() function relies on the encoding suffix.  Note that
13137     LC_ALL is set on the command line.  */
13138  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
13139# endif
13140  /* Check whether in the abbreviation of the second month, the second
13141     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
13142     two bytes long, with UTF-8 encoding.  */
13143  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
13144  if (strftime (buf, sizeof (buf), "%b", &t) < 4
13145      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
13146    return 1;
13147#endif
13148#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
13149  /* Check whether the decimal separator is a comma.
13150     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
13151     are nl_langinfo(RADIXCHAR) are both ".".  */
13152  if (localeconv () ->decimal_point[0] != ',') return 1;
13153#endif
13154  return 0;
13155}
13156
13157_ACEOF
13158    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13159  (eval $ac_link) 2>&5
13160  ac_status=$?
13161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13162  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13163      case "$host_os" in
13164        # Handle native Windows specially, because there setlocale() interprets
13165        # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
13166        # "fr" or "fra" as "French" or "French_France.1252",
13167        # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
13168        # "ja" as "Japanese" or "Japanese_Japan.932",
13169        # and similar.
13170        mingw*)
13171          # Test for the hypothetical native Windows locale name.
13172          if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13173            gt_cv_locale_fr_utf8=French_France.65001
13174          else
13175            # None found.
13176            gt_cv_locale_fr_utf8=none
13177          fi
13178          ;;
13179        *)
13180          # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
13181          # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
13182          # configure script would override the LC_ALL setting. Likewise for
13183          # LC_CTYPE, which is also set at the beginning of the configure script.
13184          # Test for the usual locale name.
13185          if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13186            gt_cv_locale_fr_utf8=fr_FR
13187          else
13188            # Test for the locale name with explicit encoding suffix.
13189            if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13190              gt_cv_locale_fr_utf8=fr_FR.UTF-8
13191            else
13192              # Test for the Solaris 7 locale name.
13193              if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13194                gt_cv_locale_fr_utf8=fr.UTF-8
13195              else
13196                # None found.
13197                gt_cv_locale_fr_utf8=none
13198              fi
13199            fi
13200          fi
13201          ;;
13202      esac
13203    fi
13204    rm -fr conftest*
13205
13206fi
13207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
13208$as_echo "$gt_cv_locale_fr_utf8" >&6; }
13209  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
13210
13211
13212
13213
13214
13215
13216
13217  GNULIB_FFSL=0;
13218  GNULIB_FFSLL=0;
13219  GNULIB_MEMCHR=0;
13220  GNULIB_MEMMEM=0;
13221  GNULIB_MEMPCPY=0;
13222  GNULIB_MEMRCHR=0;
13223  GNULIB_RAWMEMCHR=0;
13224  GNULIB_STPCPY=0;
13225  GNULIB_STPNCPY=0;
13226  GNULIB_STRCHRNUL=0;
13227  GNULIB_STRDUP=0;
13228  GNULIB_STRNCAT=0;
13229  GNULIB_STRNDUP=0;
13230  GNULIB_STRNLEN=0;
13231  GNULIB_STRPBRK=0;
13232  GNULIB_STRSEP=0;
13233  GNULIB_STRSTR=0;
13234  GNULIB_STRCASESTR=0;
13235  GNULIB_STRTOK_R=0;
13236  GNULIB_MBSLEN=0;
13237  GNULIB_MBSNLEN=0;
13238  GNULIB_MBSCHR=0;
13239  GNULIB_MBSRCHR=0;
13240  GNULIB_MBSSTR=0;
13241  GNULIB_MBSCASECMP=0;
13242  GNULIB_MBSNCASECMP=0;
13243  GNULIB_MBSPCASECMP=0;
13244  GNULIB_MBSCASESTR=0;
13245  GNULIB_MBSCSPN=0;
13246  GNULIB_MBSPBRK=0;
13247  GNULIB_MBSSPN=0;
13248  GNULIB_MBSSEP=0;
13249  GNULIB_MBSTOK_R=0;
13250  GNULIB_STRERROR=0;
13251  GNULIB_STRERROR_R=0;
13252  GNULIB_STRSIGNAL=0;
13253  GNULIB_STRVERSCMP=0;
13254  HAVE_MBSLEN=0;
13255    HAVE_FFSL=1;
13256  HAVE_FFSLL=1;
13257  HAVE_MEMCHR=1;
13258  HAVE_DECL_MEMMEM=1;
13259  HAVE_MEMPCPY=1;
13260  HAVE_DECL_MEMRCHR=1;
13261  HAVE_RAWMEMCHR=1;
13262  HAVE_STPCPY=1;
13263  HAVE_STPNCPY=1;
13264  HAVE_STRCHRNUL=1;
13265  HAVE_DECL_STRDUP=1;
13266  HAVE_DECL_STRNDUP=1;
13267  HAVE_DECL_STRNLEN=1;
13268  HAVE_STRPBRK=1;
13269  HAVE_STRSEP=1;
13270  HAVE_STRCASESTR=1;
13271  HAVE_DECL_STRTOK_R=1;
13272  HAVE_DECL_STRERROR_R=1;
13273  HAVE_DECL_STRSIGNAL=1;
13274  HAVE_STRVERSCMP=1;
13275  REPLACE_MEMCHR=0;
13276  REPLACE_MEMMEM=0;
13277  REPLACE_STPNCPY=0;
13278  REPLACE_STRDUP=0;
13279  REPLACE_STRSTR=0;
13280  REPLACE_STRCASESTR=0;
13281  REPLACE_STRCHRNUL=0;
13282  REPLACE_STRERROR=0;
13283  REPLACE_STRERROR_R=0;
13284  REPLACE_STRNCAT=0;
13285  REPLACE_STRNDUP=0;
13286  REPLACE_STRNLEN=0;
13287  REPLACE_STRSIGNAL=0;
13288  REPLACE_STRTOK_R=0;
13289  UNDEFINE_STRTOK_R=0;
13290
13291
13292
13293
13294
13295  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
13296  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
13297  # irrelevant for anonymous mappings.
13298  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13299if test "x$ac_cv_func_mmap" = xyes; then :
13300  gl_have_mmap=yes
13301else
13302  gl_have_mmap=no
13303fi
13304
13305
13306  # Try to allow MAP_ANONYMOUS.
13307  gl_have_mmap_anonymous=no
13308  if test $gl_have_mmap = yes; then
13309    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
13310$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
13311    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312/* end confdefs.h.  */
13313
13314#include <sys/mman.h>
13315#ifdef MAP_ANONYMOUS
13316    I cannot identify this map
13317#endif
13318
13319_ACEOF
13320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13321  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
13322  gl_have_mmap_anonymous=yes
13323fi
13324rm -f conftest*
13325
13326    if test $gl_have_mmap_anonymous != yes; then
13327      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328/* end confdefs.h.  */
13329
13330#include <sys/mman.h>
13331#ifdef MAP_ANON
13332    I cannot identify this map
13333#endif
13334
13335_ACEOF
13336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13337  $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
13338
13339$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
13340
13341         gl_have_mmap_anonymous=yes
13342fi
13343rm -f conftest*
13344
13345    fi
13346    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
13347$as_echo "$gl_have_mmap_anonymous" >&6; }
13348    if test $gl_have_mmap_anonymous = yes; then
13349
13350$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
13351
13352    fi
13353  fi
13354
13355
13356
13357
13358
13359
13360  if test $HAVE_MEMCHR = 1; then
13361    # Detect platform-specific bugs in some versions of glibc:
13362    # memchr should not dereference anything with length 0
13363    #   http://bugzilla.redhat.com/499689
13364    # memchr should not dereference overestimated length after a match
13365    #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
13366    #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
13367    # Assume that memchr works on platforms that lack mprotect.
13368    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
13369$as_echo_n "checking whether memchr works... " >&6; }
13370if ${gl_cv_func_memchr_works+:} false; then :
13371  $as_echo_n "(cached) " >&6
13372else
13373  if test "$cross_compiling" = yes; then :
13374         gl_cv_func_memchr_works="guessing no"
13375else
13376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377/* end confdefs.h.  */
13378
13379#include <string.h>
13380#if HAVE_SYS_MMAN_H
13381# include <fcntl.h>
13382# include <unistd.h>
13383# include <sys/types.h>
13384# include <sys/mman.h>
13385# ifndef MAP_FILE
13386#  define MAP_FILE 0
13387# endif
13388#endif
13389
13390int
13391main ()
13392{
13393
13394  int result = 0;
13395  char *fence = NULL;
13396#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
13397# if HAVE_MAP_ANONYMOUS
13398  const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
13399  const int fd = -1;
13400# else /* !HAVE_MAP_ANONYMOUS */
13401  const int flags = MAP_FILE | MAP_PRIVATE;
13402  int fd = open ("/dev/zero", O_RDONLY, 0666);
13403  if (fd >= 0)
13404# endif
13405    {
13406      int pagesize = getpagesize ();
13407      char *two_pages =
13408        (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
13409                       flags, fd, 0);
13410      if (two_pages != (char *)(-1)
13411          && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
13412        fence = two_pages + pagesize;
13413    }
13414#endif
13415  if (fence)
13416    {
13417      if (memchr (fence, 0, 0))
13418        result |= 1;
13419      strcpy (fence - 9, "12345678");
13420      if (memchr (fence - 9, 0, 79) != fence - 1)
13421        result |= 2;
13422      if (memchr (fence - 1, 0, 3) != fence - 1)
13423        result |= 4;
13424    }
13425  return result;
13426
13427  ;
13428  return 0;
13429}
13430_ACEOF
13431if ac_fn_c_try_run "$LINENO"; then :
13432  gl_cv_func_memchr_works=yes
13433else
13434  gl_cv_func_memchr_works=no
13435fi
13436rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13437  conftest.$ac_objext conftest.beam conftest.$ac_ext
13438fi
13439
13440fi
13441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
13442$as_echo "$gl_cv_func_memchr_works" >&6; }
13443    if test "$gl_cv_func_memchr_works" != yes; then
13444      REPLACE_MEMCHR=1
13445    fi
13446  fi
13447
13448
13449    gl_cv_c_multiarch=no
13450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451/* end confdefs.h.  */
13452#ifndef __APPLE_CC__
13453         not a universal capable compiler
13454        #endif
13455        typedef int dummy;
13456
13457_ACEOF
13458if ac_fn_c_try_compile "$LINENO"; then :
13459
13460               arch=
13461     prev=
13462     for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
13463       if test -n "$prev"; then
13464         case $word in
13465           i?86 | x86_64 | ppc | ppc64)
13466             if test -z "$arch" || test "$arch" = "$word"; then
13467               arch="$word"
13468             else
13469               gl_cv_c_multiarch=yes
13470             fi
13471             ;;
13472         esac
13473         prev=
13474       else
13475         if test "x$word" = "x-arch"; then
13476           prev=arch
13477         fi
13478       fi
13479     done
13480
13481fi
13482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13483  if test $gl_cv_c_multiarch = yes; then
13484    APPLE_UNIVERSAL_BUILD=1
13485  else
13486    APPLE_UNIVERSAL_BUILD=0
13487  fi
13488
13489
13490
13491
13492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
13493$as_echo_n "checking for external symbol _system_configuration... " >&6; }
13494if ${gl_cv_var__system_configuration+:} false; then :
13495  $as_echo_n "(cached) " >&6
13496else
13497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498/* end confdefs.h.  */
13499#include <sys/systemcfg.h>
13500
13501int
13502main ()
13503{
13504double x = _system_configuration.physmem;
13505                        if (x > 0.0) return 0;
13506  ;
13507  return 0;
13508}
13509_ACEOF
13510if ac_fn_c_try_link "$LINENO"; then :
13511  gl_cv_var__system_configuration=yes
13512else
13513  gl_cv_var__system_configuration=no
13514fi
13515rm -f core conftest.err conftest.$ac_objext \
13516    conftest$ac_exeext conftest.$ac_ext
13517fi
13518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var__system_configuration" >&5
13519$as_echo "$gl_cv_var__system_configuration" >&6; }
13520
13521    if test $gl_cv_var__system_configuration = yes; then
13522
13523$as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
13524
13525    fi
13526
13527
13528
13529  GNULIB_PTHREAD_SIGMASK=0;
13530  GNULIB_RAISE=0;
13531  GNULIB_SIGNAL_H_SIGPIPE=0;
13532  GNULIB_SIGPROCMASK=0;
13533  GNULIB_SIGACTION=0;
13534    HAVE_POSIX_SIGNALBLOCKING=1;
13535  HAVE_PTHREAD_SIGMASK=1;
13536  HAVE_RAISE=1;
13537  HAVE_SIGSET_T=1;
13538  HAVE_SIGINFO_T=1;
13539  HAVE_SIGACTION=1;
13540  HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
13541
13542  HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
13543
13544  HAVE_SIGHANDLER_T=1;
13545  REPLACE_PTHREAD_SIGMASK=0;
13546  REPLACE_RAISE=0;
13547
13548ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
13549if test "x$ac_cv_have_decl_alarm" = xyes; then :
13550  ac_have_decl=1
13551else
13552  ac_have_decl=0
13553fi
13554
13555cat >>confdefs.h <<_ACEOF
13556#define HAVE_DECL_ALARM $ac_have_decl
13557_ACEOF
13558
13559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13560$as_echo_n "checking for inline... " >&6; }
13561if ${ac_cv_c_inline+:} false; then :
13562  $as_echo_n "(cached) " >&6
13563else
13564  ac_cv_c_inline=no
13565for ac_kw in inline __inline__ __inline; do
13566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567/* end confdefs.h.  */
13568#ifndef __cplusplus
13569typedef int foo_t;
13570static $ac_kw foo_t static_foo () {return 0; }
13571$ac_kw foo_t foo () {return 0; }
13572#endif
13573
13574_ACEOF
13575if ac_fn_c_try_compile "$LINENO"; then :
13576  ac_cv_c_inline=$ac_kw
13577fi
13578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13579  test "$ac_cv_c_inline" != no && break
13580done
13581
13582fi
13583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13584$as_echo "$ac_cv_c_inline" >&6; }
13585
13586case $ac_cv_c_inline in
13587  inline | yes) ;;
13588  *)
13589    case $ac_cv_c_inline in
13590      no) ac_val=;;
13591      *) ac_val=$ac_cv_c_inline;;
13592    esac
13593    cat >>confdefs.h <<_ACEOF
13594#ifndef __cplusplus
13595#define inline $ac_val
13596#endif
13597_ACEOF
13598    ;;
13599esac
13600
13601
13602
13603      for ac_header in stdlib.h
13604do :
13605  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13606if test "x$ac_cv_header_stdlib_h" = xyes; then :
13607  cat >>confdefs.h <<_ACEOF
13608#define HAVE_STDLIB_H 1
13609_ACEOF
13610
13611fi
13612
13613done
13614
13615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13616$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13617if ${ac_cv_func_malloc_0_nonnull+:} false; then :
13618  $as_echo_n "(cached) " >&6
13619else
13620  if test "$cross_compiling" = yes; then :
13621  case "$host_os" in
13622          # Guess yes on platforms where we know the result.
13623          *-gnu* | freebsd* | netbsd* | openbsd* \
13624          | hpux* | solaris* | cygwin* | mingw*)
13625            ac_cv_func_malloc_0_nonnull=yes ;;
13626          # If we don't know, assume the worst.
13627          *) ac_cv_func_malloc_0_nonnull=no ;;
13628        esac
13629
13630else
13631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632/* end confdefs.h.  */
13633#if defined STDC_HEADERS || defined HAVE_STDLIB_H
13634            # include <stdlib.h>
13635            #else
13636            char *malloc ();
13637            #endif
13638
13639int
13640main ()
13641{
13642return ! malloc (0);
13643  ;
13644  return 0;
13645}
13646
13647_ACEOF
13648if ac_fn_c_try_run "$LINENO"; then :
13649  ac_cv_func_malloc_0_nonnull=yes
13650else
13651  ac_cv_func_malloc_0_nonnull=no
13652fi
13653rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13654  conftest.$ac_objext conftest.beam conftest.$ac_ext
13655fi
13656
13657
13658fi
13659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13660$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13661  if test $ac_cv_func_malloc_0_nonnull = yes; then :
13662  gl_cv_func_malloc_0_nonnull=1
13663else
13664  gl_cv_func_malloc_0_nonnull=0
13665fi
13666
13667
13668cat >>confdefs.h <<_ACEOF
13669#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
13670_ACEOF
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
13681$as_echo_n "checking for ssize_t... " >&6; }
13682if ${gt_cv_ssize_t+:} false; then :
13683  $as_echo_n "(cached) " >&6
13684else
13685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686/* end confdefs.h.  */
13687#include <sys/types.h>
13688int
13689main ()
13690{
13691int x = sizeof (ssize_t *) + sizeof (ssize_t);
13692            return !x;
13693  ;
13694  return 0;
13695}
13696_ACEOF
13697if ac_fn_c_try_compile "$LINENO"; then :
13698  gt_cv_ssize_t=yes
13699else
13700  gt_cv_ssize_t=no
13701fi
13702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13703fi
13704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
13705$as_echo "$gt_cv_ssize_t" >&6; }
13706  if test $gt_cv_ssize_t = no; then
13707
13708$as_echo "#define ssize_t int" >>confdefs.h
13709
13710  fi
13711
13712
13713
13714
13715  ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
13716      #include <signal.h>
13717      /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
13718      #include <sys/types.h>
13719
13720"
13721if test "x$ac_cv_type_sigset_t" = xyes; then :
13722
13723cat >>confdefs.h <<_ACEOF
13724#define HAVE_SIGSET_T 1
13725_ACEOF
13726
13727gl_cv_type_sigset_t=yes
13728else
13729  gl_cv_type_sigset_t=no
13730fi
13731
13732  if test $gl_cv_type_sigset_t != yes; then
13733    HAVE_SIGSET_T=0
13734  fi
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
13745$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
13746if ${gl_cv_func_snprintf_retval_c99+:} false; then :
13747  $as_echo_n "(cached) " >&6
13748else
13749
13750      if test "$cross_compiling" = yes; then :
13751
13752         case "$host_os" in
13753                                 # Guess yes on glibc systems.
13754           *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
13755                                 # Guess yes on FreeBSD >= 5.
13756           freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
13757           freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13758                                 # Guess yes on Mac OS X >= 10.3.
13759           darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
13760           darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
13761                                 # Guess yes on OpenBSD >= 3.9.
13762           openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
13763                                 gl_cv_func_snprintf_retval_c99="guessing no";;
13764           openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
13765                                 # Guess yes on Solaris >= 2.10.
13766           solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
13767           solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
13768                                 # Guess yes on AIX >= 4.
13769           aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
13770           aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
13771                                 # Guess yes on NetBSD >= 3.
13772           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
13773                                 gl_cv_func_snprintf_retval_c99="guessing no";;
13774           netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
13775                                 # Guess yes on BeOS.
13776           beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
13777                                 # If we don't know, assume the worst.
13778           *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
13779         esac
13780
13781else
13782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783/* end confdefs.h.  */
13784
13785#include <stdio.h>
13786#include <string.h>
13787#if HAVE_SNPRINTF
13788# define my_snprintf snprintf
13789#else
13790# include <stdarg.h>
13791static int my_snprintf (char *buf, int size, const char *format, ...)
13792{
13793  va_list args;
13794  int ret;
13795  va_start (args, format);
13796  ret = vsnprintf (buf, size, format, args);
13797  va_end (args);
13798  return ret;
13799}
13800#endif
13801static char buf[100];
13802int main ()
13803{
13804  strcpy (buf, "ABCDEF");
13805  if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
13806    return 1;
13807  if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
13808    return 2;
13809  if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
13810    return 3;
13811  return 0;
13812}
13813_ACEOF
13814if ac_fn_c_try_run "$LINENO"; then :
13815  gl_cv_func_snprintf_retval_c99=yes
13816else
13817  gl_cv_func_snprintf_retval_c99=no
13818fi
13819rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13820  conftest.$ac_objext conftest.beam conftest.$ac_ext
13821fi
13822
13823
13824fi
13825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
13826$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
13827
13828ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13829if test "x$ac_cv_have_decl_snprintf" = xyes; then :
13830  ac_have_decl=1
13831else
13832  ac_have_decl=0
13833fi
13834
13835cat >>confdefs.h <<_ACEOF
13836#define HAVE_DECL_SNPRINTF $ac_have_decl
13837_ACEOF
13838
13839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13840$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13841if ${ac_cv_header_stdbool_h+:} false; then :
13842  $as_echo_n "(cached) " >&6
13843else
13844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845/* end confdefs.h.  */
13846
13847             #include <stdbool.h>
13848             #ifndef bool
13849              "error: bool is not defined"
13850             #endif
13851             #ifndef false
13852              "error: false is not defined"
13853             #endif
13854             #if false
13855              "error: false is not 0"
13856             #endif
13857             #ifndef true
13858              "error: true is not defined"
13859             #endif
13860             #if true != 1
13861              "error: true is not 1"
13862             #endif
13863             #ifndef __bool_true_false_are_defined
13864              "error: __bool_true_false_are_defined is not defined"
13865             #endif
13866
13867             struct s { _Bool s: 1; _Bool t; } s;
13868
13869             char a[true == 1 ? 1 : -1];
13870             char b[false == 0 ? 1 : -1];
13871             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13872             char d[(bool) 0.5 == true ? 1 : -1];
13873             /* See body of main program for 'e'.  */
13874             char f[(_Bool) 0.0 == false ? 1 : -1];
13875             char g[true];
13876             char h[sizeof (_Bool)];
13877             char i[sizeof s.t];
13878             enum { j = false, k = true, l = false * true, m = true * 256 };
13879             /* The following fails for
13880                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13881             _Bool n[m];
13882             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13883             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13884             /* Catch a bug in an HP-UX C compiler.  See
13885                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13886                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13887              */
13888             _Bool q = true;
13889             _Bool *pq = &q;
13890
13891int
13892main ()
13893{
13894
13895             bool e = &s;
13896             *pq |= q;
13897             *pq |= ! q;
13898             /* Refer to every declared value, to avoid compiler optimizations.  */
13899             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13900                     + !m + !n + !o + !p + !q + !pq);
13901
13902  ;
13903  return 0;
13904}
13905_ACEOF
13906if ac_fn_c_try_compile "$LINENO"; then :
13907  ac_cv_header_stdbool_h=yes
13908else
13909  ac_cv_header_stdbool_h=no
13910fi
13911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13912fi
13913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13914$as_echo "$ac_cv_header_stdbool_h" >&6; }
13915   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13916if test "x$ac_cv_type__Bool" = xyes; then :
13917
13918cat >>confdefs.h <<_ACEOF
13919#define HAVE__BOOL 1
13920_ACEOF
13921
13922
13923fi
13924
13925
13926
13927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
13928$as_echo_n "checking for unsigned long long int... " >&6; }
13929if ${ac_cv_type_unsigned_long_long_int+:} false; then :
13930  $as_echo_n "(cached) " >&6
13931else
13932  ac_cv_type_unsigned_long_long_int=yes
13933     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
13934       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935/* end confdefs.h.  */
13936
13937  /* For now, do not test the preprocessor; as of 2007 there are too many
13938         implementations with broken preprocessors.  Perhaps this can
13939         be revisited in 2012.  In the meantime, code should not expect
13940         #if to work with literals wider than 32 bits.  */
13941      /* Test literals.  */
13942      long long int ll = 9223372036854775807ll;
13943      long long int nll = -9223372036854775807LL;
13944      unsigned long long int ull = 18446744073709551615ULL;
13945      /* Test constant expressions.   */
13946      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
13947                     ? 1 : -1)];
13948      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
13949                     ? 1 : -1)];
13950      int i = 63;
13951int
13952main ()
13953{
13954/* Test availability of runtime routines for shift and division.  */
13955      long long int llmax = 9223372036854775807ll;
13956      unsigned long long int ullmax = 18446744073709551615ull;
13957      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13958              | (llmax / ll) | (llmax % ll)
13959              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
13960              | (ullmax / ull) | (ullmax % ull));
13961  ;
13962  return 0;
13963}
13964
13965_ACEOF
13966if ac_fn_c_try_link "$LINENO"; then :
13967
13968else
13969  ac_cv_type_unsigned_long_long_int=no
13970fi
13971rm -f core conftest.err conftest.$ac_objext \
13972    conftest$ac_exeext conftest.$ac_ext
13973     fi
13974fi
13975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
13976$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
13977  if test $ac_cv_type_unsigned_long_long_int = yes; then
13978
13979$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
13980
13981  fi
13982
13983
13984
13985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
13986$as_echo_n "checking for long long int... " >&6; }
13987if ${ac_cv_type_long_long_int+:} false; then :
13988  $as_echo_n "(cached) " >&6
13989else
13990  ac_cv_type_long_long_int=yes
13991      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
13992        ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
13993        if test $ac_cv_type_long_long_int = yes; then
13994                                        if test "$cross_compiling" = yes; then :
13995  :
13996else
13997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998/* end confdefs.h.  */
13999#include <limits.h>
14000                 #ifndef LLONG_MAX
14001                 # define HALF \
14002                          (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14003                 # define LLONG_MAX (HALF - 1 + HALF)
14004                 #endif
14005int
14006main ()
14007{
14008long long int n = 1;
14009                 int i;
14010                 for (i = 0; ; i++)
14011                   {
14012                     long long int m = n << i;
14013                     if (m >> i != n)
14014                       return 1;
14015                     if (LLONG_MAX / 2 < m)
14016                       break;
14017                   }
14018                 return 0;
14019  ;
14020  return 0;
14021}
14022_ACEOF
14023if ac_fn_c_try_run "$LINENO"; then :
14024
14025else
14026  ac_cv_type_long_long_int=no
14027fi
14028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14029  conftest.$ac_objext conftest.beam conftest.$ac_ext
14030fi
14031
14032        fi
14033      fi
14034fi
14035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14036$as_echo "$ac_cv_type_long_long_int" >&6; }
14037  if test $ac_cv_type_long_long_int = yes; then
14038
14039$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14040
14041  fi
14042
14043
14044
14045
14046
14047
14048
14049
14050  if test $ac_cv_type_long_long_int = yes; then
14051    HAVE_LONG_LONG_INT=1
14052  else
14053    HAVE_LONG_LONG_INT=0
14054  fi
14055
14056
14057  if test $ac_cv_type_unsigned_long_long_int = yes; then
14058    HAVE_UNSIGNED_LONG_LONG_INT=1
14059  else
14060    HAVE_UNSIGNED_LONG_LONG_INT=0
14061  fi
14062
14063
14064
14065  if test $ac_cv_header_wchar_h = yes; then
14066    HAVE_WCHAR_H=1
14067  else
14068    HAVE_WCHAR_H=0
14069  fi
14070
14071
14072      if test $ac_cv_header_inttypes_h = yes; then
14073    HAVE_INTTYPES_H=1
14074  else
14075    HAVE_INTTYPES_H=0
14076  fi
14077
14078
14079      if test $ac_cv_header_sys_types_h = yes; then
14080    HAVE_SYS_TYPES_H=1
14081  else
14082    HAVE_SYS_TYPES_H=0
14083  fi
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095     if test $gl_cv_have_include_next = yes; then
14096       gl_cv_next_stdint_h='<'stdint.h'>'
14097     else
14098       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
14099$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
14100if ${gl_cv_next_stdint_h+:} false; then :
14101  $as_echo_n "(cached) " >&6
14102else
14103
14104             if test $ac_cv_header_stdint_h = yes; then
14105
14106
14107               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108/* end confdefs.h.  */
14109#include <stdint.h>
14110
14111_ACEOF
14112                                                                                                                        case "$host_os" in
14113                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14114                 *)    gl_absname_cpp="$ac_cpp" ;;
14115               esac
14116
14117               case "$host_os" in
14118                 mingw*)
14119                                                                                                                                     gl_dirsep_regex='[/\\]'
14120                   ;;
14121                 *)
14122                   gl_dirsep_regex='\/'
14123                   ;;
14124               esac
14125                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14126
14127               gl_header_literal_regex=`echo 'stdint.h' \
14128                                        | sed -e "$gl_make_literal_regex_sed"`
14129               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14130                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14131                   s|^/[^/]|//&|
14132                   p
14133                   q
14134                 }'
14135                                                            gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14136                      sed -n "$gl_absolute_header_sed"`'"'
14137          else
14138               gl_cv_next_stdint_h='<'stdint.h'>'
14139             fi
14140
14141
14142fi
14143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
14144$as_echo "$gl_cv_next_stdint_h" >&6; }
14145     fi
14146     NEXT_STDINT_H=$gl_cv_next_stdint_h
14147
14148     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14149       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14150       gl_next_as_first_directive='<'stdint.h'>'
14151     else
14152       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14153       gl_next_as_first_directive=$gl_cv_next_stdint_h
14154     fi
14155     NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
14156
14157
14158
14159
14160  if test $ac_cv_header_stdint_h = yes; then
14161    HAVE_STDINT_H=1
14162  else
14163    HAVE_STDINT_H=0
14164  fi
14165
14166
14167    if test $ac_cv_header_stdint_h = yes; then
14168    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
14169$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
14170if ${gl_cv_header_working_stdint_h+:} false; then :
14171  $as_echo_n "(cached) " >&6
14172else
14173  gl_cv_header_working_stdint_h=no
14174       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175/* end confdefs.h.  */
14176
14177
14178#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
14179#include <stdint.h>
14180/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
14181#if !(defined WCHAR_MIN && defined WCHAR_MAX)
14182#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
14183#endif
14184
14185
14186  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14187     included before <wchar.h>.  */
14188  #include <stddef.h>
14189  #include <signal.h>
14190  #if HAVE_WCHAR_H
14191  # include <stdio.h>
14192  # include <time.h>
14193  # include <wchar.h>
14194  #endif
14195
14196
14197#ifdef INT8_MAX
14198int8_t a1 = INT8_MAX;
14199int8_t a1min = INT8_MIN;
14200#endif
14201#ifdef INT16_MAX
14202int16_t a2 = INT16_MAX;
14203int16_t a2min = INT16_MIN;
14204#endif
14205#ifdef INT32_MAX
14206int32_t a3 = INT32_MAX;
14207int32_t a3min = INT32_MIN;
14208#endif
14209#ifdef INT64_MAX
14210int64_t a4 = INT64_MAX;
14211int64_t a4min = INT64_MIN;
14212#endif
14213#ifdef UINT8_MAX
14214uint8_t b1 = UINT8_MAX;
14215#else
14216typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
14217#endif
14218#ifdef UINT16_MAX
14219uint16_t b2 = UINT16_MAX;
14220#endif
14221#ifdef UINT32_MAX
14222uint32_t b3 = UINT32_MAX;
14223#endif
14224#ifdef UINT64_MAX
14225uint64_t b4 = UINT64_MAX;
14226#endif
14227int_least8_t c1 = INT8_C (0x7f);
14228int_least8_t c1max = INT_LEAST8_MAX;
14229int_least8_t c1min = INT_LEAST8_MIN;
14230int_least16_t c2 = INT16_C (0x7fff);
14231int_least16_t c2max = INT_LEAST16_MAX;
14232int_least16_t c2min = INT_LEAST16_MIN;
14233int_least32_t c3 = INT32_C (0x7fffffff);
14234int_least32_t c3max = INT_LEAST32_MAX;
14235int_least32_t c3min = INT_LEAST32_MIN;
14236int_least64_t c4 = INT64_C (0x7fffffffffffffff);
14237int_least64_t c4max = INT_LEAST64_MAX;
14238int_least64_t c4min = INT_LEAST64_MIN;
14239uint_least8_t d1 = UINT8_C (0xff);
14240uint_least8_t d1max = UINT_LEAST8_MAX;
14241uint_least16_t d2 = UINT16_C (0xffff);
14242uint_least16_t d2max = UINT_LEAST16_MAX;
14243uint_least32_t d3 = UINT32_C (0xffffffff);
14244uint_least32_t d3max = UINT_LEAST32_MAX;
14245uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
14246uint_least64_t d4max = UINT_LEAST64_MAX;
14247int_fast8_t e1 = INT_FAST8_MAX;
14248int_fast8_t e1min = INT_FAST8_MIN;
14249int_fast16_t e2 = INT_FAST16_MAX;
14250int_fast16_t e2min = INT_FAST16_MIN;
14251int_fast32_t e3 = INT_FAST32_MAX;
14252int_fast32_t e3min = INT_FAST32_MIN;
14253int_fast64_t e4 = INT_FAST64_MAX;
14254int_fast64_t e4min = INT_FAST64_MIN;
14255uint_fast8_t f1 = UINT_FAST8_MAX;
14256uint_fast16_t f2 = UINT_FAST16_MAX;
14257uint_fast32_t f3 = UINT_FAST32_MAX;
14258uint_fast64_t f4 = UINT_FAST64_MAX;
14259#ifdef INTPTR_MAX
14260intptr_t g = INTPTR_MAX;
14261intptr_t gmin = INTPTR_MIN;
14262#endif
14263#ifdef UINTPTR_MAX
14264uintptr_t h = UINTPTR_MAX;
14265#endif
14266intmax_t i = INTMAX_MAX;
14267uintmax_t j = UINTMAX_MAX;
14268
14269#include <limits.h> /* for CHAR_BIT */
14270#define TYPE_MINIMUM(t) \
14271  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
14272#define TYPE_MAXIMUM(t) \
14273  ((t) ((t) 0 < (t) -1 \
14274        ? (t) -1 \
14275        : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
14276struct s {
14277  int check_PTRDIFF:
14278      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
14279      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
14280      ? 1 : -1;
14281  /* Detect bug in FreeBSD 6.0 / ia64.  */
14282  int check_SIG_ATOMIC:
14283      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
14284      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
14285      ? 1 : -1;
14286  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
14287  int check_WCHAR:
14288      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
14289      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
14290      ? 1 : -1;
14291  /* Detect bug in mingw.  */
14292  int check_WINT:
14293      WINT_MIN == TYPE_MINIMUM (wint_t)
14294      && WINT_MAX == TYPE_MAXIMUM (wint_t)
14295      ? 1 : -1;
14296
14297  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
14298  int check_UINT8_C:
14299        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
14300  int check_UINT16_C:
14301        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
14302
14303  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
14304#ifdef UINT8_MAX
14305  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
14306#endif
14307#ifdef UINT16_MAX
14308  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
14309#endif
14310#ifdef UINT32_MAX
14311  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
14312#endif
14313#ifdef UINT64_MAX
14314  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
14315#endif
14316  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
14317  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
14318  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
14319  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
14320  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
14321  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
14322  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
14323  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
14324  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
14325  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
14326  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
14327};
14328
14329int
14330main ()
14331{
14332
14333  ;
14334  return 0;
14335}
14336_ACEOF
14337if ac_fn_c_try_compile "$LINENO"; then :
14338                                                    if test "$cross_compiling" = yes; then :
14339                 gl_cv_header_working_stdint_h=yes
14340
14341else
14342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343/* end confdefs.h.  */
14344
14345
14346#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
14347#include <stdint.h>
14348
14349
14350  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14351     included before <wchar.h>.  */
14352  #include <stddef.h>
14353  #include <signal.h>
14354  #if HAVE_WCHAR_H
14355  # include <stdio.h>
14356  # include <time.h>
14357  # include <wchar.h>
14358  #endif
14359
14360
14361#include <stdio.h>
14362#include <string.h>
14363#define MVAL(macro) MVAL1(macro)
14364#define MVAL1(expression) #expression
14365static const char *macro_values[] =
14366  {
14367#ifdef INT8_MAX
14368    MVAL (INT8_MAX),
14369#endif
14370#ifdef INT16_MAX
14371    MVAL (INT16_MAX),
14372#endif
14373#ifdef INT32_MAX
14374    MVAL (INT32_MAX),
14375#endif
14376#ifdef INT64_MAX
14377    MVAL (INT64_MAX),
14378#endif
14379#ifdef UINT8_MAX
14380    MVAL (UINT8_MAX),
14381#endif
14382#ifdef UINT16_MAX
14383    MVAL (UINT16_MAX),
14384#endif
14385#ifdef UINT32_MAX
14386    MVAL (UINT32_MAX),
14387#endif
14388#ifdef UINT64_MAX
14389    MVAL (UINT64_MAX),
14390#endif
14391    NULL
14392  };
14393
14394int
14395main ()
14396{
14397
14398  const char **mv;
14399  for (mv = macro_values; *mv != NULL; mv++)
14400    {
14401      const char *value = *mv;
14402      /* Test whether it looks like a cast expression.  */
14403      if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
14404          || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
14405          || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
14406          || strncmp (value, "((int)"/*)*/, 6) == 0
14407          || strncmp (value, "((signed short)"/*)*/, 15) == 0
14408          || strncmp (value, "((signed char)"/*)*/, 14) == 0)
14409        return mv - macro_values + 1;
14410    }
14411  return 0;
14412
14413  ;
14414  return 0;
14415}
14416_ACEOF
14417if ac_fn_c_try_run "$LINENO"; then :
14418  gl_cv_header_working_stdint_h=yes
14419fi
14420rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14421  conftest.$ac_objext conftest.beam conftest.$ac_ext
14422fi
14423
14424
14425fi
14426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14427
14428fi
14429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
14430$as_echo "$gl_cv_header_working_stdint_h" >&6; }
14431  fi
14432  if test "$gl_cv_header_working_stdint_h" = yes; then
14433    STDINT_H=
14434  else
14435            for ac_header in sys/inttypes.h sys/bitypes.h
14436do :
14437  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14438ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14439if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14440  cat >>confdefs.h <<_ACEOF
14441#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14442_ACEOF
14443
14444fi
14445
14446done
14447
14448    if test $ac_cv_header_sys_inttypes_h = yes; then
14449      HAVE_SYS_INTTYPES_H=1
14450    else
14451      HAVE_SYS_INTTYPES_H=0
14452    fi
14453
14454    if test $ac_cv_header_sys_bitypes_h = yes; then
14455      HAVE_SYS_BITYPES_H=1
14456    else
14457      HAVE_SYS_BITYPES_H=0
14458    fi
14459
14460
14461
14462
14463  if test $APPLE_UNIVERSAL_BUILD = 0; then
14464
14465
14466  for gltype in ptrdiff_t size_t ; do
14467    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
14468$as_echo_n "checking for bit size of $gltype... " >&6; }
14469if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
14470  $as_echo_n "(cached) " >&6
14471else
14472  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
14473  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14474     included before <wchar.h>.  */
14475  #include <stddef.h>
14476  #include <signal.h>
14477  #if HAVE_WCHAR_H
14478  # include <stdio.h>
14479  # include <time.h>
14480  # include <wchar.h>
14481  #endif
14482
14483#include <limits.h>"; then :
14484
14485else
14486  result=unknown
14487fi
14488
14489       eval gl_cv_bitsizeof_${gltype}=\$result
14490
14491fi
14492eval ac_res=\$gl_cv_bitsizeof_${gltype}
14493	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14494$as_echo "$ac_res" >&6; }
14495    eval result=\$gl_cv_bitsizeof_${gltype}
14496    if test $result = unknown; then
14497                                                result=0
14498    fi
14499    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14500    cat >>confdefs.h <<_ACEOF
14501#define BITSIZEOF_${GLTYPE} $result
14502_ACEOF
14503
14504    eval BITSIZEOF_${GLTYPE}=\$result
14505  done
14506
14507
14508  fi
14509
14510
14511  for gltype in sig_atomic_t wchar_t wint_t ; do
14512    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
14513$as_echo_n "checking for bit size of $gltype... " >&6; }
14514if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
14515  $as_echo_n "(cached) " >&6
14516else
14517  if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
14518  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14519     included before <wchar.h>.  */
14520  #include <stddef.h>
14521  #include <signal.h>
14522  #if HAVE_WCHAR_H
14523  # include <stdio.h>
14524  # include <time.h>
14525  # include <wchar.h>
14526  #endif
14527
14528#include <limits.h>"; then :
14529
14530else
14531  result=unknown
14532fi
14533
14534       eval gl_cv_bitsizeof_${gltype}=\$result
14535
14536fi
14537eval ac_res=\$gl_cv_bitsizeof_${gltype}
14538	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14539$as_echo "$ac_res" >&6; }
14540    eval result=\$gl_cv_bitsizeof_${gltype}
14541    if test $result = unknown; then
14542                                                result=0
14543    fi
14544    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14545    cat >>confdefs.h <<_ACEOF
14546#define BITSIZEOF_${GLTYPE} $result
14547_ACEOF
14548
14549    eval BITSIZEOF_${GLTYPE}=\$result
14550  done
14551
14552
14553
14554
14555  for gltype in sig_atomic_t wchar_t wint_t ; do
14556    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
14557$as_echo_n "checking whether $gltype is signed... " >&6; }
14558if eval \${gl_cv_type_${gltype}_signed+:} false; then :
14559  $as_echo_n "(cached) " >&6
14560else
14561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14562/* end confdefs.h.  */
14563
14564  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14565     included before <wchar.h>.  */
14566  #include <stddef.h>
14567  #include <signal.h>
14568  #if HAVE_WCHAR_H
14569  # include <stdio.h>
14570  # include <time.h>
14571  # include <wchar.h>
14572  #endif
14573
14574            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
14575int
14576main ()
14577{
14578
14579  ;
14580  return 0;
14581}
14582_ACEOF
14583if ac_fn_c_try_compile "$LINENO"; then :
14584  result=yes
14585else
14586  result=no
14587fi
14588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14589       eval gl_cv_type_${gltype}_signed=\$result
14590
14591fi
14592eval ac_res=\$gl_cv_type_${gltype}_signed
14593	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14594$as_echo "$ac_res" >&6; }
14595    eval result=\$gl_cv_type_${gltype}_signed
14596    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14597    if test "$result" = yes; then
14598      cat >>confdefs.h <<_ACEOF
14599#define HAVE_SIGNED_${GLTYPE} 1
14600_ACEOF
14601
14602      eval HAVE_SIGNED_${GLTYPE}=1
14603    else
14604      eval HAVE_SIGNED_${GLTYPE}=0
14605    fi
14606  done
14607
14608
14609  gl_cv_type_ptrdiff_t_signed=yes
14610  gl_cv_type_size_t_signed=no
14611  if test $APPLE_UNIVERSAL_BUILD = 0; then
14612
14613
14614  for gltype in ptrdiff_t size_t ; do
14615    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
14616$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
14617if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
14618  $as_echo_n "(cached) " >&6
14619else
14620  eval gl_cv_type_${gltype}_suffix=no
14621       eval result=\$gl_cv_type_${gltype}_signed
14622       if test "$result" = yes; then
14623         glsufu=
14624       else
14625         glsufu=u
14626       fi
14627       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
14628         case $glsuf in
14629           '')  gltype1='int';;
14630           l)   gltype1='long int';;
14631           ll)  gltype1='long long int';;
14632           i64) gltype1='__int64';;
14633           u)   gltype1='unsigned int';;
14634           ul)  gltype1='unsigned long int';;
14635           ull) gltype1='unsigned long long int';;
14636           ui64)gltype1='unsigned __int64';;
14637         esac
14638         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639/* end confdefs.h.  */
14640
14641  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14642     included before <wchar.h>.  */
14643  #include <stddef.h>
14644  #include <signal.h>
14645  #if HAVE_WCHAR_H
14646  # include <stdio.h>
14647  # include <time.h>
14648  # include <wchar.h>
14649  #endif
14650
14651              extern $gltype foo;
14652              extern $gltype1 foo;
14653int
14654main ()
14655{
14656
14657  ;
14658  return 0;
14659}
14660_ACEOF
14661if ac_fn_c_try_compile "$LINENO"; then :
14662  eval gl_cv_type_${gltype}_suffix=\$glsuf
14663fi
14664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14665         eval result=\$gl_cv_type_${gltype}_suffix
14666         test "$result" != no && break
14667       done
14668fi
14669eval ac_res=\$gl_cv_type_${gltype}_suffix
14670	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14671$as_echo "$ac_res" >&6; }
14672    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14673    eval result=\$gl_cv_type_${gltype}_suffix
14674    test "$result" = no && result=
14675    eval ${GLTYPE}_SUFFIX=\$result
14676    cat >>confdefs.h <<_ACEOF
14677#define ${GLTYPE}_SUFFIX $result
14678_ACEOF
14679
14680  done
14681
14682
14683  fi
14684
14685
14686  for gltype in sig_atomic_t wchar_t wint_t ; do
14687    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
14688$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
14689if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
14690  $as_echo_n "(cached) " >&6
14691else
14692  eval gl_cv_type_${gltype}_suffix=no
14693       eval result=\$gl_cv_type_${gltype}_signed
14694       if test "$result" = yes; then
14695         glsufu=
14696       else
14697         glsufu=u
14698       fi
14699       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
14700         case $glsuf in
14701           '')  gltype1='int';;
14702           l)   gltype1='long int';;
14703           ll)  gltype1='long long int';;
14704           i64) gltype1='__int64';;
14705           u)   gltype1='unsigned int';;
14706           ul)  gltype1='unsigned long int';;
14707           ull) gltype1='unsigned long long int';;
14708           ui64)gltype1='unsigned __int64';;
14709         esac
14710         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14711/* end confdefs.h.  */
14712
14713  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14714     included before <wchar.h>.  */
14715  #include <stddef.h>
14716  #include <signal.h>
14717  #if HAVE_WCHAR_H
14718  # include <stdio.h>
14719  # include <time.h>
14720  # include <wchar.h>
14721  #endif
14722
14723              extern $gltype foo;
14724              extern $gltype1 foo;
14725int
14726main ()
14727{
14728
14729  ;
14730  return 0;
14731}
14732_ACEOF
14733if ac_fn_c_try_compile "$LINENO"; then :
14734  eval gl_cv_type_${gltype}_suffix=\$glsuf
14735fi
14736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14737         eval result=\$gl_cv_type_${gltype}_suffix
14738         test "$result" != no && break
14739       done
14740fi
14741eval ac_res=\$gl_cv_type_${gltype}_suffix
14742	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14743$as_echo "$ac_res" >&6; }
14744    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
14745    eval result=\$gl_cv_type_${gltype}_suffix
14746    test "$result" = no && result=
14747    eval ${GLTYPE}_SUFFIX=\$result
14748    cat >>confdefs.h <<_ACEOF
14749#define ${GLTYPE}_SUFFIX $result
14750_ACEOF
14751
14752  done
14753
14754
14755
14756          if test $BITSIZEOF_WINT_T -lt 32; then
14757    BITSIZEOF_WINT_T=32
14758  fi
14759
14760    STDINT_H=stdint.h
14761  fi
14762
14763   if test -n "$STDINT_H"; then
14764  GL_GENERATE_STDINT_H_TRUE=
14765  GL_GENERATE_STDINT_H_FALSE='#'
14766else
14767  GL_GENERATE_STDINT_H_TRUE='#'
14768  GL_GENERATE_STDINT_H_FALSE=
14769fi
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783     if test $gl_cv_have_include_next = yes; then
14784       gl_cv_next_string_h='<'string.h'>'
14785     else
14786       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
14787$as_echo_n "checking absolute name of <string.h>... " >&6; }
14788if ${gl_cv_next_string_h+:} false; then :
14789  $as_echo_n "(cached) " >&6
14790else
14791
14792               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793/* end confdefs.h.  */
14794#include <string.h>
14795
14796_ACEOF
14797                                                                                                                        case "$host_os" in
14798                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14799                 *)    gl_absname_cpp="$ac_cpp" ;;
14800               esac
14801
14802               case "$host_os" in
14803                 mingw*)
14804                                                                                                                                     gl_dirsep_regex='[/\\]'
14805                   ;;
14806                 *)
14807                   gl_dirsep_regex='\/'
14808                   ;;
14809               esac
14810                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14811
14812               gl_header_literal_regex=`echo 'string.h' \
14813                                        | sed -e "$gl_make_literal_regex_sed"`
14814               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14815                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14816                   s|^/[^/]|//&|
14817                   p
14818                   q
14819                 }'
14820                                                            gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14821                      sed -n "$gl_absolute_header_sed"`'"'
14822
14823
14824fi
14825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
14826$as_echo "$gl_cv_next_string_h" >&6; }
14827     fi
14828     NEXT_STRING_H=$gl_cv_next_string_h
14829
14830     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14831       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14832       gl_next_as_first_directive='<'string.h'>'
14833     else
14834       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14835       gl_next_as_first_directive=$gl_cv_next_string_h
14836     fi
14837     NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
14838
14839
14840
14841
14842
14843
14844    for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul      strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r      strerror_r strsignal strverscmp; do
14845    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14846    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14847$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14848if eval \${$as_gl_Symbol+:} false; then :
14849  $as_echo_n "(cached) " >&6
14850else
14851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852/* end confdefs.h.  */
14853#include <string.h>
14854
14855int
14856main ()
14857{
14858#undef $gl_func
14859  (void) $gl_func;
14860  ;
14861  return 0;
14862}
14863_ACEOF
14864if ac_fn_c_try_compile "$LINENO"; then :
14865  eval "$as_gl_Symbol=yes"
14866else
14867  eval "$as_gl_Symbol=no"
14868fi
14869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14870fi
14871eval ac_res=\$$as_gl_Symbol
14872	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14873$as_echo "$ac_res" >&6; }
14874    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
14875  cat >>confdefs.h <<_ACEOF
14876#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14877_ACEOF
14878
14879                     eval ac_cv_have_decl_$gl_func=yes
14880fi
14881      done
14882
14883
14884
14885
14886
14887
14888
14889  GNULIB_MKTIME=0;
14890  GNULIB_NANOSLEEP=0;
14891  GNULIB_STRPTIME=0;
14892  GNULIB_TIMEGM=0;
14893  GNULIB_TIME_R=0;
14894    HAVE_DECL_LOCALTIME_R=1;
14895  HAVE_NANOSLEEP=1;
14896  HAVE_STRPTIME=1;
14897  HAVE_TIMEGM=1;
14898        REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14899  REPLACE_MKTIME=GNULIB_PORTCHECK;
14900  REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14901  REPLACE_TIMEGM=GNULIB_PORTCHECK;
14902
14903
14904
14905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14906$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14907if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
14908  $as_echo_n "(cached) " >&6
14909else
14910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14911/* end confdefs.h.  */
14912#include <time.h>
14913
14914int
14915main ()
14916{
14917static struct timespec x; x.tv_sec = x.tv_nsec;
14918  ;
14919  return 0;
14920}
14921_ACEOF
14922if ac_fn_c_try_compile "$LINENO"; then :
14923  gl_cv_sys_struct_timespec_in_time_h=yes
14924else
14925  gl_cv_sys_struct_timespec_in_time_h=no
14926fi
14927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14928fi
14929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14930$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14931
14932  TIME_H_DEFINES_STRUCT_TIMESPEC=0
14933  SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14934  PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14935  if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14936    TIME_H_DEFINES_STRUCT_TIMESPEC=1
14937  else
14938    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14939$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14940if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
14941  $as_echo_n "(cached) " >&6
14942else
14943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14944/* end confdefs.h.  */
14945#include <sys/time.h>
14946
14947int
14948main ()
14949{
14950static struct timespec x; x.tv_sec = x.tv_nsec;
14951  ;
14952  return 0;
14953}
14954_ACEOF
14955if ac_fn_c_try_compile "$LINENO"; then :
14956  gl_cv_sys_struct_timespec_in_sys_time_h=yes
14957else
14958  gl_cv_sys_struct_timespec_in_sys_time_h=no
14959fi
14960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14961fi
14962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14963$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14964    if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14965      SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14966    else
14967      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14968$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14969if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
14970  $as_echo_n "(cached) " >&6
14971else
14972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14973/* end confdefs.h.  */
14974#include <pthread.h>
14975
14976int
14977main ()
14978{
14979static struct timespec x; x.tv_sec = x.tv_nsec;
14980  ;
14981  return 0;
14982}
14983_ACEOF
14984if ac_fn_c_try_compile "$LINENO"; then :
14985  gl_cv_sys_struct_timespec_in_pthread_h=yes
14986else
14987  gl_cv_sys_struct_timespec_in_pthread_h=no
14988fi
14989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14990fi
14991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14992$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14993      if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14994        PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14995      fi
14996    fi
14997  fi
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013     if test $gl_cv_have_include_next = yes; then
15014       gl_cv_next_time_h='<'time.h'>'
15015     else
15016       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15017$as_echo_n "checking absolute name of <time.h>... " >&6; }
15018if ${gl_cv_next_time_h+:} false; then :
15019  $as_echo_n "(cached) " >&6
15020else
15021
15022               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15023/* end confdefs.h.  */
15024#include <time.h>
15025
15026_ACEOF
15027                                                                                                                        case "$host_os" in
15028                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15029                 *)    gl_absname_cpp="$ac_cpp" ;;
15030               esac
15031
15032               case "$host_os" in
15033                 mingw*)
15034                                                                                                                                     gl_dirsep_regex='[/\\]'
15035                   ;;
15036                 *)
15037                   gl_dirsep_regex='\/'
15038                   ;;
15039               esac
15040                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15041
15042               gl_header_literal_regex=`echo 'time.h' \
15043                                        | sed -e "$gl_make_literal_regex_sed"`
15044               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15045                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15046                   s|^/[^/]|//&|
15047                   p
15048                   q
15049                 }'
15050                                                            gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15051                      sed -n "$gl_absolute_header_sed"`'"'
15052
15053
15054fi
15055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15056$as_echo "$gl_cv_next_time_h" >&6; }
15057     fi
15058     NEXT_TIME_H=$gl_cv_next_time_h
15059
15060     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15061       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15062       gl_next_as_first_directive='<'time.h'>'
15063     else
15064       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15065       gl_next_as_first_directive=$gl_cv_next_time_h
15066     fi
15067     NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
15078$as_echo_n "checking for wint_t... " >&6; }
15079if ${gt_cv_c_wint_t+:} false; then :
15080  $as_echo_n "(cached) " >&6
15081else
15082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083/* end confdefs.h.  */
15084#include <wchar.h>
15085       wint_t foo = (wchar_t)'\0';
15086int
15087main ()
15088{
15089
15090  ;
15091  return 0;
15092}
15093_ACEOF
15094if ac_fn_c_try_compile "$LINENO"; then :
15095  gt_cv_c_wint_t=yes
15096else
15097  gt_cv_c_wint_t=no
15098fi
15099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15100fi
15101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
15102$as_echo "$gt_cv_c_wint_t" >&6; }
15103  if test $gt_cv_c_wint_t = yes; then
15104
15105$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
15106
15107  fi
15108
15109
15110  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
15111$as_echo_n "checking for inttypes.h... " >&6; }
15112if ${gl_cv_header_inttypes_h+:} false; then :
15113  $as_echo_n "(cached) " >&6
15114else
15115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116/* end confdefs.h.  */
15117#include <sys/types.h>
15118#include <inttypes.h>
15119int
15120main ()
15121{
15122uintmax_t i = (uintmax_t) -1;
15123  ;
15124  return 0;
15125}
15126_ACEOF
15127if ac_fn_c_try_compile "$LINENO"; then :
15128  gl_cv_header_inttypes_h=yes
15129else
15130  gl_cv_header_inttypes_h=no
15131fi
15132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15133fi
15134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
15135$as_echo "$gl_cv_header_inttypes_h" >&6; }
15136  if test $gl_cv_header_inttypes_h = yes; then
15137
15138cat >>confdefs.h <<_ACEOF
15139#define HAVE_INTTYPES_H_WITH_UINTMAX 1
15140_ACEOF
15141
15142  fi
15143
15144
15145  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
15146$as_echo_n "checking for stdint.h... " >&6; }
15147if ${gl_cv_header_stdint_h+:} false; then :
15148  $as_echo_n "(cached) " >&6
15149else
15150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15151/* end confdefs.h.  */
15152#include <sys/types.h>
15153#include <stdint.h>
15154int
15155main ()
15156{
15157uintmax_t i = (uintmax_t) -1;
15158  ;
15159  return 0;
15160}
15161_ACEOF
15162if ac_fn_c_try_compile "$LINENO"; then :
15163  gl_cv_header_stdint_h=yes
15164else
15165  gl_cv_header_stdint_h=no
15166fi
15167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15168fi
15169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
15170$as_echo "$gl_cv_header_stdint_h" >&6; }
15171  if test $gl_cv_header_stdint_h = yes; then
15172
15173cat >>confdefs.h <<_ACEOF
15174#define HAVE_STDINT_H_WITH_UINTMAX 1
15175_ACEOF
15176
15177  fi
15178
15179
15180
15181
15182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
15183$as_echo_n "checking for intmax_t... " >&6; }
15184if ${gt_cv_c_intmax_t+:} false; then :
15185  $as_echo_n "(cached) " >&6
15186else
15187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15188/* end confdefs.h.  */
15189
15190#include <stddef.h>
15191#include <stdlib.h>
15192#if HAVE_STDINT_H_WITH_UINTMAX
15193#include <stdint.h>
15194#endif
15195#if HAVE_INTTYPES_H_WITH_UINTMAX
15196#include <inttypes.h>
15197#endif
15198
15199int
15200main ()
15201{
15202intmax_t x = -1; return !x;
15203  ;
15204  return 0;
15205}
15206_ACEOF
15207if ac_fn_c_try_compile "$LINENO"; then :
15208  gt_cv_c_intmax_t=yes
15209else
15210  gt_cv_c_intmax_t=no
15211fi
15212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15213fi
15214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
15215$as_echo "$gt_cv_c_intmax_t" >&6; }
15216  if test $gt_cv_c_intmax_t = yes; then
15217
15218$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
15219
15220  else
15221
15222    test $ac_cv_type_long_long_int = yes \
15223      && ac_type='long long' \
15224      || ac_type='long'
15225
15226cat >>confdefs.h <<_ACEOF
15227#define intmax_t $ac_type
15228_ACEOF
15229
15230  fi
15231
15232
15233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
15234$as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
15235if ${gl_cv_cc_double_expbit0+:} false; then :
15236  $as_echo_n "(cached) " >&6
15237else
15238
15239      if test "$cross_compiling" = yes; then :
15240
15241                                                                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15242/* end confdefs.h.  */
15243
15244#if defined arm || defined __arm || defined __arm__
15245  mixed_endianness
15246#endif
15247
15248_ACEOF
15249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15250  $EGREP "mixed_endianness" >/dev/null 2>&1; then :
15251  gl_cv_cc_double_expbit0="unknown"
15252else
15253
15254                                                         :
15255if ${ac_cv_c_bigendian+:} false; then :
15256  $as_echo_n "(cached) " >&6
15257else
15258  ac_cv_c_bigendian=unknown
15259    # See if we're dealing with a universal compiler.
15260    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261/* end confdefs.h.  */
15262#ifndef __APPLE_CC__
15263	       not a universal capable compiler
15264	     #endif
15265	     typedef int dummy;
15266
15267_ACEOF
15268if ac_fn_c_try_compile "$LINENO"; then :
15269
15270	# Check for potential -arch flags.  It is not universal unless
15271	# there are at least two -arch flags with different values.
15272	ac_arch=
15273	ac_prev=
15274	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15275	 if test -n "$ac_prev"; then
15276	   case $ac_word in
15277	     i?86 | x86_64 | ppc | ppc64)
15278	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15279		 ac_arch=$ac_word
15280	       else
15281		 ac_cv_c_bigendian=universal
15282		 break
15283	       fi
15284	       ;;
15285	   esac
15286	   ac_prev=
15287	 elif test "x$ac_word" = "x-arch"; then
15288	   ac_prev=arch
15289	 fi
15290       done
15291fi
15292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15293    if test $ac_cv_c_bigendian = unknown; then
15294      # See if sys/param.h defines the BYTE_ORDER macro.
15295      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296/* end confdefs.h.  */
15297#include <sys/types.h>
15298	     #include <sys/param.h>
15299
15300int
15301main ()
15302{
15303#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15304		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15305		     && LITTLE_ENDIAN)
15306	      bogus endian macros
15307	     #endif
15308
15309  ;
15310  return 0;
15311}
15312_ACEOF
15313if ac_fn_c_try_compile "$LINENO"; then :
15314  # It does; now see whether it defined to BIG_ENDIAN or not.
15315	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316/* end confdefs.h.  */
15317#include <sys/types.h>
15318		#include <sys/param.h>
15319
15320int
15321main ()
15322{
15323#if BYTE_ORDER != BIG_ENDIAN
15324		 not big endian
15325		#endif
15326
15327  ;
15328  return 0;
15329}
15330_ACEOF
15331if ac_fn_c_try_compile "$LINENO"; then :
15332  ac_cv_c_bigendian=yes
15333else
15334  ac_cv_c_bigendian=no
15335fi
15336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15337fi
15338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15339    fi
15340    if test $ac_cv_c_bigendian = unknown; then
15341      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15342      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343/* end confdefs.h.  */
15344#include <limits.h>
15345
15346int
15347main ()
15348{
15349#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15350	      bogus endian macros
15351	     #endif
15352
15353  ;
15354  return 0;
15355}
15356_ACEOF
15357if ac_fn_c_try_compile "$LINENO"; then :
15358  # It does; now see whether it defined to _BIG_ENDIAN or not.
15359	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360/* end confdefs.h.  */
15361#include <limits.h>
15362
15363int
15364main ()
15365{
15366#ifndef _BIG_ENDIAN
15367		 not big endian
15368		#endif
15369
15370  ;
15371  return 0;
15372}
15373_ACEOF
15374if ac_fn_c_try_compile "$LINENO"; then :
15375  ac_cv_c_bigendian=yes
15376else
15377  ac_cv_c_bigendian=no
15378fi
15379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15380fi
15381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382    fi
15383    if test $ac_cv_c_bigendian = unknown; then
15384      # Compile a test program.
15385      if test "$cross_compiling" = yes; then :
15386  # Try to guess by grepping values from an object file.
15387	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388/* end confdefs.h.  */
15389short int ascii_mm[] =
15390		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15391		short int ascii_ii[] =
15392		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15393		int use_ascii (int i) {
15394		  return ascii_mm[i] + ascii_ii[i];
15395		}
15396		short int ebcdic_ii[] =
15397		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15398		short int ebcdic_mm[] =
15399		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15400		int use_ebcdic (int i) {
15401		  return ebcdic_mm[i] + ebcdic_ii[i];
15402		}
15403		extern int foo;
15404
15405int
15406main ()
15407{
15408return use_ascii (foo) == use_ebcdic (foo);
15409  ;
15410  return 0;
15411}
15412_ACEOF
15413if ac_fn_c_try_compile "$LINENO"; then :
15414  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15415	      ac_cv_c_bigendian=yes
15416	    fi
15417	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15418	      if test "$ac_cv_c_bigendian" = unknown; then
15419		ac_cv_c_bigendian=no
15420	      else
15421		# finding both strings is unlikely to happen, but who knows?
15422		ac_cv_c_bigendian=unknown
15423	      fi
15424	    fi
15425fi
15426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15427else
15428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15429/* end confdefs.h.  */
15430$ac_includes_default
15431int
15432main ()
15433{
15434
15435	     /* Are we little or big endian?  From Harbison&Steele.  */
15436	     union
15437	     {
15438	       long int l;
15439	       char c[sizeof (long int)];
15440	     } u;
15441	     u.l = 1;
15442	     return u.c[sizeof (long int) - 1] == 1;
15443
15444  ;
15445  return 0;
15446}
15447_ACEOF
15448if ac_fn_c_try_run "$LINENO"; then :
15449  ac_cv_c_bigendian=no
15450else
15451  ac_cv_c_bigendian=yes
15452fi
15453rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15454  conftest.$ac_objext conftest.beam conftest.$ac_ext
15455fi
15456
15457    fi
15458fi
15459:
15460 case $ac_cv_c_bigendian in #(
15461   yes)
15462     gl_cv_cc_double_expbit0="word 0 bit 20";; #(
15463   no)
15464     gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
15465   universal)
15466
15467$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15468
15469     ;; #(
15470   *)
15471     gl_cv_cc_double_expbit0="unknown" ;;
15472 esac
15473
15474
15475fi
15476rm -f conftest*
15477
15478
15479else
15480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481/* end confdefs.h.  */
15482
15483#include <float.h>
15484#include <stddef.h>
15485#include <stdio.h>
15486#include <string.h>
15487#define NWORDS \
15488  ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
15489typedef union { double value; unsigned int word[NWORDS]; } memory_double;
15490static unsigned int ored_words[NWORDS];
15491static unsigned int anded_words[NWORDS];
15492static void add_to_ored_words (double x)
15493{
15494  memory_double m;
15495  size_t i;
15496  /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
15497  memset (&m, 0, sizeof (memory_double));
15498  m.value = x;
15499  for (i = 0; i < NWORDS; i++)
15500    {
15501      ored_words[i] |= m.word[i];
15502      anded_words[i] &= m.word[i];
15503    }
15504}
15505int main ()
15506{
15507  size_t j;
15508  FILE *fp = fopen ("conftest.out", "w");
15509  if (fp == NULL)
15510    return 1;
15511  for (j = 0; j < NWORDS; j++)
15512    anded_words[j] = ~ (unsigned int) 0;
15513  add_to_ored_words (0.25);
15514  add_to_ored_words (0.5);
15515  add_to_ored_words (1.0);
15516  add_to_ored_words (2.0);
15517  add_to_ored_words (4.0);
15518  /* Remove bits that are common (e.g. if representation of the first mantissa
15519     bit is explicit).  */
15520  for (j = 0; j < NWORDS; j++)
15521    ored_words[j] &= ~anded_words[j];
15522  /* Now find the nonzero word.  */
15523  for (j = 0; j < NWORDS; j++)
15524    if (ored_words[j] != 0)
15525      break;
15526  if (j < NWORDS)
15527    {
15528      size_t i;
15529      for (i = j + 1; i < NWORDS; i++)
15530        if (ored_words[i] != 0)
15531          {
15532            fprintf (fp, "unknown");
15533            return (fclose (fp) != 0);
15534          }
15535      for (i = 0; ; i++)
15536        if ((ored_words[j] >> i) & 1)
15537          {
15538            fprintf (fp, "word %d bit %d", (int) j, (int) i);
15539            return (fclose (fp) != 0);
15540          }
15541    }
15542  fprintf (fp, "unknown");
15543  return (fclose (fp) != 0);
15544}
15545
15546_ACEOF
15547if ac_fn_c_try_run "$LINENO"; then :
15548  gl_cv_cc_double_expbit0=`cat conftest.out`
15549else
15550  gl_cv_cc_double_expbit0="unknown"
15551fi
15552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15553  conftest.$ac_objext conftest.beam conftest.$ac_ext
15554fi
15555
15556      rm -f conftest.out
15557
15558fi
15559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
15560$as_echo "$gl_cv_cc_double_expbit0" >&6; }
15561  case "$gl_cv_cc_double_expbit0" in
15562    word*bit*)
15563      word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
15564      bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
15565
15566cat >>confdefs.h <<_ACEOF
15567#define DBL_EXPBIT0_WORD $word
15568_ACEOF
15569
15570
15571cat >>confdefs.h <<_ACEOF
15572#define DBL_EXPBIT0_BIT $bit
15573_ACEOF
15574
15575      ;;
15576  esac
15577
15578
15579
15580
15581
15582
15583  for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
15584do :
15585  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15586ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15587if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15588  cat >>confdefs.h <<_ACEOF
15589#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15590_ACEOF
15591
15592fi
15593done
15594
15595      ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
15596"
15597if test "x$ac_cv_have_decl__snprintf" = xyes; then :
15598  ac_have_decl=1
15599else
15600  ac_have_decl=0
15601fi
15602
15603cat >>confdefs.h <<_ACEOF
15604#define HAVE_DECL__SNPRINTF $ac_have_decl
15605_ACEOF
15606
15607
15608
15609  case "$gl_cv_func_snprintf_retval_c99" in
15610    *yes)
15611
15612$as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
15613
15614      ;;
15615  esac
15616
15617
15618
15619
15620  GNULIB_ISWBLANK=0;
15621  GNULIB_WCTYPE=0;
15622  GNULIB_ISWCTYPE=0;
15623  GNULIB_WCTRANS=0;
15624  GNULIB_TOWCTRANS=0;
15625    HAVE_ISWBLANK=1;
15626  HAVE_WCTYPE_T=1;
15627  HAVE_WCTRANS_T=1;
15628  REPLACE_ISWBLANK=0;
15629
15630
15631
15632
15633
15634
15635   if true; then
15636  GL_COND_LIBTOOL_TRUE=
15637  GL_COND_LIBTOOL_FALSE='#'
15638else
15639  GL_COND_LIBTOOL_TRUE='#'
15640  GL_COND_LIBTOOL_FALSE=
15641fi
15642
15643  gl_cond_libtool=true
15644  gl_m4_base='config/gnulib'
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654  gl_source_base='gnulib'
15655
15656
15657  if test $ac_cv_func_alloca_works = no; then
15658    :
15659  fi
15660
15661  # Define an additional variable used in the Makefile substitution.
15662  if test $ac_cv_working_alloca_h = yes; then
15663    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
15664$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
15665if ${gl_cv_rpl_alloca+:} false; then :
15666  $as_echo_n "(cached) " >&6
15667else
15668
15669      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670/* end confdefs.h.  */
15671
15672#if defined __GNUC__ || defined _AIX || defined _MSC_VER
15673        Need own alloca
15674#endif
15675
15676_ACEOF
15677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15678  $EGREP "Need own alloca" >/dev/null 2>&1; then :
15679  gl_cv_rpl_alloca=yes
15680else
15681  gl_cv_rpl_alloca=no
15682fi
15683rm -f conftest*
15684
15685
15686fi
15687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
15688$as_echo "$gl_cv_rpl_alloca" >&6; }
15689    if test $gl_cv_rpl_alloca = yes; then
15690
15691$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15692
15693      ALLOCA_H=alloca.h
15694    else
15695                  ALLOCA_H=
15696    fi
15697  else
15698    ALLOCA_H=alloca.h
15699  fi
15700
15701   if test -n "$ALLOCA_H"; then
15702  GL_GENERATE_ALLOCA_H_TRUE=
15703  GL_GENERATE_ALLOCA_H_FALSE='#'
15704else
15705  GL_GENERATE_ALLOCA_H_TRUE='#'
15706  GL_GENERATE_ALLOCA_H_FALSE=
15707fi
15708
15709
15710
15711
15712
15713
15714  if test $ac_cv_header_arpa_inet_h = yes; then
15715    HAVE_ARPA_INET_H=1
15716  else
15717    HAVE_ARPA_INET_H=0
15718  fi
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729     if test $gl_cv_have_include_next = yes; then
15730       gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
15731     else
15732       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
15733$as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
15734if ${gl_cv_next_arpa_inet_h+:} false; then :
15735  $as_echo_n "(cached) " >&6
15736else
15737
15738             if test $ac_cv_header_arpa_inet_h = yes; then
15739
15740
15741               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15742/* end confdefs.h.  */
15743#include <arpa/inet.h>
15744
15745_ACEOF
15746                                                                                                                        case "$host_os" in
15747                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15748                 *)    gl_absname_cpp="$ac_cpp" ;;
15749               esac
15750
15751               case "$host_os" in
15752                 mingw*)
15753                                                                                                                                     gl_dirsep_regex='[/\\]'
15754                   ;;
15755                 *)
15756                   gl_dirsep_regex='\/'
15757                   ;;
15758               esac
15759                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15760
15761               gl_header_literal_regex=`echo 'arpa/inet.h' \
15762                                        | sed -e "$gl_make_literal_regex_sed"`
15763               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15764                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15765                   s|^/[^/]|//&|
15766                   p
15767                   q
15768                 }'
15769                                                            gl_cv_next_arpa_inet_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15770                      sed -n "$gl_absolute_header_sed"`'"'
15771          else
15772               gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
15773             fi
15774
15775
15776fi
15777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
15778$as_echo "$gl_cv_next_arpa_inet_h" >&6; }
15779     fi
15780     NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
15781
15782     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15783       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15784       gl_next_as_first_directive='<'arpa/inet.h'>'
15785     else
15786       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15787       gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
15788     fi
15789     NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
15790
15791
15792
15793
15794
15795
15796
15797
15798    for gl_func in inet_ntop inet_pton; do
15799    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15800    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15801$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15802if eval \${$as_gl_Symbol+:} false; then :
15803  $as_echo_n "(cached) " >&6
15804else
15805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15806/* end confdefs.h.  */
15807
15808/* On some systems, this header is not self-consistent.  */
15809#if !(defined __GLIBC__ || defined __UCLIBC__)
15810# include <sys/socket.h>
15811#endif
15812#ifdef __TANDEM
15813# include <netdb.h>
15814#endif
15815#include <arpa/inet.h>
15816
15817int
15818main ()
15819{
15820#undef $gl_func
15821  (void) $gl_func;
15822  ;
15823  return 0;
15824}
15825_ACEOF
15826if ac_fn_c_try_compile "$LINENO"; then :
15827  eval "$as_gl_Symbol=yes"
15828else
15829  eval "$as_gl_Symbol=no"
15830fi
15831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15832fi
15833eval ac_res=\$$as_gl_Symbol
15834	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15835$as_echo "$ac_res" >&6; }
15836    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15837  cat >>confdefs.h <<_ACEOF
15838#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15839_ACEOF
15840
15841                     eval ac_cv_have_decl_$gl_func=yes
15842fi
15843      done
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858  if test $ac_cv_func_btowc = no; then
15859    HAVE_BTOWC=0
15860  else
15861
15862
15863
15864
15865        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
15866$as_echo_n "checking whether btowc(0) is correct... " >&6; }
15867if ${gl_cv_func_btowc_nul+:} false; then :
15868  $as_echo_n "(cached) " >&6
15869else
15870
15871        if test "$cross_compiling" = yes; then :
15872
15873           case "$host_os" in
15874                      # Guess no on Cygwin.
15875             cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
15876                      # Guess yes otherwise.
15877             *)       gl_cv_func_btowc_nul="guessing yes" ;;
15878           esac
15879
15880else
15881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882/* end confdefs.h.  */
15883
15884#include <string.h>
15885/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15886   <wchar.h>.
15887   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15888   included before <wchar.h>.  */
15889#include <stddef.h>
15890#include <stdio.h>
15891#include <time.h>
15892#include <wchar.h>
15893int main ()
15894{
15895  if (btowc ('\0') != 0)
15896    return 1;
15897  return 0;
15898}
15899_ACEOF
15900if ac_fn_c_try_run "$LINENO"; then :
15901  gl_cv_func_btowc_nul=yes
15902else
15903  gl_cv_func_btowc_nul=no
15904fi
15905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15906  conftest.$ac_objext conftest.beam conftest.$ac_ext
15907fi
15908
15909
15910fi
15911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
15912$as_echo "$gl_cv_func_btowc_nul" >&6; }
15913
15914        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
15915$as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
15916if ${gl_cv_func_btowc_eof+:} false; then :
15917  $as_echo_n "(cached) " >&6
15918else
15919
15920                        case "$host_os" in
15921                 # Guess no on IRIX.
15922          irix*) gl_cv_func_btowc_eof="guessing no" ;;
15923                 # Guess yes otherwise.
15924          *)     gl_cv_func_btowc_eof="guessing yes" ;;
15925        esac
15926        if test $LOCALE_FR != none; then
15927          if test "$cross_compiling" = yes; then :
15928  :
15929else
15930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931/* end confdefs.h.  */
15932
15933#include <locale.h>
15934#include <string.h>
15935/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15936   <wchar.h>.
15937   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15938   included before <wchar.h>.  */
15939#include <stddef.h>
15940#include <stdio.h>
15941#include <time.h>
15942#include <wchar.h>
15943int main ()
15944{
15945  if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
15946    {
15947      if (btowc (EOF) != WEOF)
15948        return 1;
15949    }
15950  return 0;
15951}
15952_ACEOF
15953if ac_fn_c_try_run "$LINENO"; then :
15954  gl_cv_func_btowc_eof=yes
15955else
15956  gl_cv_func_btowc_eof=no
15957fi
15958rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15959  conftest.$ac_objext conftest.beam conftest.$ac_ext
15960fi
15961
15962        fi
15963
15964fi
15965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
15966$as_echo "$gl_cv_func_btowc_eof" >&6; }
15967
15968    case "$gl_cv_func_btowc_nul" in
15969      *yes) ;;
15970      *) REPLACE_BTOWC=1 ;;
15971    esac
15972    case "$gl_cv_func_btowc_eof" in
15973      *yes) ;;
15974      *) REPLACE_BTOWC=1 ;;
15975    esac
15976  fi
15977
15978  if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
15979
15980
15981
15982
15983
15984
15985
15986
15987  gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
15988
15989
15990  :
15991
15992  fi
15993
15994
15995
15996
15997
15998          GNULIB_BTOWC=1
15999
16000
16001
16002
16003
16004$as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
16005
16006
16007
16008
16009          if test "x$datarootdir" = x; then
16010    datarootdir='${datadir}'
16011
16012  fi
16013    if test "x$docdir" = x; then
16014    docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
16015
16016  fi
16017    if test "x$htmldir" = x; then
16018    htmldir='${docdir}'
16019
16020  fi
16021  if test "x$dvidir" = x; then
16022    dvidir='${docdir}'
16023
16024  fi
16025  if test "x$pdfdir" = x; then
16026    pdfdir='${docdir}'
16027
16028  fi
16029  if test "x$psdir" = x; then
16030    psdir='${docdir}'
16031
16032  fi
16033  if test "x$lispdir" = x; then
16034    lispdir='${datarootdir}/emacs/site-lisp'
16035
16036  fi
16037  if test "x$localedir" = x; then
16038    localedir='${datarootdir}/locale'
16039
16040  fi
16041
16042      pkglibexecdir='${libexecdir}/${PACKAGE}'
16043
16044
16045
16046
16047
16048
16049
16050
16051          GNULIB_ENVIRON=1
16052
16053
16054
16055
16056
16057$as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067  for ac_func in euidaccess
16068do :
16069  ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
16070if test "x$ac_cv_func_euidaccess" = xyes; then :
16071  cat >>confdefs.h <<_ACEOF
16072#define HAVE_EUIDACCESS 1
16073_ACEOF
16074
16075fi
16076done
16077
16078  if test $ac_cv_func_euidaccess = no; then
16079    HAVE_EUIDACCESS=0
16080  fi
16081
16082  if test $HAVE_EUIDACCESS = 0; then
16083
16084
16085
16086
16087
16088
16089
16090
16091  gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
16092
16093
16094
16095    for ac_header in libgen.h
16096do :
16097  ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
16098if test "x$ac_cv_header_libgen_h" = xyes; then :
16099  cat >>confdefs.h <<_ACEOF
16100#define HAVE_LIBGEN_H 1
16101_ACEOF
16102
16103fi
16104
16105done
16106
16107
16108        ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
16109if test "x$ac_cv_func_getgroups" = xyes; then :
16110
16111fi
16112
16113
16114  # If we don't yet have getgroups, see if it's in -lbsd.
16115  # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
16116  ac_save_LIBS=$LIBS
16117  if test $ac_cv_func_getgroups = no; then
16118    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
16119$as_echo_n "checking for getgroups in -lbsd... " >&6; }
16120if ${ac_cv_lib_bsd_getgroups+:} false; then :
16121  $as_echo_n "(cached) " >&6
16122else
16123  ac_check_lib_save_LIBS=$LIBS
16124LIBS="-lbsd  $LIBS"
16125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126/* end confdefs.h.  */
16127
16128/* Override any GCC internal prototype to avoid an error.
16129   Use char because int might match the return type of a GCC
16130   builtin and then its argument prototype would still apply.  */
16131#ifdef __cplusplus
16132extern "C"
16133#endif
16134char getgroups ();
16135int
16136main ()
16137{
16138return getgroups ();
16139  ;
16140  return 0;
16141}
16142_ACEOF
16143if ac_fn_c_try_link "$LINENO"; then :
16144  ac_cv_lib_bsd_getgroups=yes
16145else
16146  ac_cv_lib_bsd_getgroups=no
16147fi
16148rm -f core conftest.err conftest.$ac_objext \
16149    conftest$ac_exeext conftest.$ac_ext
16150LIBS=$ac_check_lib_save_LIBS
16151fi
16152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
16153$as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
16154if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
16155  GETGROUPS_LIB=-lbsd
16156fi
16157
16158  fi
16159
16160  # Run the program to test the functionality of the system-supplied
16161  # getgroups function only if there is such a function.
16162  if test $ac_cv_func_getgroups = yes; then
16163    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
16164$as_echo_n "checking for working getgroups... " >&6; }
16165if ${ac_cv_func_getgroups_works+:} false; then :
16166  $as_echo_n "(cached) " >&6
16167else
16168  if test "$cross_compiling" = yes; then :
16169  case "$host_os" in # ((
16170                    # Guess yes on glibc systems.
16171            *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
16172                    # If we don't know, assume the worst.
16173            *)      ac_cv_func_getgroups_works="guessing no" ;;
16174          esac
16175
16176else
16177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178/* end confdefs.h.  */
16179$ac_includes_default
16180int
16181main ()
16182{
16183/* On Ultrix 4.3, getgroups (0, 0) always fails.  */
16184              return getgroups (0, 0) == -1;
16185  ;
16186  return 0;
16187}
16188
16189_ACEOF
16190if ac_fn_c_try_run "$LINENO"; then :
16191  ac_cv_func_getgroups_works=yes
16192else
16193  ac_cv_func_getgroups_works=no
16194fi
16195rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16196  conftest.$ac_objext conftest.beam conftest.$ac_ext
16197fi
16198
16199
16200fi
16201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
16202$as_echo "$ac_cv_func_getgroups_works" >&6; }
16203  else
16204    ac_cv_func_getgroups_works=no
16205  fi
16206  case "$ac_cv_func_getgroups_works" in
16207    *yes)
16208
16209$as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
16210
16211      ;;
16212  esac
16213  LIBS=$ac_save_LIBS
16214
16215
16216  # Solaris 9 and 10 need -lgen to get the eaccess function.
16217  # Save and restore LIBS so -lgen isn't added to it.  Otherwise, *all*
16218  # programs in the package would end up linked with that potentially-shared
16219  # library, inducing unnecessary run-time overhead.
16220  LIB_EACCESS=
16221
16222  gl_saved_libs=$LIBS
16223    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
16224$as_echo_n "checking for library containing eaccess... " >&6; }
16225if ${ac_cv_search_eaccess+:} false; then :
16226  $as_echo_n "(cached) " >&6
16227else
16228  ac_func_search_save_LIBS=$LIBS
16229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230/* end confdefs.h.  */
16231
16232/* Override any GCC internal prototype to avoid an error.
16233   Use char because int might match the return type of a GCC
16234   builtin and then its argument prototype would still apply.  */
16235#ifdef __cplusplus
16236extern "C"
16237#endif
16238char eaccess ();
16239int
16240main ()
16241{
16242return eaccess ();
16243  ;
16244  return 0;
16245}
16246_ACEOF
16247for ac_lib in '' gen; do
16248  if test -z "$ac_lib"; then
16249    ac_res="none required"
16250  else
16251    ac_res=-l$ac_lib
16252    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16253  fi
16254  if ac_fn_c_try_link "$LINENO"; then :
16255  ac_cv_search_eaccess=$ac_res
16256fi
16257rm -f core conftest.err conftest.$ac_objext \
16258    conftest$ac_exeext
16259  if ${ac_cv_search_eaccess+:} false; then :
16260  break
16261fi
16262done
16263if ${ac_cv_search_eaccess+:} false; then :
16264
16265else
16266  ac_cv_search_eaccess=no
16267fi
16268rm conftest.$ac_ext
16269LIBS=$ac_func_search_save_LIBS
16270fi
16271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
16272$as_echo "$ac_cv_search_eaccess" >&6; }
16273ac_res=$ac_cv_search_eaccess
16274if test "$ac_res" != no; then :
16275  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16276  test "$ac_cv_search_eaccess" = "none required" ||
16277                    LIB_EACCESS=$ac_cv_search_eaccess
16278fi
16279
16280    for ac_func in eaccess
16281do :
16282  ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
16283if test "x$ac_cv_func_eaccess" = xyes; then :
16284  cat >>confdefs.h <<_ACEOF
16285#define HAVE_EACCESS 1
16286_ACEOF
16287
16288fi
16289done
16290
16291  LIBS=$gl_saved_libs
16292
16293  fi
16294
16295
16296
16297
16298
16299          GNULIB_EUIDACCESS=1
16300
16301
16302
16303
16304
16305$as_echo "#define GNULIB_TEST_EUIDACCESS 1" >>confdefs.h
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321     if test $gl_cv_have_include_next = yes; then
16322       gl_cv_next_fcntl_h='<'fcntl.h'>'
16323     else
16324       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
16325$as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
16326if ${gl_cv_next_fcntl_h+:} false; then :
16327  $as_echo_n "(cached) " >&6
16328else
16329
16330               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16331/* end confdefs.h.  */
16332#include <fcntl.h>
16333
16334_ACEOF
16335                                                                                                                        case "$host_os" in
16336                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16337                 *)    gl_absname_cpp="$ac_cpp" ;;
16338               esac
16339
16340               case "$host_os" in
16341                 mingw*)
16342                                                                                                                                     gl_dirsep_regex='[/\\]'
16343                   ;;
16344                 *)
16345                   gl_dirsep_regex='\/'
16346                   ;;
16347               esac
16348                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16349
16350               gl_header_literal_regex=`echo 'fcntl.h' \
16351                                        | sed -e "$gl_make_literal_regex_sed"`
16352               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16353                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16354                   s|^/[^/]|//&|
16355                   p
16356                   q
16357                 }'
16358                                                            gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16359                      sed -n "$gl_absolute_header_sed"`'"'
16360
16361
16362fi
16363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
16364$as_echo "$gl_cv_next_fcntl_h" >&6; }
16365     fi
16366     NEXT_FCNTL_H=$gl_cv_next_fcntl_h
16367
16368     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16369       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16370       gl_next_as_first_directive='<'fcntl.h'>'
16371     else
16372       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16373       gl_next_as_first_directive=$gl_cv_next_fcntl_h
16374     fi
16375     NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386    for gl_func in fcntl openat; do
16387    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16388    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16389$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16390if eval \${$as_gl_Symbol+:} false; then :
16391  $as_echo_n "(cached) " >&6
16392else
16393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16394/* end confdefs.h.  */
16395#include <fcntl.h>
16396
16397int
16398main ()
16399{
16400#undef $gl_func
16401  (void) $gl_func;
16402  ;
16403  return 0;
16404}
16405_ACEOF
16406if ac_fn_c_try_compile "$LINENO"; then :
16407  eval "$as_gl_Symbol=yes"
16408else
16409  eval "$as_gl_Symbol=no"
16410fi
16411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412fi
16413eval ac_res=\$$as_gl_Symbol
16414	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16415$as_echo "$ac_res" >&6; }
16416    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
16417  cat >>confdefs.h <<_ACEOF
16418#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16419_ACEOF
16420
16421                     eval ac_cv_have_decl_$gl_func=yes
16422fi
16423      done
16424
16425
16426
16427
16428
16429  FLOAT_H=
16430  REPLACE_FLOAT_LDBL=0
16431  case "$host_os" in
16432    aix* | beos* | openbsd* | mirbsd* | irix*)
16433      FLOAT_H=float.h
16434      ;;
16435    freebsd*)
16436      case "$host_cpu" in
16437        i[34567]86 )
16438          FLOAT_H=float.h
16439          ;;
16440        x86_64 )
16441          # On x86_64 systems, the C compiler may still be generating
16442          # 32-bit code.
16443          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16444/* end confdefs.h.  */
16445#if defined __LP64__ || defined __x86_64__ || defined __amd64__
16446             yes
16447             #endif
16448_ACEOF
16449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16450  $EGREP "yes" >/dev/null 2>&1; then :
16451
16452else
16453  FLOAT_H=float.h
16454fi
16455rm -f conftest*
16456
16457          ;;
16458      esac
16459      ;;
16460    linux*)
16461      case "$host_cpu" in
16462        powerpc*)
16463          FLOAT_H=float.h
16464          ;;
16465      esac
16466      ;;
16467  esac
16468  case "$host_os" in
16469    aix* | freebsd* | linux*)
16470      if test -n "$FLOAT_H"; then
16471        REPLACE_FLOAT_LDBL=1
16472      fi
16473      ;;
16474  esac
16475
16476    REPLACE_ITOLD=0
16477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
16478$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
16479if ${gl_cv_func_itold_works+:} false; then :
16480  $as_echo_n "(cached) " >&6
16481else
16482
16483      if test "$cross_compiling" = yes; then :
16484  case "$host" in
16485           sparc*-*-linux*)
16486             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487/* end confdefs.h.  */
16488#if defined __LP64__ || defined __arch64__
16489                yes
16490                #endif
16491_ACEOF
16492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16493  $EGREP "yes" >/dev/null 2>&1; then :
16494  gl_cv_func_itold_works="guessing no"
16495else
16496  gl_cv_func_itold_works="guessing yes"
16497fi
16498rm -f conftest*
16499
16500             ;;
16501           *) gl_cv_func_itold_works="guessing yes" ;;
16502         esac
16503
16504else
16505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506/* end confdefs.h.  */
16507
16508int i = -1;
16509volatile long double ld;
16510int main ()
16511{
16512  ld += i * 1.0L;
16513  if (ld > 0)
16514    return 1;
16515  return 0;
16516}
16517_ACEOF
16518if ac_fn_c_try_run "$LINENO"; then :
16519  gl_cv_func_itold_works=yes
16520else
16521  gl_cv_func_itold_works=no
16522fi
16523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16524  conftest.$ac_objext conftest.beam conftest.$ac_ext
16525fi
16526
16527
16528fi
16529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
16530$as_echo "$gl_cv_func_itold_works" >&6; }
16531  case "$gl_cv_func_itold_works" in
16532    *no)
16533      REPLACE_ITOLD=1
16534                  FLOAT_H=float.h
16535      ;;
16536  esac
16537
16538  if test -n "$FLOAT_H"; then
16539
16540
16541
16542
16543
16544
16545
16546
16547     if test $gl_cv_have_include_next = yes; then
16548       gl_cv_next_float_h='<'float.h'>'
16549     else
16550       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
16551$as_echo_n "checking absolute name of <float.h>... " >&6; }
16552if ${gl_cv_next_float_h+:} false; then :
16553  $as_echo_n "(cached) " >&6
16554else
16555
16556               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557/* end confdefs.h.  */
16558#include <float.h>
16559
16560_ACEOF
16561                                                                                                                        case "$host_os" in
16562                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16563                 *)    gl_absname_cpp="$ac_cpp" ;;
16564               esac
16565
16566               case "$host_os" in
16567                 mingw*)
16568                                                                                                                                     gl_dirsep_regex='[/\\]'
16569                   ;;
16570                 *)
16571                   gl_dirsep_regex='\/'
16572                   ;;
16573               esac
16574                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16575
16576               gl_header_literal_regex=`echo 'float.h' \
16577                                        | sed -e "$gl_make_literal_regex_sed"`
16578               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16579                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16580                   s|^/[^/]|//&|
16581                   p
16582                   q
16583                 }'
16584                                                            gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16585                      sed -n "$gl_absolute_header_sed"`'"'
16586
16587
16588fi
16589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
16590$as_echo "$gl_cv_next_float_h" >&6; }
16591     fi
16592     NEXT_FLOAT_H=$gl_cv_next_float_h
16593
16594     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16595       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16596       gl_next_as_first_directive='<'float.h'>'
16597     else
16598       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16599       gl_next_as_first_directive=$gl_cv_next_float_h
16600     fi
16601     NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
16602
16603
16604
16605
16606  fi
16607
16608   if test -n "$FLOAT_H"; then
16609  GL_GENERATE_FLOAT_H_TRUE=
16610  GL_GENERATE_FLOAT_H_FALSE='#'
16611else
16612  GL_GENERATE_FLOAT_H_TRUE='#'
16613  GL_GENERATE_FLOAT_H_FALSE=
16614fi
16615
16616
16617
16618  if test $REPLACE_FLOAT_LDBL = 1; then
16619
16620
16621
16622
16623
16624
16625
16626
16627  gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
16628
16629  fi
16630  if test $REPLACE_ITOLD = 1; then
16631
16632
16633
16634
16635
16636
16637
16638
16639  gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
16640
16641  fi
16642
16643
16644
16645    if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
16646    REPLACE_FSEEK=1
16647  fi
16648
16649  if test $REPLACE_FSEEK = 1; then
16650
16651
16652
16653
16654
16655
16656
16657
16658  gl_LIBOBJS="$gl_LIBOBJS fseek.$ac_objext"
16659
16660  fi
16661
16662
16663
16664
16665
16666          GNULIB_FSEEK=1
16667
16668
16669
16670
16671
16672$as_echo "#define GNULIB_TEST_FSEEK 1" >>confdefs.h
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
16685$as_echo_n "checking for fseeko... " >&6; }
16686if ${gl_cv_func_fseeko+:} false; then :
16687  $as_echo_n "(cached) " >&6
16688else
16689
16690      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16691/* end confdefs.h.  */
16692#include <stdio.h>
16693
16694int
16695main ()
16696{
16697fseeko (stdin, 0, 0);
16698  ;
16699  return 0;
16700}
16701_ACEOF
16702if ac_fn_c_try_link "$LINENO"; then :
16703  gl_cv_func_fseeko=yes
16704else
16705  gl_cv_func_fseeko=no
16706fi
16707rm -f core conftest.err conftest.$ac_objext \
16708    conftest$ac_exeext conftest.$ac_ext
16709
16710fi
16711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
16712$as_echo "$gl_cv_func_fseeko" >&6; }
16713
16714
16715  if test $ac_cv_have_decl_fseeko = no; then
16716    HAVE_DECL_FSEEKO=0
16717  fi
16718
16719  if test $gl_cv_func_fseeko = no; then
16720    HAVE_FSEEKO=0
16721  else
16722    if test $WINDOWS_64_BIT_OFF_T = 1; then
16723      REPLACE_FSEEKO=1
16724    fi
16725    if test $gl_cv_var_stdin_large_offset = no; then
16726      REPLACE_FSEEKO=1
16727    fi
16728
16729  fi
16730
16731  if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
16732
16733
16734
16735
16736
16737
16738
16739
16740  gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
16741
16742
16743      for ac_func in _fseeki64
16744do :
16745  ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"
16746if test "x$ac_cv_func__fseeki64" = xyes; then :
16747  cat >>confdefs.h <<_ACEOF
16748#define HAVE__FSEEKI64 1
16749_ACEOF
16750
16751fi
16752done
16753
16754
16755  fi
16756
16757
16758
16759
16760
16761          GNULIB_FSEEKO=1
16762
16763
16764
16765
16766
16767$as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
16768
16769
16770
16771
16772
16773
16774
16775  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
16776    REPLACE_FSTAT=1
16777  fi
16778
16779
16780  if test $WINDOWS_64_BIT_ST_SIZE = 1; then
16781    REPLACE_FSTAT=1
16782  fi
16783
16784
16785
16786  if test $REPLACE_FSTAT = 1; then
16787
16788
16789
16790
16791
16792
16793
16794
16795  gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
16796
16797    :
16798  fi
16799
16800
16801
16802
16803
16804          GNULIB_FSTAT=1
16805
16806
16807
16808
16809
16810$as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
16811
16812
16813
16814
16815
16816
16817  for ac_header in sys/mount.h
16818do :
16819  ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default
16820     #if HAVE_SYS_PARAM_H
16821       #include <sys/param.h>
16822      #endif
16823"
16824if test "x$ac_cv_header_sys_mount_h" = xyes; then :
16825  cat >>confdefs.h <<_ACEOF
16826#define HAVE_SYS_MOUNT_H 1
16827_ACEOF
16828
16829fi
16830
16831done
16832
16833
16834
16835
16836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get file system space usage" >&5
16837$as_echo "$as_me: checking how to get file system space usage" >&6;}
16838ac_fsusage_space=no
16839
16840# Perform only the link test since it seems there are no variants of the
16841# statvfs function.  This check is more than just AC_CHECK_FUNCS([statvfs])
16842# because that got a false positive on SCO OSR5.  Adding the declaration
16843# of a 'struct statvfs' causes this test to fail (as it should) on such
16844# systems.  That system is reported to work fine with STAT_STATFS4 which
16845# is what it gets when this test fails.
16846if test $ac_fsusage_space = no; then
16847  # glibc/{Hurd,kFreeBSD}, FreeBSD >= 5.0, NetBSD >= 3.0,
16848  # OpenBSD >= 4.4, AIX, HP-UX, IRIX, Solaris, Cygwin, Interix, BeOS.
16849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statvfs function (SVR4)" >&5
16850$as_echo_n "checking for statvfs function (SVR4)... " >&6; }
16851if ${fu_cv_sys_stat_statvfs+:} false; then :
16852  $as_echo_n "(cached) " >&6
16853else
16854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855/* end confdefs.h.  */
16856#include <sys/types.h>
16857#ifdef __osf__
16858"Do not use Tru64's statvfs implementation"
16859#endif
16860
16861#include <sys/statvfs.h>
16862
16863struct statvfs fsd;
16864
16865#if defined __APPLE__ && defined __MACH__
16866#include <limits.h>
16867/* On Mac OS X >= 10.5, f_blocks in 'struct statvfs' is a 32-bit quantity;
16868   that commonly limits file systems to 4 TiB.  Whereas f_blocks in
16869   'struct statfs' is a 64-bit type, thanks to the large-file support
16870   that was enabled above.  In this case, don't use statvfs(); use statfs()
16871   instead.  */
16872int check_f_blocks_size[sizeof fsd.f_blocks * CHAR_BIT <= 32 ? -1 : 1];
16873#endif
16874
16875int
16876main ()
16877{
16878statvfs (0, &fsd);
16879  ;
16880  return 0;
16881}
16882_ACEOF
16883if ac_fn_c_try_link "$LINENO"; then :
16884  fu_cv_sys_stat_statvfs=yes
16885else
16886  fu_cv_sys_stat_statvfs=no
16887fi
16888rm -f core conftest.err conftest.$ac_objext \
16889    conftest$ac_exeext conftest.$ac_ext
16890fi
16891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs" >&5
16892$as_echo "$fu_cv_sys_stat_statvfs" >&6; }
16893  if test $fu_cv_sys_stat_statvfs = yes; then
16894    ac_fsusage_space=yes
16895    # AIX >= 5.2 has statvfs64 that has a wider f_blocks field than statvfs.
16896    # glibc, HP-UX, IRIX, Solaris have statvfs64 as well, but on these systems
16897    # statvfs with large-file support is already equivalent to statvfs64.
16898    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use statvfs64" >&5
16899$as_echo_n "checking whether to use statvfs64... " >&6; }
16900if ${fu_cv_sys_stat_statvfs64+:} false; then :
16901  $as_echo_n "(cached) " >&6
16902else
16903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904/* end confdefs.h.  */
16905#include <sys/types.h>
16906              #include <sys/statvfs.h>
16907              struct statvfs64 fsd;
16908              int check_f_blocks_larger_in_statvfs64
16909                [sizeof (((struct statvfs64 *) 0)->f_blocks)
16910                 > sizeof (((struct statvfs *) 0)->f_blocks)
16911                 ? 1 : -1];
16912
16913int
16914main ()
16915{
16916statvfs64 (0, &fsd);
16917  ;
16918  return 0;
16919}
16920_ACEOF
16921if ac_fn_c_try_link "$LINENO"; then :
16922  fu_cv_sys_stat_statvfs64=yes
16923else
16924  fu_cv_sys_stat_statvfs64=no
16925fi
16926rm -f core conftest.err conftest.$ac_objext \
16927    conftest$ac_exeext conftest.$ac_ext
16928
16929fi
16930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs64" >&5
16931$as_echo "$fu_cv_sys_stat_statvfs64" >&6; }
16932    if test $fu_cv_sys_stat_statvfs64 = yes; then
16933
16934$as_echo "#define STAT_STATVFS64 1" >>confdefs.h
16935
16936    else
16937
16938$as_echo "#define STAT_STATVFS 1" >>confdefs.h
16939
16940    fi
16941  fi
16942fi
16943
16944# Check for this unconditionally so we have a
16945# good fallback on glibc/Linux > 2.6 < 2.6.36
16946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_frsize member" >&5
16947$as_echo_n "checking for two-argument statfs with statfs.f_frsize member... " >&6; }
16948if ${fu_cv_sys_stat_statfs2_frsize+:} false; then :
16949  $as_echo_n "(cached) " >&6
16950else
16951  if test "$cross_compiling" = yes; then :
16952  fu_cv_sys_stat_statfs2_frsize=no
16953else
16954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955/* end confdefs.h.  */
16956
16957#ifdef HAVE_SYS_PARAM_H
16958#include <sys/param.h>
16959#endif
16960#ifdef HAVE_SYS_MOUNT_H
16961#include <sys/mount.h>
16962#endif
16963#ifdef HAVE_SYS_VFS_H
16964#include <sys/vfs.h>
16965#endif
16966  int
16967  main ()
16968  {
16969  struct statfs fsd;
16970  fsd.f_frsize = 0;
16971  return statfs (".", &fsd) != 0;
16972  }
16973_ACEOF
16974if ac_fn_c_try_run "$LINENO"; then :
16975  fu_cv_sys_stat_statfs2_frsize=yes
16976else
16977  fu_cv_sys_stat_statfs2_frsize=no
16978fi
16979rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16980  conftest.$ac_objext conftest.beam conftest.$ac_ext
16981fi
16982
16983fi
16984
16985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_frsize" >&5
16986$as_echo "$fu_cv_sys_stat_statfs2_frsize" >&6; }
16987if test $fu_cv_sys_stat_statfs2_frsize = yes; then
16988    ac_fsusage_space=yes
16989
16990$as_echo "#define STAT_STATFS2_FRSIZE 1" >>confdefs.h
16991
16992fi
16993
16994if test $ac_fsusage_space = no; then
16995  # DEC Alpha running OSF/1
16996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3-argument statfs function (DEC OSF/1)" >&5
16997$as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
16998  if ${fu_cv_sys_stat_statfs3_osf1+:} false; then :
16999  $as_echo_n "(cached) " >&6
17000else
17001  if test "$cross_compiling" = yes; then :
17002  fu_cv_sys_stat_statfs3_osf1=no
17003else
17004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005/* end confdefs.h.  */
17006
17007#include <sys/param.h>
17008#include <sys/types.h>
17009#include <sys/mount.h>
17010  int
17011  main ()
17012  {
17013    struct statfs fsd;
17014    fsd.f_fsize = 0;
17015    return statfs (".", &fsd, sizeof (struct statfs)) != 0;
17016  }
17017_ACEOF
17018if ac_fn_c_try_run "$LINENO"; then :
17019  fu_cv_sys_stat_statfs3_osf1=yes
17020else
17021  fu_cv_sys_stat_statfs3_osf1=no
17022fi
17023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17024  conftest.$ac_objext conftest.beam conftest.$ac_ext
17025fi
17026
17027fi
17028
17029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs3_osf1" >&5
17030$as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
17031  if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
17032    ac_fsusage_space=yes
17033
17034$as_echo "#define STAT_STATFS3_OSF1 1" >>confdefs.h
17035
17036  fi
17037fi
17038
17039if test $ac_fsusage_space = no; then
17040  # glibc/Linux, Mac OS X, FreeBSD < 5.0, NetBSD < 3.0, OpenBSD < 4.4.
17041  # (glibc/{Hurd,kFreeBSD}, FreeBSD >= 5.0, NetBSD >= 3.0,
17042  # OpenBSD >= 4.4, AIX, HP-UX, OSF/1, Cygwin already handled above.)
17043  # (On IRIX you need to include <sys/statfs.h>, not only <sys/mount.h> and
17044  # <sys/vfs.h>.)
17045  # (On Solaris, statfs has 4 arguments.)
17046  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)" >&5
17047$as_echo_n "checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)... " >&6; }
17048  if ${fu_cv_sys_stat_statfs2_bsize+:} false; then :
17049  $as_echo_n "(cached) " >&6
17050else
17051  if test "$cross_compiling" = yes; then :
17052  fu_cv_sys_stat_statfs2_bsize=no
17053else
17054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055/* end confdefs.h.  */
17056
17057#ifdef HAVE_SYS_PARAM_H
17058#include <sys/param.h>
17059#endif
17060#ifdef HAVE_SYS_MOUNT_H
17061#include <sys/mount.h>
17062#endif
17063#ifdef HAVE_SYS_VFS_H
17064#include <sys/vfs.h>
17065#endif
17066  int
17067  main ()
17068  {
17069  struct statfs fsd;
17070  fsd.f_bsize = 0;
17071  return statfs (".", &fsd) != 0;
17072  }
17073_ACEOF
17074if ac_fn_c_try_run "$LINENO"; then :
17075  fu_cv_sys_stat_statfs2_bsize=yes
17076else
17077  fu_cv_sys_stat_statfs2_bsize=no
17078fi
17079rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17080  conftest.$ac_objext conftest.beam conftest.$ac_ext
17081fi
17082
17083fi
17084
17085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_bsize" >&5
17086$as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
17087  if test $fu_cv_sys_stat_statfs2_bsize = yes; then
17088    ac_fsusage_space=yes
17089
17090$as_echo "#define STAT_STATFS2_BSIZE 1" >>confdefs.h
17091
17092  fi
17093fi
17094
17095if test $ac_fsusage_space = no; then
17096  # SVR3
17097  # (Solaris already handled above.)
17098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
17099$as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
17100  if ${fu_cv_sys_stat_statfs4+:} false; then :
17101  $as_echo_n "(cached) " >&6
17102else
17103  if test "$cross_compiling" = yes; then :
17104  fu_cv_sys_stat_statfs4=no
17105else
17106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17107/* end confdefs.h.  */
17108
17109#include <sys/types.h>
17110#include <sys/statfs.h>
17111  int
17112  main ()
17113  {
17114  struct statfs fsd;
17115  return statfs (".", &fsd, sizeof fsd, 0) != 0;
17116  }
17117_ACEOF
17118if ac_fn_c_try_run "$LINENO"; then :
17119  fu_cv_sys_stat_statfs4=yes
17120else
17121  fu_cv_sys_stat_statfs4=no
17122fi
17123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17124  conftest.$ac_objext conftest.beam conftest.$ac_ext
17125fi
17126
17127fi
17128
17129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs4" >&5
17130$as_echo "$fu_cv_sys_stat_statfs4" >&6; }
17131  if test $fu_cv_sys_stat_statfs4 = yes; then
17132    ac_fsusage_space=yes
17133
17134$as_echo "#define STAT_STATFS4 1" >>confdefs.h
17135
17136  fi
17137fi
17138
17139if test $ac_fsusage_space = no; then
17140  # 4.4BSD and older NetBSD
17141  # (OSF/1 already handled above.)
17142  # (On AIX, you need to include <sys/statfs.h>, not only <sys/mount.h>.)
17143  # (On Solaris, statfs has 4 arguments and 'struct statfs' is not declared in
17144  # <sys/mount.h>.)
17145  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)" >&5
17146$as_echo_n "checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)... " >&6; }
17147  if ${fu_cv_sys_stat_statfs2_fsize+:} false; then :
17148  $as_echo_n "(cached) " >&6
17149else
17150  if test "$cross_compiling" = yes; then :
17151  fu_cv_sys_stat_statfs2_fsize=no
17152else
17153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17154/* end confdefs.h.  */
17155
17156#include <sys/types.h>
17157#ifdef HAVE_SYS_PARAM_H
17158#include <sys/param.h>
17159#endif
17160#ifdef HAVE_SYS_MOUNT_H
17161#include <sys/mount.h>
17162#endif
17163  int
17164  main ()
17165  {
17166  struct statfs fsd;
17167  fsd.f_fsize = 0;
17168  return statfs (".", &fsd) != 0;
17169  }
17170_ACEOF
17171if ac_fn_c_try_run "$LINENO"; then :
17172  fu_cv_sys_stat_statfs2_fsize=yes
17173else
17174  fu_cv_sys_stat_statfs2_fsize=no
17175fi
17176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17177  conftest.$ac_objext conftest.beam conftest.$ac_ext
17178fi
17179
17180fi
17181
17182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_fsize" >&5
17183$as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
17184  if test $fu_cv_sys_stat_statfs2_fsize = yes; then
17185    ac_fsusage_space=yes
17186
17187$as_echo "#define STAT_STATFS2_FSIZE 1" >>confdefs.h
17188
17189  fi
17190fi
17191
17192if test $ac_fsusage_space = no; then
17193  # Ultrix
17194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
17195$as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
17196  if ${fu_cv_sys_stat_fs_data+:} false; then :
17197  $as_echo_n "(cached) " >&6
17198else
17199  if test "$cross_compiling" = yes; then :
17200  fu_cv_sys_stat_fs_data=no
17201else
17202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17203/* end confdefs.h.  */
17204
17205#include <sys/types.h>
17206#ifdef HAVE_SYS_PARAM_H
17207#include <sys/param.h>
17208#endif
17209#ifdef HAVE_SYS_MOUNT_H
17210#include <sys/mount.h>
17211#endif
17212#ifdef HAVE_SYS_FS_TYPES_H
17213#include <sys/fs_types.h>
17214#endif
17215  int
17216  main ()
17217  {
17218  struct fs_data fsd;
17219  /* Ultrix's statfs returns 1 for success,
17220     0 for not mounted, -1 for failure.  */
17221  return statfs (".", &fsd) != 1;
17222  }
17223_ACEOF
17224if ac_fn_c_try_run "$LINENO"; then :
17225  fu_cv_sys_stat_fs_data=yes
17226else
17227  fu_cv_sys_stat_fs_data=no
17228fi
17229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17230  conftest.$ac_objext conftest.beam conftest.$ac_ext
17231fi
17232
17233fi
17234
17235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_fs_data" >&5
17236$as_echo "$fu_cv_sys_stat_fs_data" >&6; }
17237  if test $fu_cv_sys_stat_fs_data = yes; then
17238    ac_fsusage_space=yes
17239
17240$as_echo "#define STAT_STATFS2_FS_DATA 1" >>confdefs.h
17241
17242  fi
17243fi
17244
17245if test $ac_fsusage_space = no; then
17246  # SVR2
17247  # (AIX, HP-UX, OSF/1 already handled above.)
17248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249/* end confdefs.h.  */
17250#include <sys/filsys.h>
17251
17252_ACEOF
17253if ac_fn_c_try_cpp "$LINENO"; then :
17254
17255$as_echo "#define STAT_READ_FILSYS 1" >>confdefs.h
17256
17257     ac_fsusage_space=yes
17258fi
17259rm -f conftest.err conftest.i conftest.$ac_ext
17260fi
17261
17262if test $ac_fsusage_space = yes; then :
17263  gl_cv_fs_space=yes
17264else
17265  gl_cv_fs_space=no
17266fi
17267
17268
17269
17270  if test $gl_cv_fs_space = yes; then
17271
17272
17273
17274
17275
17276
17277
17278
17279  gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
17280
17281
17282  for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
17283do :
17284  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17285ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17286if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17287  cat >>confdefs.h <<_ACEOF
17288#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17289_ACEOF
17290
17291fi
17292
17293done
17294
17295
17296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statfs that truncates block counts" >&5
17297$as_echo_n "checking for statfs that truncates block counts... " >&6; }
17298  if ${fu_cv_sys_truncating_statfs+:} false; then :
17299  $as_echo_n "(cached) " >&6
17300else
17301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17302/* end confdefs.h.  */
17303
17304#if !defined(sun) && !defined(__sun)
17305choke -- this is a workaround for a Sun-specific problem
17306#endif
17307#include <sys/types.h>
17308#include <sys/vfs.h>
17309int
17310main ()
17311{
17312struct statfs t; long c = *(t.f_spare);
17313        if (c) return 0;
17314  ;
17315  return 0;
17316}
17317_ACEOF
17318if ac_fn_c_try_compile "$LINENO"; then :
17319  fu_cv_sys_truncating_statfs=yes
17320else
17321  fu_cv_sys_truncating_statfs=no
17322fi
17323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17324fi
17325
17326  if test $fu_cv_sys_truncating_statfs = yes; then
17327
17328$as_echo "#define STATFS_TRUNCATES_BLOCK_COUNTS 1" >>confdefs.h
17329
17330  fi
17331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_truncating_statfs" >&5
17332$as_echo "$fu_cv_sys_truncating_statfs" >&6; }
17333
17334
17335  fi
17336
17337
17338
17339    if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
17340    REPLACE_FTELL=1
17341  fi
17342
17343  if test $REPLACE_FTELL = 1; then
17344
17345
17346
17347
17348
17349
17350
17351
17352  gl_LIBOBJS="$gl_LIBOBJS ftell.$ac_objext"
17353
17354  fi
17355
17356
17357
17358
17359
17360          GNULIB_FTELL=1
17361
17362
17363
17364
17365
17366$as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379  if test $ac_cv_have_decl_ftello = no; then
17380    HAVE_DECL_FTELLO=0
17381  fi
17382
17383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
17384$as_echo_n "checking for ftello... " >&6; }
17385if ${gl_cv_func_ftello+:} false; then :
17386  $as_echo_n "(cached) " >&6
17387else
17388
17389      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17390/* end confdefs.h.  */
17391#include <stdio.h>
17392int
17393main ()
17394{
17395ftello (stdin);
17396  ;
17397  return 0;
17398}
17399_ACEOF
17400if ac_fn_c_try_link "$LINENO"; then :
17401  gl_cv_func_ftello=yes
17402else
17403  gl_cv_func_ftello=no
17404fi
17405rm -f core conftest.err conftest.$ac_objext \
17406    conftest$ac_exeext conftest.$ac_ext
17407
17408fi
17409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
17410$as_echo "$gl_cv_func_ftello" >&6; }
17411  if test $gl_cv_func_ftello = no; then
17412    HAVE_FTELLO=0
17413  else
17414    if test $WINDOWS_64_BIT_OFF_T = 1; then
17415      REPLACE_FTELLO=1
17416    fi
17417    if test $gl_cv_var_stdin_large_offset = no; then
17418      REPLACE_FTELLO=1
17419    fi
17420    if test $REPLACE_FTELLO = 0; then
17421
17422      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
17423$as_echo_n "checking whether ftello works... " >&6; }
17424if ${gl_cv_func_ftello_works+:} false; then :
17425  $as_echo_n "(cached) " >&6
17426else
17427
17428                              case "$host_os" in
17429                      # Guess no on Solaris.
17430            solaris*) gl_cv_func_ftello_works="guessing no" ;;
17431                      # Guess yes otherwise.
17432            *)        gl_cv_func_ftello_works="guessing yes" ;;
17433          esac
17434          if test "$cross_compiling" = yes; then :
17435  :
17436else
17437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17438/* end confdefs.h.  */
17439
17440#include <stdio.h>
17441#include <stdlib.h>
17442#include <string.h>
17443#define TESTFILE "conftest.tmp"
17444int
17445main (void)
17446{
17447  FILE *fp;
17448
17449  /* Create a file with some contents.  */
17450  fp = fopen (TESTFILE, "w");
17451  if (fp == NULL)
17452    return 70;
17453  if (fwrite ("foogarsh", 1, 8, fp) < 8)
17454    return 71;
17455  if (fclose (fp))
17456    return 72;
17457
17458  /* The file's contents is now "foogarsh".  */
17459
17460  /* Try writing after reading to EOF.  */
17461  fp = fopen (TESTFILE, "r+");
17462  if (fp == NULL)
17463    return 73;
17464  if (fseek (fp, -1, SEEK_END))
17465    return 74;
17466  if (!(getc (fp) == 'h'))
17467    return 1;
17468  if (!(getc (fp) == EOF))
17469    return 2;
17470  if (!(ftell (fp) == 8))
17471    return 3;
17472  if (!(ftell (fp) == 8))
17473    return 4;
17474  if (!(putc ('!', fp) == '!'))
17475    return 5;
17476  if (!(ftell (fp) == 9))
17477    return 6;
17478  if (!(fclose (fp) == 0))
17479    return 7;
17480  fp = fopen (TESTFILE, "r");
17481  if (fp == NULL)
17482    return 75;
17483  {
17484    char buf[10];
17485    if (!(fread (buf, 1, 10, fp) == 9))
17486      return 10;
17487    if (!(memcmp (buf, "foogarsh!", 9) == 0))
17488      return 11;
17489  }
17490  if (!(fclose (fp) == 0))
17491    return 12;
17492
17493  /* The file's contents is now "foogarsh!".  */
17494
17495  return 0;
17496}
17497_ACEOF
17498if ac_fn_c_try_run "$LINENO"; then :
17499  gl_cv_func_ftello_works=yes
17500else
17501  gl_cv_func_ftello_works=no
17502fi
17503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17504  conftest.$ac_objext conftest.beam conftest.$ac_ext
17505fi
17506
17507
17508fi
17509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
17510$as_echo "$gl_cv_func_ftello_works" >&6; }
17511      case "$gl_cv_func_ftello_works" in
17512        *yes) ;;
17513        *)
17514          REPLACE_FTELLO=1
17515
17516$as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
17517
17518          ;;
17519      esac
17520    fi
17521  fi
17522
17523  if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
17524
17525
17526
17527
17528
17529
17530
17531
17532  gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
17533
17534
17535      for ac_func in _ftelli64
17536do :
17537  ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
17538if test "x$ac_cv_func__ftelli64" = xyes; then :
17539  cat >>confdefs.h <<_ACEOF
17540#define HAVE__FTELLI64 1
17541_ACEOF
17542
17543fi
17544done
17545
17546
17547  fi
17548
17549
17550
17551
17552
17553          GNULIB_FTELLO=1
17554
17555
17556
17557
17558
17559$as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
17560
17561
17562
17563
17564
17565
17566  if test $ac_cv_func_ftruncate = yes; then
17567
17568
17569      case "$host_os" in
17570        mingw*)
17571                                                                      REPLACE_FTRUNCATE=1
17572          ;;
17573      esac
17574
17575  else
17576    HAVE_FTRUNCATE=0
17577  fi
17578
17579  if test $HAVE_FTRUNCATE = 0 || test $REPLACE_FTRUNCATE = 1; then
17580
17581
17582
17583
17584
17585
17586
17587
17588  gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
17589
17590
17591  for ac_func in chsize
17592do :
17593  ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize"
17594if test "x$ac_cv_func_chsize" = xyes; then :
17595  cat >>confdefs.h <<_ACEOF
17596#define HAVE_CHSIZE 1
17597_ACEOF
17598
17599fi
17600done
17601
17602
17603  fi
17604
17605
17606
17607
17608
17609          GNULIB_FTRUNCATE=1
17610
17611
17612
17613
17614
17615$as_echo "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h
17616
17617
17618
17619
17620      { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
17621$as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
17622  GETADDRINFO_LIB=
17623  gai_saved_LIBS="$LIBS"
17624
17625              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
17626$as_echo_n "checking for library containing getaddrinfo... " >&6; }
17627if ${ac_cv_search_getaddrinfo+:} false; then :
17628  $as_echo_n "(cached) " >&6
17629else
17630  ac_func_search_save_LIBS=$LIBS
17631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17632/* end confdefs.h.  */
17633
17634/* Override any GCC internal prototype to avoid an error.
17635   Use char because int might match the return type of a GCC
17636   builtin and then its argument prototype would still apply.  */
17637#ifdef __cplusplus
17638extern "C"
17639#endif
17640char getaddrinfo ();
17641int
17642main ()
17643{
17644return getaddrinfo ();
17645  ;
17646  return 0;
17647}
17648_ACEOF
17649for ac_lib in '' socket network net; do
17650  if test -z "$ac_lib"; then
17651    ac_res="none required"
17652  else
17653    ac_res=-l$ac_lib
17654    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17655  fi
17656  if ac_fn_c_try_link "$LINENO"; then :
17657  ac_cv_search_getaddrinfo=$ac_res
17658fi
17659rm -f core conftest.err conftest.$ac_objext \
17660    conftest$ac_exeext
17661  if ${ac_cv_search_getaddrinfo+:} false; then :
17662  break
17663fi
17664done
17665if ${ac_cv_search_getaddrinfo+:} false; then :
17666
17667else
17668  ac_cv_search_getaddrinfo=no
17669fi
17670rm conftest.$ac_ext
17671LIBS=$ac_func_search_save_LIBS
17672fi
17673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
17674$as_echo "$ac_cv_search_getaddrinfo" >&6; }
17675ac_res=$ac_cv_search_getaddrinfo
17676if test "$ac_res" != no; then :
17677  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17678  if test "$ac_cv_search_getaddrinfo" != "none required"; then
17679       GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
17680     fi
17681fi
17682
17683  LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
17684
17685  HAVE_GETADDRINFO=1
17686  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17687$as_echo_n "checking for getaddrinfo... " >&6; }
17688if ${gl_cv_func_getaddrinfo+:} false; then :
17689  $as_echo_n "(cached) " >&6
17690else
17691
17692    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17693/* end confdefs.h.  */
17694
17695#include <sys/types.h>
17696#ifdef HAVE_SYS_SOCKET_H
17697#include <sys/socket.h>
17698#endif
17699#ifdef HAVE_NETDB_H
17700#include <netdb.h>
17701#endif
17702#include <stddef.h>
17703
17704int
17705main ()
17706{
17707getaddrinfo("", "", NULL, NULL);
17708  ;
17709  return 0;
17710}
17711_ACEOF
17712if ac_fn_c_try_link "$LINENO"; then :
17713  gl_cv_func_getaddrinfo=yes
17714else
17715  gl_cv_func_getaddrinfo=no
17716fi
17717rm -f core conftest.err conftest.$ac_objext \
17718    conftest$ac_exeext conftest.$ac_ext
17719fi
17720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo" >&5
17721$as_echo "$gl_cv_func_getaddrinfo" >&6; }
17722  if test $gl_cv_func_getaddrinfo = no; then
17723    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
17724$as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
17725if ${gl_cv_w32_getaddrinfo+:} false; then :
17726  $as_echo_n "(cached) " >&6
17727else
17728
17729      gl_cv_w32_getaddrinfo=no
17730      am_save_LIBS="$LIBS"
17731      LIBS="$LIBS -lws2_32"
17732      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17733/* end confdefs.h.  */
17734
17735#ifdef HAVE_WS2TCPIP_H
17736#include <ws2tcpip.h>
17737#endif
17738#include <stddef.h>
17739
17740int
17741main ()
17742{
17743getaddrinfo(NULL, NULL, NULL, NULL);
17744  ;
17745  return 0;
17746}
17747_ACEOF
17748if ac_fn_c_try_link "$LINENO"; then :
17749  gl_cv_w32_getaddrinfo=yes
17750fi
17751rm -f core conftest.err conftest.$ac_objext \
17752    conftest$ac_exeext conftest.$ac_ext
17753      LIBS="$am_save_LIBS"
17754
17755fi
17756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getaddrinfo" >&5
17757$as_echo "$gl_cv_w32_getaddrinfo" >&6; }
17758    if test "$gl_cv_w32_getaddrinfo" = "yes"; then
17759      GETADDRINFO_LIB="-lws2_32"
17760      LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
17761    else
17762      HAVE_GETADDRINFO=0
17763    fi
17764  fi
17765
17766  # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
17767  # inline function declared in ws2tcpip.h, so we need to get that
17768  # header included somehow.
17769  ac_fn_c_check_decl "$LINENO" "gai_strerror" "ac_cv_have_decl_gai_strerror" "
17770#include <sys/types.h>
17771#ifdef HAVE_SYS_SOCKET_H
17772#include <sys/socket.h>
17773#endif
17774#ifdef HAVE_NETDB_H
17775#include <netdb.h>
17776#endif
17777#ifdef HAVE_WS2TCPIP_H
17778#include <ws2tcpip.h>
17779#endif
17780#include <stddef.h>
17781
17782"
17783if test "x$ac_cv_have_decl_gai_strerror" = xyes; then :
17784  ac_have_decl=1
17785else
17786  ac_have_decl=0
17787fi
17788
17789cat >>confdefs.h <<_ACEOF
17790#define HAVE_DECL_GAI_STRERROR $ac_have_decl
17791_ACEOF
17792
17793  if test $ac_cv_have_decl_gai_strerror = yes; then
17794    ac_fn_c_check_decl "$LINENO" "gai_strerrorA" "ac_cv_have_decl_gai_strerrorA" "
17795#include <sys/types.h>
17796#ifdef HAVE_SYS_SOCKET_H
17797#include <sys/socket.h>
17798#endif
17799#ifdef HAVE_NETDB_H
17800#include <netdb.h>
17801#endif
17802#ifdef HAVE_WS2TCPIP_H
17803#include <ws2tcpip.h>
17804#endif
17805#include <stddef.h>
17806
17807"
17808if test "x$ac_cv_have_decl_gai_strerrorA" = xyes; then :
17809  ac_have_decl=1
17810else
17811  ac_have_decl=0
17812fi
17813
17814cat >>confdefs.h <<_ACEOF
17815#define HAVE_DECL_GAI_STRERRORA $ac_have_decl
17816_ACEOF
17817
17818        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror with POSIX signature" >&5
17819$as_echo_n "checking for gai_strerror with POSIX signature... " >&6; }
17820if ${gl_cv_func_gai_strerror_posix_signature+:} false; then :
17821  $as_echo_n "(cached) " >&6
17822else
17823
17824      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17825/* end confdefs.h.  */
17826
17827#include <sys/types.h>
17828#ifdef HAVE_SYS_SOCKET_H
17829#include <sys/socket.h>
17830#endif
17831#ifdef HAVE_NETDB_H
17832#include <netdb.h>
17833#endif
17834#ifdef HAVE_WS2TCPIP_H
17835#include <ws2tcpip.h>
17836#endif
17837#include <stddef.h>
17838extern
17839#ifdef __cplusplus
17840"C"
17841#endif
17842const char *gai_strerror(int);
17843_ACEOF
17844if ac_fn_c_try_compile "$LINENO"; then :
17845  gl_cv_func_gai_strerror_posix_signature=yes
17846else
17847  gl_cv_func_gai_strerror_posix_signature=no
17848fi
17849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17850fi
17851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gai_strerror_posix_signature" >&5
17852$as_echo "$gl_cv_func_gai_strerror_posix_signature" >&6; }
17853    if test $gl_cv_func_gai_strerror_posix_signature = no; then
17854      REPLACE_GAI_STRERROR=1
17855    fi
17856  fi
17857
17858  LIBS="$gai_saved_LIBS"
17859
17860
17861
17862
17863
17864
17865
17866
17867      ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
17868#include <sys/types.h>
17869#include <sys/socket.h>
17870
17871"
17872if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
17873
17874cat >>confdefs.h <<_ACEOF
17875#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
17876_ACEOF
17877
17878
17879fi
17880
17881
17882
17883
17884  ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" "
17885  /* sys/types.h is not needed according to POSIX, but the
17886     sys/socket.h in i386-unknown-freebsd4.10 and
17887     powerpc-apple-darwin5.5 required it. */
17888#include <sys/types.h>
17889#ifdef HAVE_SYS_SOCKET_H
17890#include <sys/socket.h>
17891#endif
17892#ifdef HAVE_NETDB_H
17893#include <netdb.h>
17894#endif
17895#ifdef HAVE_WS2TCPIP_H
17896#include <ws2tcpip.h>
17897#endif
17898
17899"
17900if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then :
17901  ac_have_decl=1
17902else
17903  ac_have_decl=0
17904fi
17905
17906cat >>confdefs.h <<_ACEOF
17907#define HAVE_DECL_GETADDRINFO $ac_have_decl
17908_ACEOF
17909ac_fn_c_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" "
17910  /* sys/types.h is not needed according to POSIX, but the
17911     sys/socket.h in i386-unknown-freebsd4.10 and
17912     powerpc-apple-darwin5.5 required it. */
17913#include <sys/types.h>
17914#ifdef HAVE_SYS_SOCKET_H
17915#include <sys/socket.h>
17916#endif
17917#ifdef HAVE_NETDB_H
17918#include <netdb.h>
17919#endif
17920#ifdef HAVE_WS2TCPIP_H
17921#include <ws2tcpip.h>
17922#endif
17923
17924"
17925if test "x$ac_cv_have_decl_freeaddrinfo" = xyes; then :
17926  ac_have_decl=1
17927else
17928  ac_have_decl=0
17929fi
17930
17931cat >>confdefs.h <<_ACEOF
17932#define HAVE_DECL_FREEADDRINFO $ac_have_decl
17933_ACEOF
17934ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" "
17935  /* sys/types.h is not needed according to POSIX, but the
17936     sys/socket.h in i386-unknown-freebsd4.10 and
17937     powerpc-apple-darwin5.5 required it. */
17938#include <sys/types.h>
17939#ifdef HAVE_SYS_SOCKET_H
17940#include <sys/socket.h>
17941#endif
17942#ifdef HAVE_NETDB_H
17943#include <netdb.h>
17944#endif
17945#ifdef HAVE_WS2TCPIP_H
17946#include <ws2tcpip.h>
17947#endif
17948
17949"
17950if test "x$ac_cv_have_decl_getnameinfo" = xyes; then :
17951  ac_have_decl=1
17952else
17953  ac_have_decl=0
17954fi
17955
17956cat >>confdefs.h <<_ACEOF
17957#define HAVE_DECL_GETNAMEINFO $ac_have_decl
17958_ACEOF
17959
17960  if test $ac_cv_have_decl_getaddrinfo = no; then
17961    HAVE_DECL_GETADDRINFO=0
17962  fi
17963  if test $ac_cv_have_decl_freeaddrinfo = no; then
17964    HAVE_DECL_FREEADDRINFO=0
17965  fi
17966  if test $ac_cv_have_decl_gai_strerror = no; then
17967    HAVE_DECL_GAI_STRERROR=0
17968  fi
17969  if test $ac_cv_have_decl_getnameinfo = no; then
17970    HAVE_DECL_GETNAMEINFO=0
17971  fi
17972
17973  ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
17974#include <sys/types.h>
17975#ifdef HAVE_SYS_SOCKET_H
17976#include <sys/socket.h>
17977#endif
17978#ifdef HAVE_NETDB_H
17979#include <netdb.h>
17980#endif
17981#ifdef HAVE_WS2TCPIP_H
17982#include <ws2tcpip.h>
17983#endif
17984
17985"
17986if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
17987
17988cat >>confdefs.h <<_ACEOF
17989#define HAVE_STRUCT_ADDRINFO 1
17990_ACEOF
17991
17992
17993fi
17994
17995  if test $ac_cv_type_struct_addrinfo = no; then
17996    HAVE_STRUCT_ADDRINFO=0
17997  fi
17998
17999    case " $GETADDRINFO_LIB " in
18000    *" $HOSTENT_LIB "*) ;;
18001    *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
18002  esac
18003
18004    case " $GETADDRINFO_LIB " in
18005    *" $SERVENT_LIB "*) ;;
18006    *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
18007  esac
18008
18009    case " $GETADDRINFO_LIB " in
18010    *" $INET_NTOP_LIB "*) ;;
18011    *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;;
18012  esac
18013
18014
18015
18016
18017  if test $HAVE_GETADDRINFO = 0; then
18018
18019
18020
18021
18022
18023
18024
18025
18026  gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
18027
18028  fi
18029  if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
18030
18031
18032
18033
18034
18035
18036
18037
18038  gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
18039
18040  fi
18041
18042
18043
18044
18045
18046          GNULIB_GETADDRINFO=1
18047
18048
18049
18050
18051
18052$as_echo "#define GNULIB_TEST_GETADDRINFO 1" >>confdefs.h
18053
18054
18055
18056
18057
18058
18059
18060
18061        ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
18062if test "x$ac_cv_func_getgroups" = xyes; then :
18063
18064fi
18065
18066
18067  # If we don't yet have getgroups, see if it's in -lbsd.
18068  # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
18069  ac_save_LIBS=$LIBS
18070  if test $ac_cv_func_getgroups = no; then
18071    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
18072$as_echo_n "checking for getgroups in -lbsd... " >&6; }
18073if ${ac_cv_lib_bsd_getgroups+:} false; then :
18074  $as_echo_n "(cached) " >&6
18075else
18076  ac_check_lib_save_LIBS=$LIBS
18077LIBS="-lbsd  $LIBS"
18078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079/* end confdefs.h.  */
18080
18081/* Override any GCC internal prototype to avoid an error.
18082   Use char because int might match the return type of a GCC
18083   builtin and then its argument prototype would still apply.  */
18084#ifdef __cplusplus
18085extern "C"
18086#endif
18087char getgroups ();
18088int
18089main ()
18090{
18091return getgroups ();
18092  ;
18093  return 0;
18094}
18095_ACEOF
18096if ac_fn_c_try_link "$LINENO"; then :
18097  ac_cv_lib_bsd_getgroups=yes
18098else
18099  ac_cv_lib_bsd_getgroups=no
18100fi
18101rm -f core conftest.err conftest.$ac_objext \
18102    conftest$ac_exeext conftest.$ac_ext
18103LIBS=$ac_check_lib_save_LIBS
18104fi
18105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
18106$as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
18107if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
18108  GETGROUPS_LIB=-lbsd
18109fi
18110
18111  fi
18112
18113  # Run the program to test the functionality of the system-supplied
18114  # getgroups function only if there is such a function.
18115  if test $ac_cv_func_getgroups = yes; then
18116    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
18117$as_echo_n "checking for working getgroups... " >&6; }
18118if ${ac_cv_func_getgroups_works+:} false; then :
18119  $as_echo_n "(cached) " >&6
18120else
18121  if test "$cross_compiling" = yes; then :
18122  case "$host_os" in # ((
18123                    # Guess yes on glibc systems.
18124            *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
18125                    # If we don't know, assume the worst.
18126            *)      ac_cv_func_getgroups_works="guessing no" ;;
18127          esac
18128
18129else
18130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18131/* end confdefs.h.  */
18132$ac_includes_default
18133int
18134main ()
18135{
18136/* On Ultrix 4.3, getgroups (0, 0) always fails.  */
18137              return getgroups (0, 0) == -1;
18138  ;
18139  return 0;
18140}
18141
18142_ACEOF
18143if ac_fn_c_try_run "$LINENO"; then :
18144  ac_cv_func_getgroups_works=yes
18145else
18146  ac_cv_func_getgroups_works=no
18147fi
18148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18149  conftest.$ac_objext conftest.beam conftest.$ac_ext
18150fi
18151
18152
18153fi
18154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
18155$as_echo "$ac_cv_func_getgroups_works" >&6; }
18156  else
18157    ac_cv_func_getgroups_works=no
18158  fi
18159  case "$ac_cv_func_getgroups_works" in
18160    *yes)
18161
18162$as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
18163
18164      ;;
18165  esac
18166  LIBS=$ac_save_LIBS
18167
18168  if test $ac_cv_func_getgroups != yes; then
18169    HAVE_GETGROUPS=0
18170  else
18171    if test "$ac_cv_type_getgroups" != gid_t \
18172       || { case "$ac_cv_func_getgroups_works" in
18173              *yes) false;;
18174              *) true;;
18175            esac
18176          }; then
18177      REPLACE_GETGROUPS=1
18178
18179$as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
18180
18181    else
18182            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
18183$as_echo_n "checking whether getgroups handles negative values... " >&6; }
18184if ${gl_cv_func_getgroups_works+:} false; then :
18185  $as_echo_n "(cached) " >&6
18186else
18187  if test "$cross_compiling" = yes; then :
18188  case "$host_os" in
18189                     # Guess yes on glibc systems.
18190             *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
18191                     # If we don't know, assume the worst.
18192             *)      gl_cv_func_getgroups_works="guessing no" ;;
18193           esac
18194
18195else
18196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18197/* end confdefs.h.  */
18198$ac_includes_default
18199int
18200main ()
18201{
18202int size = getgroups (0, 0);
18203            gid_t *list = malloc (size * sizeof *list);
18204            return getgroups (-1, list) != -1;
18205  ;
18206  return 0;
18207}
18208_ACEOF
18209if ac_fn_c_try_run "$LINENO"; then :
18210  gl_cv_func_getgroups_works=yes
18211else
18212  gl_cv_func_getgroups_works=no
18213fi
18214rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18215  conftest.$ac_objext conftest.beam conftest.$ac_ext
18216fi
18217
18218fi
18219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
18220$as_echo "$gl_cv_func_getgroups_works" >&6; }
18221      case "$gl_cv_func_getgroups_works" in
18222        *yes) ;;
18223        *) REPLACE_GETGROUPS=1 ;;
18224      esac
18225    fi
18226  fi
18227  test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
18228
18229  if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
18230
18231
18232
18233
18234
18235
18236
18237
18238  gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
18239
18240  fi
18241
18242
18243
18244
18245
18246          GNULIB_GETGROUPS=1
18247
18248
18249
18250
18251
18252$as_echo "#define GNULIB_TEST_GETGROUPS 1" >>confdefs.h
18253
18254
18255
18256
18257
18258
18259
18260
18261  if test $REPLACE_GETOPT = 1; then
18262
18263
18264
18265
18266
18267
18268
18269
18270  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
18281
18282
18283
18284
18285        GNULIB_GL_UNISTD_H_GETOPT=1
18286  fi
18287
18288
18289
18290$as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
18291
18292
18293
18294
18295
18296
18297
18298    REPLACE_GETOPT=0
18299    if test -n "$gl_replace_getopt"; then
18300      REPLACE_GETOPT=1
18301    fi
18302
18303  if test $REPLACE_GETOPT = 1; then
18304
18305  GETOPT_H=getopt.h
18306
18307$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18308
18309
18310
18311  fi
18312
18313  if test $REPLACE_GETOPT = 1; then
18314
18315
18316
18317
18318
18319
18320
18321
18322  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
18333
18334
18335
18336
18337        GNULIB_GL_UNISTD_H_GETOPT=1
18338  fi
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348  gl_gettimeofday_timezone=void
18349  if test $ac_cv_func_gettimeofday != yes; then
18350    HAVE_GETTIMEOFDAY=0
18351  else
18352
18353
18354
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
18356$as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
18357if ${gl_cv_func_gettimeofday_clobber+:} false; then :
18358  $as_echo_n "(cached) " >&6
18359else
18360  if test "$cross_compiling" = yes; then :
18361  # When cross-compiling:
18362      case "$host_os" in
18363                # Guess all is fine on glibc systems.
18364        *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
18365                # If we don't know, assume the worst.
18366        *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
18367      esac
18368
18369else
18370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371/* end confdefs.h.  */
18372#include <string.h>
18373          #include <sys/time.h>
18374          #include <time.h>
18375          #include <stdlib.h>
18376
18377int
18378main ()
18379{
18380
18381          time_t t = 0;
18382          struct tm *lt;
18383          struct tm saved_lt;
18384          struct timeval tv;
18385          lt = localtime (&t);
18386          saved_lt = *lt;
18387          gettimeofday (&tv, NULL);
18388          return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
18389
18390  ;
18391  return 0;
18392}
18393_ACEOF
18394if ac_fn_c_try_run "$LINENO"; then :
18395  gl_cv_func_gettimeofday_clobber=no
18396else
18397  gl_cv_func_gettimeofday_clobber=yes
18398fi
18399rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18400  conftest.$ac_objext conftest.beam conftest.$ac_ext
18401fi
18402
18403fi
18404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
18405$as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
18406
18407 case "$gl_cv_func_gettimeofday_clobber" in
18408   *yes)
18409     REPLACE_GETTIMEOFDAY=1
18410
18411
18412$as_echo "#define gmtime rpl_gmtime" >>confdefs.h
18413
18414
18415$as_echo "#define localtime rpl_localtime" >>confdefs.h
18416
18417
18418
18419$as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
18420
18421     ;;
18422 esac
18423
18424    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
18425$as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
18426if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
18427  $as_echo_n "(cached) " >&6
18428else
18429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18430/* end confdefs.h.  */
18431#include <sys/time.h>
18432              struct timeval c;
18433              int gettimeofday (struct timeval *restrict, void *restrict);
18434
18435int
18436main ()
18437{
18438/* glibc uses struct timezone * rather than the POSIX void *
18439                 if _GNU_SOURCE is defined.  However, since the only portable
18440                 use of gettimeofday uses NULL as the second parameter, and
18441                 since the glibc definition is actually more typesafe, it is
18442                 not worth wrapping this to get a compliant signature.  */
18443              int (*f) (struct timeval *restrict, void *restrict)
18444                = gettimeofday;
18445              int x = f (&c, 0);
18446              return !(x | c.tv_sec | c.tv_usec);
18447
18448  ;
18449  return 0;
18450}
18451_ACEOF
18452if ac_fn_c_try_compile "$LINENO"; then :
18453  gl_cv_func_gettimeofday_posix_signature=yes
18454else
18455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18456/* end confdefs.h.  */
18457#include <sys/time.h>
18458int gettimeofday (struct timeval *restrict, struct timezone *restrict);
18459
18460int
18461main ()
18462{
18463
18464  ;
18465  return 0;
18466}
18467_ACEOF
18468if ac_fn_c_try_compile "$LINENO"; then :
18469  gl_cv_func_gettimeofday_posix_signature=almost
18470else
18471  gl_cv_func_gettimeofday_posix_signature=no
18472fi
18473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18474fi
18475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18476fi
18477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
18478$as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
18479    if test $gl_cv_func_gettimeofday_posix_signature = almost; then
18480      gl_gettimeofday_timezone='struct timezone'
18481    elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
18482      REPLACE_GETTIMEOFDAY=1
18483    fi
18484        if test $REPLACE_STRUCT_TIMEVAL = 1; then
18485      REPLACE_GETTIMEOFDAY=1
18486    fi
18487
18488  fi
18489
18490cat >>confdefs.h <<_ACEOF
18491#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
18492_ACEOF
18493
18494
18495  if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
18496
18497
18498
18499
18500
18501
18502
18503
18504  gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
18505
18506
18507  for ac_header in sys/timeb.h
18508do :
18509  ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
18510if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
18511  cat >>confdefs.h <<_ACEOF
18512#define HAVE_SYS_TIMEB_H 1
18513_ACEOF
18514
18515fi
18516
18517done
18518
18519  for ac_func in _ftime
18520do :
18521  ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
18522if test "x$ac_cv_func__ftime" = xyes; then :
18523  cat >>confdefs.h <<_ACEOF
18524#define HAVE__FTIME 1
18525_ACEOF
18526
18527fi
18528done
18529
18530
18531  fi
18532
18533
18534
18535
18536
18537          GNULIB_GETTIMEOFDAY=1
18538
18539
18540
18541
18542
18543$as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
18544
18545
18546
18547
18548
18549
18550
18551
18552      ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
18553if test "x$ac_cv_func_group_member" = xyes; then :
18554
18555else
18556
18557    HAVE_GROUP_MEMBER=0
18558
18559fi
18560
18561
18562  if test $HAVE_GROUP_MEMBER = 0; then
18563
18564
18565
18566
18567
18568
18569
18570
18571  gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
18572
18573
18574
18575
18576  fi
18577
18578
18579
18580
18581
18582          GNULIB_GROUP_MEMBER=1
18583
18584
18585
18586
18587
18588$as_echo "#define GNULIB_TEST_GROUP_MEMBER 1" >>confdefs.h
18589
18590
18591
18592
18593                  HOSTENT_LIB=
18594  gl_saved_libs="$LIBS"
18595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18596$as_echo_n "checking for library containing gethostbyname... " >&6; }
18597if ${ac_cv_search_gethostbyname+:} false; then :
18598  $as_echo_n "(cached) " >&6
18599else
18600  ac_func_search_save_LIBS=$LIBS
18601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18602/* end confdefs.h.  */
18603
18604/* Override any GCC internal prototype to avoid an error.
18605   Use char because int might match the return type of a GCC
18606   builtin and then its argument prototype would still apply.  */
18607#ifdef __cplusplus
18608extern "C"
18609#endif
18610char gethostbyname ();
18611int
18612main ()
18613{
18614return gethostbyname ();
18615  ;
18616  return 0;
18617}
18618_ACEOF
18619for ac_lib in '' nsl network net; do
18620  if test -z "$ac_lib"; then
18621    ac_res="none required"
18622  else
18623    ac_res=-l$ac_lib
18624    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18625  fi
18626  if ac_fn_c_try_link "$LINENO"; then :
18627  ac_cv_search_gethostbyname=$ac_res
18628fi
18629rm -f core conftest.err conftest.$ac_objext \
18630    conftest$ac_exeext
18631  if ${ac_cv_search_gethostbyname+:} false; then :
18632  break
18633fi
18634done
18635if ${ac_cv_search_gethostbyname+:} false; then :
18636
18637else
18638  ac_cv_search_gethostbyname=no
18639fi
18640rm conftest.$ac_ext
18641LIBS=$ac_func_search_save_LIBS
18642fi
18643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18644$as_echo "$ac_cv_search_gethostbyname" >&6; }
18645ac_res=$ac_cv_search_gethostbyname
18646if test "$ac_res" != no; then :
18647  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18648  if test "$ac_cv_search_gethostbyname" != "none required"; then
18649       HOSTENT_LIB="$ac_cv_search_gethostbyname"
18650     fi
18651fi
18652
18653  LIBS="$gl_saved_libs"
18654  if test -z "$HOSTENT_LIB"; then
18655    for ac_func in gethostbyname
18656do :
18657  ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
18658if test "x$ac_cv_func_gethostbyname" = xyes; then :
18659  cat >>confdefs.h <<_ACEOF
18660#define HAVE_GETHOSTBYNAME 1
18661_ACEOF
18662
18663else
18664
18665      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
18666$as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
18667if ${gl_cv_w32_gethostbyname+:} false; then :
18668  $as_echo_n "(cached) " >&6
18669else
18670  gl_cv_w32_gethostbyname=no
18671         gl_save_LIBS="$LIBS"
18672         LIBS="$LIBS -lws2_32"
18673         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18674/* end confdefs.h.  */
18675
18676#ifdef HAVE_WINSOCK2_H
18677#include <winsock2.h>
18678#endif
18679#include <stddef.h>
18680
18681int
18682main ()
18683{
18684gethostbyname(NULL);
18685  ;
18686  return 0;
18687}
18688_ACEOF
18689if ac_fn_c_try_link "$LINENO"; then :
18690  gl_cv_w32_gethostbyname=yes
18691fi
18692rm -f core conftest.err conftest.$ac_objext \
18693    conftest$ac_exeext conftest.$ac_ext
18694         LIBS="$gl_save_LIBS"
18695
18696fi
18697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
18698$as_echo "$gl_cv_w32_gethostbyname" >&6; }
18699      if test "$gl_cv_w32_gethostbyname" = "yes"; then
18700        HOSTENT_LIB="-lws2_32"
18701      fi
18702
18703fi
18704done
18705
18706  fi
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716              HAVE_INET_NTOP=1
18717  INET_NTOP_LIB=
18718
18719
18720
18721
18722  if test $ac_cv_header_sys_socket_h != yes; then
18723                    for ac_header in winsock2.h
18724do :
18725  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18726if test "x$ac_cv_header_winsock2_h" = xyes; then :
18727  cat >>confdefs.h <<_ACEOF
18728#define HAVE_WINSOCK2_H 1
18729_ACEOF
18730
18731fi
18732
18733done
18734
18735  fi
18736  if test "$ac_cv_header_winsock2_h" = yes; then
18737    HAVE_WINSOCK2_H=1
18738    UNISTD_H_HAVE_WINSOCK2_H=1
18739    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18740  else
18741    HAVE_WINSOCK2_H=0
18742  fi
18743
18744
18745  if test $HAVE_WINSOCK2_H = 1; then
18746    ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
18747"
18748if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
18749  ac_have_decl=1
18750else
18751  ac_have_decl=0
18752fi
18753
18754cat >>confdefs.h <<_ACEOF
18755#define HAVE_DECL_INET_NTOP $ac_have_decl
18756_ACEOF
18757
18758    if test $ac_cv_have_decl_inet_ntop = yes; then
18759                  REPLACE_INET_NTOP=1
18760      INET_NTOP_LIB="-lws2_32"
18761    else
18762      HAVE_DECL_INET_NTOP=0
18763      HAVE_INET_NTOP=0
18764    fi
18765  else
18766    gl_save_LIBS=$LIBS
18767    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
18768$as_echo_n "checking for library containing inet_ntop... " >&6; }
18769if ${ac_cv_search_inet_ntop+:} false; then :
18770  $as_echo_n "(cached) " >&6
18771else
18772  ac_func_search_save_LIBS=$LIBS
18773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18774/* end confdefs.h.  */
18775
18776/* Override any GCC internal prototype to avoid an error.
18777   Use char because int might match the return type of a GCC
18778   builtin and then its argument prototype would still apply.  */
18779#ifdef __cplusplus
18780extern "C"
18781#endif
18782char inet_ntop ();
18783int
18784main ()
18785{
18786return inet_ntop ();
18787  ;
18788  return 0;
18789}
18790_ACEOF
18791for ac_lib in '' nsl resolv; do
18792  if test -z "$ac_lib"; then
18793    ac_res="none required"
18794  else
18795    ac_res=-l$ac_lib
18796    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18797  fi
18798  if ac_fn_c_try_link "$LINENO"; then :
18799  ac_cv_search_inet_ntop=$ac_res
18800fi
18801rm -f core conftest.err conftest.$ac_objext \
18802    conftest$ac_exeext
18803  if ${ac_cv_search_inet_ntop+:} false; then :
18804  break
18805fi
18806done
18807if ${ac_cv_search_inet_ntop+:} false; then :
18808
18809else
18810  ac_cv_search_inet_ntop=no
18811fi
18812rm conftest.$ac_ext
18813LIBS=$ac_func_search_save_LIBS
18814fi
18815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
18816$as_echo "$ac_cv_search_inet_ntop" >&6; }
18817ac_res=$ac_cv_search_inet_ntop
18818if test "$ac_res" != no; then :
18819  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18820
18821else
18822  for ac_func in inet_ntop
18823do :
18824  ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
18825if test "x$ac_cv_func_inet_ntop" = xyes; then :
18826  cat >>confdefs.h <<_ACEOF
18827#define HAVE_INET_NTOP 1
18828_ACEOF
18829
18830fi
18831done
18832
18833       if test $ac_cv_func_inet_ntop = no; then
18834         HAVE_INET_NTOP=0
18835       fi
18836
18837fi
18838
18839    LIBS=$gl_save_LIBS
18840
18841    if test "$ac_cv_search_inet_ntop" != "no" \
18842       && test "$ac_cv_search_inet_ntop" != "none required"; then
18843      INET_NTOP_LIB="$ac_cv_search_inet_ntop"
18844    fi
18845
18846
18847    ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
18848        #if HAVE_NETDB_H
18849        # include <netdb.h>
18850        #endif
18851
18852"
18853if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
18854  ac_have_decl=1
18855else
18856  ac_have_decl=0
18857fi
18858
18859cat >>confdefs.h <<_ACEOF
18860#define HAVE_DECL_INET_NTOP $ac_have_decl
18861_ACEOF
18862
18863    if test $ac_cv_have_decl_inet_ntop = no; then
18864      HAVE_DECL_INET_NTOP=0
18865    fi
18866  fi
18867
18868
18869  if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
18870
18871
18872
18873
18874
18875
18876
18877
18878  gl_LIBOBJS="$gl_LIBOBJS inet_ntop.$ac_objext"
18879
18880
18881
18882
18883  fi
18884
18885
18886
18887
18888
18889          GNULIB_INET_NTOP=1
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901              HAVE_INET_PTON=1
18902  INET_PTON_LIB=
18903
18904
18905
18906
18907  if test $ac_cv_header_sys_socket_h != yes; then
18908                    for ac_header in winsock2.h
18909do :
18910  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18911if test "x$ac_cv_header_winsock2_h" = xyes; then :
18912  cat >>confdefs.h <<_ACEOF
18913#define HAVE_WINSOCK2_H 1
18914_ACEOF
18915
18916fi
18917
18918done
18919
18920  fi
18921  if test "$ac_cv_header_winsock2_h" = yes; then
18922    HAVE_WINSOCK2_H=1
18923    UNISTD_H_HAVE_WINSOCK2_H=1
18924    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18925  else
18926    HAVE_WINSOCK2_H=0
18927  fi
18928
18929
18930  if test $HAVE_WINSOCK2_H = 1; then
18931    ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <ws2tcpip.h>
18932"
18933if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
18934  ac_have_decl=1
18935else
18936  ac_have_decl=0
18937fi
18938
18939cat >>confdefs.h <<_ACEOF
18940#define HAVE_DECL_INET_PTON $ac_have_decl
18941_ACEOF
18942
18943    if test $ac_cv_have_decl_inet_pton = yes; then
18944                  REPLACE_INET_PTON=1
18945      INET_PTON_LIB="-lws2_32"
18946    else
18947      HAVE_DECL_INET_PTON=0
18948      HAVE_INET_PTON=0
18949    fi
18950  else
18951    gl_save_LIBS=$LIBS
18952    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
18953$as_echo_n "checking for library containing inet_pton... " >&6; }
18954if ${ac_cv_search_inet_pton+:} false; then :
18955  $as_echo_n "(cached) " >&6
18956else
18957  ac_func_search_save_LIBS=$LIBS
18958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18959/* end confdefs.h.  */
18960
18961/* Override any GCC internal prototype to avoid an error.
18962   Use char because int might match the return type of a GCC
18963   builtin and then its argument prototype would still apply.  */
18964#ifdef __cplusplus
18965extern "C"
18966#endif
18967char inet_pton ();
18968int
18969main ()
18970{
18971return inet_pton ();
18972  ;
18973  return 0;
18974}
18975_ACEOF
18976for ac_lib in '' nsl resolv; do
18977  if test -z "$ac_lib"; then
18978    ac_res="none required"
18979  else
18980    ac_res=-l$ac_lib
18981    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18982  fi
18983  if ac_fn_c_try_link "$LINENO"; then :
18984  ac_cv_search_inet_pton=$ac_res
18985fi
18986rm -f core conftest.err conftest.$ac_objext \
18987    conftest$ac_exeext
18988  if ${ac_cv_search_inet_pton+:} false; then :
18989  break
18990fi
18991done
18992if ${ac_cv_search_inet_pton+:} false; then :
18993
18994else
18995  ac_cv_search_inet_pton=no
18996fi
18997rm conftest.$ac_ext
18998LIBS=$ac_func_search_save_LIBS
18999fi
19000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
19001$as_echo "$ac_cv_search_inet_pton" >&6; }
19002ac_res=$ac_cv_search_inet_pton
19003if test "$ac_res" != no; then :
19004  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19005
19006else
19007  for ac_func in inet_pton
19008do :
19009  ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
19010if test "x$ac_cv_func_inet_pton" = xyes; then :
19011  cat >>confdefs.h <<_ACEOF
19012#define HAVE_INET_PTON 1
19013_ACEOF
19014
19015fi
19016done
19017
19018       if test $ac_cv_func_inet_pton = no; then
19019         HAVE_INET_PTON=0
19020       fi
19021
19022fi
19023
19024    LIBS=$gl_save_LIBS
19025
19026    if test "$ac_cv_search_inet_pton" != "no" \
19027       && test "$ac_cv_search_inet_pton" != "none required"; then
19028      INET_PTON_LIB="$ac_cv_search_inet_pton"
19029    fi
19030
19031
19032    ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
19033        #if HAVE_NETDB_H
19034        # include <netdb.h>
19035        #endif
19036
19037"
19038if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
19039  ac_have_decl=1
19040else
19041  ac_have_decl=0
19042fi
19043
19044cat >>confdefs.h <<_ACEOF
19045#define HAVE_DECL_INET_PTON $ac_have_decl
19046_ACEOF
19047
19048    if test $ac_cv_have_decl_inet_pton = no; then
19049      HAVE_DECL_INET_PTON=0
19050    fi
19051  fi
19052
19053
19054  if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_NTOP = 1; then
19055
19056
19057
19058
19059
19060
19061
19062
19063  gl_LIBOBJS="$gl_LIBOBJS inet_pton.$ac_objext"
19064
19065
19066
19067
19068  fi
19069
19070
19071
19072
19073
19074          GNULIB_INET_PTON=1
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093     if test $gl_cv_have_include_next = yes; then
19094       gl_cv_next_langinfo_h='<'langinfo.h'>'
19095     else
19096       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
19097$as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
19098if ${gl_cv_next_langinfo_h+:} false; then :
19099  $as_echo_n "(cached) " >&6
19100else
19101
19102             if test $ac_cv_header_langinfo_h = yes; then
19103
19104
19105               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19106/* end confdefs.h.  */
19107#include <langinfo.h>
19108
19109_ACEOF
19110                                                                                                                        case "$host_os" in
19111                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19112                 *)    gl_absname_cpp="$ac_cpp" ;;
19113               esac
19114
19115               case "$host_os" in
19116                 mingw*)
19117                                                                                                                                     gl_dirsep_regex='[/\\]'
19118                   ;;
19119                 *)
19120                   gl_dirsep_regex='\/'
19121                   ;;
19122               esac
19123                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19124
19125               gl_header_literal_regex=`echo 'langinfo.h' \
19126                                        | sed -e "$gl_make_literal_regex_sed"`
19127               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19128                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19129                   s|^/[^/]|//&|
19130                   p
19131                   q
19132                 }'
19133                                                            gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19134                      sed -n "$gl_absolute_header_sed"`'"'
19135          else
19136               gl_cv_next_langinfo_h='<'langinfo.h'>'
19137             fi
19138
19139
19140fi
19141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
19142$as_echo "$gl_cv_next_langinfo_h" >&6; }
19143     fi
19144     NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
19145
19146     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19147       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19148       gl_next_as_first_directive='<'langinfo.h'>'
19149     else
19150       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19151       gl_next_as_first_directive=$gl_cv_next_langinfo_h
19152     fi
19153     NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
19154
19155
19156
19157
19158
19159    HAVE_LANGINFO_CODESET=0
19160  HAVE_LANGINFO_T_FMT_AMPM=0
19161  HAVE_LANGINFO_ERA=0
19162  HAVE_LANGINFO_YESEXPR=0
19163
19164  if test $ac_cv_header_langinfo_h = yes; then
19165    HAVE_LANGINFO_H=1
19166            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
19167$as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
19168if ${gl_cv_header_langinfo_codeset+:} false; then :
19169  $as_echo_n "(cached) " >&6
19170else
19171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19172/* end confdefs.h.  */
19173#include <langinfo.h>
19174int a = CODESET;
19175
19176int
19177main ()
19178{
19179
19180  ;
19181  return 0;
19182}
19183_ACEOF
19184if ac_fn_c_try_compile "$LINENO"; then :
19185  gl_cv_header_langinfo_codeset=yes
19186else
19187  gl_cv_header_langinfo_codeset=no
19188fi
19189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19190
19191fi
19192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
19193$as_echo "$gl_cv_header_langinfo_codeset" >&6; }
19194    if test $gl_cv_header_langinfo_codeset = yes; then
19195      HAVE_LANGINFO_CODESET=1
19196    fi
19197    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
19198$as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
19199if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then :
19200  $as_echo_n "(cached) " >&6
19201else
19202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19203/* end confdefs.h.  */
19204#include <langinfo.h>
19205int a = T_FMT_AMPM;
19206
19207int
19208main ()
19209{
19210
19211  ;
19212  return 0;
19213}
19214_ACEOF
19215if ac_fn_c_try_compile "$LINENO"; then :
19216  gl_cv_header_langinfo_t_fmt_ampm=yes
19217else
19218  gl_cv_header_langinfo_t_fmt_ampm=no
19219fi
19220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19221
19222fi
19223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
19224$as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
19225    if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
19226      HAVE_LANGINFO_T_FMT_AMPM=1
19227    fi
19228    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
19229$as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
19230if ${gl_cv_header_langinfo_era+:} false; then :
19231  $as_echo_n "(cached) " >&6
19232else
19233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19234/* end confdefs.h.  */
19235#include <langinfo.h>
19236int a = ERA;
19237
19238int
19239main ()
19240{
19241
19242  ;
19243  return 0;
19244}
19245_ACEOF
19246if ac_fn_c_try_compile "$LINENO"; then :
19247  gl_cv_header_langinfo_era=yes
19248else
19249  gl_cv_header_langinfo_era=no
19250fi
19251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19252
19253fi
19254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
19255$as_echo "$gl_cv_header_langinfo_era" >&6; }
19256    if test $gl_cv_header_langinfo_era = yes; then
19257      HAVE_LANGINFO_ERA=1
19258    fi
19259    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
19260$as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
19261if ${gl_cv_header_langinfo_yesexpr+:} false; then :
19262  $as_echo_n "(cached) " >&6
19263else
19264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19265/* end confdefs.h.  */
19266#include <langinfo.h>
19267int a = YESEXPR;
19268
19269int
19270main ()
19271{
19272
19273  ;
19274  return 0;
19275}
19276_ACEOF
19277if ac_fn_c_try_compile "$LINENO"; then :
19278  gl_cv_header_langinfo_yesexpr=yes
19279else
19280  gl_cv_header_langinfo_yesexpr=no
19281fi
19282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19283
19284fi
19285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
19286$as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
19287    if test $gl_cv_header_langinfo_yesexpr = yes; then
19288      HAVE_LANGINFO_YESEXPR=1
19289    fi
19290  else
19291    HAVE_LANGINFO_H=0
19292  fi
19293
19294
19295
19296
19297
19298
19299
19300    for gl_func in nl_langinfo; do
19301    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19302    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19303$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19304if eval \${$as_gl_Symbol+:} false; then :
19305  $as_echo_n "(cached) " >&6
19306else
19307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19308/* end confdefs.h.  */
19309#include <langinfo.h>
19310
19311int
19312main ()
19313{
19314#undef $gl_func
19315  (void) $gl_func;
19316  ;
19317  return 0;
19318}
19319_ACEOF
19320if ac_fn_c_try_compile "$LINENO"; then :
19321  eval "$as_gl_Symbol=yes"
19322else
19323  eval "$as_gl_Symbol=no"
19324fi
19325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19326fi
19327eval ac_res=\$$as_gl_Symbol
19328	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19329$as_echo "$ac_res" >&6; }
19330    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19331  cat >>confdefs.h <<_ACEOF
19332#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19333_ACEOF
19334
19335                     eval ac_cv_have_decl_$gl_func=yes
19336fi
19337      done
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349  LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359  case "$host_os" in
19360    solaris*)
19361
19362$as_echo "#define _LCONV_C99 1" >>confdefs.h
19363
19364      ;;
19365  esac
19366
19367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
19368$as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
19369if ${gl_cv_header_locale_h_posix2001+:} false; then :
19370  $as_echo_n "(cached) " >&6
19371else
19372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19373/* end confdefs.h.  */
19374#include <locale.h>
19375            int x = LC_MESSAGES;
19376            int y = sizeof (((struct lconv *) 0)->decimal_point);
19377int
19378main ()
19379{
19380
19381  ;
19382  return 0;
19383}
19384_ACEOF
19385if ac_fn_c_try_compile "$LINENO"; then :
19386  gl_cv_header_locale_h_posix2001=yes
19387else
19388  gl_cv_header_locale_h_posix2001=no
19389fi
19390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19391fi
19392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
19393$as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
19394
19395
19396  if test $ac_cv_header_xlocale_h = yes; then
19397    HAVE_XLOCALE_H=1
19398                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
19399$as_echo_n "checking whether locale.h defines locale_t... " >&6; }
19400if ${gl_cv_header_locale_has_locale_t+:} false; then :
19401  $as_echo_n "(cached) " >&6
19402else
19403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19404/* end confdefs.h.  */
19405#include <locale.h>
19406              locale_t x;
19407int
19408main ()
19409{
19410
19411  ;
19412  return 0;
19413}
19414_ACEOF
19415if ac_fn_c_try_compile "$LINENO"; then :
19416  gl_cv_header_locale_has_locale_t=yes
19417else
19418  gl_cv_header_locale_has_locale_t=no
19419fi
19420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19421
19422fi
19423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
19424$as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
19425    if test $gl_cv_header_locale_has_locale_t = yes; then
19426      gl_cv_header_locale_h_needs_xlocale_h=no
19427    else
19428      gl_cv_header_locale_h_needs_xlocale_h=yes
19429    fi
19430  else
19431    HAVE_XLOCALE_H=0
19432    gl_cv_header_locale_h_needs_xlocale_h=no
19433  fi
19434
19435
19436          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
19437$as_echo_n "checking whether struct lconv is properly defined... " >&6; }
19438if ${gl_cv_sys_struct_lconv_ok+:} false; then :
19439  $as_echo_n "(cached) " >&6
19440else
19441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19442/* end confdefs.h.  */
19443#include <locale.h>
19444            struct lconv l;
19445            int x = sizeof (l.decimal_point);
19446            int y = sizeof (l.int_p_cs_precedes);
19447int
19448main ()
19449{
19450
19451  ;
19452  return 0;
19453}
19454_ACEOF
19455if ac_fn_c_try_compile "$LINENO"; then :
19456  gl_cv_sys_struct_lconv_ok=yes
19457else
19458  gl_cv_sys_struct_lconv_ok=no
19459fi
19460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19461
19462fi
19463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
19464$as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
19465  if test $gl_cv_sys_struct_lconv_ok = no; then
19466    REPLACE_STRUCT_LCONV=1
19467  fi
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477     if test $gl_cv_have_include_next = yes; then
19478       gl_cv_next_locale_h='<'locale.h'>'
19479     else
19480       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
19481$as_echo_n "checking absolute name of <locale.h>... " >&6; }
19482if ${gl_cv_next_locale_h+:} false; then :
19483  $as_echo_n "(cached) " >&6
19484else
19485
19486               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19487/* end confdefs.h.  */
19488#include <locale.h>
19489
19490_ACEOF
19491                                                                                                                        case "$host_os" in
19492                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19493                 *)    gl_absname_cpp="$ac_cpp" ;;
19494               esac
19495
19496               case "$host_os" in
19497                 mingw*)
19498                                                                                                                                     gl_dirsep_regex='[/\\]'
19499                   ;;
19500                 *)
19501                   gl_dirsep_regex='\/'
19502                   ;;
19503               esac
19504                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19505
19506               gl_header_literal_regex=`echo 'locale.h' \
19507                                        | sed -e "$gl_make_literal_regex_sed"`
19508               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19509                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19510                   s|^/[^/]|//&|
19511                   p
19512                   q
19513                 }'
19514                                                            gl_cv_next_locale_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19515                      sed -n "$gl_absolute_header_sed"`'"'
19516
19517
19518fi
19519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
19520$as_echo "$gl_cv_next_locale_h" >&6; }
19521     fi
19522     NEXT_LOCALE_H=$gl_cv_next_locale_h
19523
19524     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19525       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19526       gl_next_as_first_directive='<'locale.h'>'
19527     else
19528       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19529       gl_next_as_first_directive=$gl_cv_next_locale_h
19530     fi
19531     NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
19532
19533
19534
19535
19536
19537
19538    for gl_func in setlocale duplocale; do
19539    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19540    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19541$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19542if eval \${$as_gl_Symbol+:} false; then :
19543  $as_echo_n "(cached) " >&6
19544else
19545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19546/* end confdefs.h.  */
19547#include <locale.h>
19548/* Some systems provide declarations in a non-standard header.  */
19549#if HAVE_XLOCALE_H
19550# include <xlocale.h>
19551#endif
19552
19553int
19554main ()
19555{
19556#undef $gl_func
19557  (void) $gl_func;
19558  ;
19559  return 0;
19560}
19561_ACEOF
19562if ac_fn_c_try_compile "$LINENO"; then :
19563  eval "$as_gl_Symbol=yes"
19564else
19565  eval "$as_gl_Symbol=no"
19566fi
19567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19568fi
19569eval ac_res=\$$as_gl_Symbol
19570	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19571$as_echo "$ac_res" >&6; }
19572    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19573  cat >>confdefs.h <<_ACEOF
19574#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19575_ACEOF
19576
19577                     eval ac_cv_have_decl_$gl_func=yes
19578fi
19579      done
19580
19581
19582
19583
19584
19585
19586  if test $REPLACE_STRUCT_LCONV = 1; then
19587    REPLACE_LOCALECONV=1
19588  fi
19589
19590  if test $REPLACE_LOCALECONV = 1; then
19591
19592
19593
19594
19595
19596
19597
19598
19599  gl_LIBOBJS="$gl_LIBOBJS localeconv.$ac_objext"
19600
19601
19602  ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
19603"
19604if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
19605
19606cat >>confdefs.h <<_ACEOF
19607#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
19608_ACEOF
19609
19610
19611fi
19612
19613
19614  fi
19615
19616
19617
19618
19619
19620          GNULIB_LOCALECONV=1
19621
19622
19623
19624
19625
19626$as_echo "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h
19627
19628
19629
19630
19631
19632  if test "$gl_threads_api" = posix; then
19633    # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
19634    # pthread_rwlock_* functions.
19635    ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
19636"
19637if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
19638
19639$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
19640
19641fi
19642
19643    # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
19644    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19645/* end confdefs.h.  */
19646
19647      #include <pthread.h>
19648int
19649main ()
19650{
19651
19652#if __FreeBSD__ == 4
19653error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
19654#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
19655       && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
19656error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
19657#else
19658int x = (int)PTHREAD_MUTEX_RECURSIVE;
19659return !x;
19660#endif
19661
19662  ;
19663  return 0;
19664}
19665_ACEOF
19666if ac_fn_c_try_compile "$LINENO"; then :
19667
19668$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
19669
19670fi
19671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19672  fi
19673  :
19674
19675
19676
19677
19678
19679
19680
19681  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
19682$as_echo_n "checking whether lseek detects pipes... " >&6; }
19683if ${gl_cv_func_lseek_pipe+:} false; then :
19684  $as_echo_n "(cached) " >&6
19685else
19686  case "$host_os" in
19687       mingw*)
19688                                                               gl_cv_func_lseek_pipe=no
19689         ;;
19690       *)
19691         if test $cross_compiling = no; then
19692           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19693/* end confdefs.h.  */
19694
19695#include <sys/types.h> /* for off_t */
19696#include <stdio.h> /* for SEEK_CUR */
19697#if HAVE_UNISTD_H
19698# include <unistd.h>
19699#else /* on Windows with MSVC */
19700# include <io.h>
19701#endif
19702
19703int
19704main ()
19705{
19706
19707  /* Exit with success only if stdin is seekable.  */
19708  return lseek (0, (off_t)0, SEEK_CUR) < 0;
19709
19710  ;
19711  return 0;
19712}
19713_ACEOF
19714if ac_fn_c_try_link "$LINENO"; then :
19715  if test -s conftest$ac_exeext \
19716                 && ./conftest$ac_exeext < conftest.$ac_ext \
19717                 && test 1 = "`echo hi \
19718                   | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
19719                gl_cv_func_lseek_pipe=yes
19720              else
19721                gl_cv_func_lseek_pipe=no
19722              fi
19723
19724else
19725  gl_cv_func_lseek_pipe=no
19726fi
19727rm -f core conftest.err conftest.$ac_objext \
19728    conftest$ac_exeext conftest.$ac_ext
19729         else
19730           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19731/* end confdefs.h.  */
19732
19733#if defined __BEOS__
19734/* BeOS mistakenly return 0 when trying to seek on pipes.  */
19735  Choke me.
19736#endif
19737_ACEOF
19738if ac_fn_c_try_compile "$LINENO"; then :
19739  gl_cv_func_lseek_pipe=yes
19740else
19741  gl_cv_func_lseek_pipe=no
19742fi
19743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19744         fi
19745         ;;
19746     esac
19747
19748fi
19749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
19750$as_echo "$gl_cv_func_lseek_pipe" >&6; }
19751  if test $gl_cv_func_lseek_pipe = no; then
19752    REPLACE_LSEEK=1
19753
19754$as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
19755
19756  fi
19757
19758
19759  if test $WINDOWS_64_BIT_OFF_T = 1; then
19760    REPLACE_LSEEK=1
19761  fi
19762
19763  if test $REPLACE_LSEEK = 1; then
19764
19765
19766
19767
19768
19769
19770
19771
19772  gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
19773
19774  fi
19775
19776
19777
19778
19779
19780          GNULIB_LSEEK=1
19781
19782
19783
19784
19785
19786$as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
19787
19788
19789
19790
19791
19792
19793  if test $ac_cv_func_lstat = yes; then
19794
19795    case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19796      *no)
19797        REPLACE_LSTAT=1
19798        ;;
19799    esac
19800  else
19801    HAVE_LSTAT=0
19802  fi
19803
19804  if test $REPLACE_LSTAT = 1; then
19805
19806
19807
19808
19809
19810
19811
19812
19813  gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
19814
19815    :
19816  fi
19817
19818
19819
19820
19821
19822          GNULIB_LSTAT=1
19823
19824
19825
19826
19827
19828$as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
19829
19830
19831
19832
19833
19834
19835      for ac_header in stdlib.h
19836do :
19837  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
19838if test "x$ac_cv_header_stdlib_h" = xyes; then :
19839  cat >>confdefs.h <<_ACEOF
19840#define HAVE_STDLIB_H 1
19841_ACEOF
19842
19843fi
19844
19845done
19846
19847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
19848$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
19849if ${ac_cv_func_malloc_0_nonnull+:} false; then :
19850  $as_echo_n "(cached) " >&6
19851else
19852  if test "$cross_compiling" = yes; then :
19853  case "$host_os" in
19854          # Guess yes on platforms where we know the result.
19855          *-gnu* | freebsd* | netbsd* | openbsd* \
19856          | hpux* | solaris* | cygwin* | mingw*)
19857            ac_cv_func_malloc_0_nonnull=yes ;;
19858          # If we don't know, assume the worst.
19859          *) ac_cv_func_malloc_0_nonnull=no ;;
19860        esac
19861
19862else
19863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19864/* end confdefs.h.  */
19865#if defined STDC_HEADERS || defined HAVE_STDLIB_H
19866            # include <stdlib.h>
19867            #else
19868            char *malloc ();
19869            #endif
19870
19871int
19872main ()
19873{
19874return ! malloc (0);
19875  ;
19876  return 0;
19877}
19878
19879_ACEOF
19880if ac_fn_c_try_run "$LINENO"; then :
19881  ac_cv_func_malloc_0_nonnull=yes
19882else
19883  ac_cv_func_malloc_0_nonnull=no
19884fi
19885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19886  conftest.$ac_objext conftest.beam conftest.$ac_ext
19887fi
19888
19889
19890fi
19891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
19892$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
19893  if test $ac_cv_func_malloc_0_nonnull = yes; then :
19894
19895$as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
19896
19897else
19898  $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
19899
19900     REPLACE_MALLOC=1
19901
19902fi
19903
19904
19905  if test $REPLACE_MALLOC = 1; then
19906
19907
19908
19909
19910
19911
19912
19913
19914  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
19915
19916  fi
19917
19918
19919cat >>confdefs.h <<_ACEOF
19920#define GNULIB_MALLOC_GNU 1
19921_ACEOF
19922
19923
19924
19925
19926
19927  if test $gl_cv_func_malloc_posix = yes; then
19928
19929$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
19930
19931  else
19932    REPLACE_MALLOC=1
19933  fi
19934
19935  if test $REPLACE_MALLOC = 1; then
19936
19937
19938
19939
19940
19941
19942
19943
19944  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
19945
19946  fi
19947
19948
19949
19950
19951
19952          GNULIB_MALLOC_POSIX=1
19953
19954
19955
19956
19957
19958$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19973
19974
19975
19976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19977$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19978if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
19979  $as_echo_n "(cached) " >&6
19980else
19981
19982                  case "$host_os" in
19983                     # Guess no on AIX and OSF/1.
19984        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
19985                     # Guess yes otherwise.
19986        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
19987      esac
19988      if test $LOCALE_JA != none; then
19989        if test "$cross_compiling" = yes; then :
19990  :
19991else
19992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19993/* end confdefs.h.  */
19994
19995#include <locale.h>
19996#include <string.h>
19997/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19998   <wchar.h>.
19999   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20000   included before <wchar.h>.  */
20001#include <stddef.h>
20002#include <stdio.h>
20003#include <time.h>
20004#include <wchar.h>
20005int main ()
20006{
20007  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20008    {
20009      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20010      mbstate_t state;
20011      wchar_t wc;
20012
20013      memset (&state, '\0', sizeof (mbstate_t));
20014      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20015        if (mbsinit (&state))
20016          return 1;
20017    }
20018  return 0;
20019}
20020_ACEOF
20021if ac_fn_c_try_run "$LINENO"; then :
20022  gl_cv_func_mbrtowc_incomplete_state=yes
20023else
20024  gl_cv_func_mbrtowc_incomplete_state=no
20025fi
20026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20027  conftest.$ac_objext conftest.beam conftest.$ac_ext
20028fi
20029
20030      fi
20031
20032fi
20033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20034$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20035
20036
20037
20038
20039     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
20040$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20041if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
20042  $as_echo_n "(cached) " >&6
20043else
20044
20045                  case "$host_os" in
20046                    # Guess no on Solaris 8.
20047        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
20048                    # Guess yes otherwise.
20049        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
20050      esac
20051      if test $LOCALE_ZH_CN != none; then
20052        if test "$cross_compiling" = yes; then :
20053  :
20054else
20055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20056/* end confdefs.h.  */
20057
20058#include <locale.h>
20059#include <stdlib.h>
20060#include <string.h>
20061/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20062   <wchar.h>.
20063   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20064   included before <wchar.h>.  */
20065#include <stddef.h>
20066#include <stdio.h>
20067#include <time.h>
20068#include <wchar.h>
20069int main ()
20070{
20071  /* This fails on Solaris 8:
20072     mbrtowc returns 2, and sets wc to 0x00F0.
20073     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
20074  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20075    {
20076      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20077      mbstate_t state;
20078      wchar_t wc;
20079
20080      memset (&state, '\0', sizeof (mbstate_t));
20081      if (mbrtowc (&wc, input + 3, 6, &state) != 4
20082          && mbtowc (&wc, input + 3, 6) == 4)
20083        return 1;
20084    }
20085  return 0;
20086}
20087_ACEOF
20088if ac_fn_c_try_run "$LINENO"; then :
20089  gl_cv_func_mbrtowc_sanitycheck=yes
20090else
20091  gl_cv_func_mbrtowc_sanitycheck=no
20092fi
20093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20094  conftest.$ac_objext conftest.beam conftest.$ac_ext
20095fi
20096
20097      fi
20098
20099fi
20100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20101$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20102
20103    REPLACE_MBSTATE_T=0
20104    case "$gl_cv_func_mbrtowc_incomplete_state" in
20105      *yes) ;;
20106      *) REPLACE_MBSTATE_T=1 ;;
20107    esac
20108    case "$gl_cv_func_mbrtowc_sanitycheck" in
20109      *yes) ;;
20110      *) REPLACE_MBSTATE_T=1 ;;
20111    esac
20112  else
20113    REPLACE_MBSTATE_T=1
20114  fi
20115
20116
20117
20118  if test $ac_cv_func_mbrtowc = no; then
20119    HAVE_MBRTOWC=0
20120    ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
20121/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20122   <wchar.h>.
20123   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20124   included before <wchar.h>.  */
20125#include <stddef.h>
20126#include <stdio.h>
20127#include <time.h>
20128#include <wchar.h>
20129
20130"
20131if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
20132  ac_have_decl=1
20133else
20134  ac_have_decl=0
20135fi
20136
20137cat >>confdefs.h <<_ACEOF
20138#define HAVE_DECL_MBRTOWC $ac_have_decl
20139_ACEOF
20140
20141    if test $ac_cv_have_decl_mbrtowc = yes; then
20142                        REPLACE_MBRTOWC=1
20143    fi
20144  else
20145    if test $REPLACE_MBSTATE_T = 1; then
20146      REPLACE_MBRTOWC=1
20147    else
20148
20149
20150
20151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
20152$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
20153if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
20154  $as_echo_n "(cached) " >&6
20155else
20156
20157                  case "$host_os" in
20158                  # Guess no on Solaris.
20159        solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
20160                  # Guess yes otherwise.
20161        *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
20162      esac
20163      if test $LOCALE_FR_UTF8 != none; then
20164        if test "$cross_compiling" = yes; then :
20165  :
20166else
20167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20168/* end confdefs.h.  */
20169
20170#include <locale.h>
20171#include <stdlib.h>
20172#include <string.h>
20173/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20174   <wchar.h>.
20175   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20176   included before <wchar.h>.  */
20177#include <stddef.h>
20178#include <stdio.h>
20179#include <time.h>
20180#include <wchar.h>
20181int main ()
20182{
20183  int result = 0;
20184
20185  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20186    {
20187      char input[] = "\303\237er";
20188      mbstate_t state;
20189      wchar_t wc;
20190      size_t ret;
20191
20192      memset (&state, '\0', sizeof (mbstate_t));
20193      wc = (wchar_t) 0xBADFACE;
20194      ret = mbrtowc (&wc, input, 5, &state);
20195      if (ret != 2)
20196        result |= 1;
20197      if (!mbsinit (&state))
20198        result |= 2;
20199
20200      memset (&state, '\0', sizeof (mbstate_t));
20201      ret = mbrtowc (NULL, input, 5, &state);
20202      if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
20203        result |= 4;
20204      if (!mbsinit (&state))
20205        result |= 8;
20206    }
20207  return result;
20208}
20209_ACEOF
20210if ac_fn_c_try_run "$LINENO"; then :
20211  gl_cv_func_mbrtowc_null_arg1=yes
20212else
20213  gl_cv_func_mbrtowc_null_arg1=no
20214fi
20215rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20216  conftest.$ac_objext conftest.beam conftest.$ac_ext
20217fi
20218
20219      fi
20220
20221fi
20222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
20223$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
20224
20225
20226
20227
20228     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
20229$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
20230if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
20231  $as_echo_n "(cached) " >&6
20232else
20233
20234                  case "$host_os" in
20235              # Guess no on OSF/1.
20236        osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
20237              # Guess yes otherwise.
20238        *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
20239      esac
20240      if test $LOCALE_FR_UTF8 != none; then
20241        if test "$cross_compiling" = yes; then :
20242  :
20243else
20244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20245/* end confdefs.h.  */
20246
20247#include <locale.h>
20248#include <string.h>
20249/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20250   <wchar.h>.
20251   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20252   included before <wchar.h>.  */
20253#include <stddef.h>
20254#include <stdio.h>
20255#include <time.h>
20256#include <wchar.h>
20257int main ()
20258{
20259  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20260    {
20261      mbstate_t state;
20262      wchar_t wc;
20263      int ret;
20264
20265      memset (&state, '\0', sizeof (mbstate_t));
20266      wc = (wchar_t) 0xBADFACE;
20267      mbrtowc (&wc, NULL, 5, &state);
20268      /* Check that wc was not modified.  */
20269      if (wc != (wchar_t) 0xBADFACE)
20270        return 1;
20271    }
20272  return 0;
20273}
20274_ACEOF
20275if ac_fn_c_try_run "$LINENO"; then :
20276  gl_cv_func_mbrtowc_null_arg2=yes
20277else
20278  gl_cv_func_mbrtowc_null_arg2=no
20279fi
20280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20281  conftest.$ac_objext conftest.beam conftest.$ac_ext
20282fi
20283
20284      fi
20285
20286fi
20287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
20288$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
20289
20290
20291
20292
20293
20294
20295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
20296$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
20297if ${gl_cv_func_mbrtowc_retval+:} false; then :
20298  $as_echo_n "(cached) " >&6
20299else
20300
20301                  case "$host_os" in
20302                                   # Guess no on HP-UX, Solaris, native Windows.
20303        hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
20304                                   # Guess yes otherwise.
20305        *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
20306      esac
20307      if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
20308         || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
20309        if test "$cross_compiling" = yes; then :
20310  :
20311else
20312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20313/* end confdefs.h.  */
20314
20315#include <locale.h>
20316#include <string.h>
20317/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20318   <wchar.h>.
20319   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20320   included before <wchar.h>.  */
20321#include <stddef.h>
20322#include <stdio.h>
20323#include <time.h>
20324#include <wchar.h>
20325int main ()
20326{
20327  int result = 0;
20328  int found_some_locale = 0;
20329  /* This fails on Solaris.  */
20330  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20331    {
20332      char input[] = "B\303\274\303\237er"; /* "Büßer" */
20333      mbstate_t state;
20334      wchar_t wc;
20335
20336      memset (&state, '\0', sizeof (mbstate_t));
20337      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20338        {
20339          input[1] = '\0';
20340          if (mbrtowc (&wc, input + 2, 5, &state) != 1)
20341            result |= 1;
20342        }
20343      found_some_locale = 1;
20344    }
20345  /* This fails on HP-UX 11.11.  */
20346  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20347    {
20348      char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20349      mbstate_t state;
20350      wchar_t wc;
20351
20352      memset (&state, '\0', sizeof (mbstate_t));
20353      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20354        {
20355          input[1] = '\0';
20356          if (mbrtowc (&wc, input + 2, 5, &state) != 2)
20357            result |= 2;
20358        }
20359      found_some_locale = 1;
20360    }
20361  /* This fails on native Windows.  */
20362  if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
20363    {
20364      char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
20365      mbstate_t state;
20366      wchar_t wc;
20367
20368      memset (&state, '\0', sizeof (mbstate_t));
20369      if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20370        {
20371          input[3] = '\0';
20372          if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20373            result |= 4;
20374        }
20375      found_some_locale = 1;
20376    }
20377  if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
20378    {
20379      char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
20380      mbstate_t state;
20381      wchar_t wc;
20382
20383      memset (&state, '\0', sizeof (mbstate_t));
20384      if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20385        {
20386          input[3] = '\0';
20387          if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20388            result |= 8;
20389        }
20390      found_some_locale = 1;
20391    }
20392  if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
20393    {
20394      char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
20395      mbstate_t state;
20396      wchar_t wc;
20397
20398      memset (&state, '\0', sizeof (mbstate_t));
20399      if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20400        {
20401          input[3] = '\0';
20402          if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20403            result |= 16;
20404        }
20405      found_some_locale = 1;
20406    }
20407  return (found_some_locale ? result : 77);
20408}
20409_ACEOF
20410if ac_fn_c_try_run "$LINENO"; then :
20411  gl_cv_func_mbrtowc_retval=yes
20412else
20413  if test $? != 77; then
20414             gl_cv_func_mbrtowc_retval=no
20415           fi
20416
20417fi
20418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20419  conftest.$ac_objext conftest.beam conftest.$ac_ext
20420fi
20421
20422      fi
20423
20424fi
20425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
20426$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
20427
20428
20429
20430
20431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
20432$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
20433if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
20434  $as_echo_n "(cached) " >&6
20435else
20436
20437                  case "$host_os" in
20438                       # Guess no on Solaris 8 and 9.
20439        solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
20440                       # Guess yes otherwise.
20441        *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
20442      esac
20443      if test $LOCALE_ZH_CN != none; then
20444        if test "$cross_compiling" = yes; then :
20445  :
20446else
20447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20448/* end confdefs.h.  */
20449
20450#include <locale.h>
20451#include <string.h>
20452/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20453   <wchar.h>.
20454   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20455   included before <wchar.h>.  */
20456#include <stddef.h>
20457#include <stdio.h>
20458#include <time.h>
20459#include <wchar.h>
20460int main ()
20461{
20462  /* This fails on Solaris 8 and 9.  */
20463  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20464    {
20465      mbstate_t state;
20466      wchar_t wc;
20467
20468      memset (&state, '\0', sizeof (mbstate_t));
20469      if (mbrtowc (&wc, "", 1, &state) != 0)
20470        return 1;
20471    }
20472  return 0;
20473}
20474_ACEOF
20475if ac_fn_c_try_run "$LINENO"; then :
20476  gl_cv_func_mbrtowc_nul_retval=yes
20477else
20478  gl_cv_func_mbrtowc_nul_retval=no
20479fi
20480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20481  conftest.$ac_objext conftest.beam conftest.$ac_ext
20482fi
20483
20484      fi
20485
20486fi
20487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
20488$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
20489
20490      case "$gl_cv_func_mbrtowc_null_arg1" in
20491        *yes) ;;
20492        *)
20493$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
20494
20495           REPLACE_MBRTOWC=1
20496           ;;
20497      esac
20498      case "$gl_cv_func_mbrtowc_null_arg2" in
20499        *yes) ;;
20500        *)
20501$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
20502
20503           REPLACE_MBRTOWC=1
20504           ;;
20505      esac
20506      case "$gl_cv_func_mbrtowc_retval" in
20507        *yes) ;;
20508        *)
20509$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
20510
20511           REPLACE_MBRTOWC=1
20512           ;;
20513      esac
20514      case "$gl_cv_func_mbrtowc_nul_retval" in
20515        *yes) ;;
20516        *)
20517$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
20518
20519           REPLACE_MBRTOWC=1
20520           ;;
20521      esac
20522    fi
20523  fi
20524
20525  if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
20526
20527
20528
20529
20530
20531
20532
20533
20534  gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
20535
20536
20537  :
20538
20539  fi
20540
20541
20542
20543
20544
20545          GNULIB_MBRTOWC=1
20546
20547
20548
20549
20550
20551$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20567
20568
20569
20570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
20571$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20572if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
20573  $as_echo_n "(cached) " >&6
20574else
20575
20576                  case "$host_os" in
20577                     # Guess no on AIX and OSF/1.
20578        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
20579                     # Guess yes otherwise.
20580        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
20581      esac
20582      if test $LOCALE_JA != none; then
20583        if test "$cross_compiling" = yes; then :
20584  :
20585else
20586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20587/* end confdefs.h.  */
20588
20589#include <locale.h>
20590#include <string.h>
20591/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20592   <wchar.h>.
20593   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20594   included before <wchar.h>.  */
20595#include <stddef.h>
20596#include <stdio.h>
20597#include <time.h>
20598#include <wchar.h>
20599int main ()
20600{
20601  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20602    {
20603      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20604      mbstate_t state;
20605      wchar_t wc;
20606
20607      memset (&state, '\0', sizeof (mbstate_t));
20608      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20609        if (mbsinit (&state))
20610          return 1;
20611    }
20612  return 0;
20613}
20614_ACEOF
20615if ac_fn_c_try_run "$LINENO"; then :
20616  gl_cv_func_mbrtowc_incomplete_state=yes
20617else
20618  gl_cv_func_mbrtowc_incomplete_state=no
20619fi
20620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20621  conftest.$ac_objext conftest.beam conftest.$ac_ext
20622fi
20623
20624      fi
20625
20626fi
20627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20628$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20629
20630
20631
20632
20633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
20634$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20635if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
20636  $as_echo_n "(cached) " >&6
20637else
20638
20639                  case "$host_os" in
20640                    # Guess no on Solaris 8.
20641        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
20642                    # Guess yes otherwise.
20643        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
20644      esac
20645      if test $LOCALE_ZH_CN != none; then
20646        if test "$cross_compiling" = yes; then :
20647  :
20648else
20649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20650/* end confdefs.h.  */
20651
20652#include <locale.h>
20653#include <stdlib.h>
20654#include <string.h>
20655/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20656   <wchar.h>.
20657   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20658   included before <wchar.h>.  */
20659#include <stddef.h>
20660#include <stdio.h>
20661#include <time.h>
20662#include <wchar.h>
20663int main ()
20664{
20665  /* This fails on Solaris 8:
20666     mbrtowc returns 2, and sets wc to 0x00F0.
20667     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
20668  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20669    {
20670      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20671      mbstate_t state;
20672      wchar_t wc;
20673
20674      memset (&state, '\0', sizeof (mbstate_t));
20675      if (mbrtowc (&wc, input + 3, 6, &state) != 4
20676          && mbtowc (&wc, input + 3, 6) == 4)
20677        return 1;
20678    }
20679  return 0;
20680}
20681_ACEOF
20682if ac_fn_c_try_run "$LINENO"; then :
20683  gl_cv_func_mbrtowc_sanitycheck=yes
20684else
20685  gl_cv_func_mbrtowc_sanitycheck=no
20686fi
20687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20688  conftest.$ac_objext conftest.beam conftest.$ac_ext
20689fi
20690
20691      fi
20692
20693fi
20694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20695$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20696
20697    REPLACE_MBSTATE_T=0
20698    case "$gl_cv_func_mbrtowc_incomplete_state" in
20699      *yes) ;;
20700      *) REPLACE_MBSTATE_T=1 ;;
20701    esac
20702    case "$gl_cv_func_mbrtowc_sanitycheck" in
20703      *yes) ;;
20704      *) REPLACE_MBSTATE_T=1 ;;
20705    esac
20706  else
20707    REPLACE_MBSTATE_T=1
20708  fi
20709
20710
20711
20712  if test $ac_cv_func_mbsinit = no; then
20713    HAVE_MBSINIT=0
20714    ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
20715/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20716   <wchar.h>.
20717   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20718   included before <wchar.h>.  */
20719#include <stddef.h>
20720#include <stdio.h>
20721#include <time.h>
20722#include <wchar.h>
20723
20724"
20725if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
20726  ac_have_decl=1
20727else
20728  ac_have_decl=0
20729fi
20730
20731cat >>confdefs.h <<_ACEOF
20732#define HAVE_DECL_MBSINIT $ac_have_decl
20733_ACEOF
20734
20735    if test $ac_cv_have_decl_mbsinit = yes; then
20736                        REPLACE_MBSINIT=1
20737    fi
20738  else
20739    if test $REPLACE_MBSTATE_T = 1; then
20740      REPLACE_MBSINIT=1
20741    else
20742                        case "$host_os" in
20743        mingw*) REPLACE_MBSINIT=1 ;;
20744      esac
20745    fi
20746  fi
20747
20748  if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
20749
20750
20751
20752
20753
20754
20755
20756
20757  gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
20758
20759
20760  :
20761
20762  fi
20763
20764
20765
20766
20767
20768          GNULIB_MBSINIT=1
20769
20770
20771
20772
20773
20774$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
20775
20776
20777
20778
20779
20780
20781  if false; then
20782    REPLACE_MBTOWC=1
20783  fi
20784
20785  if test $REPLACE_MBTOWC = 1; then
20786
20787
20788
20789
20790
20791
20792
20793
20794  gl_LIBOBJS="$gl_LIBOBJS mbtowc.$ac_objext"
20795
20796
20797  :
20798
20799  fi
20800
20801
20802
20803
20804
20805          GNULIB_MBTOWC=1
20806
20807
20808
20809
20810
20811$as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
20812
20813
20814
20815
20816  if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
20817
20818
20819
20820
20821
20822
20823
20824
20825  gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
20826
20827
20828  for ac_header in bp-sym.h
20829do :
20830  ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
20831if test "x$ac_cv_header_bp_sym_h" = xyes; then :
20832  cat >>confdefs.h <<_ACEOF
20833#define HAVE_BP_SYM_H 1
20834_ACEOF
20835
20836fi
20837
20838done
20839
20840
20841  fi
20842
20843
20844
20845
20846
20847          GNULIB_MEMCHR=1
20848
20849
20850
20851
20852
20853$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
20854
20855
20856
20857
20858
20859  for ac_func in mkdtemp
20860do :
20861  ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
20862if test "x$ac_cv_func_mkdtemp" = xyes; then :
20863  cat >>confdefs.h <<_ACEOF
20864#define HAVE_MKDTEMP 1
20865_ACEOF
20866
20867fi
20868done
20869
20870  if test $ac_cv_func_mkdtemp = no; then
20871    HAVE_MKDTEMP=0
20872  fi
20873
20874  if test $HAVE_MKDTEMP = 0; then
20875
20876
20877
20878
20879
20880
20881
20882
20883  gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"
20884
20885    :
20886
20887  fi
20888
20889
20890
20891
20892
20893          GNULIB_MKDTEMP=1
20894
20895
20896
20897
20898
20899$as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
20900
20901
20902
20903
20904
20905  if test $ac_cv_func__set_invalid_parameter_handler = yes; then
20906    HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
20907
20908$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
20909
20910  else
20911    HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
20912  fi
20913
20914
20915  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20916
20917
20918
20919
20920
20921
20922
20923
20924  gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
20925
20926  fi
20927
20928
20929
20930  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20931
20932
20933
20934
20935
20936
20937
20938
20939  gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
20940
20941  fi
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954     if test $gl_cv_have_include_next = yes; then
20955       gl_cv_next_netdb_h='<'netdb.h'>'
20956     else
20957       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
20958$as_echo_n "checking absolute name of <netdb.h>... " >&6; }
20959if ${gl_cv_next_netdb_h+:} false; then :
20960  $as_echo_n "(cached) " >&6
20961else
20962
20963             if test $ac_cv_header_netdb_h = yes; then
20964
20965
20966               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20967/* end confdefs.h.  */
20968#include <netdb.h>
20969
20970_ACEOF
20971                                                                                                                        case "$host_os" in
20972                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20973                 *)    gl_absname_cpp="$ac_cpp" ;;
20974               esac
20975
20976               case "$host_os" in
20977                 mingw*)
20978                                                                                                                                     gl_dirsep_regex='[/\\]'
20979                   ;;
20980                 *)
20981                   gl_dirsep_regex='\/'
20982                   ;;
20983               esac
20984                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20985
20986               gl_header_literal_regex=`echo 'netdb.h' \
20987                                        | sed -e "$gl_make_literal_regex_sed"`
20988               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20989                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20990                   s|^/[^/]|//&|
20991                   p
20992                   q
20993                 }'
20994                                                            gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20995                      sed -n "$gl_absolute_header_sed"`'"'
20996          else
20997               gl_cv_next_netdb_h='<'netdb.h'>'
20998             fi
20999
21000
21001fi
21002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
21003$as_echo "$gl_cv_next_netdb_h" >&6; }
21004     fi
21005     NEXT_NETDB_H=$gl_cv_next_netdb_h
21006
21007     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21008       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21009       gl_next_as_first_directive='<'netdb.h'>'
21010     else
21011       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21012       gl_next_as_first_directive=$gl_cv_next_netdb_h
21013     fi
21014     NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
21015
21016
21017
21018
21019  if test $ac_cv_header_netdb_h = yes; then
21020    HAVE_NETDB_H=1
21021  else
21022    HAVE_NETDB_H=0
21023  fi
21024
21025
21026
21027    for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
21028    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21029    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21030$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21031if eval \${$as_gl_Symbol+:} false; then :
21032  $as_echo_n "(cached) " >&6
21033else
21034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21035/* end confdefs.h.  */
21036#include <netdb.h>
21037int
21038main ()
21039{
21040#undef $gl_func
21041  (void) $gl_func;
21042  ;
21043  return 0;
21044}
21045_ACEOF
21046if ac_fn_c_try_compile "$LINENO"; then :
21047  eval "$as_gl_Symbol=yes"
21048else
21049  eval "$as_gl_Symbol=no"
21050fi
21051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21052fi
21053eval ac_res=\$$as_gl_Symbol
21054	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21055$as_echo "$ac_res" >&6; }
21056    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21057  cat >>confdefs.h <<_ACEOF
21058#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21059_ACEOF
21060
21061                     eval ac_cv_have_decl_$gl_func=yes
21062fi
21063      done
21064
21065
21066
21067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
21068$as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
21069if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
21070  $as_echo_n "(cached) " >&6
21071else
21072
21073      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21074/* end confdefs.h.  */
21075#include <netinet/in.h>
21076int
21077main ()
21078{
21079
21080  ;
21081  return 0;
21082}
21083_ACEOF
21084if ac_fn_c_try_compile "$LINENO"; then :
21085  gl_cv_header_netinet_in_h_selfcontained=yes
21086else
21087  gl_cv_header_netinet_in_h_selfcontained=no
21088fi
21089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21090
21091fi
21092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
21093$as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
21094  if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
21095    NETINET_IN_H=''
21096  else
21097    NETINET_IN_H='netinet/in.h'
21098    for ac_header in netinet/in.h
21099do :
21100  ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
21101if test "x$ac_cv_header_netinet_in_h" = xyes; then :
21102  cat >>confdefs.h <<_ACEOF
21103#define HAVE_NETINET_IN_H 1
21104_ACEOF
21105
21106fi
21107
21108done
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119     if test $gl_cv_have_include_next = yes; then
21120       gl_cv_next_netinet_in_h='<'netinet/in.h'>'
21121     else
21122       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
21123$as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
21124if ${gl_cv_next_netinet_in_h+:} false; then :
21125  $as_echo_n "(cached) " >&6
21126else
21127
21128             if test $ac_cv_header_netinet_in_h = yes; then
21129
21130
21131               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21132/* end confdefs.h.  */
21133#include <netinet/in.h>
21134
21135_ACEOF
21136                                                                                                                        case "$host_os" in
21137                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21138                 *)    gl_absname_cpp="$ac_cpp" ;;
21139               esac
21140
21141               case "$host_os" in
21142                 mingw*)
21143                                                                                                                                     gl_dirsep_regex='[/\\]'
21144                   ;;
21145                 *)
21146                   gl_dirsep_regex='\/'
21147                   ;;
21148               esac
21149                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21150
21151               gl_header_literal_regex=`echo 'netinet/in.h' \
21152                                        | sed -e "$gl_make_literal_regex_sed"`
21153               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21154                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21155                   s|^/[^/]|//&|
21156                   p
21157                   q
21158                 }'
21159                                                            gl_cv_next_netinet_in_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21160                      sed -n "$gl_absolute_header_sed"`'"'
21161          else
21162               gl_cv_next_netinet_in_h='<'netinet/in.h'>'
21163             fi
21164
21165
21166fi
21167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
21168$as_echo "$gl_cv_next_netinet_in_h" >&6; }
21169     fi
21170     NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
21171
21172     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21173       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21174       gl_next_as_first_directive='<'netinet/in.h'>'
21175     else
21176       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21177       gl_next_as_first_directive=$gl_cv_next_netinet_in_h
21178     fi
21179     NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
21180
21181
21182
21183
21184    if test $ac_cv_header_netinet_in_h = yes; then
21185      HAVE_NETINET_IN_H=1
21186    else
21187      HAVE_NETINET_IN_H=0
21188    fi
21189
21190  fi
21191
21192   if test -n "$NETINET_IN_H"; then
21193  GL_GENERATE_NETINET_IN_H_TRUE=
21194  GL_GENERATE_NETINET_IN_H_FALSE='#'
21195else
21196  GL_GENERATE_NETINET_IN_H_TRUE='#'
21197  GL_GENERATE_NETINET_IN_H_FALSE=
21198fi
21199
21200
21201
21202
21203
21204
21205
21206     if test $ac_cv_func_nl_langinfo = yes; then
21207    # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
21208    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5
21209$as_echo_n "checking whether YESEXPR works... " >&6; }
21210if ${gl_cv_func_nl_langinfo_yesexpr_works+:} false; then :
21211  $as_echo_n "(cached) " >&6
21212else
21213  if test "$cross_compiling" = yes; then :
21214
21215         case "$host_os" in
21216                   # Guess no on irix systems.
21217           irix*)  gl_cv_func_nl_langinfo_yesexpr_works="guessing no";;
21218                   # Guess yes elsewhere.
21219           *)      gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";;
21220         esac
21221
21222else
21223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21224/* end confdefs.h.  */
21225#include <langinfo.h>
21226
21227int
21228main ()
21229{
21230return !*nl_langinfo(YESEXPR);
21231
21232  ;
21233  return 0;
21234}
21235_ACEOF
21236if ac_fn_c_try_run "$LINENO"; then :
21237  gl_cv_func_nl_langinfo_yesexpr_works=yes
21238else
21239  gl_cv_func_nl_langinfo_yesexpr_works=no
21240fi
21241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21242  conftest.$ac_objext conftest.beam conftest.$ac_ext
21243fi
21244
21245
21246fi
21247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5
21248$as_echo "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; }
21249    case $gl_cv_func_nl_langinfo_yesexpr_works in
21250      *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;;
21251      *)    FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;;
21252    esac
21253
21254cat >>confdefs.h <<_ACEOF
21255#define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS
21256_ACEOF
21257
21258    if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1 \
21259        && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1; then
21260      :
21261    else
21262      REPLACE_NL_LANGINFO=1
21263
21264$as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
21265
21266    fi
21267  else
21268    HAVE_NL_LANGINFO=0
21269  fi
21270
21271  if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
21272
21273
21274
21275
21276
21277
21278
21279
21280  gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
21281
21282  fi
21283
21284
21285
21286
21287
21288          GNULIB_NL_LANGINFO=1
21289
21290
21291
21292
21293
21294$as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
21295
21296
21297
21298
21299
21300
21301
21302  # Prerequisites of lib/physmem.c.
21303  for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
21304    machine/hal_sysinfo.h sys/table.h sys/param.h sys/systemcfg.h
21305do :
21306  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21307ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21308"
21309if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21310  cat >>confdefs.h <<_ACEOF
21311#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21312_ACEOF
21313
21314fi
21315
21316done
21317
21318    for ac_header in sys/sysctl.h
21319do :
21320  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
21321     #if HAVE_SYS_PARAM_H
21322     # include <sys/param.h>
21323     #endif
21324
21325"
21326if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
21327  cat >>confdefs.h <<_ACEOF
21328#define HAVE_SYS_SYSCTL_H 1
21329_ACEOF
21330
21331fi
21332
21333done
21334
21335
21336  for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
21337do :
21338  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21339ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21340if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21341  cat >>confdefs.h <<_ACEOF
21342#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21343_ACEOF
21344
21345fi
21346done
21347
21348
21349
21350
21351
21352
21353
21354  for ac_func in raise
21355do :
21356  ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
21357if test "x$ac_cv_func_raise" = xyes; then :
21358  cat >>confdefs.h <<_ACEOF
21359#define HAVE_RAISE 1
21360_ACEOF
21361
21362fi
21363done
21364
21365  if test $ac_cv_func_raise = no; then
21366    HAVE_RAISE=0
21367  else
21368    if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21369      REPLACE_RAISE=1
21370    fi
21371
21372  fi
21373
21374  if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
21375
21376
21377
21378
21379
21380
21381
21382
21383  gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
21384
21385    :
21386  fi
21387
21388
21389
21390
21391
21392          GNULIB_RAISE=1
21393
21394
21395
21396
21397
21398$as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
21399
21400
21401
21402
21403
21404
21405  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21406    REPLACE_READ=1
21407  fi
21408
21409
21410  if test $REPLACE_READ = 1; then
21411
21412
21413
21414
21415
21416
21417
21418
21419  gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
21420
21421    :
21422  fi
21423
21424
21425
21426
21427
21428          GNULIB_READ=1
21429
21430
21431
21432
21433
21434$as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
21435
21436
21437
21438
21439
21440# Check whether --with-included-regex was given.
21441if test "${with_included_regex+set}" = set; then :
21442  withval=$with_included_regex;
21443fi
21444
21445
21446  case $with_included_regex in #(
21447  yes|no) ac_use_included_regex=$with_included_regex
21448        ;;
21449  '')
21450    # If the system regex support is good enough that it passes the
21451    # following run test, then default to *not* using the included regex.c.
21452    # If cross compiling, assume the test would fail and use the included
21453    # regex.c.
21454
21455    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
21456$as_echo_n "checking for working re_compile_pattern... " >&6; }
21457if ${gl_cv_func_re_compile_pattern_working+:} false; then :
21458  $as_echo_n "(cached) " >&6
21459else
21460  if test "$cross_compiling" = yes; then :
21461         gl_cv_func_re_compile_pattern_working=no
21462else
21463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21464/* end confdefs.h.  */
21465#include <regex.h>
21466
21467            #include <locale.h>
21468            #include <limits.h>
21469            #include <string.h>
21470            #if HAVE_DECL_ALARM
21471            # include <unistd.h>
21472            # include <signal.h>
21473            #endif
21474
21475int
21476main ()
21477{
21478int result = 0;
21479            static struct re_pattern_buffer regex;
21480            unsigned char folded_chars[UCHAR_MAX + 1];
21481            int i;
21482            const char *s;
21483            struct re_registers regs;
21484
21485#if HAVE_DECL_ALARM
21486            /* Some builds of glibc go into an infinite loop on this test.  */
21487            signal (SIGALRM, SIG_DFL);
21488            alarm (2);
21489#endif
21490            if (setlocale (LC_ALL, "en_US.UTF-8"))
21491              {
21492                {
21493                  /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
21494                     This test needs valgrind to catch the bug on Debian
21495                     GNU/Linux 3.1 x86, but it might catch the bug better
21496                     on other platforms and it shouldn't hurt to try the
21497                     test here.  */
21498                  static char const pat[] = "insert into";
21499                  static char const data[] =
21500                    "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
21501                  re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
21502                                 | RE_ICASE);
21503                  memset (&regex, 0, sizeof regex);
21504                  s = re_compile_pattern (pat, sizeof pat - 1, &regex);
21505                  if (s)
21506                    result |= 1;
21507                  else if (re_search (&regex, data, sizeof data - 1,
21508                                      0, sizeof data - 1, &regs)
21509                           != -1)
21510                    result |= 1;
21511                }
21512
21513                {
21514                  /* This test is from glibc bug 15078.
21515                     The test case is from Andreas Schwab in
21516                     <http://www.sourceware.org/ml/libc-alpha/2013-01/msg00967.html>.
21517                     */
21518                  static char const pat[] = "[^x]x";
21519                  static char const data[] =
21520                    /* <U1000><U103B><U103D><U1014><U103A><U102F><U1015><U103A> */
21521                    "\xe1\x80\x80"
21522                    "\xe1\x80\xbb"
21523                    "\xe1\x80\xbd"
21524                    "\xe1\x80\x94"
21525                    "\xe1\x80\xba"
21526                    "\xe1\x80\xaf"
21527                    "\xe1\x80\x95"
21528                    "\xe1\x80\xba"
21529                    "x";
21530                  re_set_syntax (0);
21531                  memset (&regex, 0, sizeof regex);
21532                  s = re_compile_pattern (pat, sizeof pat - 1, &regex);
21533                  if (s)
21534                    result |= 1;
21535                  else
21536                    {
21537                      i = re_search (&regex, data, sizeof data - 1,
21538                                     0, sizeof data - 1, 0);
21539                      if (i != 0 && i != 21)
21540                        result |= 1;
21541                    }
21542                }
21543
21544                if (! setlocale (LC_ALL, "C"))
21545                  return 1;
21546              }
21547
21548            /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
21549            re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
21550            memset (&regex, 0, sizeof regex);
21551            s = re_compile_pattern ("a[^x]b", 6, &regex);
21552            if (s)
21553              result |= 2;
21554            /* This should fail, but succeeds for glibc-2.5.  */
21555            else if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
21556              result |= 2;
21557
21558            /* This regular expression is from Spencer ere test number 75
21559               in grep-2.3.  */
21560            re_set_syntax (RE_SYNTAX_POSIX_EGREP);
21561            memset (&regex, 0, sizeof regex);
21562            for (i = 0; i <= UCHAR_MAX; i++)
21563              folded_chars[i] = i;
21564            regex.translate = folded_chars;
21565            s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
21566            /* This should fail with _Invalid character class name_ error.  */
21567            if (!s)
21568              result |= 4;
21569
21570            /* Ensure that [b-a] is diagnosed as invalid, when
21571               using RE_NO_EMPTY_RANGES. */
21572            re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
21573            memset (&regex, 0, sizeof regex);
21574            s = re_compile_pattern ("a[b-a]", 6, &regex);
21575            if (s == 0)
21576              result |= 8;
21577
21578            /* This should succeed, but does not for glibc-2.1.3.  */
21579            memset (&regex, 0, sizeof regex);
21580            s = re_compile_pattern ("{1", 2, &regex);
21581            if (s)
21582              result |= 8;
21583
21584            /* The following example is derived from a problem report
21585               against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
21586            memset (&regex, 0, sizeof regex);
21587            s = re_compile_pattern ("[an\371]*n", 7, &regex);
21588            if (s)
21589              result |= 8;
21590            /* This should match, but does not for glibc-2.2.1.  */
21591            else if (re_match (&regex, "an", 2, 0, &regs) != 2)
21592              result |= 8;
21593
21594            memset (&regex, 0, sizeof regex);
21595            s = re_compile_pattern ("x", 1, &regex);
21596            if (s)
21597              result |= 8;
21598            /* glibc-2.2.93 does not work with a negative RANGE argument.  */
21599            else if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
21600              result |= 8;
21601
21602            /* The version of regex.c in older versions of gnulib
21603               ignored RE_ICASE.  Detect that problem too.  */
21604            re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
21605            memset (&regex, 0, sizeof regex);
21606            s = re_compile_pattern ("x", 1, &regex);
21607            if (s)
21608              result |= 16;
21609            else if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
21610              result |= 16;
21611
21612            /* Catch a bug reported by Vin Shelton in
21613               http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
21614               */
21615            re_set_syntax (RE_SYNTAX_POSIX_BASIC
21616                           & ~RE_CONTEXT_INVALID_DUP
21617                           & ~RE_NO_EMPTY_RANGES);
21618            memset (&regex, 0, sizeof regex);
21619            s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
21620            if (s)
21621              result |= 32;
21622
21623            /* REG_STARTEND was added to glibc on 2004-01-15.
21624               Reject older versions.  */
21625            if (! REG_STARTEND)
21626              result |= 64;
21627
21628#if 0
21629            /* It would be nice to reject hosts whose regoff_t values are too
21630               narrow (including glibc on hosts with 64-bit ptrdiff_t and
21631               32-bit int), but we should wait until glibc implements this
21632               feature.  Otherwise, support for equivalence classes and
21633               multibyte collation symbols would always be broken except
21634               when compiling --without-included-regex.   */
21635            if (sizeof (regoff_t) < sizeof (ptrdiff_t)
21636                || sizeof (regoff_t) < sizeof (ssize_t))
21637              result |= 64;
21638#endif
21639
21640            return result;
21641
21642  ;
21643  return 0;
21644}
21645_ACEOF
21646if ac_fn_c_try_run "$LINENO"; then :
21647  gl_cv_func_re_compile_pattern_working=yes
21648else
21649  gl_cv_func_re_compile_pattern_working=no
21650fi
21651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21652  conftest.$ac_objext conftest.beam conftest.$ac_ext
21653fi
21654
21655fi
21656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
21657$as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
21658    case $gl_cv_func_re_compile_pattern_working in #(
21659    yes) ac_use_included_regex=no;; #(
21660    no) ac_use_included_regex=yes;;
21661    esac
21662    ;;
21663  *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
21664    ;;
21665  esac
21666
21667  if test $ac_use_included_regex = yes; then
21668
21669$as_echo "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h
21670
21671
21672$as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
21673
21674
21675$as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
21676
21677
21678$as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
21679
21680
21681$as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
21682
21683
21684$as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
21685
21686
21687$as_echo "#define re_search rpl_re_search" >>confdefs.h
21688
21689
21690$as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
21691
21692
21693$as_echo "#define re_match rpl_re_match" >>confdefs.h
21694
21695
21696$as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
21697
21698
21699$as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
21700
21701
21702$as_echo "#define re_comp rpl_re_comp" >>confdefs.h
21703
21704
21705$as_echo "#define re_exec rpl_re_exec" >>confdefs.h
21706
21707
21708$as_echo "#define regcomp rpl_regcomp" >>confdefs.h
21709
21710
21711$as_echo "#define regexec rpl_regexec" >>confdefs.h
21712
21713
21714$as_echo "#define regerror rpl_regerror" >>confdefs.h
21715
21716
21717$as_echo "#define regfree rpl_regfree" >>confdefs.h
21718
21719  fi
21720
21721  if test $ac_use_included_regex = yes; then
21722
21723
21724
21725
21726
21727
21728
21729
21730  gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
21731
21732
21733
21734
21735
21736
21737
21738  for ac_header in libintl.h
21739do :
21740  ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
21741if test "x$ac_cv_header_libintl_h" = xyes; then :
21742  cat >>confdefs.h <<_ACEOF
21743#define HAVE_LIBINTL_H 1
21744_ACEOF
21745
21746fi
21747
21748done
21749
21750
21751  ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
21752"
21753if test "x$ac_cv_have_decl_isblank" = xyes; then :
21754  ac_have_decl=1
21755else
21756  ac_have_decl=0
21757fi
21758
21759cat >>confdefs.h <<_ACEOF
21760#define HAVE_DECL_ISBLANK $ac_have_decl
21761_ACEOF
21762
21763
21764  fi
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778  if test $ac_cv_func_secure_getenv = no; then
21779    HAVE_SECURE_GETENV=0
21780  fi
21781
21782  if test $HAVE_SECURE_GETENV = 0; then
21783
21784
21785
21786
21787
21788
21789
21790
21791  gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
21792
21793
21794  for ac_func in __secure_getenv
21795do :
21796  ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
21797if test "x$ac_cv_func___secure_getenv" = xyes; then :
21798  cat >>confdefs.h <<_ACEOF
21799#define HAVE___SECURE_GETENV 1
21800_ACEOF
21801
21802fi
21803done
21804
21805  if test $ac_cv_func___secure_getenv = no; then
21806    for ac_func in issetugid
21807do :
21808  ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
21809if test "x$ac_cv_func_issetugid" = xyes; then :
21810  cat >>confdefs.h <<_ACEOF
21811#define HAVE_ISSETUGID 1
21812_ACEOF
21813
21814fi
21815done
21816
21817  fi
21818
21819  fi
21820
21821
21822
21823
21824
21825          GNULIB_SECURE_GETENV=1
21826
21827
21828
21829
21830
21831$as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
21832
21833
21834
21835
21836                      SERVENT_LIB=
21837  gl_saved_libs="$LIBS"
21838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
21839$as_echo_n "checking for library containing getservbyname... " >&6; }
21840if ${ac_cv_search_getservbyname+:} false; then :
21841  $as_echo_n "(cached) " >&6
21842else
21843  ac_func_search_save_LIBS=$LIBS
21844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21845/* end confdefs.h.  */
21846
21847/* Override any GCC internal prototype to avoid an error.
21848   Use char because int might match the return type of a GCC
21849   builtin and then its argument prototype would still apply.  */
21850#ifdef __cplusplus
21851extern "C"
21852#endif
21853char getservbyname ();
21854int
21855main ()
21856{
21857return getservbyname ();
21858  ;
21859  return 0;
21860}
21861_ACEOF
21862for ac_lib in '' socket network net; do
21863  if test -z "$ac_lib"; then
21864    ac_res="none required"
21865  else
21866    ac_res=-l$ac_lib
21867    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21868  fi
21869  if ac_fn_c_try_link "$LINENO"; then :
21870  ac_cv_search_getservbyname=$ac_res
21871fi
21872rm -f core conftest.err conftest.$ac_objext \
21873    conftest$ac_exeext
21874  if ${ac_cv_search_getservbyname+:} false; then :
21875  break
21876fi
21877done
21878if ${ac_cv_search_getservbyname+:} false; then :
21879
21880else
21881  ac_cv_search_getservbyname=no
21882fi
21883rm conftest.$ac_ext
21884LIBS=$ac_func_search_save_LIBS
21885fi
21886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
21887$as_echo "$ac_cv_search_getservbyname" >&6; }
21888ac_res=$ac_cv_search_getservbyname
21889if test "$ac_res" != no; then :
21890  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21891  if test "$ac_cv_search_getservbyname" != "none required"; then
21892       SERVENT_LIB="$ac_cv_search_getservbyname"
21893     fi
21894fi
21895
21896  LIBS="$gl_saved_libs"
21897  if test -z "$SERVENT_LIB"; then
21898    for ac_func in getservbyname
21899do :
21900  ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
21901if test "x$ac_cv_func_getservbyname" = xyes; then :
21902  cat >>confdefs.h <<_ACEOF
21903#define HAVE_GETSERVBYNAME 1
21904_ACEOF
21905
21906else
21907
21908      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
21909$as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
21910if ${gl_cv_w32_getservbyname+:} false; then :
21911  $as_echo_n "(cached) " >&6
21912else
21913  gl_cv_w32_getservbyname=no
21914         gl_save_LIBS="$LIBS"
21915         LIBS="$LIBS -lws2_32"
21916         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21917/* end confdefs.h.  */
21918
21919#ifdef HAVE_WINSOCK2_H
21920#include <winsock2.h>
21921#endif
21922#include <stddef.h>
21923
21924int
21925main ()
21926{
21927getservbyname(NULL,NULL);
21928  ;
21929  return 0;
21930}
21931_ACEOF
21932if ac_fn_c_try_link "$LINENO"; then :
21933  gl_cv_w32_getservbyname=yes
21934fi
21935rm -f core conftest.err conftest.$ac_objext \
21936    conftest$ac_exeext conftest.$ac_ext
21937         LIBS="$gl_save_LIBS"
21938
21939fi
21940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
21941$as_echo "$gl_cv_w32_getservbyname" >&6; }
21942      if test "$gl_cv_w32_getservbyname" = "yes"; then
21943        SERVENT_LIB="-lws2_32"
21944      fi
21945
21946fi
21947done
21948
21949  fi
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963     if test $gl_cv_have_include_next = yes; then
21964       gl_cv_next_signal_h='<'signal.h'>'
21965     else
21966       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21967$as_echo_n "checking absolute name of <signal.h>... " >&6; }
21968if ${gl_cv_next_signal_h+:} false; then :
21969  $as_echo_n "(cached) " >&6
21970else
21971
21972               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21973/* end confdefs.h.  */
21974#include <signal.h>
21975
21976_ACEOF
21977                                                                                                                        case "$host_os" in
21978                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21979                 *)    gl_absname_cpp="$ac_cpp" ;;
21980               esac
21981
21982               case "$host_os" in
21983                 mingw*)
21984                                                                                                                                     gl_dirsep_regex='[/\\]'
21985                   ;;
21986                 *)
21987                   gl_dirsep_regex='\/'
21988                   ;;
21989               esac
21990                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21991
21992               gl_header_literal_regex=`echo 'signal.h' \
21993                                        | sed -e "$gl_make_literal_regex_sed"`
21994               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21995                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21996                   s|^/[^/]|//&|
21997                   p
21998                   q
21999                 }'
22000                                                            gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22001                      sed -n "$gl_absolute_header_sed"`'"'
22002
22003
22004fi
22005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22006$as_echo "$gl_cv_next_signal_h" >&6; }
22007     fi
22008     NEXT_SIGNAL_H=$gl_cv_next_signal_h
22009
22010     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22011       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22012       gl_next_as_first_directive='<'signal.h'>'
22013     else
22014       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22015       gl_next_as_first_directive=$gl_cv_next_signal_h
22016     fi
22017     NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
22018
22019
22020
22021
22022
22023# AIX declares sig_atomic_t to already include volatile, and C89 compilers
22024# then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
22025  ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22026#include <signal.h>
22027
22028"
22029if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
22030
22031else
22032  HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
22033fi
22034
22035
22036
22037
22038
22039
22040
22041  ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22042#include <signal.h>
22043
22044"
22045if test "x$ac_cv_type_sighandler_t" = xyes; then :
22046
22047else
22048  HAVE_SIGHANDLER_T=0
22049fi
22050
22051
22052
22053    for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
22054    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22055    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22056$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22057if eval \${$as_gl_Symbol+:} false; then :
22058  $as_echo_n "(cached) " >&6
22059else
22060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22061/* end confdefs.h.  */
22062#include <signal.h>
22063
22064int
22065main ()
22066{
22067#undef $gl_func
22068  (void) $gl_func;
22069  ;
22070  return 0;
22071}
22072_ACEOF
22073if ac_fn_c_try_compile "$LINENO"; then :
22074  eval "$as_gl_Symbol=yes"
22075else
22076  eval "$as_gl_Symbol=no"
22077fi
22078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22079fi
22080eval ac_res=\$$as_gl_Symbol
22081	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22082$as_echo "$ac_res" >&6; }
22083    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22084  cat >>confdefs.h <<_ACEOF
22085#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22086_ACEOF
22087
22088                     eval ac_cv_have_decl_$gl_func=yes
22089fi
22090      done
22091
22092
22093
22094  for ac_header in stdint.h
22095do :
22096  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
22097if test "x$ac_cv_header_stdint_h" = xyes; then :
22098  cat >>confdefs.h <<_ACEOF
22099#define HAVE_STDINT_H 1
22100_ACEOF
22101
22102fi
22103
22104done
22105
22106    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
22107$as_echo_n "checking for SIZE_MAX... " >&6; }
22108  result=
22109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22110/* end confdefs.h.  */
22111
22112#include <limits.h>
22113#if HAVE_STDINT_H
22114#include <stdint.h>
22115#endif
22116#ifdef SIZE_MAX
22117Found it
22118#endif
22119
22120_ACEOF
22121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22122  $EGREP "Found it" >/dev/null 2>&1; then :
22123  result=yes
22124fi
22125rm -f conftest*
22126
22127  if test -z "$result"; then
22128                if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
22129#include <limits.h>"; then :
22130
22131else
22132  size_t_bits_minus_1=
22133fi
22134
22135
22136    if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
22137
22138else
22139  fits_in_uint=
22140fi
22141
22142
22143    if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
22144      if test $fits_in_uint = 1; then
22145                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22146/* end confdefs.h.  */
22147#include <stddef.h>
22148          extern size_t foo;
22149          extern unsigned long foo;
22150
22151int
22152main ()
22153{
22154
22155  ;
22156  return 0;
22157}
22158_ACEOF
22159if ac_fn_c_try_compile "$LINENO"; then :
22160  fits_in_uint=0
22161fi
22162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22163      fi
22164                        if test $fits_in_uint = 1; then
22165        result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
22166      else
22167        result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
22168      fi
22169    else
22170            result='((size_t)~(size_t)0)'
22171    fi
22172  fi
22173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
22174$as_echo "$result" >&6; }
22175  if test "$result" != yes; then
22176
22177cat >>confdefs.h <<_ACEOF
22178#define SIZE_MAX $result
22179_ACEOF
22180
22181  fi
22182
22183
22184
22185  gl_cv_func_snprintf_usable=no
22186  for ac_func in snprintf
22187do :
22188  ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
22189if test "x$ac_cv_func_snprintf" = xyes; then :
22190  cat >>confdefs.h <<_ACEOF
22191#define HAVE_SNPRINTF 1
22192_ACEOF
22193
22194fi
22195done
22196
22197  if test $ac_cv_func_snprintf = yes; then
22198
22199
22200
22201  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
22202$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
22203if ${gl_cv_func_snprintf_size1+:} false; then :
22204  $as_echo_n "(cached) " >&6
22205else
22206
22207      if test "$cross_compiling" = yes; then :
22208  gl_cv_func_snprintf_size1="guessing yes"
22209else
22210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22211/* end confdefs.h.  */
22212
22213#include <stdio.h>
22214#if HAVE_SNPRINTF
22215# define my_snprintf snprintf
22216#else
22217# include <stdarg.h>
22218static int my_snprintf (char *buf, int size, const char *format, ...)
22219{
22220  va_list args;
22221  int ret;
22222  va_start (args, format);
22223  ret = vsnprintf (buf, size, format, args);
22224  va_end (args);
22225  return ret;
22226}
22227#endif
22228int main()
22229{
22230  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
22231  my_snprintf (buf, 1, "%d", 12345);
22232  return buf[1] != 'E';
22233}
22234_ACEOF
22235if ac_fn_c_try_run "$LINENO"; then :
22236  gl_cv_func_snprintf_size1=yes
22237else
22238  gl_cv_func_snprintf_size1=no
22239fi
22240rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22241  conftest.$ac_objext conftest.beam conftest.$ac_ext
22242fi
22243
22244
22245fi
22246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
22247$as_echo "$gl_cv_func_snprintf_size1" >&6; }
22248
22249    case "$gl_cv_func_snprintf_size1" in
22250      *yes)
22251
22252        case "$gl_cv_func_snprintf_retval_c99" in
22253          *yes)
22254
22255
22256     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
22257$as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
22258if ${gl_cv_func_printf_positions+:} false; then :
22259  $as_echo_n "(cached) " >&6
22260else
22261
22262      if test "$cross_compiling" = yes; then :
22263
22264         case "$host_os" in
22265           netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
22266                         gl_cv_func_printf_positions="guessing no";;
22267           beos*)        gl_cv_func_printf_positions="guessing no";;
22268           mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
22269           *)            gl_cv_func_printf_positions="guessing yes";;
22270         esac
22271
22272else
22273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22274/* end confdefs.h.  */
22275
22276#include <stdio.h>
22277#include <string.h>
22278/* The string "%2$d %1$d", with dollar characters protected from the shell's
22279   dollar expansion (possibly an autoconf bug).  */
22280static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
22281static char buf[100];
22282int main ()
22283{
22284  sprintf (buf, format, 33, 55);
22285  return (strcmp (buf, "55 33") != 0);
22286}
22287_ACEOF
22288if ac_fn_c_try_run "$LINENO"; then :
22289  gl_cv_func_printf_positions=yes
22290else
22291  gl_cv_func_printf_positions=no
22292fi
22293rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22294  conftest.$ac_objext conftest.beam conftest.$ac_ext
22295fi
22296
22297
22298fi
22299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
22300$as_echo "$gl_cv_func_printf_positions" >&6; }
22301
22302            case "$gl_cv_func_printf_positions" in
22303              *yes)
22304                gl_cv_func_snprintf_usable=yes
22305                ;;
22306            esac
22307            ;;
22308        esac
22309        ;;
22310    esac
22311  fi
22312  if test $gl_cv_func_snprintf_usable = no; then
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323  gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
22324
22325  if test $ac_cv_func_snprintf = yes; then
22326    REPLACE_SNPRINTF=1
22327  fi
22328  :
22329
22330  fi
22331
22332  if test $ac_cv_have_decl_snprintf = no; then
22333    HAVE_DECL_SNPRINTF=0
22334  fi
22335
22336
22337
22338
22339
22340
22341          GNULIB_SNPRINTF=1
22342
22343
22344
22345
22346
22347$as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
22348
22349
22350
22351
22352
22353cat >>confdefs.h <<_ACEOF
22354#define GNULIB_SNPRINTF 1
22355_ACEOF
22356
22357
22358
22359
22360
22361
22362
22363  if test $ac_cv_header_sys_socket_h != yes; then
22364                    for ac_header in winsock2.h
22365do :
22366  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22367if test "x$ac_cv_header_winsock2_h" = xyes; then :
22368  cat >>confdefs.h <<_ACEOF
22369#define HAVE_WINSOCK2_H 1
22370_ACEOF
22371
22372fi
22373
22374done
22375
22376  fi
22377  if test "$ac_cv_header_winsock2_h" = yes; then
22378    HAVE_WINSOCK2_H=1
22379    UNISTD_H_HAVE_WINSOCK2_H=1
22380    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22381  else
22382    HAVE_WINSOCK2_H=0
22383  fi
22384
22385   LIBSOCKET=
22386  if test $HAVE_WINSOCK2_H = 1; then
22387        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
22388$as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
22389if ${gl_cv_func_wsastartup+:} false; then :
22390  $as_echo_n "(cached) " >&6
22391else
22392
22393      gl_save_LIBS="$LIBS"
22394      LIBS="$LIBS -lws2_32"
22395      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22396/* end confdefs.h.  */
22397
22398#ifdef HAVE_WINSOCK2_H
22399# include <winsock2.h>
22400#endif
22401int
22402main ()
22403{
22404
22405          WORD wVersionRequested = MAKEWORD(1, 1);
22406          WSADATA wsaData;
22407          int err = WSAStartup(wVersionRequested, &wsaData);
22408          WSACleanup ();
22409  ;
22410  return 0;
22411}
22412_ACEOF
22413if ac_fn_c_try_link "$LINENO"; then :
22414  gl_cv_func_wsastartup=yes
22415else
22416  gl_cv_func_wsastartup=no
22417fi
22418rm -f core conftest.err conftest.$ac_objext \
22419    conftest$ac_exeext conftest.$ac_ext
22420      LIBS="$gl_save_LIBS"
22421
22422fi
22423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
22424$as_echo "$gl_cv_func_wsastartup" >&6; }
22425    if test "$gl_cv_func_wsastartup" = "yes"; then
22426
22427$as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
22428
22429      LIBSOCKET='-lws2_32'
22430    fi
22431  else
22432                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
22433$as_echo_n "checking for library containing setsockopt... " >&6; }
22434if ${gl_cv_lib_socket+:} false; then :
22435  $as_echo_n "(cached) " >&6
22436else
22437
22438      gl_cv_lib_socket=
22439      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22440/* end confdefs.h.  */
22441extern
22442#ifdef __cplusplus
22443"C"
22444#endif
22445char setsockopt();
22446int
22447main ()
22448{
22449setsockopt();
22450  ;
22451  return 0;
22452}
22453_ACEOF
22454if ac_fn_c_try_link "$LINENO"; then :
22455
22456else
22457  gl_save_LIBS="$LIBS"
22458         LIBS="$gl_save_LIBS -lsocket"
22459         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22460/* end confdefs.h.  */
22461extern
22462#ifdef __cplusplus
22463"C"
22464#endif
22465char setsockopt();
22466int
22467main ()
22468{
22469setsockopt();
22470  ;
22471  return 0;
22472}
22473_ACEOF
22474if ac_fn_c_try_link "$LINENO"; then :
22475  gl_cv_lib_socket="-lsocket"
22476fi
22477rm -f core conftest.err conftest.$ac_objext \
22478    conftest$ac_exeext conftest.$ac_ext
22479         if test -z "$gl_cv_lib_socket"; then
22480           LIBS="$gl_save_LIBS -lnetwork"
22481           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22482/* end confdefs.h.  */
22483extern
22484#ifdef __cplusplus
22485"C"
22486#endif
22487char setsockopt();
22488int
22489main ()
22490{
22491setsockopt();
22492  ;
22493  return 0;
22494}
22495_ACEOF
22496if ac_fn_c_try_link "$LINENO"; then :
22497  gl_cv_lib_socket="-lnetwork"
22498fi
22499rm -f core conftest.err conftest.$ac_objext \
22500    conftest$ac_exeext conftest.$ac_ext
22501           if test -z "$gl_cv_lib_socket"; then
22502             LIBS="$gl_save_LIBS -lnet"
22503             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22504/* end confdefs.h.  */
22505extern
22506#ifdef __cplusplus
22507"C"
22508#endif
22509char setsockopt();
22510int
22511main ()
22512{
22513setsockopt();
22514  ;
22515  return 0;
22516}
22517_ACEOF
22518if ac_fn_c_try_link "$LINENO"; then :
22519  gl_cv_lib_socket="-lnet"
22520fi
22521rm -f core conftest.err conftest.$ac_objext \
22522    conftest$ac_exeext conftest.$ac_ext
22523           fi
22524         fi
22525         LIBS="$gl_save_LIBS"
22526
22527fi
22528rm -f core conftest.err conftest.$ac_objext \
22529    conftest$ac_exeext conftest.$ac_ext
22530      if test -z "$gl_cv_lib_socket"; then
22531        gl_cv_lib_socket="none needed"
22532      fi
22533
22534fi
22535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
22536$as_echo "$gl_cv_lib_socket" >&6; }
22537    if test "$gl_cv_lib_socket" != "none needed"; then
22538      LIBSOCKET="$gl_cv_lib_socket"
22539    fi
22540  fi
22541
22542
22543
22544
22545
22546
22547  :
22548
22549
22550     ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22551/* <sys/types.h> is not needed according to POSIX, but the
22552   <sys/socket.h> in i386-unknown-freebsd4.10 and
22553   powerpc-apple-darwin5.5 required it. */
22554#include <sys/types.h>
22555#if HAVE_SYS_SOCKET_H
22556# include <sys/socket.h>
22557#elif HAVE_WS2TCPIP_H
22558# include <ws2tcpip.h>
22559#endif
22560
22561"
22562if test "x$ac_cv_type_socklen_t" = xyes; then :
22563
22564else
22565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22566$as_echo_n "checking for socklen_t equivalent... " >&6; }
22567      if ${gl_cv_socklen_t_equiv+:} false; then :
22568  $as_echo_n "(cached) " >&6
22569else
22570  # Systems have either "struct sockaddr *" or
22571         # "void *" as the second argument to getpeername
22572         gl_cv_socklen_t_equiv=
22573         for arg2 in "struct sockaddr" void; do
22574           for t in int size_t "unsigned int" "long int" "unsigned long int"; do
22575             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22576/* end confdefs.h.  */
22577#include <sys/types.h>
22578                   #include <sys/socket.h>
22579
22580                   int getpeername (int, $arg2 *, $t *);
22581int
22582main ()
22583{
22584$t len;
22585                  getpeername (0, 0, &len);
22586  ;
22587  return 0;
22588}
22589_ACEOF
22590if ac_fn_c_try_compile "$LINENO"; then :
22591  gl_cv_socklen_t_equiv="$t"
22592fi
22593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22594             test "$gl_cv_socklen_t_equiv" != "" && break
22595           done
22596           test "$gl_cv_socklen_t_equiv" != "" && break
22597         done
22598
22599fi
22600
22601      if test "$gl_cv_socklen_t_equiv" = ""; then
22602        as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
22603      fi
22604      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22605$as_echo "$gl_cv_socklen_t_equiv" >&6; }
22606
22607cat >>confdefs.h <<_ACEOF
22608#define socklen_t $gl_cv_socklen_t_equiv
22609_ACEOF
22610
22611fi
22612
22613
22614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22615$as_echo_n "checking for ssize_t... " >&6; }
22616if ${gt_cv_ssize_t+:} false; then :
22617  $as_echo_n "(cached) " >&6
22618else
22619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22620/* end confdefs.h.  */
22621#include <sys/types.h>
22622int
22623main ()
22624{
22625int x = sizeof (ssize_t *) + sizeof (ssize_t);
22626            return !x;
22627  ;
22628  return 0;
22629}
22630_ACEOF
22631if ac_fn_c_try_compile "$LINENO"; then :
22632  gt_cv_ssize_t=yes
22633else
22634  gt_cv_ssize_t=no
22635fi
22636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22637fi
22638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22639$as_echo "$gt_cv_ssize_t" >&6; }
22640  if test $gt_cv_ssize_t = no; then
22641
22642$as_echo "#define ssize_t int" >>confdefs.h
22643
22644  fi
22645
22646
22647
22648
22649    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
22650$as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
22651if ${gl_cv_func_stat_dir_slash+:} false; then :
22652  $as_echo_n "(cached) " >&6
22653else
22654  if test "$cross_compiling" = yes; then :
22655  case $host_os in
22656            mingw*) gl_cv_func_stat_dir_slash="guessing no";;
22657            *) gl_cv_func_stat_dir_slash="guessing yes";;
22658          esac
22659else
22660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22661/* end confdefs.h.  */
22662#include <sys/stat.h>
22663
22664int
22665main ()
22666{
22667struct stat st; return stat (".", &st) != stat ("./", &st);
22668  ;
22669  return 0;
22670}
22671_ACEOF
22672if ac_fn_c_try_run "$LINENO"; then :
22673  gl_cv_func_stat_dir_slash=yes
22674else
22675  gl_cv_func_stat_dir_slash=no
22676fi
22677rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22678  conftest.$ac_objext conftest.beam conftest.$ac_ext
22679fi
22680
22681fi
22682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
22683$as_echo "$gl_cv_func_stat_dir_slash" >&6; }
22684        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
22685$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
22686if ${gl_cv_func_stat_file_slash+:} false; then :
22687  $as_echo_n "(cached) " >&6
22688else
22689  touch conftest.tmp
22690       # Assume that if we have lstat, we can also check symlinks.
22691       if test $ac_cv_func_lstat = yes; then
22692         ln -s conftest.tmp conftest.lnk
22693       fi
22694       if test "$cross_compiling" = yes; then :
22695  case "$host_os" in
22696                    # Guess yes on glibc systems.
22697            *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
22698                    # If we don't know, assume the worst.
22699            *)      gl_cv_func_stat_file_slash="guessing no" ;;
22700          esac
22701
22702else
22703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22704/* end confdefs.h.  */
22705#include <sys/stat.h>
22706
22707int
22708main ()
22709{
22710int result = 0;
22711      struct stat st;
22712      if (!stat ("conftest.tmp/", &st))
22713        result |= 1;
22714#if HAVE_LSTAT
22715      if (!stat ("conftest.lnk/", &st))
22716        result |= 2;
22717#endif
22718      return result;
22719
22720  ;
22721  return 0;
22722}
22723_ACEOF
22724if ac_fn_c_try_run "$LINENO"; then :
22725  gl_cv_func_stat_file_slash=yes
22726else
22727  gl_cv_func_stat_file_slash=no
22728fi
22729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22730  conftest.$ac_objext conftest.beam conftest.$ac_ext
22731fi
22732
22733       rm -f conftest.tmp conftest.lnk
22734fi
22735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
22736$as_echo "$gl_cv_func_stat_file_slash" >&6; }
22737  case $gl_cv_func_stat_dir_slash in
22738    *no) REPLACE_STAT=1
22739
22740$as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
22741;;
22742  esac
22743  case $gl_cv_func_stat_file_slash in
22744    *no) REPLACE_STAT=1
22745
22746$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
22747;;
22748  esac
22749
22750  if test $REPLACE_STAT = 1; then
22751
22752
22753
22754
22755
22756
22757
22758
22759  gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
22760
22761    :
22762  fi
22763
22764
22765
22766
22767
22768          GNULIB_STAT=1
22769
22770
22771
22772
22773
22774$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
22775
22776
22777
22778
22779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22780$as_echo_n "checking for working stdalign.h... " >&6; }
22781if ${gl_cv_header_working_stdalign_h+:} false; then :
22782  $as_echo_n "(cached) " >&6
22783else
22784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22785/* end confdefs.h.  */
22786#include <stdalign.h>
22787            #include <stddef.h>
22788
22789            /* Test that alignof yields a result consistent with offsetof.
22790               This catches GCC bug 52023
22791               <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.  */
22792            #ifdef __cplusplus
22793               template <class t> struct alignof_helper { char a; t b; };
22794            # define ao(type) offsetof (alignof_helper<type>, b)
22795            #else
22796            # define ao(type) offsetof (struct { char a; type b; }, b)
22797            #endif
22798            char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22799            char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22800            char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22801
22802            /* Test _Alignas only on platforms where gnulib can help.  */
22803            #if \
22804                (__GNUC__ || __IBMC__ || __IBMCPP__ \
22805                 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22806              struct alignas_test { char c; char alignas (8) alignas_8; };
22807              char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
22808                                ? 1 : -1];
22809            #endif
22810
22811int
22812main ()
22813{
22814
22815  ;
22816  return 0;
22817}
22818_ACEOF
22819if ac_fn_c_try_compile "$LINENO"; then :
22820  gl_cv_header_working_stdalign_h=yes
22821else
22822  gl_cv_header_working_stdalign_h=no
22823fi
22824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22825fi
22826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22827$as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22828
22829  if test $gl_cv_header_working_stdalign_h = yes; then
22830    STDALIGN_H=''
22831  else
22832    STDALIGN_H='stdalign.h'
22833  fi
22834
22835
22836   if test -n "$STDALIGN_H"; then
22837  GL_GENERATE_STDALIGN_H_TRUE=
22838  GL_GENERATE_STDALIGN_H_FALSE='#'
22839else
22840  GL_GENERATE_STDALIGN_H_TRUE='#'
22841  GL_GENERATE_STDALIGN_H_FALSE=
22842fi
22843
22844
22845
22846
22847
22848  # Define two additional variables used in the Makefile substitution.
22849
22850  if test "$ac_cv_header_stdbool_h" = yes; then
22851    STDBOOL_H=''
22852  else
22853    STDBOOL_H='stdbool.h'
22854  fi
22855
22856   if test -n "$STDBOOL_H"; then
22857  GL_GENERATE_STDBOOL_H_TRUE=
22858  GL_GENERATE_STDBOOL_H_FALSE='#'
22859else
22860  GL_GENERATE_STDBOOL_H_TRUE='#'
22861  GL_GENERATE_STDBOOL_H_FALSE=
22862fi
22863
22864
22865  if test "$ac_cv_type__Bool" = yes; then
22866    HAVE__BOOL=1
22867  else
22868    HAVE__BOOL=0
22869  fi
22870
22871
22872
22873
22874
22875  STDDEF_H=
22876  if test $gt_cv_c_wchar_t = no; then
22877    HAVE_WCHAR_T=0
22878    STDDEF_H=stddef.h
22879  fi
22880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22881$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22882if ${gl_cv_decl_null_works+:} false; then :
22883  $as_echo_n "(cached) " >&6
22884else
22885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22886/* end confdefs.h.  */
22887#include <stddef.h>
22888      int test[2 * (sizeof NULL == sizeof (void *)) -1];
22889
22890int
22891main ()
22892{
22893
22894  ;
22895  return 0;
22896}
22897_ACEOF
22898if ac_fn_c_try_compile "$LINENO"; then :
22899  gl_cv_decl_null_works=yes
22900else
22901  gl_cv_decl_null_works=no
22902fi
22903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22904fi
22905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22906$as_echo "$gl_cv_decl_null_works" >&6; }
22907  if test $gl_cv_decl_null_works = no; then
22908    REPLACE_NULL=1
22909    STDDEF_H=stddef.h
22910  fi
22911
22912   if test -n "$STDDEF_H"; then
22913  GL_GENERATE_STDDEF_H_TRUE=
22914  GL_GENERATE_STDDEF_H_FALSE='#'
22915else
22916  GL_GENERATE_STDDEF_H_TRUE='#'
22917  GL_GENERATE_STDDEF_H_FALSE=
22918fi
22919
22920  if test -n "$STDDEF_H"; then
22921
22922
22923
22924
22925
22926
22927
22928
22929     if test $gl_cv_have_include_next = yes; then
22930       gl_cv_next_stddef_h='<'stddef.h'>'
22931     else
22932       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22933$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22934if ${gl_cv_next_stddef_h+:} false; then :
22935  $as_echo_n "(cached) " >&6
22936else
22937
22938               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22939/* end confdefs.h.  */
22940#include <stddef.h>
22941
22942_ACEOF
22943                                                                                                                        case "$host_os" in
22944                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22945                 *)    gl_absname_cpp="$ac_cpp" ;;
22946               esac
22947
22948               case "$host_os" in
22949                 mingw*)
22950                                                                                                                                     gl_dirsep_regex='[/\\]'
22951                   ;;
22952                 *)
22953                   gl_dirsep_regex='\/'
22954                   ;;
22955               esac
22956                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22957
22958               gl_header_literal_regex=`echo 'stddef.h' \
22959                                        | sed -e "$gl_make_literal_regex_sed"`
22960               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22961                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22962                   s|^/[^/]|//&|
22963                   p
22964                   q
22965                 }'
22966                                                            gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22967                      sed -n "$gl_absolute_header_sed"`'"'
22968
22969
22970fi
22971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22972$as_echo "$gl_cv_next_stddef_h" >&6; }
22973     fi
22974     NEXT_STDDEF_H=$gl_cv_next_stddef_h
22975
22976     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22977       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22978       gl_next_as_first_directive='<'stddef.h'>'
22979     else
22980       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22981       gl_next_as_first_directive=$gl_cv_next_stddef_h
22982     fi
22983     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22984
22985
22986
22987
22988  fi
22989
22990
22991
22992
22993
22994
22995
22996
22997
22998
22999
23000
23001     if test $gl_cv_have_include_next = yes; then
23002       gl_cv_next_stdio_h='<'stdio.h'>'
23003     else
23004       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23005$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23006if ${gl_cv_next_stdio_h+:} false; then :
23007  $as_echo_n "(cached) " >&6
23008else
23009
23010               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23011/* end confdefs.h.  */
23012#include <stdio.h>
23013
23014_ACEOF
23015                                                                                                                        case "$host_os" in
23016                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23017                 *)    gl_absname_cpp="$ac_cpp" ;;
23018               esac
23019
23020               case "$host_os" in
23021                 mingw*)
23022                                                                                                                                     gl_dirsep_regex='[/\\]'
23023                   ;;
23024                 *)
23025                   gl_dirsep_regex='\/'
23026                   ;;
23027               esac
23028                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23029
23030               gl_header_literal_regex=`echo 'stdio.h' \
23031                                        | sed -e "$gl_make_literal_regex_sed"`
23032               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23033                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23034                   s|^/[^/]|//&|
23035                   p
23036                   q
23037                 }'
23038                                                            gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23039                      sed -n "$gl_absolute_header_sed"`'"'
23040
23041
23042fi
23043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23044$as_echo "$gl_cv_next_stdio_h" >&6; }
23045     fi
23046     NEXT_STDIO_H=$gl_cv_next_stdio_h
23047
23048     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23049       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23050       gl_next_as_first_directive='<'stdio.h'>'
23051     else
23052       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23053       gl_next_as_first_directive=$gl_cv_next_stdio_h
23054     fi
23055     NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23056
23057
23058
23059
23060
23061      GNULIB_FSCANF=1
23062
23063
23064cat >>confdefs.h <<_ACEOF
23065#define GNULIB_FSCANF 1
23066_ACEOF
23067
23068
23069  GNULIB_SCANF=1
23070
23071
23072cat >>confdefs.h <<_ACEOF
23073#define GNULIB_SCANF 1
23074_ACEOF
23075
23076
23077  GNULIB_FGETC=1
23078  GNULIB_GETC=1
23079  GNULIB_GETCHAR=1
23080  GNULIB_FGETS=1
23081  GNULIB_FREAD=1
23082
23083
23084      GNULIB_FPRINTF=1
23085  GNULIB_PRINTF=1
23086  GNULIB_VFPRINTF=1
23087  GNULIB_VPRINTF=1
23088  GNULIB_FPUTC=1
23089  GNULIB_PUTC=1
23090  GNULIB_PUTCHAR=1
23091  GNULIB_FPUTS=1
23092  GNULIB_PUTS=1
23093  GNULIB_FWRITE=1
23094
23095
23096
23097
23098    for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
23099    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23100    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23101$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23102if eval \${$as_gl_Symbol+:} false; then :
23103  $as_echo_n "(cached) " >&6
23104else
23105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23106/* end confdefs.h.  */
23107#include <stdio.h>
23108
23109int
23110main ()
23111{
23112#undef $gl_func
23113  (void) $gl_func;
23114  ;
23115  return 0;
23116}
23117_ACEOF
23118if ac_fn_c_try_compile "$LINENO"; then :
23119  eval "$as_gl_Symbol=yes"
23120else
23121  eval "$as_gl_Symbol=no"
23122fi
23123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23124fi
23125eval ac_res=\$$as_gl_Symbol
23126	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23127$as_echo "$ac_res" >&6; }
23128    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23129  cat >>confdefs.h <<_ACEOF
23130#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23131_ACEOF
23132
23133                     eval ac_cv_have_decl_$gl_func=yes
23134fi
23135      done
23136
23137
23138
23139
23140
23141
23142
23143
23144
23145
23146
23147
23148     if test $gl_cv_have_include_next = yes; then
23149       gl_cv_next_stdlib_h='<'stdlib.h'>'
23150     else
23151       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23152$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23153if ${gl_cv_next_stdlib_h+:} false; then :
23154  $as_echo_n "(cached) " >&6
23155else
23156
23157               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23158/* end confdefs.h.  */
23159#include <stdlib.h>
23160
23161_ACEOF
23162                                                                                                                        case "$host_os" in
23163                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23164                 *)    gl_absname_cpp="$ac_cpp" ;;
23165               esac
23166
23167               case "$host_os" in
23168                 mingw*)
23169                                                                                                                                     gl_dirsep_regex='[/\\]'
23170                   ;;
23171                 *)
23172                   gl_dirsep_regex='\/'
23173                   ;;
23174               esac
23175                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23176
23177               gl_header_literal_regex=`echo 'stdlib.h' \
23178                                        | sed -e "$gl_make_literal_regex_sed"`
23179               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23180                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23181                   s|^/[^/]|//&|
23182                   p
23183                   q
23184                 }'
23185                                                            gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23186                      sed -n "$gl_absolute_header_sed"`'"'
23187
23188
23189fi
23190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23191$as_echo "$gl_cv_next_stdlib_h" >&6; }
23192     fi
23193     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
23194
23195     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23196       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23197       gl_next_as_first_directive='<'stdlib.h'>'
23198     else
23199       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23200       gl_next_as_first_directive=$gl_cv_next_stdlib_h
23201     fi
23202     NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
23203
23204
23205
23206
23207
23208
23209    for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt     initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps     posix_openpt ptsname ptsname_r random random_r realpath rpmatch     secure_getenv setenv setstate setstate_r srandom srandom_r     strtod strtoll strtoull unlockpt unsetenv; do
23210    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23211    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23212$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23213if eval \${$as_gl_Symbol+:} false; then :
23214  $as_echo_n "(cached) " >&6
23215else
23216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23217/* end confdefs.h.  */
23218#include <stdlib.h>
23219#if HAVE_SYS_LOADAVG_H
23220# include <sys/loadavg.h>
23221#endif
23222#if HAVE_RANDOM_H
23223# include <random.h>
23224#endif
23225
23226int
23227main ()
23228{
23229#undef $gl_func
23230  (void) $gl_func;
23231  ;
23232  return 0;
23233}
23234_ACEOF
23235if ac_fn_c_try_compile "$LINENO"; then :
23236  eval "$as_gl_Symbol=yes"
23237else
23238  eval "$as_gl_Symbol=no"
23239fi
23240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23241fi
23242eval ac_res=\$$as_gl_Symbol
23243	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23244$as_echo "$ac_res" >&6; }
23245    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23246  cat >>confdefs.h <<_ACEOF
23247#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23248_ACEOF
23249
23250                     eval ac_cv_have_decl_$gl_func=yes
23251fi
23252      done
23253
23254
23255
23256
23257
23258
23259
23260
23261
23262        case "$host_os" in
23263    osf*)
23264
23265$as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
23266
23267      ;;
23268  esac
23269
23270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
23271$as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
23272if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
23273  $as_echo_n "(cached) " >&6
23274else
23275
23276      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23277/* end confdefs.h.  */
23278#include <sys/socket.h>
23279int
23280main ()
23281{
23282
23283  ;
23284  return 0;
23285}
23286_ACEOF
23287if ac_fn_c_try_compile "$LINENO"; then :
23288  gl_cv_header_sys_socket_h_selfcontained=yes
23289else
23290  gl_cv_header_sys_socket_h_selfcontained=no
23291fi
23292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23293
23294fi
23295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
23296$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
23297  if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
23298            for ac_func in shutdown
23299do :
23300  ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
23301if test "x$ac_cv_func_shutdown" = xyes; then :
23302  cat >>confdefs.h <<_ACEOF
23303#define HAVE_SHUTDOWN 1
23304_ACEOF
23305
23306fi
23307done
23308
23309    if test $ac_cv_func_shutdown = yes; then
23310      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
23311$as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
23312if ${gl_cv_header_sys_socket_h_shut+:} false; then :
23313  $as_echo_n "(cached) " >&6
23314else
23315
23316          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23317/* end confdefs.h.  */
23318#include <sys/socket.h>
23319int
23320main ()
23321{
23322int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
23323  ;
23324  return 0;
23325}
23326_ACEOF
23327if ac_fn_c_try_compile "$LINENO"; then :
23328  gl_cv_header_sys_socket_h_shut=yes
23329else
23330  gl_cv_header_sys_socket_h_shut=no
23331fi
23332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23333
23334fi
23335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
23336$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
23337      if test $gl_cv_header_sys_socket_h_shut = no; then
23338        SYS_SOCKET_H='sys/socket.h'
23339      fi
23340    fi
23341  fi
23342  # We need to check for ws2tcpip.h now.
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352
23353
23354     if test $gl_cv_have_include_next = yes; then
23355       gl_cv_next_sys_socket_h='<'sys/socket.h'>'
23356     else
23357       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
23358$as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
23359if ${gl_cv_next_sys_socket_h+:} false; then :
23360  $as_echo_n "(cached) " >&6
23361else
23362
23363             if test $ac_cv_header_sys_socket_h = yes; then
23364
23365
23366               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23367/* end confdefs.h.  */
23368#include <sys/socket.h>
23369
23370_ACEOF
23371                                                                                                                        case "$host_os" in
23372                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23373                 *)    gl_absname_cpp="$ac_cpp" ;;
23374               esac
23375
23376               case "$host_os" in
23377                 mingw*)
23378                                                                                                                                     gl_dirsep_regex='[/\\]'
23379                   ;;
23380                 *)
23381                   gl_dirsep_regex='\/'
23382                   ;;
23383               esac
23384                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23385
23386               gl_header_literal_regex=`echo 'sys/socket.h' \
23387                                        | sed -e "$gl_make_literal_regex_sed"`
23388               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23389                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23390                   s|^/[^/]|//&|
23391                   p
23392                   q
23393                 }'
23394                                                            gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23395                      sed -n "$gl_absolute_header_sed"`'"'
23396          else
23397               gl_cv_next_sys_socket_h='<'sys/socket.h'>'
23398             fi
23399
23400
23401fi
23402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
23403$as_echo "$gl_cv_next_sys_socket_h" >&6; }
23404     fi
23405     NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
23406
23407     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23408       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23409       gl_next_as_first_directive='<'sys/socket.h'>'
23410     else
23411       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23412       gl_next_as_first_directive=$gl_cv_next_sys_socket_h
23413     fi
23414     NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
23415
23416
23417
23418
23419  if test $ac_cv_header_sys_socket_h = yes; then
23420    HAVE_SYS_SOCKET_H=1
23421    HAVE_WS2TCPIP_H=0
23422  else
23423    HAVE_SYS_SOCKET_H=0
23424    if test $ac_cv_header_ws2tcpip_h = yes; then
23425      HAVE_WS2TCPIP_H=1
23426    else
23427      HAVE_WS2TCPIP_H=0
23428    fi
23429  fi
23430
23431
23432
23433  ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
23434  /* sys/types.h is not needed according to POSIX, but the
23435     sys/socket.h in i386-unknown-freebsd4.10 and
23436     powerpc-apple-darwin5.5 required it. */
23437#include <sys/types.h>
23438#ifdef HAVE_SYS_SOCKET_H
23439#include <sys/socket.h>
23440#endif
23441#ifdef HAVE_WS2TCPIP_H
23442#include <ws2tcpip.h>
23443#endif
23444
23445"
23446if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
23447
23448cat >>confdefs.h <<_ACEOF
23449#define HAVE_STRUCT_SOCKADDR_STORAGE 1
23450_ACEOF
23451
23452
23453fi
23454ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
23455  /* sys/types.h is not needed according to POSIX, but the
23456     sys/socket.h in i386-unknown-freebsd4.10 and
23457     powerpc-apple-darwin5.5 required it. */
23458#include <sys/types.h>
23459#ifdef HAVE_SYS_SOCKET_H
23460#include <sys/socket.h>
23461#endif
23462#ifdef HAVE_WS2TCPIP_H
23463#include <ws2tcpip.h>
23464#endif
23465
23466"
23467if test "x$ac_cv_type_sa_family_t" = xyes; then :
23468
23469cat >>confdefs.h <<_ACEOF
23470#define HAVE_SA_FAMILY_T 1
23471_ACEOF
23472
23473
23474fi
23475
23476  if test $ac_cv_type_struct_sockaddr_storage = no; then
23477    HAVE_STRUCT_SOCKADDR_STORAGE=0
23478  fi
23479  if test $ac_cv_type_sa_family_t = no; then
23480    HAVE_SA_FAMILY_T=0
23481  fi
23482  if test $ac_cv_type_struct_sockaddr_storage != no; then
23483    ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
23484       #ifdef HAVE_SYS_SOCKET_H
23485       #include <sys/socket.h>
23486       #endif
23487       #ifdef HAVE_WS2TCPIP_H
23488       #include <ws2tcpip.h>
23489       #endif
23490
23491"
23492if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
23493
23494cat >>confdefs.h <<_ACEOF
23495#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
23496_ACEOF
23497
23498
23499else
23500  HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
23501fi
23502
23503  fi
23504  if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
23505     || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
23506    SYS_SOCKET_H='sys/socket.h'
23507  fi
23508
23509
23510
23511
23512  if test $ac_cv_header_sys_socket_h != yes; then
23513                    for ac_header in winsock2.h
23514do :
23515  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23516if test "x$ac_cv_header_winsock2_h" = xyes; then :
23517  cat >>confdefs.h <<_ACEOF
23518#define HAVE_WINSOCK2_H 1
23519_ACEOF
23520
23521fi
23522
23523done
23524
23525  fi
23526  if test "$ac_cv_header_winsock2_h" = yes; then
23527    HAVE_WINSOCK2_H=1
23528    UNISTD_H_HAVE_WINSOCK2_H=1
23529    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23530  else
23531    HAVE_WINSOCK2_H=0
23532  fi
23533
23534
23535
23536
23537    for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
23538    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23539    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23540$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23541if eval \${$as_gl_Symbol+:} false; then :
23542  $as_echo_n "(cached) " >&6
23543else
23544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23545/* end confdefs.h.  */
23546
23547/* Some systems require prerequisite headers.  */
23548#include <sys/types.h>
23549#include <sys/socket.h>
23550
23551int
23552main ()
23553{
23554#undef $gl_func
23555  (void) $gl_func;
23556  ;
23557  return 0;
23558}
23559_ACEOF
23560if ac_fn_c_try_compile "$LINENO"; then :
23561  eval "$as_gl_Symbol=yes"
23562else
23563  eval "$as_gl_Symbol=no"
23564fi
23565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23566fi
23567eval ac_res=\$$as_gl_Symbol
23568	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23569$as_echo "$ac_res" >&6; }
23570    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23571  cat >>confdefs.h <<_ACEOF
23572#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23573_ACEOF
23574
23575                     eval ac_cv_have_decl_$gl_func=yes
23576fi
23577      done
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595     if test $gl_cv_have_include_next = yes; then
23596       gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23597     else
23598       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23599$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23600if ${gl_cv_next_sys_stat_h+:} false; then :
23601  $as_echo_n "(cached) " >&6
23602else
23603
23604             if test $ac_cv_header_sys_stat_h = yes; then
23605
23606
23607               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23608/* end confdefs.h.  */
23609#include <sys/stat.h>
23610
23611_ACEOF
23612                                                                                                                        case "$host_os" in
23613                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23614                 *)    gl_absname_cpp="$ac_cpp" ;;
23615               esac
23616
23617               case "$host_os" in
23618                 mingw*)
23619                                                                                                                                     gl_dirsep_regex='[/\\]'
23620                   ;;
23621                 *)
23622                   gl_dirsep_regex='\/'
23623                   ;;
23624               esac
23625                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23626
23627               gl_header_literal_regex=`echo 'sys/stat.h' \
23628                                        | sed -e "$gl_make_literal_regex_sed"`
23629               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23630                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23631                   s|^/[^/]|//&|
23632                   p
23633                   q
23634                 }'
23635                                                            gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23636                      sed -n "$gl_absolute_header_sed"`'"'
23637          else
23638               gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23639             fi
23640
23641
23642fi
23643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23644$as_echo "$gl_cv_next_sys_stat_h" >&6; }
23645     fi
23646     NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
23647
23648     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23649       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23650       gl_next_as_first_directive='<'sys/stat.h'>'
23651     else
23652       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23653       gl_next_as_first_directive=$gl_cv_next_sys_stat_h
23654     fi
23655     NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
23656
23657
23658
23659
23660
23661
23662
23663
23664
23665
23666
23667  if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23668
23669$as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23670
23671  fi
23672
23673      ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23674     #include <sys/stat.h>
23675"
23676if test "x$ac_cv_type_nlink_t" = xyes; then :
23677
23678else
23679
23680$as_echo "#define nlink_t int" >>confdefs.h
23681
23682fi
23683
23684
23685
23686    for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
23687    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23688    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23689$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23690if eval \${$as_gl_Symbol+:} false; then :
23691  $as_echo_n "(cached) " >&6
23692else
23693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23694/* end confdefs.h.  */
23695#include <sys/stat.h>
23696
23697int
23698main ()
23699{
23700#undef $gl_func
23701  (void) $gl_func;
23702  ;
23703  return 0;
23704}
23705_ACEOF
23706if ac_fn_c_try_compile "$LINENO"; then :
23707  eval "$as_gl_Symbol=yes"
23708else
23709  eval "$as_gl_Symbol=no"
23710fi
23711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23712fi
23713eval ac_res=\$$as_gl_Symbol
23714	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23715$as_echo "$ac_res" >&6; }
23716    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23717  cat >>confdefs.h <<_ACEOF
23718#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23719_ACEOF
23720
23721                     eval ac_cv_have_decl_$gl_func=yes
23722fi
23723      done
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742
23743
23744     if test $gl_cv_have_include_next = yes; then
23745       gl_cv_next_sys_uio_h='<'sys/uio.h'>'
23746     else
23747       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
23748$as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
23749if ${gl_cv_next_sys_uio_h+:} false; then :
23750  $as_echo_n "(cached) " >&6
23751else
23752
23753             if test $ac_cv_header_sys_uio_h = yes; then
23754
23755
23756               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23757/* end confdefs.h.  */
23758#include <sys/uio.h>
23759
23760_ACEOF
23761                                                                                                                        case "$host_os" in
23762                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23763                 *)    gl_absname_cpp="$ac_cpp" ;;
23764               esac
23765
23766               case "$host_os" in
23767                 mingw*)
23768                                                                                                                                     gl_dirsep_regex='[/\\]'
23769                   ;;
23770                 *)
23771                   gl_dirsep_regex='\/'
23772                   ;;
23773               esac
23774                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23775
23776               gl_header_literal_regex=`echo 'sys/uio.h' \
23777                                        | sed -e "$gl_make_literal_regex_sed"`
23778               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23779                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23780                   s|^/[^/]|//&|
23781                   p
23782                   q
23783                 }'
23784                                                            gl_cv_next_sys_uio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23785                      sed -n "$gl_absolute_header_sed"`'"'
23786          else
23787               gl_cv_next_sys_uio_h='<'sys/uio.h'>'
23788             fi
23789
23790
23791fi
23792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
23793$as_echo "$gl_cv_next_sys_uio_h" >&6; }
23794     fi
23795     NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
23796
23797     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23798       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23799       gl_next_as_first_directive='<'sys/uio.h'>'
23800     else
23801       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23802       gl_next_as_first_directive=$gl_cv_next_sys_uio_h
23803     fi
23804     NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
23805
23806
23807
23808
23809  if test $ac_cv_header_sys_uio_h = yes; then
23810    HAVE_SYS_UIO_H=1
23811  else
23812    HAVE_SYS_UIO_H=0
23813  fi
23814
23815
23816
23817
23818
23819  :
23820
23821
23822
23823
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841     if test $gl_cv_have_include_next = yes; then
23842       gl_cv_next_unistd_h='<'unistd.h'>'
23843     else
23844       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23845$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23846if ${gl_cv_next_unistd_h+:} false; then :
23847  $as_echo_n "(cached) " >&6
23848else
23849
23850             if test $ac_cv_header_unistd_h = yes; then
23851
23852
23853               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23854/* end confdefs.h.  */
23855#include <unistd.h>
23856
23857_ACEOF
23858                                                                                                                        case "$host_os" in
23859                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23860                 *)    gl_absname_cpp="$ac_cpp" ;;
23861               esac
23862
23863               case "$host_os" in
23864                 mingw*)
23865                                                                                                                                     gl_dirsep_regex='[/\\]'
23866                   ;;
23867                 *)
23868                   gl_dirsep_regex='\/'
23869                   ;;
23870               esac
23871                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23872
23873               gl_header_literal_regex=`echo 'unistd.h' \
23874                                        | sed -e "$gl_make_literal_regex_sed"`
23875               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23876                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23877                   s|^/[^/]|//&|
23878                   p
23879                   q
23880                 }'
23881                                                            gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23882                      sed -n "$gl_absolute_header_sed"`'"'
23883          else
23884               gl_cv_next_unistd_h='<'unistd.h'>'
23885             fi
23886
23887
23888fi
23889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23890$as_echo "$gl_cv_next_unistd_h" >&6; }
23891     fi
23892     NEXT_UNISTD_H=$gl_cv_next_unistd_h
23893
23894     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23895       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23896       gl_next_as_first_directive='<'unistd.h'>'
23897     else
23898       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23899       gl_next_as_first_directive=$gl_cv_next_unistd_h
23900     fi
23901     NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
23902
23903
23904
23905
23906  if test $ac_cv_header_unistd_h = yes; then
23907    HAVE_UNISTD_H=1
23908  else
23909    HAVE_UNISTD_H=0
23910  fi
23911
23912
23913
23914
23915
23916
23917
23918    for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat     fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize     getusershell setusershell endusershell     group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite     readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r     unlink unlinkat usleep; do
23919    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23920    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23921$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23922if eval \${$as_gl_Symbol+:} false; then :
23923  $as_echo_n "(cached) " >&6
23924else
23925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23926/* end confdefs.h.  */
23927
23928#if HAVE_UNISTD_H
23929# include <unistd.h>
23930#endif
23931/* Some systems declare various items in the wrong headers.  */
23932#if !(defined __GLIBC__ && !defined __UCLIBC__)
23933# include <fcntl.h>
23934# include <stdio.h>
23935# include <stdlib.h>
23936# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
23937#  include <io.h>
23938# endif
23939#endif
23940
23941int
23942main ()
23943{
23944#undef $gl_func
23945  (void) $gl_func;
23946  ;
23947  return 0;
23948}
23949_ACEOF
23950if ac_fn_c_try_compile "$LINENO"; then :
23951  eval "$as_gl_Symbol=yes"
23952else
23953  eval "$as_gl_Symbol=no"
23954fi
23955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23956fi
23957eval ac_res=\$$as_gl_Symbol
23958	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23959$as_echo "$ac_res" >&6; }
23960    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23961  cat >>confdefs.h <<_ACEOF
23962#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23963_ACEOF
23964
23965                     eval ac_cv_have_decl_$gl_func=yes
23966fi
23967      done
23968
23969
23970
23971
23972  if test $ac_cv_func_vasnprintf = no; then
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982
23983  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
23994
23995
23996
23997
23998
23999
24000
24001
24002
24003  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
24014
24015  if test $ac_cv_func_vasnprintf = yes; then
24016
24017$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
24018
24019  fi
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031  ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
24032if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
24033
24034else
24035
24036$as_echo "#define ptrdiff_t long" >>confdefs.h
24037
24038
24039fi
24040
24041
24042
24043
24044
24045
24046
24047  fi
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061     if test $gl_cv_have_include_next = yes; then
24062       gl_cv_next_wchar_h='<'wchar.h'>'
24063     else
24064       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
24065$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
24066if ${gl_cv_next_wchar_h+:} false; then :
24067  $as_echo_n "(cached) " >&6
24068else
24069
24070             if test $ac_cv_header_wchar_h = yes; then
24071
24072
24073               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24074/* end confdefs.h.  */
24075#include <wchar.h>
24076
24077_ACEOF
24078                                                                                                                        case "$host_os" in
24079                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24080                 *)    gl_absname_cpp="$ac_cpp" ;;
24081               esac
24082
24083               case "$host_os" in
24084                 mingw*)
24085                                                                                                                                     gl_dirsep_regex='[/\\]'
24086                   ;;
24087                 *)
24088                   gl_dirsep_regex='\/'
24089                   ;;
24090               esac
24091                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24092
24093               gl_header_literal_regex=`echo 'wchar.h' \
24094                                        | sed -e "$gl_make_literal_regex_sed"`
24095               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24096                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24097                   s|^/[^/]|//&|
24098                   p
24099                   q
24100                 }'
24101                                                            gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24102                      sed -n "$gl_absolute_header_sed"`'"'
24103          else
24104               gl_cv_next_wchar_h='<'wchar.h'>'
24105             fi
24106
24107
24108fi
24109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
24110$as_echo "$gl_cv_next_wchar_h" >&6; }
24111     fi
24112     NEXT_WCHAR_H=$gl_cv_next_wchar_h
24113
24114     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24115       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24116       gl_next_as_first_directive='<'wchar.h'>'
24117     else
24118       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24119       gl_next_as_first_directive=$gl_cv_next_wchar_h
24120     fi
24121     NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
24122
24123
24124
24125
24126  if test $ac_cv_header_wchar_h = yes; then
24127    HAVE_WCHAR_H=1
24128  else
24129    HAVE_WCHAR_H=0
24130  fi
24131
24132
24133
24134
24135
24136  if test $gt_cv_c_wint_t = yes; then
24137    HAVE_WINT_T=1
24138  else
24139    HAVE_WINT_T=0
24140  fi
24141
24142
24143
24144    for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb      wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset      wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp      wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr      wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth     ; do
24145    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24146    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24147$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24148if eval \${$as_gl_Symbol+:} false; then :
24149  $as_echo_n "(cached) " >&6
24150else
24151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24152/* end confdefs.h.  */
24153
24154/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24155   <wchar.h>.
24156   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24157   included before <wchar.h>.  */
24158#if !(defined __GLIBC__ && !defined __UCLIBC__)
24159# include <stddef.h>
24160# include <stdio.h>
24161# include <time.h>
24162#endif
24163#include <wchar.h>
24164
24165int
24166main ()
24167{
24168#undef $gl_func
24169  (void) $gl_func;
24170  ;
24171  return 0;
24172}
24173_ACEOF
24174if ac_fn_c_try_compile "$LINENO"; then :
24175  eval "$as_gl_Symbol=yes"
24176else
24177  eval "$as_gl_Symbol=no"
24178fi
24179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24180fi
24181eval ac_res=\$$as_gl_Symbol
24182	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24183$as_echo "$ac_res" >&6; }
24184    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24185  cat >>confdefs.h <<_ACEOF
24186#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24187_ACEOF
24188
24189                     eval ac_cv_have_decl_$gl_func=yes
24190fi
24191      done
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204  if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
24205
24206
24207
24208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
24209$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24210if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
24211  $as_echo_n "(cached) " >&6
24212else
24213
24214                  case "$host_os" in
24215                     # Guess no on AIX and OSF/1.
24216        aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
24217                     # Guess yes otherwise.
24218        *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
24219      esac
24220      if test $LOCALE_JA != none; then
24221        if test "$cross_compiling" = yes; then :
24222  :
24223else
24224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24225/* end confdefs.h.  */
24226
24227#include <locale.h>
24228#include <string.h>
24229/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24230   <wchar.h>.
24231   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24232   included before <wchar.h>.  */
24233#include <stddef.h>
24234#include <stdio.h>
24235#include <time.h>
24236#include <wchar.h>
24237int main ()
24238{
24239  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24240    {
24241      const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24242      mbstate_t state;
24243      wchar_t wc;
24244
24245      memset (&state, '\0', sizeof (mbstate_t));
24246      if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24247        if (mbsinit (&state))
24248          return 1;
24249    }
24250  return 0;
24251}
24252_ACEOF
24253if ac_fn_c_try_run "$LINENO"; then :
24254  gl_cv_func_mbrtowc_incomplete_state=yes
24255else
24256  gl_cv_func_mbrtowc_incomplete_state=no
24257fi
24258rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24259  conftest.$ac_objext conftest.beam conftest.$ac_ext
24260fi
24261
24262      fi
24263
24264fi
24265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24266$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24267
24268
24269
24270
24271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
24272$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24273if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
24274  $as_echo_n "(cached) " >&6
24275else
24276
24277                  case "$host_os" in
24278                    # Guess no on Solaris 8.
24279        solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
24280                    # Guess yes otherwise.
24281        *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
24282      esac
24283      if test $LOCALE_ZH_CN != none; then
24284        if test "$cross_compiling" = yes; then :
24285  :
24286else
24287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24288/* end confdefs.h.  */
24289
24290#include <locale.h>
24291#include <stdlib.h>
24292#include <string.h>
24293/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24294   <wchar.h>.
24295   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24296   included before <wchar.h>.  */
24297#include <stddef.h>
24298#include <stdio.h>
24299#include <time.h>
24300#include <wchar.h>
24301int main ()
24302{
24303  /* This fails on Solaris 8:
24304     mbrtowc returns 2, and sets wc to 0x00F0.
24305     mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
24306  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24307    {
24308      char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24309      mbstate_t state;
24310      wchar_t wc;
24311
24312      memset (&state, '\0', sizeof (mbstate_t));
24313      if (mbrtowc (&wc, input + 3, 6, &state) != 4
24314          && mbtowc (&wc, input + 3, 6) == 4)
24315        return 1;
24316    }
24317  return 0;
24318}
24319_ACEOF
24320if ac_fn_c_try_run "$LINENO"; then :
24321  gl_cv_func_mbrtowc_sanitycheck=yes
24322else
24323  gl_cv_func_mbrtowc_sanitycheck=no
24324fi
24325rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24326  conftest.$ac_objext conftest.beam conftest.$ac_ext
24327fi
24328
24329      fi
24330
24331fi
24332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24333$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24334
24335    REPLACE_MBSTATE_T=0
24336    case "$gl_cv_func_mbrtowc_incomplete_state" in
24337      *yes) ;;
24338      *) REPLACE_MBSTATE_T=1 ;;
24339    esac
24340    case "$gl_cv_func_mbrtowc_sanitycheck" in
24341      *yes) ;;
24342      *) REPLACE_MBSTATE_T=1 ;;
24343    esac
24344  else
24345    REPLACE_MBSTATE_T=1
24346  fi
24347
24348
24349
24350  if test $ac_cv_func_wcrtomb = no; then
24351    HAVE_WCRTOMB=0
24352    ac_fn_c_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" "
24353/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24354   <wchar.h>.
24355   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24356   included before <wchar.h>.  */
24357#include <stddef.h>
24358#include <stdio.h>
24359#include <time.h>
24360#include <wchar.h>
24361
24362"
24363if test "x$ac_cv_have_decl_wcrtomb" = xyes; then :
24364  ac_have_decl=1
24365else
24366  ac_have_decl=0
24367fi
24368
24369cat >>confdefs.h <<_ACEOF
24370#define HAVE_DECL_WCRTOMB $ac_have_decl
24371_ACEOF
24372
24373    if test $ac_cv_have_decl_wcrtomb = yes; then
24374                        REPLACE_WCRTOMB=1
24375    fi
24376  else
24377    if test $REPLACE_MBSTATE_T = 1; then
24378      REPLACE_WCRTOMB=1
24379    else
24380
24381
24382
24383
24384
24385             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
24386$as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
24387if ${gl_cv_func_wcrtomb_retval+:} false; then :
24388  $as_echo_n "(cached) " >&6
24389else
24390
24391                              case "$host_os" in
24392                                     # Guess no on AIX 4, OSF/1 and Solaris.
24393            aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
24394                                     # Guess yes otherwise.
24395            *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
24396          esac
24397          if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
24398            if test "$cross_compiling" = yes; then :
24399  :
24400else
24401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24402/* end confdefs.h.  */
24403
24404#include <locale.h>
24405#include <string.h>
24406/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24407   <wchar.h>.
24408   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24409   included before <wchar.h>.  */
24410#include <stddef.h>
24411#include <stdio.h>
24412#include <time.h>
24413#include <wchar.h>
24414int main ()
24415{
24416  int result = 0;
24417  if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
24418    {
24419      if (wcrtomb (NULL, 0, NULL) != 1)
24420        result |= 1;
24421    }
24422  if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24423    {
24424      if (wcrtomb (NULL, 0, NULL) != 1)
24425        result |= 2;
24426    }
24427  if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24428    {
24429      if (wcrtomb (NULL, 0, NULL) != 1)
24430        result |= 4;
24431    }
24432  if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24433    {
24434      if (wcrtomb (NULL, 0, NULL) != 1)
24435        result |= 8;
24436    }
24437  return result;
24438}
24439_ACEOF
24440if ac_fn_c_try_run "$LINENO"; then :
24441  gl_cv_func_wcrtomb_retval=yes
24442else
24443  gl_cv_func_wcrtomb_retval=no
24444fi
24445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24446  conftest.$ac_objext conftest.beam conftest.$ac_ext
24447fi
24448
24449          fi
24450
24451fi
24452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
24453$as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
24454      case "$gl_cv_func_wcrtomb_retval" in
24455        *yes) ;;
24456        *) REPLACE_WCRTOMB=1 ;;
24457      esac
24458    fi
24459  fi
24460
24461  if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
24462
24463
24464
24465
24466
24467
24468
24469
24470  gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
24471
24472
24473  :
24474
24475  fi
24476
24477
24478
24479
24480
24481          GNULIB_WCRTOMB=1
24482
24483
24484
24485
24486
24487$as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
24488
24489
24490
24491
24492
24493
24494
24495
24496  if test $ac_cv_func_iswcntrl = yes; then
24497    HAVE_ISWCNTRL=1
24498  else
24499    HAVE_ISWCNTRL=0
24500  fi
24501
24502
24503
24504  if test $gt_cv_c_wint_t = yes; then
24505    HAVE_WINT_T=1
24506  else
24507    HAVE_WINT_T=0
24508  fi
24509
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520     if test $gl_cv_have_include_next = yes; then
24521       gl_cv_next_wctype_h='<'wctype.h'>'
24522     else
24523       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
24524$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
24525if ${gl_cv_next_wctype_h+:} false; then :
24526  $as_echo_n "(cached) " >&6
24527else
24528
24529             if test $ac_cv_header_wctype_h = yes; then
24530
24531
24532               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24533/* end confdefs.h.  */
24534#include <wctype.h>
24535
24536_ACEOF
24537                                                                                                                        case "$host_os" in
24538                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24539                 *)    gl_absname_cpp="$ac_cpp" ;;
24540               esac
24541
24542               case "$host_os" in
24543                 mingw*)
24544                                                                                                                                     gl_dirsep_regex='[/\\]'
24545                   ;;
24546                 *)
24547                   gl_dirsep_regex='\/'
24548                   ;;
24549               esac
24550                                             gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24551
24552               gl_header_literal_regex=`echo 'wctype.h' \
24553                                        | sed -e "$gl_make_literal_regex_sed"`
24554               gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24555                   s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24556                   s|^/[^/]|//&|
24557                   p
24558                   q
24559                 }'
24560                                                            gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24561                      sed -n "$gl_absolute_header_sed"`'"'
24562          else
24563               gl_cv_next_wctype_h='<'wctype.h'>'
24564             fi
24565
24566
24567fi
24568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
24569$as_echo "$gl_cv_next_wctype_h" >&6; }
24570     fi
24571     NEXT_WCTYPE_H=$gl_cv_next_wctype_h
24572
24573     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24574       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24575       gl_next_as_first_directive='<'wctype.h'>'
24576     else
24577       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24578       gl_next_as_first_directive=$gl_cv_next_wctype_h
24579     fi
24580     NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
24581
24582
24583
24584
24585  if test $ac_cv_header_wctype_h = yes; then
24586    if test $ac_cv_func_iswcntrl = yes; then
24587                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
24588$as_echo_n "checking whether iswcntrl works... " >&6; }
24589if ${gl_cv_func_iswcntrl_works+:} false; then :
24590  $as_echo_n "(cached) " >&6
24591else
24592
24593          if test "$cross_compiling" = yes; then :
24594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24595/* end confdefs.h.  */
24596#include <stdlib.h>
24597                          #if __GNU_LIBRARY__ == 1
24598                          Linux libc5 i18n is broken.
24599                          #endif
24600int
24601main ()
24602{
24603
24604  ;
24605  return 0;
24606}
24607_ACEOF
24608if ac_fn_c_try_compile "$LINENO"; then :
24609  gl_cv_func_iswcntrl_works="guessing yes"
24610else
24611  gl_cv_func_iswcntrl_works="guessing no"
24612fi
24613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24614
24615else
24616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24617/* end confdefs.h.  */
24618
24619               /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24620                  included before <wchar.h>.
24621                  BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24622                  must be included before <wchar.h>.  */
24623               #include <stddef.h>
24624               #include <stdio.h>
24625               #include <time.h>
24626               #include <wchar.h>
24627               #include <wctype.h>
24628               int main () { return iswprint ('x') == 0; }
24629
24630_ACEOF
24631if ac_fn_c_try_run "$LINENO"; then :
24632  gl_cv_func_iswcntrl_works=yes
24633else
24634  gl_cv_func_iswcntrl_works=no
24635fi
24636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24637  conftest.$ac_objext conftest.beam conftest.$ac_ext
24638fi
24639
24640
24641fi
24642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
24643$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
24644    fi
24645    HAVE_WCTYPE_H=1
24646  else
24647    HAVE_WCTYPE_H=0
24648  fi
24649
24650
24651  case "$gl_cv_func_iswcntrl_works" in
24652    *yes) REPLACE_ISWCNTRL=0 ;;
24653    *)    REPLACE_ISWCNTRL=1 ;;
24654  esac
24655
24656
24657  if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
24658        :
24659  fi
24660
24661  if test $REPLACE_ISWCNTRL = 1; then
24662    REPLACE_TOWLOWER=1
24663  else
24664    for ac_func in towlower
24665do :
24666  ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
24667if test "x$ac_cv_func_towlower" = xyes; then :
24668  cat >>confdefs.h <<_ACEOF
24669#define HAVE_TOWLOWER 1
24670_ACEOF
24671
24672fi
24673done
24674
24675    if test $ac_cv_func_towlower = yes; then
24676      REPLACE_TOWLOWER=0
24677    else
24678      ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24679             included before <wchar.h>.
24680             BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24681             must be included before <wchar.h>.  */
24682          #include <stddef.h>
24683          #include <stdio.h>
24684          #include <time.h>
24685          #include <wchar.h>
24686          #if HAVE_WCTYPE_H
24687          # include <wctype.h>
24688          #endif
24689
24690"
24691if test "x$ac_cv_have_decl_towlower" = xyes; then :
24692  ac_have_decl=1
24693else
24694  ac_have_decl=0
24695fi
24696
24697cat >>confdefs.h <<_ACEOF
24698#define HAVE_DECL_TOWLOWER $ac_have_decl
24699_ACEOF
24700
24701      if test $ac_cv_have_decl_towlower = yes; then
24702                                REPLACE_TOWLOWER=1
24703      else
24704        REPLACE_TOWLOWER=0
24705      fi
24706    fi
24707  fi
24708
24709
24710  if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
24711        :
24712  fi
24713
24714          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
24715$as_echo_n "checking for wctype_t... " >&6; }
24716if ${gl_cv_type_wctype_t+:} false; then :
24717  $as_echo_n "(cached) " >&6
24718else
24719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24720/* end confdefs.h.  */
24721/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24722               included before <wchar.h>.
24723               BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24724               must be included before <wchar.h>.  */
24725            #include <stddef.h>
24726            #include <stdio.h>
24727            #include <time.h>
24728            #include <wchar.h>
24729            #if HAVE_WCTYPE_H
24730            # include <wctype.h>
24731            #endif
24732            wctype_t a;
24733
24734int
24735main ()
24736{
24737
24738  ;
24739  return 0;
24740}
24741_ACEOF
24742if ac_fn_c_try_compile "$LINENO"; then :
24743  gl_cv_type_wctype_t=yes
24744else
24745  gl_cv_type_wctype_t=no
24746fi
24747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24748
24749fi
24750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
24751$as_echo "$gl_cv_type_wctype_t" >&6; }
24752  if test $gl_cv_type_wctype_t = no; then
24753    HAVE_WCTYPE_T=0
24754  fi
24755
24756      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
24757$as_echo_n "checking for wctrans_t... " >&6; }
24758if ${gl_cv_type_wctrans_t+:} false; then :
24759  $as_echo_n "(cached) " >&6
24760else
24761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24762/* end confdefs.h.  */
24763/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24764               included before <wchar.h>.
24765               BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24766               must be included before <wchar.h>.  */
24767            #include <stddef.h>
24768            #include <stdio.h>
24769            #include <time.h>
24770            #include <wchar.h>
24771            #include <wctype.h>
24772            wctrans_t a;
24773
24774int
24775main ()
24776{
24777
24778  ;
24779  return 0;
24780}
24781_ACEOF
24782if ac_fn_c_try_compile "$LINENO"; then :
24783  gl_cv_type_wctrans_t=yes
24784else
24785  gl_cv_type_wctrans_t=no
24786fi
24787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24788
24789fi
24790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
24791$as_echo "$gl_cv_type_wctrans_t" >&6; }
24792  if test $gl_cv_type_wctrans_t = no; then
24793    HAVE_WCTRANS_T=0
24794  fi
24795
24796
24797    for gl_func in wctype iswctype wctrans towctrans     ; do
24798    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24799    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24800$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24801if eval \${$as_gl_Symbol+:} false; then :
24802  $as_echo_n "(cached) " >&6
24803else
24804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24805/* end confdefs.h.  */
24806
24807/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24808   <wchar.h>.
24809   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24810   included before <wchar.h>.  */
24811#if !(defined __GLIBC__ && !defined __UCLIBC__)
24812# include <stddef.h>
24813# include <stdio.h>
24814# include <time.h>
24815# include <wchar.h>
24816#endif
24817#include <wctype.h>
24818
24819int
24820main ()
24821{
24822#undef $gl_func
24823  (void) $gl_func;
24824  ;
24825  return 0;
24826}
24827_ACEOF
24828if ac_fn_c_try_compile "$LINENO"; then :
24829  eval "$as_gl_Symbol=yes"
24830else
24831  eval "$as_gl_Symbol=no"
24832fi
24833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24834fi
24835eval ac_res=\$$as_gl_Symbol
24836	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24837$as_echo "$ac_res" >&6; }
24838    if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24839  cat >>confdefs.h <<_ACEOF
24840#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24841_ACEOF
24842
24843                     eval ac_cv_have_decl_$gl_func=yes
24844fi
24845      done
24846
24847
24848
24849
24850
24851  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24852    REPLACE_WRITE=1
24853  fi
24854
24855
24856
24857  if test $REPLACE_WRITE = 1; then
24858
24859
24860
24861
24862
24863
24864
24865
24866  gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
24867
24868    :
24869  fi
24870
24871
24872
24873
24874
24875          GNULIB_WRITE=1
24876
24877
24878
24879
24880
24881$as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
24882
24883
24884
24885
24886
24887
24888  for ac_header in stdint.h
24889do :
24890  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
24891if test "x$ac_cv_header_stdint_h" = xyes; then :
24892  cat >>confdefs.h <<_ACEOF
24893#define HAVE_STDINT_H 1
24894_ACEOF
24895
24896fi
24897
24898done
24899
24900
24901  # End of code from modules
24902
24903
24904
24905
24906
24907
24908
24909
24910
24911  gltests_libdeps=
24912  gltests_ltlibdeps=
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922  gl_source_base='tests'
24923  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
24924
24925  gl_module_indicator_condition=$gltests_WITNESS
24926
24927
24928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939    # support deprecated ./configure flags to set various compiler flags
24940
24941
24942# Check whether --with-cflags was given.
24943if test "${with_cflags+set}" = set; then :
24944  withval=$with_cflags;
24945	    case "$withval" in
24946	    "" | y | ye | yes | n | no)
24947		as_fn_error $? "*** You must supply an argument to the --with-cflags option." "$LINENO" 5
24948		;;
24949	    esac
24950
24951	    CFLAGS="$withval"
24952
24953fi
24954
24955
24956
24957# Check whether --with-includes was given.
24958if test "${with_includes+set}" = set; then :
24959  withval=$with_includes;
24960	    case "$withval" in
24961	    "" | y | ye | yes | n | no)
24962		as_fn_error $? "*** You must supply an argument to the --with-includes option." "$LINENO" 5
24963	      ;;
24964	    esac
24965
24966	    for dir in $withval; do
24967		if test -d "$dir"; then
24968		    CPPFLAGS="$CPPFLAGS -I$dir"
24969		else
24970
24971    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Include directory $dir does not exist." >&5
24972$as_echo "$as_me: WARNING: Include directory $dir does not exist." >&2;}
24973
24974
24975    cat <<AAW_EOF >>config.warnings
24976Include directory $dir does not exist.
24977AAW_EOF
24978
24979
24980		fi
24981	    done
24982
24983fi
24984
24985
24986
24987# Check whether --with-libraries was given.
24988if test "${with_libraries+set}" = set; then :
24989  withval=$with_libraries;
24990	    case "$withval" in
24991	    "" | y | ye | yes | n | no)
24992		as_fn_error $? "*** You must supply an argument to the --with-libraries option." "$LINENO" 5
24993	      ;;
24994	    esac
24995
24996	    for dir in $withval; do
24997		if test -d "$dir"; then
24998		    case "$host" in
24999		      *-solaris2*,*-netbsd*)
25000			    LDFLAGS="$LDFLAGS -R$dir"
25001			    ;;
25002		    esac
25003		    LDFLAGS="$LDFLAGS -L$dir"
25004		else
25005
25006    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Library directory $dir does not exist." >&5
25007$as_echo "$as_me: WARNING: Library directory $dir does not exist." >&2;}
25008
25009
25010    cat <<AAW_EOF >>config.warnings
25011Library directory $dir does not exist.
25012AAW_EOF
25013
25014
25015		fi
25016	    done
25017
25018fi
25019
25020
25021    # Disable strict-aliasing optimizations
25022
25023    # test for -W'feature', then add the 'no-' version.
25024
25025
25026
25027    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -fstrict-aliasing" >&5
25028$as_echo_n "checking for gcc flag -fstrict-aliasing... " >&6; }
25029    if test "x$GCC" = "xyes"; then
25030		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
25031           $CC -v --help 2>&1) |
25032         $EGREP -- '[^0-9A-Za-z]-fstrict-aliasing[^0-9A-Za-z]' 2>&1 > /dev/null
25033		if test $? -eq 0; then
25034	    found_warning=yes
25035	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25036$as_echo "yes" >&6; }
25037	else
25038	    found_warning=no
25039	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25040$as_echo "no" >&6; }
25041	fi
25042    else
25043	found_warning=no
25044	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
25045$as_echo "no (not using gcc)" >&6; }
25046    fi
25047
25048    if test x"$found_warning" = x"yes"; then
25049	CFLAGS="$CFLAGS -fno-strict-aliasing"
25050
25051	CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
25052
25053
25054    else
25055	:
25056    fi
25057
25058
25059
25060    # Warn for just about everything
25061
25062
25063
25064
25065    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wall" >&5
25066$as_echo_n "checking for gcc flag -Wall... " >&6; }
25067    if test "x$GCC" = "xyes"; then
25068		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
25069           $CC -v --help 2>&1) |
25070         $EGREP -- '[^0-9A-Za-z]-Wall[^0-9A-Za-z]' 2>&1 > /dev/null
25071		if test $? -eq 0; then
25072	    found_warning=yes
25073	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25074$as_echo "yes" >&6; }
25075	else
25076	    found_warning=no
25077	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25078$as_echo "no" >&6; }
25079	fi
25080    else
25081	found_warning=no
25082	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
25083$as_echo "no (not using gcc)" >&6; }
25084    fi
25085
25086    if test x"$found_warning" = x"yes"; then
25087	AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wall"
25088
25089
25090    else
25091	:
25092    fi
25093
25094
25095
25096    # And add any extra warnings too
25097
25098
25099
25100    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wextra" >&5
25101$as_echo_n "checking for gcc flag -Wextra... " >&6; }
25102    if test "x$GCC" = "xyes"; then
25103		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
25104           $CC -v --help 2>&1) |
25105         $EGREP -- '[^0-9A-Za-z]-Wextra[^0-9A-Za-z]' 2>&1 > /dev/null
25106		if test $? -eq 0; then
25107	    found_warning=yes
25108	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25109$as_echo "yes" >&6; }
25110	else
25111	    found_warning=no
25112	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25113$as_echo "no" >&6; }
25114	fi
25115    else
25116	found_warning=no
25117	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
25118$as_echo "no (not using gcc)" >&6; }
25119    fi
25120
25121    if test x"$found_warning" = x"yes"; then
25122	AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wextra"
25123
25124
25125    else
25126
25127
25128
25129    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -W" >&5
25130$as_echo_n "checking for gcc flag -W... " >&6; }
25131    if test "x$GCC" = "xyes"; then
25132		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
25133           $CC -v --help 2>&1) |
25134         $EGREP -- '^0-9A-Za-z-W^0-9A-Za-z' 2>&1 > /dev/null
25135		if test $? -eq 0; then
25136	    found_warning=yes
25137	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25138$as_echo "yes" >&6; }
25139	else
25140	    found_warning=no
25141	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25142$as_echo "no" >&6; }
25143	fi
25144    else
25145	found_warning=no
25146	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
25147$as_echo "no (not using gcc)" >&6; }
25148    fi
25149
25150    if test x"$found_warning" = x"yes"; then
25151	AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -W"
25152
25153
25154    else
25155	:
25156    fi
25157
25158
25159    fi
25160
25161
25162
25163
25164    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wno-int" >&5
25165$as_echo_n "checking for gcc flag -Wno-int... " >&6; }
25166    if test "x$GCC" = "xyes"; then
25167		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
25168           $CC -v --help 2>&1) |
25169         $EGREP -- '[^0-9A-Za-z]-Wno-int[^0-9A-Za-z]' 2>&1 > /dev/null
25170		if test $? -eq 0; then
25171	    found_warning=yes
25172	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25173$as_echo "yes" >&6; }
25174	else
25175	    found_warning=no
25176	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25177$as_echo "no" >&6; }
25178	fi
25179    else
25180	found_warning=no
25181	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
25182$as_echo "no (not using gcc)" >&6; }
25183    fi
25184
25185    if test x"$found_warning" = x"yes"; then
25186	AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-int"
25187
25188
25189    else
25190	:
25191    fi
25192
25193
25194
25195CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
25196
25197
25198    # Check whether --enable-as-needed was given.
25199if test "${enable_as_needed+set}" = set; then :
25200  enableval=$enable_as_needed;  WANT_AS_NEEDED=$enableval
25201else
25202   WANT_AS_NEEDED=no
25203fi
25204
25205
25206     if test x"$WANT_AS_NEEDED" = x"yes"; then
25207  WANT_AS_NEEDED_TRUE=
25208  WANT_AS_NEEDED_FALSE='#'
25209else
25210  WANT_AS_NEEDED_TRUE='#'
25211  WANT_AS_NEEDED_FALSE=
25212fi
25213
25214
25215    if test x"$WANT_AS_NEEDED" = x"yes"; then
25216	AS_NEEDED_FLAGS="-Wl,--as-needed"
25217    else
25218	AS_NEEDED_FLAGS=""
25219    fi
25220
25221
25222
25223
25224#
25225# Configuration flags (--with-xxx and --enable-xxx)
25226#
25227
25228
25229
25230# Check whether --with-user was given.
25231if test "${with_user+set}" = set; then :
25232  withval=$with_user;
25233            case "$withval" in
25234                "" | y | ye | yes | n | no)
25235                    as_fn_error $? "*** You must supply an argument to the --with-user option." "$LINENO" 5
25236                  ;;
25237                *)
25238                    CLIENT_LOGIN="$withval"
25239                  ;;
25240            esac
25241
25242else
25243
25244
25245    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no user specified (--with-user) -- using 'amanda'" >&5
25246$as_echo "$as_me: WARNING: no user specified (--with-user) -- using 'amanda'" >&2;}
25247
25248
25249    cat <<AAW_EOF >>config.warnings
25250no user specified (--with-user) -- using 'amanda'
25251AAW_EOF
25252
25253
25254	    CLIENT_LOGIN=amanda
25255
25256
25257fi
25258
25259
25260
25261cat >>confdefs.h <<_ACEOF
25262#define CLIENT_LOGIN "$CLIENT_LOGIN"
25263_ACEOF
25264
25265
25266
25267
25268
25269# Check whether --with-group was given.
25270if test "${with_group+set}" = set; then :
25271  withval=$with_group;
25272            case "$withval" in
25273                "" | y | ye | yes | n | no)
25274                    as_fn_error $? "*** You must supply an argument to the --with-group option." "$LINENO" 5
25275                  ;;
25276                *) SETUID_GROUP="$withval"
25277                  ;;
25278            esac
25279
25280else
25281
25282
25283    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no group specified (--with-group) -- using 'backup'" >&5
25284$as_echo "$as_me: WARNING: no group specified (--with-group) -- using 'backup'" >&2;}
25285
25286
25287    cat <<AAW_EOF >>config.warnings
25288no group specified (--with-group) -- using 'backup'
25289AAW_EOF
25290
25291
25292	    SETUID_GROUP=backup
25293
25294
25295fi
25296
25297
25298
25299
25300
25301# Check whether --with-dumperdir was given.
25302if test "${with_dumperdir+set}" = set; then :
25303  withval=$with_dumperdir;
25304
25305    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-dumperdir is no longer used." >&5
25306$as_echo "$as_me: WARNING: --with-dumperdir is no longer used." >&2;}
25307
25308
25309    cat <<AAW_EOF >>config.warnings
25310--with-dumperdir is no longer used.
25311AAW_EOF
25312
25313
25314
25315
25316fi
25317
25318
25319
25320
25321# Check whether --with-configdir was given.
25322if test "${with_configdir+set}" = set; then :
25323  withval=$with_configdir;
25324	    case "$withval" in
25325	    "" | y | ye | yes | n | no)
25326		as_fn_error $? "*** You must supply an argument to the --with-configdir option." "$LINENO" 5
25327	      ;;
25328	    *) CONFIG_DIR="$withval"
25329	      ;;
25330	    esac
25331
25332else
25333
25334	    : ${CONFIG_DIR='${sysconfdir}/amanda'} # (variable will be evaluated below)
25335
25336
25337fi
25338
25339
25340  prefix_NONE=
25341  exec_prefix_NONE=
25342  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25343  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25344  eval ac_define_dir="\"$CONFIG_DIR\""
25345  eval ac_define_dir="\"$ac_define_dir\""
25346  CONFIG_DIR="$ac_define_dir"
25347
25348
25349cat >>confdefs.h <<_ACEOF
25350#define CONFIG_DIR "$ac_define_dir"
25351_ACEOF
25352
25353  test "$prefix_NONE" && prefix=NONE
25354  test "$exec_prefix_NONE" && exec_prefix=NONE
25355
25356
25357
25358
25359# Check whether --with-indexdir was given.
25360if test "${with_indexdir+set}" = set; then :
25361  withval=$with_indexdir;    as_fn_error $? "*** --with-indexdir is deprecated; use indexdir in amanda.conf instead." "$LINENO" 5
25362
25363fi
25364
25365
25366
25367
25368# Check whether --with-dbdir was given.
25369if test "${with_dbdir+set}" = set; then :
25370  withval=$with_dbdir;    as_fn_error $? "*** --with-dbdir is deprecated; use infofile in amanda.conf instead." "$LINENO" 5
25371
25372fi
25373
25374
25375
25376
25377# Check whether --with-logdir was given.
25378if test "${with_logdir+set}" = set; then :
25379  withval=$with_logdir;    as_fn_error $? "*** --with-logdir is deprecated; use logfile in amanda.conf instead." "$LINENO" 5
25380
25381fi
25382
25383
25384
25385
25386# Check whether --with-suffixes was given.
25387if test "${with_suffixes+set}" = set; then :
25388  withval=$with_suffixes;
25389
25390    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** --with-suffixes is deprecated" >&5
25391$as_echo "$as_me: WARNING: ** --with-suffixes is deprecated" >&2;}
25392
25393
25394    cat <<AAW_EOF >>config.warnings
25395** --with-suffixes is deprecated
25396AAW_EOF
25397
25398
25399
25400fi
25401
25402
25403
25404
25405# Check whether --with-gnutar-listdir was given.
25406if test "${with_gnutar_listdir+set}" = set; then :
25407  withval=$with_gnutar_listdir;
25408            case "$withval" in
25409                n | no) GNUTAR_LISTDIR= ;;
25410                y | ye | yes) GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists' ;;
25411                *) GNUTAR_LISTDIR="$withval" ;;
25412            esac
25413
25414else
25415
25416            GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists'
25417
25418
25419fi
25420
25421
25422    # substitute $prefix, etc. if necessary
25423
25424  prefix_NONE=
25425  exec_prefix_NONE=
25426  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25427  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25428  eval ac_define_dir="\"$GNUTAR_LISTDIR\""
25429  eval ac_define_dir="\"$ac_define_dir\""
25430  GNUTAR_LISTED_INCREMENTAL_DIR="$ac_define_dir"
25431
25432
25433cat >>confdefs.h <<_ACEOF
25434#define GNUTAR_LISTED_INCREMENTAL_DIR "$ac_define_dir"
25435_ACEOF
25436
25437  test "$prefix_NONE" && prefix=NONE
25438  test "$exec_prefix_NONE" && exec_prefix=NONE
25439
25440
25441    # handle deprecated option
25442
25443# Check whether --with-gnutar-listed-incremental was given.
25444if test "${with_gnutar_listed_incremental+set}" = set; then :
25445  withval=$with_gnutar_listed_incremental;
25446            as_fn_error $? "*** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" "$LINENO" 5
25447
25448
25449fi
25450
25451
25452
25453
25454# Check whether --with-tmpdir was given.
25455if test "${with_tmpdir+set}" = set; then :
25456  withval=$with_tmpdir;
25457            tmpdir="$withval"
25458
25459else
25460
25461            tmpdir=yes
25462
25463
25464fi
25465
25466
25467    case "$tmpdir" in
25468        n | no) as_fn_error $? "*** --without-tmpdir is not allowed." "$LINENO" 5;;
25469        y |  ye | yes) AMANDA_TMPDIR="/tmp/amanda";;
25470        *) AMANDA_TMPDIR="$tmpdir";;
25471    esac
25472
25473
25474  prefix_NONE=
25475  exec_prefix_NONE=
25476  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25477  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25478  eval ac_define_dir="\"$AMANDA_TMPDIR\""
25479  eval ac_define_dir="\"$ac_define_dir\""
25480  AMANDA_TMPDIR="$ac_define_dir"
25481
25482
25483cat >>confdefs.h <<_ACEOF
25484#define AMANDA_TMPDIR "$ac_define_dir"
25485_ACEOF
25486
25487  test "$prefix_NONE" && prefix=NONE
25488  test "$exec_prefix_NONE" && exec_prefix=NONE
25489
25490
25491
25492
25493# Check whether --with-force-uid was given.
25494if test "${with_force_uid+set}" = set; then :
25495  withval=$with_force_uid; CHECK_USERID="$withval"
25496else
25497  : ${CHECK_USERID=yes}
25498
25499fi
25500
25501    case "$CHECK_USERID" in
25502        y | ye | yes)
25503	    CHECK_USERID=1
25504
25505$as_echo "#define CHECK_USERID 1" >>confdefs.h
25506
25507          ;;
25508        n | no) :
25509	    CHECK_USERID=
25510          ;;
25511        *)
25512            as_fn_error $? "*** You must not supply an argument to --with-force-uid option." "$LINENO" 5
25513    esac
25514
25515     if test x"$CHECK_USERID" = x"1"; then
25516  CHECK_USERID_TRUE=
25517  CHECK_USERID_FALSE='#'
25518else
25519  CHECK_USERID_TRUE='#'
25520  CHECK_USERID_FALSE=
25521fi
25522
25523
25524
25525
25526
25527# Check whether --with-owner was given.
25528if test "${with_owner+set}" = set; then :
25529  withval=$with_owner;
25530            case "$withval" in
25531            "" | y | ye | yes | n | no)
25532                as_fn_error $? "*** You must supply an argument to the --with-owner option." "$LINENO" 5
25533              ;;
25534            *) BINARY_OWNER="$withval"
25535              ;;
25536            esac
25537
25538else
25539
25540            BINARY_OWNER="$CLIENT_LOGIN"
25541
25542
25543fi
25544
25545
25546cat >>confdefs.h <<_ACEOF
25547#define BINARY_OWNER "$BINARY_OWNER"
25548_ACEOF
25549
25550
25551
25552
25553
25554# Check whether --with-fqdn was given.
25555if test "${with_fqdn+set}" = set; then :
25556  withval=$with_fqdn;  USE_FQDN=$withval
25557else
25558   USE_FQDN=no
25559fi
25560
25561
25562    case "$USE_FQDN" in
25563    n | no) : ;;
25564    y |  ye | yes)
25565
25566$as_echo "#define USE_FQDN 1" >>confdefs.h
25567
25568      ;;
25569    *) as_fn_error $? "You must not supply an argument to --with-fqdn option." "$LINENO" 5
25570      ;;
25571    esac
25572
25573
25574
25575# Check whether --with-reuseports was given.
25576if test "${with_reuseports+set}" = set; then :
25577  withval=$with_reuseports;  case "$withval" in
25578	    y | ye | yes) USE_REUSEADDR=no;;
25579	    n | no) USE_REUSEADDR=yes;;
25580	    *) as_fn_error $? "You must not supply an argument to --without-reuseports" "$LINENO" 5;;
25581	  esac
25582
25583else
25584   USE_REUSEADDR=yes;
25585fi
25586
25587    if test x"$USE_REUSEADDR" = x"yes"; then
25588
25589$as_echo "#define USE_REUSEADDR 1" >>confdefs.h
25590
25591    fi
25592
25593
25594
25595# Check whether --with-low-tcpportrange was given.
25596if test "${with_low_tcpportrange+set}" = set; then :
25597  withval=$with_low_tcpportrange;  LOW_TCPPORTRANGE="$withval"
25598else
25599   LOW_TCPPORTRANGE=unlimited
25600fi
25601
25602
25603    if test x"$LOW_TCPPORTRANGE" != x"unlimited"; then
25604	if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
25605	    as_fn_error $? "--with-low-tcpportrange requires two comma-separated positive numbers" "$LINENO" 5
25606	fi
25607	min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
25608	max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
25609	if test $min_low_tcp_port -gt $max_low_tcp_port; then
25610	    as_fn_error $? "the second TCP port number must be greater than the first in --with-low-tcpportrange" "$LINENO" 5
25611	fi
25612	if test $min_low_tcp_port -lt 512; then
25613
25614    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
25615$as_echo "$as_me: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
25616
25617
25618    cat <<AAW_EOF >>config.warnings
25619the low TCP port range should be 512 or greater in --with-low-tcpportrange
25620AAW_EOF
25621
25622
25623	fi
25624	if test $max_low_tcp_port -ge 1024; then
25625
25626    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
25627$as_echo "$as_me: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
25628
25629
25630    cat <<AAW_EOF >>config.warnings
25631the low TCP port range should be less than 1024 in --with-low-tcpportrange
25632AAW_EOF
25633
25634
25635	fi
25636
25637cat >>confdefs.h <<_ACEOF
25638#define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
25639_ACEOF
25640
25641    fi
25642
25643
25644# Check whether --with-tcpportrange was given.
25645if test "${with_tcpportrange+set}" = set; then :
25646  withval=$with_tcpportrange;  TCPPORTRANGE="$withval"
25647else
25648   TCPPORTRANGE="unlimited"
25649fi
25650
25651
25652    if test x"$TCPPORTRANGE" != x"unlimited"; then
25653	if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
25654	    as_fn_error $? "--with-tcpportrange requires two comma-separated positive numbers" "$LINENO" 5
25655	fi
25656	min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
25657	max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
25658	if test $min_tcp_port -gt $max_tcp_port; then
25659	    as_fn_error $? "the second TCP port number must be greater than the first in --with-tcpportrange" "$LINENO" 5
25660	fi
25661	if test $min_tcp_port -lt 1024; then
25662
25663    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
25664$as_echo "$as_me: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
25665
25666
25667    cat <<AAW_EOF >>config.warnings
25668the TCP port range should be 1024 or greater in --with-tcpportrange
25669AAW_EOF
25670
25671
25672	fi
25673	if test $max_tcp_port -ge 65536; then
25674
25675    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&5
25676$as_echo "$as_me: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
25677
25678
25679    cat <<AAW_EOF >>config.warnings
25680the TCP port range should be less than 65536 in --with-tcpportrange
25681AAW_EOF
25682
25683
25684	fi
25685
25686cat >>confdefs.h <<_ACEOF
25687#define TCPPORTRANGE $TCPPORTRANGE
25688_ACEOF
25689
25690    fi
25691
25692
25693# Check whether --with-udpportrange was given.
25694if test "${with_udpportrange+set}" = set; then :
25695  withval=$with_udpportrange;  UDPPORTRANGE="$withval"
25696else
25697   UDPPORTRANGE="unlimited"
25698fi
25699
25700    if test x"$UDPPORTRANGE" != x"unlimited"; then
25701	if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
25702	    as_fn_error $? "--with-udpportrange requires two comma-separated positive numbers" "$LINENO" 5
25703	fi
25704	min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
25705	max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
25706	if test $min_udp_port -gt $max_udp_port; then
25707	    as_fn_error $? "the second UDP port number must be greater than the first in --with-udpportrange" "$LINENO" 5
25708	fi
25709	if test $max_udp_port -ge 1024; then
25710
25711    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&5
25712$as_echo "$as_me: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&2;}
25713
25714
25715    cat <<AAW_EOF >>config.warnings
25716the UDP port range should be less than 1025 in --with-udpportrange
25717AAW_EOF
25718
25719
25720	fi
25721	if test $min_udp_port -le 0; then
25722
25723    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&5
25724$as_echo "$as_me: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
25725
25726
25727    cat <<AAW_EOF >>config.warnings
25728the UDP port range should be greater than 0 in --with-udpportrange
25729AAW_EOF
25730
25731
25732	fi
25733
25734cat >>confdefs.h <<_ACEOF
25735#define UDPPORTRANGE $UDPPORTRANGE
25736_ACEOF
25737
25738    fi
25739
25740
25741
25742
25743
25744
25745# Check whether --with-buffered-dump was given.
25746if test "${with_buffered_dump+set}" = set; then :
25747  withval=$with_buffered_dump;  DUMPER_SOCKET_BUFFERING=$withval
25748else
25749   DUMPER_SOCKET_BUFFERING=no
25750fi
25751
25752    case "$DUMPER_SOCKET_BUFFERING" in
25753    n | no) ;;
25754    y | ye | yes)
25755
25756$as_echo "#define DUMPER_SOCKET_BUFFERING 1" >>confdefs.h
25757
25758      ;;
25759    *) as_fn_error $? "You must not supply an argument to --with-buffered-dump." "$LINENO" 5 ;;
25760    esac
25761
25762
25763
25764# Check whether --with-maxtapeblocksize was given.
25765if test "${with_maxtapeblocksize+set}" = set; then :
25766  withval=$with_maxtapeblocksize;
25767    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-maxtapeblocksize is no longer needed" >&5
25768$as_echo "$as_me: WARNING: --with-maxtapeblocksize is no longer needed" >&2;}
25769
25770
25771    cat <<AAW_EOF >>config.warnings
25772--with-maxtapeblocksize is no longer needed
25773AAW_EOF
25774
25775
25776
25777fi
25778
25779
25780
25781    ASSERTIONS=
25782
25783# Check whether --with-assertions was given.
25784if test "${with_assertions+set}" = set; then :
25785  withval=$with_assertions;
25786            case "$withval" in
25787                n | no) : ;;
25788                y |  ye | yes)
25789		    ASSERTIONS=1
25790
25791$as_echo "#define ASSERTIONS 1" >>confdefs.h
25792
25793                  ;;
25794                *) as_fn_error $? "*** You must not supply an argument to --with-assertions option." "$LINENO" 5
25795                  ;;
25796            esac
25797
25798
25799fi
25800
25801
25802
25803
25804
25805
25806# Check whether --with-debugging was given.
25807if test "${with_debugging+set}" = set; then :
25808  withval=$with_debugging;  debugging="$withval"
25809else
25810   debugging="yes"
25811
25812fi
25813
25814
25815    case "$debugging" in
25816        n | no) as_fn_error $? "Amanda no longer supports building with debugging disabled" "$LINENO" 5;;
25817        y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
25818        *) AMANDA_DBGDIR="$debugging";;
25819    esac
25820
25821    # evaluate any extra variables in the directory
25822
25823  prefix_NONE=
25824  exec_prefix_NONE=
25825  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25826  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25827  eval ac_define_dir="\"$AMANDA_DBGDIR\""
25828  eval ac_define_dir="\"$ac_define_dir\""
25829  AMANDA_DBGDIR="$ac_define_dir"
25830
25831
25832cat >>confdefs.h <<_ACEOF
25833#define AMANDA_DBGDIR "$ac_define_dir"
25834_ACEOF
25835
25836  test "$prefix_NONE" && prefix=NONE
25837  test "$exec_prefix_NONE" && exec_prefix=NONE
25838
25839
25840
25841
25842# Check whether --with-debug_days was given.
25843if test "${with_debug_days+set}" = set; then :
25844  withval=$with_debug_days;
25845            debug_days="$withval"
25846
25847else
25848
25849            debug_days="yes"
25850
25851
25852fi
25853
25854    case "$debug_days" in
25855        n | no)
25856            AMANDA_DEBUG_DAYS=0 ;;
25857        y |  ye | yes)
25858            AMANDA_DEBUG_DAYS=4 ;;
25859        [0-9] | [0-9][0-9] | [0-9][0-9][0-9])
25860            AMANDA_DEBUG_DAYS="$debug_days" ;;
25861        *) as_fn_error $? "*** --with-debug-days value not numeric or out of range." "$LINENO" 5
25862          ;;
25863    esac
25864
25865cat >>confdefs.h <<_ACEOF
25866#define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
25867_ACEOF
25868
25869
25870
25871
25872
25873# Check whether --with-testing was given.
25874if test "${with_testing+set}" = set; then :
25875  withval=$with_testing;
25876            TESTING="$withval"
25877
25878else
25879
25880            TESTING="no"
25881
25882
25883fi
25884
25885    case "$TESTING" in
25886        n | no) SERVICE_SUFFIX="";;
25887        y |  ye | yes) SERVICE_SUFFIX="-test";;
25888        *) SERVICE_SUFFIX="-$TESTING";;
25889    esac
25890
25891    AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
25892    KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
25893
25894
25895
25896cat >>confdefs.h <<_ACEOF
25897#define SERVICE_SUFFIX "$SERVICE_SUFFIX"
25898_ACEOF
25899
25900
25901cat >>confdefs.h <<_ACEOF
25902#define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
25903_ACEOF
25904
25905
25906cat >>confdefs.h <<_ACEOF
25907#define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
25908_ACEOF
25909
25910
25911
25912    SINGLE_USERID=${SINGLE_USERID:-no}
25913    WANT_SETUID_CLIENT=${WANT_SETUID_CLIENT:-true}
25914
25915
25916# Check whether --with-single-userid was given.
25917if test "${with_single_userid+set}" = set; then :
25918  withval=$with_single_userid;    SINGLE_USERID=$withval
25919fi
25920
25921
25922    case "$host" in
25923        *-pc-cygwin)
25924            WANT_SETUID_CLIENT=false
25925	    SINGLE_USERID=yes
25926            ;;
25927    esac
25928
25929    if test x"$WANT_SETUID_CLIENT" = x"true"; then
25930
25931$as_echo "#define WANT_SETUID_CLIENT 1" >>confdefs.h
25932
25933    fi
25934     if test x"$WANT_SETUID_CLIENT" = x"true"; then
25935  WANT_SETUID_CLIENT_TRUE=
25936  WANT_SETUID_CLIENT_FALSE='#'
25937else
25938  WANT_SETUID_CLIENT_TRUE='#'
25939  WANT_SETUID_CLIENT_FALSE=
25940fi
25941
25942
25943    if test x"$SINGLE_USERID" = x"yes"; then
25944
25945$as_echo "#define SINGLE_USERID 1" >>confdefs.h
25946
25947    fi
25948
25949
25950    WANT_INSTALLPERMS=yes
25951    # Check whether --enable-installperms was given.
25952if test "${enable_installperms+set}" = set; then :
25953  enableval=$enable_installperms;  WANT_INSTALLPERMS="$enableval"
25954else
25955   WANT_INSTALLPERMS="yes"
25956
25957fi
25958
25959     if test x"$WANT_INSTALLPERMS" = x"yes"; then
25960  WANT_INSTALLPERMS_TRUE=
25961  WANT_INSTALLPERMS_FALSE='#'
25962else
25963  WANT_INSTALLPERMS_TRUE='#'
25964  WANT_INSTALLPERMS_FALSE=
25965fi
25966
25967
25968
25969    # Check whether --enable-syntax-checks was given.
25970if test "${enable_syntax_checks+set}" = set; then :
25971  enableval=$enable_syntax_checks;
25972	    case "$enableval" in
25973		no) SYNTAX_CHECKS=false;;
25974		*)
25975		    SYNTAX_CHECKS=true
25976
25977    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&5
25978$as_echo "$as_me: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&2;}
25979
25980
25981    cat <<AAW_EOF >>config.warnings
25982--enable-syntax-checks can cause build failures and should only be used by developers
25983AAW_EOF
25984
25985
25986		    ;;
25987	    esac
25988
25989else
25990
25991	    SYNTAX_CHECKS=false
25992
25993fi
25994
25995
25996     if $SYNTAX_CHECKS; then
25997  SYNTAX_CHECKS_TRUE=
25998  SYNTAX_CHECKS_FALSE='#'
25999else
26000  SYNTAX_CHECKS_TRUE='#'
26001  SYNTAX_CHECKS_FALSE=
26002fi
26003
26004
26005
26006
26007#
26008# Set up for Amanda components and modules
26009#
26010
26011    WANT_SERVER=true
26012
26013# Check whether --with-server was given.
26014if test "${with_server+set}" = set; then :
26015  withval=$with_server;
26016	    case "$withval" in
26017	    y | ye | yes) WANT_SERVER=true;;
26018	    n | no) WANT_SERVER=false;;
26019	    *) as_fn_error $? "You must not supply an argument to the --without-server option." "$LINENO" 5 ;;
26020	    esac
26021
26022fi
26023
26024
26025
26026    WANT_CLIENT=true
26027
26028# Check whether --with-client was given.
26029if test "${with_client+set}" = set; then :
26030  withval=$with_client;
26031	    case "$withval" in
26032	    y | ye | yes) WANT_CLIENT=true;;
26033	    n | no) WANT_CLIENT=false;;
26034	    *) as_fn_error $? "You must not supply an argument to the --without-client option." "$LINENO" 5 ;;
26035	    esac
26036
26037fi
26038
26039
26040
26041
26042    WANT_RESTORE=${WANT_SERVER-true}
26043
26044# Check whether --with-restore was given.
26045if test "${with_restore+set}" = set; then :
26046  withval=$with_restore;
26047	    case "$withval" in
26048	    y | ye | yes) WANT_RESTORE=true;;
26049	    n | no) WANT_RESTORE=false;;
26050	    *) as_fn_error $? "You must not supply an argument to --with-restore option." "$LINENO" 5 ;;
26051	    esac
26052
26053fi
26054
26055
26056
26057
26058    WANT_RECOVER=${WANT_CLIENT-true}
26059
26060# Check whether --with-amrecover was given.
26061if test "${with_amrecover+set}" = set; then :
26062  withval=$with_amrecover;
26063	    case "$withval" in
26064	    y | ye | yes) WANT_RECOVER=true;;
26065	    n | no) WANT_RECOVER=false;;
26066	    *) as_fn_error $? "You must not supply an argument to --with-amrecover option." "$LINENO" 5 ;;
26067	    esac
26068
26069fi
26070
26071
26072
26073
26074# Check whether --with-client-only was given.
26075if test "${with_client_only+set}" = set; then :
26076  withval=$with_client_only;    as_fn_error $? "--with-client-only is deprecated, use --without-server instead." "$LINENO" 5
26077
26078fi
26079
26080
26081
26082
26083# Check whether --with-server-only was given.
26084if test "${with_server_only+set}" = set; then :
26085  withval=$with_server_only;    as_fn_error $? "--with-server-only is deprecated, use --without-client instead." "$LINENO" 5
26086
26087fi
26088
26089
26090
26091    WANT_NDMP=${WANT_NDMP-true}
26092
26093# Check whether --with-ndmp was given.
26094if test "${with_ndmp+set}" = set; then :
26095  withval=$with_ndmp;
26096	    case "$withval" in
26097	    y | ye | yes) WANT_NDMP=true;;
26098	    n | no) WANT_NDMP=false;;
26099	    *) as_fn_error $? "You must not supply an argument to --with-ndmp option." "$LINENO" 5 ;;
26100	    esac
26101
26102fi
26103
26104
26105
26106
26107
26108
26109
26110
26111
26112    # detect invalid combinations of components
26113    if ! ${WANT_SERVER-true} && ${WANT_RESTORE-true}; then
26114        as_fn_error $? "--without-server requires --without-restore" "$LINENO" 5
26115    fi
26116    if ! ${WANT_CLIENT-true} && ${WANT_RECOVER-true}; then
26117        as_fn_error $? "--without-client requires --without-amrecover" "$LINENO" 5
26118    fi
26119
26120     if $WANT_CLIENT; then
26121  WANT_CLIENT_TRUE=
26122  WANT_CLIENT_FALSE='#'
26123else
26124  WANT_CLIENT_TRUE='#'
26125  WANT_CLIENT_FALSE=
26126fi
26127
26128     if $WANT_RESTORE; then
26129  WANT_RESTORE_TRUE=
26130  WANT_RESTORE_FALSE='#'
26131else
26132  WANT_RESTORE_TRUE='#'
26133  WANT_RESTORE_FALSE=
26134fi
26135
26136     if $WANT_SERVER; then
26137  WANT_SERVER_TRUE=
26138  WANT_SERVER_FALSE='#'
26139else
26140  WANT_SERVER_TRUE='#'
26141  WANT_SERVER_FALSE=
26142fi
26143
26144     if $WANT_RECOVER; then
26145  WANT_RECOVER_TRUE=
26146  WANT_RECOVER_FALSE='#'
26147else
26148  WANT_RECOVER_TRUE='#'
26149  WANT_RECOVER_FALSE=
26150fi
26151
26152     if $WANT_NDMP; then
26153  WANT_NDMP_TRUE=
26154  WANT_NDMP_FALSE='#'
26155else
26156  WANT_NDMP_TRUE='#'
26157  WANT_NDMP_FALSE=
26158fi
26159
26160
26161     if $WANT_SERVER || $WANT_RESTORE; then
26162  WANT_TAPE_TRUE=
26163  WANT_TAPE_FALSE='#'
26164else
26165  WANT_TAPE_TRUE='#'
26166  WANT_TAPE_FALSE=
26167fi
26168
26169
26170    # AMANDA_COMPONENTS goes to Amanda::Constants; missing_components is just for the
26171    # summary, below
26172    AMANDA_COMPONENTS=''
26173    missing_components=''
26174
26175    if $WANT_SERVER; then
26176	AMANDA_COMPONENTS="$AMANDA_COMPONENTS server";
26177    else
26178	missing_components="$missing_components (no server)";
26179    fi
26180    if $WANT_RESTORE; then
26181	AMANDA_COMPONENTS="$AMANDA_COMPONENTS restore";
26182    else
26183	missing_components="$missing_components (no restore)";
26184    fi
26185    if $WANT_CLIENT; then
26186	AMANDA_COMPONENTS="$AMANDA_COMPONENTS client";
26187    else
26188	missing_components="$missing_components (no client)";
26189    fi
26190    if $WANT_RECOVER; then
26191	AMANDA_COMPONENTS="$AMANDA_COMPONENTS amrecover";
26192    else
26193	missing_components="$missing_components (no amrecover)";
26194    fi
26195    if $WANT_NDMP; then
26196	AMANDA_COMPONENTS="$AMANDA_COMPONENTS ndmp";
26197    else
26198	missing_components="$missing_components (no ndmp)";
26199    fi
26200
26201
26202
26203
26204
26205
26206
26207# Check whether --with-gnuplot was given.
26208if test "${with_gnuplot+set}" = set; then :
26209  withval=$with_gnuplot;
26210	    case "$withval" in
26211		y | ye | yes) : ;;
26212		n | no) GNUPLOT=no ;;
26213		*) GNUPLOT="$withval" ;;
26214	    esac
26215
26216fi
26217
26218    if test "x$GNUPLOT" = "xno"; then
26219	GNUPLOT=
26220    else
26221	# Extract the first word of "gnuplot", so it can be a program name with args.
26222set dummy gnuplot; ac_word=$2
26223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26224$as_echo_n "checking for $ac_word... " >&6; }
26225if ${ac_cv_path_GNUPLOT+:} false; then :
26226  $as_echo_n "(cached) " >&6
26227else
26228  case $GNUPLOT in
26229  [\\/]* | ?:[\\/]*)
26230  ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
26231  ;;
26232  *)
26233  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26234for as_dir in $LOCSYSPATH
26235do
26236  IFS=$as_save_IFS
26237  test -z "$as_dir" && as_dir=.
26238    for ac_exec_ext in '' $ac_executable_extensions; do
26239  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26240    ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
26241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26242    break 2
26243  fi
26244done
26245  done
26246IFS=$as_save_IFS
26247
26248  ;;
26249esac
26250fi
26251GNUPLOT=$ac_cv_path_GNUPLOT
26252if test -n "$GNUPLOT"; then
26253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT" >&5
26254$as_echo "$GNUPLOT" >&6; }
26255else
26256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26257$as_echo "no" >&6; }
26258fi
26259
26260
26261    fi
26262
26263
26264
26265
26266
26267
26268    # Extract the first word of "pcat", so it can be a program name with args.
26269set dummy pcat; ac_word=$2
26270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26271$as_echo_n "checking for $ac_word... " >&6; }
26272if ${ac_cv_path_PCAT+:} false; then :
26273  $as_echo_n "(cached) " >&6
26274else
26275  case $PCAT in
26276  [\\/]* | ?:[\\/]*)
26277  ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
26278  ;;
26279  *)
26280  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26281for as_dir in $LOCSYSPATH
26282do
26283  IFS=$as_save_IFS
26284  test -z "$as_dir" && as_dir=.
26285    for ac_exec_ext in '' $ac_executable_extensions; do
26286  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26287    ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
26288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26289    break 2
26290  fi
26291done
26292  done
26293IFS=$as_save_IFS
26294
26295  ;;
26296esac
26297fi
26298PCAT=$ac_cv_path_PCAT
26299if test -n "$PCAT"; then
26300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAT" >&5
26301$as_echo "$PCAT" >&6; }
26302else
26303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26304$as_echo "no" >&6; }
26305fi
26306
26307
26308
26309
26310
26311    # Extract the first word of "compress", so it can be a program name with args.
26312set dummy compress; ac_word=$2
26313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26314$as_echo_n "checking for $ac_word... " >&6; }
26315if ${ac_cv_path_COMPRESS+:} false; then :
26316  $as_echo_n "(cached) " >&6
26317else
26318  case $COMPRESS in
26319  [\\/]* | ?:[\\/]*)
26320  ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
26321  ;;
26322  *)
26323  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26324for as_dir in $LOCSYSPATH
26325do
26326  IFS=$as_save_IFS
26327  test -z "$as_dir" && as_dir=.
26328    for ac_exec_ext in '' $ac_executable_extensions; do
26329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26330    ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
26331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26332    break 2
26333  fi
26334done
26335  done
26336IFS=$as_save_IFS
26337
26338  ;;
26339esac
26340fi
26341COMPRESS=$ac_cv_path_COMPRESS
26342if test -n "$COMPRESS"; then
26343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPRESS" >&5
26344$as_echo "$COMPRESS" >&6; }
26345else
26346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26347$as_echo "no" >&6; }
26348fi
26349
26350
26351
26352
26353
26354    # Extract the first word of "gzip", so it can be a program name with args.
26355set dummy gzip; ac_word=$2
26356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26357$as_echo_n "checking for $ac_word... " >&6; }
26358if ${ac_cv_path_GZIP+:} false; then :
26359  $as_echo_n "(cached) " >&6
26360else
26361  case $GZIP in
26362  [\\/]* | ?:[\\/]*)
26363  ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
26364  ;;
26365  *)
26366  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26367for as_dir in $LOCSYSPATH
26368do
26369  IFS=$as_save_IFS
26370  test -z "$as_dir" && as_dir=.
26371    for ac_exec_ext in '' $ac_executable_extensions; do
26372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26373    ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
26374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26375    break 2
26376  fi
26377done
26378  done
26379IFS=$as_save_IFS
26380
26381  ;;
26382esac
26383fi
26384GZIP=$ac_cv_path_GZIP
26385if test -n "$GZIP"; then
26386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
26387$as_echo "$GZIP" >&6; }
26388else
26389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26390$as_echo "no" >&6; }
26391fi
26392
26393
26394
26395
26396
26397
26398
26399
26400
26401
26402    if test "x$GNUPLOT" != "x"; then
26403	WANT_AMPLOT=true
26404
26405	# variable substitutions for amcat.awk
26406	if test "$PCAT"; then
26407	    AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
26408	else
26409	    AMPLOT_CAT_PACK=
26410	fi
26411	if test "$COMPRESS"; then
26412	    AMPLOT_COMPRESS=$COMPRESS
26413	    AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
26414	else
26415	    AMPLOT_CAT_COMPRESS=
26416	fi
26417	if test "$GZIP"; then
26418	    AMPLOT_COMPRESS=$GZIP
26419	    AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
26420	else
26421	    AMPLOT_CAT_GZIP=
26422	fi
26423
26424
26425
26426
26427
26428    else
26429	WANT_AMPLOT=false
26430
26431    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building 'amplot', because gnuplot was not found" >&5
26432$as_echo "$as_me: WARNING: Not building 'amplot', because gnuplot was not found" >&2;}
26433
26434
26435    cat <<AAW_EOF >>config.warnings
26436Not building 'amplot', because gnuplot was not found
26437AAW_EOF
26438
26439
26440    fi
26441
26442     if test x"$WANT_AMPLOT" = x"true"; then
26443  WANT_AMPLOT_TRUE=
26444  WANT_AMPLOT_FALSE='#'
26445else
26446  WANT_AMPLOT_TRUE='#'
26447  WANT_AMPLOT_FALSE=
26448fi
26449
26450
26451
26452    # Check whether --enable-manpage-build was given.
26453if test "${enable_manpage_build+set}" = set; then :
26454  enableval=$enable_manpage_build;  ENABLE_MANPAGE_BUILD=$enableval
26455else
26456   ENABLE_MANPAGE_BUILD=no
26457fi
26458
26459
26460    # and ensure that everything docbook-related is OK if we'll be using it
26461    if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
26462	DOC_BUILD_DATE=`date '+%d-%m-%Y'`
26463
26464
26465XSLTPROC_FLAGS="--nonet"
26466
26467
26468# The (lack of) whitespace and overquoting here are all necessary for
26469# proper formatting.
26470
26471# Check whether --with-xsltproc was given.
26472if test "${with_xsltproc+set}" = set; then :
26473  withval=$with_xsltproc;  ac_with_xsltproc=$withval;
26474else
26475   ac_with_xsltproc=maybe;
26476fi
26477
26478
26479
26480# Check whether --with-xsltproc-flags was given.
26481if test "${with_xsltproc_flags+set}" = set; then :
26482  withval=$with_xsltproc_flags;  if test "x$withval" == "xno"; then
26483	XSLTPROC_FLAGS=''
26484    else
26485	if test "x$withval" != "xyes"; then
26486	    XSLTPROC_FLAGS="$withval"
26487	fi
26488    fi
26489
26490fi
26491
26492
26493# search for xsltproc if it wasn't specified
26494if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
26495    for ac_prog in xsltproc
26496do
26497  # Extract the first word of "$ac_prog", so it can be a program name with args.
26498set dummy $ac_prog; ac_word=$2
26499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26500$as_echo_n "checking for $ac_word... " >&6; }
26501if ${ac_cv_path_XSLTPROC+:} false; then :
26502  $as_echo_n "(cached) " >&6
26503else
26504  case $XSLTPROC in
26505  [\\/]* | ?:[\\/]*)
26506  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
26507  ;;
26508  *)
26509  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26510for as_dir in $LOCSYSPATH
26511do
26512  IFS=$as_save_IFS
26513  test -z "$as_dir" && as_dir=.
26514    for ac_exec_ext in '' $ac_executable_extensions; do
26515  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26516    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
26517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26518    break 2
26519  fi
26520done
26521  done
26522IFS=$as_save_IFS
26523
26524  ;;
26525esac
26526fi
26527XSLTPROC=$ac_cv_path_XSLTPROC
26528if test -n "$XSLTPROC"; then
26529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
26530$as_echo "$XSLTPROC" >&6; }
26531else
26532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26533$as_echo "no" >&6; }
26534fi
26535
26536
26537  test -n "$XSLTPROC" && break
26538done
26539
26540else
26541    if test "$ac_with_xsltproc" != "no"; then
26542        if test -x "$ac_with_xsltproc"; then
26543            XSLTPROC="$ac_with_xsltproc";
26544        else
26545
26546    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&5
26547$as_echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&2;}
26548
26549
26550    cat <<AAW_EOF >>config.warnings
26551Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative.
26552AAW_EOF
26553
26554
26555            for ac_prog in xsltproc
26556do
26557  # Extract the first word of "$ac_prog", so it can be a program name with args.
26558set dummy $ac_prog; ac_word=$2
26559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26560$as_echo_n "checking for $ac_word... " >&6; }
26561if ${ac_cv_path_XSLTPROC+:} false; then :
26562  $as_echo_n "(cached) " >&6
26563else
26564  case $XSLTPROC in
26565  [\\/]* | ?:[\\/]*)
26566  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
26567  ;;
26568  *)
26569  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26570for as_dir in $LOCSYSPATH
26571do
26572  IFS=$as_save_IFS
26573  test -z "$as_dir" && as_dir=.
26574    for ac_exec_ext in '' $ac_executable_extensions; do
26575  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26576    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
26577    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26578    break 2
26579  fi
26580done
26581  done
26582IFS=$as_save_IFS
26583
26584  ;;
26585esac
26586fi
26587XSLTPROC=$ac_cv_path_XSLTPROC
26588if test -n "$XSLTPROC"; then
26589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
26590$as_echo "$XSLTPROC" >&6; }
26591else
26592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26593$as_echo "no" >&6; }
26594fi
26595
26596
26597  test -n "$XSLTPROC" && break
26598done
26599
26600        fi
26601    fi
26602fi
26603
26604
26605
26606
26607
26608
26609
26610
26611
26612
26613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook XSLT version 1.72.0" >&5
26614$as_echo_n "checking for Docbook XSLT version 1.72.0... " >&6; }
26615if ${ac_cv_docbook_xslt_1_72_0+:} false; then :
26616  $as_echo_n "(cached) " >&6
26617else
26618
26619	ac_cv_docbook_xslt_1_72_0=no
26620	if test -n "$XSLTPROC"; then
26621	    echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
26622	    $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&5
26623
26624	    if test "$?" = 0; then
26625		ac_cv_docbook_xslt_1_72_0=yes
26626	    fi
26627	fi
26628
26629fi
26630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_xslt_1_72_0" >&5
26631$as_echo "$ac_cv_docbook_xslt_1_72_0" >&6; }
26632
26633    HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
26634    HAVE_DOCBOOK_XSLT="$HAVE_DOCBOOK_XSLT_1_72_0"
26635
26636
26637
26638
26639
26640
26641
26642
26643    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current Docbook XSLT version" >&5
26644$as_echo_n "checking for current Docbook XSLT version... " >&6; }
26645if ${ac_cv_docbook_xslt_current_version+:} false; then :
26646  $as_echo_n "(cached) " >&6
26647else
26648
26649	ac_cv_docbook_xslt_current_version=no
26650
26651	if test -n "$XSLTPROC"; then
26652	    cat >conftest.xsl <<EOF
26653		<xsl:stylesheet
26654		    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
26655		    xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
26656		    version="1.0">
26657		    <xsl:output method="text"/>
26658		    <xsl:template match="fm:project/fm:Version">
26659			<xsl:value-of select="." />
26660		    </xsl:template>
26661		    <!-- do nothing with any other text -->
26662		    <xsl:template match="text()"/>
26663		</xsl:stylesheet>
26664EOF
26665	    echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/VERSION' with input:" >&5
26666	    echo "====" >&5
26667	    cat conftest.xsl >&5
26668	    echo "====" >&5
26669
26670	    ac_cv_docbook_xslt_current_version=`$XSLTPROC $XSLTPROC_FLAGS conftest.xsl http://docbook.sourceforge.net/release/xsl/current/VERSION 2>&5`
26671
26672	    if test "$?" != 0; then
26673		ac_cv_docbook_xslt_current_version='no'
26674	    fi
26675
26676	    rm conftest.xsl
26677	fi
26678
26679fi
26680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_xslt_current_version" >&5
26681$as_echo "$ac_cv_docbook_xslt_current_version" >&6; }
26682
26683    DOCBOOK_XSLT_CURRENT_VERSION="$ac_cv_docbook_xslt_current_version"
26684    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Docbook XSLT version is 1.72.0 or newer" >&5
26685$as_echo_n "checking whether Docbook XSLT version is 1.72.0 or newer... " >&6; }
26686
26687    if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
26688	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26689$as_echo "no" >&6; }
26690    else
26691
26692  # Used to indicate true or false condition
26693  ax_compare_version=false
26694
26695  # Convert the two version strings to be compared into a format that
26696  # allows a simple string comparison.  The end result is that a version
26697  # string of the form 1.12.5-r617 will be converted to the form
26698  # 0001001200050617.  In other words, each number is zero padded to four
26699  # digits, and non digits are removed.
26700
26701  ax_compare_version_A=`echo "$DOCBOOK_XSLT_CURRENT_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
26702                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
26703                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
26704                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
26705                     -e 's/[^0-9]//g'`
26706
26707
26708  ax_compare_version_B=`echo "1.72.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
26709                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
26710                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
26711                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
26712                     -e 's/[^0-9]//g'`
26713
26714
26715    ax_compare_version=`echo "x$ax_compare_version_A
26716x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
26717
26718
26719
26720    if test "$ax_compare_version" = "true" ; then
26721
26722	    # version is less than required, so mark it as "no"
26723	    DOCBOOK_XSLT_CURRENT_VERSION=no
26724
26725      fi
26726
26727
26728	if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
26729	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26730$as_echo "no" >&6; }
26731	else
26732	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&5
26733$as_echo "yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&6; }
26734	fi
26735    fi
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook DTD version 4.1.2" >&5
26747$as_echo_n "checking for Docbook DTD version 4.1.2... " >&6; }
26748if ${ac_cv_docbook_dtd_4_1_2+:} false; then :
26749  $as_echo_n "(cached) " >&6
26750else
26751
26752	ac_cv_docbook_dtd_4_1_2=no
26753	if test -n "$XSLTPROC"; then
26754	    MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
26755	    cat <<EOF >conftest.xml
26756<?xml version="1.0" encoding='ISO-8859-1'?>
26757<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
26758<book id="empty">
26759</book>
26760EOF
26761	    echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
26762	    echo "conftest.xml:" >&5
26763	    echo "====" >&5
26764	    cat conftest.xml >&5
26765	    echo "====" >&5
26766
26767	    $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
26768	    if test "$?" = 0 -o "$?" = 5; then
26769		# failing to load the DTD is just a warning, so check for it in the output.
26770		if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
26771		    : # no good..
26772		else
26773		    ac_cv_docbook_dtd_4_1_2=yes
26774		fi
26775	    fi
26776	    cat conftest.out >&5
26777
26778	    rm -f conftest.xml conftest.out
26779	fi
26780
26781fi
26782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_dtd_4_1_2" >&5
26783$as_echo "$ac_cv_docbook_dtd_4_1_2" >&6; }
26784
26785    HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
26786    HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_1_2"
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook DTD version 4.2" >&5
26802$as_echo_n "checking for Docbook DTD version 4.2... " >&6; }
26803if ${ac_cv_docbook_dtd_4_2+:} false; then :
26804  $as_echo_n "(cached) " >&6
26805else
26806
26807	ac_cv_docbook_dtd_4_2=no
26808	if test -n "$XSLTPROC"; then
26809	    MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
26810	    cat <<EOF >conftest.xml
26811<?xml version="1.0" encoding='ISO-8859-1'?>
26812<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
26813<book id="empty">
26814</book>
26815EOF
26816	    echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
26817	    echo "conftest.xml:" >&5
26818	    echo "====" >&5
26819	    cat conftest.xml >&5
26820	    echo "====" >&5
26821
26822	    $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
26823	    if test "$?" = 0 -o "$?" = 5; then
26824		# failing to load the DTD is just a warning, so check for it in the output.
26825		if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
26826		    : # no good..
26827		else
26828		    ac_cv_docbook_dtd_4_2=yes
26829		fi
26830	    fi
26831	    cat conftest.out >&5
26832
26833	    rm -f conftest.xml conftest.out
26834	fi
26835
26836fi
26837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_dtd_4_2" >&5
26838$as_echo "$ac_cv_docbook_dtd_4_2" >&6; }
26839
26840    HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
26841    HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_2"
26842
26843
26844
26845
26846
26847
26848	if test -z "$XSLTPROC"; then
26849	    as_fn_error $? "Cannot build manpages: 'xsltproc' was not found." "$LINENO" 5
26850	fi
26851
26852	# if the 'current' Docbook revision is good enough, use that; otherwise,
26853	# if 1.72.0 is available, use that.
26854	XSLREL=current
26855	if test "x$DOCBOOK_XSLT_CURRENT_VERSION" = "xno"; then
26856	    if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
26857		as_fn_error $? "Cannot build manpages: docbook version 1.72.0 or higher required." "$LINENO" 5
26858	    else
26859		XSLREL=1.72.0
26860	    fi
26861	fi
26862
26863	# disable validation if the correct DTDs are not available
26864	if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
26865
26866    { $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
26867$as_echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
26868
26869
26870    cat <<AAW_EOF >>config.warnings
26871Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation
26872AAW_EOF
26873
26874
26875	    XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
26876	fi
26877    fi
26878
26879     if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
26880  ENABLE_MANPAGE_BUILD_TRUE=
26881  ENABLE_MANPAGE_BUILD_FALSE='#'
26882else
26883  ENABLE_MANPAGE_BUILD_TRUE='#'
26884  ENABLE_MANPAGE_BUILD_FALSE=
26885fi
26886
26887
26888
26889
26890
26891    #allow configure CONFIG_CLOBBER_MY_CONFIG= to be used by make.
26892    CONFIG_CLOBBER_MY_CONFIG=$CLOBBER_MY_CONFIG
26893
26894
26895
26896# Check whether --with-index-server was given.
26897if test "${with_index_server+set}" = set; then :
26898  withval=$with_index_server;
26899	    case "$withval" in
26900	    "" | y | ye | yes | n | no)
26901		as_fn_error $? "*** You must supply an argument to the --with-index-server option." "$LINENO" 5
26902	      ;;
26903	    *) DEFAULT_SERVER="$withval"
26904	      ;;
26905	    esac
26906
26907else
26908  : ${DEFAULT_SERVER=`uname -n`}
26909
26910fi
26911
26912
26913cat >>confdefs.h <<_ACEOF
26914#define DEFAULT_SERVER "$DEFAULT_SERVER"
26915_ACEOF
26916
26917
26918
26919
26920# Check whether --with-config was given.
26921if test "${with_config+set}" = set; then :
26922  withval=$with_config;
26923	    case "$withval" in
26924	    "" | y | ye | yes | n | no)
26925		as_fn_error $? "*** You must supply an argument to the --with-config option." "$LINENO" 5
26926	      ;;
26927	    *) DEFAULT_CONFIG="$withval"
26928	      ;;
26929	    esac
26930
26931else
26932  : ${DEFAULT_CONFIG=DailySet1}
26933
26934fi
26935
26936
26937cat >>confdefs.h <<_ACEOF
26938#define DEFAULT_CONFIG "$DEFAULT_CONFIG"
26939_ACEOF
26940
26941
26942
26943
26944# Check whether --with-tape-server was given.
26945if test "${with_tape_server+set}" = set; then :
26946  withval=$with_tape_server;
26947	    case "$withval" in
26948	    "" | y | ye | yes | n | no)
26949		as_fn_error $? "*** You must supply an argument to the --with-tape-server option." "$LINENO" 5
26950	      ;;
26951	    *) DEFAULT_TAPE_SERVER="$withval"
26952	      ;;
26953	    esac
26954
26955else
26956  : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
26957
26958fi
26959
26960
26961cat >>confdefs.h <<_ACEOF
26962#define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
26963_ACEOF
26964
26965
26966
26967
26968# Check whether --with-tape-device was given.
26969if test "${with_tape_device+set}" = set; then :
26970  withval=$with_tape_device;
26971	    case "$withval" in
26972	    "" | y | ye | yes | n | no)
26973		as_fn_error $? "*** You must supply an argument to the --with-tape-device option." "$LINENO" 5
26974	      ;;
26975	    *) DEFAULT_TAPE_DEVICE="$withval"
26976	      ;;
26977	    esac
26978
26979
26980fi
26981
26982
26983
26984cat >>confdefs.h <<_ACEOF
26985#define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
26986_ACEOF
26987
26988
26989
26990    if test "${DEFAULT_TAPE_DEVICE+set}" = "set"; then
26991	EXAMPLE_TAPEDEV="$DEFAULT_TAPE_DEVICE"
26992    else
26993	EXAMPLE_TAPEDEV="tape:/dev/YOUR-TAPE-DEVICE-HERE"
26994    fi
26995
26996
26997
26998# Check whether --with-changer-device was given.
26999if test "${with_changer_device+set}" = set; then :
27000  withval=$with_changer_device;
27001
27002    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-changer-device is no longer used." >&5
27003$as_echo "$as_me: WARNING: --with-changer-device is no longer used." >&2;}
27004
27005
27006    cat <<AAW_EOF >>config.warnings
27007--with-changer-device is no longer used.
27008AAW_EOF
27009
27010
27011
27012
27013fi
27014
27015
27016
27017# Check whether --with-amandates was given.
27018if test "${with_amandates+set}" = set; then :
27019  withval=$with_amandates;
27020	    case "$withval" in
27021	        n | no) as_fn_error $? "*** --without-amandates is not allowed." "$LINENO" 5;;
27022	        y |  ye | yes) amandates='$localstatedir/amanda/amandates' ;;
27023	        *) amandates="$withval";;
27024	    esac
27025
27026else
27027  amandates='$localstatedir/amanda/amandates'
27028
27029fi
27030
27031
27032
27033  prefix_NONE=
27034  exec_prefix_NONE=
27035  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27036  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27037  eval ac_define_dir="\"$amandates\""
27038  eval ac_define_dir="\"$ac_define_dir\""
27039  DEFAULT_AMANDATES_FILE="$ac_define_dir"
27040
27041
27042cat >>confdefs.h <<_ACEOF
27043#define DEFAULT_AMANDATES_FILE "$ac_define_dir"
27044_ACEOF
27045
27046  test "$prefix_NONE" && prefix=NONE
27047  test "$exec_prefix_NONE" && exec_prefix=NONE
27048
27049
27050
27051# Check whether --with-security-file was given.
27052if test "${with_security_file+set}" = set; then :
27053  withval=$with_security_file;
27054	    case "$withval" in
27055	        n | no) as_fn_error $? "*** --without-security-file is not allowed." "$LINENO" 5;;
27056	        y |  ye | yes) security_file='/etc/amanda-security.conf' ;;
27057	        *) security_file="$withval";;
27058	    esac
27059
27060else
27061  security_file='/etc/amanda-security.conf'
27062
27063fi
27064
27065
27066
27067  prefix_NONE=
27068  exec_prefix_NONE=
27069  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27070  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27071  eval ac_define_dir="\"$security_file\""
27072  eval ac_define_dir="\"$ac_define_dir\""
27073  DEFAULT_SECURITY_FILE="$ac_define_dir"
27074
27075
27076cat >>confdefs.h <<_ACEOF
27077#define DEFAULT_SECURITY_FILE "$ac_define_dir"
27078_ACEOF
27079
27080  test "$prefix_NONE" && prefix=NONE
27081  test "$exec_prefix_NONE" && exec_prefix=NONE
27082
27083
27084    DEFAULT_FSF_AFTER_FILEMARK="FALSE"
27085    case "$host" in
27086	*-solaris*) DEFAULT_FSF_AFTER_FILEMARK="TRUE"
27087		    ;;
27088    esac
27089
27090cat >>confdefs.h <<_ACEOF
27091#define DEFAULT_FSF_AFTER_FILEMARK $DEFAULT_FSF_AFTER_FILEMARK
27092_ACEOF
27093
27094
27095
27096
27097    # Extract the first word of "getconf", so it can be a program name with args.
27098set dummy getconf; ac_word=$2
27099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27100$as_echo_n "checking for $ac_word... " >&6; }
27101if ${ac_cv_path_GETCONF+:} false; then :
27102  $as_echo_n "(cached) " >&6
27103else
27104  case $GETCONF in
27105  [\\/]* | ?:[\\/]*)
27106  ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
27107  ;;
27108  *)
27109  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27110for as_dir in $SYSPATH
27111do
27112  IFS=$as_save_IFS
27113  test -z "$as_dir" && as_dir=.
27114    for ac_exec_ext in '' $ac_executable_extensions; do
27115  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27116    ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
27117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27118    break 2
27119  fi
27120done
27121  done
27122IFS=$as_save_IFS
27123
27124  ;;
27125esac
27126fi
27127GETCONF=$ac_cv_path_GETCONF
27128if test -n "$GETCONF"; then
27129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
27130$as_echo "$GETCONF" >&6; }
27131else
27132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27133$as_echo "no" >&6; }
27134fi
27135
27136
27137
27138
27139
27140
27141
27142    # we use 'getconf', if it exists, to get the relevant
27143    # compiler flags.
27144    GETCONF_LFS="LFS"
27145    case "$host" in
27146        *-hp-*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
27147        *-ibm-aix*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
27148    esac
27149
27150    # Checks for compilers, typedefs, structures, and compiler characteristics.
27151    # Check for large file compilation environment.
27152    NEED_RESETOFS=yes
27153    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation CFLAGS" >&5
27154$as_echo_n "checking for large file compilation CFLAGS... " >&6; }
27155if ${amanda_cv_LFS_CFLAGS+:} false; then :
27156  $as_echo_n "(cached) " >&6
27157else
27158
27159        amanda_cv_LFS_CFLAGS=
27160        if test "$GETCONF"; then
27161            if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
27162                amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
27163                NEED_RESETOFS=no
27164            fi
27165        fi
27166
27167
27168fi
27169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_CFLAGS" >&5
27170$as_echo "$amanda_cv_LFS_CFLAGS" >&6; }
27171    CFLAGS="$CFLAGS $amanda_cv_LFS_CFLAGS"
27172
27173
27174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation LDFLAGS" >&5
27175$as_echo_n "checking for large file compilation LDFLAGS... " >&6; }
27176if ${amanda_cv_LFS_LDFLAGS+:} false; then :
27177  $as_echo_n "(cached) " >&6
27178else
27179
27180        amanda_cv_LFS_LDFLAGS=
27181        if test "$GETCONF"; then
27182            if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
27183                amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
27184                NEED_RESETOFS=no
27185            fi
27186        fi
27187
27188
27189fi
27190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_LDFLAGS" >&5
27191$as_echo "$amanda_cv_LFS_LDFLAGS" >&6; }
27192    LDFLAGS="$LDFLAGS $amanda_cv_LFS_LDFLAGS"
27193
27194
27195    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation LIBS" >&5
27196$as_echo_n "checking for large file compilation LIBS... " >&6; }
27197if ${amanda_cv_LFS_LIBS+:} false; then :
27198  $as_echo_n "(cached) " >&6
27199else
27200
27201        amanda_cv_LFS_LIBS=
27202        if test "$GETCONF"; then
27203            if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
27204                amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
27205                NEED_RESETOFS=no
27206            fi
27207        fi
27208
27209
27210fi
27211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_LIBS" >&5
27212$as_echo "$amanda_cv_LFS_LIBS" >&6; }
27213    LIBS="$amanda_cv_LFS_LIBS $LIBS"
27214
27215
27216    if test x"$NEED_RESETOFS" = x"yes"; then
27217
27218$as_echo "#define NEED_RESETOFS 1" >>confdefs.h
27219
27220    fi
27221
27222
27223    for ac_header in fstab.h \
27224	mntent.h \
27225	mnttab.h \
27226	sys/vfstab.h \
27227
27228do :
27229  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27230ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27231if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27232  cat >>confdefs.h <<_ACEOF
27233#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27234_ACEOF
27235
27236fi
27237
27238done
27239
27240
27241    for ac_func in endmntent
27242do :
27243  ac_fn_c_check_func "$LINENO" "endmntent" "ac_cv_func_endmntent"
27244if test "x$ac_cv_func_endmntent" = xyes; then :
27245  cat >>confdefs.h <<_ACEOF
27246#define HAVE_ENDMNTENT 1
27247_ACEOF
27248
27249fi
27250done
27251
27252    for ac_func in setmntent
27253do :
27254  ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
27255if test "x$ac_cv_func_setmntent" = xyes; then :
27256  cat >>confdefs.h <<_ACEOF
27257#define HAVE_SETMNTENT 1
27258_ACEOF
27259
27260fi
27261done
27262
27263
27264
27265    for ac_header in fcntl.h \
27266        sys/fcntl.h \
27267	sys/types.h \
27268	sys/file.h \
27269	unistd.h \
27270
27271do :
27272  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27273ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27274if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27275  cat >>confdefs.h <<_ACEOF
27276#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27277_ACEOF
27278
27279fi
27280
27281done
27282
27283
27284    # find a working file-locking mechanism.
27285    # Note: these all use AC_TRY_LINK to make sure that we can compile
27286    # and link each variant.  They do not try to test the variants --
27287    # that is left to runtime.
27288    LOCKING="no"
27289
27290    # check POSIX locking
27291    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX locking (with fcntl(2)) is available" >&5
27292$as_echo_n "checking whether POSIX locking (with fcntl(2)) is available... " >&6; }
27293if ${amanda_cv_posix_filelocking+:} false; then :
27294  $as_echo_n "(cached) " >&6
27295else
27296
27297	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27298/* end confdefs.h.  */
27299
27300#if HAVE_SYS_TYPES_H
27301# include <sys/types.h>
27302#endif
27303#if HAVE_UNISTD_H
27304# include <unistd.h>
27305#endif
27306#if HAVE_FCNTL_H
27307# include <fcntl.h>
27308#endif
27309
27310int
27311main ()
27312{
27313
27314	    struct flock lock;
27315
27316	    lock.l_type = F_RDLCK;
27317	    lock.l_start = 0;
27318	    lock.l_whence = SEEK_CUR;
27319	    lock.l_len = 0;
27320	    return fcntl(1, F_SETLK, &lock);
27321
27322  ;
27323  return 0;
27324}
27325_ACEOF
27326if ac_fn_c_try_link "$LINENO"; then :
27327
27328	amanda_cv_posix_filelocking="yes"
27329
27330else
27331
27332	amanda_cv_posix_filelocking="no"
27333
27334fi
27335rm -f core conftest.err conftest.$ac_objext \
27336    conftest$ac_exeext conftest.$ac_ext
27337
27338fi
27339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_posix_filelocking" >&5
27340$as_echo "$amanda_cv_posix_filelocking" >&6; }
27341    if test "x$amanda_cv_posix_filelocking" = xyes; then
27342
27343$as_echo "#define WANT_AMFLOCK_POSIX 1" >>confdefs.h
27344
27345	WANT_AMFLOCK_POSIX="yes"
27346	LOCKING="POSIX_FCNTL"
27347    fi
27348     if test x"$WANT_AMFLOCK_POSIX" = x"yes"; then
27349  WANT_AMFLOCK_POSIX_TRUE=
27350  WANT_AMFLOCK_POSIX_FALSE='#'
27351else
27352  WANT_AMFLOCK_POSIX_TRUE='#'
27353  WANT_AMFLOCK_POSIX_FALSE=
27354fi
27355
27356
27357    # check flock-based (BSD) locking
27358    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flock locking is available" >&5
27359$as_echo_n "checking whether flock locking is available... " >&6; }
27360if ${amanda_cv_flock_filelocking+:} false; then :
27361  $as_echo_n "(cached) " >&6
27362else
27363
27364	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27365/* end confdefs.h.  */
27366
27367#if HAVE_SYS_FILE_H
27368# include <sys/file.h>
27369#endif
27370
27371int
27372main ()
27373{
27374
27375	    return flock(1, LOCK_SH);
27376
27377  ;
27378  return 0;
27379}
27380_ACEOF
27381if ac_fn_c_try_link "$LINENO"; then :
27382
27383	amanda_cv_flock_filelocking="yes"
27384
27385else
27386
27387	amanda_cv_flock_filelocking="no"
27388
27389fi
27390rm -f core conftest.err conftest.$ac_objext \
27391    conftest$ac_exeext conftest.$ac_ext
27392
27393fi
27394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_flock_filelocking" >&5
27395$as_echo "$amanda_cv_flock_filelocking" >&6; }
27396    if test "x$amanda_cv_flock_filelocking" = xyes; then
27397
27398$as_echo "#define WANT_AMFLOCK_FLOCK 1" >>confdefs.h
27399
27400	WANT_AMFLOCK_FLOCK="yes"
27401	LOCKING="FLOCK"
27402    fi
27403     if test x"$WANT_AMFLOCK_FLOCK" = x"yes"; then
27404  WANT_AMFLOCK_FLOCK_TRUE=
27405  WANT_AMFLOCK_FLOCK_FALSE='#'
27406else
27407  WANT_AMFLOCK_FLOCK_TRUE='#'
27408  WANT_AMFLOCK_FLOCK_FALSE=
27409fi
27410
27411
27412    # check lockf-based (SVR2, SVR3, SVR4) locking
27413    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lockf(3) locking is available" >&5
27414$as_echo_n "checking whether lockf(3) locking is available... " >&6; }
27415if ${amanda_cv_lockf_filelocking+:} false; then :
27416  $as_echo_n "(cached) " >&6
27417else
27418
27419	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27420/* end confdefs.h.  */
27421
27422#if HAVE_UNISTD_H
27423# include <unistd.h>
27424#endif
27425
27426int
27427main ()
27428{
27429
27430	    return lockf(1, F_LOCK, 0);
27431
27432  ;
27433  return 0;
27434}
27435_ACEOF
27436if ac_fn_c_try_link "$LINENO"; then :
27437
27438	amanda_cv_lockf_filelocking="yes"
27439
27440else
27441
27442	amanda_cv_lockf_filelocking="no"
27443
27444fi
27445rm -f core conftest.err conftest.$ac_objext \
27446    conftest$ac_exeext conftest.$ac_ext
27447
27448fi
27449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_lockf_filelocking" >&5
27450$as_echo "$amanda_cv_lockf_filelocking" >&6; }
27451    if test "x$amanda_cv_lockf_filelocking" = xyes; then
27452
27453$as_echo "#define WANT_AMFLOCK_LOCKF 1" >>confdefs.h
27454
27455	WANT_AMFLOCK_LOCKF="yes"
27456	LOCKING="LOCKF"
27457    fi
27458     if test x"$WANT_AMFLOCK_LOCKF" = x"yes"; then
27459  WANT_AMFLOCK_LOCKF_TRUE=
27460  WANT_AMFLOCK_LOCKF_FALSE='#'
27461else
27462  WANT_AMFLOCK_LOCKF_TRUE='#'
27463  WANT_AMFLOCK_LOCKF_FALSE=
27464fi
27465
27466
27467    # check our homebrew hardlink-based locking (requires hardlinks)
27468    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link(2) is available for locking" >&5
27469$as_echo_n "checking whether link(2) is available for locking... " >&6; }
27470if ${amanda_cv_lnlock_filelocking+:} false; then :
27471  $as_echo_n "(cached) " >&6
27472else
27473
27474	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27475/* end confdefs.h.  */
27476
27477#if HAVE_UNISTD_H
27478# include <unistd.h>
27479#endif
27480
27481int
27482main ()
27483{
27484
27485	    return link("/tmp/foo", "/tmp/bar");
27486
27487  ;
27488  return 0;
27489}
27490_ACEOF
27491if ac_fn_c_try_link "$LINENO"; then :
27492
27493	amanda_cv_lnlock_filelocking="yes"
27494
27495else
27496
27497	amanda_cv_lnlock_filelocking="no"
27498
27499fi
27500rm -f core conftest.err conftest.$ac_objext \
27501    conftest$ac_exeext conftest.$ac_ext
27502
27503fi
27504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_lnlock_filelocking" >&5
27505$as_echo "$amanda_cv_lnlock_filelocking" >&6; }
27506    if test "x$amanda_cv_lnlock_filelocking" = xyes; then
27507
27508$as_echo "#define WANT_AMFLOCK_LNLOCK 1" >>confdefs.h
27509
27510	WANT_AMFLOCK_LNLOCK="yes"
27511	LOCKING="LNLOCK"
27512    fi
27513     if test x"$WANT_AMFLOCK_LNLOCK" = x"yes"; then
27514  WANT_AMFLOCK_LNLOCK_TRUE=
27515  WANT_AMFLOCK_LNLOCK_FALSE='#'
27516else
27517  WANT_AMFLOCK_LNLOCK_TRUE='#'
27518  WANT_AMFLOCK_LNLOCK_FALSE=
27519fi
27520
27521
27522    if test x"$LOCKING" = "no"; then
27523	# this shouldn't happen, and is *bad* if it does
27524	as_fn_error $? "*** No working file locking capability found!" "$LINENO" 5
27525    fi
27526
27527
27528
27529
27530
27531    for ac_prog in swig
27532do
27533  # Extract the first word of "$ac_prog", so it can be a program name with args.
27534set dummy $ac_prog; ac_word=$2
27535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27536$as_echo_n "checking for $ac_word... " >&6; }
27537if ${ac_cv_path_SWIG+:} false; then :
27538  $as_echo_n "(cached) " >&6
27539else
27540  case $SWIG in
27541  [\\/]* | ?:[\\/]*)
27542  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
27543  ;;
27544  *)
27545  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27546for as_dir in $LOCSYSPATH
27547do
27548  IFS=$as_save_IFS
27549  test -z "$as_dir" && as_dir=.
27550    for ac_exec_ext in '' $ac_executable_extensions; do
27551  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27552    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
27553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27554    break 2
27555  fi
27556done
27557  done
27558IFS=$as_save_IFS
27559
27560  ;;
27561esac
27562fi
27563SWIG=$ac_cv_path_SWIG
27564if test -n "$SWIG"; then
27565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
27566$as_echo "$SWIG" >&6; }
27567else
27568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27569$as_echo "no" >&6; }
27570fi
27571
27572
27573  test -n "$SWIG" && break
27574done
27575
27576
27577    # 1.3.32 introduces a change in the way empty strings are handled (old versions
27578    # returned undef in Perl, while new versions return an empty Perl string)
27579    # 1.3.39 is required for the %begin block
27580
27581        # Extract the first word of "swig", so it can be a program name with args.
27582set dummy swig; ac_word=$2
27583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27584$as_echo_n "checking for $ac_word... " >&6; }
27585if ${ac_cv_path_SWIG+:} false; then :
27586  $as_echo_n "(cached) " >&6
27587else
27588  case $SWIG in
27589  [\\/]* | ?:[\\/]*)
27590  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
27591  ;;
27592  *)
27593  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27594for as_dir in $PATH
27595do
27596  IFS=$as_save_IFS
27597  test -z "$as_dir" && as_dir=.
27598    for ac_exec_ext in '' $ac_executable_extensions; do
27599  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27600    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
27601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27602    break 2
27603  fi
27604done
27605  done
27606IFS=$as_save_IFS
27607
27608  ;;
27609esac
27610fi
27611SWIG=$ac_cv_path_SWIG
27612if test -n "$SWIG"; then
27613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
27614$as_echo "$SWIG" >&6; }
27615else
27616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27617$as_echo "no" >&6; }
27618fi
27619
27620
27621        if test -z "$SWIG" ; then
27622                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
27623        elif test -n "1.3.39" ; then
27624                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
27625$as_echo_n "checking for SWIG version... " >&6; }
27626                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'`
27627                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
27628$as_echo "$swig_version" >&6; }
27629                if test -n "$swig_version" ; then
27630
27631  # Used to indicate true or false condition
27632  ax_compare_version=false
27633
27634  # Convert the two version strings to be compared into a format that
27635  # allows a simple string comparison.  The end result is that a version
27636  # string of the form 1.12.5-r617 will be converted to the form
27637  # 0001001200050617.  In other words, each number is zero padded to four
27638  # digits, and non digits are removed.
27639
27640  ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
27641                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
27642                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
27643                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
27644                     -e 's/[^0-9]//g'`
27645
27646
27647  ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
27648                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
27649                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
27650                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
27651                     -e 's/[^0-9]//g'`
27652
27653
27654    ax_compare_version=`echo "x$ax_compare_version_A
27655x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
27656
27657
27658
27659    if test "$ax_compare_version" = "true" ; then
27660
27661			    			    SWIG_LIB=`$SWIG -swiglib`
27662
27663    else
27664			    			    SWIG='echo "Error: SWIG version >= 1.3.39 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
27665
27666  fi
27667
27668                else
27669                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
27670                fi
27671        fi
27672
27673
27674
27675
27676
27677    for ac_prog in perl5 perl
27678do
27679  # Extract the first word of "$ac_prog", so it can be a program name with args.
27680set dummy $ac_prog; ac_word=$2
27681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27682$as_echo_n "checking for $ac_word... " >&6; }
27683if ${ac_cv_path_PERL+:} false; then :
27684  $as_echo_n "(cached) " >&6
27685else
27686  case $PERL in
27687  [\\/]* | ?:[\\/]*)
27688  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
27689  ;;
27690  *)
27691  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27692for as_dir in $LOCSYSPATH
27693do
27694  IFS=$as_save_IFS
27695  test -z "$as_dir" && as_dir=.
27696    for ac_exec_ext in '' $ac_executable_extensions; do
27697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27698    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
27699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27700    break 2
27701  fi
27702done
27703  done
27704IFS=$as_save_IFS
27705
27706  ;;
27707esac
27708fi
27709PERL=$ac_cv_path_PERL
27710if test -n "$PERL"; then
27711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
27712$as_echo "$PERL" >&6; }
27713else
27714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27715$as_echo "no" >&6; }
27716fi
27717
27718
27719  test -n "$PERL" && break
27720done
27721
27722
27723    # Make sure we have perl
27724if test -z "$PERL"; then
27725# Extract the first word of "perl", so it can be a program name with args.
27726set dummy perl; ac_word=$2
27727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27728$as_echo_n "checking for $ac_word... " >&6; }
27729if ${ac_cv_prog_PERL+:} false; then :
27730  $as_echo_n "(cached) " >&6
27731else
27732  if test -n "$PERL"; then
27733  ac_cv_prog_PERL="$PERL" # Let the user override the test.
27734else
27735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27736for as_dir in $PATH
27737do
27738  IFS=$as_save_IFS
27739  test -z "$as_dir" && as_dir=.
27740    for ac_exec_ext in '' $ac_executable_extensions; do
27741  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27742    ac_cv_prog_PERL="perl"
27743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27744    break 2
27745  fi
27746done
27747  done
27748IFS=$as_save_IFS
27749
27750fi
27751fi
27752PERL=$ac_cv_prog_PERL
27753if test -n "$PERL"; then
27754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
27755$as_echo "$PERL" >&6; }
27756else
27757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27758$as_echo "no" >&6; }
27759fi
27760
27761
27762fi
27763
27764# Check if version of Perl is sufficient
27765ac_perl_version="5.6.0"
27766
27767if test "x$PERL" != "x"; then
27768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
27769$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
27770  # NB: It would be nice to log the error if there is one, but we cannot rely
27771  # on autoconf internals
27772  $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
27773  if test $? -ne 0; then
27774    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27775$as_echo "no" >&6; };
27776
27777	as_fn_error $? "Amanda requires at least perl 5.6.0" "$LINENO" 5
27778
27779  else
27780    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
27781$as_echo "ok" >&6; };
27782
27783  fi
27784else
27785  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
27786$as_echo "$as_me: WARNING: could not find perl" >&2;}
27787fi
27788
27789
27790
27791
27792
27793
27794    WANT_CYGWIN_COPY_PERL_DLL=false
27795    WANT_MANDATORY_THREAD_CHECK=false
27796
27797    # test for ExtUtils::Embed
27798    ac_perl_list_modules="ExtUtils::Embed 0.0"
27799# Make sure we have perl
27800if test -z "$PERL"; then
27801# Extract the first word of "perl", so it can be a program name with args.
27802set dummy perl; ac_word=$2
27803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27804$as_echo_n "checking for $ac_word... " >&6; }
27805if ${ac_cv_prog_PERL+:} false; then :
27806  $as_echo_n "(cached) " >&6
27807else
27808  if test -n "$PERL"; then
27809  ac_cv_prog_PERL="$PERL" # Let the user override the test.
27810else
27811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27812for as_dir in $PATH
27813do
27814  IFS=$as_save_IFS
27815  test -z "$as_dir" && as_dir=.
27816    for ac_exec_ext in '' $ac_executable_extensions; do
27817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27818    ac_cv_prog_PERL="perl"
27819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27820    break 2
27821  fi
27822done
27823  done
27824IFS=$as_save_IFS
27825
27826fi
27827fi
27828PERL=$ac_cv_prog_PERL
27829if test -n "$PERL"; then
27830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
27831$as_echo "$PERL" >&6; }
27832else
27833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27834$as_echo "no" >&6; }
27835fi
27836
27837
27838fi
27839
27840# Check the number of arguments
27841args_num=`echo $ac_perl_list_modules | wc -w`
27842let "ckeck_args = $args_num % 2"
27843if test "$check_args" = "1" ; then
27844  as_fn_error $? "syntax error" "$LINENO" 5
27845else
27846  eval
27847fi
27848
27849if test "x$PERL" != x; then
27850  ac_failed=0
27851  while test ${#ac_perl_list_modules} -gt 2 ; do
27852	module_name=`echo $ac_perl_list_modules | cut -d " " -f 1`
27853	module_version=`echo $ac_perl_list_modules | cut -d " " -f 2`
27854	ac_perl_list_modules=`echo $ac_perl_list_modules | cut -d " " -f 3-`
27855	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $module_name version $module_version" >&5
27856$as_echo_n "checking for perl module $module_name version $module_version... " >&6; }
27857
27858	$PERL "-M$module_name" -e exit > /dev/null 2>&1
27859	if test $? -ne 0; then
27860	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27861$as_echo "no" >&6; };
27862	  ac_failed=1
27863	  ac_perl_list_modules=""
27864	else
27865	  version=`$PERL "-M$module_name" -e 'print $'"$module_name::VERSION" 2>&1`
27866	  $PERL -e 'exit(shift cmp shift)' "$version" "$module_version"
27867	  if test $? -eq 0 -o $? -eq 1 ; then
27868	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
27869$as_echo "ok" >&6; };
27870	  else
27871	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27872$as_echo "no" >&6; }
27873	    ac_failed=1
27874	    ac_perl_list_modules=""
27875	  fi
27876	fi;
27877  done
27878
27879  if test "$ac_failed" = 0; then
27880    :
27881
27882  else
27883    :
27884
27885	as_fn_error $? "*** Amanda requires the perl package ExtUtils::Embed to build its perl modules" "$LINENO" 5
27886
27887  fi
27888else
27889  as_fn_error $? "could not find perl" "$LINENO" 5
27890fi
27891
27892    # get the include path for building perl extensions
27893    PERL_INC=`$PERL -MExtUtils::Embed -e perl_inc`
27894
27895
27896    if test x"$enable_shared" = x"no"; then
27897	as_fn_error $? "*** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" "$LINENO" 5
27898    fi
27899
27900    case "$host" in
27901	*freebsd[123456].*) # up to and including FreeBSD 6.*
27902	    # Before 7.0, FreeBSD systems don't include a DT_NEEDS segment in
27903	    # libgthread to automatically pull in the desired threading library.
27904	    # Instead, they assume that any application linking against
27905	    # libgthread will pull in the threading library.  This is fine for
27906	    # Amanda C applications, but for Perl applications this assumption
27907	    # means that the perl binary would pull in the threading library.
27908	    # But perl is compiled without threading by default.
27909	    #
27910	    # Specifically, this occurs on any FreeBSD using gcc-3.*: the linking
27911	    # decision is made in gcc's spec files, which were changed in
27912	    # gcc-4.0.  For a more in-depth discussion, see
27913	    #  http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_FreeBSD
27914	    #
27915	    # The easiest solution for the "default" case is to link all perl
27916	    # extension libraries against the threading library, so it is loaded
27917	    # when perl loads the extension library.  The default threading
27918	    # library in FreeBSD is libpthread.  The below default will work on
27919	    # such a FreeBSD system, but ports maintainers and those with
27920	    # different configurations may need to override this value with
27921	    # --with-perlextlibs.
27922	    #
27923	    # We can't use -pthread because gcc on FreeBSD ignores -pthread in
27924	    # combination with -shared.  See
27925	    #   http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026229.html
27926
27927	    PERLEXTLIBS="-lpthread"
27928	    WANT_MANDATORY_THREAD_CHECK=true
27929	    ;;
27930
27931	*freebsd*) # all FreeBSD not matched above
27932	    # for all FreeBSD (including 1.0-6.0, above), we want to run the
27933	    # thread-check rule in perl/Makefile.am to double-check that a Perl
27934	    # script can call a C extension that uses threads.
27935	    WANT_MANDATORY_THREAD_CHECK=true
27936	    ;;
27937
27938	*-pc-cygwin)
27939	    # When need -lperl and the '-L' where it is located,
27940	    # we don't want the DynaLoader.a
27941	    PERLEXTLIBS=`perl -MExtUtils::Embed -e ldopts | sed -e 's/^.*-L/-L/'`
27942	    # we want cygwin to copy ddl to modules directory.
27943	    WANT_CYGWIN_COPY_PERL_DLL="true";
27944	    ;;
27945    esac
27946     if $WANT_CYGWIN_COPY_PERL_DLL; then
27947  WANT_CYGWIN_COPY_PERL_DLL_TRUE=
27948  WANT_CYGWIN_COPY_PERL_DLL_FALSE='#'
27949else
27950  WANT_CYGWIN_COPY_PERL_DLL_TRUE='#'
27951  WANT_CYGWIN_COPY_PERL_DLL_FALSE=
27952fi
27953
27954     if $WANT_MANDATORY_THREAD_CHECK; then
27955  WANT_MANDATORY_THREAD_CHECK_TRUE=
27956  WANT_MANDATORY_THREAD_CHECK_FALSE='#'
27957else
27958  WANT_MANDATORY_THREAD_CHECK_TRUE='#'
27959  WANT_MANDATORY_THREAD_CHECK_FALSE=
27960fi
27961
27962
27963
27964# Check whether --with-perlextlibs was given.
27965if test "${with_perlextlibs+set}" = set; then :
27966  withval=$with_perlextlibs;
27967	    case "$withval" in
27968		y|ye|yes) as_fn_error $? "*** You must specify a value for --with-perlextlibs" "$LINENO" 5;;
27969		n|no) PERLEXTLIBS='';;
27970		*) PERLEXTLIBS="$withval" ;;
27971	    esac
27972
27973fi
27974
27975
27976
27977
27978
27979    # Extract the first word of "cat", so it can be a program name with args.
27980set dummy cat; ac_word=$2
27981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27982$as_echo_n "checking for $ac_word... " >&6; }
27983if ${ac_cv_path_CAT+:} false; then :
27984  $as_echo_n "(cached) " >&6
27985else
27986  case $CAT in
27987  [\\/]* | ?:[\\/]*)
27988  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
27989  ;;
27990  *)
27991  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27992for as_dir in $LOCSYSPATH
27993do
27994  IFS=$as_save_IFS
27995  test -z "$as_dir" && as_dir=.
27996    for ac_exec_ext in '' $ac_executable_extensions; do
27997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27998    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
27999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28000    break 2
28001  fi
28002done
28003  done
28004IFS=$as_save_IFS
28005
28006  test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="cat"
28007  ;;
28008esac
28009fi
28010CAT=$ac_cv_path_CAT
28011if test -n "$CAT"; then
28012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
28013$as_echo "$CAT" >&6; }
28014else
28015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28016$as_echo "no" >&6; }
28017fi
28018
28019
28020
28021
28022
28023
28024
28025
28026    HAVE_GZIP=
28027    if test "$GZIP"; then
28028
28029$as_echo "#define HAVE_GZIP 1" >>confdefs.h
28030
28031	HAVE_GZIP=1
28032	COMPRESS_PATH="$GZIP"
28033	COMPRESS_SUFFIX=".gz"
28034	COMPRESS_FAST_OPT="--fast"
28035	COMPRESS_BEST_OPT="--best"
28036	UNCOMPRESS_PATH="$GZIP"
28037	UNCOMPRESS_OPT="-dc"
28038    else
28039	if test "$COMPRESS"; then
28040	    COMPRESS_PATH="$COMPRESS"
28041	    COMPRESS_SUFFIX=".Z"
28042	    COMPRESS_FAST_OPT="-f"
28043	    COMPRESS_BEST_OPT="-f"
28044	    UNCOMPRESS_PATH="$COMPRESS"
28045	    UNCOMPRESS_OPT="-dc"
28046	else
28047	    # If we have to use cat, we don't define COMPRESS_FAST_OPT,
28048	    # COMPRESS_BEST_OPT, or UNCOMPRESS_OPT as "" since cat will look
28049	    # look for a file by the name of "".
28050	    # XXX is the above true? --dustin
28051
28052
28053    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find either gzip or compress.  Using cat." >&5
28054$as_echo "$as_me: WARNING: Cannot find either gzip or compress.  Using cat." >&2;}
28055
28056
28057    cat <<AAW_EOF >>config.warnings
28058Cannot find either gzip or compress.  Using cat.
28059AAW_EOF
28060
28061
28062	    COMPRESS_PATH="$CAT"
28063	    COMPRESS_SUFFIX=""
28064	    COMPRESS_FAST_OPT=""
28065	    COMPRESS_BEST_OPT=""
28066	    UNCOMPRESS_PATH="$CAT"
28067	    UNCOMPRESS_OPT=""
28068	fi
28069    fi
28070
28071
28072cat >>confdefs.h <<_ACEOF
28073#define COMPRESS_PATH "$COMPRESS_PATH"
28074_ACEOF
28075
28076
28077cat >>confdefs.h <<_ACEOF
28078#define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
28079_ACEOF
28080
28081
28082cat >>confdefs.h <<_ACEOF
28083#define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
28084_ACEOF
28085
28086
28087cat >>confdefs.h <<_ACEOF
28088#define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
28089_ACEOF
28090
28091
28092cat >>confdefs.h <<_ACEOF
28093#define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
28094_ACEOF
28095
28096
28097cat >>confdefs.h <<_ACEOF
28098#define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
28099_ACEOF
28100
28101
28102
28103
28104
28105
28106
28107
28108
28109
28110    # Empty GZIP so that make dist works.
28111    GZIP=
28112
28113
28114    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5
28115$as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
28116if ${ac_cv_has_sockaddr_storage+:} false; then :
28117  $as_echo_n "(cached) " >&6
28118else
28119
28120	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28121/* end confdefs.h.  */
28122
28123#	include <sys/types.h>
28124#	include <sys/socket.h>
28125int
28126main ()
28127{
28128u_int i = sizeof (struct sockaddr_storage)
28129  ;
28130  return 0;
28131}
28132_ACEOF
28133if ac_fn_c_try_compile "$LINENO"; then :
28134  ac_cv_has_sockaddr_storage=yes
28135else
28136  ac_cv_has_sockaddr_storage=no
28137fi
28138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28139
28140fi
28141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_sockaddr_storage" >&5
28142$as_echo "$ac_cv_has_sockaddr_storage" >&6; }
28143
28144    if test $ac_cv_has_sockaddr_storage = yes ; then
28145
28146$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
28147
28148    fi
28149
28150
28151
28152
28153    WORKING_IPV6=no
28154
28155# Check whether --with-ipv6 was given.
28156if test "${with_ipv6+set}" = set; then :
28157  withval=$with_ipv6;
28158	    case "$withval" in
28159	    y | ye | yes) amanda_with_ipv6=yes;;
28160	    n | no) amanda_with_ipv6=no;;
28161	    *)
28162		as_fn_error $? "*** You must not supply an argument to --with-ipv6 option." "$LINENO" 5
28163	      ;;
28164	    esac
28165
28166else
28167
28168	    amanda_with_ipv6=maybe
28169
28170
28171fi
28172
28173
28174    if test x"$amanda_with_ipv6" = x"yes" ||
28175       test x"$amanda_with_ipv6" = x"maybe" ; then
28176	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working IPv6" >&5
28177$as_echo_n "checking for working IPv6... " >&6; }
28178if ${amanda_cv_working_ipv6+:} false; then :
28179  $as_echo_n "(cached) " >&6
28180else
28181
28182	    case "$host" in
28183		*-pc-cygwin) amanda_cv_working_ipv6=no;;
28184		*)
28185		    if test "$cross_compiling" = yes; then :
28186   amanda_cv_working_ipv6=yes
28187
28188else
28189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28190/* end confdefs.h.  */
28191
28192#include <sys/types.h>
28193#ifdef HAVE_SYS_SOCKET_H
28194#include <sys/socket.h>
28195#endif
28196#ifdef HAVE_NETINET_IN_H
28197#include <netinet/in.h>
28198#endif
28199#ifdef HAVE_WINSOCK2_H
28200#include <winsock2.h>
28201#endif
28202#include <sys/socket.h>
28203#include <errno.h>
28204
28205main()
28206{
28207   int aa;
28208   aa = socket(AF_INET6, SOCK_STREAM, 0);
28209   if (aa > 0) return 0;
28210   return aa;
28211}
28212_ACEOF
28213if ac_fn_c_try_run "$LINENO"; then :
28214   amanda_cv_working_ipv6=yes
28215else
28216   amanda_cv_working_ipv6=no
28217fi
28218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28219  conftest.$ac_objext conftest.beam conftest.$ac_ext
28220fi
28221
28222	    esac
28223
28224fi
28225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_working_ipv6" >&5
28226$as_echo "$amanda_cv_working_ipv6" >&6; }
28227
28228	if test "$amanda_cv_working_ipv6" = yes; then
28229	    WORKING_IPV6=yes
28230
28231$as_echo "#define WORKING_IPV6 1" >>confdefs.h
28232
28233	else
28234	    # error out only if the user specifically requested support
28235	    if test x"$amanda_with_ipv6" = x"yes"; then
28236		as_fn_error $? "IPv6 support was requested, but opening an IPv6 socket failed" "$LINENO" 5
28237	    fi
28238	fi
28239    fi
28240
28241
28242    ac_header_dirent=no
28243for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28244  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
28245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
28246$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
28247if eval \${$as_ac_Header+:} false; then :
28248  $as_echo_n "(cached) " >&6
28249else
28250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28251/* end confdefs.h.  */
28252#include <sys/types.h>
28253#include <$ac_hdr>
28254
28255int
28256main ()
28257{
28258if ((DIR *) 0)
28259return 0;
28260  ;
28261  return 0;
28262}
28263_ACEOF
28264if ac_fn_c_try_compile "$LINENO"; then :
28265  eval "$as_ac_Header=yes"
28266else
28267  eval "$as_ac_Header=no"
28268fi
28269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28270fi
28271eval ac_res=\$$as_ac_Header
28272	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28273$as_echo "$ac_res" >&6; }
28274if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28275  cat >>confdefs.h <<_ACEOF
28276#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28277_ACEOF
28278
28279ac_header_dirent=$ac_hdr; break
28280fi
28281
28282done
28283# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28284if test $ac_header_dirent = dirent.h; then
28285  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
28286$as_echo_n "checking for library containing opendir... " >&6; }
28287if ${ac_cv_search_opendir+:} false; then :
28288  $as_echo_n "(cached) " >&6
28289else
28290  ac_func_search_save_LIBS=$LIBS
28291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28292/* end confdefs.h.  */
28293
28294/* Override any GCC internal prototype to avoid an error.
28295   Use char because int might match the return type of a GCC
28296   builtin and then its argument prototype would still apply.  */
28297#ifdef __cplusplus
28298extern "C"
28299#endif
28300char opendir ();
28301int
28302main ()
28303{
28304return opendir ();
28305  ;
28306  return 0;
28307}
28308_ACEOF
28309for ac_lib in '' dir; do
28310  if test -z "$ac_lib"; then
28311    ac_res="none required"
28312  else
28313    ac_res=-l$ac_lib
28314    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28315  fi
28316  if ac_fn_c_try_link "$LINENO"; then :
28317  ac_cv_search_opendir=$ac_res
28318fi
28319rm -f core conftest.err conftest.$ac_objext \
28320    conftest$ac_exeext
28321  if ${ac_cv_search_opendir+:} false; then :
28322  break
28323fi
28324done
28325if ${ac_cv_search_opendir+:} false; then :
28326
28327else
28328  ac_cv_search_opendir=no
28329fi
28330rm conftest.$ac_ext
28331LIBS=$ac_func_search_save_LIBS
28332fi
28333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
28334$as_echo "$ac_cv_search_opendir" >&6; }
28335ac_res=$ac_cv_search_opendir
28336if test "$ac_res" != no; then :
28337  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28338
28339fi
28340
28341else
28342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
28343$as_echo_n "checking for library containing opendir... " >&6; }
28344if ${ac_cv_search_opendir+:} false; then :
28345  $as_echo_n "(cached) " >&6
28346else
28347  ac_func_search_save_LIBS=$LIBS
28348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28349/* end confdefs.h.  */
28350
28351/* Override any GCC internal prototype to avoid an error.
28352   Use char because int might match the return type of a GCC
28353   builtin and then its argument prototype would still apply.  */
28354#ifdef __cplusplus
28355extern "C"
28356#endif
28357char opendir ();
28358int
28359main ()
28360{
28361return opendir ();
28362  ;
28363  return 0;
28364}
28365_ACEOF
28366for ac_lib in '' x; do
28367  if test -z "$ac_lib"; then
28368    ac_res="none required"
28369  else
28370    ac_res=-l$ac_lib
28371    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28372  fi
28373  if ac_fn_c_try_link "$LINENO"; then :
28374  ac_cv_search_opendir=$ac_res
28375fi
28376rm -f core conftest.err conftest.$ac_objext \
28377    conftest$ac_exeext
28378  if ${ac_cv_search_opendir+:} false; then :
28379  break
28380fi
28381done
28382if ${ac_cv_search_opendir+:} false; then :
28383
28384else
28385  ac_cv_search_opendir=no
28386fi
28387rm conftest.$ac_ext
28388LIBS=$ac_func_search_save_LIBS
28389fi
28390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
28391$as_echo "$ac_cv_search_opendir" >&6; }
28392ac_res=$ac_cv_search_opendir
28393if test "$ac_res" != no; then :
28394  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28395
28396fi
28397
28398fi
28399
28400
28401    # include the dirent headers as described in the autoconf documentation.
28402    ac_fn_c_check_decl "$LINENO" "readdir" "ac_cv_have_decl_readdir" "
28403#if HAVE_DIRENT_H
28404# include <dirent.h>
28405# define NAMLEN(dirent) strlen((dirent)->d_name)
28406#else
28407# define dirent direct
28408# define NAMLEN(dirent) (dirent)->d_namlen
28409# if HAVE_SYS_NDIR_H
28410#  include <sys/ndir.h>
28411# endif
28412# if HAVE_SYS_DIR_H
28413#  include <sys/dir.h>
28414# endif
28415# if HAVE_NDIR_H
28416#  include <ndir.h>
28417# endif
28418#endif
28419
28420"
28421if test "x$ac_cv_have_decl_readdir" = xyes; then :
28422  ac_have_decl=1
28423else
28424  ac_have_decl=0
28425fi
28426
28427cat >>confdefs.h <<_ACEOF
28428#define HAVE_DECL_READDIR $ac_have_decl
28429_ACEOF
28430ac_fn_c_check_decl "$LINENO" "readdir_r" "ac_cv_have_decl_readdir_r" "
28431#if HAVE_DIRENT_H
28432# include <dirent.h>
28433# define NAMLEN(dirent) strlen((dirent)->d_name)
28434#else
28435# define dirent direct
28436# define NAMLEN(dirent) (dirent)->d_namlen
28437# if HAVE_SYS_NDIR_H
28438#  include <sys/ndir.h>
28439# endif
28440# if HAVE_SYS_DIR_H
28441#  include <sys/dir.h>
28442# endif
28443# if HAVE_NDIR_H
28444#  include <ndir.h>
28445# endif
28446#endif
28447
28448"
28449if test "x$ac_cv_have_decl_readdir_r" = xyes; then :
28450  ac_have_decl=1
28451else
28452  ac_have_decl=0
28453fi
28454
28455cat >>confdefs.h <<_ACEOF
28456#define HAVE_DECL_READDIR_R $ac_have_decl
28457_ACEOF
28458ac_fn_c_check_decl "$LINENO" "readdir64" "ac_cv_have_decl_readdir64" "
28459#if HAVE_DIRENT_H
28460# include <dirent.h>
28461# define NAMLEN(dirent) strlen((dirent)->d_name)
28462#else
28463# define dirent direct
28464# define NAMLEN(dirent) (dirent)->d_namlen
28465# if HAVE_SYS_NDIR_H
28466#  include <sys/ndir.h>
28467# endif
28468# if HAVE_SYS_DIR_H
28469#  include <sys/dir.h>
28470# endif
28471# if HAVE_NDIR_H
28472#  include <ndir.h>
28473# endif
28474#endif
28475
28476"
28477if test "x$ac_cv_have_decl_readdir64" = xyes; then :
28478  ac_have_decl=1
28479else
28480  ac_have_decl=0
28481fi
28482
28483cat >>confdefs.h <<_ACEOF
28484#define HAVE_DECL_READDIR64 $ac_have_decl
28485_ACEOF
28486ac_fn_c_check_decl "$LINENO" "readdir64_r" "ac_cv_have_decl_readdir64_r" "
28487#if HAVE_DIRENT_H
28488# include <dirent.h>
28489# define NAMLEN(dirent) strlen((dirent)->d_name)
28490#else
28491# define dirent direct
28492# define NAMLEN(dirent) (dirent)->d_namlen
28493# if HAVE_SYS_NDIR_H
28494#  include <sys/ndir.h>
28495# endif
28496# if HAVE_SYS_DIR_H
28497#  include <sys/dir.h>
28498# endif
28499# if HAVE_NDIR_H
28500#  include <ndir.h>
28501# endif
28502#endif
28503
28504"
28505if test "x$ac_cv_have_decl_readdir64_r" = xyes; then :
28506  ac_have_decl=1
28507else
28508  ac_have_decl=0
28509fi
28510
28511cat >>confdefs.h <<_ACEOF
28512#define HAVE_DECL_READDIR64_R $ac_have_decl
28513_ACEOF
28514
28515
28516
28517    # disk device prefixes
28518    { $as_echo "$as_me:${as_lineno-$LINENO}: checking disk device prefixes" >&5
28519$as_echo_n "checking disk device prefixes... " >&6; }
28520
28521    # Use df to find the mount point for the root filesystem.  Use
28522    # the positional parameters to find the particular line from df
28523    # that contains the root paritition.  We put it in a subshell so
28524    # that the original positional parameters are not messed with.
28525    dfline=`(
28526	df / | while read line; do
28527	    set -- $line
28528	    	    while test $# -gt 0; do
28529		if test "x$1" = "x/"; then
28530		    echo $line
28531		    break 2
28532		fi
28533		shift
28534	    done
28535	done
28536    ) | sed 's/(//' | sed 's/)//' `
28537
28538    # Search for the mount point by using expr to find the parameter
28539    # with dev in it.
28540    mount=`(
28541	set -- $dfline
28542		while test $# -gt 0; do
28543	    if expr "$1" : '.*dev' >/dev/null 2>&1; then
28544		echo $1
28545		break
28546	    fi
28547	    shift
28548	done
28549    )`
28550
28551    # get any system-specific configuration information
28552    case "$host" in
28553	*-hp-*)
28554	    CLIENT_SCRIPTS_OPT=amhpfixdevs
28555	    case $mount in
28556		/dev/vg*)
28557
28558    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&5
28559$as_echo "$as_me: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&2;}
28560
28561
28562    cat <<AAW_EOF >>config.warnings
28563Run amhpfixdevs on HP-UX systems using /dev/vg??.
28564AAW_EOF
28565
28566
28567		    ;;
28568	    esac
28569	    ;;
28570	*-sni-sysv4)
28571	    DEV_PREFIX=/dev/dsk/
28572	    RDEV_PREFIX=/dev/rdsk/
28573	    CLIENT_SCRIPTS_OPT=amsinixfixdevs
28574	    if ! test -d /dev/dsk; then
28575
28576    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&5
28577$as_echo "$as_me: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&2;}
28578
28579
28580    cat <<AAW_EOF >>config.warnings
28581Run amsinixfixdevs on Sinix systems using VxFS.
28582AAW_EOF
28583
28584
28585	    fi
28586	    ;;
28587	*-sco3.2v4*)
28588	    DEV_PREFIX=/dev/
28589	    RDEV_PREFIX=/dev/
28590	    ;;
28591	*)
28592	    CLIENT_SCRIPTS_OPT=
28593	    ;;
28594    esac
28595
28596    if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
28597	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
28598$as_echo "(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6; }
28599    else
28600	if test -d /dev/dsk; then
28601	    DEV_PREFIX=/dev/dsk/
28602	    if test -d /dev/rdsk; then
28603		RDEV_PREFIX=/dev/rdsk/
28604	    else
28605		RDEV_PREFIX=/dev/dsk/
28606	    fi
28607	elif test -d /dev; then
28608	    DEV_PREFIX=/dev/
28609
28610	    # Some systems, notably Linux, do not have raw disk devices
28611	    # names.  Check this by trying to see if a raw disk device name
28612	    # exists using the normal raw device path prepended to the
28613	    # mount point of the root filesystem.
28614	    if test "$mount"; then
28615		dev_name="/dev/r`basename $mount`"
28616		if test -b $dev_name -o -c $dev_name; then
28617		    RDEV_PREFIX=/dev/r
28618		else
28619		    RDEV_PREFIX=/dev/
28620		fi
28621	    else
28622		RDEV_PREFIX=/dev/r
28623	    fi
28624	else
28625	    # just fake it..
28626	    DEV_PREFIX=/
28627	    RDEV_PREFIX=/
28628	fi
28629	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
28630$as_echo "$DEV_PREFIX - $RDEV_PREFIX" >&6; }
28631    fi
28632
28633
28634cat >>confdefs.h <<_ACEOF
28635#define DEV_PREFIX "${DEV_PREFIX}"
28636_ACEOF
28637
28638
28639cat >>confdefs.h <<_ACEOF
28640#define RDEV_PREFIX "${RDEV_PREFIX}"
28641_ACEOF
28642
28643
28644
28645
28646    case "$host" in
28647	*-dec-osf*)
28648		    ;;
28649	*-dg-*)
28650		    ;;
28651	*-netbsd*)
28652		    ;;
28653	*-freebsd*)
28654		    ;;
28655	*-openbsd*)
28656		    ;;
28657	*-hp-*)
28658		    case "$CC" in
28659			*gcc*)
28660			    CPPFLAGS="$CPPFLAGS -D__STDC_EXT__"
28661
28662			    ;;
28663			*cc*)
28664			    CFLAGS="$CFLAGS -Ae"
28665
28666			    ;;
28667		    esac
28668		    # hpux needs LD_LIBRARY_PATH to load perl binary module
28669
28670$as_echo "#define NEED_LD_LIBRARY_PATH_ENV 1" >>confdefs.h
28671
28672		    ;;
28673	*-ibm-aix*)
28674		    ;;
28675	m88k-motorola-sysv4)
28676		    ;;
28677	*-nextstep3)
28678		    ;;
28679	*-pc-bsdi*)
28680		    ;;
28681	*-pc-linux-*)
28682		    ;;
28683	*-redhat-linux-*)
28684		    ;;
28685	*-suse-linux-*)
28686		    ;;
28687	x86_64-*-linux-*)
28688		    ;;
28689	alpha*-*-linux-*)
28690		    ;;
28691	sparc*-*-linux-*)
28692		    ;;
28693	s390x-*-linux-*)
28694		    ;;
28695	powerpc-*-linux-*)
28696		    ;;
28697        *-sgi-irix3*)
28698		    # The old cc won't work!
28699		    if test "x$GCC" != "xyes"; then
28700			as_fn_error $? "The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" "$LINENO" 5
28701		    fi
28702		    ;;
28703        *-sgi-irix4*)
28704		    ;;
28705        *-sgi-irix5*)
28706		    ;;
28707        *-sgi-irix6*)
28708		    ;;
28709        *-solaris2*)
28710		    ;;
28711        *-sun-sunos4.1*)
28712		    ;;
28713        *-ultrix*)
28714		    ;;
28715        *-sysv4.2uw2*)
28716		    ;;
28717        *-sco3.2v5*)
28718		    ;;
28719        i386-pc-isc4*)
28720		    ;;
28721        *-sni-sysv4)
28722		    ;;
28723        *-pc-cygwin)
28724
28725$as_echo "#define IGNORE_TAR_ERRORS 1" >>confdefs.h
28726
28727		    # Cygwin needs PATH to find cygwin1.dll
28728
28729$as_echo "#define NEED_PATH_ENV 1" >>confdefs.h
28730
28731
28732$as_echo "#define IGNORE_FSTAB 1" >>confdefs.h
28733
28734		    LDFLAGS="$LDFLAGS -Wl,-enable-runtime-pseudo-reloc -no-undefined"
28735
28736		    ;;
28737        *-apple-darwin7*) # MacOS X 10.3.* (Panther)
28738		    ;;
28739        *-apple-darwin8*) # MacOS X 10.4.* (Tiger)
28740		    ;;
28741        *-apple-darwin9*) # MacOS X 10.5.* (Leopard)
28742		    ;;
28743        *-apple-darwin10*) # MacOS X 10.6.* (Snow Leopard)
28744		    ;;
28745      *)
28746
28747
28748    cat <<AAW_EOF >>config.warnings
28749*****
28750This machine, target type $host, is not known to be fully supported
28751by this configure script.  If the installation of Amanda on this system
28752succeeds or needed any patches, please email amanda-hackers@amanda.org
28753with the patches or an indication of the sucess or failure of the
28754Amanda installation on your system.
28755*****
28756AAW_EOF
28757
28758		    ;;
28759    esac
28760
28761
28762
28763
28764
28765  prefix_NONE=
28766  exec_prefix_NONE=
28767  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
28768  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
28769  eval ac_define_dir="\"$bindir\""
28770  eval ac_define_dir="\"$ac_define_dir\""
28771  bindir="$ac_define_dir"
28772
28773
28774cat >>confdefs.h <<_ACEOF
28775#define bindir "$ac_define_dir"
28776_ACEOF
28777
28778  test "$prefix_NONE" && prefix=NONE
28779  test "$exec_prefix_NONE" && exec_prefix=NONE
28780
28781
28782
28783  prefix_NONE=
28784  exec_prefix_NONE=
28785  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
28786  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
28787  eval ac_define_dir="\"$sbindir\""
28788  eval ac_define_dir="\"$ac_define_dir\""
28789  sbindir="$ac_define_dir"
28790
28791
28792cat >>confdefs.h <<_ACEOF
28793#define sbindir "$ac_define_dir"
28794_ACEOF
28795
28796  test "$prefix_NONE" && prefix=NONE
28797  test "$exec_prefix_NONE" && exec_prefix=NONE
28798
28799
28800
28801  prefix_NONE=
28802  exec_prefix_NONE=
28803  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
28804  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
28805  eval ac_define_dir="\"$libexecdir\""
28806  eval ac_define_dir="\"$ac_define_dir\""
28807  libexecdir="$ac_define_dir"
28808
28809
28810cat >>confdefs.h <<_ACEOF
28811#define libexecdir "$ac_define_dir"
28812_ACEOF
28813
28814  test "$prefix_NONE" && prefix=NONE
28815  test "$exec_prefix_NONE" && exec_prefix=NONE
28816
28817
28818
28819  prefix_NONE=
28820  exec_prefix_NONE=
28821  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
28822  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
28823  eval ac_define_dir="\"$mandir\""
28824  eval ac_define_dir="\"$ac_define_dir\""
28825  mandir="$ac_define_dir"
28826
28827
28828cat >>confdefs.h <<_ACEOF
28829#define mandir "$ac_define_dir"
28830_ACEOF
28831
28832  test "$prefix_NONE" && prefix=NONE
28833  test "$exec_prefix_NONE" && exec_prefix=NONE
28834
28835
28836
28837    # amanda-specific directories
28838    AMLIBDIR=$libdir/amanda
28839
28840# Check whether --with-amlibdir was given.
28841if test "${with_amlibdir+set}" = set; then :
28842  withval=$with_amlibdir;
28843	    case "$withval" in
28844		n | no) AMLIBDIR=$libdir ;;
28845		y | ye | yes) AMLIBDIR=$libdir/amanda ;;
28846		*) AMLIBDIR=$withval ;;
28847	    esac
28848
28849
28850fi
28851
28852
28853  prefix_NONE=
28854  exec_prefix_NONE=
28855  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
28856  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
28857  eval ac_define_dir="\"$AMLIBDIR\""
28858  eval ac_define_dir="\"$ac_define_dir\""
28859  amlibdir="$ac_define_dir"
28860
28861
28862cat >>confdefs.h <<_ACEOF
28863#define amlibdir "$ac_define_dir"
28864_ACEOF
28865
28866  test "$prefix_NONE" && prefix=NONE
28867  test "$exec_prefix_NONE" && exec_prefix=NONE
28868
28869
28870    AMLIBEXECDIR=$libexecdir/amanda
28871
28872# Check whether --with-amlibexecdir was given.
28873if test "${with_amlibexecdir+set}" = set; then :
28874  withval=$with_amlibexecdir;
28875	    case "$withval" in
28876		n | no) AMLIBEXECDIR=$libexecdir ;;
28877		y | ye | yes) AMLIBEXECDIR=$libexecdir/amanda ;;
28878		*) AMLIBEXECDIR=$withval ;;
28879	    esac
28880
28881
28882fi
28883
28884
28885  prefix_NONE=
28886  exec_prefix_NONE=
28887  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
28888  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
28889  eval ac_define_dir="\"$AMLIBEXECDIR\""
28890  eval ac_define_dir="\"$ac_define_dir\""
28891  amlibexecdir="$ac_define_dir"
28892
28893
28894cat >>confdefs.h <<_ACEOF
28895#define amlibexecdir "$ac_define_dir"
28896_ACEOF
28897
28898  test "$prefix_NONE" && prefix=NONE
28899  test "$exec_prefix_NONE" && exec_prefix=NONE
28900
28901
28902    amincludedir="${includedir}/amanda"
28903
28904  prefix_NONE=
28905  exec_prefix_NONE=
28906  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
28907  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
28908  eval ac_define_dir="\"$amincludedir\""
28909  eval ac_define_dir="\"$ac_define_dir\""
28910  amincludedir="$ac_define_dir"
28911
28912
28913cat >>confdefs.h <<_ACEOF
28914#define amincludedir "$ac_define_dir"
28915_ACEOF
28916
28917  test "$prefix_NONE" && prefix=NONE
28918  test "$exec_prefix_NONE" && exec_prefix=NONE
28919
28920
28921
28922# Check whether --with-amperldir was given.
28923if test "${with_amperldir+set}" = set; then :
28924  withval=$with_amperldir;
28925	    case "$withval" in
28926		y | ye | yes) AMPERLLIB=DEFAULT ;;
28927		n | no) AMPERLLIB=$amlibdir/perl ;;
28928		*) AMPERLLIB=$withval ;;
28929	    esac
28930
28931else
28932
28933	    AMPERLLIB=DEFAULT
28934
28935
28936fi
28937
28938    # apply the default if no value was given.
28939    if test x"$AMPERLLIB" = x"DEFAULT"; then
28940	eval `$PERL -V:installsitelib`
28941	AMPERLLIB=$installsitelib
28942    fi
28943
28944  prefix_NONE=
28945  exec_prefix_NONE=
28946  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
28947  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
28948  eval ac_define_dir="\"$AMPERLLIB\""
28949  eval ac_define_dir="\"$ac_define_dir\""
28950  amperldir="$ac_define_dir"
28951
28952
28953cat >>confdefs.h <<_ACEOF
28954#define amperldir "$ac_define_dir"
28955_ACEOF
28956
28957  test "$prefix_NONE" && prefix=NONE
28958  test "$exec_prefix_NONE" && exec_prefix=NONE
28959
28960
28961    APPLICATION_DIR='${amlibexecdir}/application'
28962
28963  prefix_NONE=
28964  exec_prefix_NONE=
28965  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
28966  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
28967  eval ac_define_dir="\"$APPLICATION_DIR\""
28968  eval ac_define_dir="\"$ac_define_dir\""
28969  APPLICATION_DIR="$ac_define_dir"
28970
28971
28972cat >>confdefs.h <<_ACEOF
28973#define APPLICATION_DIR "$ac_define_dir"
28974_ACEOF
28975
28976  test "$prefix_NONE" && prefix=NONE
28977  test "$exec_prefix_NONE" && exec_prefix=NONE
28978
28979
28980
28981# Check whether --with-amdatadir was given.
28982if test "${with_amdatadir+set}" = set; then :
28983  withval=$with_amdatadir;
28984	    AMDATADIR=$withval
28985
28986else
28987
28988	    AMDATADIR=$datadir/amanda
28989
28990
28991fi
28992
28993
28994  prefix_NONE=
28995  exec_prefix_NONE=
28996  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
28997  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
28998  eval ac_define_dir="\"$AMDATADIR\""
28999  eval ac_define_dir="\"$ac_define_dir\""
29000  amdatadir="$ac_define_dir"
29001
29002
29003cat >>confdefs.h <<_ACEOF
29004#define amdatadir "$ac_define_dir"
29005_ACEOF
29006
29007  test "$prefix_NONE" && prefix=NONE
29008  test "$exec_prefix_NONE" && exec_prefix=NONE
29009
29010
29011
29012#
29013# Internationalization
29014#
29015
29016    # FreeBSD needs to link libxpg4
29017    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale in -lxpg4" >&5
29018$as_echo_n "checking for setlocale in -lxpg4... " >&6; }
29019if ${ac_cv_lib_xpg4_setlocale+:} false; then :
29020  $as_echo_n "(cached) " >&6
29021else
29022  ac_check_lib_save_LIBS=$LIBS
29023LIBS="-lxpg4  $LIBS"
29024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29025/* end confdefs.h.  */
29026
29027/* Override any GCC internal prototype to avoid an error.
29028   Use char because int might match the return type of a GCC
29029   builtin and then its argument prototype would still apply.  */
29030#ifdef __cplusplus
29031extern "C"
29032#endif
29033char setlocale ();
29034int
29035main ()
29036{
29037return setlocale ();
29038  ;
29039  return 0;
29040}
29041_ACEOF
29042if ac_fn_c_try_link "$LINENO"; then :
29043  ac_cv_lib_xpg4_setlocale=yes
29044else
29045  ac_cv_lib_xpg4_setlocale=no
29046fi
29047rm -f core conftest.err conftest.$ac_objext \
29048    conftest$ac_exeext conftest.$ac_ext
29049LIBS=$ac_check_lib_save_LIBS
29050fi
29051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4_setlocale" >&5
29052$as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
29053if test "x$ac_cv_lib_xpg4_setlocale" = xyes; then :
29054  cat >>confdefs.h <<_ACEOF
29055#define HAVE_LIBXPG4 1
29056_ACEOF
29057
29058  LIBS="-lxpg4 $LIBS"
29059
29060fi
29061
29062
29063    # ------------------------------------------------------------------
29064    # All list of languages for which a translation exist. Each
29065    #  language is separated by a space.
29066    # ------------------------------------------------------------------
29067    ALL_LINGUAS=""
29068
29069
29070    # Extract the first word of "msgfmt", so it can be a program name with args.
29071set dummy msgfmt; ac_word=$2
29072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29073$as_echo_n "checking for $ac_word... " >&6; }
29074if ${ac_cv_path_MSGFMT+:} false; then :
29075  $as_echo_n "(cached) " >&6
29076else
29077  case $MSGFMT in
29078  [\\/]* | ?:[\\/]*)
29079  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
29080  ;;
29081  *)
29082  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29083for as_dir in $LOCSYSPATH
29084do
29085  IFS=$as_save_IFS
29086  test -z "$as_dir" && as_dir=.
29087    for ac_exec_ext in '' $ac_executable_extensions; do
29088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29089    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
29090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29091    break 2
29092  fi
29093done
29094  done
29095IFS=$as_save_IFS
29096
29097  ;;
29098esac
29099fi
29100MSGFMT=$ac_cv_path_MSGFMT
29101if test -n "$MSGFMT"; then
29102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
29103$as_echo "$MSGFMT" >&6; }
29104else
29105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29106$as_echo "no" >&6; }
29107fi
29108
29109
29110    # Extract the first word of "gettext", so it can be a program name with args.
29111set dummy gettext; ac_word=$2
29112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29113$as_echo_n "checking for $ac_word... " >&6; }
29114if ${ac_cv_path_GETTEXT+:} false; then :
29115  $as_echo_n "(cached) " >&6
29116else
29117  case $GETTEXT in
29118  [\\/]* | ?:[\\/]*)
29119  ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
29120  ;;
29121  *)
29122  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29123for as_dir in $LOCSYSPATH
29124do
29125  IFS=$as_save_IFS
29126  test -z "$as_dir" && as_dir=.
29127    for ac_exec_ext in '' $ac_executable_extensions; do
29128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29129    ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
29130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29131    break 2
29132  fi
29133done
29134  done
29135IFS=$as_save_IFS
29136
29137  ;;
29138esac
29139fi
29140GETTEXT=$ac_cv_path_GETTEXT
29141if test -n "$GETTEXT"; then
29142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETTEXT" >&5
29143$as_echo "$GETTEXT" >&6; }
29144else
29145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29146$as_echo "no" >&6; }
29147fi
29148
29149
29150
29151
29152
29153mkdir_p="$MKDIR_P"
29154case $mkdir_p in
29155  [\\/$]* | ?:[\\/]*) ;;
29156  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
29157esac
29158
29159
29160  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
29161$as_echo_n "checking whether NLS is requested... " >&6; }
29162    # Check whether --enable-nls was given.
29163if test "${enable_nls+set}" = set; then :
29164  enableval=$enable_nls; USE_NLS=$enableval
29165else
29166  USE_NLS=yes
29167fi
29168
29169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
29170$as_echo "$USE_NLS" >&6; }
29171
29172
29173
29174
29175
29176
29177# Prepare PATH_SEPARATOR.
29178# The user is always right.
29179if test "${PATH_SEPARATOR+set}" != set; then
29180  echo "#! /bin/sh" >conf$$.sh
29181  echo  "exit 0"   >>conf$$.sh
29182  chmod +x conf$$.sh
29183  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29184    PATH_SEPARATOR=';'
29185  else
29186    PATH_SEPARATOR=:
29187  fi
29188  rm -f conf$$.sh
29189fi
29190
29191# Find out how to test for executable files. Don't use a zero-byte file,
29192# as systems may use methods other than mode bits to determine executability.
29193cat >conf$$.file <<_ASEOF
29194#! /bin/sh
29195exit 0
29196_ASEOF
29197chmod +x conf$$.file
29198if test -x conf$$.file >/dev/null 2>&1; then
29199  ac_executable_p="test -x"
29200else
29201  ac_executable_p="test -f"
29202fi
29203rm -f conf$$.file
29204
29205# Extract the first word of "msgfmt", so it can be a program name with args.
29206set dummy msgfmt; ac_word=$2
29207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29208$as_echo_n "checking for $ac_word... " >&6; }
29209if ${ac_cv_path_MSGFMT+:} false; then :
29210  $as_echo_n "(cached) " >&6
29211else
29212  case "$MSGFMT" in
29213  [\\/]* | ?:[\\/]*)
29214    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
29215    ;;
29216  *)
29217    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
29218    for ac_dir in $PATH; do
29219      IFS="$ac_save_IFS"
29220      test -z "$ac_dir" && ac_dir=.
29221      for ac_exec_ext in '' $ac_executable_extensions; do
29222        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
29223          echo "$as_me: trying $ac_dir/$ac_word..." >&5
29224          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
29225     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
29226            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
29227            break 2
29228          fi
29229        fi
29230      done
29231    done
29232    IFS="$ac_save_IFS"
29233  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
29234    ;;
29235esac
29236fi
29237MSGFMT="$ac_cv_path_MSGFMT"
29238if test "$MSGFMT" != ":"; then
29239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
29240$as_echo "$MSGFMT" >&6; }
29241else
29242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29243$as_echo "no" >&6; }
29244fi
29245
29246  # Extract the first word of "gmsgfmt", so it can be a program name with args.
29247set dummy gmsgfmt; ac_word=$2
29248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29249$as_echo_n "checking for $ac_word... " >&6; }
29250if ${ac_cv_path_GMSGFMT+:} false; then :
29251  $as_echo_n "(cached) " >&6
29252else
29253  case $GMSGFMT in
29254  [\\/]* | ?:[\\/]*)
29255  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
29256  ;;
29257  *)
29258  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29259for as_dir in $PATH
29260do
29261  IFS=$as_save_IFS
29262  test -z "$as_dir" && as_dir=.
29263    for ac_exec_ext in '' $ac_executable_extensions; do
29264  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29265    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
29266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29267    break 2
29268  fi
29269done
29270  done
29271IFS=$as_save_IFS
29272
29273  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
29274  ;;
29275esac
29276fi
29277GMSGFMT=$ac_cv_path_GMSGFMT
29278if test -n "$GMSGFMT"; then
29279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
29280$as_echo "$GMSGFMT" >&6; }
29281else
29282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29283$as_echo "no" >&6; }
29284fi
29285
29286
29287
29288    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
29289    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
29290    *) MSGFMT_015=$MSGFMT ;;
29291  esac
29292
29293  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
29294    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
29295    *) GMSGFMT_015=$GMSGFMT ;;
29296  esac
29297
29298
29299
29300# Prepare PATH_SEPARATOR.
29301# The user is always right.
29302if test "${PATH_SEPARATOR+set}" != set; then
29303  echo "#! /bin/sh" >conf$$.sh
29304  echo  "exit 0"   >>conf$$.sh
29305  chmod +x conf$$.sh
29306  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29307    PATH_SEPARATOR=';'
29308  else
29309    PATH_SEPARATOR=:
29310  fi
29311  rm -f conf$$.sh
29312fi
29313
29314# Find out how to test for executable files. Don't use a zero-byte file,
29315# as systems may use methods other than mode bits to determine executability.
29316cat >conf$$.file <<_ASEOF
29317#! /bin/sh
29318exit 0
29319_ASEOF
29320chmod +x conf$$.file
29321if test -x conf$$.file >/dev/null 2>&1; then
29322  ac_executable_p="test -x"
29323else
29324  ac_executable_p="test -f"
29325fi
29326rm -f conf$$.file
29327
29328# Extract the first word of "xgettext", so it can be a program name with args.
29329set dummy xgettext; ac_word=$2
29330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29331$as_echo_n "checking for $ac_word... " >&6; }
29332if ${ac_cv_path_XGETTEXT+:} false; then :
29333  $as_echo_n "(cached) " >&6
29334else
29335  case "$XGETTEXT" in
29336  [\\/]* | ?:[\\/]*)
29337    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
29338    ;;
29339  *)
29340    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
29341    for ac_dir in $PATH; do
29342      IFS="$ac_save_IFS"
29343      test -z "$ac_dir" && ac_dir=.
29344      for ac_exec_ext in '' $ac_executable_extensions; do
29345        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
29346          echo "$as_me: trying $ac_dir/$ac_word..." >&5
29347          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
29348     (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
29349            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
29350            break 2
29351          fi
29352        fi
29353      done
29354    done
29355    IFS="$ac_save_IFS"
29356  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
29357    ;;
29358esac
29359fi
29360XGETTEXT="$ac_cv_path_XGETTEXT"
29361if test "$XGETTEXT" != ":"; then
29362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
29363$as_echo "$XGETTEXT" >&6; }
29364else
29365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29366$as_echo "no" >&6; }
29367fi
29368
29369    rm -f messages.po
29370
29371    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
29372    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
29373    *) XGETTEXT_015=$XGETTEXT ;;
29374  esac
29375
29376
29377
29378# Prepare PATH_SEPARATOR.
29379# The user is always right.
29380if test "${PATH_SEPARATOR+set}" != set; then
29381  echo "#! /bin/sh" >conf$$.sh
29382  echo  "exit 0"   >>conf$$.sh
29383  chmod +x conf$$.sh
29384  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29385    PATH_SEPARATOR=';'
29386  else
29387    PATH_SEPARATOR=:
29388  fi
29389  rm -f conf$$.sh
29390fi
29391
29392# Find out how to test for executable files. Don't use a zero-byte file,
29393# as systems may use methods other than mode bits to determine executability.
29394cat >conf$$.file <<_ASEOF
29395#! /bin/sh
29396exit 0
29397_ASEOF
29398chmod +x conf$$.file
29399if test -x conf$$.file >/dev/null 2>&1; then
29400  ac_executable_p="test -x"
29401else
29402  ac_executable_p="test -f"
29403fi
29404rm -f conf$$.file
29405
29406# Extract the first word of "msgmerge", so it can be a program name with args.
29407set dummy msgmerge; ac_word=$2
29408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29409$as_echo_n "checking for $ac_word... " >&6; }
29410if ${ac_cv_path_MSGMERGE+:} false; then :
29411  $as_echo_n "(cached) " >&6
29412else
29413  case "$MSGMERGE" in
29414  [\\/]* | ?:[\\/]*)
29415    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
29416    ;;
29417  *)
29418    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
29419    for ac_dir in $PATH; do
29420      IFS="$ac_save_IFS"
29421      test -z "$ac_dir" && ac_dir=.
29422      for ac_exec_ext in '' $ac_executable_extensions; do
29423        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
29424          echo "$as_me: trying $ac_dir/$ac_word..." >&5
29425          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
29426            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
29427            break 2
29428          fi
29429        fi
29430      done
29431    done
29432    IFS="$ac_save_IFS"
29433  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
29434    ;;
29435esac
29436fi
29437MSGMERGE="$ac_cv_path_MSGMERGE"
29438if test "$MSGMERGE" != ":"; then
29439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
29440$as_echo "$MSGMERGE" >&6; }
29441else
29442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29443$as_echo "no" >&6; }
29444fi
29445
29446
29447        test -n "$localedir" || localedir='${datadir}/locale'
29448
29449
29450  ac_config_commands="$ac_config_commands po-directories"
29451
29452
29453
29454
29455
29456
29457
29458
29459
29460    use_additional=yes
29461
29462  acl_save_prefix="$prefix"
29463  prefix="$acl_final_prefix"
29464  acl_save_exec_prefix="$exec_prefix"
29465  exec_prefix="$acl_final_exec_prefix"
29466
29467    eval additional_includedir=\"$includedir\"
29468    eval additional_libdir=\"$libdir\"
29469
29470  exec_prefix="$acl_save_exec_prefix"
29471  prefix="$acl_save_prefix"
29472
29473
29474# Check whether --with-libiconv-prefix was given.
29475if test "${with_libiconv_prefix+set}" = set; then :
29476  withval=$with_libiconv_prefix;
29477    if test "X$withval" = "Xno"; then
29478      use_additional=no
29479    else
29480      if test "X$withval" = "X"; then
29481
29482  acl_save_prefix="$prefix"
29483  prefix="$acl_final_prefix"
29484  acl_save_exec_prefix="$exec_prefix"
29485  exec_prefix="$acl_final_exec_prefix"
29486
29487          eval additional_includedir=\"$includedir\"
29488          eval additional_libdir=\"$libdir\"
29489
29490  exec_prefix="$acl_save_exec_prefix"
29491  prefix="$acl_save_prefix"
29492
29493      else
29494        additional_includedir="$withval/include"
29495        additional_libdir="$withval/$acl_libdirstem"
29496      fi
29497    fi
29498
29499fi
29500
29501      LIBICONV=
29502  LTLIBICONV=
29503  INCICONV=
29504  rpathdirs=
29505  ltrpathdirs=
29506  names_already_handled=
29507  names_next_round='iconv '
29508  while test -n "$names_next_round"; do
29509    names_this_round="$names_next_round"
29510    names_next_round=
29511    for name in $names_this_round; do
29512      already_handled=
29513      for n in $names_already_handled; do
29514        if test "$n" = "$name"; then
29515          already_handled=yes
29516          break
29517        fi
29518      done
29519      if test -z "$already_handled"; then
29520        names_already_handled="$names_already_handled $name"
29521                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
29522        eval value=\"\$HAVE_LIB$uppername\"
29523        if test -n "$value"; then
29524          if test "$value" = yes; then
29525            eval value=\"\$LIB$uppername\"
29526            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
29527            eval value=\"\$LTLIB$uppername\"
29528            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
29529          else
29530                                    :
29531          fi
29532        else
29533                              found_dir=
29534          found_la=
29535          found_so=
29536          found_a=
29537          if test $use_additional = yes; then
29538            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
29539              found_dir="$additional_libdir"
29540              found_so="$additional_libdir/lib$name.$shlibext"
29541              if test -f "$additional_libdir/lib$name.la"; then
29542                found_la="$additional_libdir/lib$name.la"
29543              fi
29544            else
29545              if test -f "$additional_libdir/lib$name.$libext"; then
29546                found_dir="$additional_libdir"
29547                found_a="$additional_libdir/lib$name.$libext"
29548                if test -f "$additional_libdir/lib$name.la"; then
29549                  found_la="$additional_libdir/lib$name.la"
29550                fi
29551              fi
29552            fi
29553          fi
29554          if test "X$found_dir" = "X"; then
29555            for x in $LDFLAGS $LTLIBICONV; do
29556
29557  acl_save_prefix="$prefix"
29558  prefix="$acl_final_prefix"
29559  acl_save_exec_prefix="$exec_prefix"
29560  exec_prefix="$acl_final_exec_prefix"
29561  eval x=\"$x\"
29562  exec_prefix="$acl_save_exec_prefix"
29563  prefix="$acl_save_prefix"
29564
29565              case "$x" in
29566                -L*)
29567                  dir=`echo "X$x" | sed -e 's/^X-L//'`
29568                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
29569                    found_dir="$dir"
29570                    found_so="$dir/lib$name.$shlibext"
29571                    if test -f "$dir/lib$name.la"; then
29572                      found_la="$dir/lib$name.la"
29573                    fi
29574                  else
29575                    if test -f "$dir/lib$name.$libext"; then
29576                      found_dir="$dir"
29577                      found_a="$dir/lib$name.$libext"
29578                      if test -f "$dir/lib$name.la"; then
29579                        found_la="$dir/lib$name.la"
29580                      fi
29581                    fi
29582                  fi
29583                  ;;
29584              esac
29585              if test "X$found_dir" != "X"; then
29586                break
29587              fi
29588            done
29589          fi
29590          if test "X$found_dir" != "X"; then
29591                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
29592            if test "X$found_so" != "X"; then
29593                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
29594                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
29595              else
29596                                                                                haveit=
29597                for x in $ltrpathdirs; do
29598                  if test "X$x" = "X$found_dir"; then
29599                    haveit=yes
29600                    break
29601                  fi
29602                done
29603                if test -z "$haveit"; then
29604                  ltrpathdirs="$ltrpathdirs $found_dir"
29605                fi
29606                                if test "$hardcode_direct" = yes; then
29607                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
29608                else
29609                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
29610                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
29611                                                            haveit=
29612                    for x in $rpathdirs; do
29613                      if test "X$x" = "X$found_dir"; then
29614                        haveit=yes
29615                        break
29616                      fi
29617                    done
29618                    if test -z "$haveit"; then
29619                      rpathdirs="$rpathdirs $found_dir"
29620                    fi
29621                  else
29622                                                                                haveit=
29623                    for x in $LDFLAGS $LIBICONV; do
29624
29625  acl_save_prefix="$prefix"
29626  prefix="$acl_final_prefix"
29627  acl_save_exec_prefix="$exec_prefix"
29628  exec_prefix="$acl_final_exec_prefix"
29629  eval x=\"$x\"
29630  exec_prefix="$acl_save_exec_prefix"
29631  prefix="$acl_save_prefix"
29632
29633                      if test "X$x" = "X-L$found_dir"; then
29634                        haveit=yes
29635                        break
29636                      fi
29637                    done
29638                    if test -z "$haveit"; then
29639                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
29640                    fi
29641                    if test "$hardcode_minus_L" != no; then
29642                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
29643                    else
29644                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
29645                    fi
29646                  fi
29647                fi
29648              fi
29649            else
29650              if test "X$found_a" != "X"; then
29651                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
29652              else
29653                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
29654              fi
29655            fi
29656                        additional_includedir=
29657            case "$found_dir" in
29658              */$acl_libdirstem | */$acl_libdirstem/)
29659                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
29660                additional_includedir="$basedir/include"
29661                ;;
29662            esac
29663            if test "X$additional_includedir" != "X"; then
29664                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
29665                haveit=
29666                if test "X$additional_includedir" = "X/usr/local/include"; then
29667                  if test -n "$GCC"; then
29668                    case $host_os in
29669                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
29670                    esac
29671                  fi
29672                fi
29673                if test -z "$haveit"; then
29674                  for x in $CPPFLAGS $INCICONV; do
29675
29676  acl_save_prefix="$prefix"
29677  prefix="$acl_final_prefix"
29678  acl_save_exec_prefix="$exec_prefix"
29679  exec_prefix="$acl_final_exec_prefix"
29680  eval x=\"$x\"
29681  exec_prefix="$acl_save_exec_prefix"
29682  prefix="$acl_save_prefix"
29683
29684                    if test "X$x" = "X-I$additional_includedir"; then
29685                      haveit=yes
29686                      break
29687                    fi
29688                  done
29689                  if test -z "$haveit"; then
29690                    if test -d "$additional_includedir"; then
29691                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
29692                    fi
29693                  fi
29694                fi
29695              fi
29696            fi
29697                        if test -n "$found_la"; then
29698                                                        save_libdir="$libdir"
29699              case "$found_la" in
29700                */* | *\\*) . "$found_la" ;;
29701                *) . "./$found_la" ;;
29702              esac
29703              libdir="$save_libdir"
29704                            for dep in $dependency_libs; do
29705                case "$dep" in
29706                  -L*)
29707                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
29708                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
29709                      haveit=
29710                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
29711                        if test -n "$GCC"; then
29712                          case $host_os in
29713                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
29714                          esac
29715                        fi
29716                      fi
29717                      if test -z "$haveit"; then
29718                        haveit=
29719                        for x in $LDFLAGS $LIBICONV; do
29720
29721  acl_save_prefix="$prefix"
29722  prefix="$acl_final_prefix"
29723  acl_save_exec_prefix="$exec_prefix"
29724  exec_prefix="$acl_final_exec_prefix"
29725  eval x=\"$x\"
29726  exec_prefix="$acl_save_exec_prefix"
29727  prefix="$acl_save_prefix"
29728
29729                          if test "X$x" = "X-L$additional_libdir"; then
29730                            haveit=yes
29731                            break
29732                          fi
29733                        done
29734                        if test -z "$haveit"; then
29735                          if test -d "$additional_libdir"; then
29736                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
29737                          fi
29738                        fi
29739                        haveit=
29740                        for x in $LDFLAGS $LTLIBICONV; do
29741
29742  acl_save_prefix="$prefix"
29743  prefix="$acl_final_prefix"
29744  acl_save_exec_prefix="$exec_prefix"
29745  exec_prefix="$acl_final_exec_prefix"
29746  eval x=\"$x\"
29747  exec_prefix="$acl_save_exec_prefix"
29748  prefix="$acl_save_prefix"
29749
29750                          if test "X$x" = "X-L$additional_libdir"; then
29751                            haveit=yes
29752                            break
29753                          fi
29754                        done
29755                        if test -z "$haveit"; then
29756                          if test -d "$additional_libdir"; then
29757                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
29758                          fi
29759                        fi
29760                      fi
29761                    fi
29762                    ;;
29763                  -R*)
29764                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
29765                    if test "$enable_rpath" != no; then
29766                                                                  haveit=
29767                      for x in $rpathdirs; do
29768                        if test "X$x" = "X$dir"; then
29769                          haveit=yes
29770                          break
29771                        fi
29772                      done
29773                      if test -z "$haveit"; then
29774                        rpathdirs="$rpathdirs $dir"
29775                      fi
29776                                                                  haveit=
29777                      for x in $ltrpathdirs; do
29778                        if test "X$x" = "X$dir"; then
29779                          haveit=yes
29780                          break
29781                        fi
29782                      done
29783                      if test -z "$haveit"; then
29784                        ltrpathdirs="$ltrpathdirs $dir"
29785                      fi
29786                    fi
29787                    ;;
29788                  -l*)
29789                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
29790                    ;;
29791                  *.la)
29792                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
29793                    ;;
29794                  *)
29795                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
29796                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
29797                    ;;
29798                esac
29799              done
29800            fi
29801          else
29802                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
29803            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
29804          fi
29805        fi
29806      fi
29807    done
29808  done
29809  if test "X$rpathdirs" != "X"; then
29810    if test -n "$hardcode_libdir_separator"; then
29811                        alldirs=
29812      for found_dir in $rpathdirs; do
29813        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
29814      done
29815            acl_save_libdir="$libdir"
29816      libdir="$alldirs"
29817      eval flag=\"$hardcode_libdir_flag_spec\"
29818      libdir="$acl_save_libdir"
29819      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
29820    else
29821            for found_dir in $rpathdirs; do
29822        acl_save_libdir="$libdir"
29823        libdir="$found_dir"
29824        eval flag=\"$hardcode_libdir_flag_spec\"
29825        libdir="$acl_save_libdir"
29826        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
29827      done
29828    fi
29829  fi
29830  if test "X$ltrpathdirs" != "X"; then
29831            for found_dir in $ltrpathdirs; do
29832      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
29833    done
29834  fi
29835
29836
29837
29838
29839
29840
29841
29842
29843
29844
29845
29846
29847
29848
29849
29850
29851
29852
29853    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
29854$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
29855if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
29856  $as_echo_n "(cached) " >&6
29857else
29858  gt_save_LIBS="$LIBS"
29859     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
29860     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29861/* end confdefs.h.  */
29862#include <CoreFoundation/CFPreferences.h>
29863int
29864main ()
29865{
29866CFPreferencesCopyAppValue(NULL, NULL)
29867  ;
29868  return 0;
29869}
29870_ACEOF
29871if ac_fn_c_try_link "$LINENO"; then :
29872  gt_cv_func_CFPreferencesCopyAppValue=yes
29873else
29874  gt_cv_func_CFPreferencesCopyAppValue=no
29875fi
29876rm -f core conftest.err conftest.$ac_objext \
29877    conftest$ac_exeext conftest.$ac_ext
29878     LIBS="$gt_save_LIBS"
29879fi
29880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
29881$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
29882  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
29883
29884$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
29885
29886  fi
29887    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
29888$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
29889if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
29890  $as_echo_n "(cached) " >&6
29891else
29892  gt_save_LIBS="$LIBS"
29893     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
29894     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29895/* end confdefs.h.  */
29896#include <CoreFoundation/CFLocale.h>
29897int
29898main ()
29899{
29900CFLocaleCopyCurrent();
29901  ;
29902  return 0;
29903}
29904_ACEOF
29905if ac_fn_c_try_link "$LINENO"; then :
29906  gt_cv_func_CFLocaleCopyCurrent=yes
29907else
29908  gt_cv_func_CFLocaleCopyCurrent=no
29909fi
29910rm -f core conftest.err conftest.$ac_objext \
29911    conftest$ac_exeext conftest.$ac_ext
29912     LIBS="$gt_save_LIBS"
29913fi
29914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
29915$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
29916  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
29917
29918$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
29919
29920  fi
29921  INTL_MACOSX_LIBS=
29922  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
29923    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
29924  fi
29925
29926
29927
29928
29929
29930
29931  LIBINTL=
29932  LTLIBINTL=
29933  POSUB=
29934
29935    if test "$USE_NLS" = "yes"; then
29936    gt_use_preinstalled_gnugettext=no
29937
29938
29939
29940
29941
29942
29943        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
29944$as_echo_n "checking for GNU gettext in libc... " >&6; }
29945if ${gt_cv_func_gnugettext1_libc+:} false; then :
29946  $as_echo_n "(cached) " >&6
29947else
29948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29949/* end confdefs.h.  */
29950#include <libintl.h>
29951extern int _nl_msg_cat_cntr;
29952extern int *_nl_domain_bindings;
29953int
29954main ()
29955{
29956bindtextdomain ("", "");
29957return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
29958  ;
29959  return 0;
29960}
29961_ACEOF
29962if ac_fn_c_try_link "$LINENO"; then :
29963  gt_cv_func_gnugettext1_libc=yes
29964else
29965  gt_cv_func_gnugettext1_libc=no
29966fi
29967rm -f core conftest.err conftest.$ac_objext \
29968    conftest$ac_exeext conftest.$ac_ext
29969fi
29970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
29971$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
29972
29973        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
29974
29975
29976
29977
29978
29979          am_save_CPPFLAGS="$CPPFLAGS"
29980
29981  for element in $INCICONV; do
29982    haveit=
29983    for x in $CPPFLAGS; do
29984
29985  acl_save_prefix="$prefix"
29986  prefix="$acl_final_prefix"
29987  acl_save_exec_prefix="$exec_prefix"
29988  exec_prefix="$acl_final_exec_prefix"
29989  eval x=\"$x\"
29990  exec_prefix="$acl_save_exec_prefix"
29991  prefix="$acl_save_prefix"
29992
29993      if test "X$x" = "X$element"; then
29994        haveit=yes
29995        break
29996      fi
29997    done
29998    if test -z "$haveit"; then
29999      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
30000    fi
30001  done
30002
30003
30004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
30005$as_echo_n "checking for iconv... " >&6; }
30006if ${am_cv_func_iconv+:} false; then :
30007  $as_echo_n "(cached) " >&6
30008else
30009
30010    am_cv_func_iconv="no, consider installing GNU libiconv"
30011    am_cv_lib_iconv=no
30012    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30013/* end confdefs.h.  */
30014#include <stdlib.h>
30015#include <iconv.h>
30016int
30017main ()
30018{
30019iconv_t cd = iconv_open("","");
30020       iconv(cd,NULL,NULL,NULL,NULL);
30021       iconv_close(cd);
30022  ;
30023  return 0;
30024}
30025_ACEOF
30026if ac_fn_c_try_link "$LINENO"; then :
30027  am_cv_func_iconv=yes
30028fi
30029rm -f core conftest.err conftest.$ac_objext \
30030    conftest$ac_exeext conftest.$ac_ext
30031    if test "$am_cv_func_iconv" != yes; then
30032      am_save_LIBS="$LIBS"
30033      LIBS="$LIBS $LIBICONV"
30034      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30035/* end confdefs.h.  */
30036#include <stdlib.h>
30037#include <iconv.h>
30038int
30039main ()
30040{
30041iconv_t cd = iconv_open("","");
30042         iconv(cd,NULL,NULL,NULL,NULL);
30043         iconv_close(cd);
30044  ;
30045  return 0;
30046}
30047_ACEOF
30048if ac_fn_c_try_link "$LINENO"; then :
30049  am_cv_lib_iconv=yes
30050        am_cv_func_iconv=yes
30051fi
30052rm -f core conftest.err conftest.$ac_objext \
30053    conftest$ac_exeext conftest.$ac_ext
30054      LIBS="$am_save_LIBS"
30055    fi
30056
30057fi
30058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
30059$as_echo "$am_cv_func_iconv" >&6; }
30060  if test "$am_cv_func_iconv" = yes; then
30061
30062$as_echo "#define HAVE_ICONV 1" >>confdefs.h
30063
30064  fi
30065  if test "$am_cv_lib_iconv" = yes; then
30066    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
30067$as_echo_n "checking how to link with libiconv... " >&6; }
30068    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
30069$as_echo "$LIBICONV" >&6; }
30070  else
30071            CPPFLAGS="$am_save_CPPFLAGS"
30072    LIBICONV=
30073    LTLIBICONV=
30074  fi
30075
30076
30077
30078
30079
30080
30081
30082    use_additional=yes
30083
30084  acl_save_prefix="$prefix"
30085  prefix="$acl_final_prefix"
30086  acl_save_exec_prefix="$exec_prefix"
30087  exec_prefix="$acl_final_exec_prefix"
30088
30089    eval additional_includedir=\"$includedir\"
30090    eval additional_libdir=\"$libdir\"
30091
30092  exec_prefix="$acl_save_exec_prefix"
30093  prefix="$acl_save_prefix"
30094
30095
30096# Check whether --with-libintl-prefix was given.
30097if test "${with_libintl_prefix+set}" = set; then :
30098  withval=$with_libintl_prefix;
30099    if test "X$withval" = "Xno"; then
30100      use_additional=no
30101    else
30102      if test "X$withval" = "X"; then
30103
30104  acl_save_prefix="$prefix"
30105  prefix="$acl_final_prefix"
30106  acl_save_exec_prefix="$exec_prefix"
30107  exec_prefix="$acl_final_exec_prefix"
30108
30109          eval additional_includedir=\"$includedir\"
30110          eval additional_libdir=\"$libdir\"
30111
30112  exec_prefix="$acl_save_exec_prefix"
30113  prefix="$acl_save_prefix"
30114
30115      else
30116        additional_includedir="$withval/include"
30117        additional_libdir="$withval/$acl_libdirstem"
30118      fi
30119    fi
30120
30121fi
30122
30123      LIBINTL=
30124  LTLIBINTL=
30125  INCINTL=
30126  rpathdirs=
30127  ltrpathdirs=
30128  names_already_handled=
30129  names_next_round='intl '
30130  while test -n "$names_next_round"; do
30131    names_this_round="$names_next_round"
30132    names_next_round=
30133    for name in $names_this_round; do
30134      already_handled=
30135      for n in $names_already_handled; do
30136        if test "$n" = "$name"; then
30137          already_handled=yes
30138          break
30139        fi
30140      done
30141      if test -z "$already_handled"; then
30142        names_already_handled="$names_already_handled $name"
30143                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
30144        eval value=\"\$HAVE_LIB$uppername\"
30145        if test -n "$value"; then
30146          if test "$value" = yes; then
30147            eval value=\"\$LIB$uppername\"
30148            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
30149            eval value=\"\$LTLIB$uppername\"
30150            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
30151          else
30152                                    :
30153          fi
30154        else
30155                              found_dir=
30156          found_la=
30157          found_so=
30158          found_a=
30159          if test $use_additional = yes; then
30160            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
30161              found_dir="$additional_libdir"
30162              found_so="$additional_libdir/lib$name.$shlibext"
30163              if test -f "$additional_libdir/lib$name.la"; then
30164                found_la="$additional_libdir/lib$name.la"
30165              fi
30166            else
30167              if test -f "$additional_libdir/lib$name.$libext"; then
30168                found_dir="$additional_libdir"
30169                found_a="$additional_libdir/lib$name.$libext"
30170                if test -f "$additional_libdir/lib$name.la"; then
30171                  found_la="$additional_libdir/lib$name.la"
30172                fi
30173              fi
30174            fi
30175          fi
30176          if test "X$found_dir" = "X"; then
30177            for x in $LDFLAGS $LTLIBINTL; do
30178
30179  acl_save_prefix="$prefix"
30180  prefix="$acl_final_prefix"
30181  acl_save_exec_prefix="$exec_prefix"
30182  exec_prefix="$acl_final_exec_prefix"
30183  eval x=\"$x\"
30184  exec_prefix="$acl_save_exec_prefix"
30185  prefix="$acl_save_prefix"
30186
30187              case "$x" in
30188                -L*)
30189                  dir=`echo "X$x" | sed -e 's/^X-L//'`
30190                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
30191                    found_dir="$dir"
30192                    found_so="$dir/lib$name.$shlibext"
30193                    if test -f "$dir/lib$name.la"; then
30194                      found_la="$dir/lib$name.la"
30195                    fi
30196                  else
30197                    if test -f "$dir/lib$name.$libext"; then
30198                      found_dir="$dir"
30199                      found_a="$dir/lib$name.$libext"
30200                      if test -f "$dir/lib$name.la"; then
30201                        found_la="$dir/lib$name.la"
30202                      fi
30203                    fi
30204                  fi
30205                  ;;
30206              esac
30207              if test "X$found_dir" != "X"; then
30208                break
30209              fi
30210            done
30211          fi
30212          if test "X$found_dir" != "X"; then
30213                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
30214            if test "X$found_so" != "X"; then
30215                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
30216                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30217              else
30218                                                                                haveit=
30219                for x in $ltrpathdirs; do
30220                  if test "X$x" = "X$found_dir"; then
30221                    haveit=yes
30222                    break
30223                  fi
30224                done
30225                if test -z "$haveit"; then
30226                  ltrpathdirs="$ltrpathdirs $found_dir"
30227                fi
30228                                if test "$hardcode_direct" = yes; then
30229                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30230                else
30231                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
30232                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30233                                                            haveit=
30234                    for x in $rpathdirs; do
30235                      if test "X$x" = "X$found_dir"; then
30236                        haveit=yes
30237                        break
30238                      fi
30239                    done
30240                    if test -z "$haveit"; then
30241                      rpathdirs="$rpathdirs $found_dir"
30242                    fi
30243                  else
30244                                                                                haveit=
30245                    for x in $LDFLAGS $LIBINTL; do
30246
30247  acl_save_prefix="$prefix"
30248  prefix="$acl_final_prefix"
30249  acl_save_exec_prefix="$exec_prefix"
30250  exec_prefix="$acl_final_exec_prefix"
30251  eval x=\"$x\"
30252  exec_prefix="$acl_save_exec_prefix"
30253  prefix="$acl_save_prefix"
30254
30255                      if test "X$x" = "X-L$found_dir"; then
30256                        haveit=yes
30257                        break
30258                      fi
30259                    done
30260                    if test -z "$haveit"; then
30261                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
30262                    fi
30263                    if test "$hardcode_minus_L" != no; then
30264                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30265                    else
30266                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
30267                    fi
30268                  fi
30269                fi
30270              fi
30271            else
30272              if test "X$found_a" != "X"; then
30273                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
30274              else
30275                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
30276              fi
30277            fi
30278                        additional_includedir=
30279            case "$found_dir" in
30280              */$acl_libdirstem | */$acl_libdirstem/)
30281                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
30282                additional_includedir="$basedir/include"
30283                ;;
30284            esac
30285            if test "X$additional_includedir" != "X"; then
30286                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
30287                haveit=
30288                if test "X$additional_includedir" = "X/usr/local/include"; then
30289                  if test -n "$GCC"; then
30290                    case $host_os in
30291                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
30292                    esac
30293                  fi
30294                fi
30295                if test -z "$haveit"; then
30296                  for x in $CPPFLAGS $INCINTL; do
30297
30298  acl_save_prefix="$prefix"
30299  prefix="$acl_final_prefix"
30300  acl_save_exec_prefix="$exec_prefix"
30301  exec_prefix="$acl_final_exec_prefix"
30302  eval x=\"$x\"
30303  exec_prefix="$acl_save_exec_prefix"
30304  prefix="$acl_save_prefix"
30305
30306                    if test "X$x" = "X-I$additional_includedir"; then
30307                      haveit=yes
30308                      break
30309                    fi
30310                  done
30311                  if test -z "$haveit"; then
30312                    if test -d "$additional_includedir"; then
30313                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
30314                    fi
30315                  fi
30316                fi
30317              fi
30318            fi
30319                        if test -n "$found_la"; then
30320                                                        save_libdir="$libdir"
30321              case "$found_la" in
30322                */* | *\\*) . "$found_la" ;;
30323                *) . "./$found_la" ;;
30324              esac
30325              libdir="$save_libdir"
30326                            for dep in $dependency_libs; do
30327                case "$dep" in
30328                  -L*)
30329                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
30330                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
30331                      haveit=
30332                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
30333                        if test -n "$GCC"; then
30334                          case $host_os in
30335                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
30336                          esac
30337                        fi
30338                      fi
30339                      if test -z "$haveit"; then
30340                        haveit=
30341                        for x in $LDFLAGS $LIBINTL; do
30342
30343  acl_save_prefix="$prefix"
30344  prefix="$acl_final_prefix"
30345  acl_save_exec_prefix="$exec_prefix"
30346  exec_prefix="$acl_final_exec_prefix"
30347  eval x=\"$x\"
30348  exec_prefix="$acl_save_exec_prefix"
30349  prefix="$acl_save_prefix"
30350
30351                          if test "X$x" = "X-L$additional_libdir"; then
30352                            haveit=yes
30353                            break
30354                          fi
30355                        done
30356                        if test -z "$haveit"; then
30357                          if test -d "$additional_libdir"; then
30358                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
30359                          fi
30360                        fi
30361                        haveit=
30362                        for x in $LDFLAGS $LTLIBINTL; do
30363
30364  acl_save_prefix="$prefix"
30365  prefix="$acl_final_prefix"
30366  acl_save_exec_prefix="$exec_prefix"
30367  exec_prefix="$acl_final_exec_prefix"
30368  eval x=\"$x\"
30369  exec_prefix="$acl_save_exec_prefix"
30370  prefix="$acl_save_prefix"
30371
30372                          if test "X$x" = "X-L$additional_libdir"; then
30373                            haveit=yes
30374                            break
30375                          fi
30376                        done
30377                        if test -z "$haveit"; then
30378                          if test -d "$additional_libdir"; then
30379                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
30380                          fi
30381                        fi
30382                      fi
30383                    fi
30384                    ;;
30385                  -R*)
30386                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
30387                    if test "$enable_rpath" != no; then
30388                                                                  haveit=
30389                      for x in $rpathdirs; do
30390                        if test "X$x" = "X$dir"; then
30391                          haveit=yes
30392                          break
30393                        fi
30394                      done
30395                      if test -z "$haveit"; then
30396                        rpathdirs="$rpathdirs $dir"
30397                      fi
30398                                                                  haveit=
30399                      for x in $ltrpathdirs; do
30400                        if test "X$x" = "X$dir"; then
30401                          haveit=yes
30402                          break
30403                        fi
30404                      done
30405                      if test -z "$haveit"; then
30406                        ltrpathdirs="$ltrpathdirs $dir"
30407                      fi
30408                    fi
30409                    ;;
30410                  -l*)
30411                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
30412                    ;;
30413                  *.la)
30414                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
30415                    ;;
30416                  *)
30417                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
30418                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
30419                    ;;
30420                esac
30421              done
30422            fi
30423          else
30424                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
30425            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
30426          fi
30427        fi
30428      fi
30429    done
30430  done
30431  if test "X$rpathdirs" != "X"; then
30432    if test -n "$hardcode_libdir_separator"; then
30433                        alldirs=
30434      for found_dir in $rpathdirs; do
30435        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
30436      done
30437            acl_save_libdir="$libdir"
30438      libdir="$alldirs"
30439      eval flag=\"$hardcode_libdir_flag_spec\"
30440      libdir="$acl_save_libdir"
30441      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
30442    else
30443            for found_dir in $rpathdirs; do
30444        acl_save_libdir="$libdir"
30445        libdir="$found_dir"
30446        eval flag=\"$hardcode_libdir_flag_spec\"
30447        libdir="$acl_save_libdir"
30448        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
30449      done
30450    fi
30451  fi
30452  if test "X$ltrpathdirs" != "X"; then
30453            for found_dir in $ltrpathdirs; do
30454      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
30455    done
30456  fi
30457
30458          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
30459$as_echo_n "checking for GNU gettext in libintl... " >&6; }
30460if ${gt_cv_func_gnugettext1_libintl+:} false; then :
30461  $as_echo_n "(cached) " >&6
30462else
30463  gt_save_CPPFLAGS="$CPPFLAGS"
30464            CPPFLAGS="$CPPFLAGS $INCINTL"
30465            gt_save_LIBS="$LIBS"
30466            LIBS="$LIBS $LIBINTL"
30467                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30468/* end confdefs.h.  */
30469#include <libintl.h>
30470extern int _nl_msg_cat_cntr;
30471extern
30472#ifdef __cplusplus
30473"C"
30474#endif
30475const char *_nl_expand_alias (const char *);
30476int
30477main ()
30478{
30479bindtextdomain ("", "");
30480return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
30481  ;
30482  return 0;
30483}
30484_ACEOF
30485if ac_fn_c_try_link "$LINENO"; then :
30486  gt_cv_func_gnugettext1_libintl=yes
30487else
30488  gt_cv_func_gnugettext1_libintl=no
30489fi
30490rm -f core conftest.err conftest.$ac_objext \
30491    conftest$ac_exeext conftest.$ac_ext
30492                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
30493              LIBS="$LIBS $LIBICONV"
30494              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30495/* end confdefs.h.  */
30496#include <libintl.h>
30497extern int _nl_msg_cat_cntr;
30498extern
30499#ifdef __cplusplus
30500"C"
30501#endif
30502const char *_nl_expand_alias (const char *);
30503int
30504main ()
30505{
30506bindtextdomain ("", "");
30507return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
30508  ;
30509  return 0;
30510}
30511_ACEOF
30512if ac_fn_c_try_link "$LINENO"; then :
30513  LIBINTL="$LIBINTL $LIBICONV"
30514                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
30515                gt_cv_func_gnugettext1_libintl=yes
30516
30517fi
30518rm -f core conftest.err conftest.$ac_objext \
30519    conftest$ac_exeext conftest.$ac_ext
30520            fi
30521            CPPFLAGS="$gt_save_CPPFLAGS"
30522            LIBS="$gt_save_LIBS"
30523fi
30524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
30525$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
30526        fi
30527
30528                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
30529           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
30530                && test "$PACKAGE" != gettext-runtime \
30531                && test "$PACKAGE" != gettext-tools; }; then
30532          gt_use_preinstalled_gnugettext=yes
30533        else
30534                    LIBINTL=
30535          LTLIBINTL=
30536          INCINTL=
30537        fi
30538
30539
30540
30541    if test -n "$INTL_MACOSX_LIBS"; then
30542      if test "$gt_use_preinstalled_gnugettext" = "yes" \
30543         || test "$nls_cv_use_gnu_gettext" = "yes"; then
30544                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
30545        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
30546      fi
30547    fi
30548
30549    if test "$gt_use_preinstalled_gnugettext" = "yes" \
30550       || test "$nls_cv_use_gnu_gettext" = "yes"; then
30551
30552$as_echo "#define ENABLE_NLS 1" >>confdefs.h
30553
30554    else
30555      USE_NLS=no
30556    fi
30557  fi
30558
30559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
30560$as_echo_n "checking whether to use NLS... " >&6; }
30561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
30562$as_echo "$USE_NLS" >&6; }
30563  if test "$USE_NLS" = "yes"; then
30564    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
30565$as_echo_n "checking where the gettext function comes from... " >&6; }
30566    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
30567      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
30568        gt_source="external libintl"
30569      else
30570        gt_source="libc"
30571      fi
30572    else
30573      gt_source="included intl directory"
30574    fi
30575    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
30576$as_echo "$gt_source" >&6; }
30577  fi
30578
30579  if test "$USE_NLS" = "yes"; then
30580
30581    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
30582      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
30583        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
30584$as_echo_n "checking how to link with libintl... " >&6; }
30585        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
30586$as_echo "$LIBINTL" >&6; }
30587
30588  for element in $INCINTL; do
30589    haveit=
30590    for x in $CPPFLAGS; do
30591
30592  acl_save_prefix="$prefix"
30593  prefix="$acl_final_prefix"
30594  acl_save_exec_prefix="$exec_prefix"
30595  exec_prefix="$acl_final_exec_prefix"
30596  eval x=\"$x\"
30597  exec_prefix="$acl_save_exec_prefix"
30598  prefix="$acl_save_prefix"
30599
30600      if test "X$x" = "X$element"; then
30601        haveit=yes
30602        break
30603      fi
30604    done
30605    if test -z "$haveit"; then
30606      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
30607    fi
30608  done
30609
30610      fi
30611
30612
30613$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
30614
30615
30616$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
30617
30618    fi
30619
30620        POSUB=po
30621  fi
30622
30623
30624
30625    INTLLIBS="$LIBINTL"
30626
30627
30628
30629
30630
30631
30632
30633#
30634# Security (authentication) mechansims
30635#
30636
30637    BSD_SECURITY="yes"
30638
30639# Check whether --with-bsd-security was given.
30640if test "${with_bsd_security+set}" = set; then :
30641  withval=$with_bsd_security;
30642            case "$withval" in
30643                n | no) BSD_SECURITY=no ;;
30644                y |  ye | yes) BSD_SECURITY=yes ;;
30645                *) as_fn_error $? "*** You must not supply an argument to --without-bsd-security." "$LINENO" 5
30646                    ;;
30647            esac
30648
30649fi
30650
30651
30652    USE_AMANDAHOSTS=yes
30653
30654# Check whether --with-amandahosts was given.
30655if test "${with_amandahosts+set}" = set; then :
30656  withval=$with_amandahosts;
30657            case "$withval" in
30658                n | no ) USE_AMANDAHOSTS=no ;;
30659                y |  ye | yes) USE_AMANDAHOSTS=yes ;;
30660                *) as_fn_error $? "*** You must not supply an argument to --without-amandahosts option." "$LINENO" 5
30661                  ;;
30662            esac
30663
30664
30665fi
30666
30667
30668    if test "x$BSD_SECURITY" = "xyes"; then
30669
30670$as_echo "#define BSD_SECURITY 1" >>confdefs.h
30671
30672    fi
30673    if test "x$USE_AMANDAHOSTS" = "xyes"; then
30674
30675$as_echo "#define USE_AMANDAHOSTS 1" >>confdefs.h
30676
30677    fi
30678
30679     if test x"$BSD_SECURITY" = x"yes"; then
30680  WANT_BSD_SECURITY_TRUE=
30681  WANT_BSD_SECURITY_FALSE='#'
30682else
30683  WANT_BSD_SECURITY_TRUE='#'
30684  WANT_BSD_SECURITY_FALSE=
30685fi
30686
30687
30688
30689
30690
30691    BSDTCP_SECURITY="yes"
30692
30693# Check whether --with-bsdtcp-security was given.
30694if test "${with_bsdtcp_security+set}" = set; then :
30695  withval=$with_bsdtcp_security;
30696            case "$withval" in
30697                n | no) BSDTCP_SECURITY=no ;;
30698                y |  ye | yes) BSDTCP_SECURITY=yes ;;
30699                *) as_fn_error $? "*** You must not supply an argument to --with-bsdtcp-security." "$LINENO" 5
30700              ;;
30701            esac
30702
30703fi
30704
30705
30706    if test "x$BSDTCP_SECURITY" = "xyes"; then
30707
30708$as_echo "#define BSDTCP_SECURITY 1" >>confdefs.h
30709
30710    fi
30711
30712     if test x"$BSDTCP_SECURITY" = x"yes"; then
30713  WANT_BSDTCP_SECURITY_TRUE=
30714  WANT_BSDTCP_SECURITY_FALSE='#'
30715else
30716  WANT_BSDTCP_SECURITY_TRUE='#'
30717  WANT_BSDTCP_SECURITY_FALSE=
30718fi
30719
30720
30721
30722
30723    BSDUDP_SECURITY="no"
30724
30725# Check whether --with-bsdudp-security was given.
30726if test "${with_bsdudp_security+set}" = set; then :
30727  withval=$with_bsdudp_security;
30728            case "$withval" in
30729                n | no) : ;;
30730                y |  ye | yes) BSDUDP_SECURITY=yes ;;
30731                *) as_fn_error $? "*** You must not supply an argument to --with-bsdudp-security." "$LINENO" 5
30732              ;;
30733            esac
30734
30735fi
30736
30737
30738    if test "x$BSDUDP_SECURITY" = "xyes"; then
30739
30740$as_echo "#define BSDUDP_SECURITY 1" >>confdefs.h
30741
30742    fi
30743
30744     if test x"$BSDUDP_SECURITY" = x"yes"; then
30745  WANT_BSDUDP_SECURITY_TRUE=
30746  WANT_BSDUDP_SECURITY_FALSE='#'
30747else
30748  WANT_BSDUDP_SECURITY_TRUE='#'
30749  WANT_BSDUDP_SECURITY_FALSE=
30750fi
30751
30752
30753
30754
30755    RSH_SECURITY=no
30756
30757# Check whether --with-rsh-security was given.
30758if test "${with_rsh_security+set}" = set; then :
30759  withval=$with_rsh_security;
30760            case "$withval" in
30761                n | no) : ;;
30762                y |  ye | yes) RSH_SECURITY=yes ;;
30763                *) as_fn_error $? "*** You must not supply an argument to --with-rsh-security." "$LINENO" 5
30764              ;;
30765            esac
30766
30767fi
30768
30769
30770    if test "x$RSH_SECURITY" = "xyes"; then
30771
30772$as_echo "#define RSH_SECURITY 1" >>confdefs.h
30773
30774    fi
30775     if test x"$RSH_SECURITY" = x"yes"; then
30776  WANT_RSH_SECURITY_TRUE=
30777  WANT_RSH_SECURITY_FALSE='#'
30778else
30779  WANT_RSH_SECURITY_TRUE='#'
30780  WANT_RSH_SECURITY_FALSE=
30781fi
30782
30783
30784
30785
30786    SSH_SECURITY=yes
30787
30788# Check whether --with-ssh-security was given.
30789if test "${with_ssh_security+set}" = set; then :
30790  withval=$with_ssh_security;
30791            case "$withval" in
30792                n | no) SSH_SECURITY=no ;;
30793                y |  ye | yes) SSH_SECURITY=yes ;;
30794                *) as_fn_error $? "*** You must not supply an argument to --with-ssh-security." "$LINENO" 5
30795              ;;
30796            esac
30797
30798fi
30799
30800
30801    if test "x$SSH_SECURITY" = "xyes"; then
30802        # find the SSH binary
30803
30804
30805    for ac_prog in ssh
30806do
30807  # Extract the first word of "$ac_prog", so it can be a program name with args.
30808set dummy $ac_prog; ac_word=$2
30809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30810$as_echo_n "checking for $ac_word... " >&6; }
30811if ${ac_cv_path_SSH+:} false; then :
30812  $as_echo_n "(cached) " >&6
30813else
30814  case $SSH in
30815  [\\/]* | ?:[\\/]*)
30816  ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
30817  ;;
30818  *)
30819  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30820for as_dir in $LOCSYSPATH
30821do
30822  IFS=$as_save_IFS
30823  test -z "$as_dir" && as_dir=.
30824    for ac_exec_ext in '' $ac_executable_extensions; do
30825  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30826    ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
30827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30828    break 2
30829  fi
30830done
30831  done
30832IFS=$as_save_IFS
30833
30834  ;;
30835esac
30836fi
30837SSH=$ac_cv_path_SSH
30838if test -n "$SSH"; then
30839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSH" >&5
30840$as_echo "$SSH" >&6; }
30841else
30842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30843$as_echo "no" >&6; }
30844fi
30845
30846
30847  test -n "$SSH" && break
30848done
30849
30850    if test x"$SSH" = x""; then
30851	SSH='/usr/bin/ssh'
30852    fi
30853
30854cat >>confdefs.h <<_ACEOF
30855#define SSH "$SSH"
30856_ACEOF
30857
30858
30859
30860        # see what options we should use
30861
30862# Check whether --with-ssh-options was given.
30863if test "${with_ssh_options+set}" = set; then :
30864  withval=$with_ssh_options;  SSH_OPTIONS="$withval"
30865else
30866   SSH_OPTIONS=''
30867
30868fi
30869
30870
30871        case "$SSH_OPTIONS" in
30872            y | ye | yes | n | no)
30873                as_fn_error $? "*** You must supply an argument to --with-ssh-options." "$LINENO" 5;;
30874            *) : ;;
30875        esac
30876
30877        { $as_echo "$as_me:${as_lineno-$LINENO}: checking SSH options" >&5
30878$as_echo_n "checking SSH options... " >&6; }
30879        # if we didn't get SSH options from the user, figure them out for ourselves
30880        if test -z "$SSH_OPTIONS"; then
30881            case `$SSH -V 2>&1` in
30882                OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
30883                *) SSH_OPTIONS='-x -o BatchMode=yes' ;;
30884            esac
30885        fi
30886
30887        # now convert that to a comma-separated list of C strings
30888        eval "set dummy ${SSH_OPTIONS}"; shift
30889        SSH_OPTIONS=''
30890	for i in "${@}"; do
30891	    quoted="\"`echo "$i" | sed -e 's/\"/\\\"/'`\""
30892	    SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }$quoted";
30893	done
30894        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSH_OPTIONS" >&5
30895$as_echo "$SSH_OPTIONS" >&6; }
30896
30897        # finally, make the various outputs for all of this
30898
30899$as_echo "#define SSH_SECURITY 1" >>confdefs.h
30900
30901
30902cat >>confdefs.h <<_ACEOF
30903#define SSH "$SSH"
30904_ACEOF
30905
30906
30907cat >>confdefs.h <<_ACEOF
30908#define SSH_OPTIONS $SSH_OPTIONS
30909_ACEOF
30910
30911    fi
30912     if test x"$SSH_SECURITY" = x"yes"; then
30913  WANT_SSH_SECURITY_TRUE=
30914  WANT_SSH_SECURITY_FALSE='#'
30915else
30916  WANT_SSH_SECURITY_TRUE='#'
30917  WANT_SSH_SECURITY_FALSE=
30918fi
30919
30920
30921
30922    # (note -- don't just substitute SSH_OPTIONS -- shell quoting will break)
30923
30924
30925    # Specify --with-krb5-security if Kerberos software is in somewhere
30926    # other than the listed KRB5_SPOTS.  We only compile kerberos support in
30927    # if the right files are there.
30928
30929    KRB5_SECURITY="no"
30930    : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
30931
30932
30933# Check whether --with-krb5-security was given.
30934if test "${with_krb5_security+set}" = set; then :
30935  withval=$with_krb5_security;
30936            case "$withval" in
30937                n | no) KRB5_SECURITY=no ;;
30938                y | ye | yes) KRB5_SECURITY=yes ;;
30939                *) KRB5_SPOTS="$KRB5_SECURITY"
30940                   KRB5_SECURITY=yes
30941                   ;;
30942            esac
30943
30944
30945fi
30946
30947
30948    if test "x$KRB5_SECURITY" = "xyes"; then
30949        # if found, force the static versions of these libs (.a) by linking directly
30950        # with the .a files.  I don't know how to get -R dependancies checked
30951        # in autoconf at this time. -kashmir
30952        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos V libraries" >&5
30953$as_echo_n "checking for Kerberos V libraries... " >&6; }
30954        KRB5_DIR_FOUND=""
30955        for dir in $KRB5_SPOTS; do
30956          for lib in lib lib64; do
30957            k5libdir=${dir}/${lib}
30958            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
30959                if test -f ${k5libdir}/libk5crypto.a -o -f ${k5libdir}/libk5crypto.so; then
30960                    K5CRYPTO=-lk5crypto
30961                elif test -f ${k5libdir}/libcrypto.a -o -f ${k5libdir}/libcrypto.so; then
30962                    K5CRYPTO=-lcrypto
30963                else
30964                    K5CRYPTO=""
30965                fi
30966                if test -f ${k5libdir}/libkrb5support.a -o -f ${k5libdir}/libkrb5support.so; then
30967                    K5SUPPORT=-lkrb5support
30968                else
30969                    K5SUPPORT=""
30970                fi
30971                KRB5_DIR_FOUND=$dir
30972                KRB5_LIBDIR_FOUND=$k5libdir
30973                LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err $LIBS"
30974
30975                break
30976            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
30977                LIBS="-lgssapi -lkrb5 -lasn1 $LIBS"
30978
30979                CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL_INCLUDES"
30980
30981                break
30982            fi
30983          done
30984        done
30985
30986        if test "$KRB5_DIR_FOUND"; then
30987            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $KRB5_DIR_FOUND" >&5
30988$as_echo "found in $KRB5_DIR_FOUND" >&6; }
30989            #
30990            # some OS's, such as NetBSD, stick krb5 includes out of the way...
30991            # should probably just use autoconf to look for various include
30992            # options and set them, but don't quite want to do that until I've
30993            # dug into it a bit more.
30994            #
30995            if test -d "$KRB5_DIR_FOUND/krb5" ; then
30996                CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include/krb5"
30997
30998            else
30999                CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include"
31000
31001            fi
31002                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
31003$as_echo_n "checking for main in -lkrb5support... " >&6; }
31004if ${ac_cv_lib_krb5support_main+:} false; then :
31005  $as_echo_n "(cached) " >&6
31006else
31007  ac_check_lib_save_LIBS=$LIBS
31008LIBS="-lkrb5support  $LIBS"
31009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31010/* end confdefs.h.  */
31011
31012
31013int
31014main ()
31015{
31016return main ();
31017  ;
31018  return 0;
31019}
31020_ACEOF
31021if ac_fn_c_try_link "$LINENO"; then :
31022  ac_cv_lib_krb5support_main=yes
31023else
31024  ac_cv_lib_krb5support_main=no
31025fi
31026rm -f core conftest.err conftest.$ac_objext \
31027    conftest$ac_exeext conftest.$ac_ext
31028LIBS=$ac_check_lib_save_LIBS
31029fi
31030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
31031$as_echo "$ac_cv_lib_krb5support_main" >&6; }
31032if test "x$ac_cv_lib_krb5support_main" = xyes; then :
31033  cat >>confdefs.h <<_ACEOF
31034#define HAVE_LIBKRB5SUPPORT 1
31035_ACEOF
31036
31037  LIBS="-lkrb5support $LIBS"
31038
31039fi
31040
31041
31042            if test "$KRB5_LIBDIR_FOUND" != "$libdir" ; then
31043                LDFLAGS="$LDFLAGS -L$KRB5_LIBDIR_FOUND"
31044
31045            fi
31046
31047
31048$as_echo "#define KRB5_SECURITY 1" >>confdefs.h
31049
31050        else
31051            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no krb5 system libraries found" >&5
31052$as_echo "no krb5 system libraries found" >&6; }
31053            as_fn_error $? "No Kerberos V libraries were found on your system; krb5-security cannot be enabled" "$LINENO" 5
31054            KRB5_SECURITY="no"
31055        fi
31056    fi
31057
31058     if test x"$KRB5_SECURITY" = x"yes"; then
31059  WANT_KRB5_SECURITY_TRUE=
31060  WANT_KRB5_SECURITY_FALSE='#'
31061else
31062  WANT_KRB5_SECURITY_TRUE='#'
31063  WANT_KRB5_SECURITY_FALSE=
31064fi
31065
31066
31067
31068
31069#
31070# Dumpers
31071#
31072
31073    # Extract the first word of "realpath", so it can be a program name with args.
31074set dummy realpath; ac_word=$2
31075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31076$as_echo_n "checking for $ac_word... " >&6; }
31077if ${ac_cv_path_REALPATH+:} false; then :
31078  $as_echo_n "(cached) " >&6
31079else
31080  case $REALPATH in
31081  [\\/]* | ?:[\\/]*)
31082  ac_cv_path_REALPATH="$REALPATH" # Let the user override the test with a path.
31083  ;;
31084  *)
31085  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31086for as_dir in $LOCSYSPATH
31087do
31088  IFS=$as_save_IFS
31089  test -z "$as_dir" && as_dir=.
31090    for ac_exec_ext in '' $ac_executable_extensions; do
31091  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31092    ac_cv_path_REALPATH="$as_dir/$ac_word$ac_exec_ext"
31093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31094    break 2
31095  fi
31096done
31097  done
31098IFS=$as_save_IFS
31099
31100  ;;
31101esac
31102fi
31103REALPATH=$ac_cv_path_REALPATH
31104if test -n "$REALPATH"; then
31105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALPATH" >&5
31106$as_echo "$REALPATH" >&6; }
31107else
31108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31109$as_echo "no" >&6; }
31110fi
31111
31112
31113
31114
31115    # Extract the first word of "readlink", so it can be a program name with args.
31116set dummy readlink; ac_word=$2
31117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31118$as_echo_n "checking for $ac_word... " >&6; }
31119if ${ac_cv_path_READLINK+:} false; then :
31120  $as_echo_n "(cached) " >&6
31121else
31122  case $READLINK in
31123  [\\/]* | ?:[\\/]*)
31124  ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
31125  ;;
31126  *)
31127  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31128for as_dir in $LOCSYSPATH
31129do
31130  IFS=$as_save_IFS
31131  test -z "$as_dir" && as_dir=.
31132    for ac_exec_ext in '' $ac_executable_extensions; do
31133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31134    ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
31135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31136    break 2
31137  fi
31138done
31139  done
31140IFS=$as_save_IFS
31141
31142  ;;
31143esac
31144fi
31145READLINK=$ac_cv_path_READLINK
31146if test -n "$READLINK"; then
31147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
31148$as_echo "$READLINK" >&6; }
31149else
31150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31151$as_echo "no" >&6; }
31152fi
31153
31154
31155    AM_READLINK=
31156    # Check the readlink is the one we want
31157    if test x"$READLINK" != x""; then
31158	READLINK=`$READLINK -e $READLINK`
31159	if test x"$READLINK" != x""; then
31160	    AM_READLINK=$READLINK
31161
31162cat >>confdefs.h <<_ACEOF
31163#define AM_READLINK "$AM_READLINK"
31164_ACEOF
31165
31166	fi
31167    fi
31168
31169
31170
31171
31172
31173    for ac_prog in xfsdump
31174do
31175  # Extract the first word of "$ac_prog", so it can be a program name with args.
31176set dummy $ac_prog; ac_word=$2
31177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31178$as_echo_n "checking for $ac_word... " >&6; }
31179if ${ac_cv_path_XFSDUMP+:} false; then :
31180  $as_echo_n "(cached) " >&6
31181else
31182  case $XFSDUMP in
31183  [\\/]* | ?:[\\/]*)
31184  ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
31185  ;;
31186  *)
31187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31188for as_dir in $SYSLOCPATH
31189do
31190  IFS=$as_save_IFS
31191  test -z "$as_dir" && as_dir=.
31192    for ac_exec_ext in '' $ac_executable_extensions; do
31193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31194    ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
31195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31196    break 2
31197  fi
31198done
31199  done
31200IFS=$as_save_IFS
31201
31202  ;;
31203esac
31204fi
31205XFSDUMP=$ac_cv_path_XFSDUMP
31206if test -n "$XFSDUMP"; then
31207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFSDUMP" >&5
31208$as_echo "$XFSDUMP" >&6; }
31209else
31210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31211$as_echo "no" >&6; }
31212fi
31213
31214
31215  test -n "$XFSDUMP" && break
31216done
31217
31218    for ac_prog in xfsrestore
31219do
31220  # Extract the first word of "$ac_prog", so it can be a program name with args.
31221set dummy $ac_prog; ac_word=$2
31222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31223$as_echo_n "checking for $ac_word... " >&6; }
31224if ${ac_cv_path_XFSRESTORE+:} false; then :
31225  $as_echo_n "(cached) " >&6
31226else
31227  case $XFSRESTORE in
31228  [\\/]* | ?:[\\/]*)
31229  ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
31230  ;;
31231  *)
31232  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31233for as_dir in $SYSLOCPATH
31234do
31235  IFS=$as_save_IFS
31236  test -z "$as_dir" && as_dir=.
31237    for ac_exec_ext in '' $ac_executable_extensions; do
31238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31239    ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
31240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31241    break 2
31242  fi
31243done
31244  done
31245IFS=$as_save_IFS
31246
31247  ;;
31248esac
31249fi
31250XFSRESTORE=$ac_cv_path_XFSRESTORE
31251if test -n "$XFSRESTORE"; then
31252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFSRESTORE" >&5
31253$as_echo "$XFSRESTORE" >&6; }
31254else
31255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31256$as_echo "no" >&6; }
31257fi
31258
31259
31260  test -n "$XFSRESTORE" && break
31261done
31262
31263    if test "$XFSDUMP" -a "$XFSRESTORE"; then
31264
31265cat >>confdefs.h <<_ACEOF
31266#define XFSDUMP "$XFSDUMP"
31267_ACEOF
31268
31269
31270cat >>confdefs.h <<_ACEOF
31271#define XFSRESTORE "$XFSRESTORE"
31272_ACEOF
31273
31274
31275    { $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
31276$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;}
31277
31278
31279    cat <<AAW_EOF >>config.warnings
31280xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h
31281AAW_EOF
31282
31283
31284    fi
31285
31286
31287
31288
31289    # Extract the first word of "vxdump", so it can be a program name with args.
31290set dummy vxdump; ac_word=$2
31291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31292$as_echo_n "checking for $ac_word... " >&6; }
31293if ${ac_cv_path_VXDUMP+:} false; then :
31294  $as_echo_n "(cached) " >&6
31295else
31296  case $VXDUMP in
31297  [\\/]* | ?:[\\/]*)
31298  ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
31299  ;;
31300  *)
31301  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31302as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
31303for as_dir in $as_dummy
31304do
31305  IFS=$as_save_IFS
31306  test -z "$as_dir" && as_dir=.
31307    for ac_exec_ext in '' $ac_executable_extensions; do
31308  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31309    ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
31310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31311    break 2
31312  fi
31313done
31314  done
31315IFS=$as_save_IFS
31316
31317  ;;
31318esac
31319fi
31320VXDUMP=$ac_cv_path_VXDUMP
31321if test -n "$VXDUMP"; then
31322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VXDUMP" >&5
31323$as_echo "$VXDUMP" >&6; }
31324else
31325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31326$as_echo "no" >&6; }
31327fi
31328
31329
31330    # Extract the first word of "vxrestore", so it can be a program name with args.
31331set dummy vxrestore; ac_word=$2
31332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31333$as_echo_n "checking for $ac_word... " >&6; }
31334if ${ac_cv_path_VXRESTORE+:} false; then :
31335  $as_echo_n "(cached) " >&6
31336else
31337  case $VXRESTORE in
31338  [\\/]* | ?:[\\/]*)
31339  ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
31340  ;;
31341  *)
31342  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31343as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
31344for as_dir in $as_dummy
31345do
31346  IFS=$as_save_IFS
31347  test -z "$as_dir" && as_dir=.
31348    for ac_exec_ext in '' $ac_executable_extensions; do
31349  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31350    ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
31351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31352    break 2
31353  fi
31354done
31355  done
31356IFS=$as_save_IFS
31357
31358  ;;
31359esac
31360fi
31361VXRESTORE=$ac_cv_path_VXRESTORE
31362if test -n "$VXRESTORE"; then
31363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VXRESTORE" >&5
31364$as_echo "$VXRESTORE" >&6; }
31365else
31366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31367$as_echo "no" >&6; }
31368fi
31369
31370
31371    if test "$VXDUMP" -a "$VXRESTORE"; then
31372
31373cat >>confdefs.h <<_ACEOF
31374#define VXDUMP "$VXDUMP"
31375_ACEOF
31376
31377
31378cat >>confdefs.h <<_ACEOF
31379#define VXRESTORE "$VXRESTORE"
31380_ACEOF
31381
31382    fi
31383
31384
31385
31386
31387    # Extract the first word of "vdump", so it can be a program name with args.
31388set dummy vdump; ac_word=$2
31389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31390$as_echo_n "checking for $ac_word... " >&6; }
31391if ${ac_cv_path_VDUMP+:} false; then :
31392  $as_echo_n "(cached) " >&6
31393else
31394  case $VDUMP in
31395  [\\/]* | ?:[\\/]*)
31396  ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
31397  ;;
31398  *)
31399  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31400for as_dir in $SYSLOCPATH
31401do
31402  IFS=$as_save_IFS
31403  test -z "$as_dir" && as_dir=.
31404    for ac_exec_ext in '' $ac_executable_extensions; do
31405  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31406    ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
31407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31408    break 2
31409  fi
31410done
31411  done
31412IFS=$as_save_IFS
31413
31414  ;;
31415esac
31416fi
31417VDUMP=$ac_cv_path_VDUMP
31418if test -n "$VDUMP"; then
31419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VDUMP" >&5
31420$as_echo "$VDUMP" >&6; }
31421else
31422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31423$as_echo "no" >&6; }
31424fi
31425
31426
31427    # Extract the first word of "vrestore", so it can be a program name with args.
31428set dummy vrestore; ac_word=$2
31429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31430$as_echo_n "checking for $ac_word... " >&6; }
31431if ${ac_cv_path_VRESTORE+:} false; then :
31432  $as_echo_n "(cached) " >&6
31433else
31434  case $VRESTORE in
31435  [\\/]* | ?:[\\/]*)
31436  ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
31437  ;;
31438  *)
31439  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31440for as_dir in $SYSLOCPATH
31441do
31442  IFS=$as_save_IFS
31443  test -z "$as_dir" && as_dir=.
31444    for ac_exec_ext in '' $ac_executable_extensions; do
31445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31446    ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
31447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31448    break 2
31449  fi
31450done
31451  done
31452IFS=$as_save_IFS
31453
31454  ;;
31455esac
31456fi
31457VRESTORE=$ac_cv_path_VRESTORE
31458if test -n "$VRESTORE"; then
31459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VRESTORE" >&5
31460$as_echo "$VRESTORE" >&6; }
31461else
31462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31463$as_echo "no" >&6; }
31464fi
31465
31466
31467    if test "$VDUMP" -a "$VRESTORE"; then
31468
31469cat >>confdefs.h <<_ACEOF
31470#define VDUMP "$VDUMP"
31471_ACEOF
31472
31473
31474cat >>confdefs.h <<_ACEOF
31475#define VRESTORE "$VRESTORE"
31476_ACEOF
31477
31478    fi
31479
31480
31481
31482
31483
31484    # Set the order of dump programs to look for.  Finding the proper file
31485    # system dumping program is problematic.  Some systems, notably HP-UX
31486    # and AIX, have both the backup and dump programs.  HP-UX can't use the
31487    # the backup program while AIX systems can't use the dump program.  So
31488    # a variable is set up here to specify the order of dump programs to
31489    # search for on the system.
31490    DUMP_PROGRAMS="ufsdump dump backup"
31491    DUMP_RETURNS_1=
31492    AIX_BACKUP=
31493    case "$host" in
31494	*-dg-*)
31495	    DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
31496	    DUMP_RETURNS_1=1
31497	    ;;
31498      *-ibm-aix*)
31499	    DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
31500	    AIX_BACKUP=1
31501
31502$as_echo "#define AIX_BACKUP 1" >>confdefs.h
31503
31504	    ;;
31505      *-ultrix*)
31506	    DUMP_RETURNS_1=1
31507	    ;;
31508    esac
31509
31510    if test -n "$DUMP_RETURNS_1"; then
31511
31512$as_echo "#define DUMP_RETURNS_1 1" >>confdefs.h
31513
31514    fi
31515
31516    for ac_prog in $DUMP_PROGRAMS
31517do
31518  # Extract the first word of "$ac_prog", so it can be a program name with args.
31519set dummy $ac_prog; ac_word=$2
31520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31521$as_echo_n "checking for $ac_word... " >&6; }
31522if ${ac_cv_path_DUMP+:} false; then :
31523  $as_echo_n "(cached) " >&6
31524else
31525  case $DUMP in
31526  [\\/]* | ?:[\\/]*)
31527  ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
31528  ;;
31529  *)
31530  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31531for as_dir in $SYSLOCPATH
31532do
31533  IFS=$as_save_IFS
31534  test -z "$as_dir" && as_dir=.
31535    for ac_exec_ext in '' $ac_executable_extensions; do
31536  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31537    ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
31538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31539    break 2
31540  fi
31541done
31542  done
31543IFS=$as_save_IFS
31544
31545  ;;
31546esac
31547fi
31548DUMP=$ac_cv_path_DUMP
31549if test -n "$DUMP"; then
31550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMP" >&5
31551$as_echo "$DUMP" >&6; }
31552else
31553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31554$as_echo "no" >&6; }
31555fi
31556
31557
31558  test -n "$DUMP" && break
31559done
31560
31561    for ac_prog in ufsrestore restore
31562do
31563  # Extract the first word of "$ac_prog", so it can be a program name with args.
31564set dummy $ac_prog; ac_word=$2
31565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31566$as_echo_n "checking for $ac_word... " >&6; }
31567if ${ac_cv_path_RESTORE+:} false; then :
31568  $as_echo_n "(cached) " >&6
31569else
31570  case $RESTORE in
31571  [\\/]* | ?:[\\/]*)
31572  ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
31573  ;;
31574  *)
31575  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31576for as_dir in $SYSLOCPATH
31577do
31578  IFS=$as_save_IFS
31579  test -z "$as_dir" && as_dir=.
31580    for ac_exec_ext in '' $ac_executable_extensions; do
31581  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31582    ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
31583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31584    break 2
31585  fi
31586done
31587  done
31588IFS=$as_save_IFS
31589
31590  ;;
31591esac
31592fi
31593RESTORE=$ac_cv_path_RESTORE
31594if test -n "$RESTORE"; then
31595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESTORE" >&5
31596$as_echo "$RESTORE" >&6; }
31597else
31598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31599$as_echo "no" >&6; }
31600fi
31601
31602
31603  test -n "$RESTORE" && break
31604done
31605
31606
31607    # newer versions of GNU tar include a program named 'backup' which
31608    # does *not* implement the expected 'dump' interface.  Detect that here
31609    # and pretend we never saw it.
31610    if test -n "$DUMP"; then
31611      if test "`basename $DUMP`" = "backup"; then
31612        backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
31613        if test $? -eq 0; then
31614          DUMP=
31615        fi
31616      fi
31617    fi
31618
31619    if test "$DUMP" -a "$RESTORE"; then
31620
31621cat >>confdefs.h <<_ACEOF
31622#define DUMP "$DUMP"
31623_ACEOF
31624
31625
31626cat >>confdefs.h <<_ACEOF
31627#define RESTORE "$RESTORE"
31628_ACEOF
31629
31630
31631	# check for an estimate flag
31632	if test -x $DUMP; then
31633	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DUMP supports -E or -S for estimates" >&5
31634$as_echo_n "checking whether $DUMP supports -E or -S for estimates... " >&6; }
31635if ${amanda_cv_dump_estimate+:} false; then :
31636  $as_echo_n "(cached) " >&6
31637else
31638
31639		    case "$DUMP" in
31640		    *dump)
31641			{ ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
31642			    | $GREP -v Dumping
31643			    | $GREP -v Date
31644			    | $GREP -v Label >conftest.d-E 2>&1'
31645  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31646  (eval $ac_try) 2>&5
31647  ac_status=$?
31648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31649  test $ac_status = 0; }; }
31650			cat conftest.d-E >&5
31651			{ ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
31652			    | $GREP -v Dumping
31653			    | $GREP -v Date
31654			    | $GREP -v Label >conftest.d-S 2>&1'
31655  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31656  (eval $ac_try) 2>&5
31657  ac_status=$?
31658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31659  test $ac_status = 0; }; }
31660			cat conftest.d-S >&5
31661			{ ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
31662			    | $GREP -v Dumping
31663			    | $GREP -v Date
31664			    | $GREP -v Label >conftest.d 2>&1'
31665  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31666  (eval $ac_try) 2>&5
31667  ac_status=$?
31668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31669  test $ac_status = 0; }; }
31670			cat conftest.d >&5
31671			if { ac_try='cmp conftest.d-E conftest.d 1>&2'
31672  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31673  (eval $ac_try) 2>&5
31674  ac_status=$?
31675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31676  test $ac_status = 0; }; }; then
31677			    amanda_cv_dump_estimate=E
31678			elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
31679  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31680  (eval $ac_try) 2>&5
31681  ac_status=$?
31682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31683  test $ac_status = 0; }; }; then
31684			    amanda_cv_dump_estimate=S
31685			else
31686			    amanda_cv_dump_estimate=no
31687			fi
31688			rm -f conftest.d conftest.d-E conftest.d-S
31689		      ;;
31690		    *) amanda_cv_dump_estimate=no
31691		      ;;
31692		    esac
31693
31694fi
31695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_dump_estimate" >&5
31696$as_echo "$amanda_cv_dump_estimate" >&6; }
31697	else
31698
31699    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $DUMP is not executable, cannot run -E/-S test" >&5
31700$as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -E/-S test" >&2;}
31701
31702
31703    cat <<AAW_EOF >>config.warnings
31704$DUMP is not executable, cannot run -E/-S test
31705AAW_EOF
31706
31707
31708	    amanda_cv_dump_estimate=no
31709	fi
31710	if test "x$amanda_cv_dump_estimate" != xno; then
31711
31712cat >>confdefs.h <<_ACEOF
31713#define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
31714_ACEOF
31715
31716	fi
31717
31718
31719# Check whether --with-dump-honor-nodump was given.
31720if test "${with_dump_honor_nodump+set}" = set; then :
31721  withval=$with_dump_honor_nodump;
31722	    if test -x $DUMP; then
31723		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DUMP supports -h (honor nodump flag)" >&5
31724$as_echo_n "checking whether $DUMP supports -h (honor nodump flag)... " >&6; }
31725if ${amanda_cv_honor_nodump+:} false; then :
31726  $as_echo_n "(cached) " >&6
31727else
31728
31729		    case "$DUMP" in
31730		    *dump)
31731			{ ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
31732			    | $GREP -v Dumping
31733			    | $GREP -v Date
31734			    | $GREP -v Label >conftest.d-h 2>&1'
31735  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31736  (eval $ac_try) 2>&5
31737  ac_status=$?
31738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31739  test $ac_status = 0; }; }
31740			cat conftest.d-h >&5
31741			{ ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
31742			    | $GREP -v Dumping
31743			    | $GREP -v Date
31744			    | $GREP -v Label >conftest.d 2>&1'
31745  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31746  (eval $ac_try) 2>&5
31747  ac_status=$?
31748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31749  test $ac_status = 0; }; }
31750			cat conftest.d >&5
31751			if { ac_try='diff conftest.d-h conftest.d 1>&2'
31752  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31753  (eval $ac_try) 2>&5
31754  ac_status=$?
31755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31756  test $ac_status = 0; }; }; then
31757			    amanda_cv_honor_nodump=yes
31758			else
31759			    amanda_cv_honor_nodump=no
31760			fi
31761			rm -f conftest.d conftest.d-h
31762		      ;;
31763		    *) amanda_cv_honor_nodump=no
31764		      ;;
31765		    esac
31766
31767fi
31768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_honor_nodump" >&5
31769$as_echo "$amanda_cv_honor_nodump" >&6; }
31770	    else
31771
31772    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $DUMP is not executable, cannot run -h test" >&5
31773$as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -h test" >&2;}
31774
31775
31776    cat <<AAW_EOF >>config.warnings
31777$DUMP is not executable, cannot run -h test
31778AAW_EOF
31779
31780
31781		amanda_cv_honor_nodump=no
31782	    fi
31783	    if test "x$amanda_cv_honor_nodump" = xyes; then
31784
31785$as_echo "#define HAVE_HONOR_NODUMP 1" >>confdefs.h
31786
31787	    fi
31788
31789fi
31790
31791    fi
31792
31793
31794
31795
31796
31797
31798
31799    # call with
31800
31801# Check whether --with-gnutar was given.
31802if test "${with_gnutar+set}" = set; then :
31803  withval=$with_gnutar;
31804	    # check withval
31805	    case "$withval" in
31806		/*) GNUTAR="$withval";;
31807		y|ye|yes) :;;
31808		n|no) GNUTAR=no ;;
31809		*)  as_fn_error $? "*** You must supply a full pathname to --with-gnutar" "$LINENO" 5;;
31810	    esac
31811	    # done
31812
31813
31814fi
31815
31816
31817    if test "x$GNUTAR" = "xno"; then
31818	GNUTAR=
31819    else
31820        if test "x$GNUTAR" != "x"; then
31821	    case `"$GNUTAR" --version 2>&1` in
31822	      *GNU*tar* | *Free*paxutils* )
31823			    # OK, it is GNU tar
31824			    break
31825			    ;;
31826	       *)
31827
31828    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GNUTAR is not GNU tar, it will be used." >&5
31829$as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, it will be used." >&2;}
31830
31831
31832    cat <<AAW_EOF >>config.warnings
31833$GNUTAR is not GNU tar, it will be used.
31834AAW_EOF
31835
31836
31837			    ;;
31838	    esac
31839        else
31840	    OLD_GNUTAR=$GNUTAR
31841	    for gnutar_name in gtar gnutar tar; do
31842	        for ac_prog in $gnutar_name
31843do
31844  # Extract the first word of "$ac_prog", so it can be a program name with args.
31845set dummy $ac_prog; ac_word=$2
31846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31847$as_echo_n "checking for $ac_word... " >&6; }
31848if ${ac_cv_path_GNUTAR+:} false; then :
31849  $as_echo_n "(cached) " >&6
31850else
31851  case $GNUTAR in
31852  [\\/]* | ?:[\\/]*)
31853  ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
31854  ;;
31855  *)
31856  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31857for as_dir in $LOCSYSPATH
31858do
31859  IFS=$as_save_IFS
31860  test -z "$as_dir" && as_dir=.
31861    for ac_exec_ext in '' $ac_executable_extensions; do
31862  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31863    ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
31864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31865    break 2
31866  fi
31867done
31868  done
31869IFS=$as_save_IFS
31870
31871  ;;
31872esac
31873fi
31874GNUTAR=$ac_cv_path_GNUTAR
31875if test -n "$GNUTAR"; then
31876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
31877$as_echo "$GNUTAR" >&6; }
31878else
31879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31880$as_echo "no" >&6; }
31881fi
31882
31883
31884  test -n "$GNUTAR" && break
31885done
31886
31887	        if test -n "$GNUTAR"; then
31888	            case `"$GNUTAR" --version 2>&1` in
31889	              *GNU*tar* | *Free*paxutils* )
31890			    # OK, it is GNU tar
31891			    break
31892			    ;;
31893	              *)
31894			    # warning..
31895
31896    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&5
31897$as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&2;}
31898
31899
31900    cat <<AAW_EOF >>config.warnings
31901$GNUTAR is not GNU tar, so it will not be used.
31902AAW_EOF
31903
31904
31905			    # reset the cache for GNUTAR so AC_PATH_PROGS will search again
31906			    GNUTAR=''
31907			    unset ac_cv_path_GNUTAR
31908			    ;;
31909	            esac
31910	        fi
31911	    done
31912        fi
31913    fi
31914
31915    if test "x$GNUTAR" = "x"; then
31916	GNUTAR='/usr/bin/tar'
31917    fi
31918    if test "x$GNUTAR" != "x"; then
31919	# find the realpath
31920	if test "x$REALPATH" != "x"; then
31921	    GNUTAR=`$REALPATH $GNUTAR 2>&1`
31922	else if test "x$AM_READLINK" != "x"; then
31923	    GNUTAR=`$AM_READLINK -e $GNUTAR 2>&1`
31924	fi
31925	fi
31926	# define unquoted
31927
31928cat >>confdefs.h <<_ACEOF
31929#define GNUTAR "$GNUTAR"
31930_ACEOF
31931
31932    fi
31933
31934
31935
31936
31937
31938
31939    # call with
31940
31941# Check whether --with-star was given.
31942if test "${with_star+set}" = set; then :
31943  withval=$with_star;
31944	    # check withval
31945	    case "$withval" in
31946		/*) STAR="$withval";;
31947		y|ye|yes) :;;
31948		n|no) STAR=no ;;
31949		*)  as_fn_error $? "*** You must supply a full pathname to --with-star" "$LINENO" 5;;
31950	    esac
31951	    # done
31952
31953
31954fi
31955
31956
31957    if test "x$STAR" = "xno"; then
31958	STAR=
31959    else
31960	OLD_STAR=$STAR
31961	for ac_prog in star
31962do
31963  # Extract the first word of "$ac_prog", so it can be a program name with args.
31964set dummy $ac_prog; ac_word=$2
31965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31966$as_echo_n "checking for $ac_word... " >&6; }
31967if ${ac_cv_path_STAR+:} false; then :
31968  $as_echo_n "(cached) " >&6
31969else
31970  case $STAR in
31971  [\\/]* | ?:[\\/]*)
31972  ac_cv_path_STAR="$STAR" # Let the user override the test with a path.
31973  ;;
31974  *)
31975  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31976for as_dir in $LOCSYSPATH
31977do
31978  IFS=$as_save_IFS
31979  test -z "$as_dir" && as_dir=.
31980    for ac_exec_ext in '' $ac_executable_extensions; do
31981  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31982    ac_cv_path_STAR="$as_dir/$ac_word$ac_exec_ext"
31983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31984    break 2
31985  fi
31986done
31987  done
31988IFS=$as_save_IFS
31989
31990  ;;
31991esac
31992fi
31993STAR=$ac_cv_path_STAR
31994if test -n "$STAR"; then
31995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAR" >&5
31996$as_echo "$STAR" >&6; }
31997else
31998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31999$as_echo "no" >&6; }
32000fi
32001
32002
32003  test -n "$STAR" && break
32004done
32005
32006	if test -n "$STAR"; then
32007	    case `"$STAR" --version 2>/dev/null` in
32008	     *star*)
32009		    # OK, it is star
32010		    break
32011		    ;;
32012	     *)
32013		    if test -n "$OLD_STAR"; then
32014
32015    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $STAR is not star, it will be used." >&5
32016$as_echo "$as_me: WARNING: $STAR is not star, it will be used." >&2;}
32017
32018
32019    cat <<AAW_EOF >>config.warnings
32020$STAR is not star, it will be used.
32021AAW_EOF
32022
32023
32024		    else
32025			# warning..
32026
32027    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $STAR is not star, so it will not be used." >&5
32028$as_echo "$as_me: WARNING: $STAR is not star, so it will not be used." >&2;}
32029
32030
32031    cat <<AAW_EOF >>config.warnings
32032$STAR is not star, so it will not be used.
32033AAW_EOF
32034
32035
32036			# reset the cache for STAR so AC_PATH_PROGS will search again
32037			STAR=''
32038			unset ac_cv_path_STAR
32039		    fi
32040		    ;;
32041	    esac
32042	fi
32043    fi
32044
32045    if test "x$STAR" = "x"; then
32046	STAR='/usr/bin/star'
32047    fi
32048    if test "x$STAR" != "x"; then
32049	# find the realpath
32050	if test "x$REALPATH" != "x"; then
32051	    STAR=`$REALPATH $STAR 2>&1`
32052	else if test "x$AM_READLINK" != "x"; then
32053	    GNUTAR=`$AM_READLINK -e $GNUTAR 2>&1`
32054	fi
32055	fi
32056	# define unquoted
32057
32058cat >>confdefs.h <<_ACEOF
32059#define STAR "$STAR"
32060_ACEOF
32061
32062    fi
32063
32064
32065
32066
32067
32068
32069    # call with
32070
32071# Check whether --with-bsdtar was given.
32072if test "${with_bsdtar+set}" = set; then :
32073  withval=$with_bsdtar;
32074	    # check withval
32075	    case "$withval" in
32076		/*) BSDTAR="$withval";;
32077		y|ye|yes) :;;
32078		n|no) BSDTAR=no ;;
32079		*)  as_fn_error $? "*** You must supply a full pathname to --with-bsdtar" "$LINENO" 5;;
32080	    esac
32081	    # done
32082
32083
32084fi
32085
32086
32087    if test "x$BSDTAR" = "xno"; then
32088	BSDTAR=
32089    else
32090	OLD_BSDTAR=$BSDTAR
32091	if test "x$BSDTAR" = "x"; then
32092	    for ac_prog in bsdtar
32093do
32094  # Extract the first word of "$ac_prog", so it can be a program name with args.
32095set dummy $ac_prog; ac_word=$2
32096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32097$as_echo_n "checking for $ac_word... " >&6; }
32098if ${ac_cv_path_BSDTAR+:} false; then :
32099  $as_echo_n "(cached) " >&6
32100else
32101  case $BSDTAR in
32102  [\\/]* | ?:[\\/]*)
32103  ac_cv_path_BSDTAR="$BSDTAR" # Let the user override the test with a path.
32104  ;;
32105  *)
32106  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32107for as_dir in $LOCSYSPATH
32108do
32109  IFS=$as_save_IFS
32110  test -z "$as_dir" && as_dir=.
32111    for ac_exec_ext in '' $ac_executable_extensions; do
32112  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32113    ac_cv_path_BSDTAR="$as_dir/$ac_word$ac_exec_ext"
32114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32115    break 2
32116  fi
32117done
32118  done
32119IFS=$as_save_IFS
32120
32121  ;;
32122esac
32123fi
32124BSDTAR=$ac_cv_path_BSDTAR
32125if test -n "$BSDTAR"; then
32126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BSDTAR" >&5
32127$as_echo "$BSDTAR" >&6; }
32128else
32129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32130$as_echo "no" >&6; }
32131fi
32132
32133
32134  test -n "$BSDTAR" && break
32135done
32136
32137	fi
32138	if test -n "$BSDTAR"; then
32139	    case `"$BSDTAR" --version 2>/dev/null` in
32140	     *bsdtar*)
32141		    # OK, it is bsdtar
32142		    break
32143		    ;;
32144	     *)
32145		    if test "x$OLD_BSDTAR" != "x"; then
32146
32147    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using $OLDBSDTAR for the ambsdtar application even if it is not bsdtar." >&5
32148$as_echo "$as_me: WARNING: using $OLDBSDTAR for the ambsdtar application even if it is not bsdtar." >&2;}
32149
32150
32151    cat <<AAW_EOF >>config.warnings
32152using $OLDBSDTAR for the ambsdtar application even if it is not bsdtar.
32153AAW_EOF
32154
32155
32156			BSDTAR=$OLD_BSDTAR
32157		    else
32158
32159    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not using $BSDTAR for the ambsdtar application as it is not bsdtar." >&5
32160$as_echo "$as_me: WARNING: Not using $BSDTAR for the ambsdtar application as it is not bsdtar." >&2;}
32161
32162
32163    cat <<AAW_EOF >>config.warnings
32164Not using $BSDTAR for the ambsdtar application as it is not bsdtar.
32165AAW_EOF
32166
32167
32168			BSDTAR=
32169		    fi
32170		    ;;
32171	    esac
32172	fi
32173	if test "x$BSDTAR" = "x"; then
32174	    for ac_prog in tar
32175do
32176  # Extract the first word of "$ac_prog", so it can be a program name with args.
32177set dummy $ac_prog; ac_word=$2
32178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32179$as_echo_n "checking for $ac_word... " >&6; }
32180if ${ac_cv_path_BSDTAR+:} false; then :
32181  $as_echo_n "(cached) " >&6
32182else
32183  case $BSDTAR in
32184  [\\/]* | ?:[\\/]*)
32185  ac_cv_path_BSDTAR="$BSDTAR" # Let the user override the test with a path.
32186  ;;
32187  *)
32188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32189for as_dir in $LOCSYSPATH
32190do
32191  IFS=$as_save_IFS
32192  test -z "$as_dir" && as_dir=.
32193    for ac_exec_ext in '' $ac_executable_extensions; do
32194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32195    ac_cv_path_BSDTAR="$as_dir/$ac_word$ac_exec_ext"
32196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32197    break 2
32198  fi
32199done
32200  done
32201IFS=$as_save_IFS
32202
32203  ;;
32204esac
32205fi
32206BSDTAR=$ac_cv_path_BSDTAR
32207if test -n "$BSDTAR"; then
32208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BSDTAR" >&5
32209$as_echo "$BSDTAR" >&6; }
32210else
32211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32212$as_echo "no" >&6; }
32213fi
32214
32215
32216  test -n "$BSDTAR" && break
32217done
32218
32219	    if test -n "$BSDTAR"; then
32220		case `"$BSDTAR" --version 2>/dev/null` in
32221		 *bsdtar*)
32222			# OK, it is bsdtar
32223			break;
32224			;;
32225		 *)	BSDTAR=
32226			;;
32227		esac
32228	    fi
32229	fi
32230    fi
32231
32232    if test "x$BSDTAR" = "x"; then
32233	BSDTAR='/usr/bin/bsdtar'
32234    fi
32235    if test "x$BSDTAR" != "x"; then
32236	# find the realpath
32237	if test "x$REALPATH" != "x"; then
32238	    BSDTAR=`$REALPATH $BSDTAR 2>&1`
32239	else if test "x$AM_READLINK" != "x"; then
32240	    GNUTAR=`$AM_READLINK -e $GNUTAR 2>&1`
32241	fi
32242	fi
32243	# define unquoted
32244
32245cat >>confdefs.h <<_ACEOF
32246#define BSDTAR "$BSDTAR"
32247_ACEOF
32248
32249    fi
32250
32251
32252
32253
32254
32255
32256    # call with
32257
32258# Check whether --with-suntar was given.
32259if test "${with_suntar+set}" = set; then :
32260  withval=$with_suntar;
32261	    # check withval
32262	    case "$withval" in
32263		/*) SUNTAR="$withval";;
32264		y|ye|yes) :;;
32265		n|no) SUNTAR=no ;;
32266		*)  as_fn_error $? "*** You must supply a full pathname to --with-suntar" "$LINENO" 5;;
32267	    esac
32268	    # done
32269
32270else
32271
32272	    if test "x$SUNTAR" = "x"; then
32273		SUNTAR="/usr/sbin/tar"
32274	    fi
32275
32276
32277fi
32278
32279
32280    if test "x$SUNTAR" = "xno"; then
32281	SUNTAR=
32282    fi
32283
32284    if test "x$SUNTAR" != "x"; then
32285	# find the realpath
32286	if test "x$REALPATH" != "x"; then
32287	    SUNTAR=`$REALPATH $SUNTAR 2>&1`
32288	else if test "x$AM_READLINK" != "x"; then
32289	    GNUTAR=`$AM_READLINK -e $GNUTAR 2>&1`
32290	fi
32291	fi
32292	# define unquoted
32293
32294cat >>confdefs.h <<_ACEOF
32295#define SUNTAR "$SUNTAR"
32296_ACEOF
32297
32298    fi
32299
32300
32301
32302
32303
32304
32305
32306# Check whether --with-smbclient was given.
32307if test "${with_smbclient+set}" = set; then :
32308  withval=$with_smbclient;
32309	    case "$withval" in
32310		/*) SAMBA_CLIENT="$withval";;
32311		y|ye|yes) :;;
32312		n|no) SAMBA_CLIENT=no ;;
32313		*)  as_fn_error $? "*** You must supply a full pathname to --with-smbclient" "$LINENO" 5;;
32314	    esac
32315
32316
32317fi
32318
32319
32320
32321# Check whether --with-samba-user was given.
32322if test "${with_samba_user+set}" = set; then :
32323  withval=$with_samba_user;  as_fn_error $? "--with-samba-user is no longer supported; place username in 'amandapass'" "$LINENO" 5
32324
32325fi
32326
32327
32328    if test "x$SAMBA_CLIENT" != "xno"; then
32329      # Extract the first word of "smbclient", so it can be a program name with args.
32330set dummy smbclient; ac_word=$2
32331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32332$as_echo_n "checking for $ac_word... " >&6; }
32333if ${ac_cv_path_SAMBA_CLIENT+:} false; then :
32334  $as_echo_n "(cached) " >&6
32335else
32336  case $SAMBA_CLIENT in
32337  [\\/]* | ?:[\\/]*)
32338  ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
32339  ;;
32340  *)
32341  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32342for as_dir in $LOCSYSPATH
32343do
32344  IFS=$as_save_IFS
32345  test -z "$as_dir" && as_dir=.
32346    for ac_exec_ext in '' $ac_executable_extensions; do
32347  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32348    ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
32349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32350    break 2
32351  fi
32352done
32353  done
32354IFS=$as_save_IFS
32355
32356  ;;
32357esac
32358fi
32359SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
32360if test -n "$SAMBA_CLIENT"; then
32361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAMBA_CLIENT" >&5
32362$as_echo "$SAMBA_CLIENT" >&6; }
32363else
32364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32365$as_echo "no" >&6; }
32366fi
32367
32368
32369      smbversion=0
32370      if test ! -z "$SAMBA_CLIENT"; then
32371        case `"$SAMBA_CLIENT" '\\\\nosuchhost.amanda.org\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1` in
32372        *"Unknown host"*)
32373		      smbversion=1
32374		      ;;
32375        *"Connection to nosuchhost.amanda.org failed"*)
32376		      smbversion=2
32377		      ;;
32378        *)
32379
32380    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SAMBA_CLIENT does not seem to be smbclient." >&5
32381$as_echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient." >&2;}
32382
32383
32384    cat <<AAW_EOF >>config.warnings
32385$SAMBA_CLIENT does not seem to be smbclient.
32386AAW_EOF
32387
32388
32389		      smbversion=2
32390		      ;;
32391        esac
32392      else
32393	  SAMBA_CLIENT='/usr/bin/smbclient'
32394	  smbversion=2
32395      fi
32396      if test -n "$SAMBA_CLIENT"; then
32397
32398cat >>confdefs.h <<_ACEOF
32399#define SAMBA_CLIENT "$SAMBA_CLIENT"
32400_ACEOF
32401
32402
32403cat >>confdefs.h <<_ACEOF
32404#define SAMBA_VERSION $smbversion
32405_ACEOF
32406
32407      fi
32408    fi
32409
32410     if test -n "$SAMBA_CLIENT"; then
32411  WANT_SAMBA_TRUE=
32412  WANT_SAMBA_FALSE='#'
32413else
32414  WANT_SAMBA_TRUE='#'
32415  WANT_SAMBA_FALSE=
32416fi
32417
32418
32419
32420    USE_RUNDUMP=no
32421
32422    # some systems require rundump unconditionally
32423    case "$host" in
32424        *-ultrix*) USE_RUNDUMP=yes ;;
32425        *-dg-*) USE_RUNDUMP=yes ;;
32426    esac
32427
32428
32429# Check whether --with-rundump was given.
32430if test "${with_rundump+set}" = set; then :
32431  withval=$with_rundump;
32432        case "$withval" in
32433            n | no) USE_RUNDUMP=no ;;
32434            y | ye | yes) USE_RUNDUMP=yes ;;
32435            *) as_fn_error $? "You must not supply an argument to --with-rundump option." "$LINENO" 5;;
32436        esac
32437
32438fi
32439
32440
32441    if test x"$USE_RUNDUMP" = x"yes"; then
32442	USE_RUNDUMP=1
32443
32444$as_echo "#define USE_RUNDUMP 1" >>confdefs.h
32445
32446    else
32447	USE_RUNDUMP=
32448    fi
32449
32450
32451
32452
32453#
32454# Look for other programs Amanda will use
32455#
32456
32457
32458    # Extract the first word of "grep", so it can be a program name with args.
32459set dummy grep; ac_word=$2
32460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32461$as_echo_n "checking for $ac_word... " >&6; }
32462if ${ac_cv_path_GREP+:} false; then :
32463  $as_echo_n "(cached) " >&6
32464else
32465  case $GREP in
32466  [\\/]* | ?:[\\/]*)
32467  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
32468  ;;
32469  *)
32470  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32471for as_dir in $LOCSYSPATH
32472do
32473  IFS=$as_save_IFS
32474  test -z "$as_dir" && as_dir=.
32475    for ac_exec_ext in '' $ac_executable_extensions; do
32476  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32477    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
32478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32479    break 2
32480  fi
32481done
32482  done
32483IFS=$as_save_IFS
32484
32485  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
32486  ;;
32487esac
32488fi
32489GREP=$ac_cv_path_GREP
32490if test -n "$GREP"; then
32491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
32492$as_echo "$GREP" >&6; }
32493else
32494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32495$as_echo "no" >&6; }
32496fi
32497
32498
32499
32500cat >>confdefs.h <<_ACEOF
32501#define GREP "$GREP"
32502_ACEOF
32503
32504
32505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
32506$as_echo_n "checking for egrep... " >&6; }
32507if ${ac_cv_path_EGREP+:} false; then :
32508  $as_echo_n "(cached) " >&6
32509else
32510  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
32511   then ac_cv_path_EGREP="$GREP -E"
32512   else
32513     if test -z "$EGREP"; then
32514  ac_path_EGREP_found=false
32515  # Loop through the user's path and test for each of PROGNAME-LIST
32516  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32517for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
32518do
32519  IFS=$as_save_IFS
32520  test -z "$as_dir" && as_dir=.
32521    for ac_prog in egrep; do
32522    for ac_exec_ext in '' $ac_executable_extensions; do
32523      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
32524      as_fn_executable_p "$ac_path_EGREP" || continue
32525# Check for GNU ac_path_EGREP and select it if it is found.
32526  # Check for GNU $ac_path_EGREP
32527case `"$ac_path_EGREP" --version 2>&1` in
32528*GNU*)
32529  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
32530*)
32531  ac_count=0
32532  $as_echo_n 0123456789 >"conftest.in"
32533  while :
32534  do
32535    cat "conftest.in" "conftest.in" >"conftest.tmp"
32536    mv "conftest.tmp" "conftest.in"
32537    cp "conftest.in" "conftest.nl"
32538    $as_echo 'EGREP' >> "conftest.nl"
32539    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
32540    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
32541    as_fn_arith $ac_count + 1 && ac_count=$as_val
32542    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
32543      # Best one so far, save it but keep looking for a better one
32544      ac_cv_path_EGREP="$ac_path_EGREP"
32545      ac_path_EGREP_max=$ac_count
32546    fi
32547    # 10*(2^10) chars as input seems more than enough
32548    test $ac_count -gt 10 && break
32549  done
32550  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
32551esac
32552
32553      $ac_path_EGREP_found && break 3
32554    done
32555  done
32556  done
32557IFS=$as_save_IFS
32558  if test -z "$ac_cv_path_EGREP"; then
32559    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
32560  fi
32561else
32562  ac_cv_path_EGREP=$EGREP
32563fi
32564
32565   fi
32566fi
32567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
32568$as_echo "$ac_cv_path_EGREP" >&6; }
32569 EGREP="$ac_cv_path_EGREP"
32570
32571
32572
32573
32574
32575
32576    # Extract the first word of "lint", so it can be a program name with args.
32577set dummy lint; ac_word=$2
32578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32579$as_echo_n "checking for $ac_word... " >&6; }
32580if ${ac_cv_path_AMLINT+:} false; then :
32581  $as_echo_n "(cached) " >&6
32582else
32583  case $AMLINT in
32584  [\\/]* | ?:[\\/]*)
32585  ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
32586  ;;
32587  *)
32588  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32589as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
32590for as_dir in $as_dummy
32591do
32592  IFS=$as_save_IFS
32593  test -z "$as_dir" && as_dir=.
32594    for ac_exec_ext in '' $ac_executable_extensions; do
32595  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32596    ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
32597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32598    break 2
32599  fi
32600done
32601  done
32602IFS=$as_save_IFS
32603
32604  ;;
32605esac
32606fi
32607AMLINT=$ac_cv_path_AMLINT
32608if test -n "$AMLINT"; then
32609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AMLINT" >&5
32610$as_echo "$AMLINT" >&6; }
32611else
32612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32613$as_echo "no" >&6; }
32614fi
32615
32616
32617    if test ! -z "$AMLINT"; then
32618      $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
32619      if test $? -eq 0; then
32620	AMLINTFLAGS="-n -s -u -m -x"
32621	AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
32622	AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
32623	AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
32624	AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
32625	AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
32626	AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
32627	AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
32628	AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
32629	AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
32630	AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
32631	AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
32632	AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
32633	AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
32634	AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
32635	AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
32636	AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
32637	AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
32638	AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
32639	AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
32640	AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
32641	AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
32642	AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
32643	AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
32644	AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
32645	AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
32646	AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
32647	AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
32648	AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
32649	AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
32650	AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
32651	AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
32652	AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
32653	AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
32654	AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
32655	AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
32656	AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
32657	AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
32658	AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
32659	AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
32660	AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
32661	AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
32662	AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
32663	AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
32664	AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
32665	AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
32666	AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
32667	AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
32668	AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
32669	AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
32670	AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
32671      else
32672	AMLINTFLAGS=""
32673      fi
32674    else
32675      # Extract the first word of "splint", so it can be a program name with args.
32676set dummy splint; ac_word=$2
32677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32678$as_echo_n "checking for $ac_word... " >&6; }
32679if ${ac_cv_path_AMLINT+:} false; then :
32680  $as_echo_n "(cached) " >&6
32681else
32682  case $AMLINT in
32683  [\\/]* | ?:[\\/]*)
32684  ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
32685  ;;
32686  *)
32687  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32688for as_dir in $SYSLOCPATH
32689do
32690  IFS=$as_save_IFS
32691  test -z "$as_dir" && as_dir=.
32692    for ac_exec_ext in '' $ac_executable_extensions; do
32693  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32694    ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
32695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32696    break 2
32697  fi
32698done
32699  done
32700IFS=$as_save_IFS
32701
32702  ;;
32703esac
32704fi
32705AMLINT=$ac_cv_path_AMLINT
32706if test -n "$AMLINT"; then
32707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AMLINT" >&5
32708$as_echo "$AMLINT" >&6; }
32709else
32710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32711$as_echo "no" >&6; }
32712fi
32713
32714
32715      if test ! -z "$AMLINT"; then
32716	AMLINT="splint"
32717        AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
32718      else
32719	AMLINT='echo "Error: LINT is not installed" ; false'
32720        AMLINTFLAGS=''
32721      fi
32722    fi
32723
32724
32725for ac_prog in flex lex
32726do
32727  # Extract the first word of "$ac_prog", so it can be a program name with args.
32728set dummy $ac_prog; ac_word=$2
32729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32730$as_echo_n "checking for $ac_word... " >&6; }
32731if ${ac_cv_prog_LEX+:} false; then :
32732  $as_echo_n "(cached) " >&6
32733else
32734  if test -n "$LEX"; then
32735  ac_cv_prog_LEX="$LEX" # Let the user override the test.
32736else
32737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32738for as_dir in $PATH
32739do
32740  IFS=$as_save_IFS
32741  test -z "$as_dir" && as_dir=.
32742    for ac_exec_ext in '' $ac_executable_extensions; do
32743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32744    ac_cv_prog_LEX="$ac_prog"
32745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32746    break 2
32747  fi
32748done
32749  done
32750IFS=$as_save_IFS
32751
32752fi
32753fi
32754LEX=$ac_cv_prog_LEX
32755if test -n "$LEX"; then
32756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
32757$as_echo "$LEX" >&6; }
32758else
32759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32760$as_echo "no" >&6; }
32761fi
32762
32763
32764  test -n "$LEX" && break
32765done
32766test -n "$LEX" || LEX=":"
32767
32768if test "x$LEX" != "x:"; then
32769  cat >conftest.l <<_ACEOF
32770%%
32771a { ECHO; }
32772b { REJECT; }
32773c { yymore (); }
32774d { yyless (1); }
32775e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
32776    yyless ((input () != 0)); }
32777f { unput (yytext[0]); }
32778. { BEGIN INITIAL; }
32779%%
32780#ifdef YYTEXT_POINTER
32781extern char *yytext;
32782#endif
32783int
32784main (void)
32785{
32786  return ! yylex () + ! yywrap ();
32787}
32788_ACEOF
32789{ { ac_try="$LEX conftest.l"
32790case "(($ac_try" in
32791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792  *) ac_try_echo=$ac_try;;
32793esac
32794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32795$as_echo "$ac_try_echo"; } >&5
32796  (eval "$LEX conftest.l") 2>&5
32797  ac_status=$?
32798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32799  test $ac_status = 0; }
32800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
32801$as_echo_n "checking lex output file root... " >&6; }
32802if ${ac_cv_prog_lex_root+:} false; then :
32803  $as_echo_n "(cached) " >&6
32804else
32805
32806if test -f lex.yy.c; then
32807  ac_cv_prog_lex_root=lex.yy
32808elif test -f lexyy.c; then
32809  ac_cv_prog_lex_root=lexyy
32810else
32811  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
32812fi
32813fi
32814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
32815$as_echo "$ac_cv_prog_lex_root" >&6; }
32816LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
32817
32818if test -z "${LEXLIB+set}"; then
32819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
32820$as_echo_n "checking lex library... " >&6; }
32821if ${ac_cv_lib_lex+:} false; then :
32822  $as_echo_n "(cached) " >&6
32823else
32824
32825    ac_save_LIBS=$LIBS
32826    ac_cv_lib_lex='none needed'
32827    for ac_lib in '' -lfl -ll; do
32828      LIBS="$ac_lib $ac_save_LIBS"
32829      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32830/* end confdefs.h.  */
32831`cat $LEX_OUTPUT_ROOT.c`
32832_ACEOF
32833if ac_fn_c_try_link "$LINENO"; then :
32834  ac_cv_lib_lex=$ac_lib
32835fi
32836rm -f core conftest.err conftest.$ac_objext \
32837    conftest$ac_exeext conftest.$ac_ext
32838      test "$ac_cv_lib_lex" != 'none needed' && break
32839    done
32840    LIBS=$ac_save_LIBS
32841
32842fi
32843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
32844$as_echo "$ac_cv_lib_lex" >&6; }
32845  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
32846fi
32847
32848
32849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
32850$as_echo_n "checking whether yytext is a pointer... " >&6; }
32851if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
32852  $as_echo_n "(cached) " >&6
32853else
32854  # POSIX says lex can declare yytext either as a pointer or an array; the
32855# default is implementation-dependent.  Figure out which it is, since
32856# not all implementations provide the %pointer and %array declarations.
32857ac_cv_prog_lex_yytext_pointer=no
32858ac_save_LIBS=$LIBS
32859LIBS="$LEXLIB $ac_save_LIBS"
32860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32861/* end confdefs.h.  */
32862
32863  #define YYTEXT_POINTER 1
32864`cat $LEX_OUTPUT_ROOT.c`
32865_ACEOF
32866if ac_fn_c_try_link "$LINENO"; then :
32867  ac_cv_prog_lex_yytext_pointer=yes
32868fi
32869rm -f core conftest.err conftest.$ac_objext \
32870    conftest$ac_exeext conftest.$ac_ext
32871LIBS=$ac_save_LIBS
32872
32873fi
32874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
32875$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
32876if test $ac_cv_prog_lex_yytext_pointer = yes; then
32877
32878$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
32879
32880fi
32881rm -f conftest.l $LEX_OUTPUT_ROOT.c
32882
32883fi
32884if test "$LEX" = :; then
32885  LEX=${am_missing_run}flex
32886fi
32887
32888
32889
32890    if test x"$LEX" != x""; then
32891	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lex is broken Solaris (SGU) lex" >&5
32892$as_echo_n "checking whether lex is broken Solaris (SGU) lex... " >&6; }
32893	$LEX -V < /dev/null >/dev/null 2>conftest.out
32894	if grep SGU conftest.out >/dev/null; then
32895	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&5
32896$as_echo "yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&6; }
32897	    LEX='echo no lex equivalent available; false'
32898	else
32899	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32900$as_echo "no" >&6; }
32901	fi
32902	rm conftest.out
32903    fi
32904
32905
32906
32907    # Extract the first word of "ar", so it can be a program name with args.
32908set dummy ar; ac_word=$2
32909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32910$as_echo_n "checking for $ac_word... " >&6; }
32911if ${ac_cv_path_AR+:} false; then :
32912  $as_echo_n "(cached) " >&6
32913else
32914  case $AR in
32915  [\\/]* | ?:[\\/]*)
32916  ac_cv_path_AR="$AR" # Let the user override the test with a path.
32917  ;;
32918  *)
32919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32920for as_dir in $LOCSYSPATH
32921do
32922  IFS=$as_save_IFS
32923  test -z "$as_dir" && as_dir=.
32924    for ac_exec_ext in '' $ac_executable_extensions; do
32925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32926    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
32927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32928    break 2
32929  fi
32930done
32931  done
32932IFS=$as_save_IFS
32933
32934  ;;
32935esac
32936fi
32937AR=$ac_cv_path_AR
32938if test -n "$AR"; then
32939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
32940$as_echo "$AR" >&6; }
32941else
32942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32943$as_echo "no" >&6; }
32944fi
32945
32946
32947
32948
32949
32950    # Extract the first word of "gettext", so it can be a program name with args.
32951set dummy gettext; ac_word=$2
32952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32953$as_echo_n "checking for $ac_word... " >&6; }
32954if ${ac_cv_path_GETTEXT+:} false; then :
32955  $as_echo_n "(cached) " >&6
32956else
32957  case $GETTEXT in
32958  [\\/]* | ?:[\\/]*)
32959  ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
32960  ;;
32961  *)
32962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32963for as_dir in $LOCSYSPATH
32964do
32965  IFS=$as_save_IFS
32966  test -z "$as_dir" && as_dir=.
32967    for ac_exec_ext in '' $ac_executable_extensions; do
32968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32969    ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
32970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32971    break 2
32972  fi
32973done
32974  done
32975IFS=$as_save_IFS
32976
32977  ;;
32978esac
32979fi
32980GETTEXT=$ac_cv_path_GETTEXT
32981if test -n "$GETTEXT"; then
32982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETTEXT" >&5
32983$as_echo "$GETTEXT" >&6; }
32984else
32985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32986$as_echo "no" >&6; }
32987fi
32988
32989
32990
32991for ac_prog in gawk mawk nawk awk
32992do
32993  # Extract the first word of "$ac_prog", so it can be a program name with args.
32994set dummy $ac_prog; ac_word=$2
32995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32996$as_echo_n "checking for $ac_word... " >&6; }
32997if ${ac_cv_prog_AWK+:} false; then :
32998  $as_echo_n "(cached) " >&6
32999else
33000  if test -n "$AWK"; then
33001  ac_cv_prog_AWK="$AWK" # Let the user override the test.
33002else
33003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33004for as_dir in $PATH
33005do
33006  IFS=$as_save_IFS
33007  test -z "$as_dir" && as_dir=.
33008    for ac_exec_ext in '' $ac_executable_extensions; do
33009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33010    ac_cv_prog_AWK="$ac_prog"
33011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33012    break 2
33013  fi
33014done
33015  done
33016IFS=$as_save_IFS
33017
33018fi
33019fi
33020AWK=$ac_cv_prog_AWK
33021if test -n "$AWK"; then
33022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
33023$as_echo "$AWK" >&6; }
33024else
33025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33026$as_echo "no" >&6; }
33027fi
33028
33029
33030  test -n "$AWK" && break
33031done
33032
33033for ac_prog in 'bison -y' byacc
33034do
33035  # Extract the first word of "$ac_prog", so it can be a program name with args.
33036set dummy $ac_prog; ac_word=$2
33037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33038$as_echo_n "checking for $ac_word... " >&6; }
33039if ${ac_cv_prog_YACC+:} false; then :
33040  $as_echo_n "(cached) " >&6
33041else
33042  if test -n "$YACC"; then
33043  ac_cv_prog_YACC="$YACC" # Let the user override the test.
33044else
33045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33046for as_dir in $PATH
33047do
33048  IFS=$as_save_IFS
33049  test -z "$as_dir" && as_dir=.
33050    for ac_exec_ext in '' $ac_executable_extensions; do
33051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33052    ac_cv_prog_YACC="$ac_prog"
33053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33054    break 2
33055  fi
33056done
33057  done
33058IFS=$as_save_IFS
33059
33060fi
33061fi
33062YACC=$ac_cv_prog_YACC
33063if test -n "$YACC"; then
33064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
33065$as_echo "$YACC" >&6; }
33066else
33067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33068$as_echo "no" >&6; }
33069fi
33070
33071
33072  test -n "$YACC" && break
33073done
33074test -n "$YACC" || YACC="yacc"
33075
33076
33077
33078
33079    # Extract the first word of "dd", so it can be a program name with args.
33080set dummy dd; ac_word=$2
33081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33082$as_echo_n "checking for $ac_word... " >&6; }
33083if ${ac_cv_path_DD+:} false; then :
33084  $as_echo_n "(cached) " >&6
33085else
33086  case $DD in
33087  [\\/]* | ?:[\\/]*)
33088  ac_cv_path_DD="$DD" # Let the user override the test with a path.
33089  ;;
33090  *)
33091  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33092for as_dir in $LOCSYSPATH
33093do
33094  IFS=$as_save_IFS
33095  test -z "$as_dir" && as_dir=.
33096    for ac_exec_ext in '' $ac_executable_extensions; do
33097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33098    ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
33099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33100    break 2
33101  fi
33102done
33103  done
33104IFS=$as_save_IFS
33105
33106  ;;
33107esac
33108fi
33109DD=$ac_cv_path_DD
33110if test -n "$DD"; then
33111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
33112$as_echo "$DD" >&6; }
33113else
33114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33115$as_echo "no" >&6; }
33116fi
33117
33118
33119
33120
33121
33122    # Extract the first word of "bash", so it can be a program name with args.
33123set dummy bash; ac_word=$2
33124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33125$as_echo_n "checking for $ac_word... " >&6; }
33126if ${ac_cv_path_BASH+:} false; then :
33127  $as_echo_n "(cached) " >&6
33128else
33129  case $BASH in
33130  [\\/]* | ?:[\\/]*)
33131  ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
33132  ;;
33133  *)
33134  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33135for as_dir in $SYSPATH
33136do
33137  IFS=$as_save_IFS
33138  test -z "$as_dir" && as_dir=.
33139    for ac_exec_ext in '' $ac_executable_extensions; do
33140  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33141    ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
33142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33143    break 2
33144  fi
33145done
33146  done
33147IFS=$as_save_IFS
33148
33149  ;;
33150esac
33151fi
33152BASH=$ac_cv_path_BASH
33153if test -n "$BASH"; then
33154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
33155$as_echo "$BASH" >&6; }
33156else
33157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33158$as_echo "no" >&6; }
33159fi
33160
33161
33162
33163
33164
33165
33166
33167    # Extract the first word of "sort", so it can be a program name with args.
33168set dummy sort; ac_word=$2
33169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33170$as_echo_n "checking for $ac_word... " >&6; }
33171if ${ac_cv_path_SORT+:} false; then :
33172  $as_echo_n "(cached) " >&6
33173else
33174  case $SORT in
33175  [\\/]* | ?:[\\/]*)
33176  ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
33177  ;;
33178  *)
33179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33180for as_dir in $LOCSYSPATH
33181do
33182  IFS=$as_save_IFS
33183  test -z "$as_dir" && as_dir=.
33184    for ac_exec_ext in '' $ac_executable_extensions; do
33185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33186    ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
33187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33188    break 2
33189  fi
33190done
33191  done
33192IFS=$as_save_IFS
33193
33194  test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
33195  ;;
33196esac
33197fi
33198SORT=$ac_cv_path_SORT
33199if test -n "$SORT"; then
33200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
33201$as_echo "$SORT" >&6; }
33202else
33203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33204$as_echo "no" >&6; }
33205fi
33206
33207
33208
33209    # sort is only needed in the server build
33210    if test x"$SORT" = x"NONE" && $WANT_SERVER; then
33211        as_fn_error $? "Set SORT to the path of the sort program." "$LINENO" 5
33212    fi
33213
33214
33215cat >>confdefs.h <<_ACEOF
33216#define SORT_PATH "$SORT"
33217_ACEOF
33218
33219
33220
33221
33222    for ac_prog in Mail mailx mail
33223do
33224  # Extract the first word of "$ac_prog", so it can be a program name with args.
33225set dummy $ac_prog; ac_word=$2
33226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33227$as_echo_n "checking for $ac_word... " >&6; }
33228if ${ac_cv_path_MAILER+:} false; then :
33229  $as_echo_n "(cached) " >&6
33230else
33231  case $MAILER in
33232  [\\/]* | ?:[\\/]*)
33233  ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
33234  ;;
33235  *)
33236  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33237for as_dir in $PATH
33238do
33239  IFS=$as_save_IFS
33240  test -z "$as_dir" && as_dir=.
33241    for ac_exec_ext in '' $ac_executable_extensions; do
33242  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33243    ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
33244    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33245    break 2
33246  fi
33247done
33248  done
33249IFS=$as_save_IFS
33250
33251  ;;
33252esac
33253fi
33254MAILER=$ac_cv_path_MAILER
33255if test -n "$MAILER"; then
33256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAILER" >&5
33257$as_echo "$MAILER" >&6; }
33258else
33259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33260$as_echo "no" >&6; }
33261fi
33262
33263
33264  test -n "$MAILER" && break
33265done
33266test -n "$MAILER" || MAILER="NONE"
33267
33268    if test x"$MAILER" = x"NONE"; then
33269
33270    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
33271$as_echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
33272
33273
33274    cat <<AAW_EOF >>config.warnings
33275WARNING: Amanda cannot send mail reports without a mailer.
33276AAW_EOF
33277
33278
33279	DEFAULT_MAILER=""
33280    else
33281	DEFAULT_MAILER="$MAILER"
33282    fi
33283
33284cat >>confdefs.h <<_ACEOF
33285#define DEFAULT_MAILER "$DEFAULT_MAILER"
33286_ACEOF
33287
33288
33289
33290
33291
33292    # Extract the first word of "mt", so it can be a program name with args.
33293set dummy mt; ac_word=$2
33294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33295$as_echo_n "checking for $ac_word... " >&6; }
33296if ${ac_cv_path_MT+:} false; then :
33297  $as_echo_n "(cached) " >&6
33298else
33299  case $MT in
33300  [\\/]* | ?:[\\/]*)
33301  ac_cv_path_MT="$MT" # Let the user override the test with a path.
33302  ;;
33303  *)
33304  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33305for as_dir in $SYSLOCPATH
33306do
33307  IFS=$as_save_IFS
33308  test -z "$as_dir" && as_dir=.
33309    for ac_exec_ext in '' $ac_executable_extensions; do
33310  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33311    ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
33312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33313    break 2
33314  fi
33315done
33316  done
33317IFS=$as_save_IFS
33318
33319  test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
33320  ;;
33321esac
33322fi
33323MT=$ac_cv_path_MT
33324if test -n "$MT"; then
33325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5
33326$as_echo "$MT" >&6; }
33327else
33328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33329$as_echo "no" >&6; }
33330fi
33331
33332
33333
33334    case "$host" in
33335	*-hp-*) MT_FILE_FLAG="-t" ;;
33336	*) MT_FILE_FLAG="-f" ;;
33337    esac
33338
33339
33340
33341cat >>confdefs.h <<_ACEOF
33342#define MT_FILE_FLAG "$MT_FILE_FLAG"
33343_ACEOF
33344
33345
33346
33347
33348    # Extract the first word of "mtx", so it can be a program name with args.
33349set dummy mtx; ac_word=$2
33350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33351$as_echo_n "checking for $ac_word... " >&6; }
33352if ${ac_cv_path_MTX+:} false; then :
33353  $as_echo_n "(cached) " >&6
33354else
33355  case $MTX in
33356  [\\/]* | ?:[\\/]*)
33357  ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
33358  ;;
33359  *)
33360  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33361for as_dir in $LOCSYSPATH
33362do
33363  IFS=$as_save_IFS
33364  test -z "$as_dir" && as_dir=.
33365    for ac_exec_ext in '' $ac_executable_extensions; do
33366  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33367    ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
33368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33369    break 2
33370  fi
33371done
33372  done
33373IFS=$as_save_IFS
33374
33375  test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
33376  ;;
33377esac
33378fi
33379MTX=$ac_cv_path_MTX
33380if test -n "$MTX"; then
33381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
33382$as_echo "$MTX" >&6; }
33383else
33384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33385$as_echo "no" >&6; }
33386fi
33387
33388
33389
33390
33391
33392
33393    # Extract the first word of "mount", so it can be a program name with args.
33394set dummy mount; ac_word=$2
33395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33396$as_echo_n "checking for $ac_word... " >&6; }
33397if ${ac_cv_path_MOUNT+:} false; then :
33398  $as_echo_n "(cached) " >&6
33399else
33400  case $MOUNT in
33401  [\\/]* | ?:[\\/]*)
33402  ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
33403  ;;
33404  *)
33405  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33406for as_dir in $LOCSYSPATH
33407do
33408  IFS=$as_save_IFS
33409  test -z "$as_dir" && as_dir=.
33410    for ac_exec_ext in '' $ac_executable_extensions; do
33411  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33412    ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
33413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33414    break 2
33415  fi
33416done
33417  done
33418IFS=$as_save_IFS
33419
33420  test -z "$ac_cv_path_MOUNT" && ac_cv_path_MOUNT="mount"
33421  ;;
33422esac
33423fi
33424MOUNT=$ac_cv_path_MOUNT
33425if test -n "$MOUNT"; then
33426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOUNT" >&5
33427$as_echo "$MOUNT" >&6; }
33428else
33429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33430$as_echo "no" >&6; }
33431fi
33432
33433
33434
33435
33436
33437
33438    # Extract the first word of "umount", so it can be a program name with args.
33439set dummy umount; ac_word=$2
33440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33441$as_echo_n "checking for $ac_word... " >&6; }
33442if ${ac_cv_path_UMOUNT+:} false; then :
33443  $as_echo_n "(cached) " >&6
33444else
33445  case $UMOUNT in
33446  [\\/]* | ?:[\\/]*)
33447  ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
33448  ;;
33449  *)
33450  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33451for as_dir in $LOCSYSPATH
33452do
33453  IFS=$as_save_IFS
33454  test -z "$as_dir" && as_dir=.
33455    for ac_exec_ext in '' $ac_executable_extensions; do
33456  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33457    ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
33458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33459    break 2
33460  fi
33461done
33462  done
33463IFS=$as_save_IFS
33464
33465  test -z "$ac_cv_path_UMOUNT" && ac_cv_path_UMOUNT="umount"
33466  ;;
33467esac
33468fi
33469UMOUNT=$ac_cv_path_UMOUNT
33470if test -n "$UMOUNT"; then
33471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UMOUNT" >&5
33472$as_echo "$UMOUNT" >&6; }
33473else
33474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33475$as_echo "no" >&6; }
33476fi
33477
33478
33479
33480
33481
33482
33483    # Extract the first word of "uname", so it can be a program name with args.
33484set dummy uname; ac_word=$2
33485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33486$as_echo_n "checking for $ac_word... " >&6; }
33487if ${ac_cv_path_UNAME+:} false; then :
33488  $as_echo_n "(cached) " >&6
33489else
33490  case $UNAME in
33491  [\\/]* | ?:[\\/]*)
33492  ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
33493  ;;
33494  *)
33495  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33496for as_dir in $LOCSYSPATH
33497do
33498  IFS=$as_save_IFS
33499  test -z "$as_dir" && as_dir=.
33500    for ac_exec_ext in '' $ac_executable_extensions; do
33501  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33502    ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
33503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33504    break 2
33505  fi
33506done
33507  done
33508IFS=$as_save_IFS
33509
33510  ;;
33511esac
33512fi
33513UNAME=$ac_cv_path_UNAME
33514if test -n "$UNAME"; then
33515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
33516$as_echo "$UNAME" >&6; }
33517else
33518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33519$as_echo "no" >&6; }
33520fi
33521
33522
33523
33524cat >>confdefs.h <<_ACEOF
33525#define UNAME_PATH "$UNAME"
33526_ACEOF
33527
33528
33529
33530
33531
33532    for ac_prog in lpr lp
33533do
33534  # Extract the first word of "$ac_prog", so it can be a program name with args.
33535set dummy $ac_prog; ac_word=$2
33536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33537$as_echo_n "checking for $ac_word... " >&6; }
33538if ${ac_cv_path_LPR+:} false; then :
33539  $as_echo_n "(cached) " >&6
33540else
33541  case $LPR in
33542  [\\/]* | ?:[\\/]*)
33543  ac_cv_path_LPR="$LPR" # Let the user override the test with a path.
33544  ;;
33545  *)
33546  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33547for as_dir in $PATH
33548do
33549  IFS=$as_save_IFS
33550  test -z "$as_dir" && as_dir=.
33551    for ac_exec_ext in '' $ac_executable_extensions; do
33552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33553    ac_cv_path_LPR="$as_dir/$ac_word$ac_exec_ext"
33554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33555    break 2
33556  fi
33557done
33558  done
33559IFS=$as_save_IFS
33560
33561  ;;
33562esac
33563fi
33564LPR=$ac_cv_path_LPR
33565if test -n "$LPR"; then
33566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPR" >&5
33567$as_echo "$LPR" >&6; }
33568else
33569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33570$as_echo "no" >&6; }
33571fi
33572
33573
33574  test -n "$LPR" && break
33575done
33576
33577    if test ! -z "$LPR"; then
33578
33579$as_echo "#define HAVE_LPR_CMD 1" >>confdefs.h
33580
33581
33582	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which flag to use to select a printer" >&5
33583$as_echo_n "checking which flag to use to select a printer... " >&6; }
33584if ${amanda_cv_printer_flag+:} false; then :
33585  $as_echo_n "(cached) " >&6
33586else
33587
33588	    amanda_cv_printer_flag=$LPRFLAG
33589	    case "$LPR" in
33590		lpr|*/lpr) amanda_cv_printer_flag="-P";;
33591		lp|*/lp) amanda_cv_printer_flag="-d";;
33592	    esac
33593
33594fi
33595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_printer_flag" >&5
33596$as_echo "$amanda_cv_printer_flag" >&6; }
33597	if test ! -z "$amanda_cv_printer_flag"; then
33598	    LPRFLAG=$amanda_cv_printer_flag
33599	else
33600
33601    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: amanda will always print to the default printer" >&5
33602$as_echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
33603
33604
33605    cat <<AAW_EOF >>config.warnings
33606WARNING: amanda will always print to the default printer
33607AAW_EOF
33608
33609
33610	fi
33611    fi
33612
33613
33614
33615
33616
33617
33618    # Extract the first word of "pcat", so it can be a program name with args.
33619set dummy pcat; ac_word=$2
33620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33621$as_echo_n "checking for $ac_word... " >&6; }
33622if ${ac_cv_path_PCAT+:} false; then :
33623  $as_echo_n "(cached) " >&6
33624else
33625  case $PCAT in
33626  [\\/]* | ?:[\\/]*)
33627  ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
33628  ;;
33629  *)
33630  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33631for as_dir in $LOCSYSPATH
33632do
33633  IFS=$as_save_IFS
33634  test -z "$as_dir" && as_dir=.
33635    for ac_exec_ext in '' $ac_executable_extensions; do
33636  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33637    ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
33638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33639    break 2
33640  fi
33641done
33642  done
33643IFS=$as_save_IFS
33644
33645  ;;
33646esac
33647fi
33648PCAT=$ac_cv_path_PCAT
33649if test -n "$PCAT"; then
33650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAT" >&5
33651$as_echo "$PCAT" >&6; }
33652else
33653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33654$as_echo "no" >&6; }
33655fi
33656
33657
33658
33659
33660
33661    for ac_prog in perl5 perl
33662do
33663  # Extract the first word of "$ac_prog", so it can be a program name with args.
33664set dummy $ac_prog; ac_word=$2
33665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33666$as_echo_n "checking for $ac_word... " >&6; }
33667if ${ac_cv_path_PERL+:} false; then :
33668  $as_echo_n "(cached) " >&6
33669else
33670  case $PERL in
33671  [\\/]* | ?:[\\/]*)
33672  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33673  ;;
33674  *)
33675  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33676for as_dir in $LOCSYSPATH
33677do
33678  IFS=$as_save_IFS
33679  test -z "$as_dir" && as_dir=.
33680    for ac_exec_ext in '' $ac_executable_extensions; do
33681  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33682    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
33683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33684    break 2
33685  fi
33686done
33687  done
33688IFS=$as_save_IFS
33689
33690  ;;
33691esac
33692fi
33693PERL=$ac_cv_path_PERL
33694if test -n "$PERL"; then
33695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
33696$as_echo "$PERL" >&6; }
33697else
33698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33699$as_echo "no" >&6; }
33700fi
33701
33702
33703  test -n "$PERL" && break
33704done
33705
33706
33707    # Make sure we have perl
33708if test -z "$PERL"; then
33709# Extract the first word of "perl", so it can be a program name with args.
33710set dummy perl; ac_word=$2
33711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33712$as_echo_n "checking for $ac_word... " >&6; }
33713if ${ac_cv_prog_PERL+:} false; then :
33714  $as_echo_n "(cached) " >&6
33715else
33716  if test -n "$PERL"; then
33717  ac_cv_prog_PERL="$PERL" # Let the user override the test.
33718else
33719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33720for as_dir in $PATH
33721do
33722  IFS=$as_save_IFS
33723  test -z "$as_dir" && as_dir=.
33724    for ac_exec_ext in '' $ac_executable_extensions; do
33725  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33726    ac_cv_prog_PERL="perl"
33727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33728    break 2
33729  fi
33730done
33731  done
33732IFS=$as_save_IFS
33733
33734fi
33735fi
33736PERL=$ac_cv_prog_PERL
33737if test -n "$PERL"; then
33738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
33739$as_echo "$PERL" >&6; }
33740else
33741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33742$as_echo "no" >&6; }
33743fi
33744
33745
33746fi
33747
33748# Check if version of Perl is sufficient
33749ac_perl_version="5.6.0"
33750
33751if test "x$PERL" != "x"; then
33752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
33753$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
33754  # NB: It would be nice to log the error if there is one, but we cannot rely
33755  # on autoconf internals
33756  $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
33757  if test $? -ne 0; then
33758    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33759$as_echo "no" >&6; };
33760
33761	as_fn_error $? "Amanda requires at least perl 5.6.0" "$LINENO" 5
33762
33763  else
33764    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
33765$as_echo "ok" >&6; };
33766
33767  fi
33768else
33769  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
33770$as_echo "$as_me: WARNING: could not find perl" >&2;}
33771fi
33772
33773
33774
33775
33776    for ac_prog in swig
33777do
33778  # Extract the first word of "$ac_prog", so it can be a program name with args.
33779set dummy $ac_prog; ac_word=$2
33780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33781$as_echo_n "checking for $ac_word... " >&6; }
33782if ${ac_cv_path_SWIG+:} false; then :
33783  $as_echo_n "(cached) " >&6
33784else
33785  case $SWIG in
33786  [\\/]* | ?:[\\/]*)
33787  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
33788  ;;
33789  *)
33790  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33791for as_dir in $LOCSYSPATH
33792do
33793  IFS=$as_save_IFS
33794  test -z "$as_dir" && as_dir=.
33795    for ac_exec_ext in '' $ac_executable_extensions; do
33796  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33797    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
33798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33799    break 2
33800  fi
33801done
33802  done
33803IFS=$as_save_IFS
33804
33805  ;;
33806esac
33807fi
33808SWIG=$ac_cv_path_SWIG
33809if test -n "$SWIG"; then
33810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
33811$as_echo "$SWIG" >&6; }
33812else
33813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33814$as_echo "no" >&6; }
33815fi
33816
33817
33818  test -n "$SWIG" && break
33819done
33820
33821
33822    # 1.3.32 introduces a change in the way empty strings are handled (old versions
33823    # returned undef in Perl, while new versions return an empty Perl string)
33824    # 1.3.39 is required for the %begin block
33825
33826        # Extract the first word of "swig", so it can be a program name with args.
33827set dummy swig; ac_word=$2
33828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33829$as_echo_n "checking for $ac_word... " >&6; }
33830if ${ac_cv_path_SWIG+:} false; then :
33831  $as_echo_n "(cached) " >&6
33832else
33833  case $SWIG in
33834  [\\/]* | ?:[\\/]*)
33835  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
33836  ;;
33837  *)
33838  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33839for as_dir in $PATH
33840do
33841  IFS=$as_save_IFS
33842  test -z "$as_dir" && as_dir=.
33843    for ac_exec_ext in '' $ac_executable_extensions; do
33844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33845    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
33846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33847    break 2
33848  fi
33849done
33850  done
33851IFS=$as_save_IFS
33852
33853  ;;
33854esac
33855fi
33856SWIG=$ac_cv_path_SWIG
33857if test -n "$SWIG"; then
33858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
33859$as_echo "$SWIG" >&6; }
33860else
33861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33862$as_echo "no" >&6; }
33863fi
33864
33865
33866        if test -z "$SWIG" ; then
33867                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
33868        elif test -n "1.3.39" ; then
33869                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
33870$as_echo_n "checking for SWIG version... " >&6; }
33871                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'`
33872                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
33873$as_echo "$swig_version" >&6; }
33874                if test -n "$swig_version" ; then
33875
33876  # Used to indicate true or false condition
33877  ax_compare_version=false
33878
33879  # Convert the two version strings to be compared into a format that
33880  # allows a simple string comparison.  The end result is that a version
33881  # string of the form 1.12.5-r617 will be converted to the form
33882  # 0001001200050617.  In other words, each number is zero padded to four
33883  # digits, and non digits are removed.
33884
33885  ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33886                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33887                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33888                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33889                     -e 's/[^0-9]//g'`
33890
33891
33892  ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33893                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33894                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33895                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33896                     -e 's/[^0-9]//g'`
33897
33898
33899    ax_compare_version=`echo "x$ax_compare_version_A
33900x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
33901
33902
33903
33904    if test "$ax_compare_version" = "true" ; then
33905
33906			    			    SWIG_LIB=`$SWIG -swiglib`
33907
33908    else
33909			    			    SWIG='echo "Error: SWIG version >= 1.3.39 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
33910
33911  fi
33912
33913                else
33914                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
33915                fi
33916        fi
33917
33918
33919
33920
33921    # Extract the first word of "ps", so it can be a program name with args.
33922set dummy ps; ac_word=$2
33923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33924$as_echo_n "checking for $ac_word... " >&6; }
33925if ${ac_cv_path_PS+:} false; then :
33926  $as_echo_n "(cached) " >&6
33927else
33928  case $PS in
33929  [\\/]* | ?:[\\/]*)
33930  ac_cv_path_PS="$PS" # Let the user override the test with a path.
33931  ;;
33932  *)
33933  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33934for as_dir in $PATH
33935do
33936  IFS=$as_save_IFS
33937  test -z "$as_dir" && as_dir=.
33938    for ac_exec_ext in '' $ac_executable_extensions; do
33939  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33940    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
33941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33942    break 2
33943  fi
33944done
33945  done
33946IFS=$as_save_IFS
33947
33948  ;;
33949esac
33950fi
33951PS=$ac_cv_path_PS
33952if test -n "$PS"; then
33953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
33954$as_echo "$PS" >&6; }
33955else
33956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33957$as_echo "no" >&6; }
33958fi
33959
33960
33961    { $as_echo "$as_me:${as_lineno-$LINENO}: checking ps argument to use" >&5
33962$as_echo_n "checking ps argument to use... " >&6; }
33963    PS_ARGUMENT=
33964
33965    # ps is *very* non-portable, and across many systems, the same option
33966    # (e.g., -e) can mean different things.  So this macro tries to
33967    # special-case most known systems, and makes an effort to detect unknown
33968    # systems
33969    case "$host" in
33970	*-*-solaris*)
33971	    PS_ARGUMENT="-eo pid,ppid,comm"
33972	    PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
33973	    ;;
33974
33975	*-*-linux-*)
33976	    PS_ARGUMENT="-eo pid,ppid,command"
33977	    PS_ARGUMENT_ARGS="-eo pid,ppid,command"
33978	    ;;
33979
33980	*-*-*bsd*)
33981	    PS_ARGUMENT="-axo pid,ppid,command"
33982	    PS_ARGUMENT_ARGS="-axo pid,ppid,command"
33983	    ;;
33984
33985	*-apple-darwin*)
33986	    PS_ARGUMENT="-aAco pid,ppid,command"
33987	    PS_ARGUMENT_ARGS="-aAo pid,ppid,command"
33988	    ;;
33989
33990	*-pc-cygwin)
33991	    # Cygwin is special-cased in Amanda::Process
33992	    PS_ARGUMENT=CYGWIN
33993	    PS_ARGUMENT_ARGS="-ef"
33994	    ;;
33995
33996	*-*-hpux*)
33997	    # HPUX's 'PS' needs the env var UNIX95 to run in "xpg4" mode
33998	    PS="UNIX95=1 $PS"
33999	    PS_ARGUMENT="-eo pid,ppid,comm"
34000	    PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
34001	    ;;
34002
34003	*)
34004	    for try in \
34005		"-axo pid,ppid,command" \
34006		"-aAco pid,ppid,command" \
34007		"-eo pid,ppid,comm"
34008	    do
34009		ps $try >/dev/null 2>/dev/null
34010		if test $? -eq 0; then
34011		    PS_ARGUMENT="$try"
34012		    break
34013		fi
34014	    done
34015	    for try in \
34016		"-axo pid,ppid,command" \
34017		"-aAo pid,ppid,command" \
34018		"-eo pid,ppid,comm"
34019	    do
34020		ps $try >/dev/null 2>/dev/null
34021		if test $? -eq 0; then
34022		    PS_ARGUMENT_ARGS="$try"
34023		    break
34024		fi
34025	    done
34026	    if test -z "$PS_ARGUMENT" -o -z "$PS_ARGUMENT_ARGS"; then
34027		as_fn_error $? "Can't find ps argument to use." "$LINENO" 5
34028	    fi
34029	    ;;
34030    esac
34031
34032    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS_ARGUMENT and $PS_ARGUMENT_ARGS" >&5
34033$as_echo "$PS_ARGUMENT and $PS_ARGUMENT_ARGS" >&6; }
34034
34035
34036
34037
34038
34039    # Extract the first word of "rpcgen", so it can be a program name with args.
34040set dummy rpcgen; ac_word=$2
34041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34042$as_echo_n "checking for $ac_word... " >&6; }
34043if ${ac_cv_path_RPCGEN+:} false; then :
34044  $as_echo_n "(cached) " >&6
34045else
34046  case $RPCGEN in
34047  [\\/]* | ?:[\\/]*)
34048  ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a path.
34049  ;;
34050  *)
34051  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34052for as_dir in $LOCSYSPATH
34053do
34054  IFS=$as_save_IFS
34055  test -z "$as_dir" && as_dir=.
34056    for ac_exec_ext in '' $ac_executable_extensions; do
34057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34058    ac_cv_path_RPCGEN="$as_dir/$ac_word$ac_exec_ext"
34059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34060    break 2
34061  fi
34062done
34063  done
34064IFS=$as_save_IFS
34065
34066  ;;
34067esac
34068fi
34069RPCGEN=$ac_cv_path_RPCGEN
34070if test -n "$RPCGEN"; then
34071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPCGEN" >&5
34072$as_echo "$RPCGEN" >&6; }
34073else
34074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34075$as_echo "no" >&6; }
34076fi
34077
34078
34079
34080
34081    # Extract the first word of "nc", so it can be a program name with args.
34082set dummy nc; ac_word=$2
34083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34084$as_echo_n "checking for $ac_word... " >&6; }
34085if ${ac_cv_path_NC+:} false; then :
34086  $as_echo_n "(cached) " >&6
34087else
34088  case $NC in
34089  [\\/]* | ?:[\\/]*)
34090  ac_cv_path_NC="$NC" # Let the user override the test with a path.
34091  ;;
34092  *)
34093  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34094for as_dir in $LOCSYSPATH
34095do
34096  IFS=$as_save_IFS
34097  test -z "$as_dir" && as_dir=.
34098    for ac_exec_ext in '' $ac_executable_extensions; do
34099  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34100    ac_cv_path_NC="$as_dir/$ac_word$ac_exec_ext"
34101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34102    break 2
34103  fi
34104done
34105  done
34106IFS=$as_save_IFS
34107
34108  ;;
34109esac
34110fi
34111NC=$ac_cv_path_NC
34112if test -n "$NC"; then
34113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NC" >&5
34114$as_echo "$NC" >&6; }
34115else
34116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34117$as_echo "no" >&6; }
34118fi
34119
34120
34121    # Extract the first word of "nc6", so it can be a program name with args.
34122set dummy nc6; ac_word=$2
34123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34124$as_echo_n "checking for $ac_word... " >&6; }
34125if ${ac_cv_path_NC6+:} false; then :
34126  $as_echo_n "(cached) " >&6
34127else
34128  case $NC6 in
34129  [\\/]* | ?:[\\/]*)
34130  ac_cv_path_NC6="$NC6" # Let the user override the test with a path.
34131  ;;
34132  *)
34133  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34134for as_dir in $LOCSYSPATH
34135do
34136  IFS=$as_save_IFS
34137  test -z "$as_dir" && as_dir=.
34138    for ac_exec_ext in '' $ac_executable_extensions; do
34139  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34140    ac_cv_path_NC6="$as_dir/$ac_word$ac_exec_ext"
34141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34142    break 2
34143  fi
34144done
34145  done
34146IFS=$as_save_IFS
34147
34148  ;;
34149esac
34150fi
34151NC6=$ac_cv_path_NC6
34152if test -n "$NC6"; then
34153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NC6" >&5
34154$as_echo "$NC6" >&6; }
34155else
34156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34157$as_echo "no" >&6; }
34158fi
34159
34160
34161    # Extract the first word of "netcat", so it can be a program name with args.
34162set dummy netcat; ac_word=$2
34163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34164$as_echo_n "checking for $ac_word... " >&6; }
34165if ${ac_cv_path_NETCAT+:} false; then :
34166  $as_echo_n "(cached) " >&6
34167else
34168  case $NETCAT in
34169  [\\/]* | ?:[\\/]*)
34170  ac_cv_path_NETCAT="$NETCAT" # Let the user override the test with a path.
34171  ;;
34172  *)
34173  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34174for as_dir in $LOCSYSPATH
34175do
34176  IFS=$as_save_IFS
34177  test -z "$as_dir" && as_dir=.
34178    for ac_exec_ext in '' $ac_executable_extensions; do
34179  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34180    ac_cv_path_NETCAT="$as_dir/$ac_word$ac_exec_ext"
34181    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34182    break 2
34183  fi
34184done
34185  done
34186IFS=$as_save_IFS
34187
34188  ;;
34189esac
34190fi
34191NETCAT=$ac_cv_path_NETCAT
34192if test -n "$NETCAT"; then
34193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETCAT" >&5
34194$as_echo "$NETCAT" >&6; }
34195else
34196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34197$as_echo "no" >&6; }
34198fi
34199
34200
34201
34202
34203
34204#
34205# Compiler / system characteristics
34206#
34207
34208#
34209# compiler
34210#
34211if test $ac_cv_c_compiler_gnu = yes; then
34212    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
34213$as_echo_n "checking whether $CC needs -traditional... " >&6; }
34214if ${ac_cv_prog_gcc_traditional+:} false; then :
34215  $as_echo_n "(cached) " >&6
34216else
34217    ac_pattern="Autoconf.*'x'"
34218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34219/* end confdefs.h.  */
34220#include <sgtty.h>
34221Autoconf TIOCGETP
34222_ACEOF
34223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34224  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
34225  ac_cv_prog_gcc_traditional=yes
34226else
34227  ac_cv_prog_gcc_traditional=no
34228fi
34229rm -f conftest*
34230
34231
34232  if test $ac_cv_prog_gcc_traditional = no; then
34233    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34234/* end confdefs.h.  */
34235#include <termio.h>
34236Autoconf TCGETA
34237_ACEOF
34238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34239  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
34240  ac_cv_prog_gcc_traditional=yes
34241fi
34242rm -f conftest*
34243
34244  fi
34245fi
34246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
34247$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
34248  if test $ac_cv_prog_gcc_traditional = yes; then
34249    CC="$CC -traditional"
34250  fi
34251fi
34252
34253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
34254$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
34255if ${ac_cv_c_const+:} false; then :
34256  $as_echo_n "(cached) " >&6
34257else
34258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34259/* end confdefs.h.  */
34260
34261int
34262main ()
34263{
34264
34265#ifndef __cplusplus
34266  /* Ultrix mips cc rejects this sort of thing.  */
34267  typedef int charset[2];
34268  const charset cs = { 0, 0 };
34269  /* SunOS 4.1.1 cc rejects this.  */
34270  char const *const *pcpcc;
34271  char **ppc;
34272  /* NEC SVR4.0.2 mips cc rejects this.  */
34273  struct point {int x, y;};
34274  static struct point const zero = {0,0};
34275  /* AIX XL C 1.02.0.0 rejects this.
34276     It does not let you subtract one const X* pointer from another in
34277     an arm of an if-expression whose if-part is not a constant
34278     expression */
34279  const char *g = "string";
34280  pcpcc = &g + (g ? g-g : 0);
34281  /* HPUX 7.0 cc rejects these. */
34282  ++pcpcc;
34283  ppc = (char**) pcpcc;
34284  pcpcc = (char const *const *) ppc;
34285  { /* SCO 3.2v4 cc rejects this sort of thing.  */
34286    char tx;
34287    char *t = &tx;
34288    char const *s = 0 ? (char *) 0 : (char const *) 0;
34289
34290    *t++ = 0;
34291    if (s) return 0;
34292  }
34293  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34294    int x[] = {25, 17};
34295    const int *foo = &x[0];
34296    ++foo;
34297  }
34298  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34299    typedef const int *iptr;
34300    iptr p = 0;
34301    ++p;
34302  }
34303  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
34304       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34305    struct s { int j; const int *ap[3]; } bx;
34306    struct s *b = &bx; b->j = 5;
34307  }
34308  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34309    const int foo = 10;
34310    if (!foo) return 0;
34311  }
34312  return !cs[0] && !zero.x;
34313#endif
34314
34315  ;
34316  return 0;
34317}
34318_ACEOF
34319if ac_fn_c_try_compile "$LINENO"; then :
34320  ac_cv_c_const=yes
34321else
34322  ac_cv_c_const=no
34323fi
34324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34325fi
34326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
34327$as_echo "$ac_cv_c_const" >&6; }
34328if test $ac_cv_c_const = no; then
34329
34330$as_echo "#define const /**/" >>confdefs.h
34331
34332fi
34333
34334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
34335$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
34336if ${ac_cv_c_bigendian+:} false; then :
34337  $as_echo_n "(cached) " >&6
34338else
34339  ac_cv_c_bigendian=unknown
34340    # See if we're dealing with a universal compiler.
34341    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34342/* end confdefs.h.  */
34343#ifndef __APPLE_CC__
34344	       not a universal capable compiler
34345	     #endif
34346	     typedef int dummy;
34347
34348_ACEOF
34349if ac_fn_c_try_compile "$LINENO"; then :
34350
34351	# Check for potential -arch flags.  It is not universal unless
34352	# there are at least two -arch flags with different values.
34353	ac_arch=
34354	ac_prev=
34355	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
34356	 if test -n "$ac_prev"; then
34357	   case $ac_word in
34358	     i?86 | x86_64 | ppc | ppc64)
34359	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
34360		 ac_arch=$ac_word
34361	       else
34362		 ac_cv_c_bigendian=universal
34363		 break
34364	       fi
34365	       ;;
34366	   esac
34367	   ac_prev=
34368	 elif test "x$ac_word" = "x-arch"; then
34369	   ac_prev=arch
34370	 fi
34371       done
34372fi
34373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34374    if test $ac_cv_c_bigendian = unknown; then
34375      # See if sys/param.h defines the BYTE_ORDER macro.
34376      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34377/* end confdefs.h.  */
34378#include <sys/types.h>
34379	     #include <sys/param.h>
34380
34381int
34382main ()
34383{
34384#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
34385		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
34386		     && LITTLE_ENDIAN)
34387	      bogus endian macros
34388	     #endif
34389
34390  ;
34391  return 0;
34392}
34393_ACEOF
34394if ac_fn_c_try_compile "$LINENO"; then :
34395  # It does; now see whether it defined to BIG_ENDIAN or not.
34396	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34397/* end confdefs.h.  */
34398#include <sys/types.h>
34399		#include <sys/param.h>
34400
34401int
34402main ()
34403{
34404#if BYTE_ORDER != BIG_ENDIAN
34405		 not big endian
34406		#endif
34407
34408  ;
34409  return 0;
34410}
34411_ACEOF
34412if ac_fn_c_try_compile "$LINENO"; then :
34413  ac_cv_c_bigendian=yes
34414else
34415  ac_cv_c_bigendian=no
34416fi
34417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34418fi
34419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34420    fi
34421    if test $ac_cv_c_bigendian = unknown; then
34422      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
34423      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34424/* end confdefs.h.  */
34425#include <limits.h>
34426
34427int
34428main ()
34429{
34430#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
34431	      bogus endian macros
34432	     #endif
34433
34434  ;
34435  return 0;
34436}
34437_ACEOF
34438if ac_fn_c_try_compile "$LINENO"; then :
34439  # It does; now see whether it defined to _BIG_ENDIAN or not.
34440	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34441/* end confdefs.h.  */
34442#include <limits.h>
34443
34444int
34445main ()
34446{
34447#ifndef _BIG_ENDIAN
34448		 not big endian
34449		#endif
34450
34451  ;
34452  return 0;
34453}
34454_ACEOF
34455if ac_fn_c_try_compile "$LINENO"; then :
34456  ac_cv_c_bigendian=yes
34457else
34458  ac_cv_c_bigendian=no
34459fi
34460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34461fi
34462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34463    fi
34464    if test $ac_cv_c_bigendian = unknown; then
34465      # Compile a test program.
34466      if test "$cross_compiling" = yes; then :
34467  # Try to guess by grepping values from an object file.
34468	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34469/* end confdefs.h.  */
34470short int ascii_mm[] =
34471		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
34472		short int ascii_ii[] =
34473		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
34474		int use_ascii (int i) {
34475		  return ascii_mm[i] + ascii_ii[i];
34476		}
34477		short int ebcdic_ii[] =
34478		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
34479		short int ebcdic_mm[] =
34480		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
34481		int use_ebcdic (int i) {
34482		  return ebcdic_mm[i] + ebcdic_ii[i];
34483		}
34484		extern int foo;
34485
34486int
34487main ()
34488{
34489return use_ascii (foo) == use_ebcdic (foo);
34490  ;
34491  return 0;
34492}
34493_ACEOF
34494if ac_fn_c_try_compile "$LINENO"; then :
34495  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
34496	      ac_cv_c_bigendian=yes
34497	    fi
34498	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
34499	      if test "$ac_cv_c_bigendian" = unknown; then
34500		ac_cv_c_bigendian=no
34501	      else
34502		# finding both strings is unlikely to happen, but who knows?
34503		ac_cv_c_bigendian=unknown
34504	      fi
34505	    fi
34506fi
34507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34508else
34509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34510/* end confdefs.h.  */
34511$ac_includes_default
34512int
34513main ()
34514{
34515
34516	     /* Are we little or big endian?  From Harbison&Steele.  */
34517	     union
34518	     {
34519	       long int l;
34520	       char c[sizeof (long int)];
34521	     } u;
34522	     u.l = 1;
34523	     return u.c[sizeof (long int) - 1] == 1;
34524
34525  ;
34526  return 0;
34527}
34528_ACEOF
34529if ac_fn_c_try_run "$LINENO"; then :
34530  ac_cv_c_bigendian=no
34531else
34532  ac_cv_c_bigendian=yes
34533fi
34534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34535  conftest.$ac_objext conftest.beam conftest.$ac_ext
34536fi
34537
34538    fi
34539fi
34540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
34541$as_echo "$ac_cv_c_bigendian" >&6; }
34542 case $ac_cv_c_bigendian in #(
34543   yes)
34544     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
34545;; #(
34546   no)
34547      ;; #(
34548   universal)
34549
34550$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
34551
34552     ;; #(
34553   *)
34554     as_fn_error $? "unknown endianness
34555 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
34556 esac
34557
34558
34559# GCC_COMPILER is needed in the gnulib Makefile to silence errors
34560 if test "x$GCC" = "xyes"; then
34561  GCC_COMPILER_TRUE=
34562  GCC_COMPILER_FALSE='#'
34563else
34564  GCC_COMPILER_TRUE='#'
34565  GCC_COMPILER_FALSE=
34566fi
34567
34568
34569#
34570# Warnings
34571#
34572
34573
34574
34575
34576    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wparentheses" >&5
34577$as_echo_n "checking for gcc flag -Wparentheses... " >&6; }
34578    if test "x$GCC" = "xyes"; then
34579		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
34580           $CC -v --help 2>&1) |
34581         $EGREP -- '[^0-9A-Za-z]-Wparentheses[^0-9A-Za-z]' 2>&1 > /dev/null
34582		if test $? -eq 0; then
34583	    found_warning=yes
34584	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34585$as_echo "yes" >&6; }
34586	else
34587	    found_warning=no
34588	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34589$as_echo "no" >&6; }
34590	fi
34591    else
34592	found_warning=no
34593	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
34594$as_echo "no (not using gcc)" >&6; }
34595    fi
34596
34597    if test x"$found_warning" = x"yes"; then
34598	AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
34599
34600
34601    else
34602	:
34603    fi
34604
34605
34606
34607
34608
34609
34610    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wdeclaration-after-statement" >&5
34611$as_echo_n "checking for gcc flag -Wdeclaration-after-statement... " >&6; }
34612    if test "x$GCC" = "xyes"; then
34613		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
34614           $CC -v --help 2>&1) |
34615         $EGREP -- '[^0-9A-Za-z]-Wdeclaration-after-statement[^0-9A-Za-z]' 2>&1 > /dev/null
34616		if test $? -eq 0; then
34617	    found_warning=yes
34618	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34619$as_echo "yes" >&6; }
34620	else
34621	    found_warning=no
34622	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34623$as_echo "no" >&6; }
34624	fi
34625    else
34626	found_warning=no
34627	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
34628$as_echo "no (not using gcc)" >&6; }
34629    fi
34630
34631    if test x"$found_warning" = x"yes"; then
34632	AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
34633
34634
34635    else
34636	:
34637    fi
34638
34639
34640
34641
34642
34643
34644    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wmissing-prototypes" >&5
34645$as_echo_n "checking for gcc flag -Wmissing-prototypes... " >&6; }
34646    if test "x$GCC" = "xyes"; then
34647		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
34648           $CC -v --help 2>&1) |
34649         $EGREP -- '[^0-9A-Za-z]-Wmissing-prototypes[^0-9A-Za-z]' 2>&1 > /dev/null
34650		if test $? -eq 0; then
34651	    found_warning=yes
34652	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34653$as_echo "yes" >&6; }
34654	else
34655	    found_warning=no
34656	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34657$as_echo "no" >&6; }
34658	fi
34659    else
34660	found_warning=no
34661	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
34662$as_echo "no (not using gcc)" >&6; }
34663    fi
34664
34665    if test x"$found_warning" = x"yes"; then
34666	AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
34667
34668
34669    else
34670	:
34671    fi
34672
34673
34674
34675
34676
34677
34678    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wstrict-prototypes" >&5
34679$as_echo_n "checking for gcc flag -Wstrict-prototypes... " >&6; }
34680    if test "x$GCC" = "xyes"; then
34681		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
34682           $CC -v --help 2>&1) |
34683         $EGREP -- '[^0-9A-Za-z]-Wstrict-prototypes[^0-9A-Za-z]' 2>&1 > /dev/null
34684		if test $? -eq 0; then
34685	    found_warning=yes
34686	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34687$as_echo "yes" >&6; }
34688	else
34689	    found_warning=no
34690	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34691$as_echo "no" >&6; }
34692	fi
34693    else
34694	found_warning=no
34695	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
34696$as_echo "no (not using gcc)" >&6; }
34697    fi
34698
34699    if test x"$found_warning" = x"yes"; then
34700	AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
34701
34702
34703    else
34704	:
34705    fi
34706
34707
34708
34709
34710
34711
34712    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wmissing-declarations" >&5
34713$as_echo_n "checking for gcc flag -Wmissing-declarations... " >&6; }
34714    if test "x$GCC" = "xyes"; then
34715		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
34716           $CC -v --help 2>&1) |
34717         $EGREP -- '[^0-9A-Za-z]-Wmissing-declarations[^0-9A-Za-z]' 2>&1 > /dev/null
34718		if test $? -eq 0; then
34719	    found_warning=yes
34720	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34721$as_echo "yes" >&6; }
34722	else
34723	    found_warning=no
34724	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34725$as_echo "no" >&6; }
34726	fi
34727    else
34728	found_warning=no
34729	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
34730$as_echo "no (not using gcc)" >&6; }
34731    fi
34732
34733    if test x"$found_warning" = x"yes"; then
34734	AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
34735
34736
34737    else
34738	:
34739    fi
34740
34741
34742
34743
34744
34745
34746    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wformat" >&5
34747$as_echo_n "checking for gcc flag -Wformat... " >&6; }
34748    if test "x$GCC" = "xyes"; then
34749		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
34750           $CC -v --help 2>&1) |
34751         $EGREP -- '[^0-9A-Za-z]-Wformat[^0-9A-Za-z]' 2>&1 > /dev/null
34752		if test $? -eq 0; then
34753	    found_warning=yes
34754	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34755$as_echo "yes" >&6; }
34756	else
34757	    found_warning=no
34758	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34759$as_echo "no" >&6; }
34760	fi
34761    else
34762	found_warning=no
34763	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
34764$as_echo "no (not using gcc)" >&6; }
34765    fi
34766
34767    if test x"$found_warning" = x"yes"; then
34768	AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
34769
34770
34771    else
34772	:
34773    fi
34774
34775
34776
34777
34778
34779
34780    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wformat-security" >&5
34781$as_echo_n "checking for gcc flag -Wformat-security... " >&6; }
34782    if test "x$GCC" = "xyes"; then
34783		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
34784           $CC -v --help 2>&1) |
34785         $EGREP -- '[^0-9A-Za-z]-Wformat-security[^0-9A-Za-z]' 2>&1 > /dev/null
34786		if test $? -eq 0; then
34787	    found_warning=yes
34788	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34789$as_echo "yes" >&6; }
34790	else
34791	    found_warning=no
34792	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34793$as_echo "no" >&6; }
34794	fi
34795    else
34796	found_warning=no
34797	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
34798$as_echo "no (not using gcc)" >&6; }
34799    fi
34800
34801    if test x"$found_warning" = x"yes"; then
34802	AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat-security"
34803
34804
34805    else
34806	:
34807    fi
34808
34809
34810
34811
34812
34813
34814    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wsign-compare" >&5
34815$as_echo_n "checking for gcc flag -Wsign-compare... " >&6; }
34816    if test "x$GCC" = "xyes"; then
34817		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
34818           $CC -v --help 2>&1) |
34819         $EGREP -- '[^0-9A-Za-z]-Wsign-compare[^0-9A-Za-z]' 2>&1 > /dev/null
34820		if test $? -eq 0; then
34821	    found_warning=yes
34822	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34823$as_echo "yes" >&6; }
34824	else
34825	    found_warning=no
34826	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34827$as_echo "no" >&6; }
34828	fi
34829    else
34830	found_warning=no
34831	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
34832$as_echo "no (not using gcc)" >&6; }
34833    fi
34834
34835    if test x"$found_warning" = x"yes"; then
34836	AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
34837
34838
34839    else
34840	:
34841    fi
34842
34843
34844
34845
34846
34847
34848    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wfloat-equal" >&5
34849$as_echo_n "checking for gcc flag -Wfloat-equal... " >&6; }
34850    if test "x$GCC" = "xyes"; then
34851		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
34852           $CC -v --help 2>&1) |
34853         $EGREP -- '[^0-9A-Za-z]-Wfloat-equal[^0-9A-Za-z]' 2>&1 > /dev/null
34854		if test $? -eq 0; then
34855	    found_warning=yes
34856	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34857$as_echo "yes" >&6; }
34858	else
34859	    found_warning=no
34860	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34861$as_echo "no" >&6; }
34862	fi
34863    else
34864	found_warning=no
34865	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
34866$as_echo "no (not using gcc)" >&6; }
34867    fi
34868
34869    if test x"$found_warning" = x"yes"; then
34870	AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
34871
34872
34873    else
34874	:
34875    fi
34876
34877
34878
34879
34880
34881
34882    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wold-style-definition" >&5
34883$as_echo_n "checking for gcc flag -Wold-style-definition... " >&6; }
34884    if test "x$GCC" = "xyes"; then
34885		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
34886           $CC -v --help 2>&1) |
34887         $EGREP -- '[^0-9A-Za-z]-Wold-style-definition[^0-9A-Za-z]' 2>&1 > /dev/null
34888		if test $? -eq 0; then
34889	    found_warning=yes
34890	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34891$as_echo "yes" >&6; }
34892	else
34893	    found_warning=no
34894	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34895$as_echo "no" >&6; }
34896	fi
34897    else
34898	found_warning=no
34899	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
34900$as_echo "no (not using gcc)" >&6; }
34901    fi
34902
34903    if test x"$found_warning" = x"yes"; then
34904	AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
34905
34906
34907    else
34908	:
34909    fi
34910
34911
34912
34913    # test for -W'warning', then add the 'no-' version.
34914
34915
34916
34917    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wstrict-aliasing" >&5
34918$as_echo_n "checking for gcc flag -Wstrict-aliasing... " >&6; }
34919    if test "x$GCC" = "xyes"; then
34920		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
34921           $CC -v --help 2>&1) |
34922         $EGREP -- '[^0-9A-Za-z]-Wstrict-aliasing[^0-9A-Za-z]' 2>&1 > /dev/null
34923		if test $? -eq 0; then
34924	    found_warning=yes
34925	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34926$as_echo "yes" >&6; }
34927	else
34928	    found_warning=no
34929	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34930$as_echo "no" >&6; }
34931	fi
34932    else
34933	found_warning=no
34934	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
34935$as_echo "no (not using gcc)" >&6; }
34936    fi
34937
34938    if test x"$found_warning" = x"yes"; then
34939	AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
34940
34941
34942    else
34943	:
34944    fi
34945
34946
34947
34948    # test for -W'warning', then add the 'no-' version.
34949
34950
34951
34952    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wunknown-pragmas" >&5
34953$as_echo_n "checking for gcc flag -Wunknown-pragmas... " >&6; }
34954    if test "x$GCC" = "xyes"; then
34955		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
34956           $CC -v --help 2>&1) |
34957         $EGREP -- '[^0-9A-Za-z]-Wunknown-pragmas[^0-9A-Za-z]' 2>&1 > /dev/null
34958		if test $? -eq 0; then
34959	    found_warning=yes
34960	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34961$as_echo "yes" >&6; }
34962	else
34963	    found_warning=no
34964	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34965$as_echo "no" >&6; }
34966	fi
34967    else
34968	found_warning=no
34969	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
34970$as_echo "no (not using gcc)" >&6; }
34971    fi
34972
34973    if test x"$found_warning" = x"yes"; then
34974	AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
34975
34976
34977    else
34978	:
34979    fi
34980
34981
34982
34983    # test for -msse4.2
34984
34985
34986
34987    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -msse4.2" >&5
34988$as_echo_n "checking for gcc flag -msse4.2... " >&6; }
34989    if test "x$GCC" = "xyes"; then
34990		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
34991           $CC -v --help 2>&1) |
34992         $EGREP -- '[^0-9A-Za-z]-msse4.2[^0-9A-Za-z]' 2>&1 > /dev/null
34993		if test $? -eq 0; then
34994	    found_warning=yes
34995	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34996$as_echo "yes" >&6; }
34997	else
34998	    found_warning=no
34999	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35000$as_echo "no" >&6; }
35001	fi
35002    else
35003	found_warning=no
35004	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
35005$as_echo "no (not using gcc)" >&6; }
35006    fi
35007
35008    if test x"$found_warning" = x"yes"; then
35009	SSE42_CFLAGS=-msse4.2
35010
35011    else
35012	:
35013    fi
35014
35015
35016
35017
35018    # Check whether --enable-werror was given.
35019if test "${enable_werror+set}" = set; then :
35020  enableval=$enable_werror;
35021	    case "$enableval" in
35022	    "" | y | ye | yes)
35023
35024
35025
35026
35027    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Werror" >&5
35028$as_echo_n "checking for gcc flag -Werror... " >&6; }
35029    if test "x$GCC" = "xyes"; then
35030		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
35031           $CC -v --help 2>&1) |
35032         $EGREP -- '[^0-9A-Za-z]-Werror[^0-9A-Za-z]' 2>&1 > /dev/null
35033		if test $? -eq 0; then
35034	    found_warning=yes
35035	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35036$as_echo "yes" >&6; }
35037	else
35038	    found_warning=no
35039	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35040$as_echo "no" >&6; }
35041	fi
35042    else
35043	found_warning=no
35044	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
35045$as_echo "no (not using gcc)" >&6; }
35046    fi
35047
35048    if test x"$found_warning" = x"yes"; then
35049	AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Werror"
35050
35051
35052    else
35053	:
35054    fi
35055
35056
35057		;;
35058	    esac
35059
35060fi
35061
35062
35063
35064    # Check whether --enable-swig-error was given.
35065if test "${enable_swig_error+set}" = set; then :
35066  enableval=$enable_swig_error;
35067	    case "$enableval" in
35068	    "" | y | ye | yes)
35069		AMANDA_SWIG_PERL_CFLAGS="-Werror -Wno-deprecated-declarations"
35070		;;
35071	    *n | no)
35072		AMANDA_SWIG_PERL_CFLAGS=
35073		;;
35074	    esac
35075
35076fi
35077
35078
35079
35080
35081#
35082# Libtool
35083#
35084case `pwd` in
35085  *\ * | *\	*)
35086    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
35087$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
35088esac
35089
35090
35091
35092macro_version='2.4.6'
35093macro_revision='2.4.6'
35094
35095
35096
35097
35098
35099
35100
35101
35102
35103
35104
35105
35106
35107ltmain=$ac_aux_dir/ltmain.sh
35108
35109# Backslashify metacharacters that are still active within
35110# double-quoted strings.
35111sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
35112
35113# Same as above, but do not quote variable references.
35114double_quote_subst='s/\(["`\\]\)/\\\1/g'
35115
35116# Sed substitution to delay expansion of an escaped shell variable in a
35117# double_quote_subst'ed string.
35118delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
35119
35120# Sed substitution to delay expansion of an escaped single quote.
35121delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
35122
35123# Sed substitution to avoid accidental globbing in evaled expressions
35124no_glob_subst='s/\*/\\\*/g'
35125
35126ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35127ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
35128ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
35129
35130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
35131$as_echo_n "checking how to print strings... " >&6; }
35132# Test print first, because it will be a builtin if present.
35133if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
35134   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
35135  ECHO='print -r --'
35136elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
35137  ECHO='printf %s\n'
35138else
35139  # Use this function as a fallback that always works.
35140  func_fallback_echo ()
35141  {
35142    eval 'cat <<_LTECHO_EOF
35143$1
35144_LTECHO_EOF'
35145  }
35146  ECHO='func_fallback_echo'
35147fi
35148
35149# func_echo_all arg...
35150# Invoke $ECHO with all args, space-separated.
35151func_echo_all ()
35152{
35153    $ECHO ""
35154}
35155
35156case $ECHO in
35157  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
35158$as_echo "printf" >&6; } ;;
35159  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
35160$as_echo "print -r" >&6; } ;;
35161  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
35162$as_echo "cat" >&6; } ;;
35163esac
35164
35165
35166
35167
35168
35169
35170
35171
35172
35173
35174
35175
35176
35177
35178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
35179$as_echo_n "checking for a sed that does not truncate output... " >&6; }
35180if ${ac_cv_path_SED+:} false; then :
35181  $as_echo_n "(cached) " >&6
35182else
35183            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
35184     for ac_i in 1 2 3 4 5 6 7; do
35185       ac_script="$ac_script$as_nl$ac_script"
35186     done
35187     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
35188     { ac_script=; unset ac_script;}
35189     if test -z "$SED"; then
35190  ac_path_SED_found=false
35191  # Loop through the user's path and test for each of PROGNAME-LIST
35192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35193for as_dir in $PATH
35194do
35195  IFS=$as_save_IFS
35196  test -z "$as_dir" && as_dir=.
35197    for ac_prog in sed gsed; do
35198    for ac_exec_ext in '' $ac_executable_extensions; do
35199      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
35200      as_fn_executable_p "$ac_path_SED" || continue
35201# Check for GNU ac_path_SED and select it if it is found.
35202  # Check for GNU $ac_path_SED
35203case `"$ac_path_SED" --version 2>&1` in
35204*GNU*)
35205  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
35206*)
35207  ac_count=0
35208  $as_echo_n 0123456789 >"conftest.in"
35209  while :
35210  do
35211    cat "conftest.in" "conftest.in" >"conftest.tmp"
35212    mv "conftest.tmp" "conftest.in"
35213    cp "conftest.in" "conftest.nl"
35214    $as_echo '' >> "conftest.nl"
35215    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
35216    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
35217    as_fn_arith $ac_count + 1 && ac_count=$as_val
35218    if test $ac_count -gt ${ac_path_SED_max-0}; then
35219      # Best one so far, save it but keep looking for a better one
35220      ac_cv_path_SED="$ac_path_SED"
35221      ac_path_SED_max=$ac_count
35222    fi
35223    # 10*(2^10) chars as input seems more than enough
35224    test $ac_count -gt 10 && break
35225  done
35226  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
35227esac
35228
35229      $ac_path_SED_found && break 3
35230    done
35231  done
35232  done
35233IFS=$as_save_IFS
35234  if test -z "$ac_cv_path_SED"; then
35235    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
35236  fi
35237else
35238  ac_cv_path_SED=$SED
35239fi
35240
35241fi
35242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
35243$as_echo "$ac_cv_path_SED" >&6; }
35244 SED="$ac_cv_path_SED"
35245  rm -f conftest.sed
35246
35247test -z "$SED" && SED=sed
35248Xsed="$SED -e 1s/^X//"
35249
35250
35251
35252
35253
35254
35255
35256
35257
35258
35259
35260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
35261$as_echo_n "checking for fgrep... " >&6; }
35262if ${ac_cv_path_FGREP+:} false; then :
35263  $as_echo_n "(cached) " >&6
35264else
35265  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
35266   then ac_cv_path_FGREP="$GREP -F"
35267   else
35268     if test -z "$FGREP"; then
35269  ac_path_FGREP_found=false
35270  # Loop through the user's path and test for each of PROGNAME-LIST
35271  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35272for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
35273do
35274  IFS=$as_save_IFS
35275  test -z "$as_dir" && as_dir=.
35276    for ac_prog in fgrep; do
35277    for ac_exec_ext in '' $ac_executable_extensions; do
35278      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
35279      as_fn_executable_p "$ac_path_FGREP" || continue
35280# Check for GNU ac_path_FGREP and select it if it is found.
35281  # Check for GNU $ac_path_FGREP
35282case `"$ac_path_FGREP" --version 2>&1` in
35283*GNU*)
35284  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
35285*)
35286  ac_count=0
35287  $as_echo_n 0123456789 >"conftest.in"
35288  while :
35289  do
35290    cat "conftest.in" "conftest.in" >"conftest.tmp"
35291    mv "conftest.tmp" "conftest.in"
35292    cp "conftest.in" "conftest.nl"
35293    $as_echo 'FGREP' >> "conftest.nl"
35294    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
35295    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
35296    as_fn_arith $ac_count + 1 && ac_count=$as_val
35297    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
35298      # Best one so far, save it but keep looking for a better one
35299      ac_cv_path_FGREP="$ac_path_FGREP"
35300      ac_path_FGREP_max=$ac_count
35301    fi
35302    # 10*(2^10) chars as input seems more than enough
35303    test $ac_count -gt 10 && break
35304  done
35305  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
35306esac
35307
35308      $ac_path_FGREP_found && break 3
35309    done
35310  done
35311  done
35312IFS=$as_save_IFS
35313  if test -z "$ac_cv_path_FGREP"; then
35314    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
35315  fi
35316else
35317  ac_cv_path_FGREP=$FGREP
35318fi
35319
35320   fi
35321fi
35322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
35323$as_echo "$ac_cv_path_FGREP" >&6; }
35324 FGREP="$ac_cv_path_FGREP"
35325
35326
35327test -z "$GREP" && GREP=grep
35328
35329
35330
35331
35332
35333
35334
35335
35336
35337
35338
35339
35340
35341
35342
35343
35344
35345
35346
35347# Check whether --with-gnu-ld was given.
35348if test "${with_gnu_ld+set}" = set; then :
35349  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
35350else
35351  with_gnu_ld=no
35352fi
35353
35354ac_prog=ld
35355if test yes = "$GCC"; then
35356  # Check if gcc -print-prog-name=ld gives a path.
35357  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
35358$as_echo_n "checking for ld used by $CC... " >&6; }
35359  case $host in
35360  *-*-mingw*)
35361    # gcc leaves a trailing carriage return, which upsets mingw
35362    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
35363  *)
35364    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
35365  esac
35366  case $ac_prog in
35367    # Accept absolute paths.
35368    [\\/]* | ?:[\\/]*)
35369      re_direlt='/[^/][^/]*/\.\./'
35370      # Canonicalize the pathname of ld
35371      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
35372      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
35373	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
35374      done
35375      test -z "$LD" && LD=$ac_prog
35376      ;;
35377  "")
35378    # If it fails, then pretend we aren't using GCC.
35379    ac_prog=ld
35380    ;;
35381  *)
35382    # If it is relative, then search for the first ld in PATH.
35383    with_gnu_ld=unknown
35384    ;;
35385  esac
35386elif test yes = "$with_gnu_ld"; then
35387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
35388$as_echo_n "checking for GNU ld... " >&6; }
35389else
35390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
35391$as_echo_n "checking for non-GNU ld... " >&6; }
35392fi
35393if ${lt_cv_path_LD+:} false; then :
35394  $as_echo_n "(cached) " >&6
35395else
35396  if test -z "$LD"; then
35397  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
35398  for ac_dir in $PATH; do
35399    IFS=$lt_save_ifs
35400    test -z "$ac_dir" && ac_dir=.
35401    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
35402      lt_cv_path_LD=$ac_dir/$ac_prog
35403      # Check to see if the program is GNU ld.  I'd rather use --version,
35404      # but apparently some variants of GNU ld only accept -v.
35405      # Break only if it was the GNU/non-GNU ld that we prefer.
35406      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
35407      *GNU* | *'with BFD'*)
35408	test no != "$with_gnu_ld" && break
35409	;;
35410      *)
35411	test yes != "$with_gnu_ld" && break
35412	;;
35413      esac
35414    fi
35415  done
35416  IFS=$lt_save_ifs
35417else
35418  lt_cv_path_LD=$LD # Let the user override the test with a path.
35419fi
35420fi
35421
35422LD=$lt_cv_path_LD
35423if test -n "$LD"; then
35424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
35425$as_echo "$LD" >&6; }
35426else
35427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35428$as_echo "no" >&6; }
35429fi
35430test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
35431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
35432$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
35433if ${lt_cv_prog_gnu_ld+:} false; then :
35434  $as_echo_n "(cached) " >&6
35435else
35436  # I'd rather use --version here, but apparently some GNU lds only accept -v.
35437case `$LD -v 2>&1 </dev/null` in
35438*GNU* | *'with BFD'*)
35439  lt_cv_prog_gnu_ld=yes
35440  ;;
35441*)
35442  lt_cv_prog_gnu_ld=no
35443  ;;
35444esac
35445fi
35446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
35447$as_echo "$lt_cv_prog_gnu_ld" >&6; }
35448with_gnu_ld=$lt_cv_prog_gnu_ld
35449
35450
35451
35452
35453
35454
35455
35456
35457
35458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
35459$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
35460if ${lt_cv_path_NM+:} false; then :
35461  $as_echo_n "(cached) " >&6
35462else
35463  if test -n "$NM"; then
35464  # Let the user override the test.
35465  lt_cv_path_NM=$NM
35466else
35467  lt_nm_to_check=${ac_tool_prefix}nm
35468  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
35469    lt_nm_to_check="$lt_nm_to_check nm"
35470  fi
35471  for lt_tmp_nm in $lt_nm_to_check; do
35472    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
35473    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
35474      IFS=$lt_save_ifs
35475      test -z "$ac_dir" && ac_dir=.
35476      tmp_nm=$ac_dir/$lt_tmp_nm
35477      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
35478	# Check to see if the nm accepts a BSD-compat flag.
35479	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
35480	#   nm: unknown option "B" ignored
35481	# Tru64's nm complains that /dev/null is an invalid object file
35482	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
35483	case $build_os in
35484	mingw*) lt_bad_file=conftest.nm/nofile ;;
35485	*) lt_bad_file=/dev/null ;;
35486	esac
35487	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
35488	*$lt_bad_file* | *'Invalid file or object type'*)
35489	  lt_cv_path_NM="$tmp_nm -B"
35490	  break 2
35491	  ;;
35492	*)
35493	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
35494	  */dev/null*)
35495	    lt_cv_path_NM="$tmp_nm -p"
35496	    break 2
35497	    ;;
35498	  *)
35499	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
35500	    continue # so that we can try to find one that supports BSD flags
35501	    ;;
35502	  esac
35503	  ;;
35504	esac
35505      fi
35506    done
35507    IFS=$lt_save_ifs
35508  done
35509  : ${lt_cv_path_NM=no}
35510fi
35511fi
35512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
35513$as_echo "$lt_cv_path_NM" >&6; }
35514if test no != "$lt_cv_path_NM"; then
35515  NM=$lt_cv_path_NM
35516else
35517  # Didn't find any BSD compatible name lister, look for dumpbin.
35518  if test -n "$DUMPBIN"; then :
35519    # Let the user override the test.
35520  else
35521    if test -n "$ac_tool_prefix"; then
35522  for ac_prog in dumpbin "link -dump"
35523  do
35524    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
35525set dummy $ac_tool_prefix$ac_prog; ac_word=$2
35526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35527$as_echo_n "checking for $ac_word... " >&6; }
35528if ${ac_cv_prog_DUMPBIN+:} false; then :
35529  $as_echo_n "(cached) " >&6
35530else
35531  if test -n "$DUMPBIN"; then
35532  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
35533else
35534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35535for as_dir in $PATH
35536do
35537  IFS=$as_save_IFS
35538  test -z "$as_dir" && as_dir=.
35539    for ac_exec_ext in '' $ac_executable_extensions; do
35540  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35541    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
35542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35543    break 2
35544  fi
35545done
35546  done
35547IFS=$as_save_IFS
35548
35549fi
35550fi
35551DUMPBIN=$ac_cv_prog_DUMPBIN
35552if test -n "$DUMPBIN"; then
35553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
35554$as_echo "$DUMPBIN" >&6; }
35555else
35556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35557$as_echo "no" >&6; }
35558fi
35559
35560
35561    test -n "$DUMPBIN" && break
35562  done
35563fi
35564if test -z "$DUMPBIN"; then
35565  ac_ct_DUMPBIN=$DUMPBIN
35566  for ac_prog in dumpbin "link -dump"
35567do
35568  # Extract the first word of "$ac_prog", so it can be a program name with args.
35569set dummy $ac_prog; ac_word=$2
35570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35571$as_echo_n "checking for $ac_word... " >&6; }
35572if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
35573  $as_echo_n "(cached) " >&6
35574else
35575  if test -n "$ac_ct_DUMPBIN"; then
35576  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
35577else
35578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35579for as_dir in $PATH
35580do
35581  IFS=$as_save_IFS
35582  test -z "$as_dir" && as_dir=.
35583    for ac_exec_ext in '' $ac_executable_extensions; do
35584  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35585    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
35586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35587    break 2
35588  fi
35589done
35590  done
35591IFS=$as_save_IFS
35592
35593fi
35594fi
35595ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
35596if test -n "$ac_ct_DUMPBIN"; then
35597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
35598$as_echo "$ac_ct_DUMPBIN" >&6; }
35599else
35600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35601$as_echo "no" >&6; }
35602fi
35603
35604
35605  test -n "$ac_ct_DUMPBIN" && break
35606done
35607
35608  if test "x$ac_ct_DUMPBIN" = x; then
35609    DUMPBIN=":"
35610  else
35611    case $cross_compiling:$ac_tool_warned in
35612yes:)
35613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
35614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
35615ac_tool_warned=yes ;;
35616esac
35617    DUMPBIN=$ac_ct_DUMPBIN
35618  fi
35619fi
35620
35621    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
35622    *COFF*)
35623      DUMPBIN="$DUMPBIN -symbols -headers"
35624      ;;
35625    *)
35626      DUMPBIN=:
35627      ;;
35628    esac
35629  fi
35630
35631  if test : != "$DUMPBIN"; then
35632    NM=$DUMPBIN
35633  fi
35634fi
35635test -z "$NM" && NM=nm
35636
35637
35638
35639
35640
35641
35642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
35643$as_echo_n "checking the name lister ($NM) interface... " >&6; }
35644if ${lt_cv_nm_interface+:} false; then :
35645  $as_echo_n "(cached) " >&6
35646else
35647  lt_cv_nm_interface="BSD nm"
35648  echo "int some_variable = 0;" > conftest.$ac_ext
35649  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
35650  (eval "$ac_compile" 2>conftest.err)
35651  cat conftest.err >&5
35652  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
35653  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
35654  cat conftest.err >&5
35655  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
35656  cat conftest.out >&5
35657  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
35658    lt_cv_nm_interface="MS dumpbin"
35659  fi
35660  rm -f conftest*
35661fi
35662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
35663$as_echo "$lt_cv_nm_interface" >&6; }
35664
35665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
35666$as_echo_n "checking whether ln -s works... " >&6; }
35667LN_S=$as_ln_s
35668if test "$LN_S" = "ln -s"; then
35669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35670$as_echo "yes" >&6; }
35671else
35672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
35673$as_echo "no, using $LN_S" >&6; }
35674fi
35675
35676# find the maximum length of command line arguments
35677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
35678$as_echo_n "checking the maximum length of command line arguments... " >&6; }
35679if ${lt_cv_sys_max_cmd_len+:} false; then :
35680  $as_echo_n "(cached) " >&6
35681else
35682    i=0
35683  teststring=ABCD
35684
35685  case $build_os in
35686  msdosdjgpp*)
35687    # On DJGPP, this test can blow up pretty badly due to problems in libc
35688    # (any single argument exceeding 2000 bytes causes a buffer overrun
35689    # during glob expansion).  Even if it were fixed, the result of this
35690    # check would be larger than it should be.
35691    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
35692    ;;
35693
35694  gnu*)
35695    # Under GNU Hurd, this test is not required because there is
35696    # no limit to the length of command line arguments.
35697    # Libtool will interpret -1 as no limit whatsoever
35698    lt_cv_sys_max_cmd_len=-1;
35699    ;;
35700
35701  cygwin* | mingw* | cegcc*)
35702    # On Win9x/ME, this test blows up -- it succeeds, but takes
35703    # about 5 minutes as the teststring grows exponentially.
35704    # Worse, since 9x/ME are not pre-emptively multitasking,
35705    # you end up with a "frozen" computer, even though with patience
35706    # the test eventually succeeds (with a max line length of 256k).
35707    # Instead, let's just punt: use the minimum linelength reported by
35708    # all of the supported platforms: 8192 (on NT/2K/XP).
35709    lt_cv_sys_max_cmd_len=8192;
35710    ;;
35711
35712  mint*)
35713    # On MiNT this can take a long time and run out of memory.
35714    lt_cv_sys_max_cmd_len=8192;
35715    ;;
35716
35717  amigaos*)
35718    # On AmigaOS with pdksh, this test takes hours, literally.
35719    # So we just punt and use a minimum line length of 8192.
35720    lt_cv_sys_max_cmd_len=8192;
35721    ;;
35722
35723  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
35724    # This has been around since 386BSD, at least.  Likely further.
35725    if test -x /sbin/sysctl; then
35726      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
35727    elif test -x /usr/sbin/sysctl; then
35728      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
35729    else
35730      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
35731    fi
35732    # And add a safety zone
35733    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
35734    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
35735    ;;
35736
35737  interix*)
35738    # We know the value 262144 and hardcode it with a safety zone (like BSD)
35739    lt_cv_sys_max_cmd_len=196608
35740    ;;
35741
35742  os2*)
35743    # The test takes a long time on OS/2.
35744    lt_cv_sys_max_cmd_len=8192
35745    ;;
35746
35747  osf*)
35748    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
35749    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
35750    # nice to cause kernel panics so lets avoid the loop below.
35751    # First set a reasonable default.
35752    lt_cv_sys_max_cmd_len=16384
35753    #
35754    if test -x /sbin/sysconfig; then
35755      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
35756        *1*) lt_cv_sys_max_cmd_len=-1 ;;
35757      esac
35758    fi
35759    ;;
35760  sco3.2v5*)
35761    lt_cv_sys_max_cmd_len=102400
35762    ;;
35763  sysv5* | sco5v6* | sysv4.2uw2*)
35764    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
35765    if test -n "$kargmax"; then
35766      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
35767    else
35768      lt_cv_sys_max_cmd_len=32768
35769    fi
35770    ;;
35771  *)
35772    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
35773    if test -n "$lt_cv_sys_max_cmd_len" && \
35774       test undefined != "$lt_cv_sys_max_cmd_len"; then
35775      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
35776      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
35777    else
35778      # Make teststring a little bigger before we do anything with it.
35779      # a 1K string should be a reasonable start.
35780      for i in 1 2 3 4 5 6 7 8; do
35781        teststring=$teststring$teststring
35782      done
35783      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
35784      # If test is not a shell built-in, we'll probably end up computing a
35785      # maximum length that is only half of the actual maximum length, but
35786      # we can't tell.
35787      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
35788	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
35789	      test 17 != "$i" # 1/2 MB should be enough
35790      do
35791        i=`expr $i + 1`
35792        teststring=$teststring$teststring
35793      done
35794      # Only check the string length outside the loop.
35795      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
35796      teststring=
35797      # Add a significant safety factor because C++ compilers can tack on
35798      # massive amounts of additional arguments before passing them to the
35799      # linker.  It appears as though 1/2 is a usable value.
35800      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
35801    fi
35802    ;;
35803  esac
35804
35805fi
35806
35807if test -n "$lt_cv_sys_max_cmd_len"; then
35808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
35809$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
35810else
35811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
35812$as_echo "none" >&6; }
35813fi
35814max_cmd_len=$lt_cv_sys_max_cmd_len
35815
35816
35817
35818
35819
35820
35821: ${CP="cp -f"}
35822: ${MV="mv -f"}
35823: ${RM="rm -f"}
35824
35825if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35826  lt_unset=unset
35827else
35828  lt_unset=false
35829fi
35830
35831
35832
35833
35834
35835# test EBCDIC or ASCII
35836case `echo X|tr X '\101'` in
35837 A) # ASCII based system
35838    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
35839  lt_SP2NL='tr \040 \012'
35840  lt_NL2SP='tr \015\012 \040\040'
35841  ;;
35842 *) # EBCDIC based system
35843  lt_SP2NL='tr \100 \n'
35844  lt_NL2SP='tr \r\n \100\100'
35845  ;;
35846esac
35847
35848
35849
35850
35851
35852
35853
35854
35855
35856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
35857$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
35858if ${lt_cv_to_host_file_cmd+:} false; then :
35859  $as_echo_n "(cached) " >&6
35860else
35861  case $host in
35862  *-*-mingw* )
35863    case $build in
35864      *-*-mingw* ) # actually msys
35865        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
35866        ;;
35867      *-*-cygwin* )
35868        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
35869        ;;
35870      * ) # otherwise, assume *nix
35871        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
35872        ;;
35873    esac
35874    ;;
35875  *-*-cygwin* )
35876    case $build in
35877      *-*-mingw* ) # actually msys
35878        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
35879        ;;
35880      *-*-cygwin* )
35881        lt_cv_to_host_file_cmd=func_convert_file_noop
35882        ;;
35883      * ) # otherwise, assume *nix
35884        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
35885        ;;
35886    esac
35887    ;;
35888  * ) # unhandled hosts (and "normal" native builds)
35889    lt_cv_to_host_file_cmd=func_convert_file_noop
35890    ;;
35891esac
35892
35893fi
35894
35895to_host_file_cmd=$lt_cv_to_host_file_cmd
35896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
35897$as_echo "$lt_cv_to_host_file_cmd" >&6; }
35898
35899
35900
35901
35902
35903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
35904$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
35905if ${lt_cv_to_tool_file_cmd+:} false; then :
35906  $as_echo_n "(cached) " >&6
35907else
35908  #assume ordinary cross tools, or native build.
35909lt_cv_to_tool_file_cmd=func_convert_file_noop
35910case $host in
35911  *-*-mingw* )
35912    case $build in
35913      *-*-mingw* ) # actually msys
35914        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
35915        ;;
35916    esac
35917    ;;
35918esac
35919
35920fi
35921
35922to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
35924$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
35925
35926
35927
35928
35929
35930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
35931$as_echo_n "checking for $LD option to reload object files... " >&6; }
35932if ${lt_cv_ld_reload_flag+:} false; then :
35933  $as_echo_n "(cached) " >&6
35934else
35935  lt_cv_ld_reload_flag='-r'
35936fi
35937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
35938$as_echo "$lt_cv_ld_reload_flag" >&6; }
35939reload_flag=$lt_cv_ld_reload_flag
35940case $reload_flag in
35941"" | " "*) ;;
35942*) reload_flag=" $reload_flag" ;;
35943esac
35944reload_cmds='$LD$reload_flag -o $output$reload_objs'
35945case $host_os in
35946  cygwin* | mingw* | pw32* | cegcc*)
35947    if test yes != "$GCC"; then
35948      reload_cmds=false
35949    fi
35950    ;;
35951  darwin*)
35952    if test yes = "$GCC"; then
35953      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
35954    else
35955      reload_cmds='$LD$reload_flag -o $output$reload_objs'
35956    fi
35957    ;;
35958esac
35959
35960
35961
35962
35963
35964
35965
35966
35967
35968if test -n "$ac_tool_prefix"; then
35969  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
35970set dummy ${ac_tool_prefix}objdump; ac_word=$2
35971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35972$as_echo_n "checking for $ac_word... " >&6; }
35973if ${ac_cv_prog_OBJDUMP+:} false; then :
35974  $as_echo_n "(cached) " >&6
35975else
35976  if test -n "$OBJDUMP"; then
35977  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
35978else
35979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35980for as_dir in $PATH
35981do
35982  IFS=$as_save_IFS
35983  test -z "$as_dir" && as_dir=.
35984    for ac_exec_ext in '' $ac_executable_extensions; do
35985  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35986    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
35987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35988    break 2
35989  fi
35990done
35991  done
35992IFS=$as_save_IFS
35993
35994fi
35995fi
35996OBJDUMP=$ac_cv_prog_OBJDUMP
35997if test -n "$OBJDUMP"; then
35998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
35999$as_echo "$OBJDUMP" >&6; }
36000else
36001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36002$as_echo "no" >&6; }
36003fi
36004
36005
36006fi
36007if test -z "$ac_cv_prog_OBJDUMP"; then
36008  ac_ct_OBJDUMP=$OBJDUMP
36009  # Extract the first word of "objdump", so it can be a program name with args.
36010set dummy objdump; ac_word=$2
36011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36012$as_echo_n "checking for $ac_word... " >&6; }
36013if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
36014  $as_echo_n "(cached) " >&6
36015else
36016  if test -n "$ac_ct_OBJDUMP"; then
36017  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
36018else
36019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36020for as_dir in $PATH
36021do
36022  IFS=$as_save_IFS
36023  test -z "$as_dir" && as_dir=.
36024    for ac_exec_ext in '' $ac_executable_extensions; do
36025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36026    ac_cv_prog_ac_ct_OBJDUMP="objdump"
36027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36028    break 2
36029  fi
36030done
36031  done
36032IFS=$as_save_IFS
36033
36034fi
36035fi
36036ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
36037if test -n "$ac_ct_OBJDUMP"; then
36038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
36039$as_echo "$ac_ct_OBJDUMP" >&6; }
36040else
36041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36042$as_echo "no" >&6; }
36043fi
36044
36045  if test "x$ac_ct_OBJDUMP" = x; then
36046    OBJDUMP="false"
36047  else
36048    case $cross_compiling:$ac_tool_warned in
36049yes:)
36050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36052ac_tool_warned=yes ;;
36053esac
36054    OBJDUMP=$ac_ct_OBJDUMP
36055  fi
36056else
36057  OBJDUMP="$ac_cv_prog_OBJDUMP"
36058fi
36059
36060test -z "$OBJDUMP" && OBJDUMP=objdump
36061
36062
36063
36064
36065
36066
36067
36068
36069
36070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
36071$as_echo_n "checking how to recognize dependent libraries... " >&6; }
36072if ${lt_cv_deplibs_check_method+:} false; then :
36073  $as_echo_n "(cached) " >&6
36074else
36075  lt_cv_file_magic_cmd='$MAGIC_CMD'
36076lt_cv_file_magic_test_file=
36077lt_cv_deplibs_check_method='unknown'
36078# Need to set the preceding variable on all platforms that support
36079# interlibrary dependencies.
36080# 'none' -- dependencies not supported.
36081# 'unknown' -- same as none, but documents that we really don't know.
36082# 'pass_all' -- all dependencies passed with no checks.
36083# 'test_compile' -- check by making test program.
36084# 'file_magic [[regex]]' -- check by looking for files in library path
36085# that responds to the $file_magic_cmd with a given extended regex.
36086# If you have 'file' or equivalent on your system and you're not sure
36087# whether 'pass_all' will *always* work, you probably want this one.
36088
36089case $host_os in
36090aix[4-9]*)
36091  lt_cv_deplibs_check_method=pass_all
36092  ;;
36093
36094beos*)
36095  lt_cv_deplibs_check_method=pass_all
36096  ;;
36097
36098bsdi[45]*)
36099  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
36100  lt_cv_file_magic_cmd='/usr/bin/file -L'
36101  lt_cv_file_magic_test_file=/shlib/libc.so
36102  ;;
36103
36104cygwin*)
36105  # func_win32_libid is a shell function defined in ltmain.sh
36106  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
36107  lt_cv_file_magic_cmd='func_win32_libid'
36108  ;;
36109
36110mingw* | pw32*)
36111  # Base MSYS/MinGW do not provide the 'file' command needed by
36112  # func_win32_libid shell function, so use a weaker test based on 'objdump',
36113  # unless we find 'file', for example because we are cross-compiling.
36114  if ( file / ) >/dev/null 2>&1; then
36115    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
36116    lt_cv_file_magic_cmd='func_win32_libid'
36117  else
36118    # Keep this pattern in sync with the one in func_win32_libid.
36119    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
36120    lt_cv_file_magic_cmd='$OBJDUMP -f'
36121  fi
36122  ;;
36123
36124cegcc*)
36125  # use the weaker test based on 'objdump'. See mingw*.
36126  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
36127  lt_cv_file_magic_cmd='$OBJDUMP -f'
36128  ;;
36129
36130darwin* | rhapsody*)
36131  lt_cv_deplibs_check_method=pass_all
36132  ;;
36133
36134freebsd* | dragonfly*)
36135  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
36136    case $host_cpu in
36137    i*86 )
36138      # Not sure whether the presence of OpenBSD here was a mistake.
36139      # Let's accept both of them until this is cleared up.
36140      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
36141      lt_cv_file_magic_cmd=/usr/bin/file
36142      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
36143      ;;
36144    esac
36145  else
36146    lt_cv_deplibs_check_method=pass_all
36147  fi
36148  ;;
36149
36150haiku*)
36151  lt_cv_deplibs_check_method=pass_all
36152  ;;
36153
36154hpux10.20* | hpux11*)
36155  lt_cv_file_magic_cmd=/usr/bin/file
36156  case $host_cpu in
36157  ia64*)
36158    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
36159    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
36160    ;;
36161  hppa*64*)
36162    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]'
36163    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
36164    ;;
36165  *)
36166    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
36167    lt_cv_file_magic_test_file=/usr/lib/libc.sl
36168    ;;
36169  esac
36170  ;;
36171
36172interix[3-9]*)
36173  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
36174  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
36175  ;;
36176
36177irix5* | irix6* | nonstopux*)
36178  case $LD in
36179  *-32|*"-32 ") libmagic=32-bit;;
36180  *-n32|*"-n32 ") libmagic=N32;;
36181  *-64|*"-64 ") libmagic=64-bit;;
36182  *) libmagic=never-match;;
36183  esac
36184  lt_cv_deplibs_check_method=pass_all
36185  ;;
36186
36187# This must be glibc/ELF.
36188linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
36189  lt_cv_deplibs_check_method=pass_all
36190  ;;
36191
36192netbsd*)
36193  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
36194    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
36195  else
36196    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
36197  fi
36198  ;;
36199
36200newos6*)
36201  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
36202  lt_cv_file_magic_cmd=/usr/bin/file
36203  lt_cv_file_magic_test_file=/usr/lib/libnls.so
36204  ;;
36205
36206*nto* | *qnx*)
36207  lt_cv_deplibs_check_method=pass_all
36208  ;;
36209
36210openbsd* | bitrig*)
36211  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
36212    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
36213  else
36214    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
36215  fi
36216  ;;
36217
36218osf3* | osf4* | osf5*)
36219  lt_cv_deplibs_check_method=pass_all
36220  ;;
36221
36222rdos*)
36223  lt_cv_deplibs_check_method=pass_all
36224  ;;
36225
36226solaris*)
36227  lt_cv_deplibs_check_method=pass_all
36228  ;;
36229
36230sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
36231  lt_cv_deplibs_check_method=pass_all
36232  ;;
36233
36234sysv4 | sysv4.3*)
36235  case $host_vendor in
36236  motorola)
36237    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]'
36238    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
36239    ;;
36240  ncr)
36241    lt_cv_deplibs_check_method=pass_all
36242    ;;
36243  sequent)
36244    lt_cv_file_magic_cmd='/bin/file'
36245    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
36246    ;;
36247  sni)
36248    lt_cv_file_magic_cmd='/bin/file'
36249    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
36250    lt_cv_file_magic_test_file=/lib/libc.so
36251    ;;
36252  siemens)
36253    lt_cv_deplibs_check_method=pass_all
36254    ;;
36255  pc)
36256    lt_cv_deplibs_check_method=pass_all
36257    ;;
36258  esac
36259  ;;
36260
36261tpf*)
36262  lt_cv_deplibs_check_method=pass_all
36263  ;;
36264os2*)
36265  lt_cv_deplibs_check_method=pass_all
36266  ;;
36267esac
36268
36269fi
36270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
36271$as_echo "$lt_cv_deplibs_check_method" >&6; }
36272
36273file_magic_glob=
36274want_nocaseglob=no
36275if test "$build" = "$host"; then
36276  case $host_os in
36277  mingw* | pw32*)
36278    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
36279      want_nocaseglob=yes
36280    else
36281      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
36282    fi
36283    ;;
36284  esac
36285fi
36286
36287file_magic_cmd=$lt_cv_file_magic_cmd
36288deplibs_check_method=$lt_cv_deplibs_check_method
36289test -z "$deplibs_check_method" && deplibs_check_method=unknown
36290
36291
36292
36293
36294
36295
36296
36297
36298
36299
36300
36301
36302
36303
36304
36305
36306
36307
36308
36309
36310
36311
36312if test -n "$ac_tool_prefix"; then
36313  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
36314set dummy ${ac_tool_prefix}dlltool; ac_word=$2
36315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36316$as_echo_n "checking for $ac_word... " >&6; }
36317if ${ac_cv_prog_DLLTOOL+:} false; then :
36318  $as_echo_n "(cached) " >&6
36319else
36320  if test -n "$DLLTOOL"; then
36321  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
36322else
36323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36324for as_dir in $PATH
36325do
36326  IFS=$as_save_IFS
36327  test -z "$as_dir" && as_dir=.
36328    for ac_exec_ext in '' $ac_executable_extensions; do
36329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36330    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
36331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36332    break 2
36333  fi
36334done
36335  done
36336IFS=$as_save_IFS
36337
36338fi
36339fi
36340DLLTOOL=$ac_cv_prog_DLLTOOL
36341if test -n "$DLLTOOL"; then
36342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
36343$as_echo "$DLLTOOL" >&6; }
36344else
36345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36346$as_echo "no" >&6; }
36347fi
36348
36349
36350fi
36351if test -z "$ac_cv_prog_DLLTOOL"; then
36352  ac_ct_DLLTOOL=$DLLTOOL
36353  # Extract the first word of "dlltool", so it can be a program name with args.
36354set dummy dlltool; ac_word=$2
36355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36356$as_echo_n "checking for $ac_word... " >&6; }
36357if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
36358  $as_echo_n "(cached) " >&6
36359else
36360  if test -n "$ac_ct_DLLTOOL"; then
36361  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
36362else
36363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36364for as_dir in $PATH
36365do
36366  IFS=$as_save_IFS
36367  test -z "$as_dir" && as_dir=.
36368    for ac_exec_ext in '' $ac_executable_extensions; do
36369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36370    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
36371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36372    break 2
36373  fi
36374done
36375  done
36376IFS=$as_save_IFS
36377
36378fi
36379fi
36380ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
36381if test -n "$ac_ct_DLLTOOL"; then
36382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
36383$as_echo "$ac_ct_DLLTOOL" >&6; }
36384else
36385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36386$as_echo "no" >&6; }
36387fi
36388
36389  if test "x$ac_ct_DLLTOOL" = x; then
36390    DLLTOOL="false"
36391  else
36392    case $cross_compiling:$ac_tool_warned in
36393yes:)
36394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36396ac_tool_warned=yes ;;
36397esac
36398    DLLTOOL=$ac_ct_DLLTOOL
36399  fi
36400else
36401  DLLTOOL="$ac_cv_prog_DLLTOOL"
36402fi
36403
36404test -z "$DLLTOOL" && DLLTOOL=dlltool
36405
36406
36407
36408
36409
36410
36411
36412
36413
36414
36415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
36416$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
36417if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
36418  $as_echo_n "(cached) " >&6
36419else
36420  lt_cv_sharedlib_from_linklib_cmd='unknown'
36421
36422case $host_os in
36423cygwin* | mingw* | pw32* | cegcc*)
36424  # two different shell functions defined in ltmain.sh;
36425  # decide which one to use based on capabilities of $DLLTOOL
36426  case `$DLLTOOL --help 2>&1` in
36427  *--identify-strict*)
36428    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
36429    ;;
36430  *)
36431    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
36432    ;;
36433  esac
36434  ;;
36435*)
36436  # fallback: assume linklib IS sharedlib
36437  lt_cv_sharedlib_from_linklib_cmd=$ECHO
36438  ;;
36439esac
36440
36441fi
36442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
36443$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
36444sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
36445test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
36446
36447
36448
36449
36450
36451
36452
36453if test -n "$ac_tool_prefix"; then
36454  for ac_prog in ar
36455  do
36456    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
36457set dummy $ac_tool_prefix$ac_prog; ac_word=$2
36458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36459$as_echo_n "checking for $ac_word... " >&6; }
36460if ${ac_cv_prog_AR+:} false; then :
36461  $as_echo_n "(cached) " >&6
36462else
36463  if test -n "$AR"; then
36464  ac_cv_prog_AR="$AR" # Let the user override the test.
36465else
36466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36467for as_dir in $PATH
36468do
36469  IFS=$as_save_IFS
36470  test -z "$as_dir" && as_dir=.
36471    for ac_exec_ext in '' $ac_executable_extensions; do
36472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36473    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
36474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36475    break 2
36476  fi
36477done
36478  done
36479IFS=$as_save_IFS
36480
36481fi
36482fi
36483AR=$ac_cv_prog_AR
36484if test -n "$AR"; then
36485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
36486$as_echo "$AR" >&6; }
36487else
36488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36489$as_echo "no" >&6; }
36490fi
36491
36492
36493    test -n "$AR" && break
36494  done
36495fi
36496if test -z "$AR"; then
36497  ac_ct_AR=$AR
36498  for ac_prog in ar
36499do
36500  # Extract the first word of "$ac_prog", so it can be a program name with args.
36501set dummy $ac_prog; ac_word=$2
36502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36503$as_echo_n "checking for $ac_word... " >&6; }
36504if ${ac_cv_prog_ac_ct_AR+:} false; then :
36505  $as_echo_n "(cached) " >&6
36506else
36507  if test -n "$ac_ct_AR"; then
36508  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
36509else
36510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36511for as_dir in $PATH
36512do
36513  IFS=$as_save_IFS
36514  test -z "$as_dir" && as_dir=.
36515    for ac_exec_ext in '' $ac_executable_extensions; do
36516  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36517    ac_cv_prog_ac_ct_AR="$ac_prog"
36518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36519    break 2
36520  fi
36521done
36522  done
36523IFS=$as_save_IFS
36524
36525fi
36526fi
36527ac_ct_AR=$ac_cv_prog_ac_ct_AR
36528if test -n "$ac_ct_AR"; then
36529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
36530$as_echo "$ac_ct_AR" >&6; }
36531else
36532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36533$as_echo "no" >&6; }
36534fi
36535
36536
36537  test -n "$ac_ct_AR" && break
36538done
36539
36540  if test "x$ac_ct_AR" = x; then
36541    AR="false"
36542  else
36543    case $cross_compiling:$ac_tool_warned in
36544yes:)
36545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36547ac_tool_warned=yes ;;
36548esac
36549    AR=$ac_ct_AR
36550  fi
36551fi
36552
36553: ${AR=ar}
36554: ${AR_FLAGS=cru}
36555
36556
36557
36558
36559
36560
36561
36562
36563
36564
36565
36566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
36567$as_echo_n "checking for archiver @FILE support... " >&6; }
36568if ${lt_cv_ar_at_file+:} false; then :
36569  $as_echo_n "(cached) " >&6
36570else
36571  lt_cv_ar_at_file=no
36572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36573/* end confdefs.h.  */
36574
36575int
36576main ()
36577{
36578
36579  ;
36580  return 0;
36581}
36582_ACEOF
36583if ac_fn_c_try_compile "$LINENO"; then :
36584  echo conftest.$ac_objext > conftest.lst
36585      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
36586      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
36587  (eval $lt_ar_try) 2>&5
36588  ac_status=$?
36589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36590  test $ac_status = 0; }
36591      if test 0 -eq "$ac_status"; then
36592	# Ensure the archiver fails upon bogus file names.
36593	rm -f conftest.$ac_objext libconftest.a
36594	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
36595  (eval $lt_ar_try) 2>&5
36596  ac_status=$?
36597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36598  test $ac_status = 0; }
36599	if test 0 -ne "$ac_status"; then
36600          lt_cv_ar_at_file=@
36601        fi
36602      fi
36603      rm -f conftest.* libconftest.a
36604
36605fi
36606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36607
36608fi
36609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
36610$as_echo "$lt_cv_ar_at_file" >&6; }
36611
36612if test no = "$lt_cv_ar_at_file"; then
36613  archiver_list_spec=
36614else
36615  archiver_list_spec=$lt_cv_ar_at_file
36616fi
36617
36618
36619
36620
36621
36622
36623
36624if test -n "$ac_tool_prefix"; then
36625  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
36626set dummy ${ac_tool_prefix}strip; ac_word=$2
36627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36628$as_echo_n "checking for $ac_word... " >&6; }
36629if ${ac_cv_prog_STRIP+:} false; then :
36630  $as_echo_n "(cached) " >&6
36631else
36632  if test -n "$STRIP"; then
36633  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
36634else
36635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36636for as_dir in $PATH
36637do
36638  IFS=$as_save_IFS
36639  test -z "$as_dir" && as_dir=.
36640    for ac_exec_ext in '' $ac_executable_extensions; do
36641  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36642    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
36643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36644    break 2
36645  fi
36646done
36647  done
36648IFS=$as_save_IFS
36649
36650fi
36651fi
36652STRIP=$ac_cv_prog_STRIP
36653if test -n "$STRIP"; then
36654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
36655$as_echo "$STRIP" >&6; }
36656else
36657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36658$as_echo "no" >&6; }
36659fi
36660
36661
36662fi
36663if test -z "$ac_cv_prog_STRIP"; then
36664  ac_ct_STRIP=$STRIP
36665  # Extract the first word of "strip", so it can be a program name with args.
36666set dummy strip; ac_word=$2
36667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36668$as_echo_n "checking for $ac_word... " >&6; }
36669if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
36670  $as_echo_n "(cached) " >&6
36671else
36672  if test -n "$ac_ct_STRIP"; then
36673  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
36674else
36675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36676for as_dir in $PATH
36677do
36678  IFS=$as_save_IFS
36679  test -z "$as_dir" && as_dir=.
36680    for ac_exec_ext in '' $ac_executable_extensions; do
36681  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36682    ac_cv_prog_ac_ct_STRIP="strip"
36683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36684    break 2
36685  fi
36686done
36687  done
36688IFS=$as_save_IFS
36689
36690fi
36691fi
36692ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
36693if test -n "$ac_ct_STRIP"; then
36694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
36695$as_echo "$ac_ct_STRIP" >&6; }
36696else
36697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36698$as_echo "no" >&6; }
36699fi
36700
36701  if test "x$ac_ct_STRIP" = x; then
36702    STRIP=":"
36703  else
36704    case $cross_compiling:$ac_tool_warned in
36705yes:)
36706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36708ac_tool_warned=yes ;;
36709esac
36710    STRIP=$ac_ct_STRIP
36711  fi
36712else
36713  STRIP="$ac_cv_prog_STRIP"
36714fi
36715
36716test -z "$STRIP" && STRIP=:
36717
36718
36719
36720
36721
36722
36723if test -n "$ac_tool_prefix"; then
36724  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
36725set dummy ${ac_tool_prefix}ranlib; ac_word=$2
36726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36727$as_echo_n "checking for $ac_word... " >&6; }
36728if ${ac_cv_prog_RANLIB+:} false; then :
36729  $as_echo_n "(cached) " >&6
36730else
36731  if test -n "$RANLIB"; then
36732  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
36733else
36734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36735for as_dir in $PATH
36736do
36737  IFS=$as_save_IFS
36738  test -z "$as_dir" && as_dir=.
36739    for ac_exec_ext in '' $ac_executable_extensions; do
36740  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36741    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
36742    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36743    break 2
36744  fi
36745done
36746  done
36747IFS=$as_save_IFS
36748
36749fi
36750fi
36751RANLIB=$ac_cv_prog_RANLIB
36752if test -n "$RANLIB"; then
36753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
36754$as_echo "$RANLIB" >&6; }
36755else
36756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36757$as_echo "no" >&6; }
36758fi
36759
36760
36761fi
36762if test -z "$ac_cv_prog_RANLIB"; then
36763  ac_ct_RANLIB=$RANLIB
36764  # Extract the first word of "ranlib", so it can be a program name with args.
36765set dummy ranlib; ac_word=$2
36766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36767$as_echo_n "checking for $ac_word... " >&6; }
36768if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
36769  $as_echo_n "(cached) " >&6
36770else
36771  if test -n "$ac_ct_RANLIB"; then
36772  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
36773else
36774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36775for as_dir in $PATH
36776do
36777  IFS=$as_save_IFS
36778  test -z "$as_dir" && as_dir=.
36779    for ac_exec_ext in '' $ac_executable_extensions; do
36780  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36781    ac_cv_prog_ac_ct_RANLIB="ranlib"
36782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36783    break 2
36784  fi
36785done
36786  done
36787IFS=$as_save_IFS
36788
36789fi
36790fi
36791ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
36792if test -n "$ac_ct_RANLIB"; then
36793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
36794$as_echo "$ac_ct_RANLIB" >&6; }
36795else
36796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36797$as_echo "no" >&6; }
36798fi
36799
36800  if test "x$ac_ct_RANLIB" = x; then
36801    RANLIB=":"
36802  else
36803    case $cross_compiling:$ac_tool_warned in
36804yes:)
36805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36807ac_tool_warned=yes ;;
36808esac
36809    RANLIB=$ac_ct_RANLIB
36810  fi
36811else
36812  RANLIB="$ac_cv_prog_RANLIB"
36813fi
36814
36815test -z "$RANLIB" && RANLIB=:
36816
36817
36818
36819
36820
36821
36822# Determine commands to create old-style static archives.
36823old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
36824old_postinstall_cmds='chmod 644 $oldlib'
36825old_postuninstall_cmds=
36826
36827if test -n "$RANLIB"; then
36828  case $host_os in
36829  bitrig* | openbsd*)
36830    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
36831    ;;
36832  *)
36833    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
36834    ;;
36835  esac
36836  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
36837fi
36838
36839case $host_os in
36840  darwin*)
36841    lock_old_archive_extraction=yes ;;
36842  *)
36843    lock_old_archive_extraction=no ;;
36844esac
36845
36846
36847
36848
36849
36850
36851
36852
36853
36854
36855
36856
36857
36858
36859
36860
36861
36862
36863
36864
36865
36866
36867
36868
36869
36870
36871
36872
36873
36874
36875
36876
36877
36878
36879
36880
36881
36882
36883
36884# If no C compiler was specified, use CC.
36885LTCC=${LTCC-"$CC"}
36886
36887# If no C compiler flags were specified, use CFLAGS.
36888LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
36889
36890# Allow CC to be a program name with arguments.
36891compiler=$CC
36892
36893
36894# Check for command to grab the raw symbol name followed by C symbol from nm.
36895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
36896$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
36897if ${lt_cv_sys_global_symbol_pipe+:} false; then :
36898  $as_echo_n "(cached) " >&6
36899else
36900
36901# These are sane defaults that work on at least a few old systems.
36902# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
36903
36904# Character class describing NM global symbol codes.
36905symcode='[BCDEGRST]'
36906
36907# Regexp to match symbols that can be accessed directly from C.
36908sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
36909
36910# Define system-specific variables.
36911case $host_os in
36912aix*)
36913  symcode='[BCDT]'
36914  ;;
36915cygwin* | mingw* | pw32* | cegcc*)
36916  symcode='[ABCDGISTW]'
36917  ;;
36918hpux*)
36919  if test ia64 = "$host_cpu"; then
36920    symcode='[ABCDEGRST]'
36921  fi
36922  ;;
36923irix* | nonstopux*)
36924  symcode='[BCDEGRST]'
36925  ;;
36926osf*)
36927  symcode='[BCDEGQRST]'
36928  ;;
36929solaris*)
36930  symcode='[BDRT]'
36931  ;;
36932sco3.2v5*)
36933  symcode='[DT]'
36934  ;;
36935sysv4.2uw2*)
36936  symcode='[DT]'
36937  ;;
36938sysv5* | sco5v6* | unixware* | OpenUNIX*)
36939  symcode='[ABDT]'
36940  ;;
36941sysv4)
36942  symcode='[DFNSTU]'
36943  ;;
36944esac
36945
36946# If we're using GNU nm, then use its standard symbol codes.
36947case `$NM -V 2>&1` in
36948*GNU* | *'with BFD'*)
36949  symcode='[ABCDGIRSTW]' ;;
36950esac
36951
36952if test "$lt_cv_nm_interface" = "MS dumpbin"; then
36953  # Gets list of data symbols to import.
36954  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
36955  # Adjust the below global symbol transforms to fixup imported variables.
36956  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
36957  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
36958  lt_c_name_lib_hook="\
36959  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
36960  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
36961else
36962  # Disable hooks by default.
36963  lt_cv_sys_global_symbol_to_import=
36964  lt_cdecl_hook=
36965  lt_c_name_hook=
36966  lt_c_name_lib_hook=
36967fi
36968
36969# Transform an extracted symbol line into a proper C declaration.
36970# Some systems (esp. on ia64) link data and code symbols differently,
36971# so use this general approach.
36972lt_cv_sys_global_symbol_to_cdecl="sed -n"\
36973$lt_cdecl_hook\
36974" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
36975" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
36976
36977# Transform an extracted symbol line into symbol name and symbol address
36978lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
36979$lt_c_name_hook\
36980" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
36981" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
36982
36983# Transform an extracted symbol line into symbol name with lib prefix and
36984# symbol address.
36985lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
36986$lt_c_name_lib_hook\
36987" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
36988" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
36989" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
36990
36991# Handle CRLF in mingw tool chain
36992opt_cr=
36993case $build_os in
36994mingw*)
36995  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
36996  ;;
36997esac
36998
36999# Try without a prefix underscore, then with it.
37000for ac_symprfx in "" "_"; do
37001
37002  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
37003  symxfrm="\\1 $ac_symprfx\\2 \\2"
37004
37005  # Write the raw and C identifiers.
37006  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
37007    # Fake it for dumpbin and say T for any non-static function,
37008    # D for any global variable and I for any imported variable.
37009    # Also find C++ and __fastcall symbols from MSVC++,
37010    # which start with @ or ?.
37011    lt_cv_sys_global_symbol_pipe="$AWK '"\
37012"     {last_section=section; section=\$ 3};"\
37013"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
37014"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
37015"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
37016"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
37017"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
37018"     \$ 0!~/External *\|/{next};"\
37019"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
37020"     {if(hide[section]) next};"\
37021"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
37022"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
37023"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
37024"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
37025"     ' prfx=^$ac_symprfx"
37026  else
37027    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
37028  fi
37029  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
37030
37031  # Check to see that the pipe works correctly.
37032  pipe_works=no
37033
37034  rm -f conftest*
37035  cat > conftest.$ac_ext <<_LT_EOF
37036#ifdef __cplusplus
37037extern "C" {
37038#endif
37039char nm_test_var;
37040void nm_test_func(void);
37041void nm_test_func(void){}
37042#ifdef __cplusplus
37043}
37044#endif
37045int main(){nm_test_var='a';nm_test_func();return(0);}
37046_LT_EOF
37047
37048  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
37049  (eval $ac_compile) 2>&5
37050  ac_status=$?
37051  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37052  test $ac_status = 0; }; then
37053    # Now try to grab the symbols.
37054    nlist=conftest.nm
37055    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
37056  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
37057  ac_status=$?
37058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37059  test $ac_status = 0; } && test -s "$nlist"; then
37060      # Try sorting and uniquifying the output.
37061      if sort "$nlist" | uniq > "$nlist"T; then
37062	mv -f "$nlist"T "$nlist"
37063      else
37064	rm -f "$nlist"T
37065      fi
37066
37067      # Make sure that we snagged all the symbols we need.
37068      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
37069	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
37070	  cat <<_LT_EOF > conftest.$ac_ext
37071/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
37072#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
37073/* DATA imports from DLLs on WIN32 can't be const, because runtime
37074   relocations are performed -- see ld's documentation on pseudo-relocs.  */
37075# define LT_DLSYM_CONST
37076#elif defined __osf__
37077/* This system does not cope well with relocations in const data.  */
37078# define LT_DLSYM_CONST
37079#else
37080# define LT_DLSYM_CONST const
37081#endif
37082
37083#ifdef __cplusplus
37084extern "C" {
37085#endif
37086
37087_LT_EOF
37088	  # Now generate the symbol file.
37089	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
37090
37091	  cat <<_LT_EOF >> conftest.$ac_ext
37092
37093/* The mapping between symbol names and symbols.  */
37094LT_DLSYM_CONST struct {
37095  const char *name;
37096  void       *address;
37097}
37098lt__PROGRAM__LTX_preloaded_symbols[] =
37099{
37100  { "@PROGRAM@", (void *) 0 },
37101_LT_EOF
37102	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
37103	  cat <<\_LT_EOF >> conftest.$ac_ext
37104  {0, (void *) 0}
37105};
37106
37107/* This works around a problem in FreeBSD linker */
37108#ifdef FREEBSD_WORKAROUND
37109static const void *lt_preloaded_setup() {
37110  return lt__PROGRAM__LTX_preloaded_symbols;
37111}
37112#endif
37113
37114#ifdef __cplusplus
37115}
37116#endif
37117_LT_EOF
37118	  # Now try linking the two files.
37119	  mv conftest.$ac_objext conftstm.$ac_objext
37120	  lt_globsym_save_LIBS=$LIBS
37121	  lt_globsym_save_CFLAGS=$CFLAGS
37122	  LIBS=conftstm.$ac_objext
37123	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
37124	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
37125  (eval $ac_link) 2>&5
37126  ac_status=$?
37127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37128  test $ac_status = 0; } && test -s conftest$ac_exeext; then
37129	    pipe_works=yes
37130	  fi
37131	  LIBS=$lt_globsym_save_LIBS
37132	  CFLAGS=$lt_globsym_save_CFLAGS
37133	else
37134	  echo "cannot find nm_test_func in $nlist" >&5
37135	fi
37136      else
37137	echo "cannot find nm_test_var in $nlist" >&5
37138      fi
37139    else
37140      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
37141    fi
37142  else
37143    echo "$progname: failed program was:" >&5
37144    cat conftest.$ac_ext >&5
37145  fi
37146  rm -rf conftest* conftst*
37147
37148  # Do not use the global_symbol_pipe unless it works.
37149  if test yes = "$pipe_works"; then
37150    break
37151  else
37152    lt_cv_sys_global_symbol_pipe=
37153  fi
37154done
37155
37156fi
37157
37158if test -z "$lt_cv_sys_global_symbol_pipe"; then
37159  lt_cv_sys_global_symbol_to_cdecl=
37160fi
37161if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
37162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
37163$as_echo "failed" >&6; }
37164else
37165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
37166$as_echo "ok" >&6; }
37167fi
37168
37169# Response file support.
37170if test "$lt_cv_nm_interface" = "MS dumpbin"; then
37171  nm_file_list_spec='@'
37172elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
37173  nm_file_list_spec='@'
37174fi
37175
37176
37177
37178
37179
37180
37181
37182
37183
37184
37185
37186
37187
37188
37189
37190
37191
37192
37193
37194
37195
37196
37197
37198
37199
37200
37201
37202
37203
37204
37205
37206
37207
37208
37209
37210
37211
37212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
37213$as_echo_n "checking for sysroot... " >&6; }
37214
37215# Check whether --with-sysroot was given.
37216if test "${with_sysroot+set}" = set; then :
37217  withval=$with_sysroot;
37218else
37219  with_sysroot=no
37220fi
37221
37222
37223lt_sysroot=
37224case $with_sysroot in #(
37225 yes)
37226   if test yes = "$GCC"; then
37227     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
37228   fi
37229   ;; #(
37230 /*)
37231   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
37232   ;; #(
37233 no|'')
37234   ;; #(
37235 *)
37236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
37237$as_echo "$with_sysroot" >&6; }
37238   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
37239   ;;
37240esac
37241
37242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
37243$as_echo "${lt_sysroot:-no}" >&6; }
37244
37245
37246
37247
37248
37249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
37250$as_echo_n "checking for a working dd... " >&6; }
37251if ${ac_cv_path_lt_DD+:} false; then :
37252  $as_echo_n "(cached) " >&6
37253else
37254  printf 0123456789abcdef0123456789abcdef >conftest.i
37255cat conftest.i conftest.i >conftest2.i
37256: ${lt_DD:=$DD}
37257if test -z "$lt_DD"; then
37258  ac_path_lt_DD_found=false
37259  # Loop through the user's path and test for each of PROGNAME-LIST
37260  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37261for as_dir in $PATH
37262do
37263  IFS=$as_save_IFS
37264  test -z "$as_dir" && as_dir=.
37265    for ac_prog in dd; do
37266    for ac_exec_ext in '' $ac_executable_extensions; do
37267      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
37268      as_fn_executable_p "$ac_path_lt_DD" || continue
37269if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
37270  cmp -s conftest.i conftest.out \
37271  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
37272fi
37273      $ac_path_lt_DD_found && break 3
37274    done
37275  done
37276  done
37277IFS=$as_save_IFS
37278  if test -z "$ac_cv_path_lt_DD"; then
37279    :
37280  fi
37281else
37282  ac_cv_path_lt_DD=$lt_DD
37283fi
37284
37285rm -f conftest.i conftest2.i conftest.out
37286fi
37287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
37288$as_echo "$ac_cv_path_lt_DD" >&6; }
37289
37290
37291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
37292$as_echo_n "checking how to truncate binary pipes... " >&6; }
37293if ${lt_cv_truncate_bin+:} false; then :
37294  $as_echo_n "(cached) " >&6
37295else
37296  printf 0123456789abcdef0123456789abcdef >conftest.i
37297cat conftest.i conftest.i >conftest2.i
37298lt_cv_truncate_bin=
37299if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
37300  cmp -s conftest.i conftest.out \
37301  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
37302fi
37303rm -f conftest.i conftest2.i conftest.out
37304test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
37305fi
37306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
37307$as_echo "$lt_cv_truncate_bin" >&6; }
37308
37309
37310
37311
37312
37313
37314
37315# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
37316func_cc_basename ()
37317{
37318    for cc_temp in $*""; do
37319      case $cc_temp in
37320        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
37321        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
37322        \-*) ;;
37323        *) break;;
37324      esac
37325    done
37326    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
37327}
37328
37329# Check whether --enable-libtool-lock was given.
37330if test "${enable_libtool_lock+set}" = set; then :
37331  enableval=$enable_libtool_lock;
37332fi
37333
37334test no = "$enable_libtool_lock" || enable_libtool_lock=yes
37335
37336# Some flags need to be propagated to the compiler or linker for good
37337# libtool support.
37338case $host in
37339ia64-*-hpux*)
37340  # Find out what ABI is being produced by ac_compile, and set mode
37341  # options accordingly.
37342  echo 'int i;' > conftest.$ac_ext
37343  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
37344  (eval $ac_compile) 2>&5
37345  ac_status=$?
37346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37347  test $ac_status = 0; }; then
37348    case `/usr/bin/file conftest.$ac_objext` in
37349      *ELF-32*)
37350	HPUX_IA64_MODE=32
37351	;;
37352      *ELF-64*)
37353	HPUX_IA64_MODE=64
37354	;;
37355    esac
37356  fi
37357  rm -rf conftest*
37358  ;;
37359*-*-irix6*)
37360  # Find out what ABI is being produced by ac_compile, and set linker
37361  # options accordingly.
37362  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
37363  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
37364  (eval $ac_compile) 2>&5
37365  ac_status=$?
37366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37367  test $ac_status = 0; }; then
37368    if test yes = "$lt_cv_prog_gnu_ld"; then
37369      case `/usr/bin/file conftest.$ac_objext` in
37370	*32-bit*)
37371	  LD="${LD-ld} -melf32bsmip"
37372	  ;;
37373	*N32*)
37374	  LD="${LD-ld} -melf32bmipn32"
37375	  ;;
37376	*64-bit*)
37377	  LD="${LD-ld} -melf64bmip"
37378	;;
37379      esac
37380    else
37381      case `/usr/bin/file conftest.$ac_objext` in
37382	*32-bit*)
37383	  LD="${LD-ld} -32"
37384	  ;;
37385	*N32*)
37386	  LD="${LD-ld} -n32"
37387	  ;;
37388	*64-bit*)
37389	  LD="${LD-ld} -64"
37390	  ;;
37391      esac
37392    fi
37393  fi
37394  rm -rf conftest*
37395  ;;
37396
37397mips64*-*linux*)
37398  # Find out what ABI is being produced by ac_compile, and set linker
37399  # options accordingly.
37400  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
37401  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
37402  (eval $ac_compile) 2>&5
37403  ac_status=$?
37404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37405  test $ac_status = 0; }; then
37406    emul=elf
37407    case `/usr/bin/file conftest.$ac_objext` in
37408      *32-bit*)
37409	emul="${emul}32"
37410	;;
37411      *64-bit*)
37412	emul="${emul}64"
37413	;;
37414    esac
37415    case `/usr/bin/file conftest.$ac_objext` in
37416      *MSB*)
37417	emul="${emul}btsmip"
37418	;;
37419      *LSB*)
37420	emul="${emul}ltsmip"
37421	;;
37422    esac
37423    case `/usr/bin/file conftest.$ac_objext` in
37424      *N32*)
37425	emul="${emul}n32"
37426	;;
37427    esac
37428    LD="${LD-ld} -m $emul"
37429  fi
37430  rm -rf conftest*
37431  ;;
37432
37433x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
37434s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
37435  # Find out what ABI is being produced by ac_compile, and set linker
37436  # options accordingly.  Note that the listed cases only cover the
37437  # situations where additional linker options are needed (such as when
37438  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
37439  # vice versa); the common cases where no linker options are needed do
37440  # not appear in the list.
37441  echo 'int i;' > conftest.$ac_ext
37442  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
37443  (eval $ac_compile) 2>&5
37444  ac_status=$?
37445  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37446  test $ac_status = 0; }; then
37447    case `/usr/bin/file conftest.o` in
37448      *32-bit*)
37449	case $host in
37450	  x86_64-*kfreebsd*-gnu)
37451	    LD="${LD-ld} -m elf_i386_fbsd"
37452	    ;;
37453	  x86_64-*linux*)
37454	    case `/usr/bin/file conftest.o` in
37455	      *x86-64*)
37456		LD="${LD-ld} -m elf32_x86_64"
37457		;;
37458	      *)
37459		LD="${LD-ld} -m elf_i386"
37460		;;
37461	    esac
37462	    ;;
37463	  powerpc64le-*linux*)
37464	    LD="${LD-ld} -m elf32lppclinux"
37465	    ;;
37466	  powerpc64-*linux*)
37467	    LD="${LD-ld} -m elf32ppclinux"
37468	    ;;
37469	  s390x-*linux*)
37470	    LD="${LD-ld} -m elf_s390"
37471	    ;;
37472	  sparc64-*linux*)
37473	    LD="${LD-ld} -m elf32_sparc"
37474	    ;;
37475	esac
37476	;;
37477      *64-bit*)
37478	case $host in
37479	  x86_64-*kfreebsd*-gnu)
37480	    LD="${LD-ld} -m elf_x86_64_fbsd"
37481	    ;;
37482	  x86_64-*linux*)
37483	    LD="${LD-ld} -m elf_x86_64"
37484	    ;;
37485	  powerpcle-*linux*)
37486	    LD="${LD-ld} -m elf64lppc"
37487	    ;;
37488	  powerpc-*linux*)
37489	    LD="${LD-ld} -m elf64ppc"
37490	    ;;
37491	  s390*-*linux*|s390*-*tpf*)
37492	    LD="${LD-ld} -m elf64_s390"
37493	    ;;
37494	  sparc*-*linux*)
37495	    LD="${LD-ld} -m elf64_sparc"
37496	    ;;
37497	esac
37498	;;
37499    esac
37500  fi
37501  rm -rf conftest*
37502  ;;
37503
37504*-*-sco3.2v5*)
37505  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
37506  SAVE_CFLAGS=$CFLAGS
37507  CFLAGS="$CFLAGS -belf"
37508  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
37509$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
37510if ${lt_cv_cc_needs_belf+:} false; then :
37511  $as_echo_n "(cached) " >&6
37512else
37513  ac_ext=c
37514ac_cpp='$CPP $CPPFLAGS'
37515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37517ac_compiler_gnu=$ac_cv_c_compiler_gnu
37518
37519     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37520/* end confdefs.h.  */
37521
37522int
37523main ()
37524{
37525
37526  ;
37527  return 0;
37528}
37529_ACEOF
37530if ac_fn_c_try_link "$LINENO"; then :
37531  lt_cv_cc_needs_belf=yes
37532else
37533  lt_cv_cc_needs_belf=no
37534fi
37535rm -f core conftest.err conftest.$ac_objext \
37536    conftest$ac_exeext conftest.$ac_ext
37537     ac_ext=c
37538ac_cpp='$CPP $CPPFLAGS'
37539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37541ac_compiler_gnu=$ac_cv_c_compiler_gnu
37542
37543fi
37544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
37545$as_echo "$lt_cv_cc_needs_belf" >&6; }
37546  if test yes != "$lt_cv_cc_needs_belf"; then
37547    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
37548    CFLAGS=$SAVE_CFLAGS
37549  fi
37550  ;;
37551*-*solaris*)
37552  # Find out what ABI is being produced by ac_compile, and set linker
37553  # options accordingly.
37554  echo 'int i;' > conftest.$ac_ext
37555  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
37556  (eval $ac_compile) 2>&5
37557  ac_status=$?
37558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37559  test $ac_status = 0; }; then
37560    case `/usr/bin/file conftest.o` in
37561    *64-bit*)
37562      case $lt_cv_prog_gnu_ld in
37563      yes*)
37564        case $host in
37565        i?86-*-solaris*|x86_64-*-solaris*)
37566          LD="${LD-ld} -m elf_x86_64"
37567          ;;
37568        sparc*-*-solaris*)
37569          LD="${LD-ld} -m elf64_sparc"
37570          ;;
37571        esac
37572        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
37573        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
37574          LD=${LD-ld}_sol2
37575        fi
37576        ;;
37577      *)
37578	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
37579	  LD="${LD-ld} -64"
37580	fi
37581	;;
37582      esac
37583      ;;
37584    esac
37585  fi
37586  rm -rf conftest*
37587  ;;
37588esac
37589
37590need_locks=$enable_libtool_lock
37591
37592if test -n "$ac_tool_prefix"; then
37593  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
37594set dummy ${ac_tool_prefix}mt; ac_word=$2
37595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37596$as_echo_n "checking for $ac_word... " >&6; }
37597if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
37598  $as_echo_n "(cached) " >&6
37599else
37600  if test -n "$MANIFEST_TOOL"; then
37601  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
37602else
37603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37604for as_dir in $PATH
37605do
37606  IFS=$as_save_IFS
37607  test -z "$as_dir" && as_dir=.
37608    for ac_exec_ext in '' $ac_executable_extensions; do
37609  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37610    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
37611    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37612    break 2
37613  fi
37614done
37615  done
37616IFS=$as_save_IFS
37617
37618fi
37619fi
37620MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
37621if test -n "$MANIFEST_TOOL"; then
37622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
37623$as_echo "$MANIFEST_TOOL" >&6; }
37624else
37625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37626$as_echo "no" >&6; }
37627fi
37628
37629
37630fi
37631if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
37632  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
37633  # Extract the first word of "mt", so it can be a program name with args.
37634set dummy mt; ac_word=$2
37635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37636$as_echo_n "checking for $ac_word... " >&6; }
37637if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
37638  $as_echo_n "(cached) " >&6
37639else
37640  if test -n "$ac_ct_MANIFEST_TOOL"; then
37641  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
37642else
37643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37644for as_dir in $PATH
37645do
37646  IFS=$as_save_IFS
37647  test -z "$as_dir" && as_dir=.
37648    for ac_exec_ext in '' $ac_executable_extensions; do
37649  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37650    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
37651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37652    break 2
37653  fi
37654done
37655  done
37656IFS=$as_save_IFS
37657
37658fi
37659fi
37660ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
37661if test -n "$ac_ct_MANIFEST_TOOL"; then
37662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
37663$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
37664else
37665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37666$as_echo "no" >&6; }
37667fi
37668
37669  if test "x$ac_ct_MANIFEST_TOOL" = x; then
37670    MANIFEST_TOOL=":"
37671  else
37672    case $cross_compiling:$ac_tool_warned in
37673yes:)
37674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37676ac_tool_warned=yes ;;
37677esac
37678    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
37679  fi
37680else
37681  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
37682fi
37683
37684test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
37685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
37686$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
37687if ${lt_cv_path_mainfest_tool+:} false; then :
37688  $as_echo_n "(cached) " >&6
37689else
37690  lt_cv_path_mainfest_tool=no
37691  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
37692  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
37693  cat conftest.err >&5
37694  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
37695    lt_cv_path_mainfest_tool=yes
37696  fi
37697  rm -f conftest*
37698fi
37699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
37700$as_echo "$lt_cv_path_mainfest_tool" >&6; }
37701if test yes != "$lt_cv_path_mainfest_tool"; then
37702  MANIFEST_TOOL=:
37703fi
37704
37705
37706
37707
37708
37709
37710  case $host_os in
37711    rhapsody* | darwin*)
37712    if test -n "$ac_tool_prefix"; then
37713  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
37714set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
37715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37716$as_echo_n "checking for $ac_word... " >&6; }
37717if ${ac_cv_prog_DSYMUTIL+:} false; then :
37718  $as_echo_n "(cached) " >&6
37719else
37720  if test -n "$DSYMUTIL"; then
37721  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
37722else
37723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37724for as_dir in $PATH
37725do
37726  IFS=$as_save_IFS
37727  test -z "$as_dir" && as_dir=.
37728    for ac_exec_ext in '' $ac_executable_extensions; do
37729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37730    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
37731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37732    break 2
37733  fi
37734done
37735  done
37736IFS=$as_save_IFS
37737
37738fi
37739fi
37740DSYMUTIL=$ac_cv_prog_DSYMUTIL
37741if test -n "$DSYMUTIL"; then
37742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
37743$as_echo "$DSYMUTIL" >&6; }
37744else
37745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37746$as_echo "no" >&6; }
37747fi
37748
37749
37750fi
37751if test -z "$ac_cv_prog_DSYMUTIL"; then
37752  ac_ct_DSYMUTIL=$DSYMUTIL
37753  # Extract the first word of "dsymutil", so it can be a program name with args.
37754set dummy dsymutil; ac_word=$2
37755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37756$as_echo_n "checking for $ac_word... " >&6; }
37757if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
37758  $as_echo_n "(cached) " >&6
37759else
37760  if test -n "$ac_ct_DSYMUTIL"; then
37761  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
37762else
37763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37764for as_dir in $PATH
37765do
37766  IFS=$as_save_IFS
37767  test -z "$as_dir" && as_dir=.
37768    for ac_exec_ext in '' $ac_executable_extensions; do
37769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37770    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
37771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37772    break 2
37773  fi
37774done
37775  done
37776IFS=$as_save_IFS
37777
37778fi
37779fi
37780ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
37781if test -n "$ac_ct_DSYMUTIL"; then
37782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
37783$as_echo "$ac_ct_DSYMUTIL" >&6; }
37784else
37785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37786$as_echo "no" >&6; }
37787fi
37788
37789  if test "x$ac_ct_DSYMUTIL" = x; then
37790    DSYMUTIL=":"
37791  else
37792    case $cross_compiling:$ac_tool_warned in
37793yes:)
37794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37796ac_tool_warned=yes ;;
37797esac
37798    DSYMUTIL=$ac_ct_DSYMUTIL
37799  fi
37800else
37801  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
37802fi
37803
37804    if test -n "$ac_tool_prefix"; then
37805  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
37806set dummy ${ac_tool_prefix}nmedit; ac_word=$2
37807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37808$as_echo_n "checking for $ac_word... " >&6; }
37809if ${ac_cv_prog_NMEDIT+:} false; then :
37810  $as_echo_n "(cached) " >&6
37811else
37812  if test -n "$NMEDIT"; then
37813  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
37814else
37815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37816for as_dir in $PATH
37817do
37818  IFS=$as_save_IFS
37819  test -z "$as_dir" && as_dir=.
37820    for ac_exec_ext in '' $ac_executable_extensions; do
37821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37822    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
37823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37824    break 2
37825  fi
37826done
37827  done
37828IFS=$as_save_IFS
37829
37830fi
37831fi
37832NMEDIT=$ac_cv_prog_NMEDIT
37833if test -n "$NMEDIT"; then
37834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
37835$as_echo "$NMEDIT" >&6; }
37836else
37837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37838$as_echo "no" >&6; }
37839fi
37840
37841
37842fi
37843if test -z "$ac_cv_prog_NMEDIT"; then
37844  ac_ct_NMEDIT=$NMEDIT
37845  # Extract the first word of "nmedit", so it can be a program name with args.
37846set dummy nmedit; ac_word=$2
37847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37848$as_echo_n "checking for $ac_word... " >&6; }
37849if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
37850  $as_echo_n "(cached) " >&6
37851else
37852  if test -n "$ac_ct_NMEDIT"; then
37853  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
37854else
37855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37856for as_dir in $PATH
37857do
37858  IFS=$as_save_IFS
37859  test -z "$as_dir" && as_dir=.
37860    for ac_exec_ext in '' $ac_executable_extensions; do
37861  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37862    ac_cv_prog_ac_ct_NMEDIT="nmedit"
37863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37864    break 2
37865  fi
37866done
37867  done
37868IFS=$as_save_IFS
37869
37870fi
37871fi
37872ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
37873if test -n "$ac_ct_NMEDIT"; then
37874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
37875$as_echo "$ac_ct_NMEDIT" >&6; }
37876else
37877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37878$as_echo "no" >&6; }
37879fi
37880
37881  if test "x$ac_ct_NMEDIT" = x; then
37882    NMEDIT=":"
37883  else
37884    case $cross_compiling:$ac_tool_warned in
37885yes:)
37886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37888ac_tool_warned=yes ;;
37889esac
37890    NMEDIT=$ac_ct_NMEDIT
37891  fi
37892else
37893  NMEDIT="$ac_cv_prog_NMEDIT"
37894fi
37895
37896    if test -n "$ac_tool_prefix"; then
37897  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
37898set dummy ${ac_tool_prefix}lipo; ac_word=$2
37899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37900$as_echo_n "checking for $ac_word... " >&6; }
37901if ${ac_cv_prog_LIPO+:} false; then :
37902  $as_echo_n "(cached) " >&6
37903else
37904  if test -n "$LIPO"; then
37905  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
37906else
37907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37908for as_dir in $PATH
37909do
37910  IFS=$as_save_IFS
37911  test -z "$as_dir" && as_dir=.
37912    for ac_exec_ext in '' $ac_executable_extensions; do
37913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37914    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
37915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37916    break 2
37917  fi
37918done
37919  done
37920IFS=$as_save_IFS
37921
37922fi
37923fi
37924LIPO=$ac_cv_prog_LIPO
37925if test -n "$LIPO"; then
37926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
37927$as_echo "$LIPO" >&6; }
37928else
37929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37930$as_echo "no" >&6; }
37931fi
37932
37933
37934fi
37935if test -z "$ac_cv_prog_LIPO"; then
37936  ac_ct_LIPO=$LIPO
37937  # Extract the first word of "lipo", so it can be a program name with args.
37938set dummy lipo; ac_word=$2
37939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37940$as_echo_n "checking for $ac_word... " >&6; }
37941if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
37942  $as_echo_n "(cached) " >&6
37943else
37944  if test -n "$ac_ct_LIPO"; then
37945  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
37946else
37947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37948for as_dir in $PATH
37949do
37950  IFS=$as_save_IFS
37951  test -z "$as_dir" && as_dir=.
37952    for ac_exec_ext in '' $ac_executable_extensions; do
37953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37954    ac_cv_prog_ac_ct_LIPO="lipo"
37955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37956    break 2
37957  fi
37958done
37959  done
37960IFS=$as_save_IFS
37961
37962fi
37963fi
37964ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
37965if test -n "$ac_ct_LIPO"; then
37966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
37967$as_echo "$ac_ct_LIPO" >&6; }
37968else
37969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37970$as_echo "no" >&6; }
37971fi
37972
37973  if test "x$ac_ct_LIPO" = x; then
37974    LIPO=":"
37975  else
37976    case $cross_compiling:$ac_tool_warned in
37977yes:)
37978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37980ac_tool_warned=yes ;;
37981esac
37982    LIPO=$ac_ct_LIPO
37983  fi
37984else
37985  LIPO="$ac_cv_prog_LIPO"
37986fi
37987
37988    if test -n "$ac_tool_prefix"; then
37989  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
37990set dummy ${ac_tool_prefix}otool; ac_word=$2
37991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37992$as_echo_n "checking for $ac_word... " >&6; }
37993if ${ac_cv_prog_OTOOL+:} false; then :
37994  $as_echo_n "(cached) " >&6
37995else
37996  if test -n "$OTOOL"; then
37997  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
37998else
37999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38000for as_dir in $PATH
38001do
38002  IFS=$as_save_IFS
38003  test -z "$as_dir" && as_dir=.
38004    for ac_exec_ext in '' $ac_executable_extensions; do
38005  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38006    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
38007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38008    break 2
38009  fi
38010done
38011  done
38012IFS=$as_save_IFS
38013
38014fi
38015fi
38016OTOOL=$ac_cv_prog_OTOOL
38017if test -n "$OTOOL"; then
38018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
38019$as_echo "$OTOOL" >&6; }
38020else
38021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38022$as_echo "no" >&6; }
38023fi
38024
38025
38026fi
38027if test -z "$ac_cv_prog_OTOOL"; then
38028  ac_ct_OTOOL=$OTOOL
38029  # Extract the first word of "otool", so it can be a program name with args.
38030set dummy otool; ac_word=$2
38031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38032$as_echo_n "checking for $ac_word... " >&6; }
38033if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
38034  $as_echo_n "(cached) " >&6
38035else
38036  if test -n "$ac_ct_OTOOL"; then
38037  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
38038else
38039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38040for as_dir in $PATH
38041do
38042  IFS=$as_save_IFS
38043  test -z "$as_dir" && as_dir=.
38044    for ac_exec_ext in '' $ac_executable_extensions; do
38045  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38046    ac_cv_prog_ac_ct_OTOOL="otool"
38047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38048    break 2
38049  fi
38050done
38051  done
38052IFS=$as_save_IFS
38053
38054fi
38055fi
38056ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
38057if test -n "$ac_ct_OTOOL"; then
38058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
38059$as_echo "$ac_ct_OTOOL" >&6; }
38060else
38061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38062$as_echo "no" >&6; }
38063fi
38064
38065  if test "x$ac_ct_OTOOL" = x; then
38066    OTOOL=":"
38067  else
38068    case $cross_compiling:$ac_tool_warned in
38069yes:)
38070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38072ac_tool_warned=yes ;;
38073esac
38074    OTOOL=$ac_ct_OTOOL
38075  fi
38076else
38077  OTOOL="$ac_cv_prog_OTOOL"
38078fi
38079
38080    if test -n "$ac_tool_prefix"; then
38081  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
38082set dummy ${ac_tool_prefix}otool64; ac_word=$2
38083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38084$as_echo_n "checking for $ac_word... " >&6; }
38085if ${ac_cv_prog_OTOOL64+:} false; then :
38086  $as_echo_n "(cached) " >&6
38087else
38088  if test -n "$OTOOL64"; then
38089  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
38090else
38091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38092for as_dir in $PATH
38093do
38094  IFS=$as_save_IFS
38095  test -z "$as_dir" && as_dir=.
38096    for ac_exec_ext in '' $ac_executable_extensions; do
38097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38098    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
38099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38100    break 2
38101  fi
38102done
38103  done
38104IFS=$as_save_IFS
38105
38106fi
38107fi
38108OTOOL64=$ac_cv_prog_OTOOL64
38109if test -n "$OTOOL64"; then
38110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
38111$as_echo "$OTOOL64" >&6; }
38112else
38113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38114$as_echo "no" >&6; }
38115fi
38116
38117
38118fi
38119if test -z "$ac_cv_prog_OTOOL64"; then
38120  ac_ct_OTOOL64=$OTOOL64
38121  # Extract the first word of "otool64", so it can be a program name with args.
38122set dummy otool64; ac_word=$2
38123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38124$as_echo_n "checking for $ac_word... " >&6; }
38125if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
38126  $as_echo_n "(cached) " >&6
38127else
38128  if test -n "$ac_ct_OTOOL64"; then
38129  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
38130else
38131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38132for as_dir in $PATH
38133do
38134  IFS=$as_save_IFS
38135  test -z "$as_dir" && as_dir=.
38136    for ac_exec_ext in '' $ac_executable_extensions; do
38137  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38138    ac_cv_prog_ac_ct_OTOOL64="otool64"
38139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38140    break 2
38141  fi
38142done
38143  done
38144IFS=$as_save_IFS
38145
38146fi
38147fi
38148ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
38149if test -n "$ac_ct_OTOOL64"; then
38150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
38151$as_echo "$ac_ct_OTOOL64" >&6; }
38152else
38153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38154$as_echo "no" >&6; }
38155fi
38156
38157  if test "x$ac_ct_OTOOL64" = x; then
38158    OTOOL64=":"
38159  else
38160    case $cross_compiling:$ac_tool_warned in
38161yes:)
38162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38164ac_tool_warned=yes ;;
38165esac
38166    OTOOL64=$ac_ct_OTOOL64
38167  fi
38168else
38169  OTOOL64="$ac_cv_prog_OTOOL64"
38170fi
38171
38172
38173
38174
38175
38176
38177
38178
38179
38180
38181
38182
38183
38184
38185
38186
38187
38188
38189
38190
38191
38192
38193
38194
38195
38196
38197
38198    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
38199$as_echo_n "checking for -single_module linker flag... " >&6; }
38200if ${lt_cv_apple_cc_single_mod+:} false; then :
38201  $as_echo_n "(cached) " >&6
38202else
38203  lt_cv_apple_cc_single_mod=no
38204      if test -z "$LT_MULTI_MODULE"; then
38205	# By default we will add the -single_module flag. You can override
38206	# by either setting the environment variable LT_MULTI_MODULE
38207	# non-empty at configure time, or by adding -multi_module to the
38208	# link flags.
38209	rm -rf libconftest.dylib*
38210	echo "int foo(void){return 1;}" > conftest.c
38211	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
38212-dynamiclib -Wl,-single_module conftest.c" >&5
38213	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
38214	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
38215        _lt_result=$?
38216	# If there is a non-empty error log, and "single_module"
38217	# appears in it, assume the flag caused a linker warning
38218        if test -s conftest.err && $GREP single_module conftest.err; then
38219	  cat conftest.err >&5
38220	# Otherwise, if the output was created with a 0 exit code from
38221	# the compiler, it worked.
38222	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
38223	  lt_cv_apple_cc_single_mod=yes
38224	else
38225	  cat conftest.err >&5
38226	fi
38227	rm -rf libconftest.dylib*
38228	rm -f conftest.*
38229      fi
38230fi
38231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
38232$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
38233
38234    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
38235$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
38236if ${lt_cv_ld_exported_symbols_list+:} false; then :
38237  $as_echo_n "(cached) " >&6
38238else
38239  lt_cv_ld_exported_symbols_list=no
38240      save_LDFLAGS=$LDFLAGS
38241      echo "_main" > conftest.sym
38242      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
38243      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38244/* end confdefs.h.  */
38245
38246int
38247main ()
38248{
38249
38250  ;
38251  return 0;
38252}
38253_ACEOF
38254if ac_fn_c_try_link "$LINENO"; then :
38255  lt_cv_ld_exported_symbols_list=yes
38256else
38257  lt_cv_ld_exported_symbols_list=no
38258fi
38259rm -f core conftest.err conftest.$ac_objext \
38260    conftest$ac_exeext conftest.$ac_ext
38261	LDFLAGS=$save_LDFLAGS
38262
38263fi
38264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
38265$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
38266
38267    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
38268$as_echo_n "checking for -force_load linker flag... " >&6; }
38269if ${lt_cv_ld_force_load+:} false; then :
38270  $as_echo_n "(cached) " >&6
38271else
38272  lt_cv_ld_force_load=no
38273      cat > conftest.c << _LT_EOF
38274int forced_loaded() { return 2;}
38275_LT_EOF
38276      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
38277      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
38278      echo "$AR cru libconftest.a conftest.o" >&5
38279      $AR cru libconftest.a conftest.o 2>&5
38280      echo "$RANLIB libconftest.a" >&5
38281      $RANLIB libconftest.a 2>&5
38282      cat > conftest.c << _LT_EOF
38283int main() { return 0;}
38284_LT_EOF
38285      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
38286      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
38287      _lt_result=$?
38288      if test -s conftest.err && $GREP force_load conftest.err; then
38289	cat conftest.err >&5
38290      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
38291	lt_cv_ld_force_load=yes
38292      else
38293	cat conftest.err >&5
38294      fi
38295        rm -f conftest.err libconftest.a conftest conftest.c
38296        rm -rf conftest.dSYM
38297
38298fi
38299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
38300$as_echo "$lt_cv_ld_force_load" >&6; }
38301    case $host_os in
38302    rhapsody* | darwin1.[012])
38303      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
38304    darwin1.*)
38305      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
38306    darwin*) # darwin 5.x on
38307      # if running on 10.5 or later, the deployment target defaults
38308      # to the OS version, if on x86, and 10.4, the deployment
38309      # target defaults to 10.4. Don't you love it?
38310      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
38311	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
38312	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
38313	10.[012][,.]*)
38314	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
38315	10.*)
38316	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
38317      esac
38318    ;;
38319  esac
38320    if test yes = "$lt_cv_apple_cc_single_mod"; then
38321      _lt_dar_single_mod='$single_module'
38322    fi
38323    if test yes = "$lt_cv_ld_exported_symbols_list"; then
38324      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
38325    else
38326      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
38327    fi
38328    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
38329      _lt_dsymutil='~$DSYMUTIL $lib || :'
38330    else
38331      _lt_dsymutil=
38332    fi
38333    ;;
38334  esac
38335
38336# func_munge_path_list VARIABLE PATH
38337# -----------------------------------
38338# VARIABLE is name of variable containing _space_ separated list of
38339# directories to be munged by the contents of PATH, which is string
38340# having a format:
38341# "DIR[:DIR]:"
38342#       string "DIR[ DIR]" will be prepended to VARIABLE
38343# ":DIR[:DIR]"
38344#       string "DIR[ DIR]" will be appended to VARIABLE
38345# "DIRP[:DIRP]::[DIRA:]DIRA"
38346#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
38347#       "DIRA[ DIRA]" will be appended to VARIABLE
38348# "DIR[:DIR]"
38349#       VARIABLE will be replaced by "DIR[ DIR]"
38350func_munge_path_list ()
38351{
38352    case x$2 in
38353    x)
38354        ;;
38355    *:)
38356        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
38357        ;;
38358    x:*)
38359        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
38360        ;;
38361    *::*)
38362        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
38363        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
38364        ;;
38365    *)
38366        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
38367        ;;
38368    esac
38369}
38370
38371for ac_header in dlfcn.h
38372do :
38373  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
38374"
38375if test "x$ac_cv_header_dlfcn_h" = xyes; then :
38376  cat >>confdefs.h <<_ACEOF
38377#define HAVE_DLFCN_H 1
38378_ACEOF
38379
38380fi
38381
38382done
38383
38384
38385
38386
38387
38388# Set options
38389
38390
38391
38392        enable_dlopen=no
38393
38394
38395  enable_win32_dll=no
38396
38397
38398            # Check whether --enable-shared was given.
38399if test "${enable_shared+set}" = set; then :
38400  enableval=$enable_shared; p=${PACKAGE-default}
38401    case $enableval in
38402    yes) enable_shared=yes ;;
38403    no) enable_shared=no ;;
38404    *)
38405      enable_shared=no
38406      # Look at the argument we got.  We use all the common list separators.
38407      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
38408      for pkg in $enableval; do
38409	IFS=$lt_save_ifs
38410	if test "X$pkg" = "X$p"; then
38411	  enable_shared=yes
38412	fi
38413      done
38414      IFS=$lt_save_ifs
38415      ;;
38416    esac
38417else
38418  enable_shared=yes
38419fi
38420
38421
38422
38423
38424
38425
38426
38427
38428
38429  # Check whether --enable-static was given.
38430if test "${enable_static+set}" = set; then :
38431  enableval=$enable_static; p=${PACKAGE-default}
38432    case $enableval in
38433    yes) enable_static=yes ;;
38434    no) enable_static=no ;;
38435    *)
38436     enable_static=no
38437      # Look at the argument we got.  We use all the common list separators.
38438      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
38439      for pkg in $enableval; do
38440	IFS=$lt_save_ifs
38441	if test "X$pkg" = "X$p"; then
38442	  enable_static=yes
38443	fi
38444      done
38445      IFS=$lt_save_ifs
38446      ;;
38447    esac
38448else
38449  enable_static=yes
38450fi
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461# Check whether --with-pic was given.
38462if test "${with_pic+set}" = set; then :
38463  withval=$with_pic; lt_p=${PACKAGE-default}
38464    case $withval in
38465    yes|no) pic_mode=$withval ;;
38466    *)
38467      pic_mode=default
38468      # Look at the argument we got.  We use all the common list separators.
38469      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
38470      for lt_pkg in $withval; do
38471	IFS=$lt_save_ifs
38472	if test "X$lt_pkg" = "X$lt_p"; then
38473	  pic_mode=yes
38474	fi
38475      done
38476      IFS=$lt_save_ifs
38477      ;;
38478    esac
38479else
38480  pic_mode=default
38481fi
38482
38483
38484
38485
38486
38487
38488
38489
38490  # Check whether --enable-fast-install was given.
38491if test "${enable_fast_install+set}" = set; then :
38492  enableval=$enable_fast_install; p=${PACKAGE-default}
38493    case $enableval in
38494    yes) enable_fast_install=yes ;;
38495    no) enable_fast_install=no ;;
38496    *)
38497      enable_fast_install=no
38498      # Look at the argument we got.  We use all the common list separators.
38499      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
38500      for pkg in $enableval; do
38501	IFS=$lt_save_ifs
38502	if test "X$pkg" = "X$p"; then
38503	  enable_fast_install=yes
38504	fi
38505      done
38506      IFS=$lt_save_ifs
38507      ;;
38508    esac
38509else
38510  enable_fast_install=yes
38511fi
38512
38513
38514
38515
38516
38517
38518
38519
38520  shared_archive_member_spec=
38521case $host,$enable_shared in
38522power*-*-aix[5-9]*,yes)
38523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
38524$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
38525
38526# Check whether --with-aix-soname was given.
38527if test "${with_aix_soname+set}" = set; then :
38528  withval=$with_aix_soname; case $withval in
38529    aix|svr4|both)
38530      ;;
38531    *)
38532      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
38533      ;;
38534    esac
38535    lt_cv_with_aix_soname=$with_aix_soname
38536else
38537  if ${lt_cv_with_aix_soname+:} false; then :
38538  $as_echo_n "(cached) " >&6
38539else
38540  lt_cv_with_aix_soname=aix
38541fi
38542
38543    with_aix_soname=$lt_cv_with_aix_soname
38544fi
38545
38546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
38547$as_echo "$with_aix_soname" >&6; }
38548  if test aix != "$with_aix_soname"; then
38549    # For the AIX way of multilib, we name the shared archive member
38550    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
38551    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
38552    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
38553    # the AIX toolchain works better with OBJECT_MODE set (default 32).
38554    if test 64 = "${OBJECT_MODE-32}"; then
38555      shared_archive_member_spec=shr_64
38556    else
38557      shared_archive_member_spec=shr
38558    fi
38559  fi
38560  ;;
38561*)
38562  with_aix_soname=aix
38563  ;;
38564esac
38565
38566
38567
38568
38569
38570
38571
38572
38573
38574
38575# This can be used to rebuild libtool when needed
38576LIBTOOL_DEPS=$ltmain
38577
38578# Always use our own libtool.
38579LIBTOOL='$(SHELL) $(top_builddir)/libtool'
38580
38581
38582
38583
38584
38585
38586
38587
38588
38589
38590
38591
38592
38593
38594
38595
38596
38597
38598
38599
38600
38601
38602
38603
38604
38605
38606
38607
38608
38609
38610test -z "$LN_S" && LN_S="ln -s"
38611
38612
38613
38614
38615
38616
38617
38618
38619
38620
38621
38622
38623
38624
38625if test -n "${ZSH_VERSION+set}"; then
38626   setopt NO_GLOB_SUBST
38627fi
38628
38629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
38630$as_echo_n "checking for objdir... " >&6; }
38631if ${lt_cv_objdir+:} false; then :
38632  $as_echo_n "(cached) " >&6
38633else
38634  rm -f .libs 2>/dev/null
38635mkdir .libs 2>/dev/null
38636if test -d .libs; then
38637  lt_cv_objdir=.libs
38638else
38639  # MS-DOS does not allow filenames that begin with a dot.
38640  lt_cv_objdir=_libs
38641fi
38642rmdir .libs 2>/dev/null
38643fi
38644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
38645$as_echo "$lt_cv_objdir" >&6; }
38646objdir=$lt_cv_objdir
38647
38648
38649
38650
38651
38652cat >>confdefs.h <<_ACEOF
38653#define LT_OBJDIR "$lt_cv_objdir/"
38654_ACEOF
38655
38656
38657
38658
38659case $host_os in
38660aix3*)
38661  # AIX sometimes has problems with the GCC collect2 program.  For some
38662  # reason, if we set the COLLECT_NAMES environment variable, the problems
38663  # vanish in a puff of smoke.
38664  if test set != "${COLLECT_NAMES+set}"; then
38665    COLLECT_NAMES=
38666    export COLLECT_NAMES
38667  fi
38668  ;;
38669esac
38670
38671# Global variables:
38672ofile=libtool
38673can_build_shared=yes
38674
38675# All known linkers require a '.a' archive for static linking (except MSVC,
38676# which needs '.lib').
38677libext=a
38678
38679with_gnu_ld=$lt_cv_prog_gnu_ld
38680
38681old_CC=$CC
38682old_CFLAGS=$CFLAGS
38683
38684# Set sane defaults for various variables
38685test -z "$CC" && CC=cc
38686test -z "$LTCC" && LTCC=$CC
38687test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
38688test -z "$LD" && LD=ld
38689test -z "$ac_objext" && ac_objext=o
38690
38691func_cc_basename $compiler
38692cc_basename=$func_cc_basename_result
38693
38694
38695# Only perform the check for file, if the check method requires it
38696test -z "$MAGIC_CMD" && MAGIC_CMD=file
38697case $deplibs_check_method in
38698file_magic*)
38699  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
38700    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
38701$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
38702if ${lt_cv_path_MAGIC_CMD+:} false; then :
38703  $as_echo_n "(cached) " >&6
38704else
38705  case $MAGIC_CMD in
38706[\\/*] |  ?:[\\/]*)
38707  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
38708  ;;
38709*)
38710  lt_save_MAGIC_CMD=$MAGIC_CMD
38711  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
38712  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
38713  for ac_dir in $ac_dummy; do
38714    IFS=$lt_save_ifs
38715    test -z "$ac_dir" && ac_dir=.
38716    if test -f "$ac_dir/${ac_tool_prefix}file"; then
38717      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
38718      if test -n "$file_magic_test_file"; then
38719	case $deplibs_check_method in
38720	"file_magic "*)
38721	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
38722	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
38723	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
38724	    $EGREP "$file_magic_regex" > /dev/null; then
38725	    :
38726	  else
38727	    cat <<_LT_EOF 1>&2
38728
38729*** Warning: the command libtool uses to detect shared libraries,
38730*** $file_magic_cmd, produces output that libtool cannot recognize.
38731*** The result is that libtool may fail to recognize shared libraries
38732*** as such.  This will affect the creation of libtool libraries that
38733*** depend on shared libraries, but programs linked with such libtool
38734*** libraries will work regardless of this problem.  Nevertheless, you
38735*** may want to report the problem to your system manager and/or to
38736*** bug-libtool@gnu.org
38737
38738_LT_EOF
38739	  fi ;;
38740	esac
38741      fi
38742      break
38743    fi
38744  done
38745  IFS=$lt_save_ifs
38746  MAGIC_CMD=$lt_save_MAGIC_CMD
38747  ;;
38748esac
38749fi
38750
38751MAGIC_CMD=$lt_cv_path_MAGIC_CMD
38752if test -n "$MAGIC_CMD"; then
38753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
38754$as_echo "$MAGIC_CMD" >&6; }
38755else
38756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38757$as_echo "no" >&6; }
38758fi
38759
38760
38761
38762
38763
38764if test -z "$lt_cv_path_MAGIC_CMD"; then
38765  if test -n "$ac_tool_prefix"; then
38766    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
38767$as_echo_n "checking for file... " >&6; }
38768if ${lt_cv_path_MAGIC_CMD+:} false; then :
38769  $as_echo_n "(cached) " >&6
38770else
38771  case $MAGIC_CMD in
38772[\\/*] |  ?:[\\/]*)
38773  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
38774  ;;
38775*)
38776  lt_save_MAGIC_CMD=$MAGIC_CMD
38777  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
38778  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
38779  for ac_dir in $ac_dummy; do
38780    IFS=$lt_save_ifs
38781    test -z "$ac_dir" && ac_dir=.
38782    if test -f "$ac_dir/file"; then
38783      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
38784      if test -n "$file_magic_test_file"; then
38785	case $deplibs_check_method in
38786	"file_magic "*)
38787	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
38788	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
38789	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
38790	    $EGREP "$file_magic_regex" > /dev/null; then
38791	    :
38792	  else
38793	    cat <<_LT_EOF 1>&2
38794
38795*** Warning: the command libtool uses to detect shared libraries,
38796*** $file_magic_cmd, produces output that libtool cannot recognize.
38797*** The result is that libtool may fail to recognize shared libraries
38798*** as such.  This will affect the creation of libtool libraries that
38799*** depend on shared libraries, but programs linked with such libtool
38800*** libraries will work regardless of this problem.  Nevertheless, you
38801*** may want to report the problem to your system manager and/or to
38802*** bug-libtool@gnu.org
38803
38804_LT_EOF
38805	  fi ;;
38806	esac
38807      fi
38808      break
38809    fi
38810  done
38811  IFS=$lt_save_ifs
38812  MAGIC_CMD=$lt_save_MAGIC_CMD
38813  ;;
38814esac
38815fi
38816
38817MAGIC_CMD=$lt_cv_path_MAGIC_CMD
38818if test -n "$MAGIC_CMD"; then
38819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
38820$as_echo "$MAGIC_CMD" >&6; }
38821else
38822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38823$as_echo "no" >&6; }
38824fi
38825
38826
38827  else
38828    MAGIC_CMD=:
38829  fi
38830fi
38831
38832  fi
38833  ;;
38834esac
38835
38836# Use C for the default configuration in the libtool script
38837
38838lt_save_CC=$CC
38839ac_ext=c
38840ac_cpp='$CPP $CPPFLAGS'
38841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38843ac_compiler_gnu=$ac_cv_c_compiler_gnu
38844
38845
38846# Source file extension for C test sources.
38847ac_ext=c
38848
38849# Object file extension for compiled C test sources.
38850objext=o
38851objext=$objext
38852
38853# Code to be used in simple compile tests
38854lt_simple_compile_test_code="int some_variable = 0;"
38855
38856# Code to be used in simple link tests
38857lt_simple_link_test_code='int main(){return(0);}'
38858
38859
38860
38861
38862
38863
38864
38865# If no C compiler was specified, use CC.
38866LTCC=${LTCC-"$CC"}
38867
38868# If no C compiler flags were specified, use CFLAGS.
38869LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
38870
38871# Allow CC to be a program name with arguments.
38872compiler=$CC
38873
38874# Save the default compiler, since it gets overwritten when the other
38875# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
38876compiler_DEFAULT=$CC
38877
38878# save warnings/boilerplate of simple test code
38879ac_outfile=conftest.$ac_objext
38880echo "$lt_simple_compile_test_code" >conftest.$ac_ext
38881eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
38882_lt_compiler_boilerplate=`cat conftest.err`
38883$RM conftest*
38884
38885ac_outfile=conftest.$ac_objext
38886echo "$lt_simple_link_test_code" >conftest.$ac_ext
38887eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
38888_lt_linker_boilerplate=`cat conftest.err`
38889$RM -r conftest*
38890
38891
38892## CAVEAT EMPTOR:
38893## There is no encapsulation within the following macros, do not change
38894## the running order or otherwise move them around unless you know exactly
38895## what you are doing...
38896if test -n "$compiler"; then
38897
38898lt_prog_compiler_no_builtin_flag=
38899
38900if test yes = "$GCC"; then
38901  case $cc_basename in
38902  nvcc*)
38903    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
38904  *)
38905    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
38906  esac
38907
38908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
38909$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
38910if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
38911  $as_echo_n "(cached) " >&6
38912else
38913  lt_cv_prog_compiler_rtti_exceptions=no
38914   ac_outfile=conftest.$ac_objext
38915   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
38916   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
38917   # Insert the option either (1) after the last *FLAGS variable, or
38918   # (2) before a word containing "conftest.", or (3) at the end.
38919   # Note that $ac_compile itself does not contain backslashes and begins
38920   # with a dollar sign (not a hyphen), so the echo should work correctly.
38921   # The option is referenced via a variable to avoid confusing sed.
38922   lt_compile=`echo "$ac_compile" | $SED \
38923   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
38924   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
38925   -e 's:$: $lt_compiler_flag:'`
38926   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
38927   (eval "$lt_compile" 2>conftest.err)
38928   ac_status=$?
38929   cat conftest.err >&5
38930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38931   if (exit $ac_status) && test -s "$ac_outfile"; then
38932     # The compiler can only warn and ignore the option if not recognized
38933     # So say no if there are warnings other than the usual output.
38934     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
38935     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
38936     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
38937       lt_cv_prog_compiler_rtti_exceptions=yes
38938     fi
38939   fi
38940   $RM conftest*
38941
38942fi
38943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
38944$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
38945
38946if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
38947    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
38948else
38949    :
38950fi
38951
38952fi
38953
38954
38955
38956
38957
38958
38959  lt_prog_compiler_wl=
38960lt_prog_compiler_pic=
38961lt_prog_compiler_static=
38962
38963
38964  if test yes = "$GCC"; then
38965    lt_prog_compiler_wl='-Wl,'
38966    lt_prog_compiler_static='-static'
38967
38968    case $host_os in
38969      aix*)
38970      # All AIX code is PIC.
38971      if test ia64 = "$host_cpu"; then
38972	# AIX 5 now supports IA64 processor
38973	lt_prog_compiler_static='-Bstatic'
38974      fi
38975      lt_prog_compiler_pic='-fPIC'
38976      ;;
38977
38978    amigaos*)
38979      case $host_cpu in
38980      powerpc)
38981            # see comment about AmigaOS4 .so support
38982            lt_prog_compiler_pic='-fPIC'
38983        ;;
38984      m68k)
38985            # FIXME: we need at least 68020 code to build shared libraries, but
38986            # adding the '-m68020' flag to GCC prevents building anything better,
38987            # like '-m68040'.
38988            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
38989        ;;
38990      esac
38991      ;;
38992
38993    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
38994      # PIC is the default for these OSes.
38995      ;;
38996
38997    mingw* | cygwin* | pw32* | os2* | cegcc*)
38998      # This hack is so that the source file can tell whether it is being
38999      # built for inclusion in a dll (and should export symbols for example).
39000      # Although the cygwin gcc ignores -fPIC, still need this for old-style
39001      # (--disable-auto-import) libraries
39002      lt_prog_compiler_pic='-DDLL_EXPORT'
39003      case $host_os in
39004      os2*)
39005	lt_prog_compiler_static='$wl-static'
39006	;;
39007      esac
39008      ;;
39009
39010    darwin* | rhapsody*)
39011      # PIC is the default on this platform
39012      # Common symbols not allowed in MH_DYLIB files
39013      lt_prog_compiler_pic='-fno-common'
39014      ;;
39015
39016    haiku*)
39017      # PIC is the default for Haiku.
39018      # The "-static" flag exists, but is broken.
39019      lt_prog_compiler_static=
39020      ;;
39021
39022    hpux*)
39023      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
39024      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
39025      # sets the default TLS model and affects inlining.
39026      case $host_cpu in
39027      hppa*64*)
39028	# +Z the default
39029	;;
39030      *)
39031	lt_prog_compiler_pic='-fPIC'
39032	;;
39033      esac
39034      ;;
39035
39036    interix[3-9]*)
39037      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
39038      # Instead, we relocate shared libraries at runtime.
39039      ;;
39040
39041    msdosdjgpp*)
39042      # Just because we use GCC doesn't mean we suddenly get shared libraries
39043      # on systems that don't support them.
39044      lt_prog_compiler_can_build_shared=no
39045      enable_shared=no
39046      ;;
39047
39048    *nto* | *qnx*)
39049      # QNX uses GNU C++, but need to define -shared option too, otherwise
39050      # it will coredump.
39051      lt_prog_compiler_pic='-fPIC -shared'
39052      ;;
39053
39054    sysv4*MP*)
39055      if test -d /usr/nec; then
39056	lt_prog_compiler_pic=-Kconform_pic
39057      fi
39058      ;;
39059
39060    *)
39061      lt_prog_compiler_pic='-fPIC'
39062      ;;
39063    esac
39064
39065    case $cc_basename in
39066    nvcc*) # Cuda Compiler Driver 2.2
39067      lt_prog_compiler_wl='-Xlinker '
39068      if test -n "$lt_prog_compiler_pic"; then
39069        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
39070      fi
39071      ;;
39072    esac
39073  else
39074    # PORTME Check for flag to pass linker flags through the system compiler.
39075    case $host_os in
39076    aix*)
39077      lt_prog_compiler_wl='-Wl,'
39078      if test ia64 = "$host_cpu"; then
39079	# AIX 5 now supports IA64 processor
39080	lt_prog_compiler_static='-Bstatic'
39081      else
39082	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
39083      fi
39084      ;;
39085
39086    darwin* | rhapsody*)
39087      # PIC is the default on this platform
39088      # Common symbols not allowed in MH_DYLIB files
39089      lt_prog_compiler_pic='-fno-common'
39090      case $cc_basename in
39091      nagfor*)
39092        # NAG Fortran compiler
39093        lt_prog_compiler_wl='-Wl,-Wl,,'
39094        lt_prog_compiler_pic='-PIC'
39095        lt_prog_compiler_static='-Bstatic'
39096        ;;
39097      esac
39098      ;;
39099
39100    mingw* | cygwin* | pw32* | os2* | cegcc*)
39101      # This hack is so that the source file can tell whether it is being
39102      # built for inclusion in a dll (and should export symbols for example).
39103      lt_prog_compiler_pic='-DDLL_EXPORT'
39104      case $host_os in
39105      os2*)
39106	lt_prog_compiler_static='$wl-static'
39107	;;
39108      esac
39109      ;;
39110
39111    hpux9* | hpux10* | hpux11*)
39112      lt_prog_compiler_wl='-Wl,'
39113      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
39114      # not for PA HP-UX.
39115      case $host_cpu in
39116      hppa*64*|ia64*)
39117	# +Z the default
39118	;;
39119      *)
39120	lt_prog_compiler_pic='+Z'
39121	;;
39122      esac
39123      # Is there a better lt_prog_compiler_static that works with the bundled CC?
39124      lt_prog_compiler_static='$wl-a ${wl}archive'
39125      ;;
39126
39127    irix5* | irix6* | nonstopux*)
39128      lt_prog_compiler_wl='-Wl,'
39129      # PIC (with -KPIC) is the default.
39130      lt_prog_compiler_static='-non_shared'
39131      ;;
39132
39133    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
39134      case $cc_basename in
39135      # old Intel for x86_64, which still supported -KPIC.
39136      ecc*)
39137	lt_prog_compiler_wl='-Wl,'
39138	lt_prog_compiler_pic='-KPIC'
39139	lt_prog_compiler_static='-static'
39140        ;;
39141      # icc used to be incompatible with GCC.
39142      # ICC 10 doesn't accept -KPIC any more.
39143      icc* | ifort*)
39144	lt_prog_compiler_wl='-Wl,'
39145	lt_prog_compiler_pic='-fPIC'
39146	lt_prog_compiler_static='-static'
39147        ;;
39148      # Lahey Fortran 8.1.
39149      lf95*)
39150	lt_prog_compiler_wl='-Wl,'
39151	lt_prog_compiler_pic='--shared'
39152	lt_prog_compiler_static='--static'
39153	;;
39154      nagfor*)
39155	# NAG Fortran compiler
39156	lt_prog_compiler_wl='-Wl,-Wl,,'
39157	lt_prog_compiler_pic='-PIC'
39158	lt_prog_compiler_static='-Bstatic'
39159	;;
39160      tcc*)
39161	# Fabrice Bellard et al's Tiny C Compiler
39162	lt_prog_compiler_wl='-Wl,'
39163	lt_prog_compiler_pic='-fPIC'
39164	lt_prog_compiler_static='-static'
39165	;;
39166      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
39167        # Portland Group compilers (*not* the Pentium gcc compiler,
39168	# which looks to be a dead project)
39169	lt_prog_compiler_wl='-Wl,'
39170	lt_prog_compiler_pic='-fpic'
39171	lt_prog_compiler_static='-Bstatic'
39172        ;;
39173      ccc*)
39174        lt_prog_compiler_wl='-Wl,'
39175        # All Alpha code is PIC.
39176        lt_prog_compiler_static='-non_shared'
39177        ;;
39178      xl* | bgxl* | bgf* | mpixl*)
39179	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
39180	lt_prog_compiler_wl='-Wl,'
39181	lt_prog_compiler_pic='-qpic'
39182	lt_prog_compiler_static='-qstaticlink'
39183	;;
39184      *)
39185	case `$CC -V 2>&1 | sed 5q` in
39186	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
39187	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
39188	  lt_prog_compiler_pic='-KPIC'
39189	  lt_prog_compiler_static='-Bstatic'
39190	  lt_prog_compiler_wl=''
39191	  ;;
39192	*Sun\ F* | *Sun*Fortran*)
39193	  lt_prog_compiler_pic='-KPIC'
39194	  lt_prog_compiler_static='-Bstatic'
39195	  lt_prog_compiler_wl='-Qoption ld '
39196	  ;;
39197	*Sun\ C*)
39198	  # Sun C 5.9
39199	  lt_prog_compiler_pic='-KPIC'
39200	  lt_prog_compiler_static='-Bstatic'
39201	  lt_prog_compiler_wl='-Wl,'
39202	  ;;
39203        *Intel*\ [CF]*Compiler*)
39204	  lt_prog_compiler_wl='-Wl,'
39205	  lt_prog_compiler_pic='-fPIC'
39206	  lt_prog_compiler_static='-static'
39207	  ;;
39208	*Portland\ Group*)
39209	  lt_prog_compiler_wl='-Wl,'
39210	  lt_prog_compiler_pic='-fpic'
39211	  lt_prog_compiler_static='-Bstatic'
39212	  ;;
39213	esac
39214	;;
39215      esac
39216      ;;
39217
39218    newsos6)
39219      lt_prog_compiler_pic='-KPIC'
39220      lt_prog_compiler_static='-Bstatic'
39221      ;;
39222
39223    *nto* | *qnx*)
39224      # QNX uses GNU C++, but need to define -shared option too, otherwise
39225      # it will coredump.
39226      lt_prog_compiler_pic='-fPIC -shared'
39227      ;;
39228
39229    osf3* | osf4* | osf5*)
39230      lt_prog_compiler_wl='-Wl,'
39231      # All OSF/1 code is PIC.
39232      lt_prog_compiler_static='-non_shared'
39233      ;;
39234
39235    rdos*)
39236      lt_prog_compiler_static='-non_shared'
39237      ;;
39238
39239    solaris*)
39240      lt_prog_compiler_pic='-KPIC'
39241      lt_prog_compiler_static='-Bstatic'
39242      case $cc_basename in
39243      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
39244	lt_prog_compiler_wl='-Qoption ld ';;
39245      *)
39246	lt_prog_compiler_wl='-Wl,';;
39247      esac
39248      ;;
39249
39250    sunos4*)
39251      lt_prog_compiler_wl='-Qoption ld '
39252      lt_prog_compiler_pic='-PIC'
39253      lt_prog_compiler_static='-Bstatic'
39254      ;;
39255
39256    sysv4 | sysv4.2uw2* | sysv4.3*)
39257      lt_prog_compiler_wl='-Wl,'
39258      lt_prog_compiler_pic='-KPIC'
39259      lt_prog_compiler_static='-Bstatic'
39260      ;;
39261
39262    sysv4*MP*)
39263      if test -d /usr/nec; then
39264	lt_prog_compiler_pic='-Kconform_pic'
39265	lt_prog_compiler_static='-Bstatic'
39266      fi
39267      ;;
39268
39269    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
39270      lt_prog_compiler_wl='-Wl,'
39271      lt_prog_compiler_pic='-KPIC'
39272      lt_prog_compiler_static='-Bstatic'
39273      ;;
39274
39275    unicos*)
39276      lt_prog_compiler_wl='-Wl,'
39277      lt_prog_compiler_can_build_shared=no
39278      ;;
39279
39280    uts4*)
39281      lt_prog_compiler_pic='-pic'
39282      lt_prog_compiler_static='-Bstatic'
39283      ;;
39284
39285    *)
39286      lt_prog_compiler_can_build_shared=no
39287      ;;
39288    esac
39289  fi
39290
39291case $host_os in
39292  # For platforms that do not support PIC, -DPIC is meaningless:
39293  *djgpp*)
39294    lt_prog_compiler_pic=
39295    ;;
39296  *)
39297    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
39298    ;;
39299esac
39300
39301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
39302$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
39303if ${lt_cv_prog_compiler_pic+:} false; then :
39304  $as_echo_n "(cached) " >&6
39305else
39306  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
39307fi
39308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
39309$as_echo "$lt_cv_prog_compiler_pic" >&6; }
39310lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
39311
39312#
39313# Check to make sure the PIC flag actually works.
39314#
39315if test -n "$lt_prog_compiler_pic"; then
39316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
39317$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
39318if ${lt_cv_prog_compiler_pic_works+:} false; then :
39319  $as_echo_n "(cached) " >&6
39320else
39321  lt_cv_prog_compiler_pic_works=no
39322   ac_outfile=conftest.$ac_objext
39323   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
39324   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
39325   # Insert the option either (1) after the last *FLAGS variable, or
39326   # (2) before a word containing "conftest.", or (3) at the end.
39327   # Note that $ac_compile itself does not contain backslashes and begins
39328   # with a dollar sign (not a hyphen), so the echo should work correctly.
39329   # The option is referenced via a variable to avoid confusing sed.
39330   lt_compile=`echo "$ac_compile" | $SED \
39331   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
39332   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
39333   -e 's:$: $lt_compiler_flag:'`
39334   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
39335   (eval "$lt_compile" 2>conftest.err)
39336   ac_status=$?
39337   cat conftest.err >&5
39338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39339   if (exit $ac_status) && test -s "$ac_outfile"; then
39340     # The compiler can only warn and ignore the option if not recognized
39341     # So say no if there are warnings other than the usual output.
39342     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
39343     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
39344     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
39345       lt_cv_prog_compiler_pic_works=yes
39346     fi
39347   fi
39348   $RM conftest*
39349
39350fi
39351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
39352$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
39353
39354if test yes = "$lt_cv_prog_compiler_pic_works"; then
39355    case $lt_prog_compiler_pic in
39356     "" | " "*) ;;
39357     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
39358     esac
39359else
39360    lt_prog_compiler_pic=
39361     lt_prog_compiler_can_build_shared=no
39362fi
39363
39364fi
39365
39366
39367
39368
39369
39370
39371
39372
39373
39374
39375
39376#
39377# Check to make sure the static flag actually works.
39378#
39379wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
39380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
39381$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
39382if ${lt_cv_prog_compiler_static_works+:} false; then :
39383  $as_echo_n "(cached) " >&6
39384else
39385  lt_cv_prog_compiler_static_works=no
39386   save_LDFLAGS=$LDFLAGS
39387   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
39388   echo "$lt_simple_link_test_code" > conftest.$ac_ext
39389   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
39390     # The linker can only warn and ignore the option if not recognized
39391     # So say no if there are warnings
39392     if test -s conftest.err; then
39393       # Append any errors to the config.log.
39394       cat conftest.err 1>&5
39395       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
39396       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
39397       if diff conftest.exp conftest.er2 >/dev/null; then
39398         lt_cv_prog_compiler_static_works=yes
39399       fi
39400     else
39401       lt_cv_prog_compiler_static_works=yes
39402     fi
39403   fi
39404   $RM -r conftest*
39405   LDFLAGS=$save_LDFLAGS
39406
39407fi
39408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
39409$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
39410
39411if test yes = "$lt_cv_prog_compiler_static_works"; then
39412    :
39413else
39414    lt_prog_compiler_static=
39415fi
39416
39417
39418
39419
39420
39421
39422
39423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
39424$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
39425if ${lt_cv_prog_compiler_c_o+:} false; then :
39426  $as_echo_n "(cached) " >&6
39427else
39428  lt_cv_prog_compiler_c_o=no
39429   $RM -r conftest 2>/dev/null
39430   mkdir conftest
39431   cd conftest
39432   mkdir out
39433   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
39434
39435   lt_compiler_flag="-o out/conftest2.$ac_objext"
39436   # Insert the option either (1) after the last *FLAGS variable, or
39437   # (2) before a word containing "conftest.", or (3) at the end.
39438   # Note that $ac_compile itself does not contain backslashes and begins
39439   # with a dollar sign (not a hyphen), so the echo should work correctly.
39440   lt_compile=`echo "$ac_compile" | $SED \
39441   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
39442   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
39443   -e 's:$: $lt_compiler_flag:'`
39444   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
39445   (eval "$lt_compile" 2>out/conftest.err)
39446   ac_status=$?
39447   cat out/conftest.err >&5
39448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39449   if (exit $ac_status) && test -s out/conftest2.$ac_objext
39450   then
39451     # The compiler can only warn and ignore the option if not recognized
39452     # So say no if there are warnings
39453     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
39454     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
39455     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
39456       lt_cv_prog_compiler_c_o=yes
39457     fi
39458   fi
39459   chmod u+w . 2>&5
39460   $RM conftest*
39461   # SGI C++ compiler will create directory out/ii_files/ for
39462   # template instantiation
39463   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
39464   $RM out/* && rmdir out
39465   cd ..
39466   $RM -r conftest
39467   $RM conftest*
39468
39469fi
39470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
39471$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
39472
39473
39474
39475
39476
39477
39478  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
39479$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
39480if ${lt_cv_prog_compiler_c_o+:} false; then :
39481  $as_echo_n "(cached) " >&6
39482else
39483  lt_cv_prog_compiler_c_o=no
39484   $RM -r conftest 2>/dev/null
39485   mkdir conftest
39486   cd conftest
39487   mkdir out
39488   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
39489
39490   lt_compiler_flag="-o out/conftest2.$ac_objext"
39491   # Insert the option either (1) after the last *FLAGS variable, or
39492   # (2) before a word containing "conftest.", or (3) at the end.
39493   # Note that $ac_compile itself does not contain backslashes and begins
39494   # with a dollar sign (not a hyphen), so the echo should work correctly.
39495   lt_compile=`echo "$ac_compile" | $SED \
39496   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
39497   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
39498   -e 's:$: $lt_compiler_flag:'`
39499   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
39500   (eval "$lt_compile" 2>out/conftest.err)
39501   ac_status=$?
39502   cat out/conftest.err >&5
39503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39504   if (exit $ac_status) && test -s out/conftest2.$ac_objext
39505   then
39506     # The compiler can only warn and ignore the option if not recognized
39507     # So say no if there are warnings
39508     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
39509     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
39510     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
39511       lt_cv_prog_compiler_c_o=yes
39512     fi
39513   fi
39514   chmod u+w . 2>&5
39515   $RM conftest*
39516   # SGI C++ compiler will create directory out/ii_files/ for
39517   # template instantiation
39518   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
39519   $RM out/* && rmdir out
39520   cd ..
39521   $RM -r conftest
39522   $RM conftest*
39523
39524fi
39525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
39526$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
39527
39528
39529
39530
39531hard_links=nottested
39532if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
39533  # do not overwrite the value of need_locks provided by the user
39534  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
39535$as_echo_n "checking if we can lock with hard links... " >&6; }
39536  hard_links=yes
39537  $RM conftest*
39538  ln conftest.a conftest.b 2>/dev/null && hard_links=no
39539  touch conftest.a
39540  ln conftest.a conftest.b 2>&5 || hard_links=no
39541  ln conftest.a conftest.b 2>/dev/null && hard_links=no
39542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
39543$as_echo "$hard_links" >&6; }
39544  if test no = "$hard_links"; then
39545    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
39546$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
39547    need_locks=warn
39548  fi
39549else
39550  need_locks=no
39551fi
39552
39553
39554
39555
39556
39557
39558  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
39559$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
39560
39561  runpath_var=
39562  allow_undefined_flag=
39563  always_export_symbols=no
39564  archive_cmds=
39565  archive_expsym_cmds=
39566  compiler_needs_object=no
39567  enable_shared_with_static_runtimes=no
39568  export_dynamic_flag_spec=
39569  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
39570  hardcode_automatic=no
39571  hardcode_direct=no
39572  hardcode_direct_absolute=no
39573  hardcode_libdir_flag_spec=
39574  hardcode_libdir_separator=
39575  hardcode_minus_L=no
39576  hardcode_shlibpath_var=unsupported
39577  inherit_rpath=no
39578  link_all_deplibs=unknown
39579  module_cmds=
39580  module_expsym_cmds=
39581  old_archive_from_new_cmds=
39582  old_archive_from_expsyms_cmds=
39583  thread_safe_flag_spec=
39584  whole_archive_flag_spec=
39585  # include_expsyms should be a list of space-separated symbols to be *always*
39586  # included in the symbol list
39587  include_expsyms=
39588  # exclude_expsyms can be an extended regexp of symbols to exclude
39589  # it will be wrapped by ' (' and ')$', so one must not match beginning or
39590  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
39591  # as well as any symbol that contains 'd'.
39592  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
39593  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
39594  # platforms (ab)use it in PIC code, but their linkers get confused if
39595  # the symbol is explicitly referenced.  Since portable code cannot
39596  # rely on this symbol name, it's probably fine to never include it in
39597  # preloaded symbol tables.
39598  # Exclude shared library initialization/finalization symbols.
39599  extract_expsyms_cmds=
39600
39601  case $host_os in
39602  cygwin* | mingw* | pw32* | cegcc*)
39603    # FIXME: the MSVC++ port hasn't been tested in a loooong time
39604    # When not using gcc, we currently assume that we are using
39605    # Microsoft Visual C++.
39606    if test yes != "$GCC"; then
39607      with_gnu_ld=no
39608    fi
39609    ;;
39610  interix*)
39611    # we just hope/assume this is gcc and not c89 (= MSVC++)
39612    with_gnu_ld=yes
39613    ;;
39614  openbsd* | bitrig*)
39615    with_gnu_ld=no
39616    ;;
39617  esac
39618
39619  ld_shlibs=yes
39620
39621  # On some targets, GNU ld is compatible enough with the native linker
39622  # that we're better off using the native interface for both.
39623  lt_use_gnu_ld_interface=no
39624  if test yes = "$with_gnu_ld"; then
39625    case $host_os in
39626      aix*)
39627	# The AIX port of GNU ld has always aspired to compatibility
39628	# with the native linker.  However, as the warning in the GNU ld
39629	# block says, versions before 2.19.5* couldn't really create working
39630	# shared libraries, regardless of the interface used.
39631	case `$LD -v 2>&1` in
39632	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
39633	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
39634	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
39635	  *)
39636	    lt_use_gnu_ld_interface=yes
39637	    ;;
39638	esac
39639	;;
39640      *)
39641	lt_use_gnu_ld_interface=yes
39642	;;
39643    esac
39644  fi
39645
39646  if test yes = "$lt_use_gnu_ld_interface"; then
39647    # If archive_cmds runs LD, not CC, wlarc should be empty
39648    wlarc='$wl'
39649
39650    # Set some defaults for GNU ld with shared library support. These
39651    # are reset later if shared libraries are not supported. Putting them
39652    # here allows them to be overridden if necessary.
39653    runpath_var=LD_RUN_PATH
39654    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
39655    export_dynamic_flag_spec='$wl--export-dynamic'
39656    # ancient GNU ld didn't support --whole-archive et. al.
39657    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
39658      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
39659    else
39660      whole_archive_flag_spec=
39661    fi
39662    supports_anon_versioning=no
39663    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
39664      *GNU\ gold*) supports_anon_versioning=yes ;;
39665      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
39666      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
39667      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
39668      *\ 2.11.*) ;; # other 2.11 versions
39669      *) supports_anon_versioning=yes ;;
39670    esac
39671
39672    # See if GNU ld supports shared libraries.
39673    case $host_os in
39674    aix[3-9]*)
39675      # On AIX/PPC, the GNU linker is very broken
39676      if test ia64 != "$host_cpu"; then
39677	ld_shlibs=no
39678	cat <<_LT_EOF 1>&2
39679
39680*** Warning: the GNU linker, at least up to release 2.19, is reported
39681*** to be unable to reliably create shared libraries on AIX.
39682*** Therefore, libtool is disabling shared libraries support.  If you
39683*** really care for shared libraries, you may want to install binutils
39684*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
39685*** You will then need to restart the configuration process.
39686
39687_LT_EOF
39688      fi
39689      ;;
39690
39691    amigaos*)
39692      case $host_cpu in
39693      powerpc)
39694            # see comment about AmigaOS4 .so support
39695            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
39696            archive_expsym_cmds=''
39697        ;;
39698      m68k)
39699            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)'
39700            hardcode_libdir_flag_spec='-L$libdir'
39701            hardcode_minus_L=yes
39702        ;;
39703      esac
39704      ;;
39705
39706    beos*)
39707      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
39708	allow_undefined_flag=unsupported
39709	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
39710	# support --undefined.  This deserves some investigation.  FIXME
39711	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
39712      else
39713	ld_shlibs=no
39714      fi
39715      ;;
39716
39717    cygwin* | mingw* | pw32* | cegcc*)
39718      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
39719      # as there is no search path for DLLs.
39720      hardcode_libdir_flag_spec='-L$libdir'
39721      export_dynamic_flag_spec='$wl--export-all-symbols'
39722      allow_undefined_flag=unsupported
39723      always_export_symbols=no
39724      enable_shared_with_static_runtimes=yes
39725      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'
39726      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
39727
39728      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
39729        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
39730	# If the export-symbols file already is a .def file, use it as
39731	# is; otherwise, prepend EXPORTS...
39732	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
39733          cp $export_symbols $output_objdir/$soname.def;
39734        else
39735          echo EXPORTS > $output_objdir/$soname.def;
39736          cat $export_symbols >> $output_objdir/$soname.def;
39737        fi~
39738        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
39739      else
39740	ld_shlibs=no
39741      fi
39742      ;;
39743
39744    haiku*)
39745      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
39746      link_all_deplibs=yes
39747      ;;
39748
39749    os2*)
39750      hardcode_libdir_flag_spec='-L$libdir'
39751      hardcode_minus_L=yes
39752      allow_undefined_flag=unsupported
39753      shrext_cmds=.dll
39754      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
39755	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
39756	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
39757	$ECHO EXPORTS >> $output_objdir/$libname.def~
39758	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
39759	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
39760	emximp -o $lib $output_objdir/$libname.def'
39761      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
39762	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
39763	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
39764	$ECHO EXPORTS >> $output_objdir/$libname.def~
39765	prefix_cmds="$SED"~
39766	if test EXPORTS = "`$SED 1q $export_symbols`"; then
39767	  prefix_cmds="$prefix_cmds -e 1d";
39768	fi~
39769	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
39770	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
39771	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
39772	emximp -o $lib $output_objdir/$libname.def'
39773      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
39774      enable_shared_with_static_runtimes=yes
39775      ;;
39776
39777    interix[3-9]*)
39778      hardcode_direct=no
39779      hardcode_shlibpath_var=no
39780      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
39781      export_dynamic_flag_spec='$wl-E'
39782      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
39783      # Instead, shared libraries are loaded at an image base (0x10000000 by
39784      # default) and relocated if they conflict, which is a slow very memory
39785      # consuming and fragmenting process.  To avoid this, we pick a random,
39786      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
39787      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
39788      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
39789      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'
39790      ;;
39791
39792    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
39793      tmp_diet=no
39794      if test linux-dietlibc = "$host_os"; then
39795	case $cc_basename in
39796	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
39797	esac
39798      fi
39799      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
39800	 && test no = "$tmp_diet"
39801      then
39802	tmp_addflag=' $pic_flag'
39803	tmp_sharedflag='-shared'
39804	case $cc_basename,$host_cpu in
39805        pgcc*)				# Portland Group C compiler
39806	  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'
39807	  tmp_addflag=' $pic_flag'
39808	  ;;
39809	pgf77* | pgf90* | pgf95* | pgfortran*)
39810					# Portland Group f77 and f90 compilers
39811	  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'
39812	  tmp_addflag=' $pic_flag -Mnomain' ;;
39813	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
39814	  tmp_addflag=' -i_dynamic' ;;
39815	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
39816	  tmp_addflag=' -i_dynamic -nofor_main' ;;
39817	ifc* | ifort*)			# Intel Fortran compiler
39818	  tmp_addflag=' -nofor_main' ;;
39819	lf95*)				# Lahey Fortran 8.1
39820	  whole_archive_flag_spec=
39821	  tmp_sharedflag='--shared' ;;
39822        nagfor*)                        # NAGFOR 5.3
39823          tmp_sharedflag='-Wl,-shared' ;;
39824	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
39825	  tmp_sharedflag='-qmkshrobj'
39826	  tmp_addflag= ;;
39827	nvcc*)	# Cuda Compiler Driver 2.2
39828	  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'
39829	  compiler_needs_object=yes
39830	  ;;
39831	esac
39832	case `$CC -V 2>&1 | sed 5q` in
39833	*Sun\ C*)			# Sun C 5.9
39834	  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'
39835	  compiler_needs_object=yes
39836	  tmp_sharedflag='-G' ;;
39837	*Sun\ F*)			# Sun Fortran 8.3
39838	  tmp_sharedflag='-G' ;;
39839	esac
39840	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
39841
39842        if test yes = "$supports_anon_versioning"; then
39843          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
39844            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
39845            echo "local: *; };" >> $output_objdir/$libname.ver~
39846            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
39847        fi
39848
39849	case $cc_basename in
39850	tcc*)
39851	  export_dynamic_flag_spec='-rdynamic'
39852	  ;;
39853	xlf* | bgf* | bgxlf* | mpixlf*)
39854	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
39855	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
39856	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
39857	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
39858	  if test yes = "$supports_anon_versioning"; then
39859	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
39860              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
39861              echo "local: *; };" >> $output_objdir/$libname.ver~
39862              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
39863	  fi
39864	  ;;
39865	esac
39866      else
39867        ld_shlibs=no
39868      fi
39869      ;;
39870
39871    netbsd*)
39872      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
39873	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
39874	wlarc=
39875      else
39876	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
39877	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
39878      fi
39879      ;;
39880
39881    solaris*)
39882      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
39883	ld_shlibs=no
39884	cat <<_LT_EOF 1>&2
39885
39886*** Warning: The releases 2.8.* of the GNU linker cannot reliably
39887*** create shared libraries on Solaris systems.  Therefore, libtool
39888*** is disabling shared libraries support.  We urge you to upgrade GNU
39889*** binutils to release 2.9.1 or newer.  Another option is to modify
39890*** your PATH or compiler configuration so that the native linker is
39891*** used, and then restart.
39892
39893_LT_EOF
39894      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
39895	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
39896	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
39897      else
39898	ld_shlibs=no
39899      fi
39900      ;;
39901
39902    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
39903      case `$LD -v 2>&1` in
39904        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
39905	ld_shlibs=no
39906	cat <<_LT_EOF 1>&2
39907
39908*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
39909*** reliably create shared libraries on SCO systems.  Therefore, libtool
39910*** is disabling shared libraries support.  We urge you to upgrade GNU
39911*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
39912*** your PATH or compiler configuration so that the native linker is
39913*** used, and then restart.
39914
39915_LT_EOF
39916	;;
39917	*)
39918	  # For security reasons, it is highly recommended that you always
39919	  # use absolute paths for naming shared libraries, and exclude the
39920	  # DT_RUNPATH tag from executables and libraries.  But doing so
39921	  # requires that you compile everything twice, which is a pain.
39922	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
39923	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
39924	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
39925	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
39926	  else
39927	    ld_shlibs=no
39928	  fi
39929	;;
39930      esac
39931      ;;
39932
39933    sunos4*)
39934      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
39935      wlarc=
39936      hardcode_direct=yes
39937      hardcode_shlibpath_var=no
39938      ;;
39939
39940    *)
39941      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
39942	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
39943	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
39944      else
39945	ld_shlibs=no
39946      fi
39947      ;;
39948    esac
39949
39950    if test no = "$ld_shlibs"; then
39951      runpath_var=
39952      hardcode_libdir_flag_spec=
39953      export_dynamic_flag_spec=
39954      whole_archive_flag_spec=
39955    fi
39956  else
39957    # PORTME fill in a description of your system's linker (not GNU ld)
39958    case $host_os in
39959    aix3*)
39960      allow_undefined_flag=unsupported
39961      always_export_symbols=yes
39962      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'
39963      # Note: this linker hardcodes the directories in LIBPATH if there
39964      # are no directories specified by -L.
39965      hardcode_minus_L=yes
39966      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
39967	# Neither direct hardcoding nor static linking is supported with a
39968	# broken collect2.
39969	hardcode_direct=unsupported
39970      fi
39971      ;;
39972
39973    aix[4-9]*)
39974      if test ia64 = "$host_cpu"; then
39975	# On IA64, the linker does run time linking by default, so we don't
39976	# have to do anything special.
39977	aix_use_runtimelinking=no
39978	exp_sym_flag='-Bexport'
39979	no_entry_flag=
39980      else
39981	# If we're using GNU nm, then we don't want the "-C" option.
39982	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
39983	# Without the "-l" option, or with the "-B" option, AIX nm treats
39984	# weak defined symbols like other global defined symbols, whereas
39985	# GNU nm marks them as "W".
39986	# While the 'weak' keyword is ignored in the Export File, we need
39987	# it in the Import File for the 'aix-soname' feature, so we have
39988	# to replace the "-B" option with "-P" for AIX nm.
39989	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
39990	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
39991	else
39992	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
39993	fi
39994	aix_use_runtimelinking=no
39995
39996	# Test if we are trying to use run time linking or normal
39997	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
39998	# have runtime linking enabled, and use it for executables.
39999	# For shared libraries, we enable/disable runtime linking
40000	# depending on the kind of the shared library created -
40001	# when "with_aix_soname,aix_use_runtimelinking" is:
40002	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
40003	# "aix,yes"  lib.so          shared, rtl:yes, for executables
40004	#            lib.a           static archive
40005	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
40006	#            lib.a(lib.so.V) shared, rtl:no,  for executables
40007	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
40008	#            lib.a(lib.so.V) shared, rtl:no
40009	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
40010	#            lib.a           static archive
40011	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
40012	  for ld_flag in $LDFLAGS; do
40013	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
40014	    aix_use_runtimelinking=yes
40015	    break
40016	  fi
40017	  done
40018	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
40019	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
40020	    # so we don't have lib.a shared libs to link our executables.
40021	    # We have to force runtime linking in this case.
40022	    aix_use_runtimelinking=yes
40023	    LDFLAGS="$LDFLAGS -Wl,-brtl"
40024	  fi
40025	  ;;
40026	esac
40027
40028	exp_sym_flag='-bexport'
40029	no_entry_flag='-bnoentry'
40030      fi
40031
40032      # When large executables or shared objects are built, AIX ld can
40033      # have problems creating the table of contents.  If linking a library
40034      # or program results in "error TOC overflow" add -mminimal-toc to
40035      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
40036      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
40037
40038      archive_cmds=''
40039      hardcode_direct=yes
40040      hardcode_direct_absolute=yes
40041      hardcode_libdir_separator=':'
40042      link_all_deplibs=yes
40043      file_list_spec='$wl-f,'
40044      case $with_aix_soname,$aix_use_runtimelinking in
40045      aix,*) ;; # traditional, no import file
40046      svr4,* | *,yes) # use import file
40047	# The Import File defines what to hardcode.
40048	hardcode_direct=no
40049	hardcode_direct_absolute=no
40050	;;
40051      esac
40052
40053      if test yes = "$GCC"; then
40054	case $host_os in aix4.[012]|aix4.[012].*)
40055	# We only want to do this on AIX 4.2 and lower, the check
40056	# below for broken collect2 doesn't work under 4.3+
40057	  collect2name=`$CC -print-prog-name=collect2`
40058	  if test -f "$collect2name" &&
40059	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
40060	  then
40061	  # We have reworked collect2
40062	  :
40063	  else
40064	  # We have old collect2
40065	  hardcode_direct=unsupported
40066	  # It fails to find uninstalled libraries when the uninstalled
40067	  # path is not listed in the libpath.  Setting hardcode_minus_L
40068	  # to unsupported forces relinking
40069	  hardcode_minus_L=yes
40070	  hardcode_libdir_flag_spec='-L$libdir'
40071	  hardcode_libdir_separator=
40072	  fi
40073	  ;;
40074	esac
40075	shared_flag='-shared'
40076	if test yes = "$aix_use_runtimelinking"; then
40077	  shared_flag="$shared_flag "'$wl-G'
40078	fi
40079	# Need to ensure runtime linking is disabled for the traditional
40080	# shared library, or the linker may eventually find shared libraries
40081	# /with/ Import File - we do not want to mix them.
40082	shared_flag_aix='-shared'
40083	shared_flag_svr4='-shared $wl-G'
40084      else
40085	# not using gcc
40086	if test ia64 = "$host_cpu"; then
40087	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
40088	# chokes on -Wl,-G. The following line is correct:
40089	  shared_flag='-G'
40090	else
40091	  if test yes = "$aix_use_runtimelinking"; then
40092	    shared_flag='$wl-G'
40093	  else
40094	    shared_flag='$wl-bM:SRE'
40095	  fi
40096	  shared_flag_aix='$wl-bM:SRE'
40097	  shared_flag_svr4='$wl-G'
40098	fi
40099      fi
40100
40101      export_dynamic_flag_spec='$wl-bexpall'
40102      # It seems that -bexpall does not export symbols beginning with
40103      # underscore (_), so it is better to generate a list of symbols to export.
40104      always_export_symbols=yes
40105      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
40106	# Warning - without using the other runtime loading flags (-brtl),
40107	# -berok will link without error, but may produce a broken library.
40108	allow_undefined_flag='-berok'
40109        # Determine the default libpath from the value encoded in an
40110        # empty executable.
40111        if test set = "${lt_cv_aix_libpath+set}"; then
40112  aix_libpath=$lt_cv_aix_libpath
40113else
40114  if ${lt_cv_aix_libpath_+:} false; then :
40115  $as_echo_n "(cached) " >&6
40116else
40117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40118/* end confdefs.h.  */
40119
40120int
40121main ()
40122{
40123
40124  ;
40125  return 0;
40126}
40127_ACEOF
40128if ac_fn_c_try_link "$LINENO"; then :
40129
40130  lt_aix_libpath_sed='
40131      /Import File Strings/,/^$/ {
40132	  /^0/ {
40133	      s/^0  *\([^ ]*\) *$/\1/
40134	      p
40135	  }
40136      }'
40137  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40138  # Check for a 64-bit object if we didn't find anything.
40139  if test -z "$lt_cv_aix_libpath_"; then
40140    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40141  fi
40142fi
40143rm -f core conftest.err conftest.$ac_objext \
40144    conftest$ac_exeext conftest.$ac_ext
40145  if test -z "$lt_cv_aix_libpath_"; then
40146    lt_cv_aix_libpath_=/usr/lib:/lib
40147  fi
40148
40149fi
40150
40151  aix_libpath=$lt_cv_aix_libpath_
40152fi
40153
40154        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
40155        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
40156      else
40157	if test ia64 = "$host_cpu"; then
40158	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
40159	  allow_undefined_flag="-z nodefs"
40160	  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"
40161	else
40162	 # Determine the default libpath from the value encoded in an
40163	 # empty executable.
40164	 if test set = "${lt_cv_aix_libpath+set}"; then
40165  aix_libpath=$lt_cv_aix_libpath
40166else
40167  if ${lt_cv_aix_libpath_+:} false; then :
40168  $as_echo_n "(cached) " >&6
40169else
40170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40171/* end confdefs.h.  */
40172
40173int
40174main ()
40175{
40176
40177  ;
40178  return 0;
40179}
40180_ACEOF
40181if ac_fn_c_try_link "$LINENO"; then :
40182
40183  lt_aix_libpath_sed='
40184      /Import File Strings/,/^$/ {
40185	  /^0/ {
40186	      s/^0  *\([^ ]*\) *$/\1/
40187	      p
40188	  }
40189      }'
40190  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40191  # Check for a 64-bit object if we didn't find anything.
40192  if test -z "$lt_cv_aix_libpath_"; then
40193    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40194  fi
40195fi
40196rm -f core conftest.err conftest.$ac_objext \
40197    conftest$ac_exeext conftest.$ac_ext
40198  if test -z "$lt_cv_aix_libpath_"; then
40199    lt_cv_aix_libpath_=/usr/lib:/lib
40200  fi
40201
40202fi
40203
40204  aix_libpath=$lt_cv_aix_libpath_
40205fi
40206
40207	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
40208	  # Warning - without using the other run time loading flags,
40209	  # -berok will link without error, but may produce a broken library.
40210	  no_undefined_flag=' $wl-bernotok'
40211	  allow_undefined_flag=' $wl-berok'
40212	  if test yes = "$with_gnu_ld"; then
40213	    # We only use this code for GNU lds that support --whole-archive.
40214	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
40215	  else
40216	    # Exported symbols can be pulled into shared objects from archives
40217	    whole_archive_flag_spec='$convenience'
40218	  fi
40219	  archive_cmds_need_lc=yes
40220	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
40221	  # -brtl affects multiple linker settings, -berok does not and is overridden later
40222	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
40223	  if test svr4 != "$with_aix_soname"; then
40224	    # This is similar to how AIX traditionally builds its shared libraries.
40225	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
40226	  fi
40227	  if test aix != "$with_aix_soname"; then
40228	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
40229	  else
40230	    # used by -dlpreopen to get the symbols
40231	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
40232	  fi
40233	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
40234	fi
40235      fi
40236      ;;
40237
40238    amigaos*)
40239      case $host_cpu in
40240      powerpc)
40241            # see comment about AmigaOS4 .so support
40242            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
40243            archive_expsym_cmds=''
40244        ;;
40245      m68k)
40246            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)'
40247            hardcode_libdir_flag_spec='-L$libdir'
40248            hardcode_minus_L=yes
40249        ;;
40250      esac
40251      ;;
40252
40253    bsdi[45]*)
40254      export_dynamic_flag_spec=-rdynamic
40255      ;;
40256
40257    cygwin* | mingw* | pw32* | cegcc*)
40258      # When not using gcc, we currently assume that we are using
40259      # Microsoft Visual C++.
40260      # hardcode_libdir_flag_spec is actually meaningless, as there is
40261      # no search path for DLLs.
40262      case $cc_basename in
40263      cl*)
40264	# Native MSVC
40265	hardcode_libdir_flag_spec=' '
40266	allow_undefined_flag=unsupported
40267	always_export_symbols=yes
40268	file_list_spec='@'
40269	# Tell ltmain to make .lib files, not .a files.
40270	libext=lib
40271	# Tell ltmain to make .dll files, not .so files.
40272	shrext_cmds=.dll
40273	# FIXME: Setting linknames here is a bad hack.
40274	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
40275	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
40276            cp "$export_symbols" "$output_objdir/$soname.def";
40277            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
40278          else
40279            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
40280          fi~
40281          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
40282          linknames='
40283	# The linker will not automatically build a static lib if we build a DLL.
40284	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
40285	enable_shared_with_static_runtimes=yes
40286	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
40287	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
40288	# Don't use ranlib
40289	old_postinstall_cmds='chmod 644 $oldlib'
40290	postlink_cmds='lt_outputfile="@OUTPUT@"~
40291          lt_tool_outputfile="@TOOL_OUTPUT@"~
40292          case $lt_outputfile in
40293            *.exe|*.EXE) ;;
40294            *)
40295              lt_outputfile=$lt_outputfile.exe
40296              lt_tool_outputfile=$lt_tool_outputfile.exe
40297              ;;
40298          esac~
40299          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
40300            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
40301            $RM "$lt_outputfile.manifest";
40302          fi'
40303	;;
40304      *)
40305	# Assume MSVC wrapper
40306	hardcode_libdir_flag_spec=' '
40307	allow_undefined_flag=unsupported
40308	# Tell ltmain to make .lib files, not .a files.
40309	libext=lib
40310	# Tell ltmain to make .dll files, not .so files.
40311	shrext_cmds=.dll
40312	# FIXME: Setting linknames here is a bad hack.
40313	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
40314	# The linker will automatically build a .lib file if we build a DLL.
40315	old_archive_from_new_cmds='true'
40316	# FIXME: Should let the user specify the lib program.
40317	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
40318	enable_shared_with_static_runtimes=yes
40319	;;
40320      esac
40321      ;;
40322
40323    darwin* | rhapsody*)
40324
40325
40326  archive_cmds_need_lc=no
40327  hardcode_direct=no
40328  hardcode_automatic=yes
40329  hardcode_shlibpath_var=unsupported
40330  if test yes = "$lt_cv_ld_force_load"; then
40331    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\"`'
40332
40333  else
40334    whole_archive_flag_spec=''
40335  fi
40336  link_all_deplibs=yes
40337  allow_undefined_flag=$_lt_dar_allow_undefined
40338  case $cc_basename in
40339     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
40340     *) _lt_dar_can_shared=$GCC ;;
40341  esac
40342  if test yes = "$_lt_dar_can_shared"; then
40343    output_verbose_link_cmd=func_echo_all
40344    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
40345    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
40346    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"
40347    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"
40348
40349  else
40350  ld_shlibs=no
40351  fi
40352
40353      ;;
40354
40355    dgux*)
40356      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40357      hardcode_libdir_flag_spec='-L$libdir'
40358      hardcode_shlibpath_var=no
40359      ;;
40360
40361    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
40362    # support.  Future versions do this automatically, but an explicit c++rt0.o
40363    # does not break anything, and helps significantly (at the cost of a little
40364    # extra space).
40365    freebsd2.2*)
40366      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
40367      hardcode_libdir_flag_spec='-R$libdir'
40368      hardcode_direct=yes
40369      hardcode_shlibpath_var=no
40370      ;;
40371
40372    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
40373    freebsd2.*)
40374      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
40375      hardcode_direct=yes
40376      hardcode_minus_L=yes
40377      hardcode_shlibpath_var=no
40378      ;;
40379
40380    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
40381    freebsd* | dragonfly*)
40382      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
40383      hardcode_libdir_flag_spec='-R$libdir'
40384      hardcode_direct=yes
40385      hardcode_shlibpath_var=no
40386      ;;
40387
40388    hpux9*)
40389      if test yes = "$GCC"; then
40390	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
40391      else
40392	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
40393      fi
40394      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
40395      hardcode_libdir_separator=:
40396      hardcode_direct=yes
40397
40398      # hardcode_minus_L: Not really in the search PATH,
40399      # but as the default location of the library.
40400      hardcode_minus_L=yes
40401      export_dynamic_flag_spec='$wl-E'
40402      ;;
40403
40404    hpux10*)
40405      if test yes,no = "$GCC,$with_gnu_ld"; then
40406	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
40407      else
40408	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
40409      fi
40410      if test no = "$with_gnu_ld"; then
40411	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
40412	hardcode_libdir_separator=:
40413	hardcode_direct=yes
40414	hardcode_direct_absolute=yes
40415	export_dynamic_flag_spec='$wl-E'
40416	# hardcode_minus_L: Not really in the search PATH,
40417	# but as the default location of the library.
40418	hardcode_minus_L=yes
40419      fi
40420      ;;
40421
40422    hpux11*)
40423      if test yes,no = "$GCC,$with_gnu_ld"; then
40424	case $host_cpu in
40425	hppa*64*)
40426	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
40427	  ;;
40428	ia64*)
40429	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
40430	  ;;
40431	*)
40432	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
40433	  ;;
40434	esac
40435      else
40436	case $host_cpu in
40437	hppa*64*)
40438	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
40439	  ;;
40440	ia64*)
40441	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
40442	  ;;
40443	*)
40444
40445	  # Older versions of the 11.00 compiler do not understand -b yet
40446	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
40447	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
40448$as_echo_n "checking if $CC understands -b... " >&6; }
40449if ${lt_cv_prog_compiler__b+:} false; then :
40450  $as_echo_n "(cached) " >&6
40451else
40452  lt_cv_prog_compiler__b=no
40453   save_LDFLAGS=$LDFLAGS
40454   LDFLAGS="$LDFLAGS -b"
40455   echo "$lt_simple_link_test_code" > conftest.$ac_ext
40456   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
40457     # The linker can only warn and ignore the option if not recognized
40458     # So say no if there are warnings
40459     if test -s conftest.err; then
40460       # Append any errors to the config.log.
40461       cat conftest.err 1>&5
40462       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
40463       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
40464       if diff conftest.exp conftest.er2 >/dev/null; then
40465         lt_cv_prog_compiler__b=yes
40466       fi
40467     else
40468       lt_cv_prog_compiler__b=yes
40469     fi
40470   fi
40471   $RM -r conftest*
40472   LDFLAGS=$save_LDFLAGS
40473
40474fi
40475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
40476$as_echo "$lt_cv_prog_compiler__b" >&6; }
40477
40478if test yes = "$lt_cv_prog_compiler__b"; then
40479    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
40480else
40481    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
40482fi
40483
40484	  ;;
40485	esac
40486      fi
40487      if test no = "$with_gnu_ld"; then
40488	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
40489	hardcode_libdir_separator=:
40490
40491	case $host_cpu in
40492	hppa*64*|ia64*)
40493	  hardcode_direct=no
40494	  hardcode_shlibpath_var=no
40495	  ;;
40496	*)
40497	  hardcode_direct=yes
40498	  hardcode_direct_absolute=yes
40499	  export_dynamic_flag_spec='$wl-E'
40500
40501	  # hardcode_minus_L: Not really in the search PATH,
40502	  # but as the default location of the library.
40503	  hardcode_minus_L=yes
40504	  ;;
40505	esac
40506      fi
40507      ;;
40508
40509    irix5* | irix6* | nonstopux*)
40510      if test yes = "$GCC"; then
40511	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'
40512	# Try to use the -exported_symbol ld option, if it does not
40513	# work, assume that -exports_file does not work either and
40514	# implicitly export all symbols.
40515	# This should be the same for all languages, so no per-tag cache variable.
40516	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
40517$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
40518if ${lt_cv_irix_exported_symbol+:} false; then :
40519  $as_echo_n "(cached) " >&6
40520else
40521  save_LDFLAGS=$LDFLAGS
40522	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
40523	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40524/* end confdefs.h.  */
40525int foo (void) { return 0; }
40526_ACEOF
40527if ac_fn_c_try_link "$LINENO"; then :
40528  lt_cv_irix_exported_symbol=yes
40529else
40530  lt_cv_irix_exported_symbol=no
40531fi
40532rm -f core conftest.err conftest.$ac_objext \
40533    conftest$ac_exeext conftest.$ac_ext
40534           LDFLAGS=$save_LDFLAGS
40535fi
40536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
40537$as_echo "$lt_cv_irix_exported_symbol" >&6; }
40538	if test yes = "$lt_cv_irix_exported_symbol"; then
40539          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'
40540	fi
40541      else
40542	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'
40543	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'
40544      fi
40545      archive_cmds_need_lc='no'
40546      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
40547      hardcode_libdir_separator=:
40548      inherit_rpath=yes
40549      link_all_deplibs=yes
40550      ;;
40551
40552    linux*)
40553      case $cc_basename in
40554      tcc*)
40555	# Fabrice Bellard et al's Tiny C Compiler
40556	ld_shlibs=yes
40557	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
40558	;;
40559      esac
40560      ;;
40561
40562    netbsd*)
40563      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
40564	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
40565      else
40566	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
40567      fi
40568      hardcode_libdir_flag_spec='-R$libdir'
40569      hardcode_direct=yes
40570      hardcode_shlibpath_var=no
40571      ;;
40572
40573    newsos6)
40574      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40575      hardcode_direct=yes
40576      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
40577      hardcode_libdir_separator=:
40578      hardcode_shlibpath_var=no
40579      ;;
40580
40581    *nto* | *qnx*)
40582      ;;
40583
40584    openbsd* | bitrig*)
40585      if test -f /usr/libexec/ld.so; then
40586	hardcode_direct=yes
40587	hardcode_shlibpath_var=no
40588	hardcode_direct_absolute=yes
40589	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
40590	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
40591	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
40592	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
40593	  export_dynamic_flag_spec='$wl-E'
40594	else
40595	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
40596	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
40597	fi
40598      else
40599	ld_shlibs=no
40600      fi
40601      ;;
40602
40603    os2*)
40604      hardcode_libdir_flag_spec='-L$libdir'
40605      hardcode_minus_L=yes
40606      allow_undefined_flag=unsupported
40607      shrext_cmds=.dll
40608      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
40609	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
40610	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
40611	$ECHO EXPORTS >> $output_objdir/$libname.def~
40612	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
40613	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
40614	emximp -o $lib $output_objdir/$libname.def'
40615      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
40616	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
40617	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
40618	$ECHO EXPORTS >> $output_objdir/$libname.def~
40619	prefix_cmds="$SED"~
40620	if test EXPORTS = "`$SED 1q $export_symbols`"; then
40621	  prefix_cmds="$prefix_cmds -e 1d";
40622	fi~
40623	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
40624	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
40625	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
40626	emximp -o $lib $output_objdir/$libname.def'
40627      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
40628      enable_shared_with_static_runtimes=yes
40629      ;;
40630
40631    osf3*)
40632      if test yes = "$GCC"; then
40633	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
40634	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'
40635      else
40636	allow_undefined_flag=' -expect_unresolved \*'
40637	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'
40638      fi
40639      archive_cmds_need_lc='no'
40640      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
40641      hardcode_libdir_separator=:
40642      ;;
40643
40644    osf4* | osf5*)	# as osf3* with the addition of -msym flag
40645      if test yes = "$GCC"; then
40646	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
40647	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'
40648	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
40649      else
40650	allow_undefined_flag=' -expect_unresolved \*'
40651	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'
40652	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~
40653          $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'
40654
40655	# Both c and cxx compiler support -rpath directly
40656	hardcode_libdir_flag_spec='-rpath $libdir'
40657      fi
40658      archive_cmds_need_lc='no'
40659      hardcode_libdir_separator=:
40660      ;;
40661
40662    solaris*)
40663      no_undefined_flag=' -z defs'
40664      if test yes = "$GCC"; then
40665	wlarc='$wl'
40666	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
40667	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
40668          $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'
40669      else
40670	case `$CC -V 2>&1` in
40671	*"Compilers 5.0"*)
40672	  wlarc=''
40673	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
40674	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
40675            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
40676	  ;;
40677	*)
40678	  wlarc='$wl'
40679	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
40680	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
40681            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
40682	  ;;
40683	esac
40684      fi
40685      hardcode_libdir_flag_spec='-R$libdir'
40686      hardcode_shlibpath_var=no
40687      case $host_os in
40688      solaris2.[0-5] | solaris2.[0-5].*) ;;
40689      *)
40690	# The compiler driver will combine and reorder linker options,
40691	# but understands '-z linker_flag'.  GCC discards it without '$wl',
40692	# but is careful enough not to reorder.
40693	# Supported since Solaris 2.6 (maybe 2.5.1?)
40694	if test yes = "$GCC"; then
40695	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
40696	else
40697	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
40698	fi
40699	;;
40700      esac
40701      link_all_deplibs=yes
40702      ;;
40703
40704    sunos4*)
40705      if test sequent = "$host_vendor"; then
40706	# Use $CC to link under sequent, because it throws in some extra .o
40707	# files that make .init and .fini sections work.
40708	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
40709      else
40710	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
40711      fi
40712      hardcode_libdir_flag_spec='-L$libdir'
40713      hardcode_direct=yes
40714      hardcode_minus_L=yes
40715      hardcode_shlibpath_var=no
40716      ;;
40717
40718    sysv4)
40719      case $host_vendor in
40720	sni)
40721	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40722	  hardcode_direct=yes # is this really true???
40723	;;
40724	siemens)
40725	  ## LD is ld it makes a PLAMLIB
40726	  ## CC just makes a GrossModule.
40727	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
40728	  reload_cmds='$CC -r -o $output$reload_objs'
40729	  hardcode_direct=no
40730        ;;
40731	motorola)
40732	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40733	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
40734	;;
40735      esac
40736      runpath_var='LD_RUN_PATH'
40737      hardcode_shlibpath_var=no
40738      ;;
40739
40740    sysv4.3*)
40741      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40742      hardcode_shlibpath_var=no
40743      export_dynamic_flag_spec='-Bexport'
40744      ;;
40745
40746    sysv4*MP*)
40747      if test -d /usr/nec; then
40748	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40749	hardcode_shlibpath_var=no
40750	runpath_var=LD_RUN_PATH
40751	hardcode_runpath_var=yes
40752	ld_shlibs=yes
40753      fi
40754      ;;
40755
40756    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
40757      no_undefined_flag='$wl-z,text'
40758      archive_cmds_need_lc=no
40759      hardcode_shlibpath_var=no
40760      runpath_var='LD_RUN_PATH'
40761
40762      if test yes = "$GCC"; then
40763	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40764	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40765      else
40766	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40767	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40768      fi
40769      ;;
40770
40771    sysv5* | sco3.2v5* | sco5v6*)
40772      # Note: We CANNOT use -z defs as we might desire, because we do not
40773      # link with -lc, and that would cause any symbols used from libc to
40774      # always be unresolved, which means just about no library would
40775      # ever link correctly.  If we're not using GNU ld we use -z text
40776      # though, which does catch some bad symbols but isn't as heavy-handed
40777      # as -z defs.
40778      no_undefined_flag='$wl-z,text'
40779      allow_undefined_flag='$wl-z,nodefs'
40780      archive_cmds_need_lc=no
40781      hardcode_shlibpath_var=no
40782      hardcode_libdir_flag_spec='$wl-R,$libdir'
40783      hardcode_libdir_separator=':'
40784      link_all_deplibs=yes
40785      export_dynamic_flag_spec='$wl-Bexport'
40786      runpath_var='LD_RUN_PATH'
40787
40788      if test yes = "$GCC"; then
40789	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40790	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40791      else
40792	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40793	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40794      fi
40795      ;;
40796
40797    uts4*)
40798      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40799      hardcode_libdir_flag_spec='-L$libdir'
40800      hardcode_shlibpath_var=no
40801      ;;
40802
40803    *)
40804      ld_shlibs=no
40805      ;;
40806    esac
40807
40808    if test sni = "$host_vendor"; then
40809      case $host in
40810      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
40811	export_dynamic_flag_spec='$wl-Blargedynsym'
40812	;;
40813      esac
40814    fi
40815  fi
40816
40817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
40818$as_echo "$ld_shlibs" >&6; }
40819test no = "$ld_shlibs" && can_build_shared=no
40820
40821with_gnu_ld=$with_gnu_ld
40822
40823
40824
40825
40826
40827
40828
40829
40830
40831
40832
40833
40834
40835
40836
40837#
40838# Do we need to explicitly link libc?
40839#
40840case "x$archive_cmds_need_lc" in
40841x|xyes)
40842  # Assume -lc should be added
40843  archive_cmds_need_lc=yes
40844
40845  if test yes,yes = "$GCC,$enable_shared"; then
40846    case $archive_cmds in
40847    *'~'*)
40848      # FIXME: we may have to deal with multi-command sequences.
40849      ;;
40850    '$CC '*)
40851      # Test whether the compiler implicitly links with -lc since on some
40852      # systems, -lgcc has to come before -lc. If gcc already passes -lc
40853      # to ld, don't add -lc before -lgcc.
40854      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
40855$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
40856if ${lt_cv_archive_cmds_need_lc+:} false; then :
40857  $as_echo_n "(cached) " >&6
40858else
40859  $RM conftest*
40860	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
40861
40862	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
40863  (eval $ac_compile) 2>&5
40864  ac_status=$?
40865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40866  test $ac_status = 0; } 2>conftest.err; then
40867	  soname=conftest
40868	  lib=conftest
40869	  libobjs=conftest.$ac_objext
40870	  deplibs=
40871	  wl=$lt_prog_compiler_wl
40872	  pic_flag=$lt_prog_compiler_pic
40873	  compiler_flags=-v
40874	  linker_flags=-v
40875	  verstring=
40876	  output_objdir=.
40877	  libname=conftest
40878	  lt_save_allow_undefined_flag=$allow_undefined_flag
40879	  allow_undefined_flag=
40880	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
40881  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
40882  ac_status=$?
40883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40884  test $ac_status = 0; }
40885	  then
40886	    lt_cv_archive_cmds_need_lc=no
40887	  else
40888	    lt_cv_archive_cmds_need_lc=yes
40889	  fi
40890	  allow_undefined_flag=$lt_save_allow_undefined_flag
40891	else
40892	  cat conftest.err 1>&5
40893	fi
40894	$RM conftest*
40895
40896fi
40897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
40898$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
40899      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
40900      ;;
40901    esac
40902  fi
40903  ;;
40904esac
40905
40906
40907
40908
40909
40910
40911
40912
40913
40914
40915
40916
40917
40918
40919
40920
40921
40922
40923
40924
40925
40926
40927
40928
40929
40930
40931
40932
40933
40934
40935
40936
40937
40938
40939
40940
40941
40942
40943
40944
40945
40946
40947
40948
40949
40950
40951
40952
40953
40954
40955
40956
40957
40958
40959
40960
40961
40962
40963
40964
40965
40966
40967
40968
40969
40970
40971
40972
40973
40974
40975
40976
40977
40978
40979
40980
40981
40982
40983
40984
40985
40986
40987
40988
40989
40990
40991
40992
40993
40994
40995
40996
40997
40998
40999
41000
41001
41002
41003
41004
41005
41006
41007
41008
41009
41010
41011
41012
41013
41014
41015
41016
41017
41018
41019
41020
41021
41022
41023
41024
41025
41026
41027
41028
41029
41030
41031
41032
41033
41034
41035
41036
41037
41038
41039
41040
41041
41042
41043
41044
41045
41046
41047
41048
41049
41050
41051
41052
41053
41054
41055
41056
41057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
41058$as_echo_n "checking dynamic linker characteristics... " >&6; }
41059
41060if test yes = "$GCC"; then
41061  case $host_os in
41062    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
41063    *) lt_awk_arg='/^libraries:/' ;;
41064  esac
41065  case $host_os in
41066    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
41067    *) lt_sed_strip_eq='s|=/|/|g' ;;
41068  esac
41069  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
41070  case $lt_search_path_spec in
41071  *\;*)
41072    # if the path contains ";" then we assume it to be the separator
41073    # otherwise default to the standard path separator (i.e. ":") - it is
41074    # assumed that no part of a normal pathname contains ";" but that should
41075    # okay in the real world where ";" in dirpaths is itself problematic.
41076    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
41077    ;;
41078  *)
41079    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
41080    ;;
41081  esac
41082  # Ok, now we have the path, separated by spaces, we can step through it
41083  # and add multilib dir if necessary...
41084  lt_tmp_lt_search_path_spec=
41085  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
41086  # ...but if some path component already ends with the multilib dir we assume
41087  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
41088  case "$lt_multi_os_dir; $lt_search_path_spec " in
41089  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
41090    lt_multi_os_dir=
41091    ;;
41092  esac
41093  for lt_sys_path in $lt_search_path_spec; do
41094    if test -d "$lt_sys_path$lt_multi_os_dir"; then
41095      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
41096    elif test -n "$lt_multi_os_dir"; then
41097      test -d "$lt_sys_path" && \
41098	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
41099    fi
41100  done
41101  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
41102BEGIN {RS = " "; FS = "/|\n";} {
41103  lt_foo = "";
41104  lt_count = 0;
41105  for (lt_i = NF; lt_i > 0; lt_i--) {
41106    if ($lt_i != "" && $lt_i != ".") {
41107      if ($lt_i == "..") {
41108        lt_count++;
41109      } else {
41110        if (lt_count == 0) {
41111          lt_foo = "/" $lt_i lt_foo;
41112        } else {
41113          lt_count--;
41114        }
41115      }
41116    }
41117  }
41118  if (lt_foo != "") { lt_freq[lt_foo]++; }
41119  if (lt_freq[lt_foo] == 1) { print lt_foo; }
41120}'`
41121  # AWK program above erroneously prepends '/' to C:/dos/paths
41122  # for these hosts.
41123  case $host_os in
41124    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
41125      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
41126  esac
41127  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
41128else
41129  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
41130fi
41131library_names_spec=
41132libname_spec='lib$name'
41133soname_spec=
41134shrext_cmds=.so
41135postinstall_cmds=
41136postuninstall_cmds=
41137finish_cmds=
41138finish_eval=
41139shlibpath_var=
41140shlibpath_overrides_runpath=unknown
41141version_type=none
41142dynamic_linker="$host_os ld.so"
41143sys_lib_dlsearch_path_spec="/lib /usr/lib"
41144need_lib_prefix=unknown
41145hardcode_into_libs=no
41146
41147# when you set need_version to no, make sure it does not cause -set_version
41148# flags to be left without arguments
41149need_version=unknown
41150
41151
41152
41153case $host_os in
41154aix3*)
41155  version_type=linux # correct to gnu/linux during the next big refactor
41156  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
41157  shlibpath_var=LIBPATH
41158
41159  # AIX 3 has no versioning support, so we append a major version to the name.
41160  soname_spec='$libname$release$shared_ext$major'
41161  ;;
41162
41163aix[4-9]*)
41164  version_type=linux # correct to gnu/linux during the next big refactor
41165  need_lib_prefix=no
41166  need_version=no
41167  hardcode_into_libs=yes
41168  if test ia64 = "$host_cpu"; then
41169    # AIX 5 supports IA64
41170    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
41171    shlibpath_var=LD_LIBRARY_PATH
41172  else
41173    # With GCC up to 2.95.x, collect2 would create an import file
41174    # for dependence libraries.  The import file would start with
41175    # the line '#! .'.  This would cause the generated library to
41176    # depend on '.', always an invalid library.  This was fixed in
41177    # development snapshots of GCC prior to 3.0.
41178    case $host_os in
41179      aix4 | aix4.[01] | aix4.[01].*)
41180      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
41181	   echo ' yes '
41182	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
41183	:
41184      else
41185	can_build_shared=no
41186      fi
41187      ;;
41188    esac
41189    # Using Import Files as archive members, it is possible to support
41190    # filename-based versioning of shared library archives on AIX. While
41191    # this would work for both with and without runtime linking, it will
41192    # prevent static linking of such archives. So we do filename-based
41193    # shared library versioning with .so extension only, which is used
41194    # when both runtime linking and shared linking is enabled.
41195    # Unfortunately, runtime linking may impact performance, so we do
41196    # not want this to be the default eventually. Also, we use the
41197    # versioned .so libs for executables only if there is the -brtl
41198    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
41199    # To allow for filename-based versioning support, we need to create
41200    # libNAME.so.V as an archive file, containing:
41201    # *) an Import File, referring to the versioned filename of the
41202    #    archive as well as the shared archive member, telling the
41203    #    bitwidth (32 or 64) of that shared object, and providing the
41204    #    list of exported symbols of that shared object, eventually
41205    #    decorated with the 'weak' keyword
41206    # *) the shared object with the F_LOADONLY flag set, to really avoid
41207    #    it being seen by the linker.
41208    # At run time we better use the real file rather than another symlink,
41209    # but for link time we create the symlink libNAME.so -> libNAME.so.V
41210
41211    case $with_aix_soname,$aix_use_runtimelinking in
41212    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
41213    # soname into executable. Probably we can add versioning support to
41214    # collect2, so additional links can be useful in future.
41215    aix,yes) # traditional libtool
41216      dynamic_linker='AIX unversionable lib.so'
41217      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
41218      # instead of lib<name>.a to let people know that these are not
41219      # typical AIX shared libraries.
41220      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
41221      ;;
41222    aix,no) # traditional AIX only
41223      dynamic_linker='AIX lib.a(lib.so.V)'
41224      # We preserve .a as extension for shared libraries through AIX4.2
41225      # and later when we are not doing run time linking.
41226      library_names_spec='$libname$release.a $libname.a'
41227      soname_spec='$libname$release$shared_ext$major'
41228      ;;
41229    svr4,*) # full svr4 only
41230      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
41231      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
41232      # We do not specify a path in Import Files, so LIBPATH fires.
41233      shlibpath_overrides_runpath=yes
41234      ;;
41235    *,yes) # both, prefer svr4
41236      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
41237      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
41238      # unpreferred sharedlib libNAME.a needs extra handling
41239      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
41240      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
41241      # We do not specify a path in Import Files, so LIBPATH fires.
41242      shlibpath_overrides_runpath=yes
41243      ;;
41244    *,no) # both, prefer aix
41245      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
41246      library_names_spec='$libname$release.a $libname.a'
41247      soname_spec='$libname$release$shared_ext$major'
41248      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
41249      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
41250      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
41251      ;;
41252    esac
41253    shlibpath_var=LIBPATH
41254  fi
41255  ;;
41256
41257amigaos*)
41258  case $host_cpu in
41259  powerpc)
41260    # Since July 2007 AmigaOS4 officially supports .so libraries.
41261    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
41262    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
41263    ;;
41264  m68k)
41265    library_names_spec='$libname.ixlibrary $libname.a'
41266    # Create ${libname}_ixlibrary.a entries in /sys/libs.
41267    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
41268    ;;
41269  esac
41270  ;;
41271
41272beos*)
41273  library_names_spec='$libname$shared_ext'
41274  dynamic_linker="$host_os ld.so"
41275  shlibpath_var=LIBRARY_PATH
41276  ;;
41277
41278bsdi[45]*)
41279  version_type=linux # correct to gnu/linux during the next big refactor
41280  need_version=no
41281  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
41282  soname_spec='$libname$release$shared_ext$major'
41283  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
41284  shlibpath_var=LD_LIBRARY_PATH
41285  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
41286  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
41287  # the default ld.so.conf also contains /usr/contrib/lib and
41288  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
41289  # libtool to hard-code these into programs
41290  ;;
41291
41292cygwin* | mingw* | pw32* | cegcc*)
41293  version_type=windows
41294  shrext_cmds=.dll
41295  need_version=no
41296  need_lib_prefix=no
41297
41298  case $GCC,$cc_basename in
41299  yes,*)
41300    # gcc
41301    library_names_spec='$libname.dll.a'
41302    # DLL is installed to $(libdir)/../bin by postinstall_cmds
41303    postinstall_cmds='base_file=`basename \$file`~
41304      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
41305      dldir=$destdir/`dirname \$dlpath`~
41306      test -d \$dldir || mkdir -p \$dldir~
41307      $install_prog $dir/$dlname \$dldir/$dlname~
41308      chmod a+x \$dldir/$dlname~
41309      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
41310        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
41311      fi'
41312    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
41313      dlpath=$dir/\$dldll~
41314       $RM \$dlpath'
41315    shlibpath_overrides_runpath=yes
41316
41317    case $host_os in
41318    cygwin*)
41319      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
41320      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
41321
41322      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
41323      ;;
41324    mingw* | cegcc*)
41325      # MinGW DLLs use traditional 'lib' prefix
41326      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
41327      ;;
41328    pw32*)
41329      # pw32 DLLs use 'pw' prefix rather than 'lib'
41330      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
41331      ;;
41332    esac
41333    dynamic_linker='Win32 ld.exe'
41334    ;;
41335
41336  *,cl*)
41337    # Native MSVC
41338    libname_spec='$name'
41339    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
41340    library_names_spec='$libname.dll.lib'
41341
41342    case $build_os in
41343    mingw*)
41344      sys_lib_search_path_spec=
41345      lt_save_ifs=$IFS
41346      IFS=';'
41347      for lt_path in $LIB
41348      do
41349        IFS=$lt_save_ifs
41350        # Let DOS variable expansion print the short 8.3 style file name.
41351        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
41352        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
41353      done
41354      IFS=$lt_save_ifs
41355      # Convert to MSYS style.
41356      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
41357      ;;
41358    cygwin*)
41359      # Convert to unix form, then to dos form, then back to unix form
41360      # but this time dos style (no spaces!) so that the unix form looks
41361      # like /cygdrive/c/PROGRA~1:/cygdr...
41362      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
41363      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
41364      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
41365      ;;
41366    *)
41367      sys_lib_search_path_spec=$LIB
41368      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
41369        # It is most probably a Windows format PATH.
41370        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
41371      else
41372        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
41373      fi
41374      # FIXME: find the short name or the path components, as spaces are
41375      # common. (e.g. "Program Files" -> "PROGRA~1")
41376      ;;
41377    esac
41378
41379    # DLL is installed to $(libdir)/../bin by postinstall_cmds
41380    postinstall_cmds='base_file=`basename \$file`~
41381      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
41382      dldir=$destdir/`dirname \$dlpath`~
41383      test -d \$dldir || mkdir -p \$dldir~
41384      $install_prog $dir/$dlname \$dldir/$dlname'
41385    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
41386      dlpath=$dir/\$dldll~
41387       $RM \$dlpath'
41388    shlibpath_overrides_runpath=yes
41389    dynamic_linker='Win32 link.exe'
41390    ;;
41391
41392  *)
41393    # Assume MSVC wrapper
41394    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
41395    dynamic_linker='Win32 ld.exe'
41396    ;;
41397  esac
41398  # FIXME: first we should search . and the directory the executable is in
41399  shlibpath_var=PATH
41400  ;;
41401
41402darwin* | rhapsody*)
41403  dynamic_linker="$host_os dyld"
41404  version_type=darwin
41405  need_lib_prefix=no
41406  need_version=no
41407  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
41408  soname_spec='$libname$release$major$shared_ext'
41409  shlibpath_overrides_runpath=yes
41410  shlibpath_var=DYLD_LIBRARY_PATH
41411  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
41412
41413  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
41414  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
41415  ;;
41416
41417dgux*)
41418  version_type=linux # correct to gnu/linux during the next big refactor
41419  need_lib_prefix=no
41420  need_version=no
41421  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
41422  soname_spec='$libname$release$shared_ext$major'
41423  shlibpath_var=LD_LIBRARY_PATH
41424  ;;
41425
41426freebsd* | dragonfly*)
41427  # DragonFly does not have aout.  When/if they implement a new
41428  # versioning mechanism, adjust this.
41429  if test -x /usr/bin/objformat; then
41430    objformat=`/usr/bin/objformat`
41431  else
41432    case $host_os in
41433    freebsd[23].*) objformat=aout ;;
41434    *) objformat=elf ;;
41435    esac
41436  fi
41437  version_type=freebsd-$objformat
41438  case $version_type in
41439    freebsd-elf*)
41440      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
41441      soname_spec='$libname$release$shared_ext$major'
41442      need_version=no
41443      need_lib_prefix=no
41444      ;;
41445    freebsd-*)
41446      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
41447      need_version=yes
41448      ;;
41449  esac
41450  shlibpath_var=LD_LIBRARY_PATH
41451  case $host_os in
41452  freebsd2.*)
41453    shlibpath_overrides_runpath=yes
41454    ;;
41455  freebsd3.[01]* | freebsdelf3.[01]*)
41456    shlibpath_overrides_runpath=yes
41457    hardcode_into_libs=yes
41458    ;;
41459  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
41460  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
41461    shlibpath_overrides_runpath=no
41462    hardcode_into_libs=yes
41463    ;;
41464  *) # from 4.6 on, and DragonFly
41465    shlibpath_overrides_runpath=yes
41466    hardcode_into_libs=yes
41467    ;;
41468  esac
41469  ;;
41470
41471haiku*)
41472  version_type=linux # correct to gnu/linux during the next big refactor
41473  need_lib_prefix=no
41474  need_version=no
41475  dynamic_linker="$host_os runtime_loader"
41476  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
41477  soname_spec='$libname$release$shared_ext$major'
41478  shlibpath_var=LIBRARY_PATH
41479  shlibpath_overrides_runpath=no
41480  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
41481  hardcode_into_libs=yes
41482  ;;
41483
41484hpux9* | hpux10* | hpux11*)
41485  # Give a soname corresponding to the major version so that dld.sl refuses to
41486  # link against other versions.
41487  version_type=sunos
41488  need_lib_prefix=no
41489  need_version=no
41490  case $host_cpu in
41491  ia64*)
41492    shrext_cmds='.so'
41493    hardcode_into_libs=yes
41494    dynamic_linker="$host_os dld.so"
41495    shlibpath_var=LD_LIBRARY_PATH
41496    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
41497    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
41498    soname_spec='$libname$release$shared_ext$major'
41499    if test 32 = "$HPUX_IA64_MODE"; then
41500      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
41501      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
41502    else
41503      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
41504      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
41505    fi
41506    ;;
41507  hppa*64*)
41508    shrext_cmds='.sl'
41509    hardcode_into_libs=yes
41510    dynamic_linker="$host_os dld.sl"
41511    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
41512    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
41513    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
41514    soname_spec='$libname$release$shared_ext$major'
41515    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
41516    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
41517    ;;
41518  *)
41519    shrext_cmds='.sl'
41520    dynamic_linker="$host_os dld.sl"
41521    shlibpath_var=SHLIB_PATH
41522    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
41523    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
41524    soname_spec='$libname$release$shared_ext$major'
41525    ;;
41526  esac
41527  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
41528  postinstall_cmds='chmod 555 $lib'
41529  # or fails outright, so override atomically:
41530  install_override_mode=555
41531  ;;
41532
41533interix[3-9]*)
41534  version_type=linux # correct to gnu/linux during the next big refactor
41535  need_lib_prefix=no
41536  need_version=no
41537  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
41538  soname_spec='$libname$release$shared_ext$major'
41539  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
41540  shlibpath_var=LD_LIBRARY_PATH
41541  shlibpath_overrides_runpath=no
41542  hardcode_into_libs=yes
41543  ;;
41544
41545irix5* | irix6* | nonstopux*)
41546  case $host_os in
41547    nonstopux*) version_type=nonstopux ;;
41548    *)
41549	if test yes = "$lt_cv_prog_gnu_ld"; then
41550		version_type=linux # correct to gnu/linux during the next big refactor
41551	else
41552		version_type=irix
41553	fi ;;
41554  esac
41555  need_lib_prefix=no
41556  need_version=no
41557  soname_spec='$libname$release$shared_ext$major'
41558  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
41559  case $host_os in
41560  irix5* | nonstopux*)
41561    libsuff= shlibsuff=
41562    ;;
41563  *)
41564    case $LD in # libtool.m4 will add one of these switches to LD
41565    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
41566      libsuff= shlibsuff= libmagic=32-bit;;
41567    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
41568      libsuff=32 shlibsuff=N32 libmagic=N32;;
41569    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
41570      libsuff=64 shlibsuff=64 libmagic=64-bit;;
41571    *) libsuff= shlibsuff= libmagic=never-match;;
41572    esac
41573    ;;
41574  esac
41575  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
41576  shlibpath_overrides_runpath=no
41577  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
41578  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
41579  hardcode_into_libs=yes
41580  ;;
41581
41582# No shared lib support for Linux oldld, aout, or coff.
41583linux*oldld* | linux*aout* | linux*coff*)
41584  dynamic_linker=no
41585  ;;
41586
41587linux*android*)
41588  version_type=none # Android doesn't support versioned libraries.
41589  need_lib_prefix=no
41590  need_version=no
41591  library_names_spec='$libname$release$shared_ext'
41592  soname_spec='$libname$release$shared_ext'
41593  finish_cmds=
41594  shlibpath_var=LD_LIBRARY_PATH
41595  shlibpath_overrides_runpath=yes
41596
41597  # This implies no fast_install, which is unacceptable.
41598  # Some rework will be needed to allow for fast_install
41599  # before this can be enabled.
41600  hardcode_into_libs=yes
41601
41602  dynamic_linker='Android linker'
41603  # Don't embed -rpath directories since the linker doesn't support them.
41604  hardcode_libdir_flag_spec='-L$libdir'
41605  ;;
41606
41607# This must be glibc/ELF.
41608linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
41609  version_type=linux # correct to gnu/linux during the next big refactor
41610  need_lib_prefix=no
41611  need_version=no
41612  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
41613  soname_spec='$libname$release$shared_ext$major'
41614  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
41615  shlibpath_var=LD_LIBRARY_PATH
41616  shlibpath_overrides_runpath=no
41617
41618  # Some binutils ld are patched to set DT_RUNPATH
41619  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
41620  $as_echo_n "(cached) " >&6
41621else
41622  lt_cv_shlibpath_overrides_runpath=no
41623    save_LDFLAGS=$LDFLAGS
41624    save_libdir=$libdir
41625    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
41626	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
41627    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41628/* end confdefs.h.  */
41629
41630int
41631main ()
41632{
41633
41634  ;
41635  return 0;
41636}
41637_ACEOF
41638if ac_fn_c_try_link "$LINENO"; then :
41639  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
41640  lt_cv_shlibpath_overrides_runpath=yes
41641fi
41642fi
41643rm -f core conftest.err conftest.$ac_objext \
41644    conftest$ac_exeext conftest.$ac_ext
41645    LDFLAGS=$save_LDFLAGS
41646    libdir=$save_libdir
41647
41648fi
41649
41650  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
41651
41652  # This implies no fast_install, which is unacceptable.
41653  # Some rework will be needed to allow for fast_install
41654  # before this can be enabled.
41655  hardcode_into_libs=yes
41656
41657  # Ideally, we could use ldconfig to report *all* directores which are
41658  # searched for libraries, however this is still not possible.  Aside from not
41659  # being certain /sbin/ldconfig is available, command
41660  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
41661  # even though it is searched at run-time.  Try to do the best guess by
41662  # appending ld.so.conf contents (and includes) to the search path.
41663  if test -f /etc/ld.so.conf; then
41664    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' ' '`
41665    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
41666  fi
41667
41668  # We used to test for /lib/ld.so.1 and disable shared libraries on
41669  # powerpc, because MkLinux only supported shared libraries with the
41670  # GNU dynamic linker.  Since this was broken with cross compilers,
41671  # most powerpc-linux boxes support dynamic linking these days and
41672  # people can always --disable-shared, the test was removed, and we
41673  # assume the GNU/Linux dynamic linker is in use.
41674  dynamic_linker='GNU/Linux ld.so'
41675  ;;
41676
41677netbsd*)
41678  version_type=sunos
41679  need_lib_prefix=no
41680  need_version=no
41681  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
41682    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
41683    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
41684    dynamic_linker='NetBSD (a.out) ld.so'
41685  else
41686    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
41687    soname_spec='$libname$release$shared_ext$major'
41688    dynamic_linker='NetBSD ld.elf_so'
41689  fi
41690  shlibpath_var=LD_LIBRARY_PATH
41691  shlibpath_overrides_runpath=yes
41692  hardcode_into_libs=yes
41693  ;;
41694
41695newsos6)
41696  version_type=linux # correct to gnu/linux during the next big refactor
41697  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
41698  shlibpath_var=LD_LIBRARY_PATH
41699  shlibpath_overrides_runpath=yes
41700  ;;
41701
41702*nto* | *qnx*)
41703  version_type=qnx
41704  need_lib_prefix=no
41705  need_version=no
41706  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
41707  soname_spec='$libname$release$shared_ext$major'
41708  shlibpath_var=LD_LIBRARY_PATH
41709  shlibpath_overrides_runpath=no
41710  hardcode_into_libs=yes
41711  dynamic_linker='ldqnx.so'
41712  ;;
41713
41714openbsd* | bitrig*)
41715  version_type=sunos
41716  sys_lib_dlsearch_path_spec=/usr/lib
41717  need_lib_prefix=no
41718  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
41719    need_version=no
41720  else
41721    need_version=yes
41722  fi
41723  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
41724  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
41725  shlibpath_var=LD_LIBRARY_PATH
41726  shlibpath_overrides_runpath=yes
41727  ;;
41728
41729os2*)
41730  libname_spec='$name'
41731  version_type=windows
41732  shrext_cmds=.dll
41733  need_version=no
41734  need_lib_prefix=no
41735  # OS/2 can only load a DLL with a base name of 8 characters or less.
41736  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
41737    v=$($ECHO $release$versuffix | tr -d .-);
41738    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
41739    $ECHO $n$v`$shared_ext'
41740  library_names_spec='${libname}_dll.$libext'
41741  dynamic_linker='OS/2 ld.exe'
41742  shlibpath_var=BEGINLIBPATH
41743  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
41744  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
41745  postinstall_cmds='base_file=`basename \$file`~
41746    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
41747    dldir=$destdir/`dirname \$dlpath`~
41748    test -d \$dldir || mkdir -p \$dldir~
41749    $install_prog $dir/$dlname \$dldir/$dlname~
41750    chmod a+x \$dldir/$dlname~
41751    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
41752      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
41753    fi'
41754  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
41755    dlpath=$dir/\$dldll~
41756    $RM \$dlpath'
41757  ;;
41758
41759osf3* | osf4* | osf5*)
41760  version_type=osf
41761  need_lib_prefix=no
41762  need_version=no
41763  soname_spec='$libname$release$shared_ext$major'
41764  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
41765  shlibpath_var=LD_LIBRARY_PATH
41766  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
41767  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
41768  ;;
41769
41770rdos*)
41771  dynamic_linker=no
41772  ;;
41773
41774solaris*)
41775  version_type=linux # correct to gnu/linux during the next big refactor
41776  need_lib_prefix=no
41777  need_version=no
41778  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
41779  soname_spec='$libname$release$shared_ext$major'
41780  shlibpath_var=LD_LIBRARY_PATH
41781  shlibpath_overrides_runpath=yes
41782  hardcode_into_libs=yes
41783  # ldd complains unless libraries are executable
41784  postinstall_cmds='chmod +x $lib'
41785  ;;
41786
41787sunos4*)
41788  version_type=sunos
41789  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
41790  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
41791  shlibpath_var=LD_LIBRARY_PATH
41792  shlibpath_overrides_runpath=yes
41793  if test yes = "$with_gnu_ld"; then
41794    need_lib_prefix=no
41795  fi
41796  need_version=yes
41797  ;;
41798
41799sysv4 | sysv4.3*)
41800  version_type=linux # correct to gnu/linux during the next big refactor
41801  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
41802  soname_spec='$libname$release$shared_ext$major'
41803  shlibpath_var=LD_LIBRARY_PATH
41804  case $host_vendor in
41805    sni)
41806      shlibpath_overrides_runpath=no
41807      need_lib_prefix=no
41808      runpath_var=LD_RUN_PATH
41809      ;;
41810    siemens)
41811      need_lib_prefix=no
41812      ;;
41813    motorola)
41814      need_lib_prefix=no
41815      need_version=no
41816      shlibpath_overrides_runpath=no
41817      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
41818      ;;
41819  esac
41820  ;;
41821
41822sysv4*MP*)
41823  if test -d /usr/nec; then
41824    version_type=linux # correct to gnu/linux during the next big refactor
41825    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
41826    soname_spec='$libname$shared_ext.$major'
41827    shlibpath_var=LD_LIBRARY_PATH
41828  fi
41829  ;;
41830
41831sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
41832  version_type=sco
41833  need_lib_prefix=no
41834  need_version=no
41835  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
41836  soname_spec='$libname$release$shared_ext$major'
41837  shlibpath_var=LD_LIBRARY_PATH
41838  shlibpath_overrides_runpath=yes
41839  hardcode_into_libs=yes
41840  if test yes = "$with_gnu_ld"; then
41841    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
41842  else
41843    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
41844    case $host_os in
41845      sco3.2v5*)
41846        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
41847	;;
41848    esac
41849  fi
41850  sys_lib_dlsearch_path_spec='/usr/lib'
41851  ;;
41852
41853tpf*)
41854  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
41855  version_type=linux # correct to gnu/linux during the next big refactor
41856  need_lib_prefix=no
41857  need_version=no
41858  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
41859  shlibpath_var=LD_LIBRARY_PATH
41860  shlibpath_overrides_runpath=no
41861  hardcode_into_libs=yes
41862  ;;
41863
41864uts4*)
41865  version_type=linux # correct to gnu/linux during the next big refactor
41866  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
41867  soname_spec='$libname$release$shared_ext$major'
41868  shlibpath_var=LD_LIBRARY_PATH
41869  ;;
41870
41871*)
41872  dynamic_linker=no
41873  ;;
41874esac
41875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
41876$as_echo "$dynamic_linker" >&6; }
41877test no = "$dynamic_linker" && can_build_shared=no
41878
41879variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
41880if test yes = "$GCC"; then
41881  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
41882fi
41883
41884if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
41885  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
41886fi
41887
41888if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
41889  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
41890fi
41891
41892# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
41893configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
41894
41895# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
41896func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
41897
41898# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
41899configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
41900
41901
41902
41903
41904
41905
41906
41907
41908
41909
41910
41911
41912
41913
41914
41915
41916
41917
41918
41919
41920
41921
41922
41923
41924
41925
41926
41927
41928
41929
41930
41931
41932
41933
41934
41935
41936
41937
41938
41939
41940
41941
41942
41943
41944
41945
41946
41947
41948
41949
41950
41951
41952
41953
41954
41955
41956
41957
41958
41959
41960
41961
41962
41963
41964
41965
41966
41967
41968
41969
41970
41971
41972
41973
41974
41975
41976
41977
41978
41979
41980
41981
41982
41983
41984
41985
41986
41987
41988
41989
41990
41991
41992
41993
41994
41995
41996
41997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
41998$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
41999hardcode_action=
42000if test -n "$hardcode_libdir_flag_spec" ||
42001   test -n "$runpath_var" ||
42002   test yes = "$hardcode_automatic"; then
42003
42004  # We can hardcode non-existent directories.
42005  if test no != "$hardcode_direct" &&
42006     # If the only mechanism to avoid hardcoding is shlibpath_var, we
42007     # have to relink, otherwise we might link with an installed library
42008     # when we should be linking with a yet-to-be-installed one
42009     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
42010     test no != "$hardcode_minus_L"; then
42011    # Linking always hardcodes the temporary library directory.
42012    hardcode_action=relink
42013  else
42014    # We can link without hardcoding, and we can hardcode nonexisting dirs.
42015    hardcode_action=immediate
42016  fi
42017else
42018  # We cannot hardcode anything, or else we can only hardcode existing
42019  # directories.
42020  hardcode_action=unsupported
42021fi
42022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
42023$as_echo "$hardcode_action" >&6; }
42024
42025if test relink = "$hardcode_action" ||
42026   test yes = "$inherit_rpath"; then
42027  # Fast installation is not supported
42028  enable_fast_install=no
42029elif test yes = "$shlibpath_overrides_runpath" ||
42030     test no = "$enable_shared"; then
42031  # Fast installation is not necessary
42032  enable_fast_install=needless
42033fi
42034
42035
42036
42037
42038
42039
42040  if test yes != "$enable_dlopen"; then
42041  enable_dlopen=unknown
42042  enable_dlopen_self=unknown
42043  enable_dlopen_self_static=unknown
42044else
42045  lt_cv_dlopen=no
42046  lt_cv_dlopen_libs=
42047
42048  case $host_os in
42049  beos*)
42050    lt_cv_dlopen=load_add_on
42051    lt_cv_dlopen_libs=
42052    lt_cv_dlopen_self=yes
42053    ;;
42054
42055  mingw* | pw32* | cegcc*)
42056    lt_cv_dlopen=LoadLibrary
42057    lt_cv_dlopen_libs=
42058    ;;
42059
42060  cygwin*)
42061    lt_cv_dlopen=dlopen
42062    lt_cv_dlopen_libs=
42063    ;;
42064
42065  darwin*)
42066    # if libdl is installed we need to link against it
42067    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
42068$as_echo_n "checking for dlopen in -ldl... " >&6; }
42069if ${ac_cv_lib_dl_dlopen+:} false; then :
42070  $as_echo_n "(cached) " >&6
42071else
42072  ac_check_lib_save_LIBS=$LIBS
42073LIBS="-ldl  $LIBS"
42074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42075/* end confdefs.h.  */
42076
42077/* Override any GCC internal prototype to avoid an error.
42078   Use char because int might match the return type of a GCC
42079   builtin and then its argument prototype would still apply.  */
42080#ifdef __cplusplus
42081extern "C"
42082#endif
42083char dlopen ();
42084int
42085main ()
42086{
42087return dlopen ();
42088  ;
42089  return 0;
42090}
42091_ACEOF
42092if ac_fn_c_try_link "$LINENO"; then :
42093  ac_cv_lib_dl_dlopen=yes
42094else
42095  ac_cv_lib_dl_dlopen=no
42096fi
42097rm -f core conftest.err conftest.$ac_objext \
42098    conftest$ac_exeext conftest.$ac_ext
42099LIBS=$ac_check_lib_save_LIBS
42100fi
42101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
42102$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
42103if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
42104  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
42105else
42106
42107    lt_cv_dlopen=dyld
42108    lt_cv_dlopen_libs=
42109    lt_cv_dlopen_self=yes
42110
42111fi
42112
42113    ;;
42114
42115  tpf*)
42116    # Don't try to run any link tests for TPF.  We know it's impossible
42117    # because TPF is a cross-compiler, and we know how we open DSOs.
42118    lt_cv_dlopen=dlopen
42119    lt_cv_dlopen_libs=
42120    lt_cv_dlopen_self=no
42121    ;;
42122
42123  *)
42124    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
42125if test "x$ac_cv_func_shl_load" = xyes; then :
42126  lt_cv_dlopen=shl_load
42127else
42128  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
42129$as_echo_n "checking for shl_load in -ldld... " >&6; }
42130if ${ac_cv_lib_dld_shl_load+:} false; then :
42131  $as_echo_n "(cached) " >&6
42132else
42133  ac_check_lib_save_LIBS=$LIBS
42134LIBS="-ldld  $LIBS"
42135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42136/* end confdefs.h.  */
42137
42138/* Override any GCC internal prototype to avoid an error.
42139   Use char because int might match the return type of a GCC
42140   builtin and then its argument prototype would still apply.  */
42141#ifdef __cplusplus
42142extern "C"
42143#endif
42144char shl_load ();
42145int
42146main ()
42147{
42148return shl_load ();
42149  ;
42150  return 0;
42151}
42152_ACEOF
42153if ac_fn_c_try_link "$LINENO"; then :
42154  ac_cv_lib_dld_shl_load=yes
42155else
42156  ac_cv_lib_dld_shl_load=no
42157fi
42158rm -f core conftest.err conftest.$ac_objext \
42159    conftest$ac_exeext conftest.$ac_ext
42160LIBS=$ac_check_lib_save_LIBS
42161fi
42162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
42163$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
42164if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
42165  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
42166else
42167  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
42168if test "x$ac_cv_func_dlopen" = xyes; then :
42169  lt_cv_dlopen=dlopen
42170else
42171  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
42172$as_echo_n "checking for dlopen in -ldl... " >&6; }
42173if ${ac_cv_lib_dl_dlopen+:} false; then :
42174  $as_echo_n "(cached) " >&6
42175else
42176  ac_check_lib_save_LIBS=$LIBS
42177LIBS="-ldl  $LIBS"
42178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42179/* end confdefs.h.  */
42180
42181/* Override any GCC internal prototype to avoid an error.
42182   Use char because int might match the return type of a GCC
42183   builtin and then its argument prototype would still apply.  */
42184#ifdef __cplusplus
42185extern "C"
42186#endif
42187char dlopen ();
42188int
42189main ()
42190{
42191return dlopen ();
42192  ;
42193  return 0;
42194}
42195_ACEOF
42196if ac_fn_c_try_link "$LINENO"; then :
42197  ac_cv_lib_dl_dlopen=yes
42198else
42199  ac_cv_lib_dl_dlopen=no
42200fi
42201rm -f core conftest.err conftest.$ac_objext \
42202    conftest$ac_exeext conftest.$ac_ext
42203LIBS=$ac_check_lib_save_LIBS
42204fi
42205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
42206$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
42207if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
42208  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
42209else
42210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
42211$as_echo_n "checking for dlopen in -lsvld... " >&6; }
42212if ${ac_cv_lib_svld_dlopen+:} false; then :
42213  $as_echo_n "(cached) " >&6
42214else
42215  ac_check_lib_save_LIBS=$LIBS
42216LIBS="-lsvld  $LIBS"
42217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42218/* end confdefs.h.  */
42219
42220/* Override any GCC internal prototype to avoid an error.
42221   Use char because int might match the return type of a GCC
42222   builtin and then its argument prototype would still apply.  */
42223#ifdef __cplusplus
42224extern "C"
42225#endif
42226char dlopen ();
42227int
42228main ()
42229{
42230return dlopen ();
42231  ;
42232  return 0;
42233}
42234_ACEOF
42235if ac_fn_c_try_link "$LINENO"; then :
42236  ac_cv_lib_svld_dlopen=yes
42237else
42238  ac_cv_lib_svld_dlopen=no
42239fi
42240rm -f core conftest.err conftest.$ac_objext \
42241    conftest$ac_exeext conftest.$ac_ext
42242LIBS=$ac_check_lib_save_LIBS
42243fi
42244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
42245$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
42246if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
42247  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
42248else
42249  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
42250$as_echo_n "checking for dld_link in -ldld... " >&6; }
42251if ${ac_cv_lib_dld_dld_link+:} false; then :
42252  $as_echo_n "(cached) " >&6
42253else
42254  ac_check_lib_save_LIBS=$LIBS
42255LIBS="-ldld  $LIBS"
42256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42257/* end confdefs.h.  */
42258
42259/* Override any GCC internal prototype to avoid an error.
42260   Use char because int might match the return type of a GCC
42261   builtin and then its argument prototype would still apply.  */
42262#ifdef __cplusplus
42263extern "C"
42264#endif
42265char dld_link ();
42266int
42267main ()
42268{
42269return dld_link ();
42270  ;
42271  return 0;
42272}
42273_ACEOF
42274if ac_fn_c_try_link "$LINENO"; then :
42275  ac_cv_lib_dld_dld_link=yes
42276else
42277  ac_cv_lib_dld_dld_link=no
42278fi
42279rm -f core conftest.err conftest.$ac_objext \
42280    conftest$ac_exeext conftest.$ac_ext
42281LIBS=$ac_check_lib_save_LIBS
42282fi
42283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
42284$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
42285if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
42286  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
42287fi
42288
42289
42290fi
42291
42292
42293fi
42294
42295
42296fi
42297
42298
42299fi
42300
42301
42302fi
42303
42304    ;;
42305  esac
42306
42307  if test no = "$lt_cv_dlopen"; then
42308    enable_dlopen=no
42309  else
42310    enable_dlopen=yes
42311  fi
42312
42313  case $lt_cv_dlopen in
42314  dlopen)
42315    save_CPPFLAGS=$CPPFLAGS
42316    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
42317
42318    save_LDFLAGS=$LDFLAGS
42319    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
42320
42321    save_LIBS=$LIBS
42322    LIBS="$lt_cv_dlopen_libs $LIBS"
42323
42324    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
42325$as_echo_n "checking whether a program can dlopen itself... " >&6; }
42326if ${lt_cv_dlopen_self+:} false; then :
42327  $as_echo_n "(cached) " >&6
42328else
42329  	  if test yes = "$cross_compiling"; then :
42330  lt_cv_dlopen_self=cross
42331else
42332  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
42333  lt_status=$lt_dlunknown
42334  cat > conftest.$ac_ext <<_LT_EOF
42335#line $LINENO "configure"
42336#include "confdefs.h"
42337
42338#if HAVE_DLFCN_H
42339#include <dlfcn.h>
42340#endif
42341
42342#include <stdio.h>
42343
42344#ifdef RTLD_GLOBAL
42345#  define LT_DLGLOBAL		RTLD_GLOBAL
42346#else
42347#  ifdef DL_GLOBAL
42348#    define LT_DLGLOBAL		DL_GLOBAL
42349#  else
42350#    define LT_DLGLOBAL		0
42351#  endif
42352#endif
42353
42354/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
42355   find out it does not work in some platform. */
42356#ifndef LT_DLLAZY_OR_NOW
42357#  ifdef RTLD_LAZY
42358#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
42359#  else
42360#    ifdef DL_LAZY
42361#      define LT_DLLAZY_OR_NOW		DL_LAZY
42362#    else
42363#      ifdef RTLD_NOW
42364#        define LT_DLLAZY_OR_NOW	RTLD_NOW
42365#      else
42366#        ifdef DL_NOW
42367#          define LT_DLLAZY_OR_NOW	DL_NOW
42368#        else
42369#          define LT_DLLAZY_OR_NOW	0
42370#        endif
42371#      endif
42372#    endif
42373#  endif
42374#endif
42375
42376/* When -fvisibility=hidden is used, assume the code has been annotated
42377   correspondingly for the symbols needed.  */
42378#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
42379int fnord () __attribute__((visibility("default")));
42380#endif
42381
42382int fnord () { return 42; }
42383int main ()
42384{
42385  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
42386  int status = $lt_dlunknown;
42387
42388  if (self)
42389    {
42390      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
42391      else
42392        {
42393	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
42394          else puts (dlerror ());
42395	}
42396      /* dlclose (self); */
42397    }
42398  else
42399    puts (dlerror ());
42400
42401  return status;
42402}
42403_LT_EOF
42404  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
42405  (eval $ac_link) 2>&5
42406  ac_status=$?
42407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42408  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
42409    (./conftest; exit; ) >&5 2>/dev/null
42410    lt_status=$?
42411    case x$lt_status in
42412      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
42413      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
42414      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
42415    esac
42416  else :
42417    # compilation failed
42418    lt_cv_dlopen_self=no
42419  fi
42420fi
42421rm -fr conftest*
42422
42423
42424fi
42425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
42426$as_echo "$lt_cv_dlopen_self" >&6; }
42427
42428    if test yes = "$lt_cv_dlopen_self"; then
42429      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
42430      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
42431$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
42432if ${lt_cv_dlopen_self_static+:} false; then :
42433  $as_echo_n "(cached) " >&6
42434else
42435  	  if test yes = "$cross_compiling"; then :
42436  lt_cv_dlopen_self_static=cross
42437else
42438  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
42439  lt_status=$lt_dlunknown
42440  cat > conftest.$ac_ext <<_LT_EOF
42441#line $LINENO "configure"
42442#include "confdefs.h"
42443
42444#if HAVE_DLFCN_H
42445#include <dlfcn.h>
42446#endif
42447
42448#include <stdio.h>
42449
42450#ifdef RTLD_GLOBAL
42451#  define LT_DLGLOBAL		RTLD_GLOBAL
42452#else
42453#  ifdef DL_GLOBAL
42454#    define LT_DLGLOBAL		DL_GLOBAL
42455#  else
42456#    define LT_DLGLOBAL		0
42457#  endif
42458#endif
42459
42460/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
42461   find out it does not work in some platform. */
42462#ifndef LT_DLLAZY_OR_NOW
42463#  ifdef RTLD_LAZY
42464#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
42465#  else
42466#    ifdef DL_LAZY
42467#      define LT_DLLAZY_OR_NOW		DL_LAZY
42468#    else
42469#      ifdef RTLD_NOW
42470#        define LT_DLLAZY_OR_NOW	RTLD_NOW
42471#      else
42472#        ifdef DL_NOW
42473#          define LT_DLLAZY_OR_NOW	DL_NOW
42474#        else
42475#          define LT_DLLAZY_OR_NOW	0
42476#        endif
42477#      endif
42478#    endif
42479#  endif
42480#endif
42481
42482/* When -fvisibility=hidden is used, assume the code has been annotated
42483   correspondingly for the symbols needed.  */
42484#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
42485int fnord () __attribute__((visibility("default")));
42486#endif
42487
42488int fnord () { return 42; }
42489int main ()
42490{
42491  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
42492  int status = $lt_dlunknown;
42493
42494  if (self)
42495    {
42496      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
42497      else
42498        {
42499	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
42500          else puts (dlerror ());
42501	}
42502      /* dlclose (self); */
42503    }
42504  else
42505    puts (dlerror ());
42506
42507  return status;
42508}
42509_LT_EOF
42510  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
42511  (eval $ac_link) 2>&5
42512  ac_status=$?
42513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42514  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
42515    (./conftest; exit; ) >&5 2>/dev/null
42516    lt_status=$?
42517    case x$lt_status in
42518      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
42519      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
42520      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
42521    esac
42522  else :
42523    # compilation failed
42524    lt_cv_dlopen_self_static=no
42525  fi
42526fi
42527rm -fr conftest*
42528
42529
42530fi
42531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
42532$as_echo "$lt_cv_dlopen_self_static" >&6; }
42533    fi
42534
42535    CPPFLAGS=$save_CPPFLAGS
42536    LDFLAGS=$save_LDFLAGS
42537    LIBS=$save_LIBS
42538    ;;
42539  esac
42540
42541  case $lt_cv_dlopen_self in
42542  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
42543  *) enable_dlopen_self=unknown ;;
42544  esac
42545
42546  case $lt_cv_dlopen_self_static in
42547  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
42548  *) enable_dlopen_self_static=unknown ;;
42549  esac
42550fi
42551
42552
42553
42554
42555
42556
42557
42558
42559
42560
42561
42562
42563
42564
42565
42566
42567
42568striplib=
42569old_striplib=
42570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
42571$as_echo_n "checking whether stripping libraries is possible... " >&6; }
42572if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
42573  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
42574  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
42575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42576$as_echo "yes" >&6; }
42577else
42578# FIXME - insert some real tests, host_os isn't really good enough
42579  case $host_os in
42580  darwin*)
42581    if test -n "$STRIP"; then
42582      striplib="$STRIP -x"
42583      old_striplib="$STRIP -S"
42584      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42585$as_echo "yes" >&6; }
42586    else
42587      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42588$as_echo "no" >&6; }
42589    fi
42590    ;;
42591  *)
42592    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42593$as_echo "no" >&6; }
42594    ;;
42595  esac
42596fi
42597
42598
42599
42600
42601
42602
42603
42604
42605
42606
42607
42608
42609  # Report what library types will actually be built
42610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
42611$as_echo_n "checking if libtool supports shared libraries... " >&6; }
42612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
42613$as_echo "$can_build_shared" >&6; }
42614
42615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
42616$as_echo_n "checking whether to build shared libraries... " >&6; }
42617  test no = "$can_build_shared" && enable_shared=no
42618
42619  # On AIX, shared libraries and static libraries use the same namespace, and
42620  # are all built from PIC.
42621  case $host_os in
42622  aix3*)
42623    test yes = "$enable_shared" && enable_static=no
42624    if test -n "$RANLIB"; then
42625      archive_cmds="$archive_cmds~\$RANLIB \$lib"
42626      postinstall_cmds='$RANLIB $lib'
42627    fi
42628    ;;
42629
42630  aix[4-9]*)
42631    if test ia64 != "$host_cpu"; then
42632      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
42633      yes,aix,yes) ;;			# shared object as lib.so file only
42634      yes,svr4,*) ;;			# shared object as lib.so archive member only
42635      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
42636      esac
42637    fi
42638    ;;
42639  esac
42640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
42641$as_echo "$enable_shared" >&6; }
42642
42643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
42644$as_echo_n "checking whether to build static libraries... " >&6; }
42645  # Make sure either enable_shared or enable_static is yes.
42646  test yes = "$enable_shared" || enable_static=yes
42647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
42648$as_echo "$enable_static" >&6; }
42649
42650
42651
42652
42653fi
42654ac_ext=c
42655ac_cpp='$CPP $CPPFLAGS'
42656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42658ac_compiler_gnu=$ac_cv_c_compiler_gnu
42659
42660CC=$lt_save_CC
42661
42662
42663
42664
42665
42666
42667
42668
42669
42670
42671
42672
42673
42674
42675
42676        ac_config_commands="$ac_config_commands libtool"
42677
42678
42679
42680
42681# Only expand once:
42682
42683
42684
42685
42686    # Check whether --enable-static-binary was given.
42687if test "${enable_static_binary+set}" = set; then :
42688  enableval=$enable_static_binary;
42689	    case "$enableval" in
42690	    "" | y | ye | yes)
42691		AMANDA_STATIC_LDFLAGS=-static
42692		if test x"$enable_static" = x"no"; then
42693			as_fn_error $? "*** --enable-static-binary is incompatible with --disable-static" "$LINENO" 5
42694		fi
42695		;;
42696	    *n | no)
42697		AMANDA_STATIC_LDFLAGS=
42698		;;
42699	    esac
42700
42701fi
42702
42703
42704
42705
42706#
42707# headers
42708#
42709ac_header_dirent=no
42710for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
42711  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
42712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
42713$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
42714if eval \${$as_ac_Header+:} false; then :
42715  $as_echo_n "(cached) " >&6
42716else
42717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42718/* end confdefs.h.  */
42719#include <sys/types.h>
42720#include <$ac_hdr>
42721
42722int
42723main ()
42724{
42725if ((DIR *) 0)
42726return 0;
42727  ;
42728  return 0;
42729}
42730_ACEOF
42731if ac_fn_c_try_compile "$LINENO"; then :
42732  eval "$as_ac_Header=yes"
42733else
42734  eval "$as_ac_Header=no"
42735fi
42736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42737fi
42738eval ac_res=\$$as_ac_Header
42739	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
42740$as_echo "$ac_res" >&6; }
42741if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
42742  cat >>confdefs.h <<_ACEOF
42743#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
42744_ACEOF
42745
42746ac_header_dirent=$ac_hdr; break
42747fi
42748
42749done
42750# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
42751if test $ac_header_dirent = dirent.h; then
42752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
42753$as_echo_n "checking for library containing opendir... " >&6; }
42754if ${ac_cv_search_opendir+:} false; then :
42755  $as_echo_n "(cached) " >&6
42756else
42757  ac_func_search_save_LIBS=$LIBS
42758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42759/* end confdefs.h.  */
42760
42761/* Override any GCC internal prototype to avoid an error.
42762   Use char because int might match the return type of a GCC
42763   builtin and then its argument prototype would still apply.  */
42764#ifdef __cplusplus
42765extern "C"
42766#endif
42767char opendir ();
42768int
42769main ()
42770{
42771return opendir ();
42772  ;
42773  return 0;
42774}
42775_ACEOF
42776for ac_lib in '' dir; do
42777  if test -z "$ac_lib"; then
42778    ac_res="none required"
42779  else
42780    ac_res=-l$ac_lib
42781    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
42782  fi
42783  if ac_fn_c_try_link "$LINENO"; then :
42784  ac_cv_search_opendir=$ac_res
42785fi
42786rm -f core conftest.err conftest.$ac_objext \
42787    conftest$ac_exeext
42788  if ${ac_cv_search_opendir+:} false; then :
42789  break
42790fi
42791done
42792if ${ac_cv_search_opendir+:} false; then :
42793
42794else
42795  ac_cv_search_opendir=no
42796fi
42797rm conftest.$ac_ext
42798LIBS=$ac_func_search_save_LIBS
42799fi
42800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
42801$as_echo "$ac_cv_search_opendir" >&6; }
42802ac_res=$ac_cv_search_opendir
42803if test "$ac_res" != no; then :
42804  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42805
42806fi
42807
42808else
42809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
42810$as_echo_n "checking for library containing opendir... " >&6; }
42811if ${ac_cv_search_opendir+:} false; then :
42812  $as_echo_n "(cached) " >&6
42813else
42814  ac_func_search_save_LIBS=$LIBS
42815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42816/* end confdefs.h.  */
42817
42818/* Override any GCC internal prototype to avoid an error.
42819   Use char because int might match the return type of a GCC
42820   builtin and then its argument prototype would still apply.  */
42821#ifdef __cplusplus
42822extern "C"
42823#endif
42824char opendir ();
42825int
42826main ()
42827{
42828return opendir ();
42829  ;
42830  return 0;
42831}
42832_ACEOF
42833for ac_lib in '' x; do
42834  if test -z "$ac_lib"; then
42835    ac_res="none required"
42836  else
42837    ac_res=-l$ac_lib
42838    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
42839  fi
42840  if ac_fn_c_try_link "$LINENO"; then :
42841  ac_cv_search_opendir=$ac_res
42842fi
42843rm -f core conftest.err conftest.$ac_objext \
42844    conftest$ac_exeext
42845  if ${ac_cv_search_opendir+:} false; then :
42846  break
42847fi
42848done
42849if ${ac_cv_search_opendir+:} false; then :
42850
42851else
42852  ac_cv_search_opendir=no
42853fi
42854rm conftest.$ac_ext
42855LIBS=$ac_func_search_save_LIBS
42856fi
42857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
42858$as_echo "$ac_cv_search_opendir" >&6; }
42859ac_res=$ac_cv_search_opendir
42860if test "$ac_res" != no; then :
42861  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42862
42863fi
42864
42865fi
42866
42867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
42868$as_echo_n "checking for ANSI C header files... " >&6; }
42869if ${ac_cv_header_stdc+:} false; then :
42870  $as_echo_n "(cached) " >&6
42871else
42872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42873/* end confdefs.h.  */
42874#include <stdlib.h>
42875#include <stdarg.h>
42876#include <string.h>
42877#include <float.h>
42878
42879int
42880main ()
42881{
42882
42883  ;
42884  return 0;
42885}
42886_ACEOF
42887if ac_fn_c_try_compile "$LINENO"; then :
42888  ac_cv_header_stdc=yes
42889else
42890  ac_cv_header_stdc=no
42891fi
42892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42893
42894if test $ac_cv_header_stdc = yes; then
42895  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
42896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42897/* end confdefs.h.  */
42898#include <string.h>
42899
42900_ACEOF
42901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42902  $EGREP "memchr" >/dev/null 2>&1; then :
42903
42904else
42905  ac_cv_header_stdc=no
42906fi
42907rm -f conftest*
42908
42909fi
42910
42911if test $ac_cv_header_stdc = yes; then
42912  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
42913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42914/* end confdefs.h.  */
42915#include <stdlib.h>
42916
42917_ACEOF
42918if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42919  $EGREP "free" >/dev/null 2>&1; then :
42920
42921else
42922  ac_cv_header_stdc=no
42923fi
42924rm -f conftest*
42925
42926fi
42927
42928if test $ac_cv_header_stdc = yes; then
42929  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
42930  if test "$cross_compiling" = yes; then :
42931  :
42932else
42933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42934/* end confdefs.h.  */
42935#include <ctype.h>
42936#include <stdlib.h>
42937#if ((' ' & 0x0FF) == 0x020)
42938# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
42939# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
42940#else
42941# define ISLOWER(c) \
42942		   (('a' <= (c) && (c) <= 'i') \
42943		     || ('j' <= (c) && (c) <= 'r') \
42944		     || ('s' <= (c) && (c) <= 'z'))
42945# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
42946#endif
42947
42948#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
42949int
42950main ()
42951{
42952  int i;
42953  for (i = 0; i < 256; i++)
42954    if (XOR (islower (i), ISLOWER (i))
42955	|| toupper (i) != TOUPPER (i))
42956      return 2;
42957  return 0;
42958}
42959_ACEOF
42960if ac_fn_c_try_run "$LINENO"; then :
42961
42962else
42963  ac_cv_header_stdc=no
42964fi
42965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42966  conftest.$ac_objext conftest.beam conftest.$ac_ext
42967fi
42968
42969fi
42970fi
42971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
42972$as_echo "$ac_cv_header_stdc" >&6; }
42973if test $ac_cv_header_stdc = yes; then
42974
42975$as_echo "#define STDC_HEADERS 1" >>confdefs.h
42976
42977fi
42978
42979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
42980$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
42981if ${ac_cv_header_time+:} false; then :
42982  $as_echo_n "(cached) " >&6
42983else
42984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42985/* end confdefs.h.  */
42986#include <sys/types.h>
42987#include <sys/time.h>
42988#include <time.h>
42989
42990int
42991main ()
42992{
42993if ((struct tm *) 0)
42994return 0;
42995  ;
42996  return 0;
42997}
42998_ACEOF
42999if ac_fn_c_try_compile "$LINENO"; then :
43000  ac_cv_header_time=yes
43001else
43002  ac_cv_header_time=no
43003fi
43004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43005fi
43006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
43007$as_echo "$ac_cv_header_time" >&6; }
43008if test $ac_cv_header_time = yes; then
43009
43010$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
43011
43012fi
43013
43014for ac_header in grp.h \
43015	libc.h \
43016	libgen.h \
43017	limits.h \
43018	math.h \
43019	netinet/in.h \
43020	regex.h \
43021	stdarg.h \
43022	stdlib.h \
43023	strings.h \
43024	rpc/rpc.h \
43025	sys/file.h \
43026	sys/ioctl.h \
43027	sys/ipc.h \
43028	sys/mntent.h \
43029	sys/param.h \
43030	sys/select.h \
43031	sys/stat.h \
43032	sys/shm.h \
43033	sys/time.h \
43034	sys/types.h \
43035	sys/uio.h \
43036	syslog.h \
43037	time.h \
43038	unistd.h \
43039
43040do :
43041  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43042ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
43043if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
43044  cat >>confdefs.h <<_ACEOF
43045#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43046_ACEOF
43047
43048fi
43049
43050done
43051
43052
43053$as_echo "#define HAVE_AMANDA_H 1" >>confdefs.h
43054
43055
43056$as_echo "#define HAVE_UTIL_H 1" >>confdefs.h
43057
43058
43059
43060$as_echo "#define USE_GETTEXT 1" >>confdefs.h
43061
43062
43063#
43064# Types
43065#
43066# The cast to long int works around a bug in the HP C Compiler
43067# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
43068# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
43069# This bug is HP SR number 8606223364.
43070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
43071$as_echo_n "checking size of int... " >&6; }
43072if ${ac_cv_sizeof_int+:} false; then :
43073  $as_echo_n "(cached) " >&6
43074else
43075  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
43076
43077else
43078  if test "$ac_cv_type_int" = yes; then
43079     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
43081as_fn_error 77 "cannot compute sizeof (int)
43082See \`config.log' for more details" "$LINENO" 5; }
43083   else
43084     ac_cv_sizeof_int=0
43085   fi
43086fi
43087
43088fi
43089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
43090$as_echo "$ac_cv_sizeof_int" >&6; }
43091
43092
43093
43094cat >>confdefs.h <<_ACEOF
43095#define SIZEOF_INT $ac_cv_sizeof_int
43096_ACEOF
43097
43098
43099# The cast to long int works around a bug in the HP C Compiler
43100# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
43101# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
43102# This bug is HP SR number 8606223364.
43103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
43104$as_echo_n "checking size of long... " >&6; }
43105if ${ac_cv_sizeof_long+:} false; then :
43106  $as_echo_n "(cached) " >&6
43107else
43108  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
43109
43110else
43111  if test "$ac_cv_type_long" = yes; then
43112     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
43114as_fn_error 77 "cannot compute sizeof (long)
43115See \`config.log' for more details" "$LINENO" 5; }
43116   else
43117     ac_cv_sizeof_long=0
43118   fi
43119fi
43120
43121fi
43122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
43123$as_echo "$ac_cv_sizeof_long" >&6; }
43124
43125
43126
43127cat >>confdefs.h <<_ACEOF
43128#define SIZEOF_LONG $ac_cv_sizeof_long
43129_ACEOF
43130
43131
43132# The cast to long int works around a bug in the HP C Compiler
43133# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
43134# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
43135# This bug is HP SR number 8606223364.
43136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
43137$as_echo_n "checking size of long long... " >&6; }
43138if ${ac_cv_sizeof_long_long+:} false; then :
43139  $as_echo_n "(cached) " >&6
43140else
43141  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
43142
43143else
43144  if test "$ac_cv_type_long_long" = yes; then
43145     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
43147as_fn_error 77 "cannot compute sizeof (long long)
43148See \`config.log' for more details" "$LINENO" 5; }
43149   else
43150     ac_cv_sizeof_long_long=0
43151   fi
43152fi
43153
43154fi
43155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
43156$as_echo "$ac_cv_sizeof_long_long" >&6; }
43157
43158
43159
43160cat >>confdefs.h <<_ACEOF
43161#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
43162_ACEOF
43163
43164
43165# The cast to long int works around a bug in the HP C Compiler
43166# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
43167# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
43168# This bug is HP SR number 8606223364.
43169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
43170$as_echo_n "checking size of intmax_t... " >&6; }
43171if ${ac_cv_sizeof_intmax_t+:} false; then :
43172  $as_echo_n "(cached) " >&6
43173else
43174  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t"        "$ac_includes_default"; then :
43175
43176else
43177  if test "$ac_cv_type_intmax_t" = yes; then
43178     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
43180as_fn_error 77 "cannot compute sizeof (intmax_t)
43181See \`config.log' for more details" "$LINENO" 5; }
43182   else
43183     ac_cv_sizeof_intmax_t=0
43184   fi
43185fi
43186
43187fi
43188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
43189$as_echo "$ac_cv_sizeof_intmax_t" >&6; }
43190
43191
43192
43193cat >>confdefs.h <<_ACEOF
43194#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
43195_ACEOF
43196
43197
43198# The cast to long int works around a bug in the HP C Compiler
43199# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
43200# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
43201# This bug is HP SR number 8606223364.
43202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
43203$as_echo_n "checking size of off_t... " >&6; }
43204if ${ac_cv_sizeof_off_t+:} false; then :
43205  $as_echo_n "(cached) " >&6
43206else
43207  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
43208
43209else
43210  if test "$ac_cv_type_off_t" = yes; then
43211     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
43213as_fn_error 77 "cannot compute sizeof (off_t)
43214See \`config.log' for more details" "$LINENO" 5; }
43215   else
43216     ac_cv_sizeof_off_t=0
43217   fi
43218fi
43219
43220fi
43221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
43222$as_echo "$ac_cv_sizeof_off_t" >&6; }
43223
43224
43225
43226cat >>confdefs.h <<_ACEOF
43227#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
43228_ACEOF
43229
43230
43231# The cast to long int works around a bug in the HP C Compiler
43232# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
43233# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
43234# This bug is HP SR number 8606223364.
43235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
43236$as_echo_n "checking size of size_t... " >&6; }
43237if ${ac_cv_sizeof_size_t+:} false; then :
43238  $as_echo_n "(cached) " >&6
43239else
43240  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
43241
43242else
43243  if test "$ac_cv_type_size_t" = yes; then
43244     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
43246as_fn_error 77 "cannot compute sizeof (size_t)
43247See \`config.log' for more details" "$LINENO" 5; }
43248   else
43249     ac_cv_sizeof_size_t=0
43250   fi
43251fi
43252
43253fi
43254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
43255$as_echo "$ac_cv_sizeof_size_t" >&6; }
43256
43257
43258
43259cat >>confdefs.h <<_ACEOF
43260#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
43261_ACEOF
43262
43263
43264# The cast to long int works around a bug in the HP C Compiler
43265# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
43266# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
43267# This bug is HP SR number 8606223364.
43268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
43269$as_echo_n "checking size of ssize_t... " >&6; }
43270if ${ac_cv_sizeof_ssize_t+:} false; then :
43271  $as_echo_n "(cached) " >&6
43272else
43273  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
43274
43275else
43276  if test "$ac_cv_type_ssize_t" = yes; then
43277     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
43279as_fn_error 77 "cannot compute sizeof (ssize_t)
43280See \`config.log' for more details" "$LINENO" 5; }
43281   else
43282     ac_cv_sizeof_ssize_t=0
43283   fi
43284fi
43285
43286fi
43287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
43288$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
43289
43290
43291
43292cat >>confdefs.h <<_ACEOF
43293#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
43294_ACEOF
43295
43296
43297# The cast to long int works around a bug in the HP C Compiler
43298# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
43299# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
43300# This bug is HP SR number 8606223364.
43301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
43302$as_echo_n "checking size of time_t... " >&6; }
43303if ${ac_cv_sizeof_time_t+:} false; then :
43304  $as_echo_n "(cached) " >&6
43305else
43306  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
43307
43308else
43309  if test "$ac_cv_type_time_t" = yes; then
43310     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
43312as_fn_error 77 "cannot compute sizeof (time_t)
43313See \`config.log' for more details" "$LINENO" 5; }
43314   else
43315     ac_cv_sizeof_time_t=0
43316   fi
43317fi
43318
43319fi
43320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
43321$as_echo "$ac_cv_sizeof_time_t" >&6; }
43322
43323
43324
43325cat >>confdefs.h <<_ACEOF
43326#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
43327_ACEOF
43328
43329
43330ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
43331if test "x$ac_cv_type_off_t" = xyes; then :
43332
43333else
43334
43335cat >>confdefs.h <<_ACEOF
43336#define off_t long int
43337_ACEOF
43338
43339fi
43340
43341ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
43342if test "x$ac_cv_type_pid_t" = xyes; then :
43343
43344else
43345
43346cat >>confdefs.h <<_ACEOF
43347#define pid_t int
43348_ACEOF
43349
43350fi
43351
43352ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
43353if test "x$ac_cv_type_size_t" = xyes; then :
43354
43355else
43356
43357cat >>confdefs.h <<_ACEOF
43358#define size_t unsigned int
43359_ACEOF
43360
43361fi
43362
43363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
43364$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
43365if ${ac_cv_type_uid_t+:} false; then :
43366  $as_echo_n "(cached) " >&6
43367else
43368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43369/* end confdefs.h.  */
43370#include <sys/types.h>
43371
43372_ACEOF
43373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43374  $EGREP "uid_t" >/dev/null 2>&1; then :
43375  ac_cv_type_uid_t=yes
43376else
43377  ac_cv_type_uid_t=no
43378fi
43379rm -f conftest*
43380
43381fi
43382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
43383$as_echo "$ac_cv_type_uid_t" >&6; }
43384if test $ac_cv_type_uid_t = no; then
43385
43386$as_echo "#define uid_t int" >>confdefs.h
43387
43388
43389$as_echo "#define gid_t int" >>confdefs.h
43390
43391fi
43392
43393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
43394$as_echo_n "checking return type of signal handlers... " >&6; }
43395if ${ac_cv_type_signal+:} false; then :
43396  $as_echo_n "(cached) " >&6
43397else
43398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43399/* end confdefs.h.  */
43400#include <sys/types.h>
43401#include <signal.h>
43402
43403int
43404main ()
43405{
43406return *(signal (0, 0)) (0) == 1;
43407  ;
43408  return 0;
43409}
43410_ACEOF
43411if ac_fn_c_try_compile "$LINENO"; then :
43412  ac_cv_type_signal=int
43413else
43414  ac_cv_type_signal=void
43415fi
43416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43417fi
43418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
43419$as_echo "$ac_cv_type_signal" >&6; }
43420
43421cat >>confdefs.h <<_ACEOF
43422#define RETSIGTYPE $ac_cv_type_signal
43423_ACEOF
43424
43425
43426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
43427$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
43428if ${ac_cv_struct_tm+:} false; then :
43429  $as_echo_n "(cached) " >&6
43430else
43431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43432/* end confdefs.h.  */
43433#include <sys/types.h>
43434#include <time.h>
43435
43436int
43437main ()
43438{
43439struct tm tm;
43440				     int *p = &tm.tm_sec;
43441				     return !p;
43442  ;
43443  return 0;
43444}
43445_ACEOF
43446if ac_fn_c_try_compile "$LINENO"; then :
43447  ac_cv_struct_tm=time.h
43448else
43449  ac_cv_struct_tm=sys/time.h
43450fi
43451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43452fi
43453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
43454$as_echo "$ac_cv_struct_tm" >&6; }
43455if test $ac_cv_struct_tm = sys/time.h; then
43456
43457$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
43458
43459fi
43460
43461
43462      ## lifted from config/gnulib/socklen.m4
43463            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
43464$as_echo_n "checking for socklen_t equivalent... " >&6; }
43465      if ${gl_cv_socklen_t_equiv+:} false; then :
43466  $as_echo_n "(cached) " >&6
43467else
43468  # Systems have either "struct sockaddr *" or
43469	 # "void *" as the second argument to getpeername
43470	 gl_cv_socklen_t_equiv=
43471	 for arg2 in "struct sockaddr" void; do
43472	   for t in socklen_t int size_t "unsigned int" "long int" "unsigned long int"; do
43473	     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43474/* end confdefs.h.  */
43475#include <sys/types.h>
43476		#include <sys/socket.h>
43477
43478		int getpeername (int, $arg2 *, $t *);
43479int
43480main ()
43481{
43482$t len;
43483		getpeername (0, 0, &len);
43484  ;
43485  return 0;
43486}
43487_ACEOF
43488if ac_fn_c_try_compile "$LINENO"; then :
43489  gl_cv_socklen_t_equiv="$t"
43490fi
43491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43492	     test "$gl_cv_socklen_t_equiv" != "" && break
43493	   done
43494	   test "$gl_cv_socklen_t_equiv" != "" && break
43495	 done
43496
43497fi
43498
43499      ## end lifting from config/gnulib/socklen.m4
43500      # fallback if the check fails
43501      if test "$gl_cv_socklen_t_equiv" = ""; then
43502	gl_cv_socklen_t_equiv=socklen_t
43503      fi
43504      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
43505$as_echo "$gl_cv_socklen_t_equiv" >&6; }
43506
43507
43508cat >>confdefs.h <<_ACEOF
43509#define socklen_t_equiv $gl_cv_socklen_t_equiv
43510_ACEOF
43511
43512
43513
43514
43515    ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
43516#ifdef HAVE_SYS_TYPES_H
43517#include <sys/types.h>
43518#endif
43519#ifdef STDC_HEADERS
43520#include <stdlib.h>
43521#include <stddef.h>
43522#endif
43523#include <sys/socket.h>
43524
43525
43526"
43527if test "x$ac_cv_type_sa_family_t" = xyes; then :
43528
43529else
43530
43531
43532$as_echo "#define sa_family_t unsigned short" >>confdefs.h
43533
43534
43535fi
43536
43537
43538
43539
43540    ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
43541#ifdef HAVE_SYS_TYPES_H
43542#include <sys/types.h>
43543#endif
43544#ifdef STDC_HEADERS
43545#include <stdlib.h>
43546#include <stddef.h>
43547#endif
43548#include <netinet/in.h>
43549
43550
43551"
43552if test "x$ac_cv_type_in_port_t" = xyes; then :
43553
43554else
43555
43556
43557$as_echo "#define in_port_t unsigned short" >>confdefs.h
43558
43559
43560fi
43561
43562
43563
43564
43565    for ac_header in sys/wait.h wait.h
43566do :
43567  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43568ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
43569if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
43570  cat >>confdefs.h <<_ACEOF
43571#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43572_ACEOF
43573
43574fi
43575
43576done
43577
43578    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait uses union wait" >&5
43579$as_echo_n "checking whether wait uses union wait... " >&6; }
43580if ${cf_cv_arg_union_wait+:} false; then :
43581  $as_echo_n "(cached) " >&6
43582else
43583
43584        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43585/* end confdefs.h.  */
43586
43587#include <sys/types.h>
43588
43589#if HAVE_SYS_WAIT_H
43590# include <sys/wait.h>
43591#else
43592# if HAVE_WAIT_H
43593#  include <wait.h>
43594# endif
43595#endif
43596
43597#ifdef __STDC__
43598pid_t wait(union wait *);
43599#endif
43600
43601int
43602main ()
43603{
43604
43605  union wait x; int i;
43606  wait(&x); i = WIFEXITED(x)
43607
43608  ;
43609  return 0;
43610}
43611_ACEOF
43612if ac_fn_c_try_compile "$LINENO"; then :
43613  cf_cv_arg_union_wait=yes
43614else
43615  cf_cv_arg_union_wait=no
43616fi
43617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43618fi
43619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_arg_union_wait" >&5
43620$as_echo "$cf_cv_arg_union_wait" >&6; }
43621    if test $cf_cv_arg_union_wait = yes; then
43622
43623$as_echo "#define WAIT_USES_UNION 1" >>confdefs.h
43624
43625    fi
43626
43627
43628
43629    for ac_header in sys/wait.h wait.h
43630do :
43631  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43632ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
43633if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
43634  cat >>confdefs.h <<_ACEOF
43635#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43636_ACEOF
43637
43638fi
43639
43640done
43641
43642    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait uses int" >&5
43643$as_echo_n "checking whether wait uses int... " >&6; }
43644if ${cf_cv_arg_int+:} false; then :
43645  $as_echo_n "(cached) " >&6
43646else
43647
43648        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43649/* end confdefs.h.  */
43650
43651#include <sys/types.h>
43652
43653#if HAVE_SYS_WAIT_H
43654# include <sys/wait.h>
43655#else
43656# if HAVE_WAIT_H
43657#  include <wait.h>
43658# endif
43659#endif
43660
43661#ifdef __STDC__
43662pid_t wait(int *);
43663#endif
43664
43665int
43666main ()
43667{
43668
43669  int x; int i;
43670  wait(&x); i = WIFEXITED(x)
43671
43672  ;
43673  return 0;
43674}
43675_ACEOF
43676if ac_fn_c_try_compile "$LINENO"; then :
43677  cf_cv_arg_int=yes
43678else
43679  cf_cv_arg_int=no
43680fi
43681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43682fi
43683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_arg_int" >&5
43684$as_echo "$cf_cv_arg_int" >&6; }
43685if test $cf_cv_arg_int = yes; then
43686
43687$as_echo "#define WAIT_USES_INT 1" >>confdefs.h
43688
43689fi
43690
43691
43692#
43693# Libraries
43694#
43695# cur_colr is on some HP's
43696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcur_colr" >&5
43697$as_echo_n "checking for main in -lcur_colr... " >&6; }
43698if ${ac_cv_lib_cur_colr_main+:} false; then :
43699  $as_echo_n "(cached) " >&6
43700else
43701  ac_check_lib_save_LIBS=$LIBS
43702LIBS="-lcur_colr  $LIBS"
43703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43704/* end confdefs.h.  */
43705
43706
43707int
43708main ()
43709{
43710return main ();
43711  ;
43712  return 0;
43713}
43714_ACEOF
43715if ac_fn_c_try_link "$LINENO"; then :
43716  ac_cv_lib_cur_colr_main=yes
43717else
43718  ac_cv_lib_cur_colr_main=no
43719fi
43720rm -f core conftest.err conftest.$ac_objext \
43721    conftest$ac_exeext conftest.$ac_ext
43722LIBS=$ac_check_lib_save_LIBS
43723fi
43724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_main" >&5
43725$as_echo "$ac_cv_lib_cur_colr_main" >&6; }
43726if test "x$ac_cv_lib_cur_colr_main" = xyes; then :
43727  cat >>confdefs.h <<_ACEOF
43728#define HAVE_LIBCUR_COLR 1
43729_ACEOF
43730
43731  LIBS="-lcur_colr $LIBS"
43732
43733fi
43734
43735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lintl" >&5
43736$as_echo_n "checking for main in -lintl... " >&6; }
43737if ${ac_cv_lib_intl_main+:} false; then :
43738  $as_echo_n "(cached) " >&6
43739else
43740  ac_check_lib_save_LIBS=$LIBS
43741LIBS="-lintl  $LIBS"
43742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43743/* end confdefs.h.  */
43744
43745
43746int
43747main ()
43748{
43749return main ();
43750  ;
43751  return 0;
43752}
43753_ACEOF
43754if ac_fn_c_try_link "$LINENO"; then :
43755  ac_cv_lib_intl_main=yes
43756else
43757  ac_cv_lib_intl_main=no
43758fi
43759rm -f core conftest.err conftest.$ac_objext \
43760    conftest$ac_exeext conftest.$ac_ext
43761LIBS=$ac_check_lib_save_LIBS
43762fi
43763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_main" >&5
43764$as_echo "$ac_cv_lib_intl_main" >&6; }
43765if test "x$ac_cv_lib_intl_main" = xyes; then :
43766  cat >>confdefs.h <<_ACEOF
43767#define HAVE_LIBINTL 1
43768_ACEOF
43769
43770  LIBS="-lintl $LIBS"
43771
43772fi
43773
43774
43775    # Make sure we don't use -lnsl and -lsun on Irix systems.
43776    case "$host" in
43777	*sgi-irix*)
43778			    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
43779$as_echo_n "checking for main in -lsocket... " >&6; }
43780if ${ac_cv_lib_socket_main+:} false; then :
43781  $as_echo_n "(cached) " >&6
43782else
43783  ac_check_lib_save_LIBS=$LIBS
43784LIBS="-lsocket  $LIBS"
43785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43786/* end confdefs.h.  */
43787
43788
43789int
43790main ()
43791{
43792return main ();
43793  ;
43794  return 0;
43795}
43796_ACEOF
43797if ac_fn_c_try_link "$LINENO"; then :
43798  ac_cv_lib_socket_main=yes
43799else
43800  ac_cv_lib_socket_main=no
43801fi
43802rm -f core conftest.err conftest.$ac_objext \
43803    conftest$ac_exeext conftest.$ac_ext
43804LIBS=$ac_check_lib_save_LIBS
43805fi
43806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
43807$as_echo "$ac_cv_lib_socket_main" >&6; }
43808if test "x$ac_cv_lib_socket_main" = xyes; then :
43809  cat >>confdefs.h <<_ACEOF
43810#define HAVE_LIBSOCKET 1
43811_ACEOF
43812
43813  LIBS="-lsocket $LIBS"
43814
43815fi
43816
43817			    ;;
43818	*)
43819			    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
43820$as_echo_n "checking for main in -lresolv... " >&6; }
43821if ${ac_cv_lib_resolv_main+:} false; then :
43822  $as_echo_n "(cached) " >&6
43823else
43824  ac_check_lib_save_LIBS=$LIBS
43825LIBS="-lresolv  $LIBS"
43826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43827/* end confdefs.h.  */
43828
43829
43830int
43831main ()
43832{
43833return main ();
43834  ;
43835  return 0;
43836}
43837_ACEOF
43838if ac_fn_c_try_link "$LINENO"; then :
43839  ac_cv_lib_resolv_main=yes
43840else
43841  ac_cv_lib_resolv_main=no
43842fi
43843rm -f core conftest.err conftest.$ac_objext \
43844    conftest$ac_exeext conftest.$ac_ext
43845LIBS=$ac_check_lib_save_LIBS
43846fi
43847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
43848$as_echo "$ac_cv_lib_resolv_main" >&6; }
43849if test "x$ac_cv_lib_resolv_main" = xyes; then :
43850  cat >>confdefs.h <<_ACEOF
43851#define HAVE_LIBRESOLV 1
43852_ACEOF
43853
43854  LIBS="-lresolv $LIBS"
43855
43856fi
43857
43858			    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
43859$as_echo_n "checking for main in -lnsl... " >&6; }
43860if ${ac_cv_lib_nsl_main+:} false; then :
43861  $as_echo_n "(cached) " >&6
43862else
43863  ac_check_lib_save_LIBS=$LIBS
43864LIBS="-lnsl  $LIBS"
43865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43866/* end confdefs.h.  */
43867
43868
43869int
43870main ()
43871{
43872return main ();
43873  ;
43874  return 0;
43875}
43876_ACEOF
43877if ac_fn_c_try_link "$LINENO"; then :
43878  ac_cv_lib_nsl_main=yes
43879else
43880  ac_cv_lib_nsl_main=no
43881fi
43882rm -f core conftest.err conftest.$ac_objext \
43883    conftest$ac_exeext conftest.$ac_ext
43884LIBS=$ac_check_lib_save_LIBS
43885fi
43886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
43887$as_echo "$ac_cv_lib_nsl_main" >&6; }
43888if test "x$ac_cv_lib_nsl_main" = xyes; then :
43889  cat >>confdefs.h <<_ACEOF
43890#define HAVE_LIBNSL 1
43891_ACEOF
43892
43893  LIBS="-lnsl $LIBS"
43894
43895fi
43896
43897			    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
43898$as_echo_n "checking for main in -lsocket... " >&6; }
43899if ${ac_cv_lib_socket_main+:} false; then :
43900  $as_echo_n "(cached) " >&6
43901else
43902  ac_check_lib_save_LIBS=$LIBS
43903LIBS="-lsocket  $LIBS"
43904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43905/* end confdefs.h.  */
43906
43907
43908int
43909main ()
43910{
43911return main ();
43912  ;
43913  return 0;
43914}
43915_ACEOF
43916if ac_fn_c_try_link "$LINENO"; then :
43917  ac_cv_lib_socket_main=yes
43918else
43919  ac_cv_lib_socket_main=no
43920fi
43921rm -f core conftest.err conftest.$ac_objext \
43922    conftest$ac_exeext conftest.$ac_ext
43923LIBS=$ac_check_lib_save_LIBS
43924fi
43925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
43926$as_echo "$ac_cv_lib_socket_main" >&6; }
43927if test "x$ac_cv_lib_socket_main" = xyes; then :
43928  cat >>confdefs.h <<_ACEOF
43929#define HAVE_LIBSOCKET 1
43930_ACEOF
43931
43932  LIBS="-lsocket $LIBS"
43933
43934fi
43935
43936			    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsun" >&5
43937$as_echo_n "checking for main in -lsun... " >&6; }
43938if ${ac_cv_lib_sun_main+:} false; then :
43939  $as_echo_n "(cached) " >&6
43940else
43941  ac_check_lib_save_LIBS=$LIBS
43942LIBS="-lsun  $LIBS"
43943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43944/* end confdefs.h.  */
43945
43946
43947int
43948main ()
43949{
43950return main ();
43951  ;
43952  return 0;
43953}
43954_ACEOF
43955if ac_fn_c_try_link "$LINENO"; then :
43956  ac_cv_lib_sun_main=yes
43957else
43958  ac_cv_lib_sun_main=no
43959fi
43960rm -f core conftest.err conftest.$ac_objext \
43961    conftest$ac_exeext conftest.$ac_ext
43962LIBS=$ac_check_lib_save_LIBS
43963fi
43964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_main" >&5
43965$as_echo "$ac_cv_lib_sun_main" >&6; }
43966if test "x$ac_cv_lib_sun_main" = xyes; then :
43967  cat >>confdefs.h <<_ACEOF
43968#define HAVE_LIBSUN 1
43969_ACEOF
43970
43971  LIBS="-lsun $LIBS"
43972
43973fi
43974
43975			    ;;
43976    esac
43977
43978
43979
43980
43981
43982
43983
43984
43985    # if any of the precious variables are set, disable the pkg-config run.
43986    # Further, if any is specified, all must be specified.
43987    explicit_glib=no
43988    test x"$GLIB_CFLAGS" = x"" || explicit_glib=yes
43989    test x"$GLIB_LIBS" = x"" || explicit_glib=yes
43990    test x"$GLIB_GENMARSHAL" = x"" || explicit_glib=yes
43991    test x"$GOBJECT_QUERY" = x"" || explicit_glib=yes
43992    test x"$GLIB_MKENUMS" = x"" || explicit_glib=yes
43993
43994    if test x"$explicit_glib" = x"no"; then
43995	# search for pkg-config, which the glib configuration uses, adding a few
43996	# system-specific search paths.
43997	# Extract the first word of "pkg-config", so it can be a program name with args.
43998set dummy pkg-config; ac_word=$2
43999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44000$as_echo_n "checking for $ac_word... " >&6; }
44001if ${ac_cv_path_PKG_CONFIG+:} false; then :
44002  $as_echo_n "(cached) " >&6
44003else
44004  case $PKG_CONFIG in
44005  [\\/]* | ?:[\\/]*)
44006  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44007  ;;
44008  *)
44009  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44010as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin:/opt/csw/bin"
44011for as_dir in $as_dummy
44012do
44013  IFS=$as_save_IFS
44014  test -z "$as_dir" && as_dir=.
44015    for ac_exec_ext in '' $ac_executable_extensions; do
44016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44017    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44019    break 2
44020  fi
44021done
44022  done
44023IFS=$as_save_IFS
44024
44025  ;;
44026esac
44027fi
44028PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44029if test -n "$PKG_CONFIG"; then
44030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
44031$as_echo "$PKG_CONFIG" >&6; }
44032else
44033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44034$as_echo "no" >&6; }
44035fi
44036
44037
44038
44039	case "$host" in
44040	    sparc-sun-solaris2.8) # Solaris 8
44041		# give the linker a runtime search path; pkg-config doesn't supply this.
44042		# Users could also specify this with LD_LIBRARY_PATH to both ./configure
44043		# and make.  Adding this support here makes straight './configure; make'
44044		# "just work" on Solaris 8
44045		if test -n "$PKG_CONFIG"; then
44046		    glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
44047		    LDFLAGS="$LDFLAGS $glib_R_flag"
44048		fi
44049		;;
44050	esac
44051
44052	# Check whether --enable-glibtest was given.
44053if test "${enable_glibtest+set}" = set; then :
44054  enableval=$enable_glibtest;
44055else
44056  enable_glibtest=yes
44057fi
44058
44059
44060  pkg_config_args=glib-2.0
44061  for module in . gmodule gobject gthread
44062  do
44063      case "$module" in
44064         gmodule)
44065             pkg_config_args="$pkg_config_args gmodule-2.0"
44066         ;;
44067         gmodule-no-export)
44068             pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
44069         ;;
44070         gobject)
44071             pkg_config_args="$pkg_config_args gobject-2.0"
44072         ;;
44073         gthread)
44074             pkg_config_args="$pkg_config_args gthread-2.0"
44075         ;;
44076         gio*)
44077             pkg_config_args="$pkg_config_args $module-2.0"
44078         ;;
44079      esac
44080  done
44081
44082
44083
44084
44085
44086
44087
44088
44089if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
44090	if test -n "$ac_tool_prefix"; then
44091  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44092set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44094$as_echo_n "checking for $ac_word... " >&6; }
44095if ${ac_cv_path_PKG_CONFIG+:} false; then :
44096  $as_echo_n "(cached) " >&6
44097else
44098  case $PKG_CONFIG in
44099  [\\/]* | ?:[\\/]*)
44100  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44101  ;;
44102  *)
44103  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44104for as_dir in $PATH
44105do
44106  IFS=$as_save_IFS
44107  test -z "$as_dir" && as_dir=.
44108    for ac_exec_ext in '' $ac_executable_extensions; do
44109  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44110    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44112    break 2
44113  fi
44114done
44115  done
44116IFS=$as_save_IFS
44117
44118  ;;
44119esac
44120fi
44121PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44122if test -n "$PKG_CONFIG"; then
44123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
44124$as_echo "$PKG_CONFIG" >&6; }
44125else
44126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44127$as_echo "no" >&6; }
44128fi
44129
44130
44131fi
44132if test -z "$ac_cv_path_PKG_CONFIG"; then
44133  ac_pt_PKG_CONFIG=$PKG_CONFIG
44134  # Extract the first word of "pkg-config", so it can be a program name with args.
44135set dummy pkg-config; ac_word=$2
44136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44137$as_echo_n "checking for $ac_word... " >&6; }
44138if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
44139  $as_echo_n "(cached) " >&6
44140else
44141  case $ac_pt_PKG_CONFIG in
44142  [\\/]* | ?:[\\/]*)
44143  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
44144  ;;
44145  *)
44146  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44147for as_dir in $PATH
44148do
44149  IFS=$as_save_IFS
44150  test -z "$as_dir" && as_dir=.
44151    for ac_exec_ext in '' $ac_executable_extensions; do
44152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44153    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44155    break 2
44156  fi
44157done
44158  done
44159IFS=$as_save_IFS
44160
44161  ;;
44162esac
44163fi
44164ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
44165if test -n "$ac_pt_PKG_CONFIG"; then
44166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
44167$as_echo "$ac_pt_PKG_CONFIG" >&6; }
44168else
44169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44170$as_echo "no" >&6; }
44171fi
44172
44173  if test "x$ac_pt_PKG_CONFIG" = x; then
44174    PKG_CONFIG=""
44175  else
44176    case $cross_compiling:$ac_tool_warned in
44177yes:)
44178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
44179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44180ac_tool_warned=yes ;;
44181esac
44182    PKG_CONFIG=$ac_pt_PKG_CONFIG
44183  fi
44184else
44185  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
44186fi
44187
44188fi
44189if test -n "$PKG_CONFIG"; then
44190	_pkg_min_version=0.7
44191	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
44192$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
44193	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44194		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44195$as_echo "yes" >&6; }
44196	else
44197		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44198$as_echo "no" >&6; }
44199		PKG_CONFIG=""
44200	fi
44201fi
44202
44203  no_glib=""
44204
44205  if test "x$PKG_CONFIG" = x ; then
44206    no_glib=yes
44207    PKG_CONFIG=no
44208  fi
44209
44210  min_glib_version=2.2.0
44211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
44212$as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
44213
44214  if test x$PKG_CONFIG != xno ; then
44215    ## don't try to run the test against uninstalled libtool libs
44216    if $PKG_CONFIG --uninstalled $pkg_config_args; then
44217	  echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
44218	  enable_glibtest=no
44219    fi
44220
44221    if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
44222	  :
44223    else
44224	  no_glib=yes
44225    fi
44226  fi
44227
44228  if test x"$no_glib" = x ; then
44229    GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
44230    GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
44231    GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
44232    GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
44233
44234    GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
44235    GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
44236    glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
44237           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44238    glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
44239           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44240    glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
44241           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44242    if test "x$enable_glibtest" = "xyes" ; then
44243      ac_save_CFLAGS="$CFLAGS"
44244      ac_save_LIBS="$LIBS"
44245      CFLAGS="$CFLAGS $GLIB_CFLAGS"
44246      LIBS="$GLIB_LIBS $LIBS"
44247      rm -f conf.glibtest
44248      if test "$cross_compiling" = yes; then :
44249  echo $ac_n "cross compiling; assumed OK... $ac_c"
44250else
44251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44252/* end confdefs.h.  */
44253
44254#include <glib.h>
44255#include <stdio.h>
44256#include <stdlib.h>
44257
44258int
44259main ()
44260{
44261  unsigned int major, minor, micro;
44262
44263  fclose (fopen ("conf.glibtest", "w"));
44264
44265  if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, &micro) != 3) {
44266     printf("%s, bad version string\n", "$min_glib_version");
44267     exit(1);
44268   }
44269
44270  if ((glib_major_version != $glib_config_major_version) ||
44271      (glib_minor_version != $glib_config_minor_version) ||
44272      (glib_micro_version != $glib_config_micro_version))
44273    {
44274      printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
44275             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
44276             glib_major_version, glib_minor_version, glib_micro_version);
44277      printf ("*** was found! If pkg-config was correct, then it is best\n");
44278      printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
44279      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
44280      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
44281      printf("*** required on your system.\n");
44282      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
44283      printf("*** to point to the correct configuration files\n");
44284    }
44285  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
44286	   (glib_minor_version != GLIB_MINOR_VERSION) ||
44287           (glib_micro_version != GLIB_MICRO_VERSION))
44288    {
44289      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
44290	     GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
44291      printf("*** library (version %d.%d.%d)\n",
44292	     glib_major_version, glib_minor_version, glib_micro_version);
44293    }
44294  else
44295    {
44296      if ((glib_major_version > major) ||
44297        ((glib_major_version == major) && (glib_minor_version > minor)) ||
44298        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
44299      {
44300        return 0;
44301       }
44302     else
44303      {
44304        printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
44305               glib_major_version, glib_minor_version, glib_micro_version);
44306        printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
44307	       major, minor, micro);
44308        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
44309        printf("***\n");
44310        printf("*** If you have already installed a sufficiently new version, this error\n");
44311        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
44312        printf("*** being found. The easiest way to fix this is to remove the old version\n");
44313        printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
44314        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
44315        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
44316        printf("*** so that the correct libraries are found at run-time))\n");
44317      }
44318    }
44319  return 1;
44320}
44321
44322_ACEOF
44323if ac_fn_c_try_run "$LINENO"; then :
44324
44325else
44326  no_glib=yes
44327fi
44328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44329  conftest.$ac_objext conftest.beam conftest.$ac_ext
44330fi
44331
44332       CFLAGS="$ac_save_CFLAGS"
44333       LIBS="$ac_save_LIBS"
44334     fi
44335  fi
44336  if test "x$no_glib" = x ; then
44337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
44338$as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
44339     :
44340  else
44341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44342$as_echo "no" >&6; }
44343     if test "$PKG_CONFIG" = "no" ; then
44344       echo "*** A new enough version of pkg-config was not found."
44345       echo "*** See http://www.freedesktop.org/software/pkgconfig/"
44346     else
44347       if test -f conf.glibtest ; then
44348        :
44349       else
44350          echo "*** Could not run GLIB test program, checking why..."
44351          ac_save_CFLAGS="$CFLAGS"
44352          ac_save_LIBS="$LIBS"
44353          CFLAGS="$CFLAGS $GLIB_CFLAGS"
44354          LIBS="$LIBS $GLIB_LIBS"
44355          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44356/* end confdefs.h.  */
44357
44358#include <glib.h>
44359#include <stdio.h>
44360
44361int
44362main ()
44363{
44364 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
44365  ;
44366  return 0;
44367}
44368_ACEOF
44369if ac_fn_c_try_link "$LINENO"; then :
44370   echo "*** The test program compiled, but did not run. This usually means"
44371          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
44372          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
44373          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
44374          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
44375          echo "*** is required on your system"
44376	  echo "***"
44377          echo "*** If you have an old version installed, it is best to remove it, although"
44378          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
44379else
44380   echo "*** The test program failed to compile or link. See the file config.log for the"
44381          echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
44382fi
44383rm -f core conftest.err conftest.$ac_objext \
44384    conftest$ac_exeext conftest.$ac_ext
44385          CFLAGS="$ac_save_CFLAGS"
44386          LIBS="$ac_save_LIBS"
44387       fi
44388     fi
44389     GLIB_CFLAGS=""
44390     GLIB_LIBS=""
44391     GLIB_GENMARSHAL=""
44392     GOBJECT_QUERY=""
44393     GLIB_MKENUMS=""
44394     GLIB_COMPILE_RESOURCES=""
44395
44396	    as_fn_error $? "glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" "$LINENO" 5
44397
44398  fi
44399
44400
44401
44402
44403
44404
44405  rm -f conf.glibtest
44406
44407    else
44408        # Confirm that all GLIB_ variables are set
44409        if test ! x"$GLIB_CFLAGS" = x"" && \
44410           test ! x"$GLIB_LIBS" = x"" && \
44411           test ! x"$GLIB_GENMARSHAL" = x"" && \
44412           test ! x"$GOBJECT_QUERY" = x"" && \
44413           test ! x"$GLIB_MKENUMS" = x""; then
44414            :
44415        else
44416            as_fn_error $? "Not all precious glib variables were set." "$LINENO" 5
44417        fi
44418    fi
44419
44420    # remove deprecated warning for newer version
44421    if $PKG_CONFIG --atleast-version 2.30.0 glib-2.0; then
44422
44423    # test for -W'warning', then add the 'no-' version.
44424
44425
44426
44427    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wdeprecated-declarations" >&5
44428$as_echo_n "checking for gcc flag -Wdeprecated-declarations... " >&6; }
44429    if test "x$GCC" = "xyes"; then
44430		($CC --help=target --help=optimizers --help=warnings --help=undocumented --help=params --help=c 2>&1 ||
44431           $CC -v --help 2>&1) |
44432         $EGREP -- '[^0-9A-Za-z]-Wdeprecated-declarations[^0-9A-Za-z]' 2>&1 > /dev/null
44433		if test $? -eq 0; then
44434	    found_warning=yes
44435	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44436$as_echo "yes" >&6; }
44437	else
44438	    found_warning=no
44439	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44440$as_echo "no" >&6; }
44441	fi
44442    else
44443	found_warning=no
44444	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
44445$as_echo "no (not using gcc)" >&6; }
44446    fi
44447
44448    if test x"$found_warning" = x"yes"; then
44449	AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-deprecated-declarations"
44450
44451
44452    else
44453	:
44454    fi
44455
44456
44457    fi
44458
44459    # GLIB_CPPFLAGS is not set by autoconf, yet GLIB_CFLAGS contains what GLIB_CPPFLAGS should contain.
44460    CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
44461
44462    LIBS="$GLIB_LIBS $LIBS"
44463
44464
44465
44466
44467# Check whether --with-readline was given.
44468if test "${with_readline+set}" = set; then :
44469  withval=$with_readline;
44470	    case "$withval" in
44471		y | ye | yes | n | no) : ;;
44472		*) as_fn_error $? "*** --with-readline does not take a value" "$LINENO" 5
44473	    esac
44474	    want_readline="$withval"
44475
44476else
44477
44478	    want_readline="maybe" # meaning "only if we can find it"
44479
44480fi
44481
44482
44483
44484  # unless the user said "no", look for readline.
44485  if test x"$want_readline" != x"no"; then
44486    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
44487$as_echo_n "checking for a readline compatible library... " >&6; }
44488if ${ax_cv_lib_readline+:} false; then :
44489  $as_echo_n "(cached) " >&6
44490else
44491
44492      ORIG_LIBS="$LIBS"
44493      for readline_lib in readline edit editline; do
44494        for termcap_lib in "" termcap curses ncurses; do
44495          if test -z "$termcap_lib"; then
44496            TRY_LIB="-l$readline_lib"
44497          else
44498            TRY_LIB="-l$readline_lib -l$termcap_lib"
44499          fi
44500          LIBS="$ORIG_LIBS $TRY_LIB"
44501          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44502/* end confdefs.h.  */
44503
44504/* Override any GCC internal prototype to avoid an error.
44505   Use char because int might match the return type of a GCC
44506   builtin and then its argument prototype would still apply.  */
44507#ifdef __cplusplus
44508extern "C"
44509#endif
44510char readline ();
44511int
44512main ()
44513{
44514return readline ();
44515  ;
44516  return 0;
44517}
44518_ACEOF
44519if ac_fn_c_try_link "$LINENO"; then :
44520  ax_cv_lib_readline="$TRY_LIB"
44521fi
44522rm -f core conftest.err conftest.$ac_objext \
44523    conftest$ac_exeext conftest.$ac_ext
44524          if test -n "$ax_cv_lib_readline"; then
44525            break
44526          fi
44527        done
44528        if test -n "$ax_cv_lib_readline"; then
44529          break
44530        fi
44531      done
44532      if test -z "$ax_cv_lib_readline"; then
44533        ax_cv_lib_readline="no"
44534      fi
44535      LIBS="$ORIG_LIBS"
44536
44537fi
44538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
44539$as_echo "$ax_cv_lib_readline" >&6; }
44540
44541    if test "$ax_cv_lib_readline" != "no"; then
44542      ORIG_LIBS="$LIBS"
44543      LIBS="$LIBS $ax_cv_lib_readline"
44544      READLINE_LIBS="$ax_cv_lib_readline"
44545
44546$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
44547
44548      for ac_header in readline.h readline/readline.h
44549do :
44550  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44551ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
44552if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44553  cat >>confdefs.h <<_ACEOF
44554#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44555_ACEOF
44556
44557fi
44558
44559done
44560
44561      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
44562$as_echo_n "checking whether readline supports history... " >&6; }
44563if ${ax_cv_lib_readline_history+:} false; then :
44564  $as_echo_n "(cached) " >&6
44565else
44566
44567        ax_cv_lib_readline_history="no"
44568        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44569/* end confdefs.h.  */
44570
44571/* Override any GCC internal prototype to avoid an error.
44572   Use char because int might match the return type of a GCC
44573   builtin and then its argument prototype would still apply.  */
44574#ifdef __cplusplus
44575extern "C"
44576#endif
44577char add_history ();
44578int
44579main ()
44580{
44581return add_history ();
44582  ;
44583  return 0;
44584}
44585_ACEOF
44586if ac_fn_c_try_link "$LINENO"; then :
44587  ax_cv_lib_readline_history="yes"
44588fi
44589rm -f core conftest.err conftest.$ac_objext \
44590    conftest$ac_exeext conftest.$ac_ext
44591
44592fi
44593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
44594$as_echo "$ax_cv_lib_readline_history" >&6; }
44595      if test "$ax_cv_lib_readline_history" = "yes"; then
44596
44597$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
44598
44599        for ac_header in history.h readline/history.h
44600do :
44601  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44602ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
44603if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44604  cat >>confdefs.h <<_ACEOF
44605#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44606_ACEOF
44607
44608fi
44609
44610done
44611
44612      fi
44613      LIBS="$ORIG_LIBS"
44614
44615    else
44616      # no readline.  if the user *really* wanted it, bail out.
44617      if test x"$want_readline" = x"yes"; then
44618	as_fn_error $? "*** No readline implementation found.  Try using --with-libraries and --with-includes" "$LINENO" 5
44619      fi
44620      READLINE_LIBS=""
44621    fi
44622  fi
44623
44624
44625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf in -lm" >&5
44626$as_echo_n "checking for modf in -lm... " >&6; }
44627if ${ac_cv_lib_m_modf+:} false; then :
44628  $as_echo_n "(cached) " >&6
44629else
44630  ac_check_lib_save_LIBS=$LIBS
44631LIBS="-lm  $LIBS"
44632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44633/* end confdefs.h.  */
44634
44635/* Override any GCC internal prototype to avoid an error.
44636   Use char because int might match the return type of a GCC
44637   builtin and then its argument prototype would still apply.  */
44638#ifdef __cplusplus
44639extern "C"
44640#endif
44641char modf ();
44642int
44643main ()
44644{
44645return modf ();
44646  ;
44647  return 0;
44648}
44649_ACEOF
44650if ac_fn_c_try_link "$LINENO"; then :
44651  ac_cv_lib_m_modf=yes
44652else
44653  ac_cv_lib_m_modf=no
44654fi
44655rm -f core conftest.err conftest.$ac_objext \
44656    conftest$ac_exeext conftest.$ac_ext
44657LIBS=$ac_check_lib_save_LIBS
44658fi
44659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_modf" >&5
44660$as_echo "$ac_cv_lib_m_modf" >&6; }
44661if test "x$ac_cv_lib_m_modf" = xyes; then :
44662  cat >>confdefs.h <<_ACEOF
44663#define HAVE_LIBM 1
44664_ACEOF
44665
44666  LIBS="-lm $LIBS"
44667
44668fi
44669
44670
44671    ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
44672if test "x$ac_cv_header_execinfo_h" = xyes; then :
44673
44674	ac_fn_c_check_func "$LINENO" "backtrace_symbols_fd" "ac_cv_func_backtrace_symbols_fd"
44675if test "x$ac_cv_func_backtrace_symbols_fd" = xyes; then :
44676
44677
44678$as_echo "#define HAVE_GLIBC_BACKTRACE 1" >>confdefs.h
44679
44680
44681fi
44682
44683
44684fi
44685
44686
44687
44688
44689#
44690# Declarations
44691#
44692# Checks for library functions and if the function is declared in
44693# an appropriate header file.  Functions which exist, but for which
44694# no declaration is available, are declared in common-src/amanda.h.
44695# It's not clear that any existing system implements but does not
44696# declare common functions such as these.
44697#
44698
44699ice_have_accept=no
44700for ac_func in accept
44701do :
44702  ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
44703if test "x$ac_cv_func_accept" = xyes; then :
44704  cat >>confdefs.h <<_ACEOF
44705#define HAVE_ACCEPT 1
44706_ACEOF
44707 ice_have_accept=yes
44708fi
44709done
44710
44711if test "${ice_have_accept}" = yes; then
44712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept declaration in sys/types.h sys/socket.h" >&5
44713$as_echo_n "checking for accept declaration in sys/types.h sys/socket.h... " >&6; }
44714if ${ice_cv_have_accept_decl+:} false; then :
44715  $as_echo_n "(cached) " >&6
44716else
44717
44718ice_cv_have_accept_decl=no
44719ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44720ice_re_word='(^|[^a-zA-Z0-9_])'
44721for header in sys/types.h sys/socket.h; do
44722# Check for ordinary declaration
44723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44724/* end confdefs.h.  */
44725#include <$header>
44726
44727_ACEOF
44728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44729  $EGREP "${ice_re_word}accept[ 	]*\(" >/dev/null 2>&1; then :
44730  ice_cv_have_accept_decl=yes
44731fi
44732rm -f conftest*
44733
44734if test "$ice_cv_have_accept_decl" = yes; then
44735	break
44736fi
44737# Check for "fixed" declaration like "getpid _PARAMS((int))"
44738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44739/* end confdefs.h.  */
44740#include <$header>
44741
44742_ACEOF
44743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44744  $EGREP "${ice_re_word}accept[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
44745  ice_cv_have_accept_decl=yes
44746fi
44747rm -f conftest*
44748
44749if test "$ice_cv_have_accept_decl" = yes; then
44750	break
44751fi
44752done
44753
44754fi
44755
44756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_accept_decl" >&5
44757$as_echo "$ice_cv_have_accept_decl" >&6; }
44758if test "$ice_cv_have_accept_decl" = yes; then
44759
44760cat >>confdefs.h <<_ACEOF
44761#define HAVE_ACCEPT_DECL 1
44762_ACEOF
44763
44764fi
44765fi
44766
44767# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
44768# for constant arguments.  Useless!
44769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
44770$as_echo_n "checking for working alloca.h... " >&6; }
44771if ${ac_cv_working_alloca_h+:} false; then :
44772  $as_echo_n "(cached) " >&6
44773else
44774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44775/* end confdefs.h.  */
44776#include <alloca.h>
44777int
44778main ()
44779{
44780char *p = (char *) alloca (2 * sizeof (int));
44781			  if (p) return 0;
44782  ;
44783  return 0;
44784}
44785_ACEOF
44786if ac_fn_c_try_link "$LINENO"; then :
44787  ac_cv_working_alloca_h=yes
44788else
44789  ac_cv_working_alloca_h=no
44790fi
44791rm -f core conftest.err conftest.$ac_objext \
44792    conftest$ac_exeext conftest.$ac_ext
44793fi
44794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
44795$as_echo "$ac_cv_working_alloca_h" >&6; }
44796if test $ac_cv_working_alloca_h = yes; then
44797
44798$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
44799
44800fi
44801
44802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
44803$as_echo_n "checking for alloca... " >&6; }
44804if ${ac_cv_func_alloca_works+:} false; then :
44805  $as_echo_n "(cached) " >&6
44806else
44807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44808/* end confdefs.h.  */
44809#ifdef __GNUC__
44810# define alloca __builtin_alloca
44811#else
44812# ifdef _MSC_VER
44813#  include <malloc.h>
44814#  define alloca _alloca
44815# else
44816#  ifdef HAVE_ALLOCA_H
44817#   include <alloca.h>
44818#  else
44819#   ifdef _AIX
44820 #pragma alloca
44821#   else
44822#    ifndef alloca /* predefined by HP cc +Olibcalls */
44823void *alloca (size_t);
44824#    endif
44825#   endif
44826#  endif
44827# endif
44828#endif
44829
44830int
44831main ()
44832{
44833char *p = (char *) alloca (1);
44834				    if (p) return 0;
44835  ;
44836  return 0;
44837}
44838_ACEOF
44839if ac_fn_c_try_link "$LINENO"; then :
44840  ac_cv_func_alloca_works=yes
44841else
44842  ac_cv_func_alloca_works=no
44843fi
44844rm -f core conftest.err conftest.$ac_objext \
44845    conftest$ac_exeext conftest.$ac_ext
44846fi
44847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
44848$as_echo "$ac_cv_func_alloca_works" >&6; }
44849
44850if test $ac_cv_func_alloca_works = yes; then
44851
44852$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
44853
44854else
44855  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
44856# that cause trouble.  Some versions do not even contain alloca or
44857# contain a buggy version.  If you still want to use their alloca,
44858# use ar to extract alloca.o from them instead of compiling alloca.c.
44859
44860ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
44861
44862$as_echo "#define C_ALLOCA 1" >>confdefs.h
44863
44864
44865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
44866$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
44867if ${ac_cv_os_cray+:} false; then :
44868  $as_echo_n "(cached) " >&6
44869else
44870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44871/* end confdefs.h.  */
44872#if defined CRAY && ! defined CRAY2
44873webecray
44874#else
44875wenotbecray
44876#endif
44877
44878_ACEOF
44879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44880  $EGREP "webecray" >/dev/null 2>&1; then :
44881  ac_cv_os_cray=yes
44882else
44883  ac_cv_os_cray=no
44884fi
44885rm -f conftest*
44886
44887fi
44888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
44889$as_echo "$ac_cv_os_cray" >&6; }
44890if test $ac_cv_os_cray = yes; then
44891  for ac_func in _getb67 GETB67 getb67; do
44892    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44893ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
44894if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
44895
44896cat >>confdefs.h <<_ACEOF
44897#define CRAY_STACKSEG_END $ac_func
44898_ACEOF
44899
44900    break
44901fi
44902
44903  done
44904fi
44905
44906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
44907$as_echo_n "checking stack direction for C alloca... " >&6; }
44908if ${ac_cv_c_stack_direction+:} false; then :
44909  $as_echo_n "(cached) " >&6
44910else
44911  if test "$cross_compiling" = yes; then :
44912  ac_cv_c_stack_direction=0
44913else
44914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44915/* end confdefs.h.  */
44916$ac_includes_default
44917int
44918find_stack_direction (int *addr, int depth)
44919{
44920  int dir, dummy = 0;
44921  if (! addr)
44922    addr = &dummy;
44923  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
44924  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
44925  return dir + dummy;
44926}
44927
44928int
44929main (int argc, char **argv)
44930{
44931  return find_stack_direction (0, argc + !argv + 20) < 0;
44932}
44933_ACEOF
44934if ac_fn_c_try_run "$LINENO"; then :
44935  ac_cv_c_stack_direction=1
44936else
44937  ac_cv_c_stack_direction=-1
44938fi
44939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44940  conftest.$ac_objext conftest.beam conftest.$ac_ext
44941fi
44942
44943fi
44944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
44945$as_echo "$ac_cv_c_stack_direction" >&6; }
44946cat >>confdefs.h <<_ACEOF
44947#define STACK_DIRECTION $ac_cv_c_stack_direction
44948_ACEOF
44949
44950
44951fi
44952
44953for ac_func in atexit
44954do :
44955  ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
44956if test "x$ac_cv_func_atexit" = xyes; then :
44957  cat >>confdefs.h <<_ACEOF
44958#define HAVE_ATEXIT 1
44959_ACEOF
44960
44961fi
44962done
44963
44964
44965ice_have_atof=no
44966for ac_func in atof
44967do :
44968  ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
44969if test "x$ac_cv_func_atof" = xyes; then :
44970  cat >>confdefs.h <<_ACEOF
44971#define HAVE_ATOF 1
44972_ACEOF
44973 ice_have_atof=yes
44974fi
44975done
44976
44977if test "${ice_have_atof}" = yes; then
44978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atof declaration in stdlib.h" >&5
44979$as_echo_n "checking for atof declaration in stdlib.h... " >&6; }
44980if ${ice_cv_have_atof_decl+:} false; then :
44981  $as_echo_n "(cached) " >&6
44982else
44983
44984ice_cv_have_atof_decl=no
44985ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44986ice_re_word='(^|[^a-zA-Z0-9_])'
44987for header in stdlib.h; do
44988# Check for ordinary declaration
44989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44990/* end confdefs.h.  */
44991#include <$header>
44992
44993_ACEOF
44994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44995  $EGREP "${ice_re_word}atof[ 	]*\(" >/dev/null 2>&1; then :
44996  ice_cv_have_atof_decl=yes
44997fi
44998rm -f conftest*
44999
45000if test "$ice_cv_have_atof_decl" = yes; then
45001	break
45002fi
45003# Check for "fixed" declaration like "getpid _PARAMS((int))"
45004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45005/* end confdefs.h.  */
45006#include <$header>
45007
45008_ACEOF
45009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45010  $EGREP "${ice_re_word}atof[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
45011  ice_cv_have_atof_decl=yes
45012fi
45013rm -f conftest*
45014
45015if test "$ice_cv_have_atof_decl" = yes; then
45016	break
45017fi
45018done
45019
45020fi
45021
45022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atof_decl" >&5
45023$as_echo "$ice_cv_have_atof_decl" >&6; }
45024if test "$ice_cv_have_atof_decl" = yes; then
45025
45026cat >>confdefs.h <<_ACEOF
45027#define HAVE_ATOF_DECL 1
45028_ACEOF
45029
45030fi
45031fi
45032
45033
45034ice_have_atol=no
45035for ac_func in atol
45036do :
45037  ac_fn_c_check_func "$LINENO" "atol" "ac_cv_func_atol"
45038if test "x$ac_cv_func_atol" = xyes; then :
45039  cat >>confdefs.h <<_ACEOF
45040#define HAVE_ATOL 1
45041_ACEOF
45042 ice_have_atol=yes
45043fi
45044done
45045
45046if test "${ice_have_atol}" = yes; then
45047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atol declaration in stdlib.h" >&5
45048$as_echo_n "checking for atol declaration in stdlib.h... " >&6; }
45049if ${ice_cv_have_atol_decl+:} false; then :
45050  $as_echo_n "(cached) " >&6
45051else
45052
45053ice_cv_have_atol_decl=no
45054ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45055ice_re_word='(^|[^a-zA-Z0-9_])'
45056for header in stdlib.h; do
45057# Check for ordinary declaration
45058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45059/* end confdefs.h.  */
45060#include <$header>
45061
45062_ACEOF
45063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45064  $EGREP "${ice_re_word}atol[ 	]*\(" >/dev/null 2>&1; then :
45065  ice_cv_have_atol_decl=yes
45066fi
45067rm -f conftest*
45068
45069if test "$ice_cv_have_atol_decl" = yes; then
45070	break
45071fi
45072# Check for "fixed" declaration like "getpid _PARAMS((int))"
45073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45074/* end confdefs.h.  */
45075#include <$header>
45076
45077_ACEOF
45078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45079  $EGREP "${ice_re_word}atol[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
45080  ice_cv_have_atol_decl=yes
45081fi
45082rm -f conftest*
45083
45084if test "$ice_cv_have_atol_decl" = yes; then
45085	break
45086fi
45087done
45088
45089fi
45090
45091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atol_decl" >&5
45092$as_echo "$ice_cv_have_atol_decl" >&6; }
45093if test "$ice_cv_have_atol_decl" = yes; then
45094
45095cat >>confdefs.h <<_ACEOF
45096#define HAVE_ATOL_DECL 1
45097_ACEOF
45098
45099fi
45100fi
45101
45102
45103ice_have_atoll=no
45104for ac_func in atoll
45105do :
45106  ac_fn_c_check_func "$LINENO" "atoll" "ac_cv_func_atoll"
45107if test "x$ac_cv_func_atoll" = xyes; then :
45108  cat >>confdefs.h <<_ACEOF
45109#define HAVE_ATOLL 1
45110_ACEOF
45111 ice_have_atoll=yes
45112fi
45113done
45114
45115if test "${ice_have_atoll}" = yes; then
45116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for atoll declaration in stdlib.h" >&5
45117$as_echo_n "checking for atoll declaration in stdlib.h... " >&6; }
45118if ${ice_cv_have_atoll_decl+:} false; then :
45119  $as_echo_n "(cached) " >&6
45120else
45121
45122ice_cv_have_atoll_decl=no
45123ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45124ice_re_word='(^|[^a-zA-Z0-9_])'
45125for header in stdlib.h; do
45126# Check for ordinary declaration
45127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45128/* end confdefs.h.  */
45129#include <$header>
45130
45131_ACEOF
45132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45133  $EGREP "${ice_re_word}atoll[ 	]*\(" >/dev/null 2>&1; then :
45134  ice_cv_have_atoll_decl=yes
45135fi
45136rm -f conftest*
45137
45138if test "$ice_cv_have_atoll_decl" = yes; then
45139	break
45140fi
45141# Check for "fixed" declaration like "getpid _PARAMS((int))"
45142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45143/* end confdefs.h.  */
45144#include <$header>
45145
45146_ACEOF
45147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45148  $EGREP "${ice_re_word}atoll[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
45149  ice_cv_have_atoll_decl=yes
45150fi
45151rm -f conftest*
45152
45153if test "$ice_cv_have_atoll_decl" = yes; then
45154	break
45155fi
45156done
45157
45158fi
45159
45160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atoll_decl" >&5
45161$as_echo "$ice_cv_have_atoll_decl" >&6; }
45162if test "$ice_cv_have_atoll_decl" = yes; then
45163
45164cat >>confdefs.h <<_ACEOF
45165#define HAVE_ATOLL_DECL 1
45166_ACEOF
45167
45168fi
45169fi
45170
45171
45172ice_have_strtol=no
45173for ac_func in strtol
45174do :
45175  ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
45176if test "x$ac_cv_func_strtol" = xyes; then :
45177  cat >>confdefs.h <<_ACEOF
45178#define HAVE_STRTOL 1
45179_ACEOF
45180 ice_have_strtol=yes
45181fi
45182done
45183
45184if test "${ice_have_strtol}" = yes; then
45185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtol declaration in stdlib.h" >&5
45186$as_echo_n "checking for strtol declaration in stdlib.h... " >&6; }
45187if ${ice_cv_have_strtol_decl+:} false; then :
45188  $as_echo_n "(cached) " >&6
45189else
45190
45191ice_cv_have_strtol_decl=no
45192ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45193ice_re_word='(^|[^a-zA-Z0-9_])'
45194for header in stdlib.h; do
45195# Check for ordinary declaration
45196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45197/* end confdefs.h.  */
45198#include <$header>
45199
45200_ACEOF
45201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45202  $EGREP "${ice_re_word}strtol[ 	]*\(" >/dev/null 2>&1; then :
45203  ice_cv_have_strtol_decl=yes
45204fi
45205rm -f conftest*
45206
45207if test "$ice_cv_have_strtol_decl" = yes; then
45208	break
45209fi
45210# Check for "fixed" declaration like "getpid _PARAMS((int))"
45211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45212/* end confdefs.h.  */
45213#include <$header>
45214
45215_ACEOF
45216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45217  $EGREP "${ice_re_word}strtol[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
45218  ice_cv_have_strtol_decl=yes
45219fi
45220rm -f conftest*
45221
45222if test "$ice_cv_have_strtol_decl" = yes; then
45223	break
45224fi
45225done
45226
45227fi
45228
45229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strtol_decl" >&5
45230$as_echo "$ice_cv_have_strtol_decl" >&6; }
45231if test "$ice_cv_have_strtol_decl" = yes; then
45232
45233cat >>confdefs.h <<_ACEOF
45234#define HAVE_STRTOL_DECL 1
45235_ACEOF
45236
45237fi
45238fi
45239
45240
45241ice_have_strtoll=no
45242for ac_func in strtoll
45243do :
45244  ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
45245if test "x$ac_cv_func_strtoll" = xyes; then :
45246  cat >>confdefs.h <<_ACEOF
45247#define HAVE_STRTOLL 1
45248_ACEOF
45249 ice_have_strtoll=yes
45250fi
45251done
45252
45253if test "${ice_have_strtoll}" = yes; then
45254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtoll declaration in stdlib.h" >&5
45255$as_echo_n "checking for strtoll declaration in stdlib.h... " >&6; }
45256if ${ice_cv_have_strtoll_decl+:} false; then :
45257  $as_echo_n "(cached) " >&6
45258else
45259
45260ice_cv_have_strtoll_decl=no
45261ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45262ice_re_word='(^|[^a-zA-Z0-9_])'
45263for header in stdlib.h; do
45264# Check for ordinary declaration
45265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45266/* end confdefs.h.  */
45267#include <$header>
45268
45269_ACEOF
45270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45271  $EGREP "${ice_re_word}strtoll[ 	]*\(" >/dev/null 2>&1; then :
45272  ice_cv_have_strtoll_decl=yes
45273fi
45274rm -f conftest*
45275
45276if test "$ice_cv_have_strtoll_decl" = yes; then
45277	break
45278fi
45279# Check for "fixed" declaration like "getpid _PARAMS((int))"
45280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45281/* end confdefs.h.  */
45282#include <$header>
45283
45284_ACEOF
45285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45286  $EGREP "${ice_re_word}strtoll[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
45287  ice_cv_have_strtoll_decl=yes
45288fi
45289rm -f conftest*
45290
45291if test "$ice_cv_have_strtoll_decl" = yes; then
45292	break
45293fi
45294done
45295
45296fi
45297
45298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strtoll_decl" >&5
45299$as_echo "$ice_cv_have_strtoll_decl" >&6; }
45300if test "$ice_cv_have_strtoll_decl" = yes; then
45301
45302cat >>confdefs.h <<_ACEOF
45303#define HAVE_STRTOLL_DECL 1
45304_ACEOF
45305
45306fi
45307fi
45308
45309for ac_func in basename
45310do :
45311  ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
45312if test "x$ac_cv_func_basename" = xyes; then :
45313  cat >>confdefs.h <<_ACEOF
45314#define HAVE_BASENAME 1
45315_ACEOF
45316
45317fi
45318done
45319
45320
45321ice_have_bind=no
45322for ac_func in bind
45323do :
45324  ac_fn_c_check_func "$LINENO" "bind" "ac_cv_func_bind"
45325if test "x$ac_cv_func_bind" = xyes; then :
45326  cat >>confdefs.h <<_ACEOF
45327#define HAVE_BIND 1
45328_ACEOF
45329 ice_have_bind=yes
45330fi
45331done
45332
45333if test "${ice_have_bind}" = yes; then
45334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind declaration in sys/types.h sys/socket.h" >&5
45335$as_echo_n "checking for bind declaration in sys/types.h sys/socket.h... " >&6; }
45336if ${ice_cv_have_bind_decl+:} false; then :
45337  $as_echo_n "(cached) " >&6
45338else
45339
45340ice_cv_have_bind_decl=no
45341ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45342ice_re_word='(^|[^a-zA-Z0-9_])'
45343for header in sys/types.h sys/socket.h; do
45344# Check for ordinary declaration
45345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45346/* end confdefs.h.  */
45347#include <$header>
45348
45349_ACEOF
45350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45351  $EGREP "${ice_re_word}bind[ 	]*\(" >/dev/null 2>&1; then :
45352  ice_cv_have_bind_decl=yes
45353fi
45354rm -f conftest*
45355
45356if test "$ice_cv_have_bind_decl" = yes; then
45357	break
45358fi
45359# Check for "fixed" declaration like "getpid _PARAMS((int))"
45360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45361/* end confdefs.h.  */
45362#include <$header>
45363
45364_ACEOF
45365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45366  $EGREP "${ice_re_word}bind[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
45367  ice_cv_have_bind_decl=yes
45368fi
45369rm -f conftest*
45370
45371if test "$ice_cv_have_bind_decl" = yes; then
45372	break
45373fi
45374done
45375
45376fi
45377
45378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bind_decl" >&5
45379$as_echo "$ice_cv_have_bind_decl" >&6; }
45380if test "$ice_cv_have_bind_decl" = yes; then
45381
45382cat >>confdefs.h <<_ACEOF
45383#define HAVE_BIND_DECL 1
45384_ACEOF
45385
45386fi
45387fi
45388
45389
45390ice_have_bcopy=no
45391for ac_func in bcopy
45392do :
45393  ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
45394if test "x$ac_cv_func_bcopy" = xyes; then :
45395  cat >>confdefs.h <<_ACEOF
45396#define HAVE_BCOPY 1
45397_ACEOF
45398 ice_have_bcopy=yes
45399fi
45400done
45401
45402if test "${ice_have_bcopy}" = yes; then
45403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
45404$as_echo_n "checking for bcopy declaration in string.h strings.h stdlib.h... " >&6; }
45405if ${ice_cv_have_bcopy_decl+:} false; then :
45406  $as_echo_n "(cached) " >&6
45407else
45408
45409ice_cv_have_bcopy_decl=no
45410ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45411ice_re_word='(^|[^a-zA-Z0-9_])'
45412for header in string.h strings.h stdlib.h; do
45413# Check for ordinary declaration
45414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45415/* end confdefs.h.  */
45416#include <$header>
45417
45418_ACEOF
45419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45420  $EGREP "${ice_re_word}bcopy[ 	]*\(" >/dev/null 2>&1; then :
45421  ice_cv_have_bcopy_decl=yes
45422fi
45423rm -f conftest*
45424
45425if test "$ice_cv_have_bcopy_decl" = yes; then
45426	break
45427fi
45428# Check for "fixed" declaration like "getpid _PARAMS((int))"
45429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45430/* end confdefs.h.  */
45431#include <$header>
45432
45433_ACEOF
45434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45435  $EGREP "${ice_re_word}bcopy[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
45436  ice_cv_have_bcopy_decl=yes
45437fi
45438rm -f conftest*
45439
45440if test "$ice_cv_have_bcopy_decl" = yes; then
45441	break
45442fi
45443done
45444
45445fi
45446
45447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bcopy_decl" >&5
45448$as_echo "$ice_cv_have_bcopy_decl" >&6; }
45449if test "$ice_cv_have_bcopy_decl" = yes; then
45450
45451cat >>confdefs.h <<_ACEOF
45452#define HAVE_BCOPY_DECL 1
45453_ACEOF
45454
45455fi
45456fi
45457
45458
45459ice_have_bzero=no
45460for ac_func in bzero
45461do :
45462  ac_fn_c_check_func "$LINENO" "bzero" "ac_cv_func_bzero"
45463if test "x$ac_cv_func_bzero" = xyes; then :
45464  cat >>confdefs.h <<_ACEOF
45465#define HAVE_BZERO 1
45466_ACEOF
45467 ice_have_bzero=yes
45468fi
45469done
45470
45471if test "${ice_have_bzero}" = yes; then
45472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzero declaration in string.h strings.h stdlib.h" >&5
45473$as_echo_n "checking for bzero declaration in string.h strings.h stdlib.h... " >&6; }
45474if ${ice_cv_have_bzero_decl+:} false; then :
45475  $as_echo_n "(cached) " >&6
45476else
45477
45478ice_cv_have_bzero_decl=no
45479ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45480ice_re_word='(^|[^a-zA-Z0-9_])'
45481for header in string.h strings.h stdlib.h; do
45482# Check for ordinary declaration
45483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45484/* end confdefs.h.  */
45485#include <$header>
45486
45487_ACEOF
45488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45489  $EGREP "${ice_re_word}bzero[ 	]*\(" >/dev/null 2>&1; then :
45490  ice_cv_have_bzero_decl=yes
45491fi
45492rm -f conftest*
45493
45494if test "$ice_cv_have_bzero_decl" = yes; then
45495	break
45496fi
45497# Check for "fixed" declaration like "getpid _PARAMS((int))"
45498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45499/* end confdefs.h.  */
45500#include <$header>
45501
45502_ACEOF
45503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45504  $EGREP "${ice_re_word}bzero[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
45505  ice_cv_have_bzero_decl=yes
45506fi
45507rm -f conftest*
45508
45509if test "$ice_cv_have_bzero_decl" = yes; then
45510	break
45511fi
45512done
45513
45514fi
45515
45516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bzero_decl" >&5
45517$as_echo "$ice_cv_have_bzero_decl" >&6; }
45518if test "$ice_cv_have_bzero_decl" = yes; then
45519
45520cat >>confdefs.h <<_ACEOF
45521#define HAVE_BZERO_DECL 1
45522_ACEOF
45523
45524fi
45525fi
45526
45527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
45528$as_echo_n "checking whether closedir returns void... " >&6; }
45529if ${ac_cv_func_closedir_void+:} false; then :
45530  $as_echo_n "(cached) " >&6
45531else
45532  if test "$cross_compiling" = yes; then :
45533  ac_cv_func_closedir_void=yes
45534else
45535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45536/* end confdefs.h.  */
45537$ac_includes_default
45538#include <$ac_header_dirent>
45539#ifndef __cplusplus
45540int closedir ();
45541#endif
45542
45543int
45544main ()
45545{
45546return closedir (opendir (".")) != 0;
45547  ;
45548  return 0;
45549}
45550_ACEOF
45551if ac_fn_c_try_run "$LINENO"; then :
45552  ac_cv_func_closedir_void=no
45553else
45554  ac_cv_func_closedir_void=yes
45555fi
45556rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45557  conftest.$ac_objext conftest.beam conftest.$ac_ext
45558fi
45559
45560fi
45561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
45562$as_echo "$ac_cv_func_closedir_void" >&6; }
45563if test $ac_cv_func_closedir_void = yes; then
45564
45565$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
45566
45567fi
45568
45569
45570ice_have_closelog=no
45571for ac_func in closelog
45572do :
45573  ac_fn_c_check_func "$LINENO" "closelog" "ac_cv_func_closelog"
45574if test "x$ac_cv_func_closelog" = xyes; then :
45575  cat >>confdefs.h <<_ACEOF
45576#define HAVE_CLOSELOG 1
45577_ACEOF
45578 ice_have_closelog=yes
45579fi
45580done
45581
45582if test "${ice_have_closelog}" = yes; then
45583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for closelog declaration in syslog.h" >&5
45584$as_echo_n "checking for closelog declaration in syslog.h... " >&6; }
45585if ${ice_cv_have_closelog_decl+:} false; then :
45586  $as_echo_n "(cached) " >&6
45587else
45588
45589ice_cv_have_closelog_decl=no
45590ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45591ice_re_word='(^|[^a-zA-Z0-9_])'
45592for header in syslog.h; do
45593# Check for ordinary declaration
45594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45595/* end confdefs.h.  */
45596#include <$header>
45597
45598_ACEOF
45599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45600  $EGREP "${ice_re_word}closelog[ 	]*\(" >/dev/null 2>&1; then :
45601  ice_cv_have_closelog_decl=yes
45602fi
45603rm -f conftest*
45604
45605if test "$ice_cv_have_closelog_decl" = yes; then
45606	break
45607fi
45608# Check for "fixed" declaration like "getpid _PARAMS((int))"
45609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45610/* end confdefs.h.  */
45611#include <$header>
45612
45613_ACEOF
45614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45615  $EGREP "${ice_re_word}closelog[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
45616  ice_cv_have_closelog_decl=yes
45617fi
45618rm -f conftest*
45619
45620if test "$ice_cv_have_closelog_decl" = yes; then
45621	break
45622fi
45623done
45624
45625fi
45626
45627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_closelog_decl" >&5
45628$as_echo "$ice_cv_have_closelog_decl" >&6; }
45629if test "$ice_cv_have_closelog_decl" = yes; then
45630
45631cat >>confdefs.h <<_ACEOF
45632#define HAVE_CLOSELOG_DECL 1
45633_ACEOF
45634
45635fi
45636fi
45637
45638
45639ice_have_connect=no
45640for ac_func in connect
45641do :
45642  ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
45643if test "x$ac_cv_func_connect" = xyes; then :
45644  cat >>confdefs.h <<_ACEOF
45645#define HAVE_CONNECT 1
45646_ACEOF
45647 ice_have_connect=yes
45648fi
45649done
45650
45651if test "${ice_have_connect}" = yes; then
45652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect declaration in sys/types.h sys/socket.h" >&5
45653$as_echo_n "checking for connect declaration in sys/types.h sys/socket.h... " >&6; }
45654if ${ice_cv_have_connect_decl+:} false; then :
45655  $as_echo_n "(cached) " >&6
45656else
45657
45658ice_cv_have_connect_decl=no
45659ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45660ice_re_word='(^|[^a-zA-Z0-9_])'
45661for header in sys/types.h sys/socket.h; do
45662# Check for ordinary declaration
45663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45664/* end confdefs.h.  */
45665#include <$header>
45666
45667_ACEOF
45668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45669  $EGREP "${ice_re_word}connect[ 	]*\(" >/dev/null 2>&1; then :
45670  ice_cv_have_connect_decl=yes
45671fi
45672rm -f conftest*
45673
45674if test "$ice_cv_have_connect_decl" = yes; then
45675	break
45676fi
45677# Check for "fixed" declaration like "getpid _PARAMS((int))"
45678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45679/* end confdefs.h.  */
45680#include <$header>
45681
45682_ACEOF
45683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45684  $EGREP "${ice_re_word}connect[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
45685  ice_cv_have_connect_decl=yes
45686fi
45687rm -f conftest*
45688
45689if test "$ice_cv_have_connect_decl" = yes; then
45690	break
45691fi
45692done
45693
45694fi
45695
45696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_connect_decl" >&5
45697$as_echo "$ice_cv_have_connect_decl" >&6; }
45698if test "$ice_cv_have_connect_decl" = yes; then
45699
45700cat >>confdefs.h <<_ACEOF
45701#define HAVE_CONNECT_DECL 1
45702_ACEOF
45703
45704fi
45705fi
45706
45707
45708ice_have_fclose=no
45709for ac_func in fclose
45710do :
45711  ac_fn_c_check_func "$LINENO" "fclose" "ac_cv_func_fclose"
45712if test "x$ac_cv_func_fclose" = xyes; then :
45713  cat >>confdefs.h <<_ACEOF
45714#define HAVE_FCLOSE 1
45715_ACEOF
45716 ice_have_fclose=yes
45717fi
45718done
45719
45720if test "${ice_have_fclose}" = yes; then
45721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose declaration in stdio.h" >&5
45722$as_echo_n "checking for fclose declaration in stdio.h... " >&6; }
45723if ${ice_cv_have_fclose_decl+:} false; then :
45724  $as_echo_n "(cached) " >&6
45725else
45726
45727ice_cv_have_fclose_decl=no
45728ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45729ice_re_word='(^|[^a-zA-Z0-9_])'
45730for header in stdio.h; do
45731# Check for ordinary declaration
45732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45733/* end confdefs.h.  */
45734#include <$header>
45735
45736_ACEOF
45737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45738  $EGREP "${ice_re_word}fclose[ 	]*\(" >/dev/null 2>&1; then :
45739  ice_cv_have_fclose_decl=yes
45740fi
45741rm -f conftest*
45742
45743if test "$ice_cv_have_fclose_decl" = yes; then
45744	break
45745fi
45746# Check for "fixed" declaration like "getpid _PARAMS((int))"
45747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45748/* end confdefs.h.  */
45749#include <$header>
45750
45751_ACEOF
45752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45753  $EGREP "${ice_re_word}fclose[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
45754  ice_cv_have_fclose_decl=yes
45755fi
45756rm -f conftest*
45757
45758if test "$ice_cv_have_fclose_decl" = yes; then
45759	break
45760fi
45761done
45762
45763fi
45764
45765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fclose_decl" >&5
45766$as_echo "$ice_cv_have_fclose_decl" >&6; }
45767if test "$ice_cv_have_fclose_decl" = yes; then
45768
45769cat >>confdefs.h <<_ACEOF
45770#define HAVE_FCLOSE_DECL 1
45771_ACEOF
45772
45773fi
45774fi
45775
45776
45777ice_have_fflush=no
45778for ac_func in fflush
45779do :
45780  ac_fn_c_check_func "$LINENO" "fflush" "ac_cv_func_fflush"
45781if test "x$ac_cv_func_fflush" = xyes; then :
45782  cat >>confdefs.h <<_ACEOF
45783#define HAVE_FFLUSH 1
45784_ACEOF
45785 ice_have_fflush=yes
45786fi
45787done
45788
45789if test "${ice_have_fflush}" = yes; then
45790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fflush declaration in stdio.h" >&5
45791$as_echo_n "checking for fflush declaration in stdio.h... " >&6; }
45792if ${ice_cv_have_fflush_decl+:} false; then :
45793  $as_echo_n "(cached) " >&6
45794else
45795
45796ice_cv_have_fflush_decl=no
45797ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45798ice_re_word='(^|[^a-zA-Z0-9_])'
45799for header in stdio.h; do
45800# Check for ordinary declaration
45801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45802/* end confdefs.h.  */
45803#include <$header>
45804
45805_ACEOF
45806if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45807  $EGREP "${ice_re_word}fflush[ 	]*\(" >/dev/null 2>&1; then :
45808  ice_cv_have_fflush_decl=yes
45809fi
45810rm -f conftest*
45811
45812if test "$ice_cv_have_fflush_decl" = yes; then
45813	break
45814fi
45815# Check for "fixed" declaration like "getpid _PARAMS((int))"
45816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45817/* end confdefs.h.  */
45818#include <$header>
45819
45820_ACEOF
45821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45822  $EGREP "${ice_re_word}fflush[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
45823  ice_cv_have_fflush_decl=yes
45824fi
45825rm -f conftest*
45826
45827if test "$ice_cv_have_fflush_decl" = yes; then
45828	break
45829fi
45830done
45831
45832fi
45833
45834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fflush_decl" >&5
45835$as_echo "$ice_cv_have_fflush_decl" >&6; }
45836if test "$ice_cv_have_fflush_decl" = yes; then
45837
45838cat >>confdefs.h <<_ACEOF
45839#define HAVE_FFLUSH_DECL 1
45840_ACEOF
45841
45842fi
45843fi
45844
45845
45846ice_have_fprintf=no
45847for ac_func in fprintf
45848do :
45849  ac_fn_c_check_func "$LINENO" "fprintf" "ac_cv_func_fprintf"
45850if test "x$ac_cv_func_fprintf" = xyes; then :
45851  cat >>confdefs.h <<_ACEOF
45852#define HAVE_FPRINTF 1
45853_ACEOF
45854 ice_have_fprintf=yes
45855fi
45856done
45857
45858if test "${ice_have_fprintf}" = yes; then
45859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fprintf declaration in stdio.h" >&5
45860$as_echo_n "checking for fprintf declaration in stdio.h... " >&6; }
45861if ${ice_cv_have_fprintf_decl+:} false; then :
45862  $as_echo_n "(cached) " >&6
45863else
45864
45865ice_cv_have_fprintf_decl=no
45866ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45867ice_re_word='(^|[^a-zA-Z0-9_])'
45868for header in stdio.h; do
45869# Check for ordinary declaration
45870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45871/* end confdefs.h.  */
45872#include <$header>
45873
45874_ACEOF
45875if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45876  $EGREP "${ice_re_word}fprintf[ 	]*\(" >/dev/null 2>&1; then :
45877  ice_cv_have_fprintf_decl=yes
45878fi
45879rm -f conftest*
45880
45881if test "$ice_cv_have_fprintf_decl" = yes; then
45882	break
45883fi
45884# Check for "fixed" declaration like "getpid _PARAMS((int))"
45885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45886/* end confdefs.h.  */
45887#include <$header>
45888
45889_ACEOF
45890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45891  $EGREP "${ice_re_word}fprintf[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
45892  ice_cv_have_fprintf_decl=yes
45893fi
45894rm -f conftest*
45895
45896if test "$ice_cv_have_fprintf_decl" = yes; then
45897	break
45898fi
45899done
45900
45901fi
45902
45903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fprintf_decl" >&5
45904$as_echo "$ice_cv_have_fprintf_decl" >&6; }
45905if test "$ice_cv_have_fprintf_decl" = yes; then
45906
45907cat >>confdefs.h <<_ACEOF
45908#define HAVE_FPRINTF_DECL 1
45909_ACEOF
45910
45911fi
45912fi
45913
45914
45915ice_have_fputc=no
45916for ac_func in fputc
45917do :
45918  ac_fn_c_check_func "$LINENO" "fputc" "ac_cv_func_fputc"
45919if test "x$ac_cv_func_fputc" = xyes; then :
45920  cat >>confdefs.h <<_ACEOF
45921#define HAVE_FPUTC 1
45922_ACEOF
45923 ice_have_fputc=yes
45924fi
45925done
45926
45927if test "${ice_have_fputc}" = yes; then
45928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fputc declaration in stdio.h" >&5
45929$as_echo_n "checking for fputc declaration in stdio.h... " >&6; }
45930if ${ice_cv_have_fputc_decl+:} false; then :
45931  $as_echo_n "(cached) " >&6
45932else
45933
45934ice_cv_have_fputc_decl=no
45935ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45936ice_re_word='(^|[^a-zA-Z0-9_])'
45937for header in stdio.h; do
45938# Check for ordinary declaration
45939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45940/* end confdefs.h.  */
45941#include <$header>
45942
45943_ACEOF
45944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45945  $EGREP "${ice_re_word}fputc[ 	]*\(" >/dev/null 2>&1; then :
45946  ice_cv_have_fputc_decl=yes
45947fi
45948rm -f conftest*
45949
45950if test "$ice_cv_have_fputc_decl" = yes; then
45951	break
45952fi
45953# Check for "fixed" declaration like "getpid _PARAMS((int))"
45954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45955/* end confdefs.h.  */
45956#include <$header>
45957
45958_ACEOF
45959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45960  $EGREP "${ice_re_word}fputc[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
45961  ice_cv_have_fputc_decl=yes
45962fi
45963rm -f conftest*
45964
45965if test "$ice_cv_have_fputc_decl" = yes; then
45966	break
45967fi
45968done
45969
45970fi
45971
45972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fputc_decl" >&5
45973$as_echo "$ice_cv_have_fputc_decl" >&6; }
45974if test "$ice_cv_have_fputc_decl" = yes; then
45975
45976cat >>confdefs.h <<_ACEOF
45977#define HAVE_FPUTC_DECL 1
45978_ACEOF
45979
45980fi
45981fi
45982
45983
45984ice_have_fputs=no
45985for ac_func in fputs
45986do :
45987  ac_fn_c_check_func "$LINENO" "fputs" "ac_cv_func_fputs"
45988if test "x$ac_cv_func_fputs" = xyes; then :
45989  cat >>confdefs.h <<_ACEOF
45990#define HAVE_FPUTS 1
45991_ACEOF
45992 ice_have_fputs=yes
45993fi
45994done
45995
45996if test "${ice_have_fputs}" = yes; then
45997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fputs declaration in stdio.h" >&5
45998$as_echo_n "checking for fputs declaration in stdio.h... " >&6; }
45999if ${ice_cv_have_fputs_decl+:} false; then :
46000  $as_echo_n "(cached) " >&6
46001else
46002
46003ice_cv_have_fputs_decl=no
46004ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46005ice_re_word='(^|[^a-zA-Z0-9_])'
46006for header in stdio.h; do
46007# Check for ordinary declaration
46008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46009/* end confdefs.h.  */
46010#include <$header>
46011
46012_ACEOF
46013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46014  $EGREP "${ice_re_word}fputs[ 	]*\(" >/dev/null 2>&1; then :
46015  ice_cv_have_fputs_decl=yes
46016fi
46017rm -f conftest*
46018
46019if test "$ice_cv_have_fputs_decl" = yes; then
46020	break
46021fi
46022# Check for "fixed" declaration like "getpid _PARAMS((int))"
46023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46024/* end confdefs.h.  */
46025#include <$header>
46026
46027_ACEOF
46028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46029  $EGREP "${ice_re_word}fputs[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
46030  ice_cv_have_fputs_decl=yes
46031fi
46032rm -f conftest*
46033
46034if test "$ice_cv_have_fputs_decl" = yes; then
46035	break
46036fi
46037done
46038
46039fi
46040
46041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fputs_decl" >&5
46042$as_echo "$ice_cv_have_fputs_decl" >&6; }
46043if test "$ice_cv_have_fputs_decl" = yes; then
46044
46045cat >>confdefs.h <<_ACEOF
46046#define HAVE_FPUTS_DECL 1
46047_ACEOF
46048
46049fi
46050fi
46051
46052
46053ice_have_fread=no
46054for ac_func in fread
46055do :
46056  ac_fn_c_check_func "$LINENO" "fread" "ac_cv_func_fread"
46057if test "x$ac_cv_func_fread" = xyes; then :
46058  cat >>confdefs.h <<_ACEOF
46059#define HAVE_FREAD 1
46060_ACEOF
46061 ice_have_fread=yes
46062fi
46063done
46064
46065if test "${ice_have_fread}" = yes; then
46066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fread declaration in stdio.h stdlib.h" >&5
46067$as_echo_n "checking for fread declaration in stdio.h stdlib.h... " >&6; }
46068if ${ice_cv_have_fread_decl+:} false; then :
46069  $as_echo_n "(cached) " >&6
46070else
46071
46072ice_cv_have_fread_decl=no
46073ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46074ice_re_word='(^|[^a-zA-Z0-9_])'
46075for header in stdio.h stdlib.h; do
46076# Check for ordinary declaration
46077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46078/* end confdefs.h.  */
46079#include <$header>
46080
46081_ACEOF
46082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46083  $EGREP "${ice_re_word}fread[ 	]*\(" >/dev/null 2>&1; then :
46084  ice_cv_have_fread_decl=yes
46085fi
46086rm -f conftest*
46087
46088if test "$ice_cv_have_fread_decl" = yes; then
46089	break
46090fi
46091# Check for "fixed" declaration like "getpid _PARAMS((int))"
46092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46093/* end confdefs.h.  */
46094#include <$header>
46095
46096_ACEOF
46097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46098  $EGREP "${ice_re_word}fread[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
46099  ice_cv_have_fread_decl=yes
46100fi
46101rm -f conftest*
46102
46103if test "$ice_cv_have_fread_decl" = yes; then
46104	break
46105fi
46106done
46107
46108fi
46109
46110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fread_decl" >&5
46111$as_echo "$ice_cv_have_fread_decl" >&6; }
46112if test "$ice_cv_have_fread_decl" = yes; then
46113
46114cat >>confdefs.h <<_ACEOF
46115#define HAVE_FREAD_DECL 1
46116_ACEOF
46117
46118fi
46119fi
46120
46121
46122ice_have_fseek=no
46123for ac_func in fseek
46124do :
46125  ac_fn_c_check_func "$LINENO" "fseek" "ac_cv_func_fseek"
46126if test "x$ac_cv_func_fseek" = xyes; then :
46127  cat >>confdefs.h <<_ACEOF
46128#define HAVE_FSEEK 1
46129_ACEOF
46130 ice_have_fseek=yes
46131fi
46132done
46133
46134if test "${ice_have_fseek}" = yes; then
46135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseek declaration in stdio.h" >&5
46136$as_echo_n "checking for fseek declaration in stdio.h... " >&6; }
46137if ${ice_cv_have_fseek_decl+:} false; then :
46138  $as_echo_n "(cached) " >&6
46139else
46140
46141ice_cv_have_fseek_decl=no
46142ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46143ice_re_word='(^|[^a-zA-Z0-9_])'
46144for header in stdio.h; do
46145# Check for ordinary declaration
46146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46147/* end confdefs.h.  */
46148#include <$header>
46149
46150_ACEOF
46151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46152  $EGREP "${ice_re_word}fseek[ 	]*\(" >/dev/null 2>&1; then :
46153  ice_cv_have_fseek_decl=yes
46154fi
46155rm -f conftest*
46156
46157if test "$ice_cv_have_fseek_decl" = yes; then
46158	break
46159fi
46160# Check for "fixed" declaration like "getpid _PARAMS((int))"
46161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46162/* end confdefs.h.  */
46163#include <$header>
46164
46165_ACEOF
46166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46167  $EGREP "${ice_re_word}fseek[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
46168  ice_cv_have_fseek_decl=yes
46169fi
46170rm -f conftest*
46171
46172if test "$ice_cv_have_fseek_decl" = yes; then
46173	break
46174fi
46175done
46176
46177fi
46178
46179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fseek_decl" >&5
46180$as_echo "$ice_cv_have_fseek_decl" >&6; }
46181if test "$ice_cv_have_fseek_decl" = yes; then
46182
46183cat >>confdefs.h <<_ACEOF
46184#define HAVE_FSEEK_DECL 1
46185_ACEOF
46186
46187fi
46188fi
46189
46190
46191ice_have_fwrite=no
46192for ac_func in fwrite
46193do :
46194  ac_fn_c_check_func "$LINENO" "fwrite" "ac_cv_func_fwrite"
46195if test "x$ac_cv_func_fwrite" = xyes; then :
46196  cat >>confdefs.h <<_ACEOF
46197#define HAVE_FWRITE 1
46198_ACEOF
46199 ice_have_fwrite=yes
46200fi
46201done
46202
46203if test "${ice_have_fwrite}" = yes; then
46204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fwrite declaration in stdio.h stdlib.h" >&5
46205$as_echo_n "checking for fwrite declaration in stdio.h stdlib.h... " >&6; }
46206if ${ice_cv_have_fwrite_decl+:} false; then :
46207  $as_echo_n "(cached) " >&6
46208else
46209
46210ice_cv_have_fwrite_decl=no
46211ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46212ice_re_word='(^|[^a-zA-Z0-9_])'
46213for header in stdio.h stdlib.h; do
46214# Check for ordinary declaration
46215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46216/* end confdefs.h.  */
46217#include <$header>
46218
46219_ACEOF
46220if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46221  $EGREP "${ice_re_word}fwrite[ 	]*\(" >/dev/null 2>&1; then :
46222  ice_cv_have_fwrite_decl=yes
46223fi
46224rm -f conftest*
46225
46226if test "$ice_cv_have_fwrite_decl" = yes; then
46227	break
46228fi
46229# Check for "fixed" declaration like "getpid _PARAMS((int))"
46230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46231/* end confdefs.h.  */
46232#include <$header>
46233
46234_ACEOF
46235if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46236  $EGREP "${ice_re_word}fwrite[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
46237  ice_cv_have_fwrite_decl=yes
46238fi
46239rm -f conftest*
46240
46241if test "$ice_cv_have_fwrite_decl" = yes; then
46242	break
46243fi
46244done
46245
46246fi
46247
46248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fwrite_decl" >&5
46249$as_echo "$ice_cv_have_fwrite_decl" >&6; }
46250if test "$ice_cv_have_fwrite_decl" = yes; then
46251
46252cat >>confdefs.h <<_ACEOF
46253#define HAVE_FWRITE_DECL 1
46254_ACEOF
46255
46256fi
46257fi
46258
46259for ac_func in getgrgid_r
46260do :
46261  ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"
46262if test "x$ac_cv_func_getgrgid_r" = xyes; then :
46263  cat >>confdefs.h <<_ACEOF
46264#define HAVE_GETGRGID_R 1
46265_ACEOF
46266
46267fi
46268done
46269
46270for ac_func in getpwuid_r
46271do :
46272  ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
46273if test "x$ac_cv_func_getpwuid_r" = xyes; then :
46274  cat >>confdefs.h <<_ACEOF
46275#define HAVE_GETPWUID_R 1
46276_ACEOF
46277
46278fi
46279done
46280
46281
46282ice_have_gethostname=no
46283for ac_func in gethostname
46284do :
46285  ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
46286if test "x$ac_cv_func_gethostname" = xyes; then :
46287  cat >>confdefs.h <<_ACEOF
46288#define HAVE_GETHOSTNAME 1
46289_ACEOF
46290 ice_have_gethostname=yes
46291fi
46292done
46293
46294if test "${ice_have_gethostname}" = yes; then
46295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname declaration in unistd.h" >&5
46296$as_echo_n "checking for gethostname declaration in unistd.h... " >&6; }
46297if ${ice_cv_have_gethostname_decl+:} false; then :
46298  $as_echo_n "(cached) " >&6
46299else
46300
46301ice_cv_have_gethostname_decl=no
46302ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46303ice_re_word='(^|[^a-zA-Z0-9_])'
46304for header in unistd.h; do
46305# Check for ordinary declaration
46306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46307/* end confdefs.h.  */
46308#include <$header>
46309
46310_ACEOF
46311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46312  $EGREP "${ice_re_word}gethostname[ 	]*\(" >/dev/null 2>&1; then :
46313  ice_cv_have_gethostname_decl=yes
46314fi
46315rm -f conftest*
46316
46317if test "$ice_cv_have_gethostname_decl" = yes; then
46318	break
46319fi
46320# Check for "fixed" declaration like "getpid _PARAMS((int))"
46321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46322/* end confdefs.h.  */
46323#include <$header>
46324
46325_ACEOF
46326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46327  $EGREP "${ice_re_word}gethostname[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
46328  ice_cv_have_gethostname_decl=yes
46329fi
46330rm -f conftest*
46331
46332if test "$ice_cv_have_gethostname_decl" = yes; then
46333	break
46334fi
46335done
46336
46337fi
46338
46339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_gethostname_decl" >&5
46340$as_echo "$ice_cv_have_gethostname_decl" >&6; }
46341if test "$ice_cv_have_gethostname_decl" = yes; then
46342
46343cat >>confdefs.h <<_ACEOF
46344#define HAVE_GETHOSTNAME_DECL 1
46345_ACEOF
46346
46347fi
46348fi
46349
46350
46351ice_have_getopt=no
46352for ac_func in getopt
46353do :
46354  ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
46355if test "x$ac_cv_func_getopt" = xyes; then :
46356  cat >>confdefs.h <<_ACEOF
46357#define HAVE_GETOPT 1
46358_ACEOF
46359 ice_have_getopt=yes
46360fi
46361done
46362
46363if test "${ice_have_getopt}" = yes; then
46364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
46365$as_echo_n "checking for getopt declaration in stdlib.h unistd.h libc.h... " >&6; }
46366if ${ice_cv_have_getopt_decl+:} false; then :
46367  $as_echo_n "(cached) " >&6
46368else
46369
46370ice_cv_have_getopt_decl=no
46371ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46372ice_re_word='(^|[^a-zA-Z0-9_])'
46373for header in stdlib.h unistd.h libc.h; do
46374# Check for ordinary declaration
46375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46376/* end confdefs.h.  */
46377#include <$header>
46378
46379_ACEOF
46380if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46381  $EGREP "${ice_re_word}getopt[ 	]*\(" >/dev/null 2>&1; then :
46382  ice_cv_have_getopt_decl=yes
46383fi
46384rm -f conftest*
46385
46386if test "$ice_cv_have_getopt_decl" = yes; then
46387	break
46388fi
46389# Check for "fixed" declaration like "getpid _PARAMS((int))"
46390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46391/* end confdefs.h.  */
46392#include <$header>
46393
46394_ACEOF
46395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46396  $EGREP "${ice_re_word}getopt[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
46397  ice_cv_have_getopt_decl=yes
46398fi
46399rm -f conftest*
46400
46401if test "$ice_cv_have_getopt_decl" = yes; then
46402	break
46403fi
46404done
46405
46406fi
46407
46408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getopt_decl" >&5
46409$as_echo "$ice_cv_have_getopt_decl" >&6; }
46410if test "$ice_cv_have_getopt_decl" = yes; then
46411
46412cat >>confdefs.h <<_ACEOF
46413#define HAVE_GETOPT_DECL 1
46414_ACEOF
46415
46416fi
46417fi
46418
46419
46420ice_have_getpeername=no
46421for ac_func in getpeername
46422do :
46423  ac_fn_c_check_func "$LINENO" "getpeername" "ac_cv_func_getpeername"
46424if test "x$ac_cv_func_getpeername" = xyes; then :
46425  cat >>confdefs.h <<_ACEOF
46426#define HAVE_GETPEERNAME 1
46427_ACEOF
46428 ice_have_getpeername=yes
46429fi
46430done
46431
46432if test "${ice_have_getpeername}" = yes; then
46433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
46434$as_echo_n "checking for getpeername declaration in sys/types.h sys/socket.h... " >&6; }
46435if ${ice_cv_have_getpeername_decl+:} false; then :
46436  $as_echo_n "(cached) " >&6
46437else
46438
46439ice_cv_have_getpeername_decl=no
46440ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46441ice_re_word='(^|[^a-zA-Z0-9_])'
46442for header in sys/types.h sys/socket.h; do
46443# Check for ordinary declaration
46444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46445/* end confdefs.h.  */
46446#include <$header>
46447
46448_ACEOF
46449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46450  $EGREP "${ice_re_word}getpeername[ 	]*\(" >/dev/null 2>&1; then :
46451  ice_cv_have_getpeername_decl=yes
46452fi
46453rm -f conftest*
46454
46455if test "$ice_cv_have_getpeername_decl" = yes; then
46456	break
46457fi
46458# Check for "fixed" declaration like "getpid _PARAMS((int))"
46459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46460/* end confdefs.h.  */
46461#include <$header>
46462
46463_ACEOF
46464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46465  $EGREP "${ice_re_word}getpeername[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
46466  ice_cv_have_getpeername_decl=yes
46467fi
46468rm -f conftest*
46469
46470if test "$ice_cv_have_getpeername_decl" = yes; then
46471	break
46472fi
46473done
46474
46475fi
46476
46477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getpeername_decl" >&5
46478$as_echo "$ice_cv_have_getpeername_decl" >&6; }
46479if test "$ice_cv_have_getpeername_decl" = yes; then
46480
46481cat >>confdefs.h <<_ACEOF
46482#define HAVE_GETPEERNAME_DECL 1
46483_ACEOF
46484
46485fi
46486fi
46487
46488ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
46489if test "x$ac_cv_func_getpgrp" = xyes; then :
46490
46491fi
46492
46493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
46494$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
46495if ${ac_cv_func_getpgrp_void+:} false; then :
46496  $as_echo_n "(cached) " >&6
46497else
46498  # Use it with a single arg.
46499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46500/* end confdefs.h.  */
46501$ac_includes_default
46502int
46503main ()
46504{
46505getpgrp (0);
46506  ;
46507  return 0;
46508}
46509_ACEOF
46510if ac_fn_c_try_compile "$LINENO"; then :
46511  ac_cv_func_getpgrp_void=no
46512else
46513  ac_cv_func_getpgrp_void=yes
46514fi
46515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46516
46517fi
46518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
46519$as_echo "$ac_cv_func_getpgrp_void" >&6; }
46520if test $ac_cv_func_getpgrp_void = yes; then
46521
46522$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
46523
46524fi
46525
46526
46527ice_have_getsockname=no
46528for ac_func in getsockname
46529do :
46530  ac_fn_c_check_func "$LINENO" "getsockname" "ac_cv_func_getsockname"
46531if test "x$ac_cv_func_getsockname" = xyes; then :
46532  cat >>confdefs.h <<_ACEOF
46533#define HAVE_GETSOCKNAME 1
46534_ACEOF
46535 ice_have_getsockname=yes
46536fi
46537done
46538
46539if test "${ice_have_getsockname}" = yes; then
46540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
46541$as_echo_n "checking for getsockname declaration in sys/types.h sys/socket.h... " >&6; }
46542if ${ice_cv_have_getsockname_decl+:} false; then :
46543  $as_echo_n "(cached) " >&6
46544else
46545
46546ice_cv_have_getsockname_decl=no
46547ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46548ice_re_word='(^|[^a-zA-Z0-9_])'
46549for header in sys/types.h sys/socket.h; do
46550# Check for ordinary declaration
46551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46552/* end confdefs.h.  */
46553#include <$header>
46554
46555_ACEOF
46556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46557  $EGREP "${ice_re_word}getsockname[ 	]*\(" >/dev/null 2>&1; then :
46558  ice_cv_have_getsockname_decl=yes
46559fi
46560rm -f conftest*
46561
46562if test "$ice_cv_have_getsockname_decl" = yes; then
46563	break
46564fi
46565# Check for "fixed" declaration like "getpid _PARAMS((int))"
46566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46567/* end confdefs.h.  */
46568#include <$header>
46569
46570_ACEOF
46571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46572  $EGREP "${ice_re_word}getsockname[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
46573  ice_cv_have_getsockname_decl=yes
46574fi
46575rm -f conftest*
46576
46577if test "$ice_cv_have_getsockname_decl" = yes; then
46578	break
46579fi
46580done
46581
46582fi
46583
46584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getsockname_decl" >&5
46585$as_echo "$ice_cv_have_getsockname_decl" >&6; }
46586if test "$ice_cv_have_getsockname_decl" = yes; then
46587
46588cat >>confdefs.h <<_ACEOF
46589#define HAVE_GETSOCKNAME_DECL 1
46590_ACEOF
46591
46592fi
46593fi
46594
46595
46596ice_have_getsockopt=no
46597for ac_func in getsockopt
46598do :
46599  ac_fn_c_check_func "$LINENO" "getsockopt" "ac_cv_func_getsockopt"
46600if test "x$ac_cv_func_getsockopt" = xyes; then :
46601  cat >>confdefs.h <<_ACEOF
46602#define HAVE_GETSOCKOPT 1
46603_ACEOF
46604 ice_have_getsockopt=yes
46605fi
46606done
46607
46608if test "${ice_have_getsockopt}" = yes; then
46609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
46610$as_echo_n "checking for getsockopt declaration in sys/types.h sys/socket.h... " >&6; }
46611if ${ice_cv_have_getsockopt_decl+:} false; then :
46612  $as_echo_n "(cached) " >&6
46613else
46614
46615ice_cv_have_getsockopt_decl=no
46616ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46617ice_re_word='(^|[^a-zA-Z0-9_])'
46618for header in sys/types.h sys/socket.h; do
46619# Check for ordinary declaration
46620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46621/* end confdefs.h.  */
46622#include <$header>
46623
46624_ACEOF
46625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46626  $EGREP "${ice_re_word}getsockopt[ 	]*\(" >/dev/null 2>&1; then :
46627  ice_cv_have_getsockopt_decl=yes
46628fi
46629rm -f conftest*
46630
46631if test "$ice_cv_have_getsockopt_decl" = yes; then
46632	break
46633fi
46634# Check for "fixed" declaration like "getpid _PARAMS((int))"
46635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46636/* end confdefs.h.  */
46637#include <$header>
46638
46639_ACEOF
46640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46641  $EGREP "${ice_re_word}getsockopt[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
46642  ice_cv_have_getsockopt_decl=yes
46643fi
46644rm -f conftest*
46645
46646if test "$ice_cv_have_getsockopt_decl" = yes; then
46647	break
46648fi
46649done
46650
46651fi
46652
46653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getsockopt_decl" >&5
46654$as_echo "$ice_cv_have_getsockopt_decl" >&6; }
46655if test "$ice_cv_have_getsockopt_decl" = yes; then
46656
46657cat >>confdefs.h <<_ACEOF
46658#define HAVE_GETSOCKOPT_DECL 1
46659_ACEOF
46660
46661fi
46662fi
46663
46664
46665ice_have_initgroups=no
46666for ac_func in initgroups
46667do :
46668  ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
46669if test "x$ac_cv_func_initgroups" = xyes; then :
46670  cat >>confdefs.h <<_ACEOF
46671#define HAVE_INITGROUPS 1
46672_ACEOF
46673 ice_have_initgroups=yes
46674fi
46675done
46676
46677if test "${ice_have_initgroups}" = yes; then
46678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
46679$as_echo_n "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... " >&6; }
46680if ${ice_cv_have_initgroups_decl+:} false; then :
46681  $as_echo_n "(cached) " >&6
46682else
46683
46684ice_cv_have_initgroups_decl=no
46685ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46686ice_re_word='(^|[^a-zA-Z0-9_])'
46687for header in grp.h sys/types.h unistd.h libc.h; do
46688# Check for ordinary declaration
46689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46690/* end confdefs.h.  */
46691#include <$header>
46692
46693_ACEOF
46694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46695  $EGREP "${ice_re_word}initgroups[ 	]*\(" >/dev/null 2>&1; then :
46696  ice_cv_have_initgroups_decl=yes
46697fi
46698rm -f conftest*
46699
46700if test "$ice_cv_have_initgroups_decl" = yes; then
46701	break
46702fi
46703# Check for "fixed" declaration like "getpid _PARAMS((int))"
46704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46705/* end confdefs.h.  */
46706#include <$header>
46707
46708_ACEOF
46709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46710  $EGREP "${ice_re_word}initgroups[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
46711  ice_cv_have_initgroups_decl=yes
46712fi
46713rm -f conftest*
46714
46715if test "$ice_cv_have_initgroups_decl" = yes; then
46716	break
46717fi
46718done
46719
46720fi
46721
46722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_initgroups_decl" >&5
46723$as_echo "$ice_cv_have_initgroups_decl" >&6; }
46724if test "$ice_cv_have_initgroups_decl" = yes; then
46725
46726cat >>confdefs.h <<_ACEOF
46727#define HAVE_INITGROUPS_DECL 1
46728_ACEOF
46729
46730fi
46731fi
46732
46733
46734ice_have_ioctl=no
46735for ac_func in ioctl
46736do :
46737  ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
46738if test "x$ac_cv_func_ioctl" = xyes; then :
46739  cat >>confdefs.h <<_ACEOF
46740#define HAVE_IOCTL 1
46741_ACEOF
46742 ice_have_ioctl=yes
46743fi
46744done
46745
46746if test "${ice_have_ioctl}" = yes; then
46747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
46748$as_echo_n "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... " >&6; }
46749if ${ice_cv_have_ioctl_decl+:} false; then :
46750  $as_echo_n "(cached) " >&6
46751else
46752
46753ice_cv_have_ioctl_decl=no
46754ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46755ice_re_word='(^|[^a-zA-Z0-9_])'
46756for header in sys/ioctl.h unistd.h libc.h; do
46757# Check for ordinary declaration
46758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46759/* end confdefs.h.  */
46760#include <$header>
46761
46762_ACEOF
46763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46764  $EGREP "${ice_re_word}ioctl[ 	]*\(" >/dev/null 2>&1; then :
46765  ice_cv_have_ioctl_decl=yes
46766fi
46767rm -f conftest*
46768
46769if test "$ice_cv_have_ioctl_decl" = yes; then
46770	break
46771fi
46772# Check for "fixed" declaration like "getpid _PARAMS((int))"
46773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46774/* end confdefs.h.  */
46775#include <$header>
46776
46777_ACEOF
46778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46779  $EGREP "${ice_re_word}ioctl[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
46780  ice_cv_have_ioctl_decl=yes
46781fi
46782rm -f conftest*
46783
46784if test "$ice_cv_have_ioctl_decl" = yes; then
46785	break
46786fi
46787done
46788
46789fi
46790
46791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ioctl_decl" >&5
46792$as_echo "$ice_cv_have_ioctl_decl" >&6; }
46793if test "$ice_cv_have_ioctl_decl" = yes; then
46794
46795cat >>confdefs.h <<_ACEOF
46796#define HAVE_IOCTL_DECL 1
46797_ACEOF
46798
46799fi
46800fi
46801
46802
46803ice_have_isnormal=no
46804for ac_func in isnormal
46805do :
46806  ac_fn_c_check_func "$LINENO" "isnormal" "ac_cv_func_isnormal"
46807if test "x$ac_cv_func_isnormal" = xyes; then :
46808  cat >>confdefs.h <<_ACEOF
46809#define HAVE_ISNORMAL 1
46810_ACEOF
46811 ice_have_isnormal=yes
46812fi
46813done
46814
46815if test "${ice_have_isnormal}" = yes; then
46816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnormal declaration in math.h" >&5
46817$as_echo_n "checking for isnormal declaration in math.h... " >&6; }
46818if ${ice_cv_have_isnormal_decl+:} false; then :
46819  $as_echo_n "(cached) " >&6
46820else
46821
46822ice_cv_have_isnormal_decl=no
46823ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46824ice_re_word='(^|[^a-zA-Z0-9_])'
46825for header in math.h; do
46826# Check for ordinary declaration
46827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46828/* end confdefs.h.  */
46829#include <$header>
46830
46831_ACEOF
46832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46833  $EGREP "${ice_re_word}isnormal[ 	]*\(" >/dev/null 2>&1; then :
46834  ice_cv_have_isnormal_decl=yes
46835fi
46836rm -f conftest*
46837
46838if test "$ice_cv_have_isnormal_decl" = yes; then
46839	break
46840fi
46841# Check for "fixed" declaration like "getpid _PARAMS((int))"
46842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46843/* end confdefs.h.  */
46844#include <$header>
46845
46846_ACEOF
46847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46848  $EGREP "${ice_re_word}isnormal[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
46849  ice_cv_have_isnormal_decl=yes
46850fi
46851rm -f conftest*
46852
46853if test "$ice_cv_have_isnormal_decl" = yes; then
46854	break
46855fi
46856done
46857
46858fi
46859
46860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_isnormal_decl" >&5
46861$as_echo "$ice_cv_have_isnormal_decl" >&6; }
46862if test "$ice_cv_have_isnormal_decl" = yes; then
46863
46864cat >>confdefs.h <<_ACEOF
46865#define HAVE_ISNORMAL_DECL 1
46866_ACEOF
46867
46868fi
46869fi
46870
46871
46872ice_have_listen=no
46873for ac_func in listen
46874do :
46875  ac_fn_c_check_func "$LINENO" "listen" "ac_cv_func_listen"
46876if test "x$ac_cv_func_listen" = xyes; then :
46877  cat >>confdefs.h <<_ACEOF
46878#define HAVE_LISTEN 1
46879_ACEOF
46880 ice_have_listen=yes
46881fi
46882done
46883
46884if test "${ice_have_listen}" = yes; then
46885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for listen declaration in sys/types.h sys/socket.h" >&5
46886$as_echo_n "checking for listen declaration in sys/types.h sys/socket.h... " >&6; }
46887if ${ice_cv_have_listen_decl+:} false; then :
46888  $as_echo_n "(cached) " >&6
46889else
46890
46891ice_cv_have_listen_decl=no
46892ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46893ice_re_word='(^|[^a-zA-Z0-9_])'
46894for header in sys/types.h sys/socket.h; do
46895# Check for ordinary declaration
46896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46897/* end confdefs.h.  */
46898#include <$header>
46899
46900_ACEOF
46901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46902  $EGREP "${ice_re_word}listen[ 	]*\(" >/dev/null 2>&1; then :
46903  ice_cv_have_listen_decl=yes
46904fi
46905rm -f conftest*
46906
46907if test "$ice_cv_have_listen_decl" = yes; then
46908	break
46909fi
46910# Check for "fixed" declaration like "getpid _PARAMS((int))"
46911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46912/* end confdefs.h.  */
46913#include <$header>
46914
46915_ACEOF
46916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46917  $EGREP "${ice_re_word}listen[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
46918  ice_cv_have_listen_decl=yes
46919fi
46920rm -f conftest*
46921
46922if test "$ice_cv_have_listen_decl" = yes; then
46923	break
46924fi
46925done
46926
46927fi
46928
46929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_listen_decl" >&5
46930$as_echo "$ice_cv_have_listen_decl" >&6; }
46931if test "$ice_cv_have_listen_decl" = yes; then
46932
46933cat >>confdefs.h <<_ACEOF
46934#define HAVE_LISTEN_DECL 1
46935_ACEOF
46936
46937fi
46938fi
46939
46940
46941ice_have_lstat=no
46942for ac_func in lstat
46943do :
46944  ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
46945if test "x$ac_cv_func_lstat" = xyes; then :
46946  cat >>confdefs.h <<_ACEOF
46947#define HAVE_LSTAT 1
46948_ACEOF
46949 ice_have_lstat=yes
46950fi
46951done
46952
46953if test "${ice_have_lstat}" = yes; then
46954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat declaration in sys/types.h sys/stat.h" >&5
46955$as_echo_n "checking for lstat declaration in sys/types.h sys/stat.h... " >&6; }
46956if ${ice_cv_have_lstat_decl+:} false; then :
46957  $as_echo_n "(cached) " >&6
46958else
46959
46960ice_cv_have_lstat_decl=no
46961ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46962ice_re_word='(^|[^a-zA-Z0-9_])'
46963for header in sys/types.h sys/stat.h; do
46964# Check for ordinary declaration
46965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46966/* end confdefs.h.  */
46967#include <$header>
46968
46969_ACEOF
46970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46971  $EGREP "${ice_re_word}lstat[ 	]*\(" >/dev/null 2>&1; then :
46972  ice_cv_have_lstat_decl=yes
46973fi
46974rm -f conftest*
46975
46976if test "$ice_cv_have_lstat_decl" = yes; then
46977	break
46978fi
46979# Check for "fixed" declaration like "getpid _PARAMS((int))"
46980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46981/* end confdefs.h.  */
46982#include <$header>
46983
46984_ACEOF
46985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46986  $EGREP "${ice_re_word}lstat[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
46987  ice_cv_have_lstat_decl=yes
46988fi
46989rm -f conftest*
46990
46991if test "$ice_cv_have_lstat_decl" = yes; then
46992	break
46993fi
46994done
46995
46996fi
46997
46998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_lstat_decl" >&5
46999$as_echo "$ice_cv_have_lstat_decl" >&6; }
47000if test "$ice_cv_have_lstat_decl" = yes; then
47001
47002cat >>confdefs.h <<_ACEOF
47003#define HAVE_LSTAT_DECL 1
47004_ACEOF
47005
47006fi
47007fi
47008
47009
47010ice_have_malloc=no
47011for ac_func in malloc
47012do :
47013  ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
47014if test "x$ac_cv_func_malloc" = xyes; then :
47015  cat >>confdefs.h <<_ACEOF
47016#define HAVE_MALLOC 1
47017_ACEOF
47018 ice_have_malloc=yes
47019fi
47020done
47021
47022if test "${ice_have_malloc}" = yes; then
47023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc declaration in stdlib.h" >&5
47024$as_echo_n "checking for malloc declaration in stdlib.h... " >&6; }
47025if ${ice_cv_have_malloc_decl+:} false; then :
47026  $as_echo_n "(cached) " >&6
47027else
47028
47029ice_cv_have_malloc_decl=no
47030ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47031ice_re_word='(^|[^a-zA-Z0-9_])'
47032for header in stdlib.h; do
47033# Check for ordinary declaration
47034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47035/* end confdefs.h.  */
47036#include <$header>
47037
47038_ACEOF
47039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47040  $EGREP "${ice_re_word}malloc[ 	]*\(" >/dev/null 2>&1; then :
47041  ice_cv_have_malloc_decl=yes
47042fi
47043rm -f conftest*
47044
47045if test "$ice_cv_have_malloc_decl" = yes; then
47046	break
47047fi
47048# Check for "fixed" declaration like "getpid _PARAMS((int))"
47049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47050/* end confdefs.h.  */
47051#include <$header>
47052
47053_ACEOF
47054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47055  $EGREP "${ice_re_word}malloc[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
47056  ice_cv_have_malloc_decl=yes
47057fi
47058rm -f conftest*
47059
47060if test "$ice_cv_have_malloc_decl" = yes; then
47061	break
47062fi
47063done
47064
47065fi
47066
47067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_malloc_decl" >&5
47068$as_echo "$ice_cv_have_malloc_decl" >&6; }
47069if test "$ice_cv_have_malloc_decl" = yes; then
47070
47071cat >>confdefs.h <<_ACEOF
47072#define HAVE_MALLOC_DECL 1
47073_ACEOF
47074
47075fi
47076fi
47077
47078
47079ice_have_memmove=no
47080for ac_func in memmove
47081do :
47082  ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
47083if test "x$ac_cv_func_memmove" = xyes; then :
47084  cat >>confdefs.h <<_ACEOF
47085#define HAVE_MEMMOVE 1
47086_ACEOF
47087 ice_have_memmove=yes
47088fi
47089done
47090
47091if test "${ice_have_memmove}" = yes; then
47092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memmove declaration in string.h strings.h" >&5
47093$as_echo_n "checking for memmove declaration in string.h strings.h... " >&6; }
47094if ${ice_cv_have_memmove_decl+:} false; then :
47095  $as_echo_n "(cached) " >&6
47096else
47097
47098ice_cv_have_memmove_decl=no
47099ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47100ice_re_word='(^|[^a-zA-Z0-9_])'
47101for header in string.h strings.h; do
47102# Check for ordinary declaration
47103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47104/* end confdefs.h.  */
47105#include <$header>
47106
47107_ACEOF
47108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47109  $EGREP "${ice_re_word}memmove[ 	]*\(" >/dev/null 2>&1; then :
47110  ice_cv_have_memmove_decl=yes
47111fi
47112rm -f conftest*
47113
47114if test "$ice_cv_have_memmove_decl" = yes; then
47115	break
47116fi
47117# Check for "fixed" declaration like "getpid _PARAMS((int))"
47118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47119/* end confdefs.h.  */
47120#include <$header>
47121
47122_ACEOF
47123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47124  $EGREP "${ice_re_word}memmove[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
47125  ice_cv_have_memmove_decl=yes
47126fi
47127rm -f conftest*
47128
47129if test "$ice_cv_have_memmove_decl" = yes; then
47130	break
47131fi
47132done
47133
47134fi
47135
47136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_memmove_decl" >&5
47137$as_echo "$ice_cv_have_memmove_decl" >&6; }
47138if test "$ice_cv_have_memmove_decl" = yes; then
47139
47140cat >>confdefs.h <<_ACEOF
47141#define HAVE_MEMMOVE_DECL 1
47142_ACEOF
47143
47144fi
47145fi
47146
47147
47148ice_have_memset=no
47149for ac_func in memset
47150do :
47151  ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
47152if test "x$ac_cv_func_memset" = xyes; then :
47153  cat >>confdefs.h <<_ACEOF
47154#define HAVE_MEMSET 1
47155_ACEOF
47156 ice_have_memset=yes
47157fi
47158done
47159
47160if test "${ice_have_memset}" = yes; then
47161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memset declaration in string.h strings.h" >&5
47162$as_echo_n "checking for memset declaration in string.h strings.h... " >&6; }
47163if ${ice_cv_have_memset_decl+:} false; then :
47164  $as_echo_n "(cached) " >&6
47165else
47166
47167ice_cv_have_memset_decl=no
47168ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47169ice_re_word='(^|[^a-zA-Z0-9_])'
47170for header in string.h strings.h; do
47171# Check for ordinary declaration
47172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47173/* end confdefs.h.  */
47174#include <$header>
47175
47176_ACEOF
47177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47178  $EGREP "${ice_re_word}memset[ 	]*\(" >/dev/null 2>&1; then :
47179  ice_cv_have_memset_decl=yes
47180fi
47181rm -f conftest*
47182
47183if test "$ice_cv_have_memset_decl" = yes; then
47184	break
47185fi
47186# Check for "fixed" declaration like "getpid _PARAMS((int))"
47187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47188/* end confdefs.h.  */
47189#include <$header>
47190
47191_ACEOF
47192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47193  $EGREP "${ice_re_word}memset[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
47194  ice_cv_have_memset_decl=yes
47195fi
47196rm -f conftest*
47197
47198if test "$ice_cv_have_memset_decl" = yes; then
47199	break
47200fi
47201done
47202
47203fi
47204
47205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_memset_decl" >&5
47206$as_echo "$ice_cv_have_memset_decl" >&6; }
47207if test "$ice_cv_have_memset_decl" = yes; then
47208
47209cat >>confdefs.h <<_ACEOF
47210#define HAVE_MEMSET_DECL 1
47211_ACEOF
47212
47213fi
47214fi
47215
47216
47217ice_have_mkstemp=no
47218for ac_func in mkstemp
47219do :
47220  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
47221if test "x$ac_cv_func_mkstemp" = xyes; then :
47222  cat >>confdefs.h <<_ACEOF
47223#define HAVE_MKSTEMP 1
47224_ACEOF
47225 ice_have_mkstemp=yes
47226fi
47227done
47228
47229if test "${ice_have_mkstemp}" = yes; then
47230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkstemp declaration in stdlib.h" >&5
47231$as_echo_n "checking for mkstemp declaration in stdlib.h... " >&6; }
47232if ${ice_cv_have_mkstemp_decl+:} false; then :
47233  $as_echo_n "(cached) " >&6
47234else
47235
47236ice_cv_have_mkstemp_decl=no
47237ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47238ice_re_word='(^|[^a-zA-Z0-9_])'
47239for header in stdlib.h; do
47240# Check for ordinary declaration
47241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47242/* end confdefs.h.  */
47243#include <$header>
47244
47245_ACEOF
47246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47247  $EGREP "${ice_re_word}mkstemp[ 	]*\(" >/dev/null 2>&1; then :
47248  ice_cv_have_mkstemp_decl=yes
47249fi
47250rm -f conftest*
47251
47252if test "$ice_cv_have_mkstemp_decl" = yes; then
47253	break
47254fi
47255# Check for "fixed" declaration like "getpid _PARAMS((int))"
47256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47257/* end confdefs.h.  */
47258#include <$header>
47259
47260_ACEOF
47261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47262  $EGREP "${ice_re_word}mkstemp[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
47263  ice_cv_have_mkstemp_decl=yes
47264fi
47265rm -f conftest*
47266
47267if test "$ice_cv_have_mkstemp_decl" = yes; then
47268	break
47269fi
47270done
47271
47272fi
47273
47274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mkstemp_decl" >&5
47275$as_echo "$ice_cv_have_mkstemp_decl" >&6; }
47276if test "$ice_cv_have_mkstemp_decl" = yes; then
47277
47278cat >>confdefs.h <<_ACEOF
47279#define HAVE_MKSTEMP_DECL 1
47280_ACEOF
47281
47282fi
47283fi
47284
47285
47286ice_have_mktemp=no
47287for ac_func in mktemp
47288do :
47289  ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
47290if test "x$ac_cv_func_mktemp" = xyes; then :
47291  cat >>confdefs.h <<_ACEOF
47292#define HAVE_MKTEMP 1
47293_ACEOF
47294 ice_have_mktemp=yes
47295fi
47296done
47297
47298if test "${ice_have_mktemp}" = yes; then
47299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mktemp declaration in stdlib.h" >&5
47300$as_echo_n "checking for mktemp declaration in stdlib.h... " >&6; }
47301if ${ice_cv_have_mktemp_decl+:} false; then :
47302  $as_echo_n "(cached) " >&6
47303else
47304
47305ice_cv_have_mktemp_decl=no
47306ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47307ice_re_word='(^|[^a-zA-Z0-9_])'
47308for header in stdlib.h; do
47309# Check for ordinary declaration
47310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47311/* end confdefs.h.  */
47312#include <$header>
47313
47314_ACEOF
47315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47316  $EGREP "${ice_re_word}mktemp[ 	]*\(" >/dev/null 2>&1; then :
47317  ice_cv_have_mktemp_decl=yes
47318fi
47319rm -f conftest*
47320
47321if test "$ice_cv_have_mktemp_decl" = yes; then
47322	break
47323fi
47324# Check for "fixed" declaration like "getpid _PARAMS((int))"
47325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47326/* end confdefs.h.  */
47327#include <$header>
47328
47329_ACEOF
47330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47331  $EGREP "${ice_re_word}mktemp[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
47332  ice_cv_have_mktemp_decl=yes
47333fi
47334rm -f conftest*
47335
47336if test "$ice_cv_have_mktemp_decl" = yes; then
47337	break
47338fi
47339done
47340
47341fi
47342
47343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mktemp_decl" >&5
47344$as_echo "$ice_cv_have_mktemp_decl" >&6; }
47345if test "$ice_cv_have_mktemp_decl" = yes; then
47346
47347cat >>confdefs.h <<_ACEOF
47348#define HAVE_MKTEMP_DECL 1
47349_ACEOF
47350
47351fi
47352fi
47353
47354
47355ice_have_mktime=no
47356for ac_func in mktime
47357do :
47358  ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
47359if test "x$ac_cv_func_mktime" = xyes; then :
47360  cat >>confdefs.h <<_ACEOF
47361#define HAVE_MKTIME 1
47362_ACEOF
47363 ice_have_mktime=yes
47364fi
47365done
47366
47367if test "${ice_have_mktime}" = yes; then
47368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mktime declaration in time.h sys/time.h" >&5
47369$as_echo_n "checking for mktime declaration in time.h sys/time.h... " >&6; }
47370if ${ice_cv_have_mktime_decl+:} false; then :
47371  $as_echo_n "(cached) " >&6
47372else
47373
47374ice_cv_have_mktime_decl=no
47375ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47376ice_re_word='(^|[^a-zA-Z0-9_])'
47377for header in time.h sys/time.h; do
47378# Check for ordinary declaration
47379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47380/* end confdefs.h.  */
47381#include <$header>
47382
47383_ACEOF
47384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47385  $EGREP "${ice_re_word}mktime[ 	]*\(" >/dev/null 2>&1; then :
47386  ice_cv_have_mktime_decl=yes
47387fi
47388rm -f conftest*
47389
47390if test "$ice_cv_have_mktime_decl" = yes; then
47391	break
47392fi
47393# Check for "fixed" declaration like "getpid _PARAMS((int))"
47394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47395/* end confdefs.h.  */
47396#include <$header>
47397
47398_ACEOF
47399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47400  $EGREP "${ice_re_word}mktime[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
47401  ice_cv_have_mktime_decl=yes
47402fi
47403rm -f conftest*
47404
47405if test "$ice_cv_have_mktime_decl" = yes; then
47406	break
47407fi
47408done
47409
47410fi
47411
47412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mktime_decl" >&5
47413$as_echo "$ice_cv_have_mktime_decl" >&6; }
47414if test "$ice_cv_have_mktime_decl" = yes; then
47415
47416cat >>confdefs.h <<_ACEOF
47417#define HAVE_MKTIME_DECL 1
47418_ACEOF
47419
47420fi
47421fi
47422
47423for ac_func in on_exit
47424do :
47425  ac_fn_c_check_func "$LINENO" "on_exit" "ac_cv_func_on_exit"
47426if test "x$ac_cv_func_on_exit" = xyes; then :
47427  cat >>confdefs.h <<_ACEOF
47428#define HAVE_ON_EXIT 1
47429_ACEOF
47430
47431fi
47432done
47433
47434
47435ice_have_openlog=no
47436for ac_func in openlog
47437do :
47438  ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
47439if test "x$ac_cv_func_openlog" = xyes; then :
47440  cat >>confdefs.h <<_ACEOF
47441#define HAVE_OPENLOG 1
47442_ACEOF
47443 ice_have_openlog=yes
47444fi
47445done
47446
47447if test "${ice_have_openlog}" = yes; then
47448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openlog declaration in syslog.h" >&5
47449$as_echo_n "checking for openlog declaration in syslog.h... " >&6; }
47450if ${ice_cv_have_openlog_decl+:} false; then :
47451  $as_echo_n "(cached) " >&6
47452else
47453
47454ice_cv_have_openlog_decl=no
47455ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47456ice_re_word='(^|[^a-zA-Z0-9_])'
47457for header in syslog.h; do
47458# Check for ordinary declaration
47459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47460/* end confdefs.h.  */
47461#include <$header>
47462
47463_ACEOF
47464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47465  $EGREP "${ice_re_word}openlog[ 	]*\(" >/dev/null 2>&1; then :
47466  ice_cv_have_openlog_decl=yes
47467fi
47468rm -f conftest*
47469
47470if test "$ice_cv_have_openlog_decl" = yes; then
47471	break
47472fi
47473# Check for "fixed" declaration like "getpid _PARAMS((int))"
47474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47475/* end confdefs.h.  */
47476#include <$header>
47477
47478_ACEOF
47479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47480  $EGREP "${ice_re_word}openlog[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
47481  ice_cv_have_openlog_decl=yes
47482fi
47483rm -f conftest*
47484
47485if test "$ice_cv_have_openlog_decl" = yes; then
47486	break
47487fi
47488done
47489
47490fi
47491
47492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_openlog_decl" >&5
47493$as_echo "$ice_cv_have_openlog_decl" >&6; }
47494if test "$ice_cv_have_openlog_decl" = yes; then
47495
47496cat >>confdefs.h <<_ACEOF
47497#define HAVE_OPENLOG_DECL 1
47498_ACEOF
47499
47500fi
47501fi
47502
47503
47504ice_have_pclose=no
47505for ac_func in pclose
47506do :
47507  ac_fn_c_check_func "$LINENO" "pclose" "ac_cv_func_pclose"
47508if test "x$ac_cv_func_pclose" = xyes; then :
47509  cat >>confdefs.h <<_ACEOF
47510#define HAVE_PCLOSE 1
47511_ACEOF
47512 ice_have_pclose=yes
47513fi
47514done
47515
47516if test "${ice_have_pclose}" = yes; then
47517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pclose declaration in stdio.h" >&5
47518$as_echo_n "checking for pclose declaration in stdio.h... " >&6; }
47519if ${ice_cv_have_pclose_decl+:} false; then :
47520  $as_echo_n "(cached) " >&6
47521else
47522
47523ice_cv_have_pclose_decl=no
47524ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47525ice_re_word='(^|[^a-zA-Z0-9_])'
47526for header in stdio.h; do
47527# Check for ordinary declaration
47528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47529/* end confdefs.h.  */
47530#include <$header>
47531
47532_ACEOF
47533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47534  $EGREP "${ice_re_word}pclose[ 	]*\(" >/dev/null 2>&1; then :
47535  ice_cv_have_pclose_decl=yes
47536fi
47537rm -f conftest*
47538
47539if test "$ice_cv_have_pclose_decl" = yes; then
47540	break
47541fi
47542# Check for "fixed" declaration like "getpid _PARAMS((int))"
47543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47544/* end confdefs.h.  */
47545#include <$header>
47546
47547_ACEOF
47548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47549  $EGREP "${ice_re_word}pclose[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
47550  ice_cv_have_pclose_decl=yes
47551fi
47552rm -f conftest*
47553
47554if test "$ice_cv_have_pclose_decl" = yes; then
47555	break
47556fi
47557done
47558
47559fi
47560
47561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_pclose_decl" >&5
47562$as_echo "$ice_cv_have_pclose_decl" >&6; }
47563if test "$ice_cv_have_pclose_decl" = yes; then
47564
47565cat >>confdefs.h <<_ACEOF
47566#define HAVE_PCLOSE_DECL 1
47567_ACEOF
47568
47569fi
47570fi
47571
47572
47573ice_have_perror=no
47574for ac_func in perror
47575do :
47576  ac_fn_c_check_func "$LINENO" "perror" "ac_cv_func_perror"
47577if test "x$ac_cv_func_perror" = xyes; then :
47578  cat >>confdefs.h <<_ACEOF
47579#define HAVE_PERROR 1
47580_ACEOF
47581 ice_have_perror=yes
47582fi
47583done
47584
47585if test "${ice_have_perror}" = yes; then
47586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perror declaration in stdio.h" >&5
47587$as_echo_n "checking for perror declaration in stdio.h... " >&6; }
47588if ${ice_cv_have_perror_decl+:} false; then :
47589  $as_echo_n "(cached) " >&6
47590else
47591
47592ice_cv_have_perror_decl=no
47593ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47594ice_re_word='(^|[^a-zA-Z0-9_])'
47595for header in stdio.h; do
47596# Check for ordinary declaration
47597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47598/* end confdefs.h.  */
47599#include <$header>
47600
47601_ACEOF
47602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47603  $EGREP "${ice_re_word}perror[ 	]*\(" >/dev/null 2>&1; then :
47604  ice_cv_have_perror_decl=yes
47605fi
47606rm -f conftest*
47607
47608if test "$ice_cv_have_perror_decl" = yes; then
47609	break
47610fi
47611# Check for "fixed" declaration like "getpid _PARAMS((int))"
47612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47613/* end confdefs.h.  */
47614#include <$header>
47615
47616_ACEOF
47617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47618  $EGREP "${ice_re_word}perror[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
47619  ice_cv_have_perror_decl=yes
47620fi
47621rm -f conftest*
47622
47623if test "$ice_cv_have_perror_decl" = yes; then
47624	break
47625fi
47626done
47627
47628fi
47629
47630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_perror_decl" >&5
47631$as_echo "$ice_cv_have_perror_decl" >&6; }
47632if test "$ice_cv_have_perror_decl" = yes; then
47633
47634cat >>confdefs.h <<_ACEOF
47635#define HAVE_PERROR_DECL 1
47636_ACEOF
47637
47638fi
47639fi
47640
47641
47642ice_have_printf=no
47643for ac_func in printf
47644do :
47645  ac_fn_c_check_func "$LINENO" "printf" "ac_cv_func_printf"
47646if test "x$ac_cv_func_printf" = xyes; then :
47647  cat >>confdefs.h <<_ACEOF
47648#define HAVE_PRINTF 1
47649_ACEOF
47650 ice_have_printf=yes
47651fi
47652done
47653
47654if test "${ice_have_printf}" = yes; then
47655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf declaration in stdio.h" >&5
47656$as_echo_n "checking for printf declaration in stdio.h... " >&6; }
47657if ${ice_cv_have_printf_decl+:} false; then :
47658  $as_echo_n "(cached) " >&6
47659else
47660
47661ice_cv_have_printf_decl=no
47662ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47663ice_re_word='(^|[^a-zA-Z0-9_])'
47664for header in stdio.h; do
47665# Check for ordinary declaration
47666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47667/* end confdefs.h.  */
47668#include <$header>
47669
47670_ACEOF
47671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47672  $EGREP "${ice_re_word}printf[ 	]*\(" >/dev/null 2>&1; then :
47673  ice_cv_have_printf_decl=yes
47674fi
47675rm -f conftest*
47676
47677if test "$ice_cv_have_printf_decl" = yes; then
47678	break
47679fi
47680# Check for "fixed" declaration like "getpid _PARAMS((int))"
47681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47682/* end confdefs.h.  */
47683#include <$header>
47684
47685_ACEOF
47686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47687  $EGREP "${ice_re_word}printf[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
47688  ice_cv_have_printf_decl=yes
47689fi
47690rm -f conftest*
47691
47692if test "$ice_cv_have_printf_decl" = yes; then
47693	break
47694fi
47695done
47696
47697fi
47698
47699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_printf_decl" >&5
47700$as_echo "$ice_cv_have_printf_decl" >&6; }
47701if test "$ice_cv_have_printf_decl" = yes; then
47702
47703cat >>confdefs.h <<_ACEOF
47704#define HAVE_PRINTF_DECL 1
47705_ACEOF
47706
47707fi
47708fi
47709
47710for ac_func in putenv
47711do :
47712  ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
47713if test "x$ac_cv_func_putenv" = xyes; then :
47714  cat >>confdefs.h <<_ACEOF
47715#define HAVE_PUTENV 1
47716_ACEOF
47717
47718fi
47719done
47720
47721
47722ice_have_puts=no
47723for ac_func in puts
47724do :
47725  ac_fn_c_check_func "$LINENO" "puts" "ac_cv_func_puts"
47726if test "x$ac_cv_func_puts" = xyes; then :
47727  cat >>confdefs.h <<_ACEOF
47728#define HAVE_PUTS 1
47729_ACEOF
47730 ice_have_puts=yes
47731fi
47732done
47733
47734if test "${ice_have_puts}" = yes; then
47735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts declaration in stdio.h" >&5
47736$as_echo_n "checking for puts declaration in stdio.h... " >&6; }
47737if ${ice_cv_have_puts_decl+:} false; then :
47738  $as_echo_n "(cached) " >&6
47739else
47740
47741ice_cv_have_puts_decl=no
47742ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47743ice_re_word='(^|[^a-zA-Z0-9_])'
47744for header in stdio.h; do
47745# Check for ordinary declaration
47746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47747/* end confdefs.h.  */
47748#include <$header>
47749
47750_ACEOF
47751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47752  $EGREP "${ice_re_word}puts[ 	]*\(" >/dev/null 2>&1; then :
47753  ice_cv_have_puts_decl=yes
47754fi
47755rm -f conftest*
47756
47757if test "$ice_cv_have_puts_decl" = yes; then
47758	break
47759fi
47760# Check for "fixed" declaration like "getpid _PARAMS((int))"
47761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47762/* end confdefs.h.  */
47763#include <$header>
47764
47765_ACEOF
47766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47767  $EGREP "${ice_re_word}puts[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
47768  ice_cv_have_puts_decl=yes
47769fi
47770rm -f conftest*
47771
47772if test "$ice_cv_have_puts_decl" = yes; then
47773	break
47774fi
47775done
47776
47777fi
47778
47779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_puts_decl" >&5
47780$as_echo "$ice_cv_have_puts_decl" >&6; }
47781if test "$ice_cv_have_puts_decl" = yes; then
47782
47783cat >>confdefs.h <<_ACEOF
47784#define HAVE_PUTS_DECL 1
47785_ACEOF
47786
47787fi
47788fi
47789
47790
47791ice_have_realloc=no
47792for ac_func in realloc
47793do :
47794  ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
47795if test "x$ac_cv_func_realloc" = xyes; then :
47796  cat >>confdefs.h <<_ACEOF
47797#define HAVE_REALLOC 1
47798_ACEOF
47799 ice_have_realloc=yes
47800fi
47801done
47802
47803if test "${ice_have_realloc}" = yes; then
47804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for realloc declaration in stdlib.h" >&5
47805$as_echo_n "checking for realloc declaration in stdlib.h... " >&6; }
47806if ${ice_cv_have_realloc_decl+:} false; then :
47807  $as_echo_n "(cached) " >&6
47808else
47809
47810ice_cv_have_realloc_decl=no
47811ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47812ice_re_word='(^|[^a-zA-Z0-9_])'
47813for header in stdlib.h; do
47814# Check for ordinary declaration
47815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47816/* end confdefs.h.  */
47817#include <$header>
47818
47819_ACEOF
47820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47821  $EGREP "${ice_re_word}realloc[ 	]*\(" >/dev/null 2>&1; then :
47822  ice_cv_have_realloc_decl=yes
47823fi
47824rm -f conftest*
47825
47826if test "$ice_cv_have_realloc_decl" = yes; then
47827	break
47828fi
47829# Check for "fixed" declaration like "getpid _PARAMS((int))"
47830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47831/* end confdefs.h.  */
47832#include <$header>
47833
47834_ACEOF
47835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47836  $EGREP "${ice_re_word}realloc[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
47837  ice_cv_have_realloc_decl=yes
47838fi
47839rm -f conftest*
47840
47841if test "$ice_cv_have_realloc_decl" = yes; then
47842	break
47843fi
47844done
47845
47846fi
47847
47848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_realloc_decl" >&5
47849$as_echo "$ice_cv_have_realloc_decl" >&6; }
47850if test "$ice_cv_have_realloc_decl" = yes; then
47851
47852cat >>confdefs.h <<_ACEOF
47853#define HAVE_REALLOC_DECL 1
47854_ACEOF
47855
47856fi
47857fi
47858
47859
47860ice_have_recvfrom=no
47861for ac_func in recvfrom
47862do :
47863  ac_fn_c_check_func "$LINENO" "recvfrom" "ac_cv_func_recvfrom"
47864if test "x$ac_cv_func_recvfrom" = xyes; then :
47865  cat >>confdefs.h <<_ACEOF
47866#define HAVE_RECVFROM 1
47867_ACEOF
47868 ice_have_recvfrom=yes
47869fi
47870done
47871
47872if test "${ice_have_recvfrom}" = yes; then
47873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
47874$as_echo_n "checking for recvfrom declaration in sys/types.h sys/socket.h... " >&6; }
47875if ${ice_cv_have_recvfrom_decl+:} false; then :
47876  $as_echo_n "(cached) " >&6
47877else
47878
47879ice_cv_have_recvfrom_decl=no
47880ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47881ice_re_word='(^|[^a-zA-Z0-9_])'
47882for header in sys/types.h sys/socket.h; do
47883# Check for ordinary declaration
47884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47885/* end confdefs.h.  */
47886#include <$header>
47887
47888_ACEOF
47889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47890  $EGREP "${ice_re_word}recvfrom[ 	]*\(" >/dev/null 2>&1; then :
47891  ice_cv_have_recvfrom_decl=yes
47892fi
47893rm -f conftest*
47894
47895if test "$ice_cv_have_recvfrom_decl" = yes; then
47896	break
47897fi
47898# Check for "fixed" declaration like "getpid _PARAMS((int))"
47899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47900/* end confdefs.h.  */
47901#include <$header>
47902
47903_ACEOF
47904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47905  $EGREP "${ice_re_word}recvfrom[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
47906  ice_cv_have_recvfrom_decl=yes
47907fi
47908rm -f conftest*
47909
47910if test "$ice_cv_have_recvfrom_decl" = yes; then
47911	break
47912fi
47913done
47914
47915fi
47916
47917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_recvfrom_decl" >&5
47918$as_echo "$ice_cv_have_recvfrom_decl" >&6; }
47919if test "$ice_cv_have_recvfrom_decl" = yes; then
47920
47921cat >>confdefs.h <<_ACEOF
47922#define HAVE_RECVFROM_DECL 1
47923_ACEOF
47924
47925fi
47926fi
47927
47928
47929ice_have_remove=no
47930for ac_func in remove
47931do :
47932  ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
47933if test "x$ac_cv_func_remove" = xyes; then :
47934  cat >>confdefs.h <<_ACEOF
47935#define HAVE_REMOVE 1
47936_ACEOF
47937 ice_have_remove=yes
47938fi
47939done
47940
47941if test "${ice_have_remove}" = yes; then
47942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove declaration in stdio.h" >&5
47943$as_echo_n "checking for remove declaration in stdio.h... " >&6; }
47944if ${ice_cv_have_remove_decl+:} false; then :
47945  $as_echo_n "(cached) " >&6
47946else
47947
47948ice_cv_have_remove_decl=no
47949ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47950ice_re_word='(^|[^a-zA-Z0-9_])'
47951for header in stdio.h; do
47952# Check for ordinary declaration
47953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47954/* end confdefs.h.  */
47955#include <$header>
47956
47957_ACEOF
47958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47959  $EGREP "${ice_re_word}remove[ 	]*\(" >/dev/null 2>&1; then :
47960  ice_cv_have_remove_decl=yes
47961fi
47962rm -f conftest*
47963
47964if test "$ice_cv_have_remove_decl" = yes; then
47965	break
47966fi
47967# Check for "fixed" declaration like "getpid _PARAMS((int))"
47968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47969/* end confdefs.h.  */
47970#include <$header>
47971
47972_ACEOF
47973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47974  $EGREP "${ice_re_word}remove[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
47975  ice_cv_have_remove_decl=yes
47976fi
47977rm -f conftest*
47978
47979if test "$ice_cv_have_remove_decl" = yes; then
47980	break
47981fi
47982done
47983
47984fi
47985
47986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_remove_decl" >&5
47987$as_echo "$ice_cv_have_remove_decl" >&6; }
47988if test "$ice_cv_have_remove_decl" = yes; then
47989
47990cat >>confdefs.h <<_ACEOF
47991#define HAVE_REMOVE_DECL 1
47992_ACEOF
47993
47994fi
47995fi
47996
47997
47998ice_have_rename=no
47999for ac_func in rename
48000do :
48001  ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename"
48002if test "x$ac_cv_func_rename" = xyes; then :
48003  cat >>confdefs.h <<_ACEOF
48004#define HAVE_RENAME 1
48005_ACEOF
48006 ice_have_rename=yes
48007fi
48008done
48009
48010if test "${ice_have_rename}" = yes; then
48011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename declaration in stdio.h" >&5
48012$as_echo_n "checking for rename declaration in stdio.h... " >&6; }
48013if ${ice_cv_have_rename_decl+:} false; then :
48014  $as_echo_n "(cached) " >&6
48015else
48016
48017ice_cv_have_rename_decl=no
48018ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48019ice_re_word='(^|[^a-zA-Z0-9_])'
48020for header in stdio.h; do
48021# Check for ordinary declaration
48022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48023/* end confdefs.h.  */
48024#include <$header>
48025
48026_ACEOF
48027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48028  $EGREP "${ice_re_word}rename[ 	]*\(" >/dev/null 2>&1; then :
48029  ice_cv_have_rename_decl=yes
48030fi
48031rm -f conftest*
48032
48033if test "$ice_cv_have_rename_decl" = yes; then
48034	break
48035fi
48036# Check for "fixed" declaration like "getpid _PARAMS((int))"
48037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48038/* end confdefs.h.  */
48039#include <$header>
48040
48041_ACEOF
48042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48043  $EGREP "${ice_re_word}rename[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
48044  ice_cv_have_rename_decl=yes
48045fi
48046rm -f conftest*
48047
48048if test "$ice_cv_have_rename_decl" = yes; then
48049	break
48050fi
48051done
48052
48053fi
48054
48055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_rename_decl" >&5
48056$as_echo "$ice_cv_have_rename_decl" >&6; }
48057if test "$ice_cv_have_rename_decl" = yes; then
48058
48059cat >>confdefs.h <<_ACEOF
48060#define HAVE_RENAME_DECL 1
48061_ACEOF
48062
48063fi
48064fi
48065
48066
48067ice_have_rewind=no
48068for ac_func in rewind
48069do :
48070  ac_fn_c_check_func "$LINENO" "rewind" "ac_cv_func_rewind"
48071if test "x$ac_cv_func_rewind" = xyes; then :
48072  cat >>confdefs.h <<_ACEOF
48073#define HAVE_REWIND 1
48074_ACEOF
48075 ice_have_rewind=yes
48076fi
48077done
48078
48079if test "${ice_have_rewind}" = yes; then
48080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rewind declaration in stdio.h" >&5
48081$as_echo_n "checking for rewind declaration in stdio.h... " >&6; }
48082if ${ice_cv_have_rewind_decl+:} false; then :
48083  $as_echo_n "(cached) " >&6
48084else
48085
48086ice_cv_have_rewind_decl=no
48087ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48088ice_re_word='(^|[^a-zA-Z0-9_])'
48089for header in stdio.h; do
48090# Check for ordinary declaration
48091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48092/* end confdefs.h.  */
48093#include <$header>
48094
48095_ACEOF
48096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48097  $EGREP "${ice_re_word}rewind[ 	]*\(" >/dev/null 2>&1; then :
48098  ice_cv_have_rewind_decl=yes
48099fi
48100rm -f conftest*
48101
48102if test "$ice_cv_have_rewind_decl" = yes; then
48103	break
48104fi
48105# Check for "fixed" declaration like "getpid _PARAMS((int))"
48106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48107/* end confdefs.h.  */
48108#include <$header>
48109
48110_ACEOF
48111if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48112  $EGREP "${ice_re_word}rewind[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
48113  ice_cv_have_rewind_decl=yes
48114fi
48115rm -f conftest*
48116
48117if test "$ice_cv_have_rewind_decl" = yes; then
48118	break
48119fi
48120done
48121
48122fi
48123
48124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_rewind_decl" >&5
48125$as_echo "$ice_cv_have_rewind_decl" >&6; }
48126if test "$ice_cv_have_rewind_decl" = yes; then
48127
48128cat >>confdefs.h <<_ACEOF
48129#define HAVE_REWIND_DECL 1
48130_ACEOF
48131
48132fi
48133fi
48134
48135
48136ice_have_ruserok=no
48137for ac_func in ruserok
48138do :
48139  ac_fn_c_check_func "$LINENO" "ruserok" "ac_cv_func_ruserok"
48140if test "x$ac_cv_func_ruserok" = xyes; then :
48141  cat >>confdefs.h <<_ACEOF
48142#define HAVE_RUSEROK 1
48143_ACEOF
48144 ice_have_ruserok=yes
48145fi
48146done
48147
48148if test "${ice_have_ruserok}" = yes; then
48149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
48150$as_echo_n "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... " >&6; }
48151if ${ice_cv_have_ruserok_decl+:} false; then :
48152  $as_echo_n "(cached) " >&6
48153else
48154
48155ice_cv_have_ruserok_decl=no
48156ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48157ice_re_word='(^|[^a-zA-Z0-9_])'
48158for header in netdb.h sys/socket.h libc.h unistd.h; do
48159# Check for ordinary declaration
48160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48161/* end confdefs.h.  */
48162#include <$header>
48163
48164_ACEOF
48165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48166  $EGREP "${ice_re_word}ruserok[ 	]*\(" >/dev/null 2>&1; then :
48167  ice_cv_have_ruserok_decl=yes
48168fi
48169rm -f conftest*
48170
48171if test "$ice_cv_have_ruserok_decl" = yes; then
48172	break
48173fi
48174# Check for "fixed" declaration like "getpid _PARAMS((int))"
48175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48176/* end confdefs.h.  */
48177#include <$header>
48178
48179_ACEOF
48180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48181  $EGREP "${ice_re_word}ruserok[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
48182  ice_cv_have_ruserok_decl=yes
48183fi
48184rm -f conftest*
48185
48186if test "$ice_cv_have_ruserok_decl" = yes; then
48187	break
48188fi
48189done
48190
48191fi
48192
48193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ruserok_decl" >&5
48194$as_echo "$ice_cv_have_ruserok_decl" >&6; }
48195if test "$ice_cv_have_ruserok_decl" = yes; then
48196
48197cat >>confdefs.h <<_ACEOF
48198#define HAVE_RUSEROK_DECL 1
48199_ACEOF
48200
48201fi
48202fi
48203
48204
48205ice_have_select=no
48206for ac_func in select
48207do :
48208  ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
48209if test "x$ac_cv_func_select" = xyes; then :
48210  cat >>confdefs.h <<_ACEOF
48211#define HAVE_SELECT 1
48212_ACEOF
48213 ice_have_select=yes
48214fi
48215done
48216
48217if test "${ice_have_select}" = yes; then
48218{ $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
48219$as_echo_n "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... " >&6; }
48220if ${ice_cv_have_select_decl+:} false; then :
48221  $as_echo_n "(cached) " >&6
48222else
48223
48224ice_cv_have_select_decl=no
48225ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48226ice_re_word='(^|[^a-zA-Z0-9_])'
48227for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
48228# Check for ordinary declaration
48229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48230/* end confdefs.h.  */
48231#include <$header>
48232
48233_ACEOF
48234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48235  $EGREP "${ice_re_word}select[ 	]*\(" >/dev/null 2>&1; then :
48236  ice_cv_have_select_decl=yes
48237fi
48238rm -f conftest*
48239
48240if test "$ice_cv_have_select_decl" = yes; then
48241	break
48242fi
48243# Check for "fixed" declaration like "getpid _PARAMS((int))"
48244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48245/* end confdefs.h.  */
48246#include <$header>
48247
48248_ACEOF
48249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48250  $EGREP "${ice_re_word}select[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
48251  ice_cv_have_select_decl=yes
48252fi
48253rm -f conftest*
48254
48255if test "$ice_cv_have_select_decl" = yes; then
48256	break
48257fi
48258done
48259
48260fi
48261
48262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_select_decl" >&5
48263$as_echo "$ice_cv_have_select_decl" >&6; }
48264if test "$ice_cv_have_select_decl" = yes; then
48265
48266cat >>confdefs.h <<_ACEOF
48267#define HAVE_SELECT_DECL 1
48268_ACEOF
48269
48270fi
48271fi
48272
48273
48274
48275	for ac_header in sys/time.h \
48276	    sys/types.h \
48277	    sys/select.h \
48278	    sys/socket.h \
48279	    unistd.h \
48280
48281do :
48282  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
48283ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
48284if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
48285  cat >>confdefs.h <<_ACEOF
48286#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
48287_ACEOF
48288
48289fi
48290
48291done
48292
48293
48294	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for select() argument type" >&5
48295$as_echo_n "checking for select() argument type... " >&6; }
48296if ${amanda_cv_select_arg_type+:} false; then :
48297  $as_echo_n "(cached) " >&6
48298else
48299
48300		rm -f conftest.c
48301		cat <<EOF >conftest.$ac_ext
48302#include "confdefs.h"
48303#ifdef TIME_WITH_SYS_TIME
48304#  include <sys/time.h>
48305#  include <time.h>
48306#else
48307#  ifdef HAVE_SYS_TIME_H
48308#    include <sys/time.h>
48309#  else
48310#    include <time.h>
48311#  endif
48312#endif
48313#ifdef HAVE_SYS_TYPES_H
48314# include <sys/types.h>
48315#endif
48316#ifdef HAVE_SYS_SELECT_H
48317#  include <sys/select.h>
48318#endif
48319#ifdef HAVE_SYS_SOCKET_H
48320#  include <sys/socket.h>
48321#endif
48322#ifdef HAVE_UNISTD_H
48323# include <unistd.h>
48324#endif
48325
48326int main()
48327{
48328#ifdef FD_SET_POINTER
48329	(void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
48330#else
48331	(void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
48332#endif
48333	return 0;
48334}
48335EOF
48336
48337		# Figure out the select argument type by first trying to
48338		# compile with the fd_set argument.  If the compile fails,
48339		# then we know to use the int.  If it suceeds, then try to
48340		# use the int.  If the int fails, then use fd_set.  If
48341		# both suceeed, then do a line count on the number of
48342		# lines that the compiler spit out, assuming that the
48343		# compile outputing more lines had more errors.
48344		amanda_cv_select_arg_type=no
48345		select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
48346		$select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
48347		if test $? -ne 0; then
48348		    amanda_cv_select_arg_type=int
48349		fi
48350		if test "$amanda_cv_select_arg_type" = no; then
48351		    $select_compile conftest.$ac_ext 1>conftest.int 2>&1
48352		    if test $? -ne 0; then
48353			amanda_cv_select_arg_type=fd_set
48354		    fi
48355		fi
48356		if test "$amanda_cv_select_arg_type" = no; then
48357		    wc_fdset=`wc -l <conftest.fd_set`
48358		    wc_int=`wc -l <conftest.int`
48359		    if test "$wc_fdset" -le "$wc_int"; then
48360			amanda_cv_select_arg_type=fd_set
48361		    else
48362			amanda_cv_select_arg_type=int
48363		    fi
48364		fi
48365		rm -f conftest*
48366
48367
48368fi
48369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_select_arg_type" >&5
48370$as_echo "$amanda_cv_select_arg_type" >&6; }
48371
48372cat >>confdefs.h <<_ACEOF
48373#define SELECT_ARG_TYPE $amanda_cv_select_arg_type
48374_ACEOF
48375
48376
48377
48378
48379ice_have_sendto=no
48380for ac_func in sendto
48381do :
48382  ac_fn_c_check_func "$LINENO" "sendto" "ac_cv_func_sendto"
48383if test "x$ac_cv_func_sendto" = xyes; then :
48384  cat >>confdefs.h <<_ACEOF
48385#define HAVE_SENDTO 1
48386_ACEOF
48387 ice_have_sendto=yes
48388fi
48389done
48390
48391if test "${ice_have_sendto}" = yes; then
48392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendto declaration in sys/types.h sys/socket.h" >&5
48393$as_echo_n "checking for sendto declaration in sys/types.h sys/socket.h... " >&6; }
48394if ${ice_cv_have_sendto_decl+:} false; then :
48395  $as_echo_n "(cached) " >&6
48396else
48397
48398ice_cv_have_sendto_decl=no
48399ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48400ice_re_word='(^|[^a-zA-Z0-9_])'
48401for header in sys/types.h sys/socket.h; do
48402# Check for ordinary declaration
48403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48404/* end confdefs.h.  */
48405#include <$header>
48406
48407_ACEOF
48408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48409  $EGREP "${ice_re_word}sendto[ 	]*\(" >/dev/null 2>&1; then :
48410  ice_cv_have_sendto_decl=yes
48411fi
48412rm -f conftest*
48413
48414if test "$ice_cv_have_sendto_decl" = yes; then
48415	break
48416fi
48417# Check for "fixed" declaration like "getpid _PARAMS((int))"
48418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48419/* end confdefs.h.  */
48420#include <$header>
48421
48422_ACEOF
48423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48424  $EGREP "${ice_re_word}sendto[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
48425  ice_cv_have_sendto_decl=yes
48426fi
48427rm -f conftest*
48428
48429if test "$ice_cv_have_sendto_decl" = yes; then
48430	break
48431fi
48432done
48433
48434fi
48435
48436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_sendto_decl" >&5
48437$as_echo "$ice_cv_have_sendto_decl" >&6; }
48438if test "$ice_cv_have_sendto_decl" = yes; then
48439
48440cat >>confdefs.h <<_ACEOF
48441#define HAVE_SENDTO_DECL 1
48442_ACEOF
48443
48444fi
48445fi
48446
48447
48448ice_have_setegid=no
48449for ac_func in setegid
48450do :
48451  ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
48452if test "x$ac_cv_func_setegid" = xyes; then :
48453  cat >>confdefs.h <<_ACEOF
48454#define HAVE_SETEGID 1
48455_ACEOF
48456 ice_have_setegid=yes
48457fi
48458done
48459
48460if test "${ice_have_setegid}" = yes; then
48461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setegid declaration in unistd.h" >&5
48462$as_echo_n "checking for setegid declaration in unistd.h... " >&6; }
48463if ${ice_cv_have_setegid_decl+:} false; then :
48464  $as_echo_n "(cached) " >&6
48465else
48466
48467ice_cv_have_setegid_decl=no
48468ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48469ice_re_word='(^|[^a-zA-Z0-9_])'
48470for header in unistd.h; do
48471# Check for ordinary declaration
48472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48473/* end confdefs.h.  */
48474#include <$header>
48475
48476_ACEOF
48477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48478  $EGREP "${ice_re_word}setegid[ 	]*\(" >/dev/null 2>&1; then :
48479  ice_cv_have_setegid_decl=yes
48480fi
48481rm -f conftest*
48482
48483if test "$ice_cv_have_setegid_decl" = yes; then
48484	break
48485fi
48486# Check for "fixed" declaration like "getpid _PARAMS((int))"
48487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48488/* end confdefs.h.  */
48489#include <$header>
48490
48491_ACEOF
48492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48493  $EGREP "${ice_re_word}setegid[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
48494  ice_cv_have_setegid_decl=yes
48495fi
48496rm -f conftest*
48497
48498if test "$ice_cv_have_setegid_decl" = yes; then
48499	break
48500fi
48501done
48502
48503fi
48504
48505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setegid_decl" >&5
48506$as_echo "$ice_cv_have_setegid_decl" >&6; }
48507if test "$ice_cv_have_setegid_decl" = yes; then
48508
48509cat >>confdefs.h <<_ACEOF
48510#define HAVE_SETEGID_DECL 1
48511_ACEOF
48512
48513fi
48514fi
48515
48516
48517ice_have_seteuid=no
48518for ac_func in seteuid
48519do :
48520  ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
48521if test "x$ac_cv_func_seteuid" = xyes; then :
48522  cat >>confdefs.h <<_ACEOF
48523#define HAVE_SETEUID 1
48524_ACEOF
48525 ice_have_seteuid=yes
48526fi
48527done
48528
48529if test "${ice_have_seteuid}" = yes; then
48530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for seteuid declaration in unistd.h" >&5
48531$as_echo_n "checking for seteuid declaration in unistd.h... " >&6; }
48532if ${ice_cv_have_seteuid_decl+:} false; then :
48533  $as_echo_n "(cached) " >&6
48534else
48535
48536ice_cv_have_seteuid_decl=no
48537ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48538ice_re_word='(^|[^a-zA-Z0-9_])'
48539for header in unistd.h; do
48540# Check for ordinary declaration
48541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48542/* end confdefs.h.  */
48543#include <$header>
48544
48545_ACEOF
48546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48547  $EGREP "${ice_re_word}seteuid[ 	]*\(" >/dev/null 2>&1; then :
48548  ice_cv_have_seteuid_decl=yes
48549fi
48550rm -f conftest*
48551
48552if test "$ice_cv_have_seteuid_decl" = yes; then
48553	break
48554fi
48555# Check for "fixed" declaration like "getpid _PARAMS((int))"
48556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48557/* end confdefs.h.  */
48558#include <$header>
48559
48560_ACEOF
48561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48562  $EGREP "${ice_re_word}seteuid[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
48563  ice_cv_have_seteuid_decl=yes
48564fi
48565rm -f conftest*
48566
48567if test "$ice_cv_have_seteuid_decl" = yes; then
48568	break
48569fi
48570done
48571
48572fi
48573
48574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_seteuid_decl" >&5
48575$as_echo "$ice_cv_have_seteuid_decl" >&6; }
48576if test "$ice_cv_have_seteuid_decl" = yes; then
48577
48578cat >>confdefs.h <<_ACEOF
48579#define HAVE_SETEUID_DECL 1
48580_ACEOF
48581
48582fi
48583fi
48584
48585
48586ice_have_setresgid=no
48587for ac_func in setresgid
48588do :
48589  ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
48590if test "x$ac_cv_func_setresgid" = xyes; then :
48591  cat >>confdefs.h <<_ACEOF
48592#define HAVE_SETRESGID 1
48593_ACEOF
48594 ice_have_setresgid=yes
48595fi
48596done
48597
48598if test "${ice_have_setresgid}" = yes; then
48599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setresgid declaration in unistd.h" >&5
48600$as_echo_n "checking for setresgid declaration in unistd.h... " >&6; }
48601if ${ice_cv_have_setresgid_decl+:} false; then :
48602  $as_echo_n "(cached) " >&6
48603else
48604
48605ice_cv_have_setresgid_decl=no
48606ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48607ice_re_word='(^|[^a-zA-Z0-9_])'
48608for header in unistd.h; do
48609# Check for ordinary declaration
48610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48611/* end confdefs.h.  */
48612#include <$header>
48613
48614_ACEOF
48615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48616  $EGREP "${ice_re_word}setresgid[ 	]*\(" >/dev/null 2>&1; then :
48617  ice_cv_have_setresgid_decl=yes
48618fi
48619rm -f conftest*
48620
48621if test "$ice_cv_have_setresgid_decl" = yes; then
48622	break
48623fi
48624# Check for "fixed" declaration like "getpid _PARAMS((int))"
48625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48626/* end confdefs.h.  */
48627#include <$header>
48628
48629_ACEOF
48630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48631  $EGREP "${ice_re_word}setresgid[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
48632  ice_cv_have_setresgid_decl=yes
48633fi
48634rm -f conftest*
48635
48636if test "$ice_cv_have_setresgid_decl" = yes; then
48637	break
48638fi
48639done
48640
48641fi
48642
48643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setresgid_decl" >&5
48644$as_echo "$ice_cv_have_setresgid_decl" >&6; }
48645if test "$ice_cv_have_setresgid_decl" = yes; then
48646
48647cat >>confdefs.h <<_ACEOF
48648#define HAVE_SETRESGID_DECL 1
48649_ACEOF
48650
48651fi
48652fi
48653
48654
48655ice_have_setresuid=no
48656for ac_func in setresuid
48657do :
48658  ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
48659if test "x$ac_cv_func_setresuid" = xyes; then :
48660  cat >>confdefs.h <<_ACEOF
48661#define HAVE_SETRESUID 1
48662_ACEOF
48663 ice_have_setresuid=yes
48664fi
48665done
48666
48667if test "${ice_have_setresuid}" = yes; then
48668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setresuid declaration in unistd.h" >&5
48669$as_echo_n "checking for setresuid declaration in unistd.h... " >&6; }
48670if ${ice_cv_have_setresuid_decl+:} false; then :
48671  $as_echo_n "(cached) " >&6
48672else
48673
48674ice_cv_have_setresuid_decl=no
48675ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48676ice_re_word='(^|[^a-zA-Z0-9_])'
48677for header in unistd.h; do
48678# Check for ordinary declaration
48679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48680/* end confdefs.h.  */
48681#include <$header>
48682
48683_ACEOF
48684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48685  $EGREP "${ice_re_word}setresuid[ 	]*\(" >/dev/null 2>&1; then :
48686  ice_cv_have_setresuid_decl=yes
48687fi
48688rm -f conftest*
48689
48690if test "$ice_cv_have_setresuid_decl" = yes; then
48691	break
48692fi
48693# Check for "fixed" declaration like "getpid _PARAMS((int))"
48694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48695/* end confdefs.h.  */
48696#include <$header>
48697
48698_ACEOF
48699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48700  $EGREP "${ice_re_word}setresuid[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
48701  ice_cv_have_setresuid_decl=yes
48702fi
48703rm -f conftest*
48704
48705if test "$ice_cv_have_setresuid_decl" = yes; then
48706	break
48707fi
48708done
48709
48710fi
48711
48712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setresuid_decl" >&5
48713$as_echo "$ice_cv_have_setresuid_decl" >&6; }
48714if test "$ice_cv_have_setresuid_decl" = yes; then
48715
48716cat >>confdefs.h <<_ACEOF
48717#define HAVE_SETRESUID_DECL 1
48718_ACEOF
48719
48720fi
48721fi
48722
48723
48724ice_have_snprintf=no
48725for ac_func in snprintf
48726do :
48727  ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
48728if test "x$ac_cv_func_snprintf" = xyes; then :
48729  cat >>confdefs.h <<_ACEOF
48730#define HAVE_SNPRINTF 1
48731_ACEOF
48732 ice_have_snprintf=yes
48733fi
48734done
48735
48736if test "${ice_have_snprintf}" = yes; then
48737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for snprintf declaration in stdio.h" >&5
48738$as_echo_n "checking for snprintf declaration in stdio.h... " >&6; }
48739if ${ice_cv_have_snprintf_decl+:} false; then :
48740  $as_echo_n "(cached) " >&6
48741else
48742
48743ice_cv_have_snprintf_decl=no
48744ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48745ice_re_word='(^|[^a-zA-Z0-9_])'
48746for header in stdio.h; do
48747# Check for ordinary declaration
48748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48749/* end confdefs.h.  */
48750#include <$header>
48751
48752_ACEOF
48753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48754  $EGREP "${ice_re_word}snprintf[ 	]*\(" >/dev/null 2>&1; then :
48755  ice_cv_have_snprintf_decl=yes
48756fi
48757rm -f conftest*
48758
48759if test "$ice_cv_have_snprintf_decl" = yes; then
48760	break
48761fi
48762# Check for "fixed" declaration like "getpid _PARAMS((int))"
48763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48764/* end confdefs.h.  */
48765#include <$header>
48766
48767_ACEOF
48768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48769  $EGREP "${ice_re_word}snprintf[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
48770  ice_cv_have_snprintf_decl=yes
48771fi
48772rm -f conftest*
48773
48774if test "$ice_cv_have_snprintf_decl" = yes; then
48775	break
48776fi
48777done
48778
48779fi
48780
48781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_snprintf_decl" >&5
48782$as_echo "$ice_cv_have_snprintf_decl" >&6; }
48783if test "$ice_cv_have_snprintf_decl" = yes; then
48784
48785cat >>confdefs.h <<_ACEOF
48786#define HAVE_SNPRINTF_DECL 1
48787_ACEOF
48788
48789fi
48790fi
48791
48792
48793ice_have_vsnprintf=no
48794for ac_func in vsnprintf
48795do :
48796  ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
48797if test "x$ac_cv_func_vsnprintf" = xyes; then :
48798  cat >>confdefs.h <<_ACEOF
48799#define HAVE_VSNPRINTF 1
48800_ACEOF
48801 ice_have_vsnprintf=yes
48802fi
48803done
48804
48805if test "${ice_have_vsnprintf}" = yes; then
48806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vsnprintf declaration in stdio.h" >&5
48807$as_echo_n "checking for vsnprintf declaration in stdio.h... " >&6; }
48808if ${ice_cv_have_vsnprintf_decl+:} false; then :
48809  $as_echo_n "(cached) " >&6
48810else
48811
48812ice_cv_have_vsnprintf_decl=no
48813ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48814ice_re_word='(^|[^a-zA-Z0-9_])'
48815for header in stdio.h; do
48816# Check for ordinary declaration
48817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48818/* end confdefs.h.  */
48819#include <$header>
48820
48821_ACEOF
48822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48823  $EGREP "${ice_re_word}vsnprintf[ 	]*\(" >/dev/null 2>&1; then :
48824  ice_cv_have_vsnprintf_decl=yes
48825fi
48826rm -f conftest*
48827
48828if test "$ice_cv_have_vsnprintf_decl" = yes; then
48829	break
48830fi
48831# Check for "fixed" declaration like "getpid _PARAMS((int))"
48832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48833/* end confdefs.h.  */
48834#include <$header>
48835
48836_ACEOF
48837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48838  $EGREP "${ice_re_word}vsnprintf[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
48839  ice_cv_have_vsnprintf_decl=yes
48840fi
48841rm -f conftest*
48842
48843if test "$ice_cv_have_vsnprintf_decl" = yes; then
48844	break
48845fi
48846done
48847
48848fi
48849
48850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vsnprintf_decl" >&5
48851$as_echo "$ice_cv_have_vsnprintf_decl" >&6; }
48852if test "$ice_cv_have_vsnprintf_decl" = yes; then
48853
48854cat >>confdefs.h <<_ACEOF
48855#define HAVE_VSNPRINTF_DECL 1
48856_ACEOF
48857
48858fi
48859fi
48860
48861
48862    ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
48863if test "x$ac_cv_func_setpgid" = xyes; then :
48864
48865
48866$as_echo "#define HAVE_SETPGID 1" >>confdefs.h
48867
48868
48869ice_have_setpgid=no
48870for ac_func in setpgid
48871do :
48872  ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
48873if test "x$ac_cv_func_setpgid" = xyes; then :
48874  cat >>confdefs.h <<_ACEOF
48875#define HAVE_SETPGID 1
48876_ACEOF
48877 ice_have_setpgid=yes
48878fi
48879done
48880
48881if test "${ice_have_setpgid}" = yes; then
48882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setpgid declaration in sys/types.h unistd.h" >&5
48883$as_echo_n "checking for setpgid declaration in sys/types.h unistd.h... " >&6; }
48884if ${ice_cv_have_setpgid_decl+:} false; then :
48885  $as_echo_n "(cached) " >&6
48886else
48887
48888ice_cv_have_setpgid_decl=no
48889ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48890ice_re_word='(^|[^a-zA-Z0-9_])'
48891for header in sys/types.h unistd.h; do
48892# Check for ordinary declaration
48893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48894/* end confdefs.h.  */
48895#include <$header>
48896
48897_ACEOF
48898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48899  $EGREP "${ice_re_word}setpgid[ 	]*\(" >/dev/null 2>&1; then :
48900  ice_cv_have_setpgid_decl=yes
48901fi
48902rm -f conftest*
48903
48904if test "$ice_cv_have_setpgid_decl" = yes; then
48905	break
48906fi
48907# Check for "fixed" declaration like "getpid _PARAMS((int))"
48908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48909/* end confdefs.h.  */
48910#include <$header>
48911
48912_ACEOF
48913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48914  $EGREP "${ice_re_word}setpgid[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
48915  ice_cv_have_setpgid_decl=yes
48916fi
48917rm -f conftest*
48918
48919if test "$ice_cv_have_setpgid_decl" = yes; then
48920	break
48921fi
48922done
48923
48924fi
48925
48926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setpgid_decl" >&5
48927$as_echo "$ice_cv_have_setpgid_decl" >&6; }
48928if test "$ice_cv_have_setpgid_decl" = yes; then
48929
48930cat >>confdefs.h <<_ACEOF
48931#define HAVE_SETPGID_DECL 1
48932_ACEOF
48933
48934fi
48935fi
48936
48937
48938fi
48939
48940
48941ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
48942if test "x$ac_cv_func_setpgrp" = xyes; then :
48943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
48944$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
48945if ${ac_cv_func_setpgrp_void+:} false; then :
48946  $as_echo_n "(cached) " >&6
48947else
48948  if test "$cross_compiling" = yes; then :
48949  as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
48950else
48951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48952/* end confdefs.h.  */
48953$ac_includes_default
48954int
48955main ()
48956{
48957/* If this system has a BSD-style setpgrp which takes arguments,
48958  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
48959  exit successfully. */
48960  return setpgrp (1,1) != -1;
48961  ;
48962  return 0;
48963}
48964_ACEOF
48965if ac_fn_c_try_run "$LINENO"; then :
48966  ac_cv_func_setpgrp_void=no
48967else
48968  ac_cv_func_setpgrp_void=yes
48969fi
48970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48971  conftest.$ac_objext conftest.beam conftest.$ac_ext
48972fi
48973
48974fi
48975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
48976$as_echo "$ac_cv_func_setpgrp_void" >&6; }
48977if test $ac_cv_func_setpgrp_void = yes; then
48978
48979$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
48980
48981fi
48982
48983fi
48984
48985
48986ice_have_setpgrp=no
48987for ac_func in setpgrp
48988do :
48989  ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
48990if test "x$ac_cv_func_setpgrp" = xyes; then :
48991  cat >>confdefs.h <<_ACEOF
48992#define HAVE_SETPGRP 1
48993_ACEOF
48994 ice_have_setpgrp=yes
48995fi
48996done
48997
48998if test "${ice_have_setpgrp}" = yes; then
48999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
49000$as_echo_n "checking for setpgrp declaration in sys/types.h unistd.h libc.h... " >&6; }
49001if ${ice_cv_have_setpgrp_decl+:} false; then :
49002  $as_echo_n "(cached) " >&6
49003else
49004
49005ice_cv_have_setpgrp_decl=no
49006ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49007ice_re_word='(^|[^a-zA-Z0-9_])'
49008for header in sys/types.h unistd.h libc.h; do
49009# Check for ordinary declaration
49010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49011/* end confdefs.h.  */
49012#include <$header>
49013
49014_ACEOF
49015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49016  $EGREP "${ice_re_word}setpgrp[ 	]*\(" >/dev/null 2>&1; then :
49017  ice_cv_have_setpgrp_decl=yes
49018fi
49019rm -f conftest*
49020
49021if test "$ice_cv_have_setpgrp_decl" = yes; then
49022	break
49023fi
49024# Check for "fixed" declaration like "getpid _PARAMS((int))"
49025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49026/* end confdefs.h.  */
49027#include <$header>
49028
49029_ACEOF
49030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49031  $EGREP "${ice_re_word}setpgrp[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
49032  ice_cv_have_setpgrp_decl=yes
49033fi
49034rm -f conftest*
49035
49036if test "$ice_cv_have_setpgrp_decl" = yes; then
49037	break
49038fi
49039done
49040
49041fi
49042
49043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setpgrp_decl" >&5
49044$as_echo "$ice_cv_have_setpgrp_decl" >&6; }
49045if test "$ice_cv_have_setpgrp_decl" = yes; then
49046
49047cat >>confdefs.h <<_ACEOF
49048#define HAVE_SETPGRP_DECL 1
49049_ACEOF
49050
49051fi
49052fi
49053
49054
49055ice_have_setsockopt=no
49056for ac_func in setsockopt
49057do :
49058  ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
49059if test "x$ac_cv_func_setsockopt" = xyes; then :
49060  cat >>confdefs.h <<_ACEOF
49061#define HAVE_SETSOCKOPT 1
49062_ACEOF
49063 ice_have_setsockopt=yes
49064fi
49065done
49066
49067if test "${ice_have_setsockopt}" = yes; then
49068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
49069$as_echo_n "checking for setsockopt declaration in sys/types.h sys/socket.h... " >&6; }
49070if ${ice_cv_have_setsockopt_decl+:} false; then :
49071  $as_echo_n "(cached) " >&6
49072else
49073
49074ice_cv_have_setsockopt_decl=no
49075ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49076ice_re_word='(^|[^a-zA-Z0-9_])'
49077for header in sys/types.h sys/socket.h; do
49078# Check for ordinary declaration
49079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49080/* end confdefs.h.  */
49081#include <$header>
49082
49083_ACEOF
49084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49085  $EGREP "${ice_re_word}setsockopt[ 	]*\(" >/dev/null 2>&1; then :
49086  ice_cv_have_setsockopt_decl=yes
49087fi
49088rm -f conftest*
49089
49090if test "$ice_cv_have_setsockopt_decl" = yes; then
49091	break
49092fi
49093# Check for "fixed" declaration like "getpid _PARAMS((int))"
49094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49095/* end confdefs.h.  */
49096#include <$header>
49097
49098_ACEOF
49099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49100  $EGREP "${ice_re_word}setsockopt[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
49101  ice_cv_have_setsockopt_decl=yes
49102fi
49103rm -f conftest*
49104
49105if test "$ice_cv_have_setsockopt_decl" = yes; then
49106	break
49107fi
49108done
49109
49110fi
49111
49112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setsockopt_decl" >&5
49113$as_echo "$ice_cv_have_setsockopt_decl" >&6; }
49114if test "$ice_cv_have_setsockopt_decl" = yes; then
49115
49116cat >>confdefs.h <<_ACEOF
49117#define HAVE_SETSOCKOPT_DECL 1
49118_ACEOF
49119
49120fi
49121fi
49122
49123for ac_func in sigaction sigemptyset sigvec
49124do :
49125  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49126ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
49127if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
49128  cat >>confdefs.h <<_ACEOF
49129#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
49130_ACEOF
49131
49132fi
49133done
49134
49135
49136ice_have_socket=no
49137for ac_func in socket
49138do :
49139  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
49140if test "x$ac_cv_func_socket" = xyes; then :
49141  cat >>confdefs.h <<_ACEOF
49142#define HAVE_SOCKET 1
49143_ACEOF
49144 ice_have_socket=yes
49145fi
49146done
49147
49148if test "${ice_have_socket}" = yes; then
49149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket declaration in sys/types.h sys/socket.h" >&5
49150$as_echo_n "checking for socket declaration in sys/types.h sys/socket.h... " >&6; }
49151if ${ice_cv_have_socket_decl+:} false; then :
49152  $as_echo_n "(cached) " >&6
49153else
49154
49155ice_cv_have_socket_decl=no
49156ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49157ice_re_word='(^|[^a-zA-Z0-9_])'
49158for header in sys/types.h sys/socket.h; do
49159# Check for ordinary declaration
49160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49161/* end confdefs.h.  */
49162#include <$header>
49163
49164_ACEOF
49165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49166  $EGREP "${ice_re_word}socket[ 	]*\(" >/dev/null 2>&1; then :
49167  ice_cv_have_socket_decl=yes
49168fi
49169rm -f conftest*
49170
49171if test "$ice_cv_have_socket_decl" = yes; then
49172	break
49173fi
49174# Check for "fixed" declaration like "getpid _PARAMS((int))"
49175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49176/* end confdefs.h.  */
49177#include <$header>
49178
49179_ACEOF
49180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49181  $EGREP "${ice_re_word}socket[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
49182  ice_cv_have_socket_decl=yes
49183fi
49184rm -f conftest*
49185
49186if test "$ice_cv_have_socket_decl" = yes; then
49187	break
49188fi
49189done
49190
49191fi
49192
49193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_socket_decl" >&5
49194$as_echo "$ice_cv_have_socket_decl" >&6; }
49195if test "$ice_cv_have_socket_decl" = yes; then
49196
49197cat >>confdefs.h <<_ACEOF
49198#define HAVE_SOCKET_DECL 1
49199_ACEOF
49200
49201fi
49202fi
49203
49204
49205ice_have_socketpair=no
49206for ac_func in socketpair
49207do :
49208  ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
49209if test "x$ac_cv_func_socketpair" = xyes; then :
49210  cat >>confdefs.h <<_ACEOF
49211#define HAVE_SOCKETPAIR 1
49212_ACEOF
49213 ice_have_socketpair=yes
49214fi
49215done
49216
49217if test "${ice_have_socketpair}" = yes; then
49218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
49219$as_echo_n "checking for socketpair declaration in sys/types.h sys/socket.h... " >&6; }
49220if ${ice_cv_have_socketpair_decl+:} false; then :
49221  $as_echo_n "(cached) " >&6
49222else
49223
49224ice_cv_have_socketpair_decl=no
49225ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49226ice_re_word='(^|[^a-zA-Z0-9_])'
49227for header in sys/types.h sys/socket.h; do
49228# Check for ordinary declaration
49229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49230/* end confdefs.h.  */
49231#include <$header>
49232
49233_ACEOF
49234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49235  $EGREP "${ice_re_word}socketpair[ 	]*\(" >/dev/null 2>&1; then :
49236  ice_cv_have_socketpair_decl=yes
49237fi
49238rm -f conftest*
49239
49240if test "$ice_cv_have_socketpair_decl" = yes; then
49241	break
49242fi
49243# Check for "fixed" declaration like "getpid _PARAMS((int))"
49244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49245/* end confdefs.h.  */
49246#include <$header>
49247
49248_ACEOF
49249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49250  $EGREP "${ice_re_word}socketpair[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
49251  ice_cv_have_socketpair_decl=yes
49252fi
49253rm -f conftest*
49254
49255if test "$ice_cv_have_socketpair_decl" = yes; then
49256	break
49257fi
49258done
49259
49260fi
49261
49262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_socketpair_decl" >&5
49263$as_echo "$ice_cv_have_socketpair_decl" >&6; }
49264if test "$ice_cv_have_socketpair_decl" = yes; then
49265
49266cat >>confdefs.h <<_ACEOF
49267#define HAVE_SOCKETPAIR_DECL 1
49268_ACEOF
49269
49270fi
49271fi
49272
49273
49274ice_have_sscanf=no
49275for ac_func in sscanf
49276do :
49277  ac_fn_c_check_func "$LINENO" "sscanf" "ac_cv_func_sscanf"
49278if test "x$ac_cv_func_sscanf" = xyes; then :
49279  cat >>confdefs.h <<_ACEOF
49280#define HAVE_SSCANF 1
49281_ACEOF
49282 ice_have_sscanf=yes
49283fi
49284done
49285
49286if test "${ice_have_sscanf}" = yes; then
49287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sscanf declaration in stdio.h" >&5
49288$as_echo_n "checking for sscanf declaration in stdio.h... " >&6; }
49289if ${ice_cv_have_sscanf_decl+:} false; then :
49290  $as_echo_n "(cached) " >&6
49291else
49292
49293ice_cv_have_sscanf_decl=no
49294ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49295ice_re_word='(^|[^a-zA-Z0-9_])'
49296for header in stdio.h; do
49297# Check for ordinary declaration
49298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49299/* end confdefs.h.  */
49300#include <$header>
49301
49302_ACEOF
49303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49304  $EGREP "${ice_re_word}sscanf[ 	]*\(" >/dev/null 2>&1; then :
49305  ice_cv_have_sscanf_decl=yes
49306fi
49307rm -f conftest*
49308
49309if test "$ice_cv_have_sscanf_decl" = yes; then
49310	break
49311fi
49312# Check for "fixed" declaration like "getpid _PARAMS((int))"
49313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49314/* end confdefs.h.  */
49315#include <$header>
49316
49317_ACEOF
49318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49319  $EGREP "${ice_re_word}sscanf[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
49320  ice_cv_have_sscanf_decl=yes
49321fi
49322rm -f conftest*
49323
49324if test "$ice_cv_have_sscanf_decl" = yes; then
49325	break
49326fi
49327done
49328
49329fi
49330
49331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_sscanf_decl" >&5
49332$as_echo "$ice_cv_have_sscanf_decl" >&6; }
49333if test "$ice_cv_have_sscanf_decl" = yes; then
49334
49335cat >>confdefs.h <<_ACEOF
49336#define HAVE_SSCANF_DECL 1
49337_ACEOF
49338
49339fi
49340fi
49341
49342
49343ice_have_strerror=no
49344for ac_func in strerror
49345do :
49346  ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
49347if test "x$ac_cv_func_strerror" = xyes; then :
49348  cat >>confdefs.h <<_ACEOF
49349#define HAVE_STRERROR 1
49350_ACEOF
49351 ice_have_strerror=yes
49352fi
49353done
49354
49355if test "${ice_have_strerror}" = yes; then
49356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror declaration in string.h strings.h" >&5
49357$as_echo_n "checking for strerror declaration in string.h strings.h... " >&6; }
49358if ${ice_cv_have_strerror_decl+:} false; then :
49359  $as_echo_n "(cached) " >&6
49360else
49361
49362ice_cv_have_strerror_decl=no
49363ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49364ice_re_word='(^|[^a-zA-Z0-9_])'
49365for header in string.h strings.h; do
49366# Check for ordinary declaration
49367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49368/* end confdefs.h.  */
49369#include <$header>
49370
49371_ACEOF
49372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49373  $EGREP "${ice_re_word}strerror[ 	]*\(" >/dev/null 2>&1; then :
49374  ice_cv_have_strerror_decl=yes
49375fi
49376rm -f conftest*
49377
49378if test "$ice_cv_have_strerror_decl" = yes; then
49379	break
49380fi
49381# Check for "fixed" declaration like "getpid _PARAMS((int))"
49382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49383/* end confdefs.h.  */
49384#include <$header>
49385
49386_ACEOF
49387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49388  $EGREP "${ice_re_word}strerror[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
49389  ice_cv_have_strerror_decl=yes
49390fi
49391rm -f conftest*
49392
49393if test "$ice_cv_have_strerror_decl" = yes; then
49394	break
49395fi
49396done
49397
49398fi
49399
49400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strerror_decl" >&5
49401$as_echo "$ice_cv_have_strerror_decl" >&6; }
49402if test "$ice_cv_have_strerror_decl" = yes; then
49403
49404cat >>confdefs.h <<_ACEOF
49405#define HAVE_STRERROR_DECL 1
49406_ACEOF
49407
49408fi
49409fi
49410
49411for ac_func in strftime
49412do :
49413  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
49414if test "x$ac_cv_func_strftime" = xyes; then :
49415  cat >>confdefs.h <<_ACEOF
49416#define HAVE_STRFTIME 1
49417_ACEOF
49418
49419else
49420  # strftime is in -lintl on SCO UNIX.
49421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
49422$as_echo_n "checking for strftime in -lintl... " >&6; }
49423if ${ac_cv_lib_intl_strftime+:} false; then :
49424  $as_echo_n "(cached) " >&6
49425else
49426  ac_check_lib_save_LIBS=$LIBS
49427LIBS="-lintl  $LIBS"
49428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49429/* end confdefs.h.  */
49430
49431/* Override any GCC internal prototype to avoid an error.
49432   Use char because int might match the return type of a GCC
49433   builtin and then its argument prototype would still apply.  */
49434#ifdef __cplusplus
49435extern "C"
49436#endif
49437char strftime ();
49438int
49439main ()
49440{
49441return strftime ();
49442  ;
49443  return 0;
49444}
49445_ACEOF
49446if ac_fn_c_try_link "$LINENO"; then :
49447  ac_cv_lib_intl_strftime=yes
49448else
49449  ac_cv_lib_intl_strftime=no
49450fi
49451rm -f core conftest.err conftest.$ac_objext \
49452    conftest$ac_exeext conftest.$ac_ext
49453LIBS=$ac_check_lib_save_LIBS
49454fi
49455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
49456$as_echo "$ac_cv_lib_intl_strftime" >&6; }
49457if test "x$ac_cv_lib_intl_strftime" = xyes; then :
49458  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
49459
49460LIBS="-lintl $LIBS"
49461fi
49462
49463fi
49464done
49465
49466
49467ice_have_strftime=no
49468for ac_func in strftime
49469do :
49470  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
49471if test "x$ac_cv_func_strftime" = xyes; then :
49472  cat >>confdefs.h <<_ACEOF
49473#define HAVE_STRFTIME 1
49474_ACEOF
49475 ice_have_strftime=yes
49476fi
49477done
49478
49479if test "${ice_have_strftime}" = yes; then
49480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime declaration in time.h sys/time.h" >&5
49481$as_echo_n "checking for strftime declaration in time.h sys/time.h... " >&6; }
49482if ${ice_cv_have_strftime_decl+:} false; then :
49483  $as_echo_n "(cached) " >&6
49484else
49485
49486ice_cv_have_strftime_decl=no
49487ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49488ice_re_word='(^|[^a-zA-Z0-9_])'
49489for header in time.h sys/time.h; do
49490# Check for ordinary declaration
49491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49492/* end confdefs.h.  */
49493#include <$header>
49494
49495_ACEOF
49496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49497  $EGREP "${ice_re_word}strftime[ 	]*\(" >/dev/null 2>&1; then :
49498  ice_cv_have_strftime_decl=yes
49499fi
49500rm -f conftest*
49501
49502if test "$ice_cv_have_strftime_decl" = yes; then
49503	break
49504fi
49505# Check for "fixed" declaration like "getpid _PARAMS((int))"
49506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49507/* end confdefs.h.  */
49508#include <$header>
49509
49510_ACEOF
49511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49512  $EGREP "${ice_re_word}strftime[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
49513  ice_cv_have_strftime_decl=yes
49514fi
49515rm -f conftest*
49516
49517if test "$ice_cv_have_strftime_decl" = yes; then
49518	break
49519fi
49520done
49521
49522fi
49523
49524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strftime_decl" >&5
49525$as_echo "$ice_cv_have_strftime_decl" >&6; }
49526if test "$ice_cv_have_strftime_decl" = yes; then
49527
49528cat >>confdefs.h <<_ACEOF
49529#define HAVE_STRFTIME_DECL 1
49530_ACEOF
49531
49532fi
49533fi
49534
49535
49536ice_have_strncasecmp=no
49537for ac_func in strncasecmp
49538do :
49539  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
49540if test "x$ac_cv_func_strncasecmp" = xyes; then :
49541  cat >>confdefs.h <<_ACEOF
49542#define HAVE_STRNCASECMP 1
49543_ACEOF
49544 ice_have_strncasecmp=yes
49545fi
49546done
49547
49548if test "${ice_have_strncasecmp}" = yes; then
49549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strncasecmp declaration in string.h strings.h" >&5
49550$as_echo_n "checking for strncasecmp declaration in string.h strings.h... " >&6; }
49551if ${ice_cv_have_strncasecmp_decl+:} false; then :
49552  $as_echo_n "(cached) " >&6
49553else
49554
49555ice_cv_have_strncasecmp_decl=no
49556ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49557ice_re_word='(^|[^a-zA-Z0-9_])'
49558for header in string.h strings.h; do
49559# Check for ordinary declaration
49560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49561/* end confdefs.h.  */
49562#include <$header>
49563
49564_ACEOF
49565if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49566  $EGREP "${ice_re_word}strncasecmp[ 	]*\(" >/dev/null 2>&1; then :
49567  ice_cv_have_strncasecmp_decl=yes
49568fi
49569rm -f conftest*
49570
49571if test "$ice_cv_have_strncasecmp_decl" = yes; then
49572	break
49573fi
49574# Check for "fixed" declaration like "getpid _PARAMS((int))"
49575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49576/* end confdefs.h.  */
49577#include <$header>
49578
49579_ACEOF
49580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49581  $EGREP "${ice_re_word}strncasecmp[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
49582  ice_cv_have_strncasecmp_decl=yes
49583fi
49584rm -f conftest*
49585
49586if test "$ice_cv_have_strncasecmp_decl" = yes; then
49587	break
49588fi
49589done
49590
49591fi
49592
49593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strncasecmp_decl" >&5
49594$as_echo "$ice_cv_have_strncasecmp_decl" >&6; }
49595if test "$ice_cv_have_strncasecmp_decl" = yes; then
49596
49597cat >>confdefs.h <<_ACEOF
49598#define HAVE_STRNCASECMP_DECL 1
49599_ACEOF
49600
49601fi
49602fi
49603
49604
49605ice_have_syslog=no
49606for ac_func in syslog
49607do :
49608  ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
49609if test "x$ac_cv_func_syslog" = xyes; then :
49610  cat >>confdefs.h <<_ACEOF
49611#define HAVE_SYSLOG 1
49612_ACEOF
49613 ice_have_syslog=yes
49614fi
49615done
49616
49617if test "${ice_have_syslog}" = yes; then
49618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog declaration in syslog.h" >&5
49619$as_echo_n "checking for syslog declaration in syslog.h... " >&6; }
49620if ${ice_cv_have_syslog_decl+:} false; then :
49621  $as_echo_n "(cached) " >&6
49622else
49623
49624ice_cv_have_syslog_decl=no
49625ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49626ice_re_word='(^|[^a-zA-Z0-9_])'
49627for header in syslog.h; do
49628# Check for ordinary declaration
49629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49630/* end confdefs.h.  */
49631#include <$header>
49632
49633_ACEOF
49634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49635  $EGREP "${ice_re_word}syslog[ 	]*\(" >/dev/null 2>&1; then :
49636  ice_cv_have_syslog_decl=yes
49637fi
49638rm -f conftest*
49639
49640if test "$ice_cv_have_syslog_decl" = yes; then
49641	break
49642fi
49643# Check for "fixed" declaration like "getpid _PARAMS((int))"
49644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49645/* end confdefs.h.  */
49646#include <$header>
49647
49648_ACEOF
49649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49650  $EGREP "${ice_re_word}syslog[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
49651  ice_cv_have_syslog_decl=yes
49652fi
49653rm -f conftest*
49654
49655if test "$ice_cv_have_syslog_decl" = yes; then
49656	break
49657fi
49658done
49659
49660fi
49661
49662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_syslog_decl" >&5
49663$as_echo "$ice_cv_have_syslog_decl" >&6; }
49664if test "$ice_cv_have_syslog_decl" = yes; then
49665
49666cat >>confdefs.h <<_ACEOF
49667#define HAVE_SYSLOG_DECL 1
49668_ACEOF
49669
49670fi
49671fi
49672
49673
49674ice_have_system=no
49675for ac_func in system
49676do :
49677  ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system"
49678if test "x$ac_cv_func_system" = xyes; then :
49679  cat >>confdefs.h <<_ACEOF
49680#define HAVE_SYSTEM 1
49681_ACEOF
49682 ice_have_system=yes
49683fi
49684done
49685
49686if test "${ice_have_system}" = yes; then
49687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for system declaration in stdlib.h" >&5
49688$as_echo_n "checking for system declaration in stdlib.h... " >&6; }
49689if ${ice_cv_have_system_decl+:} false; then :
49690  $as_echo_n "(cached) " >&6
49691else
49692
49693ice_cv_have_system_decl=no
49694ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49695ice_re_word='(^|[^a-zA-Z0-9_])'
49696for header in stdlib.h; do
49697# Check for ordinary declaration
49698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49699/* end confdefs.h.  */
49700#include <$header>
49701
49702_ACEOF
49703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49704  $EGREP "${ice_re_word}system[ 	]*\(" >/dev/null 2>&1; then :
49705  ice_cv_have_system_decl=yes
49706fi
49707rm -f conftest*
49708
49709if test "$ice_cv_have_system_decl" = yes; then
49710	break
49711fi
49712# Check for "fixed" declaration like "getpid _PARAMS((int))"
49713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49714/* end confdefs.h.  */
49715#include <$header>
49716
49717_ACEOF
49718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49719  $EGREP "${ice_re_word}system[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
49720  ice_cv_have_system_decl=yes
49721fi
49722rm -f conftest*
49723
49724if test "$ice_cv_have_system_decl" = yes; then
49725	break
49726fi
49727done
49728
49729fi
49730
49731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_system_decl" >&5
49732$as_echo "$ice_cv_have_system_decl" >&6; }
49733if test "$ice_cv_have_system_decl" = yes; then
49734
49735cat >>confdefs.h <<_ACEOF
49736#define HAVE_SYSTEM_DECL 1
49737_ACEOF
49738
49739fi
49740fi
49741
49742
49743ice_have_time=no
49744for ac_func in time
49745do :
49746  ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
49747if test "x$ac_cv_func_time" = xyes; then :
49748  cat >>confdefs.h <<_ACEOF
49749#define HAVE_TIME 1
49750_ACEOF
49751 ice_have_time=yes
49752fi
49753done
49754
49755if test "${ice_have_time}" = yes; then
49756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time declaration in time.h sys/time.h" >&5
49757$as_echo_n "checking for time declaration in time.h sys/time.h... " >&6; }
49758if ${ice_cv_have_time_decl+:} false; then :
49759  $as_echo_n "(cached) " >&6
49760else
49761
49762ice_cv_have_time_decl=no
49763ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49764ice_re_word='(^|[^a-zA-Z0-9_])'
49765for header in time.h sys/time.h; do
49766# Check for ordinary declaration
49767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49768/* end confdefs.h.  */
49769#include <$header>
49770
49771_ACEOF
49772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49773  $EGREP "${ice_re_word}time[ 	]*\(" >/dev/null 2>&1; then :
49774  ice_cv_have_time_decl=yes
49775fi
49776rm -f conftest*
49777
49778if test "$ice_cv_have_time_decl" = yes; then
49779	break
49780fi
49781# Check for "fixed" declaration like "getpid _PARAMS((int))"
49782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49783/* end confdefs.h.  */
49784#include <$header>
49785
49786_ACEOF
49787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49788  $EGREP "${ice_re_word}time[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
49789  ice_cv_have_time_decl=yes
49790fi
49791rm -f conftest*
49792
49793if test "$ice_cv_have_time_decl" = yes; then
49794	break
49795fi
49796done
49797
49798fi
49799
49800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_time_decl" >&5
49801$as_echo "$ice_cv_have_time_decl" >&6; }
49802if test "$ice_cv_have_time_decl" = yes; then
49803
49804cat >>confdefs.h <<_ACEOF
49805#define HAVE_TIME_DECL 1
49806_ACEOF
49807
49808fi
49809fi
49810
49811
49812ice_have_tolower=no
49813for ac_func in tolower
49814do :
49815  ac_fn_c_check_func "$LINENO" "tolower" "ac_cv_func_tolower"
49816if test "x$ac_cv_func_tolower" = xyes; then :
49817  cat >>confdefs.h <<_ACEOF
49818#define HAVE_TOLOWER 1
49819_ACEOF
49820 ice_have_tolower=yes
49821fi
49822done
49823
49824if test "${ice_have_tolower}" = yes; then
49825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tolower declaration in ctype.h" >&5
49826$as_echo_n "checking for tolower declaration in ctype.h... " >&6; }
49827if ${ice_cv_have_tolower_decl+:} false; then :
49828  $as_echo_n "(cached) " >&6
49829else
49830
49831ice_cv_have_tolower_decl=no
49832ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49833ice_re_word='(^|[^a-zA-Z0-9_])'
49834for header in ctype.h; do
49835# Check for ordinary declaration
49836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49837/* end confdefs.h.  */
49838#include <$header>
49839
49840_ACEOF
49841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49842  $EGREP "${ice_re_word}tolower[ 	]*\(" >/dev/null 2>&1; then :
49843  ice_cv_have_tolower_decl=yes
49844fi
49845rm -f conftest*
49846
49847if test "$ice_cv_have_tolower_decl" = yes; then
49848	break
49849fi
49850# Check for "fixed" declaration like "getpid _PARAMS((int))"
49851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49852/* end confdefs.h.  */
49853#include <$header>
49854
49855_ACEOF
49856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49857  $EGREP "${ice_re_word}tolower[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
49858  ice_cv_have_tolower_decl=yes
49859fi
49860rm -f conftest*
49861
49862if test "$ice_cv_have_tolower_decl" = yes; then
49863	break
49864fi
49865done
49866
49867fi
49868
49869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_tolower_decl" >&5
49870$as_echo "$ice_cv_have_tolower_decl" >&6; }
49871if test "$ice_cv_have_tolower_decl" = yes; then
49872
49873cat >>confdefs.h <<_ACEOF
49874#define HAVE_TOLOWER_DECL 1
49875_ACEOF
49876
49877fi
49878fi
49879
49880
49881ice_have_toupper=no
49882for ac_func in toupper
49883do :
49884  ac_fn_c_check_func "$LINENO" "toupper" "ac_cv_func_toupper"
49885if test "x$ac_cv_func_toupper" = xyes; then :
49886  cat >>confdefs.h <<_ACEOF
49887#define HAVE_TOUPPER 1
49888_ACEOF
49889 ice_have_toupper=yes
49890fi
49891done
49892
49893if test "${ice_have_toupper}" = yes; then
49894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for toupper declaration in ctype.h" >&5
49895$as_echo_n "checking for toupper declaration in ctype.h... " >&6; }
49896if ${ice_cv_have_toupper_decl+:} false; then :
49897  $as_echo_n "(cached) " >&6
49898else
49899
49900ice_cv_have_toupper_decl=no
49901ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49902ice_re_word='(^|[^a-zA-Z0-9_])'
49903for header in ctype.h; do
49904# Check for ordinary declaration
49905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49906/* end confdefs.h.  */
49907#include <$header>
49908
49909_ACEOF
49910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49911  $EGREP "${ice_re_word}toupper[ 	]*\(" >/dev/null 2>&1; then :
49912  ice_cv_have_toupper_decl=yes
49913fi
49914rm -f conftest*
49915
49916if test "$ice_cv_have_toupper_decl" = yes; then
49917	break
49918fi
49919# Check for "fixed" declaration like "getpid _PARAMS((int))"
49920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49921/* end confdefs.h.  */
49922#include <$header>
49923
49924_ACEOF
49925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49926  $EGREP "${ice_re_word}toupper[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
49927  ice_cv_have_toupper_decl=yes
49928fi
49929rm -f conftest*
49930
49931if test "$ice_cv_have_toupper_decl" = yes; then
49932	break
49933fi
49934done
49935
49936fi
49937
49938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_toupper_decl" >&5
49939$as_echo "$ice_cv_have_toupper_decl" >&6; }
49940if test "$ice_cv_have_toupper_decl" = yes; then
49941
49942cat >>confdefs.h <<_ACEOF
49943#define HAVE_TOUPPER_DECL 1
49944_ACEOF
49945
49946fi
49947fi
49948
49949
49950ice_have_ungetc=no
49951for ac_func in ungetc
49952do :
49953  ac_fn_c_check_func "$LINENO" "ungetc" "ac_cv_func_ungetc"
49954if test "x$ac_cv_func_ungetc" = xyes; then :
49955  cat >>confdefs.h <<_ACEOF
49956#define HAVE_UNGETC 1
49957_ACEOF
49958 ice_have_ungetc=yes
49959fi
49960done
49961
49962if test "${ice_have_ungetc}" = yes; then
49963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ungetc declaration in stdio.h" >&5
49964$as_echo_n "checking for ungetc declaration in stdio.h... " >&6; }
49965if ${ice_cv_have_ungetc_decl+:} false; then :
49966  $as_echo_n "(cached) " >&6
49967else
49968
49969ice_cv_have_ungetc_decl=no
49970ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49971ice_re_word='(^|[^a-zA-Z0-9_])'
49972for header in stdio.h; do
49973# Check for ordinary declaration
49974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49975/* end confdefs.h.  */
49976#include <$header>
49977
49978_ACEOF
49979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49980  $EGREP "${ice_re_word}ungetc[ 	]*\(" >/dev/null 2>&1; then :
49981  ice_cv_have_ungetc_decl=yes
49982fi
49983rm -f conftest*
49984
49985if test "$ice_cv_have_ungetc_decl" = yes; then
49986	break
49987fi
49988# Check for "fixed" declaration like "getpid _PARAMS((int))"
49989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49990/* end confdefs.h.  */
49991#include <$header>
49992
49993_ACEOF
49994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49995  $EGREP "${ice_re_word}ungetc[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
49996  ice_cv_have_ungetc_decl=yes
49997fi
49998rm -f conftest*
49999
50000if test "$ice_cv_have_ungetc_decl" = yes; then
50001	break
50002fi
50003done
50004
50005fi
50006
50007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ungetc_decl" >&5
50008$as_echo "$ice_cv_have_ungetc_decl" >&6; }
50009if test "$ice_cv_have_ungetc_decl" = yes; then
50010
50011cat >>confdefs.h <<_ACEOF
50012#define HAVE_UNGETC_DECL 1
50013_ACEOF
50014
50015fi
50016fi
50017
50018for ac_func in unsetenv
50019do :
50020  ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
50021if test "x$ac_cv_func_unsetenv" = xyes; then :
50022  cat >>confdefs.h <<_ACEOF
50023#define HAVE_UNSETENV 1
50024_ACEOF
50025
50026fi
50027done
50028
50029
50030ice_have_vfprintf=no
50031for ac_func in vfprintf
50032do :
50033  ac_fn_c_check_func "$LINENO" "vfprintf" "ac_cv_func_vfprintf"
50034if test "x$ac_cv_func_vfprintf" = xyes; then :
50035  cat >>confdefs.h <<_ACEOF
50036#define HAVE_VFPRINTF 1
50037_ACEOF
50038 ice_have_vfprintf=yes
50039fi
50040done
50041
50042if test "${ice_have_vfprintf}" = yes; then
50043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vfprintf declaration in stdio.h stdlib.h" >&5
50044$as_echo_n "checking for vfprintf declaration in stdio.h stdlib.h... " >&6; }
50045if ${ice_cv_have_vfprintf_decl+:} false; then :
50046  $as_echo_n "(cached) " >&6
50047else
50048
50049ice_cv_have_vfprintf_decl=no
50050ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50051ice_re_word='(^|[^a-zA-Z0-9_])'
50052for header in stdio.h stdlib.h; do
50053# Check for ordinary declaration
50054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50055/* end confdefs.h.  */
50056#include <$header>
50057
50058_ACEOF
50059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50060  $EGREP "${ice_re_word}vfprintf[ 	]*\(" >/dev/null 2>&1; then :
50061  ice_cv_have_vfprintf_decl=yes
50062fi
50063rm -f conftest*
50064
50065if test "$ice_cv_have_vfprintf_decl" = yes; then
50066	break
50067fi
50068# Check for "fixed" declaration like "getpid _PARAMS((int))"
50069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50070/* end confdefs.h.  */
50071#include <$header>
50072
50073_ACEOF
50074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50075  $EGREP "${ice_re_word}vfprintf[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
50076  ice_cv_have_vfprintf_decl=yes
50077fi
50078rm -f conftest*
50079
50080if test "$ice_cv_have_vfprintf_decl" = yes; then
50081	break
50082fi
50083done
50084
50085fi
50086
50087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vfprintf_decl" >&5
50088$as_echo "$ice_cv_have_vfprintf_decl" >&6; }
50089if test "$ice_cv_have_vfprintf_decl" = yes; then
50090
50091cat >>confdefs.h <<_ACEOF
50092#define HAVE_VFPRINTF_DECL 1
50093_ACEOF
50094
50095fi
50096fi
50097
50098
50099ice_have_vprintf=no
50100for ac_func in vprintf
50101do :
50102  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
50103if test "x$ac_cv_func_vprintf" = xyes; then :
50104  cat >>confdefs.h <<_ACEOF
50105#define HAVE_VPRINTF 1
50106_ACEOF
50107 ice_have_vprintf=yes
50108fi
50109done
50110
50111if test "${ice_have_vprintf}" = yes; then
50112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vprintf declaration in stdio.h stdlib.h" >&5
50113$as_echo_n "checking for vprintf declaration in stdio.h stdlib.h... " >&6; }
50114if ${ice_cv_have_vprintf_decl+:} false; then :
50115  $as_echo_n "(cached) " >&6
50116else
50117
50118ice_cv_have_vprintf_decl=no
50119ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50120ice_re_word='(^|[^a-zA-Z0-9_])'
50121for header in stdio.h stdlib.h; do
50122# Check for ordinary declaration
50123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50124/* end confdefs.h.  */
50125#include <$header>
50126
50127_ACEOF
50128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50129  $EGREP "${ice_re_word}vprintf[ 	]*\(" >/dev/null 2>&1; then :
50130  ice_cv_have_vprintf_decl=yes
50131fi
50132rm -f conftest*
50133
50134if test "$ice_cv_have_vprintf_decl" = yes; then
50135	break
50136fi
50137# Check for "fixed" declaration like "getpid _PARAMS((int))"
50138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50139/* end confdefs.h.  */
50140#include <$header>
50141
50142_ACEOF
50143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50144  $EGREP "${ice_re_word}vprintf[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
50145  ice_cv_have_vprintf_decl=yes
50146fi
50147rm -f conftest*
50148
50149if test "$ice_cv_have_vprintf_decl" = yes; then
50150	break
50151fi
50152done
50153
50154fi
50155
50156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vprintf_decl" >&5
50157$as_echo "$ice_cv_have_vprintf_decl" >&6; }
50158if test "$ice_cv_have_vprintf_decl" = yes; then
50159
50160cat >>confdefs.h <<_ACEOF
50161#define HAVE_VPRINTF_DECL 1
50162_ACEOF
50163
50164fi
50165fi
50166
50167ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
50168if test "x$ac_cv_func_wait4" = xyes; then :
50169
50170fi
50171
50172
50173ice_have_writev=no
50174for ac_func in writev
50175do :
50176  ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
50177if test "x$ac_cv_func_writev" = xyes; then :
50178  cat >>confdefs.h <<_ACEOF
50179#define HAVE_WRITEV 1
50180_ACEOF
50181 ice_have_writev=yes
50182fi
50183done
50184
50185if test "${ice_have_writev}" = yes; then
50186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for writev declaration in unistd.h sys/uio.h" >&5
50187$as_echo_n "checking for writev declaration in unistd.h sys/uio.h... " >&6; }
50188if ${ice_cv_have_writev_decl+:} false; then :
50189  $as_echo_n "(cached) " >&6
50190else
50191
50192ice_cv_have_writev_decl=no
50193ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50194ice_re_word='(^|[^a-zA-Z0-9_])'
50195for header in unistd.h sys/uio.h; do
50196# Check for ordinary declaration
50197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50198/* end confdefs.h.  */
50199#include <$header>
50200
50201_ACEOF
50202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50203  $EGREP "${ice_re_word}writev[ 	]*\(" >/dev/null 2>&1; then :
50204  ice_cv_have_writev_decl=yes
50205fi
50206rm -f conftest*
50207
50208if test "$ice_cv_have_writev_decl" = yes; then
50209	break
50210fi
50211# Check for "fixed" declaration like "getpid _PARAMS((int))"
50212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50213/* end confdefs.h.  */
50214#include <$header>
50215
50216_ACEOF
50217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50218  $EGREP "${ice_re_word}writev[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
50219  ice_cv_have_writev_decl=yes
50220fi
50221rm -f conftest*
50222
50223if test "$ice_cv_have_writev_decl" = yes; then
50224	break
50225fi
50226done
50227
50228fi
50229
50230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_writev_decl" >&5
50231$as_echo "$ice_cv_have_writev_decl" >&6; }
50232if test "$ice_cv_have_writev_decl" = yes; then
50233
50234cat >>confdefs.h <<_ACEOF
50235#define HAVE_WRITEV_DECL 1
50236_ACEOF
50237
50238fi
50239fi
50240
50241
50242ice_have_strcasecmp=no
50243for ac_func in strcasecmp
50244do :
50245  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
50246if test "x$ac_cv_func_strcasecmp" = xyes; then :
50247  cat >>confdefs.h <<_ACEOF
50248#define HAVE_STRCASECMP 1
50249_ACEOF
50250 ice_have_strcasecmp=yes
50251fi
50252done
50253
50254if test "${ice_have_strcasecmp}" = yes; then
50255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp declaration in string.h strings.h" >&5
50256$as_echo_n "checking for strcasecmp declaration in string.h strings.h... " >&6; }
50257if ${ice_cv_have_strcasecmp_decl+:} false; then :
50258  $as_echo_n "(cached) " >&6
50259else
50260
50261ice_cv_have_strcasecmp_decl=no
50262ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50263ice_re_word='(^|[^a-zA-Z0-9_])'
50264for header in string.h strings.h; do
50265# Check for ordinary declaration
50266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50267/* end confdefs.h.  */
50268#include <$header>
50269
50270_ACEOF
50271if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50272  $EGREP "${ice_re_word}strcasecmp[ 	]*\(" >/dev/null 2>&1; then :
50273  ice_cv_have_strcasecmp_decl=yes
50274fi
50275rm -f conftest*
50276
50277if test "$ice_cv_have_strcasecmp_decl" = yes; then
50278	break
50279fi
50280# Check for "fixed" declaration like "getpid _PARAMS((int))"
50281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50282/* end confdefs.h.  */
50283#include <$header>
50284
50285_ACEOF
50286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50287  $EGREP "${ice_re_word}strcasecmp[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
50288  ice_cv_have_strcasecmp_decl=yes
50289fi
50290rm -f conftest*
50291
50292if test "$ice_cv_have_strcasecmp_decl" = yes; then
50293	break
50294fi
50295done
50296
50297fi
50298
50299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strcasecmp_decl" >&5
50300$as_echo "$ice_cv_have_strcasecmp_decl" >&6; }
50301if test "$ice_cv_have_strcasecmp_decl" = yes; then
50302
50303cat >>confdefs.h <<_ACEOF
50304#define HAVE_STRCASECMP_DECL 1
50305_ACEOF
50306
50307fi
50308fi
50309
50310
50311ice_have_euidaccess=no
50312for ac_func in euidaccess
50313do :
50314  ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
50315if test "x$ac_cv_func_euidaccess" = xyes; then :
50316  cat >>confdefs.h <<_ACEOF
50317#define HAVE_EUIDACCESS 1
50318_ACEOF
50319 ice_have_euidaccess=yes
50320fi
50321done
50322
50323if test "${ice_have_euidaccess}" = yes; then
50324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for euidaccess declaration in unistd.h" >&5
50325$as_echo_n "checking for euidaccess declaration in unistd.h... " >&6; }
50326if ${ice_cv_have_euidaccess_decl+:} false; then :
50327  $as_echo_n "(cached) " >&6
50328else
50329
50330ice_cv_have_euidaccess_decl=no
50331ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50332ice_re_word='(^|[^a-zA-Z0-9_])'
50333for header in unistd.h; do
50334# Check for ordinary declaration
50335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50336/* end confdefs.h.  */
50337#include <$header>
50338
50339_ACEOF
50340if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50341  $EGREP "${ice_re_word}euidaccess[ 	]*\(" >/dev/null 2>&1; then :
50342  ice_cv_have_euidaccess_decl=yes
50343fi
50344rm -f conftest*
50345
50346if test "$ice_cv_have_euidaccess_decl" = yes; then
50347	break
50348fi
50349# Check for "fixed" declaration like "getpid _PARAMS((int))"
50350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50351/* end confdefs.h.  */
50352#include <$header>
50353
50354_ACEOF
50355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50356  $EGREP "${ice_re_word}euidaccess[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
50357  ice_cv_have_euidaccess_decl=yes
50358fi
50359rm -f conftest*
50360
50361if test "$ice_cv_have_euidaccess_decl" = yes; then
50362	break
50363fi
50364done
50365
50366fi
50367
50368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_euidaccess_decl" >&5
50369$as_echo "$ice_cv_have_euidaccess_decl" >&6; }
50370if test "$ice_cv_have_euidaccess_decl" = yes; then
50371
50372cat >>confdefs.h <<_ACEOF
50373#define HAVE_EUIDACCESS_DECL 1
50374_ACEOF
50375
50376fi
50377fi
50378
50379
50380ice_have_eaccess=no
50381for ac_func in eaccess
50382do :
50383  ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
50384if test "x$ac_cv_func_eaccess" = xyes; then :
50385  cat >>confdefs.h <<_ACEOF
50386#define HAVE_EACCESS 1
50387_ACEOF
50388 ice_have_eaccess=yes
50389fi
50390done
50391
50392if test "${ice_have_eaccess}" = yes; then
50393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for eaccess declaration in unistd.h" >&5
50394$as_echo_n "checking for eaccess declaration in unistd.h... " >&6; }
50395if ${ice_cv_have_eaccess_decl+:} false; then :
50396  $as_echo_n "(cached) " >&6
50397else
50398
50399ice_cv_have_eaccess_decl=no
50400ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50401ice_re_word='(^|[^a-zA-Z0-9_])'
50402for header in unistd.h; do
50403# Check for ordinary declaration
50404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50405/* end confdefs.h.  */
50406#include <$header>
50407
50408_ACEOF
50409if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50410  $EGREP "${ice_re_word}eaccess[ 	]*\(" >/dev/null 2>&1; then :
50411  ice_cv_have_eaccess_decl=yes
50412fi
50413rm -f conftest*
50414
50415if test "$ice_cv_have_eaccess_decl" = yes; then
50416	break
50417fi
50418# Check for "fixed" declaration like "getpid _PARAMS((int))"
50419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50420/* end confdefs.h.  */
50421#include <$header>
50422
50423_ACEOF
50424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50425  $EGREP "${ice_re_word}eaccess[ 	]*$ice_re_params\(\(" >/dev/null 2>&1; then :
50426  ice_cv_have_eaccess_decl=yes
50427fi
50428rm -f conftest*
50429
50430if test "$ice_cv_have_eaccess_decl" = yes; then
50431	break
50432fi
50433done
50434
50435fi
50436
50437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_eaccess_decl" >&5
50438$as_echo "$ice_cv_have_eaccess_decl" >&6; }
50439if test "$ice_cv_have_eaccess_decl" = yes; then
50440
50441cat >>confdefs.h <<_ACEOF
50442#define HAVE_EACCESS_DECL 1
50443_ACEOF
50444
50445fi
50446fi
50447
50448
50449#
50450# Devices
50451#
50452
50453
50454
50455
50456
50457
50458
50459
50460
50461
50462
50463
50464
50465
50466
50467
50468
50469
50470
50471
50472
50473
50474# Check whether --with-libcurl was given.
50475if test "${with_libcurl+set}" = set; then :
50476  withval=$with_libcurl; _libcurl_with=$withval
50477else
50478  _libcurl_with=yes
50479fi
50480
50481
50482  if test "$_libcurl_with" != "no" ; then
50483
50484     for ac_prog in gawk mawk nawk awk
50485do
50486  # Extract the first word of "$ac_prog", so it can be a program name with args.
50487set dummy $ac_prog; ac_word=$2
50488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
50489$as_echo_n "checking for $ac_word... " >&6; }
50490if ${ac_cv_prog_AWK+:} false; then :
50491  $as_echo_n "(cached) " >&6
50492else
50493  if test -n "$AWK"; then
50494  ac_cv_prog_AWK="$AWK" # Let the user override the test.
50495else
50496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50497for as_dir in $PATH
50498do
50499  IFS=$as_save_IFS
50500  test -z "$as_dir" && as_dir=.
50501    for ac_exec_ext in '' $ac_executable_extensions; do
50502  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50503    ac_cv_prog_AWK="$ac_prog"
50504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
50505    break 2
50506  fi
50507done
50508  done
50509IFS=$as_save_IFS
50510
50511fi
50512fi
50513AWK=$ac_cv_prog_AWK
50514if test -n "$AWK"; then
50515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
50516$as_echo "$AWK" >&6; }
50517else
50518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50519$as_echo "no" >&6; }
50520fi
50521
50522
50523  test -n "$AWK" && break
50524done
50525
50526
50527     _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
50528
50529     _libcurl_try_link=yes
50530
50531     if test -d "$_libcurl_with" ; then
50532        LIBCURL_CPPFLAGS="-I$withval/include"
50533        _libcurl_ldflags="-L$withval/lib"
50534        # Extract the first word of "curl-config", so it can be a program name with args.
50535set dummy curl-config; ac_word=$2
50536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
50537$as_echo_n "checking for $ac_word... " >&6; }
50538if ${ac_cv_path__libcurl_config+:} false; then :
50539  $as_echo_n "(cached) " >&6
50540else
50541  case $_libcurl_config in
50542  [\\/]* | ?:[\\/]*)
50543  ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
50544  ;;
50545  *)
50546  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50547for as_dir in "$withval/bin"
50548do
50549  IFS=$as_save_IFS
50550  test -z "$as_dir" && as_dir=.
50551    for ac_exec_ext in '' $ac_executable_extensions; do
50552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50553    ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
50554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
50555    break 2
50556  fi
50557done
50558  done
50559IFS=$as_save_IFS
50560
50561  ;;
50562esac
50563fi
50564_libcurl_config=$ac_cv_path__libcurl_config
50565if test -n "$_libcurl_config"; then
50566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
50567$as_echo "$_libcurl_config" >&6; }
50568else
50569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50570$as_echo "no" >&6; }
50571fi
50572
50573
50574     else
50575        # Extract the first word of "curl-config", so it can be a program name with args.
50576set dummy curl-config; ac_word=$2
50577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
50578$as_echo_n "checking for $ac_word... " >&6; }
50579if ${ac_cv_path__libcurl_config+:} false; then :
50580  $as_echo_n "(cached) " >&6
50581else
50582  case $_libcurl_config in
50583  [\\/]* | ?:[\\/]*)
50584  ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
50585  ;;
50586  *)
50587  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50588for as_dir in $PATH
50589do
50590  IFS=$as_save_IFS
50591  test -z "$as_dir" && as_dir=.
50592    for ac_exec_ext in '' $ac_executable_extensions; do
50593  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50594    ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
50595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
50596    break 2
50597  fi
50598done
50599  done
50600IFS=$as_save_IFS
50601
50602  ;;
50603esac
50604fi
50605_libcurl_config=$ac_cv_path__libcurl_config
50606if test -n "$_libcurl_config"; then
50607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
50608$as_echo "$_libcurl_config" >&6; }
50609else
50610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50611$as_echo "no" >&6; }
50612fi
50613
50614
50615     fi
50616
50617     if test x$_libcurl_config != "x" ; then
50618        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
50619$as_echo_n "checking for the version of libcurl... " >&6; }
50620if ${libcurl_cv_lib_curl_version+:} false; then :
50621  $as_echo_n "(cached) " >&6
50622else
50623  libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
50624fi
50625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
50626$as_echo "$libcurl_cv_lib_curl_version" >&6; }
50627
50628        _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
50629        _libcurl_wanted=`echo 7.10.0 | $_libcurl_version_parse`
50630
50631        if test $_libcurl_wanted -gt 0 ; then
50632           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.10.0" >&5
50633$as_echo_n "checking for libcurl >= version 7.10.0... " >&6; }
50634if ${libcurl_cv_lib_version_ok+:} false; then :
50635  $as_echo_n "(cached) " >&6
50636else
50637
50638              if test $_libcurl_version -ge $_libcurl_wanted ; then
50639                 libcurl_cv_lib_version_ok=yes
50640              else
50641                 libcurl_cv_lib_version_ok=no
50642              fi
50643
50644fi
50645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
50646$as_echo "$libcurl_cv_lib_version_ok" >&6; }
50647        fi
50648
50649        if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
50650           if test x"$LIBCURL_CPPFLAGS" = "x" ; then
50651              LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
50652           fi
50653           if test x"$LIBCURL" = "x" ; then
50654              LIBCURL=`$_libcurl_config --libs`
50655
50656              # This is so silly, but Apple actually has a bug in their
50657              # curl-config script.  Fixed in Tiger, but there are still
50658              # lots of Panther installs around.
50659              case "${host}" in
50660                 powerpc-apple-darwin7*)
50661                    LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
50662                 ;;
50663              esac
50664           fi
50665
50666           # All curl-config scripts support --feature
50667           _libcurl_features=`$_libcurl_config --feature`
50668
50669           # Is it modern enough to have --protocols? (7.12.4)
50670           if test $_libcurl_version -ge 461828 ; then
50671              _libcurl_protocols=`$_libcurl_config --protocols`
50672           fi
50673        else
50674           _libcurl_try_link=no
50675        fi
50676
50677        unset _libcurl_wanted
50678     fi
50679
50680     if test $_libcurl_try_link = yes ; then
50681
50682        # we didn't find curl-config, so let's see if the user-supplied
50683        # link line (or failing that, "-lcurl") is enough.
50684        LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
50685
50686        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
50687$as_echo_n "checking whether libcurl is usable... " >&6; }
50688if ${libcurl_cv_lib_curl_usable+:} false; then :
50689  $as_echo_n "(cached) " >&6
50690else
50691
50692           _libcurl_save_cppflags=$CPPFLAGS
50693           CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
50694           _libcurl_save_libs=$LIBS
50695           LIBS="$LIBCURL $LIBS"
50696
50697           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50698/* end confdefs.h.  */
50699#include <curl/curl.h>
50700int
50701main ()
50702{
50703
50704/* Try and use a few common options to force a failure if we are
50705   missing symbols or can't link. */
50706int x;
50707curl_easy_setopt(NULL,CURLOPT_URL,NULL);
50708x=CURL_ERROR_SIZE;
50709x=CURLOPT_WRITEFUNCTION;
50710x=CURLOPT_FILE;
50711x=CURLOPT_ERRORBUFFER;
50712x=CURLOPT_STDERR;
50713x=CURLOPT_VERBOSE;
50714
50715  ;
50716  return 0;
50717}
50718_ACEOF
50719if ac_fn_c_try_link "$LINENO"; then :
50720  libcurl_cv_lib_curl_usable=yes
50721else
50722  libcurl_cv_lib_curl_usable=no
50723fi
50724rm -f core conftest.err conftest.$ac_objext \
50725    conftest$ac_exeext conftest.$ac_ext
50726
50727           CPPFLAGS=$_libcurl_save_cppflags
50728           LIBS=$_libcurl_save_libs
50729           unset _libcurl_save_cppflags
50730           unset _libcurl_save_libs
50731
50732fi
50733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
50734$as_echo "$libcurl_cv_lib_curl_usable" >&6; }
50735
50736        if test $libcurl_cv_lib_curl_usable = yes ; then
50737
50738           # Does curl_free() exist in this version of libcurl?
50739           # If not, fake it with free()
50740
50741           _libcurl_save_cppflags=$CPPFLAGS
50742           CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
50743           _libcurl_save_libs=$LIBS
50744           LIBS="$LIBS $LIBCURL"
50745
50746           ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
50747if test "x$ac_cv_func_curl_free" = xyes; then :
50748
50749else
50750
50751$as_echo "#define curl_free free" >>confdefs.h
50752
50753fi
50754
50755
50756           CPPFLAGS=$_libcurl_save_cppflags
50757           LIBS=$_libcurl_save_libs
50758           unset _libcurl_save_cppflags
50759           unset _libcurl_save_libs
50760
50761
50762$as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
50763
50764
50765
50766
50767           for _libcurl_feature in $_libcurl_features ; do
50768              cat >>confdefs.h <<_ACEOF
50769#define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
50770_ACEOF
50771
50772              eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
50773           done
50774
50775           if test "x$_libcurl_protocols" = "x" ; then
50776
50777              # We don't have --protocols, so just assume that all
50778              # protocols are available
50779              _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
50780
50781              if test x$libcurl_feature_SSL = xyes ; then
50782                 _libcurl_protocols="$_libcurl_protocols HTTPS"
50783
50784                 # FTPS wasn't standards-compliant until version
50785                 # 7.11.0
50786                 if test $_libcurl_version -ge 461568; then
50787                    _libcurl_protocols="$_libcurl_protocols FTPS"
50788                 fi
50789              fi
50790           fi
50791
50792           for _libcurl_protocol in $_libcurl_protocols ; do
50793              cat >>confdefs.h <<_ACEOF
50794#define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
50795_ACEOF
50796
50797              eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
50798           done
50799        else
50800           unset LIBCURL
50801           unset LIBCURL_CPPFLAGS
50802        fi
50803     fi
50804
50805      LIBCURL_USE_NSS=no
50806      LIBCURL_USE_GNUTLS=no
50807      LIBCURL_USE_OPENSSL=yes
50808     _libcurl_configures=`$_libcurl_config --configure`
50809     for _libcurl_configure in $_libcurl_configures ; do
50810	if [[ $_libcurl_configure = \'--with-nss* ]]; then
50811	    LIBCURL_USE_NSS=yes
50812	fi
50813	if [[ $_libcurl_configure = \'--without-nss* ]]; then
50814	    LIBCURL_USE_NSS=no
50815	fi
50816	if [[ $_libcurl_configure = \'--with-gnutls* ]]; then
50817	    LIBCURL_USE_GNUTLS=yes
50818	fi
50819	if [[ $_libcurl_configure = \'--without-gnutls* ]]; then
50820	    LIBCURL_USE_GNUTLS=no
50821	fi
50822	if [[ $_libcurl_configure = \'--with-ssl* ]]; then
50823	    LIBCURL_USE_OPENSSL=yes
50824	fi
50825	if [[ $_libcurl_configure = \'--without-ssl* ]]; then
50826	    LIBCURL_USE_OPENSSL=no
50827	fi
50828     done
50829
50830     if test "x$LIBCURL_USE_NSS" = "xyes"; then
50831
50832$as_echo "#define LIBCURL_USE_NSS 1" >>confdefs.h
50833
50834     fi
50835     if test "x$LIBCURL_USE_GNUTLS" = "xyes"; then
50836
50837$as_echo "#define LIBCURL_USE_GNUTLS /**/" >>confdefs.h
50838
50839     fi
50840     if test "x$LIBCURL_USE_OPENSSL" = "xyes"; then
50841
50842$as_echo "#define LIBCURL_USE_OPENSSL 1" >>confdefs.h
50843
50844     fi
50845
50846     unset _libcurl_try_link
50847     unset _libcurl_version_parse
50848     unset _libcurl_config
50849     unset _libcurl_feature
50850     unset _libcurl_features
50851     unset _libcurl_protocol
50852     unset _libcurl_protocols
50853     unset _libcurl_version
50854     unset _libcurl_ldflags
50855     unset _libcurl_configure
50856     unset _libcurl_configures
50857  fi
50858
50859  if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
50860     # This is the IF-NO path
50861     HAVE_CURL=no
50862  else
50863     # This is the IF-YES path
50864     HAVE_CURL=yes
50865  fi
50866
50867  unset _libcurl_with
50868
50869    if test x"$HAVE_CURL" = x"yes"; then
50870	LIBS="$LIBCURL $LIBS"
50871
50872	CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
50873
50874
50875
50876
50877    ac_fn_c_check_type "$LINENO" "curl_off_t" "ac_cv_type_curl_off_t" "
50878#ifdef HAVE_SYS_TYPES_H
50879#include <sys/types.h>
50880#endif
50881#ifdef STDC_HEADERS
50882#include <stdlib.h>
50883#include <stddef.h>
50884#endif
50885#include <curl/curl.h>
50886
50887
50888"
50889if test "x$ac_cv_type_curl_off_t" = xyes; then :
50890
50891else
50892
50893
50894$as_echo "#define curl_off_t off_t" >>confdefs.h
50895
50896
50897fi
50898
50899
50900	case "$host" in
50901	    *sun-solaris2*) # Solaris, all versions.
50902	    # we extract the -L flags and translate them to -R flags, as required
50903	    # by the runtime linker.
50904	    if test -n "$_libcurl_config"; then
50905		curlflags=`$_libcurl_config --libs 2>/dev/null`
50906		for flag in curlflags; do
50907		    case $flag in
50908			-L*) LDFLAGS="$LDFLAGS "`echo "x$flag" | sed -e 's/^x-L/-R/'`;;
50909		    esac
50910		done
50911	    fi
50912	    ;;
50913	esac
50914    fi
50915
50916
50917
50918    HAVE_HMAC=yes
50919    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
50920$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
50921if ${ac_cv_lib_crypto_HMAC_CTX_init+:} false; then :
50922  $as_echo_n "(cached) " >&6
50923else
50924  ac_check_lib_save_LIBS=$LIBS
50925LIBS="-lcrypto  $LIBS"
50926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50927/* end confdefs.h.  */
50928
50929/* Override any GCC internal prototype to avoid an error.
50930   Use char because int might match the return type of a GCC
50931   builtin and then its argument prototype would still apply.  */
50932#ifdef __cplusplus
50933extern "C"
50934#endif
50935char HMAC_CTX_init ();
50936int
50937main ()
50938{
50939return HMAC_CTX_init ();
50940  ;
50941  return 0;
50942}
50943_ACEOF
50944if ac_fn_c_try_link "$LINENO"; then :
50945  ac_cv_lib_crypto_HMAC_CTX_init=yes
50946else
50947  ac_cv_lib_crypto_HMAC_CTX_init=no
50948fi
50949rm -f core conftest.err conftest.$ac_objext \
50950    conftest$ac_exeext conftest.$ac_ext
50951LIBS=$ac_check_lib_save_LIBS
50952fi
50953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
50954$as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
50955if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = xyes; then :
50956  cat >>confdefs.h <<_ACEOF
50957#define HAVE_LIBCRYPTO 1
50958_ACEOF
50959
50960  LIBS="-lcrypto $LIBS"
50961
50962else
50963  HAVE_HMAC=no
50964fi
50965
50966
50967    found_hmac_h=no
50968    for ac_header in openssl/hmac.h crypto/hmac.h hmac.h
50969do :
50970  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
50971ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
50972if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
50973  cat >>confdefs.h <<_ACEOF
50974#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
50975_ACEOF
50976 found_hmac_h=yes; break
50977fi
50978
50979done
50980
50981    if test x"$found_hmac_h" != x"yes"; then
50982	HAVE_HMAC=no
50983    fi
50984
50985
50986
50987
50988
50989    # Check whether --enable-s3-device was given.
50990if test "${enable_s3_device+set}" = set; then :
50991  enableval=$enable_s3_device;  WANT_S3_DEVICE=$enableval
50992else
50993   WANT_S3_DEVICE=maybe
50994fi
50995
50996
50997    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include the Amazon S3 device" >&5
50998$as_echo_n "checking whether to include the Amazon S3 device... " >&6; }
50999    # if the user didn't specify 'no', then check for support
51000    if test x"$WANT_S3_DEVICE" != x"no"; then
51001	if test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"; then
51002	    WANT_S3_DEVICE=yes
51003	else
51004	    # no support -- if the user explicitly enabled the device,
51005	    # then this is an error
51006	    if test x"$WANT_S3_DEVICE" = x"yes"; then
51007		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51008$as_echo "no" >&6; }
51009		as_fn_error $? "Cannot build the Amazon S3 device: one or more prerequisites are missing." "$LINENO" 5
51010	    else
51011		WANT_S3_DEVICE=no
51012	    fi
51013	fi
51014    fi
51015    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_S3_DEVICE" >&5
51016$as_echo "$WANT_S3_DEVICE" >&6; }
51017
51018     if test x"$WANT_S3_DEVICE" = x"yes"; then
51019  WANT_S3_DEVICE_TRUE=
51020  WANT_S3_DEVICE_FALSE='#'
51021else
51022  WANT_S3_DEVICE_TRUE='#'
51023  WANT_S3_DEVICE_FALSE=
51024fi
51025
51026
51027    # Now handle any setup for S3, if we want it.
51028    if test x"$WANT_S3_DEVICE" = x"yes"; then
51029
51030$as_echo "#define WANT_S3_DEVICE /**/" >>confdefs.h
51031
51032    fi
51033
51034
51035    for ac_header in \
51036	linux/zftape.h \
51037	sys/tape.h \
51038	sys/mtio.h \
51039
51040do :
51041  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51042ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
51043if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
51044  cat >>confdefs.h <<_ACEOF
51045#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51046_ACEOF
51047
51048fi
51049
51050done
51051
51052
51053    # check for MTIOCTOP, an indicator of POSIX tape support
51054    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MTIOCTOP" >&5
51055$as_echo_n "checking for MTIOCTOP... " >&6; }
51056if ${amanda_cv_HAVE_MTIOCTOP+:} false; then :
51057  $as_echo_n "(cached) " >&6
51058else
51059
51060	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51061/* end confdefs.h.  */
51062
51063#include <sys/types.h>
51064#ifdef HAVE_SYS_TIME_H
51065# include <sys/time.h>
51066# endif
51067#ifdef HAVE_SYS_TAPE_H
51068# include <sys/tape.h>
51069#endif
51070#ifdef HAVE_SYS_MTIO_H
51071# include <sys/mtio.h>
51072#endif
51073#ifndef MTIOCTOP
51074#error MTIOCTOP not defined
51075#endif
51076
51077int
51078main ()
51079{
51080 int dummy = 0;
51081  ;
51082  return 0;
51083}
51084_ACEOF
51085if ac_fn_c_try_compile "$LINENO"; then :
51086  amanda_cv_HAVE_MTIOCTOP=yes
51087else
51088  amanda_cv_HAVE_MTIOCTOP=no
51089fi
51090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51091
51092	HAVE_MTIOCTOP=$amanda_cv_HAVE_MTIOCTOP
51093
51094fi
51095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_HAVE_MTIOCTOP" >&5
51096$as_echo "$amanda_cv_HAVE_MTIOCTOP" >&6; }
51097
51098    # maybe we have no tape device at all (e.g., Mac OS X)?
51099    if test x"$HAVE_MTIOCTOP" = x"yes"; then
51100	want_tape_device=yes
51101
51102$as_echo "#define WANT_TAPE_DEVICE 1" >>confdefs.h
51103
51104    fi
51105     if test -n "$want_tape_device"; then
51106  WANT_TAPE_DEVICE_TRUE=
51107  WANT_TAPE_DEVICE_FALSE='#'
51108else
51109  WANT_TAPE_DEVICE_TRUE='#'
51110  WANT_TAPE_DEVICE_FALSE=
51111fi
51112
51113
51114    #
51115    # Check for various "mt status" related structure elements.
51116    #
51117    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_flags mtget structure element" >&5
51118$as_echo_n "checking for mt_flags mtget structure element... " >&6; }
51119    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51120/* end confdefs.h.  */
51121
51122#include <stdio.h>
51123#include <sys/types.h>
51124#ifdef HAVE_SYS_TIME_H
51125# include <sys/time.h>
51126#endif
51127#include <sys/mtio.h>
51128
51129int
51130main ()
51131{
51132
51133	    struct mtget buf;
51134	    long ds;
51135
51136	    ds = buf.mt_flags;
51137
51138  ;
51139  return 0;
51140}
51141_ACEOF
51142if ac_fn_c_try_compile "$LINENO"; then :
51143
51144	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51145$as_echo "yes" >&6; }
51146
51147$as_echo "#define HAVE_MT_FLAGS 1" >>confdefs.h
51148
51149
51150else
51151
51152	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51153$as_echo "no" >&6; }
51154
51155fi
51156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51157
51158    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_fileno mtget structure element" >&5
51159$as_echo_n "checking for mt_fileno mtget structure element... " >&6; }
51160    mt_fileno_result="found"
51161    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51162/* end confdefs.h.  */
51163
51164#include <stdio.h>
51165#include <sys/types.h>
51166#ifdef HAVE_SYS_TIME_H
51167# include <sys/time.h>
51168#endif
51169#include <sys/mtio.h>
51170
51171int
51172main ()
51173{
51174
51175	    struct mtget buf;
51176	    long ds;
51177
51178	    ds = buf.mt_fileno;
51179
51180  ;
51181  return 0;
51182}
51183_ACEOF
51184if ac_fn_c_try_compile "$LINENO"; then :
51185
51186	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51187$as_echo "yes" >&6; }
51188
51189$as_echo "#define HAVE_MT_FILENO 1" >>confdefs.h
51190
51191
51192else
51193
51194	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51195$as_echo "no" >&6; }
51196
51197fi
51198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51199
51200    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_blkno mtget structure element" >&5
51201$as_echo_n "checking for mt_blkno mtget structure element... " >&6; }
51202    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51203/* end confdefs.h.  */
51204
51205#include <stdio.h>
51206#include <sys/types.h>
51207#include <sys/mtio.h>
51208
51209int
51210main ()
51211{
51212
51213	    struct mtget buf;
51214	    long ds;
51215
51216	    ds = buf.mt_blkno;
51217
51218  ;
51219  return 0;
51220}
51221_ACEOF
51222if ac_fn_c_try_compile "$LINENO"; then :
51223
51224	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51225$as_echo "yes" >&6; }
51226
51227$as_echo "#define HAVE_MT_BLKNO 1" >>confdefs.h
51228
51229
51230else
51231
51232	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51233$as_echo "no" >&6; }
51234
51235fi
51236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51237
51238    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_dsreg mtget structure element" >&5
51239$as_echo_n "checking for mt_dsreg mtget structure element... " >&6; }
51240    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51241/* end confdefs.h.  */
51242
51243#include <stdio.h>
51244#include <sys/types.h>
51245#include <sys/mtio.h>
51246
51247int
51248main ()
51249{
51250
51251	    struct mtget buf;
51252	    long ds;
51253
51254	    ds = buf.mt_dsreg;
51255
51256  ;
51257  return 0;
51258}
51259_ACEOF
51260if ac_fn_c_try_compile "$LINENO"; then :
51261
51262	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51263$as_echo "yes" >&6; }
51264
51265$as_echo "#define HAVE_MT_DSREG 1" >>confdefs.h
51266
51267
51268else
51269
51270	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51271$as_echo "no" >&6; }
51272
51273fi
51274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51275
51276    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_erreg mtget structure element" >&5
51277$as_echo_n "checking for mt_erreg mtget structure element... " >&6; }
51278    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51279/* end confdefs.h.  */
51280
51281#include <stdio.h>
51282#include <sys/types.h>
51283#ifdef HAVE_SYS_TIME_H
51284# include <sys/time.h>
51285#endif
51286#include <sys/mtio.h>
51287
51288int
51289main ()
51290{
51291
51292	    struct mtget buf;
51293	    long ds;
51294
51295	    ds = buf.mt_erreg;
51296
51297  ;
51298  return 0;
51299}
51300_ACEOF
51301if ac_fn_c_try_compile "$LINENO"; then :
51302
51303	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51304$as_echo "yes" >&6; }
51305
51306$as_echo "#define HAVE_MT_ERREG 1" >>confdefs.h
51307
51308
51309else
51310
51311	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51312$as_echo "no" >&6; }
51313
51314fi
51315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51316
51317    case "$host" in
51318	*linux*)
51319$as_echo "#define DEFAULT_TAPE_NON_BLOCKING_OPEN 1" >>confdefs.h
51320;;
51321    esac
51322
51323
51324	# Check whether --enable-dvdrw-device was given.
51325if test "${enable_dvdrw_device+set}" = set; then :
51326  enableval=$enable_dvdrw_device;  WANT_DVDRW_DEVICE=$enableval
51327else
51328   WANT_DVDRW_DEVICE=yes
51329fi
51330
51331
51332	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include the DVD-RW device" >&5
51333$as_echo_n "checking whether to include the DVD-RW device... " >&6; }
51334	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_DVDRW_DEVICE" >&5
51335$as_echo "$WANT_DVDRW_DEVICE" >&6; }
51336
51337	 if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
51338  WANT_DVDRW_DEVICE_TRUE=
51339  WANT_DVDRW_DEVICE_FALSE='#'
51340else
51341  WANT_DVDRW_DEVICE_TRUE='#'
51342  WANT_DVDRW_DEVICE_FALSE=
51343fi
51344
51345
51346	# Now handle any setup for DVDRW, if we want it.
51347	if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
51348
51349$as_echo "#define WANT_DVDRW_DEVICE /**/" >>confdefs.h
51350
51351	fi
51352
51353
51354
51355
51356    # Check whether --enable-ndmp-device was given.
51357if test "${enable_ndmp_device+set}" = set; then :
51358  enableval=$enable_ndmp_device;  WANT_NDMP_DEVICE=$enableval
51359else
51360   WANT_NDMP_DEVICE=$WANT_NDMP
51361fi
51362
51363
51364    if test x"$WANT_NDMP" != x"true" -a x"$WANT_NDMP_DEVICE" = x"true"; then
51365	as_fn_error $? "NDMP support is required to build the ndmp device (--with-ndmp)" "$LINENO" 5
51366    fi
51367
51368    if test x"$WANT_NDMP_DEVICE" = x"true"; then
51369
51370$as_echo "#define WANT_NDMP_DEVICE 1" >>confdefs.h
51371
51372    fi
51373
51374     if test x"$WANT_NDMP_DEVICE" = x"true"; then
51375  WANT_NDMP_DEVICE_TRUE=
51376  WANT_NDMP_DEVICE_FALSE='#'
51377else
51378  WANT_NDMP_DEVICE_TRUE='#'
51379  WANT_NDMP_DEVICE_FALSE=
51380fi
51381
51382
51383
51384
51385ac_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"
51386
51387
51388cat >confcache <<\_ACEOF
51389# This file is a shell script that caches the results of configure
51390# tests run on this system so they can be shared between configure
51391# scripts and configure runs, see configure's option --config-cache.
51392# It is not useful on other systems.  If it contains results you don't
51393# want to keep, you may remove or edit it.
51394#
51395# config.status only pays attention to the cache file if you give it
51396# the --recheck option to rerun configure.
51397#
51398# `ac_cv_env_foo' variables (set or unset) will be overridden when
51399# loading this file, other *unset* `ac_cv_foo' will be assigned the
51400# following values.
51401
51402_ACEOF
51403
51404# The following way of writing the cache mishandles newlines in values,
51405# but we know of no workaround that is simple, portable, and efficient.
51406# So, we kill variables containing newlines.
51407# Ultrix sh set writes to stderr and can't be redirected directly,
51408# and sets the high bit in the cache file unless we assign to the vars.
51409(
51410  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
51411    eval ac_val=\$$ac_var
51412    case $ac_val in #(
51413    *${as_nl}*)
51414      case $ac_var in #(
51415      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
51416$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
51417      esac
51418      case $ac_var in #(
51419      _ | IFS | as_nl) ;; #(
51420      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
51421      *) { eval $ac_var=; unset $ac_var;} ;;
51422      esac ;;
51423    esac
51424  done
51425
51426  (set) 2>&1 |
51427    case $as_nl`(ac_space=' '; set) 2>&1` in #(
51428    *${as_nl}ac_space=\ *)
51429      # `set' does not quote correctly, so add quotes: double-quote
51430      # substitution turns \\\\ into \\, and sed turns \\ into \.
51431      sed -n \
51432	"s/'/'\\\\''/g;
51433	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
51434      ;; #(
51435    *)
51436      # `set' quotes correctly as required by POSIX, so do not add quotes.
51437      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
51438      ;;
51439    esac |
51440    sort
51441) |
51442  sed '
51443     /^ac_cv_env_/b end
51444     t clear
51445     :clear
51446     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
51447     t end
51448     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
51449     :end' >>confcache
51450if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
51451  if test -w "$cache_file"; then
51452    if test "x$cache_file" != "x/dev/null"; then
51453      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
51454$as_echo "$as_me: updating cache $cache_file" >&6;}
51455      if test ! -f "$cache_file" || test -h "$cache_file"; then
51456	cat confcache >"$cache_file"
51457      else
51458        case $cache_file in #(
51459        */* | ?:*)
51460	  mv -f confcache "$cache_file"$$ &&
51461	  mv -f "$cache_file"$$ "$cache_file" ;; #(
51462        *)
51463	  mv -f confcache "$cache_file" ;;
51464	esac
51465      fi
51466    fi
51467  else
51468    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
51469$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
51470  fi
51471fi
51472rm -f confcache
51473
51474test "x$prefix" = xNONE && prefix=$ac_default_prefix
51475# Let make expand exec_prefix.
51476test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51477
51478DEFS=-DHAVE_CONFIG_H
51479
51480ac_libobjs=
51481ac_ltlibobjs=
51482U=
51483for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51484  # 1. Remove the extension, and $U if already installed.
51485  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
51486  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
51487  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
51488  #    will be set to the directory where LIBOBJS objects are built.
51489  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
51490  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
51491done
51492LIBOBJS=$ac_libobjs
51493
51494LTLIBOBJS=$ac_ltlibobjs
51495
51496
51497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
51498$as_echo_n "checking that generated files are newer than configure... " >&6; }
51499   if test -n "$am_sleep_pid"; then
51500     # Hide warnings about reused PIDs.
51501     wait $am_sleep_pid 2>/dev/null
51502   fi
51503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
51504$as_echo "done" >&6; }
51505 if test -n "$EXEEXT"; then
51506  am__EXEEXT_TRUE=
51507  am__EXEEXT_FALSE='#'
51508else
51509  am__EXEEXT_TRUE='#'
51510  am__EXEEXT_FALSE=
51511fi
51512
51513if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
51514  as_fn_error $? "conditional \"AMDEP\" was never defined.
51515Usually this means the macro was only invoked conditionally." "$LINENO" 5
51516fi
51517if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51518  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
51519Usually this means the macro was only invoked conditionally." "$LINENO" 5
51520fi
51521if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
51522  as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
51523Usually this means the macro was only invoked conditionally." "$LINENO" 5
51524fi
51525if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
51526  as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
51527Usually this means the macro was only invoked conditionally." "$LINENO" 5
51528fi
51529if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
51530  as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
51531Usually this means the macro was only invoked conditionally." "$LINENO" 5
51532fi
51533if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
51534  as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
51535Usually this means the macro was only invoked conditionally." "$LINENO" 5
51536fi
51537if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
51538  as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
51539Usually this means the macro was only invoked conditionally." "$LINENO" 5
51540fi
51541if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
51542  as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
51543Usually this means the macro was only invoked conditionally." "$LINENO" 5
51544fi
51545if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
51546  as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
51547Usually this means the macro was only invoked conditionally." "$LINENO" 5
51548fi
51549if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
51550  as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
51551Usually this means the macro was only invoked conditionally." "$LINENO" 5
51552fi
51553if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
51554  as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
51555Usually this means the macro was only invoked conditionally." "$LINENO" 5
51556fi
51557if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
51558  as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
51559Usually this means the macro was only invoked conditionally." "$LINENO" 5
51560fi
51561
51562
51563    gl_libobjs=
51564    gl_ltlibobjs=
51565    if test -n "$gl_LIBOBJS"; then
51566      # Remove the extension.
51567      sed_drop_objext='s/\.o$//;s/\.obj$//'
51568      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
51569        gl_libobjs="$gl_libobjs $i.$ac_objext"
51570        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
51571      done
51572    fi
51573    gl_LIBOBJS=$gl_libobjs
51574
51575    gl_LTLIBOBJS=$gl_ltlibobjs
51576
51577
51578
51579    gltests_libobjs=
51580    gltests_ltlibobjs=
51581    if test -n "$gltests_LIBOBJS"; then
51582      # Remove the extension.
51583      sed_drop_objext='s/\.o$//;s/\.obj$//'
51584      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
51585        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
51586        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
51587      done
51588    fi
51589    gltests_LIBOBJS=$gltests_libobjs
51590
51591    gltests_LTLIBOBJS=$gltests_ltlibobjs
51592
51593
51594if test -z "${WANT_AS_NEEDED_TRUE}" && test -z "${WANT_AS_NEEDED_FALSE}"; then
51595  as_fn_error $? "conditional \"WANT_AS_NEEDED\" was never defined.
51596Usually this means the macro was only invoked conditionally." "$LINENO" 5
51597fi
51598if test -z "${CHECK_USERID_TRUE}" && test -z "${CHECK_USERID_FALSE}"; then
51599  as_fn_error $? "conditional \"CHECK_USERID\" was never defined.
51600Usually this means the macro was only invoked conditionally." "$LINENO" 5
51601fi
51602if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
51603  as_fn_error $? "conditional \"WANT_SETUID_CLIENT\" was never defined.
51604Usually this means the macro was only invoked conditionally." "$LINENO" 5
51605fi
51606if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
51607  as_fn_error $? "conditional \"WANT_INSTALLPERMS\" was never defined.
51608Usually this means the macro was only invoked conditionally." "$LINENO" 5
51609fi
51610if test -z "${SYNTAX_CHECKS_TRUE}" && test -z "${SYNTAX_CHECKS_FALSE}"; then
51611  as_fn_error $? "conditional \"SYNTAX_CHECKS\" was never defined.
51612Usually this means the macro was only invoked conditionally." "$LINENO" 5
51613fi
51614if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
51615  as_fn_error $? "conditional \"WANT_CLIENT\" was never defined.
51616Usually this means the macro was only invoked conditionally." "$LINENO" 5
51617fi
51618if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
51619  as_fn_error $? "conditional \"WANT_RESTORE\" was never defined.
51620Usually this means the macro was only invoked conditionally." "$LINENO" 5
51621fi
51622if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
51623  as_fn_error $? "conditional \"WANT_SERVER\" was never defined.
51624Usually this means the macro was only invoked conditionally." "$LINENO" 5
51625fi
51626if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
51627  as_fn_error $? "conditional \"WANT_RECOVER\" was never defined.
51628Usually this means the macro was only invoked conditionally." "$LINENO" 5
51629fi
51630if test -z "${WANT_NDMP_TRUE}" && test -z "${WANT_NDMP_FALSE}"; then
51631  as_fn_error $? "conditional \"WANT_NDMP\" was never defined.
51632Usually this means the macro was only invoked conditionally." "$LINENO" 5
51633fi
51634if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
51635  as_fn_error $? "conditional \"WANT_TAPE\" was never defined.
51636Usually this means the macro was only invoked conditionally." "$LINENO" 5
51637fi
51638if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
51639  as_fn_error $? "conditional \"WANT_AMPLOT\" was never defined.
51640Usually this means the macro was only invoked conditionally." "$LINENO" 5
51641fi
51642if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
51643  as_fn_error $? "conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
51644Usually this means the macro was only invoked conditionally." "$LINENO" 5
51645fi
51646if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
51647  as_fn_error $? "conditional \"WANT_AMFLOCK_POSIX\" was never defined.
51648Usually this means the macro was only invoked conditionally." "$LINENO" 5
51649fi
51650if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
51651  as_fn_error $? "conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
51652Usually this means the macro was only invoked conditionally." "$LINENO" 5
51653fi
51654if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
51655  as_fn_error $? "conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
51656Usually this means the macro was only invoked conditionally." "$LINENO" 5
51657fi
51658if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
51659  as_fn_error $? "conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
51660Usually this means the macro was only invoked conditionally." "$LINENO" 5
51661fi
51662if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
51663  as_fn_error $? "conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
51664Usually this means the macro was only invoked conditionally." "$LINENO" 5
51665fi
51666if test -z "${WANT_MANDATORY_THREAD_CHECK_TRUE}" && test -z "${WANT_MANDATORY_THREAD_CHECK_FALSE}"; then
51667  as_fn_error $? "conditional \"WANT_MANDATORY_THREAD_CHECK\" was never defined.
51668Usually this means the macro was only invoked conditionally." "$LINENO" 5
51669fi
51670if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
51671  as_fn_error $? "conditional \"WANT_BSD_SECURITY\" was never defined.
51672Usually this means the macro was only invoked conditionally." "$LINENO" 5
51673fi
51674if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
51675  as_fn_error $? "conditional \"WANT_BSDTCP_SECURITY\" was never defined.
51676Usually this means the macro was only invoked conditionally." "$LINENO" 5
51677fi
51678if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
51679  as_fn_error $? "conditional \"WANT_BSDUDP_SECURITY\" was never defined.
51680Usually this means the macro was only invoked conditionally." "$LINENO" 5
51681fi
51682if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
51683  as_fn_error $? "conditional \"WANT_RSH_SECURITY\" was never defined.
51684Usually this means the macro was only invoked conditionally." "$LINENO" 5
51685fi
51686if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
51687  as_fn_error $? "conditional \"WANT_SSH_SECURITY\" was never defined.
51688Usually this means the macro was only invoked conditionally." "$LINENO" 5
51689fi
51690if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
51691  as_fn_error $? "conditional \"WANT_KRB5_SECURITY\" was never defined.
51692Usually this means the macro was only invoked conditionally." "$LINENO" 5
51693fi
51694if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
51695  as_fn_error $? "conditional \"WANT_SAMBA\" was never defined.
51696Usually this means the macro was only invoked conditionally." "$LINENO" 5
51697fi
51698
51699if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
51700  as_fn_error $? "conditional \"GCC_COMPILER\" was never defined.
51701Usually this means the macro was only invoked conditionally." "$LINENO" 5
51702fi
51703if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
51704  as_fn_error $? "conditional \"WANT_S3_DEVICE\" was never defined.
51705Usually this means the macro was only invoked conditionally." "$LINENO" 5
51706fi
51707if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
51708  as_fn_error $? "conditional \"WANT_TAPE_DEVICE\" was never defined.
51709Usually this means the macro was only invoked conditionally." "$LINENO" 5
51710fi
51711if test -z "${WANT_DVDRW_DEVICE_TRUE}" && test -z "${WANT_DVDRW_DEVICE_FALSE}"; then
51712  as_fn_error $? "conditional \"WANT_DVDRW_DEVICE\" was never defined.
51713Usually this means the macro was only invoked conditionally." "$LINENO" 5
51714fi
51715if test -z "${WANT_NDMP_DEVICE_TRUE}" && test -z "${WANT_NDMP_DEVICE_FALSE}"; then
51716  as_fn_error $? "conditional \"WANT_NDMP_DEVICE\" was never defined.
51717Usually this means the macro was only invoked conditionally." "$LINENO" 5
51718fi
51719
51720: "${CONFIG_STATUS=./config.status}"
51721ac_write_fail=0
51722ac_clean_files_save=$ac_clean_files
51723ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51724{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
51725$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
51726as_write_fail=0
51727cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
51728#! $SHELL
51729# Generated by $as_me.
51730# Run this file to recreate the current configuration.
51731# Compiler output produced by configure, useful for debugging
51732# configure, is in config.log if it exists.
51733
51734debug=false
51735ac_cs_recheck=false
51736ac_cs_silent=false
51737
51738SHELL=\${CONFIG_SHELL-$SHELL}
51739export SHELL
51740_ASEOF
51741cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
51742## -------------------- ##
51743## M4sh Initialization. ##
51744## -------------------- ##
51745
51746# Be more Bourne compatible
51747DUALCASE=1; export DUALCASE # for MKS sh
51748if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
51749  emulate sh
51750  NULLCMD=:
51751  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
51752  # is contrary to our usage.  Disable this feature.
51753  alias -g '${1+"$@"}'='"$@"'
51754  setopt NO_GLOB_SUBST
51755else
51756  case `(set -o) 2>/dev/null` in #(
51757  *posix*) :
51758    set -o posix ;; #(
51759  *) :
51760     ;;
51761esac
51762fi
51763
51764
51765as_nl='
51766'
51767export as_nl
51768# Printing a long string crashes Solaris 7 /usr/bin/printf.
51769as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
51770as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
51771as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51772# Prefer a ksh shell builtin over an external printf program on Solaris,
51773# but without wasting forks for bash or zsh.
51774if test -z "$BASH_VERSION$ZSH_VERSION" \
51775    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51776  as_echo='print -r --'
51777  as_echo_n='print -rn --'
51778elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51779  as_echo='printf %s\n'
51780  as_echo_n='printf %s'
51781else
51782  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
51783    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
51784    as_echo_n='/usr/ucb/echo -n'
51785  else
51786    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
51787    as_echo_n_body='eval
51788      arg=$1;
51789      case $arg in #(
51790      *"$as_nl"*)
51791	expr "X$arg" : "X\\(.*\\)$as_nl";
51792	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
51793      esac;
51794      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
51795    '
51796    export as_echo_n_body
51797    as_echo_n='sh -c $as_echo_n_body as_echo'
51798  fi
51799  export as_echo_body
51800  as_echo='sh -c $as_echo_body as_echo'
51801fi
51802
51803# The user is always right.
51804if test "${PATH_SEPARATOR+set}" != set; then
51805  PATH_SEPARATOR=:
51806  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
51807    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
51808      PATH_SEPARATOR=';'
51809  }
51810fi
51811
51812
51813# IFS
51814# We need space, tab and new line, in precisely that order.  Quoting is
51815# there to prevent editors from complaining about space-tab.
51816# (If _AS_PATH_WALK were called with IFS unset, it would disable word
51817# splitting by setting IFS to empty value.)
51818IFS=" ""	$as_nl"
51819
51820# Find who we are.  Look in the path if we contain no directory separator.
51821as_myself=
51822case $0 in #((
51823  *[\\/]* ) as_myself=$0 ;;
51824  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51825for as_dir in $PATH
51826do
51827  IFS=$as_save_IFS
51828  test -z "$as_dir" && as_dir=.
51829    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51830  done
51831IFS=$as_save_IFS
51832
51833     ;;
51834esac
51835# We did not find ourselves, most probably we were run as `sh COMMAND'
51836# in which case we are not to be found in the path.
51837if test "x$as_myself" = x; then
51838  as_myself=$0
51839fi
51840if test ! -f "$as_myself"; then
51841  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
51842  exit 1
51843fi
51844
51845# Unset variables that we do not need and which cause bugs (e.g. in
51846# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
51847# suppresses any "Segmentation fault" message there.  '((' could
51848# trigger a bug in pdksh 5.2.14.
51849for as_var in BASH_ENV ENV MAIL MAILPATH
51850do eval test x\${$as_var+set} = xset \
51851  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
51852done
51853PS1='$ '
51854PS2='> '
51855PS4='+ '
51856
51857# NLS nuisances.
51858LC_ALL=C
51859export LC_ALL
51860LANGUAGE=C
51861export LANGUAGE
51862
51863# CDPATH.
51864(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
51865
51866
51867# as_fn_error STATUS ERROR [LINENO LOG_FD]
51868# ----------------------------------------
51869# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
51870# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
51871# script with STATUS, using 1 if that was 0.
51872as_fn_error ()
51873{
51874  as_status=$1; test $as_status -eq 0 && as_status=1
51875  if test "$4"; then
51876    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
51877    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
51878  fi
51879  $as_echo "$as_me: error: $2" >&2
51880  as_fn_exit $as_status
51881} # as_fn_error
51882
51883
51884# as_fn_set_status STATUS
51885# -----------------------
51886# Set $? to STATUS, without forking.
51887as_fn_set_status ()
51888{
51889  return $1
51890} # as_fn_set_status
51891
51892# as_fn_exit STATUS
51893# -----------------
51894# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
51895as_fn_exit ()
51896{
51897  set +e
51898  as_fn_set_status $1
51899  exit $1
51900} # as_fn_exit
51901
51902# as_fn_unset VAR
51903# ---------------
51904# Portably unset VAR.
51905as_fn_unset ()
51906{
51907  { eval $1=; unset $1;}
51908}
51909as_unset=as_fn_unset
51910# as_fn_append VAR VALUE
51911# ----------------------
51912# Append the text in VALUE to the end of the definition contained in VAR. Take
51913# advantage of any shell optimizations that allow amortized linear growth over
51914# repeated appends, instead of the typical quadratic growth present in naive
51915# implementations.
51916if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
51917  eval 'as_fn_append ()
51918  {
51919    eval $1+=\$2
51920  }'
51921else
51922  as_fn_append ()
51923  {
51924    eval $1=\$$1\$2
51925  }
51926fi # as_fn_append
51927
51928# as_fn_arith ARG...
51929# ------------------
51930# Perform arithmetic evaluation on the ARGs, and store the result in the
51931# global $as_val. Take advantage of shells that can avoid forks. The arguments
51932# must be portable across $(()) and expr.
51933if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
51934  eval 'as_fn_arith ()
51935  {
51936    as_val=$(( $* ))
51937  }'
51938else
51939  as_fn_arith ()
51940  {
51941    as_val=`expr "$@" || test $? -eq 1`
51942  }
51943fi # as_fn_arith
51944
51945
51946if expr a : '\(a\)' >/dev/null 2>&1 &&
51947   test "X`expr 00001 : '.*\(...\)'`" = X001; then
51948  as_expr=expr
51949else
51950  as_expr=false
51951fi
51952
51953if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
51954  as_basename=basename
51955else
51956  as_basename=false
51957fi
51958
51959if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
51960  as_dirname=dirname
51961else
51962  as_dirname=false
51963fi
51964
51965as_me=`$as_basename -- "$0" ||
51966$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51967	 X"$0" : 'X\(//\)$' \| \
51968	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
51969$as_echo X/"$0" |
51970    sed '/^.*\/\([^/][^/]*\)\/*$/{
51971	    s//\1/
51972	    q
51973	  }
51974	  /^X\/\(\/\/\)$/{
51975	    s//\1/
51976	    q
51977	  }
51978	  /^X\/\(\/\).*/{
51979	    s//\1/
51980	    q
51981	  }
51982	  s/.*/./; q'`
51983
51984# Avoid depending upon Character Ranges.
51985as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51986as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51987as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51988as_cr_digits='0123456789'
51989as_cr_alnum=$as_cr_Letters$as_cr_digits
51990
51991ECHO_C= ECHO_N= ECHO_T=
51992case `echo -n x` in #(((((
51993-n*)
51994  case `echo 'xy\c'` in
51995  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
51996  xy)  ECHO_C='\c';;
51997  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
51998       ECHO_T='	';;
51999  esac;;
52000*)
52001  ECHO_N='-n';;
52002esac
52003
52004rm -f conf$$ conf$$.exe conf$$.file
52005if test -d conf$$.dir; then
52006  rm -f conf$$.dir/conf$$.file
52007else
52008  rm -f conf$$.dir
52009  mkdir conf$$.dir 2>/dev/null
52010fi
52011if (echo >conf$$.file) 2>/dev/null; then
52012  if ln -s conf$$.file conf$$ 2>/dev/null; then
52013    as_ln_s='ln -s'
52014    # ... but there are two gotchas:
52015    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
52016    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
52017    # In both cases, we have to default to `cp -pR'.
52018    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
52019      as_ln_s='cp -pR'
52020  elif ln conf$$.file conf$$ 2>/dev/null; then
52021    as_ln_s=ln
52022  else
52023    as_ln_s='cp -pR'
52024  fi
52025else
52026  as_ln_s='cp -pR'
52027fi
52028rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
52029rmdir conf$$.dir 2>/dev/null
52030
52031
52032# as_fn_mkdir_p
52033# -------------
52034# Create "$as_dir" as a directory, including parents if necessary.
52035as_fn_mkdir_p ()
52036{
52037
52038  case $as_dir in #(
52039  -*) as_dir=./$as_dir;;
52040  esac
52041  test -d "$as_dir" || eval $as_mkdir_p || {
52042    as_dirs=
52043    while :; do
52044      case $as_dir in #(
52045      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
52046      *) as_qdir=$as_dir;;
52047      esac
52048      as_dirs="'$as_qdir' $as_dirs"
52049      as_dir=`$as_dirname -- "$as_dir" ||
52050$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52051	 X"$as_dir" : 'X\(//\)[^/]' \| \
52052	 X"$as_dir" : 'X\(//\)$' \| \
52053	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52054$as_echo X"$as_dir" |
52055    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52056	    s//\1/
52057	    q
52058	  }
52059	  /^X\(\/\/\)[^/].*/{
52060	    s//\1/
52061	    q
52062	  }
52063	  /^X\(\/\/\)$/{
52064	    s//\1/
52065	    q
52066	  }
52067	  /^X\(\/\).*/{
52068	    s//\1/
52069	    q
52070	  }
52071	  s/.*/./; q'`
52072      test -d "$as_dir" && break
52073    done
52074    test -z "$as_dirs" || eval "mkdir $as_dirs"
52075  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
52076
52077
52078} # as_fn_mkdir_p
52079if mkdir -p . 2>/dev/null; then
52080  as_mkdir_p='mkdir -p "$as_dir"'
52081else
52082  test -d ./-p && rmdir ./-p
52083  as_mkdir_p=false
52084fi
52085
52086
52087# as_fn_executable_p FILE
52088# -----------------------
52089# Test if FILE is an executable regular file.
52090as_fn_executable_p ()
52091{
52092  test -f "$1" && test -x "$1"
52093} # as_fn_executable_p
52094as_test_x='test -x'
52095as_executable_p=as_fn_executable_p
52096
52097# Sed expression to map a string onto a valid CPP name.
52098as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
52099
52100# Sed expression to map a string onto a valid variable name.
52101as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
52102
52103
52104exec 6>&1
52105## ----------------------------------- ##
52106## Main body of $CONFIG_STATUS script. ##
52107## ----------------------------------- ##
52108_ASEOF
52109test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
52110
52111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52112# Save the log message, to keep $0 and so on meaningful, and to
52113# report actual input values of CONFIG_FILES etc. instead of their
52114# values after options handling.
52115ac_log="
52116This file was extended by amanda $as_me 3.3.9, which was
52117generated by GNU Autoconf 2.69.  Invocation command line was
52118
52119  CONFIG_FILES    = $CONFIG_FILES
52120  CONFIG_HEADERS  = $CONFIG_HEADERS
52121  CONFIG_LINKS    = $CONFIG_LINKS
52122  CONFIG_COMMANDS = $CONFIG_COMMANDS
52123  $ $0 $@
52124
52125on `(hostname || uname -n) 2>/dev/null | sed 1q`
52126"
52127
52128_ACEOF
52129
52130case $ac_config_files in *"
52131"*) set x $ac_config_files; shift; ac_config_files=$*;;
52132esac
52133
52134case $ac_config_headers in *"
52135"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
52136esac
52137
52138
52139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52140# Files that config.status was made for.
52141config_files="$ac_config_files"
52142config_headers="$ac_config_headers"
52143config_commands="$ac_config_commands"
52144
52145_ACEOF
52146
52147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52148ac_cs_usage="\
52149\`$as_me' instantiates files and other configuration actions
52150from templates according to the current configuration.  Unless the files
52151and actions are specified as TAGs, all are instantiated by default.
52152
52153Usage: $0 [OPTION]... [TAG]...
52154
52155  -h, --help       print this help, then exit
52156  -V, --version    print version number and configuration settings, then exit
52157      --config     print configuration, then exit
52158  -q, --quiet, --silent
52159                   do not print progress messages
52160  -d, --debug      don't remove temporary files
52161      --recheck    update $as_me by reconfiguring in the same conditions
52162      --file=FILE[:TEMPLATE]
52163                   instantiate the configuration file FILE
52164      --header=FILE[:TEMPLATE]
52165                   instantiate the configuration header FILE
52166
52167Configuration files:
52168$config_files
52169
52170Configuration headers:
52171$config_headers
52172
52173Configuration commands:
52174$config_commands
52175
52176Report bugs to the package provider."
52177
52178_ACEOF
52179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52180ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
52181ac_cs_version="\\
52182amanda config.status 3.3.9
52183configured by $0, generated by GNU Autoconf 2.69,
52184  with options \\"\$ac_cs_config\\"
52185
52186Copyright (C) 2012 Free Software Foundation, Inc.
52187This config.status script is free software; the Free Software Foundation
52188gives unlimited permission to copy, distribute and modify it."
52189
52190ac_pwd='$ac_pwd'
52191srcdir='$srcdir'
52192INSTALL='$INSTALL'
52193MKDIR_P='$MKDIR_P'
52194AWK='$AWK'
52195test -n "\$AWK" || AWK=awk
52196_ACEOF
52197
52198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52199# The default lists apply if the user does not specify any file.
52200ac_need_defaults=:
52201while test $# != 0
52202do
52203  case $1 in
52204  --*=?*)
52205    ac_option=`expr "X$1" : 'X\([^=]*\)='`
52206    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
52207    ac_shift=:
52208    ;;
52209  --*=)
52210    ac_option=`expr "X$1" : 'X\([^=]*\)='`
52211    ac_optarg=
52212    ac_shift=:
52213    ;;
52214  *)
52215    ac_option=$1
52216    ac_optarg=$2
52217    ac_shift=shift
52218    ;;
52219  esac
52220
52221  case $ac_option in
52222  # Handling of the options.
52223  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
52224    ac_cs_recheck=: ;;
52225  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
52226    $as_echo "$ac_cs_version"; exit ;;
52227  --config | --confi | --conf | --con | --co | --c )
52228    $as_echo "$ac_cs_config"; exit ;;
52229  --debug | --debu | --deb | --de | --d | -d )
52230    debug=: ;;
52231  --file | --fil | --fi | --f )
52232    $ac_shift
52233    case $ac_optarg in
52234    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
52235    '') as_fn_error $? "missing file argument" ;;
52236    esac
52237    as_fn_append CONFIG_FILES " '$ac_optarg'"
52238    ac_need_defaults=false;;
52239  --header | --heade | --head | --hea )
52240    $ac_shift
52241    case $ac_optarg in
52242    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
52243    esac
52244    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
52245    ac_need_defaults=false;;
52246  --he | --h)
52247    # Conflict between --help and --header
52248    as_fn_error $? "ambiguous option: \`$1'
52249Try \`$0 --help' for more information.";;
52250  --help | --hel | -h )
52251    $as_echo "$ac_cs_usage"; exit ;;
52252  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
52253  | -silent | --silent | --silen | --sile | --sil | --si | --s)
52254    ac_cs_silent=: ;;
52255
52256  # This is an error.
52257  -*) as_fn_error $? "unrecognized option: \`$1'
52258Try \`$0 --help' for more information." ;;
52259
52260  *) as_fn_append ac_config_targets " $1"
52261     ac_need_defaults=false ;;
52262
52263  esac
52264  shift
52265done
52266
52267ac_configure_extra_args=
52268
52269if $ac_cs_silent; then
52270  exec 6>/dev/null
52271  ac_configure_extra_args="$ac_configure_extra_args --silent"
52272fi
52273
52274_ACEOF
52275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52276if \$ac_cs_recheck; then
52277  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
52278  shift
52279  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
52280  CONFIG_SHELL='$SHELL'
52281  export CONFIG_SHELL
52282  exec "\$@"
52283fi
52284
52285_ACEOF
52286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52287exec 5>>config.log
52288{
52289  echo
52290  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
52291## Running $as_me. ##
52292_ASBOX
52293  $as_echo "$ac_log"
52294} >&5
52295
52296_ACEOF
52297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52298#
52299# INIT-COMMANDS
52300#
52301AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
52302# Capture the value of obsolete ALL_LINGUAS because we need it to compute
52303    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
52304    # from automake < 1.5.
52305    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
52306    # Capture the value of LINGUAS because we need it to compute CATALOGS.
52307    LINGUAS="${LINGUAS-%UNSET%}"
52308
52309
52310
52311# The HP-UX ksh and POSIX shell print the target directory to stdout
52312# if CDPATH is set.
52313(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
52314
52315sed_quote_subst='$sed_quote_subst'
52316double_quote_subst='$double_quote_subst'
52317delay_variable_subst='$delay_variable_subst'
52318macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
52319macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
52320enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
52321enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
52322pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
52323enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
52324shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
52325SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
52326ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
52327PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
52328host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
52329host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
52330host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
52331build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
52332build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
52333build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
52334SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
52335Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
52336GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
52337EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
52338FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
52339LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
52340NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
52341LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
52342max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
52343ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
52344exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
52345lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
52346lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
52347lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
52348lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
52349lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
52350reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
52351reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
52352OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
52353deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
52354file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
52355file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
52356want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
52357DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
52358sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
52359AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
52360AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
52361archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
52362STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
52363RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
52364old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
52365old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
52366old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
52367lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
52368CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
52369CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
52370compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
52371GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
52372lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
52373lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
52374lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
52375lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
52376lt_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"`'
52377lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
52378nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
52379lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
52380lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
52381objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
52382MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
52383lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
52384lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
52385lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
52386lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
52387lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
52388need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
52389MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
52390DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
52391NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
52392LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
52393OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
52394OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
52395libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
52396shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
52397extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
52398archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
52399enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
52400export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
52401whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
52402compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
52403old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
52404old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
52405archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
52406archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
52407module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
52408module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
52409with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
52410allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
52411no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
52412hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
52413hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
52414hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
52415hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
52416hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
52417hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
52418hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
52419inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
52420link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
52421always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
52422export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
52423exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
52424include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
52425prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
52426postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
52427file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
52428variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
52429need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
52430need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
52431version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
52432runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
52433shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
52434shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
52435libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
52436library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
52437soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
52438install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
52439postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
52440postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
52441finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
52442finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
52443hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
52444sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
52445configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
52446configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
52447hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
52448enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
52449enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
52450enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
52451old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
52452striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
52453
52454LTCC='$LTCC'
52455LTCFLAGS='$LTCFLAGS'
52456compiler='$compiler_DEFAULT'
52457
52458# A function that is used when there is no print builtin or printf.
52459func_fallback_echo ()
52460{
52461  eval 'cat <<_LTECHO_EOF
52462\$1
52463_LTECHO_EOF'
52464}
52465
52466# Quote evaled strings.
52467for var in SHELL \
52468ECHO \
52469PATH_SEPARATOR \
52470SED \
52471GREP \
52472EGREP \
52473FGREP \
52474LD \
52475NM \
52476LN_S \
52477lt_SP2NL \
52478lt_NL2SP \
52479reload_flag \
52480OBJDUMP \
52481deplibs_check_method \
52482file_magic_cmd \
52483file_magic_glob \
52484want_nocaseglob \
52485DLLTOOL \
52486sharedlib_from_linklib_cmd \
52487AR \
52488AR_FLAGS \
52489archiver_list_spec \
52490STRIP \
52491RANLIB \
52492CC \
52493CFLAGS \
52494compiler \
52495lt_cv_sys_global_symbol_pipe \
52496lt_cv_sys_global_symbol_to_cdecl \
52497lt_cv_sys_global_symbol_to_import \
52498lt_cv_sys_global_symbol_to_c_name_address \
52499lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
52500lt_cv_nm_interface \
52501nm_file_list_spec \
52502lt_cv_truncate_bin \
52503lt_prog_compiler_no_builtin_flag \
52504lt_prog_compiler_pic \
52505lt_prog_compiler_wl \
52506lt_prog_compiler_static \
52507lt_cv_prog_compiler_c_o \
52508need_locks \
52509MANIFEST_TOOL \
52510DSYMUTIL \
52511NMEDIT \
52512LIPO \
52513OTOOL \
52514OTOOL64 \
52515shrext_cmds \
52516export_dynamic_flag_spec \
52517whole_archive_flag_spec \
52518compiler_needs_object \
52519with_gnu_ld \
52520allow_undefined_flag \
52521no_undefined_flag \
52522hardcode_libdir_flag_spec \
52523hardcode_libdir_separator \
52524exclude_expsyms \
52525include_expsyms \
52526file_list_spec \
52527variables_saved_for_relink \
52528libname_spec \
52529library_names_spec \
52530soname_spec \
52531install_override_mode \
52532finish_eval \
52533old_striplib \
52534striplib; do
52535    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
52536    *[\\\\\\\`\\"\\\$]*)
52537      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
52538      ;;
52539    *)
52540      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
52541      ;;
52542    esac
52543done
52544
52545# Double-quote double-evaled strings.
52546for var in reload_cmds \
52547old_postinstall_cmds \
52548old_postuninstall_cmds \
52549old_archive_cmds \
52550extract_expsyms_cmds \
52551old_archive_from_new_cmds \
52552old_archive_from_expsyms_cmds \
52553archive_cmds \
52554archive_expsym_cmds \
52555module_cmds \
52556module_expsym_cmds \
52557export_symbols_cmds \
52558prelink_cmds \
52559postlink_cmds \
52560postinstall_cmds \
52561postuninstall_cmds \
52562finish_cmds \
52563sys_lib_search_path_spec \
52564configure_time_dlsearch_path \
52565configure_time_lt_sys_library_path; do
52566    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
52567    *[\\\\\\\`\\"\\\$]*)
52568      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
52569      ;;
52570    *)
52571      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
52572      ;;
52573    esac
52574done
52575
52576ac_aux_dir='$ac_aux_dir'
52577
52578# See if we are running on zsh, and set the options that allow our
52579# commands through without removal of \ escapes INIT.
52580if test -n "\${ZSH_VERSION+set}"; then
52581   setopt NO_GLOB_SUBST
52582fi
52583
52584
52585    PACKAGE='$PACKAGE'
52586    VERSION='$VERSION'
52587    RM='$RM'
52588    ofile='$ofile'
52589
52590
52591
52592
52593_ACEOF
52594
52595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52596
52597# Handling of arguments.
52598for ac_config_target in $ac_config_targets
52599do
52600  case $ac_config_target in
52601    "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
52602    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
52603    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
52604    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
52605    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
52606    "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
52607    "amar-src/Makefile") CONFIG_FILES="$CONFIG_FILES amar-src/Makefile" ;;
52608    "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
52609    "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
52610    "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
52611    "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
52612    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
52613    "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
52614    "application-src/Makefile") CONFIG_FILES="$CONFIG_FILES application-src/Makefile" ;;
52615    "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
52616    "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
52617    "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
52618    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
52619    "ndmp-src/Makefile") CONFIG_FILES="$CONFIG_FILES ndmp-src/Makefile" ;;
52620    "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
52621    "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
52622    "perl/amglue/Makefile") CONFIG_FILES="$CONFIG_FILES perl/amglue/Makefile" ;;
52623    "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
52624    "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
52625    "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
52626    "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
52627    "xfer-src/Makefile") CONFIG_FILES="$CONFIG_FILES xfer-src/Makefile" ;;
52628
52629  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
52630  esac
52631done
52632
52633
52634# If the user did not use the arguments to specify the items to instantiate,
52635# then the envvar interface is used.  Set only those that are not.
52636# We use the long form for the default assignment because of an extremely
52637# bizarre bug on SunOS 4.1.3.
52638if $ac_need_defaults; then
52639  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
52640  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
52641  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
52642fi
52643
52644# Have a temporary directory for convenience.  Make it in the build tree
52645# simply because there is no reason against having it here, and in addition,
52646# creating and moving files from /tmp can sometimes cause problems.
52647# Hook for its removal unless debugging.
52648# Note that there is a small window in which the directory will not be cleaned:
52649# after its creation but before its name has been assigned to `$tmp'.
52650$debug ||
52651{
52652  tmp= ac_tmp=
52653  trap 'exit_status=$?
52654  : "${ac_tmp:=$tmp}"
52655  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
52656' 0
52657  trap 'as_fn_exit 1' 1 2 13 15
52658}
52659# Create a (secure) tmp directory for tmp files.
52660
52661{
52662  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
52663  test -d "$tmp"
52664}  ||
52665{
52666  tmp=./conf$$-$RANDOM
52667  (umask 077 && mkdir "$tmp")
52668} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
52669ac_tmp=$tmp
52670
52671# Set up the scripts for CONFIG_FILES section.
52672# No need to generate them if there are no CONFIG_FILES.
52673# This happens for instance with `./config.status config.h'.
52674if test -n "$CONFIG_FILES"; then
52675
52676
52677ac_cr=`echo X | tr X '\015'`
52678# On cygwin, bash can eat \r inside `` if the user requested igncr.
52679# But we know of no other shell where ac_cr would be empty at this
52680# point, so we can use a bashism as a fallback.
52681if test "x$ac_cr" = x; then
52682  eval ac_cr=\$\'\\r\'
52683fi
52684ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
52685if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
52686  ac_cs_awk_cr='\\r'
52687else
52688  ac_cs_awk_cr=$ac_cr
52689fi
52690
52691echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
52692_ACEOF
52693
52694
52695{
52696  echo "cat >conf$$subs.awk <<_ACEOF" &&
52697  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
52698  echo "_ACEOF"
52699} >conf$$subs.sh ||
52700  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
52701ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
52702ac_delim='%!_!# '
52703for ac_last_try in false false false false false :; do
52704  . ./conf$$subs.sh ||
52705    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
52706
52707  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
52708  if test $ac_delim_n = $ac_delim_num; then
52709    break
52710  elif $ac_last_try; then
52711    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
52712  else
52713    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52714  fi
52715done
52716rm -f conf$$subs.sh
52717
52718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52719cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
52720_ACEOF
52721sed -n '
52722h
52723s/^/S["/; s/!.*/"]=/
52724p
52725g
52726s/^[^!]*!//
52727:repl
52728t repl
52729s/'"$ac_delim"'$//
52730t delim
52731:nl
52732h
52733s/\(.\{148\}\)..*/\1/
52734t more1
52735s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
52736p
52737n
52738b repl
52739:more1
52740s/["\\]/\\&/g; s/^/"/; s/$/"\\/
52741p
52742g
52743s/.\{148\}//
52744t nl
52745:delim
52746h
52747s/\(.\{148\}\)..*/\1/
52748t more2
52749s/["\\]/\\&/g; s/^/"/; s/$/"/
52750p
52751b
52752:more2
52753s/["\\]/\\&/g; s/^/"/; s/$/"\\/
52754p
52755g
52756s/.\{148\}//
52757t delim
52758' <conf$$subs.awk | sed '
52759/^[^""]/{
52760  N
52761  s/\n//
52762}
52763' >>$CONFIG_STATUS || ac_write_fail=1
52764rm -f conf$$subs.awk
52765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52766_ACAWK
52767cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
52768  for (key in S) S_is_set[key] = 1
52769  FS = ""
52770
52771}
52772{
52773  line = $ 0
52774  nfields = split(line, field, "@")
52775  substed = 0
52776  len = length(field[1])
52777  for (i = 2; i < nfields; i++) {
52778    key = field[i]
52779    keylen = length(key)
52780    if (S_is_set[key]) {
52781      value = S[key]
52782      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
52783      len += length(value) + length(field[++i])
52784      substed = 1
52785    } else
52786      len += 1 + keylen
52787  }
52788
52789  print line
52790}
52791
52792_ACAWK
52793_ACEOF
52794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52795if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
52796  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
52797else
52798  cat
52799fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
52800  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
52801_ACEOF
52802
52803# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
52804# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
52805# trailing colons and then remove the whole line if VPATH becomes empty
52806# (actually we leave an empty line to preserve line numbers).
52807if test "x$srcdir" = x.; then
52808  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
52809h
52810s///
52811s/^/:/
52812s/[	 ]*$/:/
52813s/:\$(srcdir):/:/g
52814s/:\${srcdir}:/:/g
52815s/:@srcdir@:/:/g
52816s/^:*//
52817s/:*$//
52818x
52819s/\(=[	 ]*\).*/\1/
52820G
52821s/\n//
52822s/^[^=]*=[	 ]*$//
52823}'
52824fi
52825
52826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52827fi # test -n "$CONFIG_FILES"
52828
52829# Set up the scripts for CONFIG_HEADERS section.
52830# No need to generate them if there are no CONFIG_HEADERS.
52831# This happens for instance with `./config.status Makefile'.
52832if test -n "$CONFIG_HEADERS"; then
52833cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
52834BEGIN {
52835_ACEOF
52836
52837# Transform confdefs.h into an awk script `defines.awk', embedded as
52838# here-document in config.status, that substitutes the proper values into
52839# config.h.in to produce config.h.
52840
52841# Create a delimiter string that does not exist in confdefs.h, to ease
52842# handling of long lines.
52843ac_delim='%!_!# '
52844for ac_last_try in false false :; do
52845  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
52846  if test -z "$ac_tt"; then
52847    break
52848  elif $ac_last_try; then
52849    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
52850  else
52851    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52852  fi
52853done
52854
52855# For the awk script, D is an array of macro values keyed by name,
52856# likewise P contains macro parameters if any.  Preserve backslash
52857# newline sequences.
52858
52859ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
52860sed -n '
52861s/.\{148\}/&'"$ac_delim"'/g
52862t rset
52863:rset
52864s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
52865t def
52866d
52867:def
52868s/\\$//
52869t bsnl
52870s/["\\]/\\&/g
52871s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
52872D["\1"]=" \3"/p
52873s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
52874d
52875:bsnl
52876s/["\\]/\\&/g
52877s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
52878D["\1"]=" \3\\\\\\n"\\/p
52879t cont
52880s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
52881t cont
52882d
52883:cont
52884n
52885s/.\{148\}/&'"$ac_delim"'/g
52886t clear
52887:clear
52888s/\\$//
52889t bsnlc
52890s/["\\]/\\&/g; s/^/"/; s/$/"/p
52891d
52892:bsnlc
52893s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
52894b cont
52895' <confdefs.h | sed '
52896s/'"$ac_delim"'/"\\\
52897"/g' >>$CONFIG_STATUS || ac_write_fail=1
52898
52899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52900  for (key in D) D_is_set[key] = 1
52901  FS = ""
52902}
52903/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
52904  line = \$ 0
52905  split(line, arg, " ")
52906  if (arg[1] == "#") {
52907    defundef = arg[2]
52908    mac1 = arg[3]
52909  } else {
52910    defundef = substr(arg[1], 2)
52911    mac1 = arg[2]
52912  }
52913  split(mac1, mac2, "(") #)
52914  macro = mac2[1]
52915  prefix = substr(line, 1, index(line, defundef) - 1)
52916  if (D_is_set[macro]) {
52917    # Preserve the white space surrounding the "#".
52918    print prefix "define", macro P[macro] D[macro]
52919    next
52920  } else {
52921    # Replace #undef with comments.  This is necessary, for example,
52922    # in the case of _POSIX_SOURCE, which is predefined and required
52923    # on some systems where configure will not decide to define it.
52924    if (defundef == "undef") {
52925      print "/*", prefix defundef, macro, "*/"
52926      next
52927    }
52928  }
52929}
52930{ print }
52931_ACAWK
52932_ACEOF
52933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52934  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
52935fi # test -n "$CONFIG_HEADERS"
52936
52937
52938eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
52939shift
52940for ac_tag
52941do
52942  case $ac_tag in
52943  :[FHLC]) ac_mode=$ac_tag; continue;;
52944  esac
52945  case $ac_mode$ac_tag in
52946  :[FHL]*:*);;
52947  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
52948  :[FH]-) ac_tag=-:-;;
52949  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
52950  esac
52951  ac_save_IFS=$IFS
52952  IFS=:
52953  set x $ac_tag
52954  IFS=$ac_save_IFS
52955  shift
52956  ac_file=$1
52957  shift
52958
52959  case $ac_mode in
52960  :L) ac_source=$1;;
52961  :[FH])
52962    ac_file_inputs=
52963    for ac_f
52964    do
52965      case $ac_f in
52966      -) ac_f="$ac_tmp/stdin";;
52967      *) # Look for the file first in the build tree, then in the source tree
52968	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
52969	 # because $ac_f cannot contain `:'.
52970	 test -f "$ac_f" ||
52971	   case $ac_f in
52972	   [\\/$]*) false;;
52973	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
52974	   esac ||
52975	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
52976      esac
52977      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
52978      as_fn_append ac_file_inputs " '$ac_f'"
52979    done
52980
52981    # Let's still pretend it is `configure' which instantiates (i.e., don't
52982    # use $as_me), people would be surprised to read:
52983    #    /* config.h.  Generated by config.status.  */
52984    configure_input='Generated from '`
52985	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
52986	`' by configure.'
52987    if test x"$ac_file" != x-; then
52988      configure_input="$ac_file.  $configure_input"
52989      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
52990$as_echo "$as_me: creating $ac_file" >&6;}
52991    fi
52992    # Neutralize special characters interpreted by sed in replacement strings.
52993    case $configure_input in #(
52994    *\&* | *\|* | *\\* )
52995       ac_sed_conf_input=`$as_echo "$configure_input" |
52996       sed 's/[\\\\&|]/\\\\&/g'`;; #(
52997    *) ac_sed_conf_input=$configure_input;;
52998    esac
52999
53000    case $ac_tag in
53001    *:-:* | *:-) cat >"$ac_tmp/stdin" \
53002      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
53003    esac
53004    ;;
53005  esac
53006
53007  ac_dir=`$as_dirname -- "$ac_file" ||
53008$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53009	 X"$ac_file" : 'X\(//\)[^/]' \| \
53010	 X"$ac_file" : 'X\(//\)$' \| \
53011	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
53012$as_echo X"$ac_file" |
53013    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53014	    s//\1/
53015	    q
53016	  }
53017	  /^X\(\/\/\)[^/].*/{
53018	    s//\1/
53019	    q
53020	  }
53021	  /^X\(\/\/\)$/{
53022	    s//\1/
53023	    q
53024	  }
53025	  /^X\(\/\).*/{
53026	    s//\1/
53027	    q
53028	  }
53029	  s/.*/./; q'`
53030  as_dir="$ac_dir"; as_fn_mkdir_p
53031  ac_builddir=.
53032
53033case "$ac_dir" in
53034.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
53035*)
53036  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
53037  # A ".." for each directory in $ac_dir_suffix.
53038  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
53039  case $ac_top_builddir_sub in
53040  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
53041  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
53042  esac ;;
53043esac
53044ac_abs_top_builddir=$ac_pwd
53045ac_abs_builddir=$ac_pwd$ac_dir_suffix
53046# for backward compatibility:
53047ac_top_builddir=$ac_top_build_prefix
53048
53049case $srcdir in
53050  .)  # We are building in place.
53051    ac_srcdir=.
53052    ac_top_srcdir=$ac_top_builddir_sub
53053    ac_abs_top_srcdir=$ac_pwd ;;
53054  [\\/]* | ?:[\\/]* )  # Absolute name.
53055    ac_srcdir=$srcdir$ac_dir_suffix;
53056    ac_top_srcdir=$srcdir
53057    ac_abs_top_srcdir=$srcdir ;;
53058  *) # Relative name.
53059    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
53060    ac_top_srcdir=$ac_top_build_prefix$srcdir
53061    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
53062esac
53063ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
53064
53065
53066  case $ac_mode in
53067  :F)
53068  #
53069  # CONFIG_FILE
53070  #
53071
53072  case $INSTALL in
53073  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
53074  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
53075  esac
53076  ac_MKDIR_P=$MKDIR_P
53077  case $MKDIR_P in
53078  [\\/$]* | ?:[\\/]* ) ;;
53079  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
53080  esac
53081_ACEOF
53082
53083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
53084# If the template does not know about datarootdir, expand it.
53085# FIXME: This hack should be removed a few years after 2.60.
53086ac_datarootdir_hack=; ac_datarootdir_seen=
53087ac_sed_dataroot='
53088/datarootdir/ {
53089  p
53090  q
53091}
53092/@datadir@/p
53093/@docdir@/p
53094/@infodir@/p
53095/@localedir@/p
53096/@mandir@/p'
53097case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
53098*datarootdir*) ac_datarootdir_seen=yes;;
53099*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
53100  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
53101$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
53102_ACEOF
53103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
53104  ac_datarootdir_hack='
53105  s&@datadir@&$datadir&g
53106  s&@docdir@&$docdir&g
53107  s&@infodir@&$infodir&g
53108  s&@localedir@&$localedir&g
53109  s&@mandir@&$mandir&g
53110  s&\\\${datarootdir}&$datarootdir&g' ;;
53111esac
53112_ACEOF
53113
53114# Neutralize VPATH when `$srcdir' = `.'.
53115# Shell code in configure.ac might set extrasub.
53116# FIXME: do we really want to maintain this feature?
53117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
53118ac_sed_extra="$ac_vpsub
53119$extrasub
53120_ACEOF
53121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
53122:t
53123/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53124s|@configure_input@|$ac_sed_conf_input|;t t
53125s&@top_builddir@&$ac_top_builddir_sub&;t t
53126s&@top_build_prefix@&$ac_top_build_prefix&;t t
53127s&@srcdir@&$ac_srcdir&;t t
53128s&@abs_srcdir@&$ac_abs_srcdir&;t t
53129s&@top_srcdir@&$ac_top_srcdir&;t t
53130s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
53131s&@builddir@&$ac_builddir&;t t
53132s&@abs_builddir@&$ac_abs_builddir&;t t
53133s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
53134s&@INSTALL@&$ac_INSTALL&;t t
53135s&@MKDIR_P@&$ac_MKDIR_P&;t t
53136$ac_datarootdir_hack
53137"
53138eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
53139  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
53140
53141test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
53142  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
53143  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
53144      "$ac_tmp/out"`; test -z "$ac_out"; } &&
53145  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
53146which seems to be undefined.  Please make sure it is defined" >&5
53147$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
53148which seems to be undefined.  Please make sure it is defined" >&2;}
53149
53150  rm -f "$ac_tmp/stdin"
53151  case $ac_file in
53152  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
53153  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
53154  esac \
53155  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
53156 ;;
53157  :H)
53158  #
53159  # CONFIG_HEADER
53160  #
53161  if test x"$ac_file" != x-; then
53162    {
53163      $as_echo "/* $configure_input  */" \
53164      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
53165    } >"$ac_tmp/config.h" \
53166      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
53167    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
53168      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
53169$as_echo "$as_me: $ac_file is unchanged" >&6;}
53170    else
53171      rm -f "$ac_file"
53172      mv "$ac_tmp/config.h" "$ac_file" \
53173	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
53174    fi
53175  else
53176    $as_echo "/* $configure_input  */" \
53177      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
53178      || as_fn_error $? "could not create -" "$LINENO" 5
53179  fi
53180# Compute "$ac_file"'s index in $config_headers.
53181_am_arg="$ac_file"
53182_am_stamp_count=1
53183for _am_header in $config_headers :; do
53184  case $_am_header in
53185    $_am_arg | $_am_arg:* )
53186      break ;;
53187    * )
53188      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
53189  esac
53190done
53191echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
53192$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53193	 X"$_am_arg" : 'X\(//\)[^/]' \| \
53194	 X"$_am_arg" : 'X\(//\)$' \| \
53195	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
53196$as_echo X"$_am_arg" |
53197    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53198	    s//\1/
53199	    q
53200	  }
53201	  /^X\(\/\/\)[^/].*/{
53202	    s//\1/
53203	    q
53204	  }
53205	  /^X\(\/\/\)$/{
53206	    s//\1/
53207	    q
53208	  }
53209	  /^X\(\/\).*/{
53210	    s//\1/
53211	    q
53212	  }
53213	  s/.*/./; q'`/stamp-h$_am_stamp_count
53214 ;;
53215
53216  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
53217$as_echo "$as_me: executing $ac_file commands" >&6;}
53218 ;;
53219  esac
53220
53221
53222  case $ac_file$ac_mode in
53223    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
53224  # Older Autoconf quotes --file arguments for eval, but not when files
53225  # are listed without --file.  Let's play safe and only enable the eval
53226  # if we detect the quoting.
53227  case $CONFIG_FILES in
53228  *\'*) eval set x "$CONFIG_FILES" ;;
53229  *)   set x $CONFIG_FILES ;;
53230  esac
53231  shift
53232  for mf
53233  do
53234    # Strip MF so we end up with the name of the file.
53235    mf=`echo "$mf" | sed -e 's/:.*$//'`
53236    # Check whether this is an Automake generated Makefile or not.
53237    # We used to match only the files named 'Makefile.in', but
53238    # some people rename them; so instead we look at the file content.
53239    # Grep'ing the first line is not enough: some people post-process
53240    # each Makefile.in and add a new line on top of each file to say so.
53241    # Grep'ing the whole file is not good either: AIX grep has a line
53242    # limit of 2048, but all sed's we know have understand at least 4000.
53243    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
53244      dirpart=`$as_dirname -- "$mf" ||
53245$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53246	 X"$mf" : 'X\(//\)[^/]' \| \
53247	 X"$mf" : 'X\(//\)$' \| \
53248	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
53249$as_echo X"$mf" |
53250    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53251	    s//\1/
53252	    q
53253	  }
53254	  /^X\(\/\/\)[^/].*/{
53255	    s//\1/
53256	    q
53257	  }
53258	  /^X\(\/\/\)$/{
53259	    s//\1/
53260	    q
53261	  }
53262	  /^X\(\/\).*/{
53263	    s//\1/
53264	    q
53265	  }
53266	  s/.*/./; q'`
53267    else
53268      continue
53269    fi
53270    # Extract the definition of DEPDIR, am__include, and am__quote
53271    # from the Makefile without running 'make'.
53272    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
53273    test -z "$DEPDIR" && continue
53274    am__include=`sed -n 's/^am__include = //p' < "$mf"`
53275    test -z "$am__include" && continue
53276    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
53277    # Find all dependency output files, they are included files with
53278    # $(DEPDIR) in their names.  We invoke sed twice because it is the
53279    # simplest approach to changing $(DEPDIR) to its actual value in the
53280    # expansion.
53281    for file in `sed -n "
53282      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
53283	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
53284      # Make sure the directory exists.
53285      test -f "$dirpart/$file" && continue
53286      fdir=`$as_dirname -- "$file" ||
53287$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53288	 X"$file" : 'X\(//\)[^/]' \| \
53289	 X"$file" : 'X\(//\)$' \| \
53290	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
53291$as_echo X"$file" |
53292    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53293	    s//\1/
53294	    q
53295	  }
53296	  /^X\(\/\/\)[^/].*/{
53297	    s//\1/
53298	    q
53299	  }
53300	  /^X\(\/\/\)$/{
53301	    s//\1/
53302	    q
53303	  }
53304	  /^X\(\/\).*/{
53305	    s//\1/
53306	    q
53307	  }
53308	  s/.*/./; q'`
53309      as_dir=$dirpart/$fdir; as_fn_mkdir_p
53310      # echo "creating $dirpart/$file"
53311      echo '# dummy' > "$dirpart/$file"
53312    done
53313  done
53314}
53315 ;;
53316    "po-directories":C)
53317    for ac_file in $CONFIG_FILES; do
53318      # Support "outfile[:infile[:infile...]]"
53319      case "$ac_file" in
53320        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
53321      esac
53322      # PO directories have a Makefile.in generated from Makefile.in.in.
53323      case "$ac_file" in */Makefile.in)
53324        # Adjust a relative srcdir.
53325        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
53326        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
53327        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
53328        # In autoconf-2.13 it is called $ac_given_srcdir.
53329        # In autoconf-2.50 it is called $srcdir.
53330        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
53331        case "$ac_given_srcdir" in
53332          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
53333          /*) top_srcdir="$ac_given_srcdir" ;;
53334          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
53335        esac
53336        # Treat a directory as a PO directory if and only if it has a
53337        # POTFILES.in file. This allows packages to have multiple PO
53338        # directories under different names or in different locations.
53339        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
53340          rm -f "$ac_dir/POTFILES"
53341          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
53342          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
53343          POMAKEFILEDEPS="POTFILES.in"
53344          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
53345          # on $ac_dir but don't depend on user-specified configuration
53346          # parameters.
53347          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
53348            # The LINGUAS file contains the set of available languages.
53349            if test -n "$OBSOLETE_ALL_LINGUAS"; then
53350              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
53351            fi
53352            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
53353            # Hide the ALL_LINGUAS assigment from automake < 1.5.
53354            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
53355            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
53356          else
53357            # The set of available languages was given in configure.in.
53358            # Hide the ALL_LINGUAS assigment from automake < 1.5.
53359            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
53360          fi
53361          # Compute POFILES
53362          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
53363          # Compute UPDATEPOFILES
53364          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
53365          # Compute DUMMYPOFILES
53366          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
53367          # Compute GMOFILES
53368          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
53369          case "$ac_given_srcdir" in
53370            .) srcdirpre= ;;
53371            *) srcdirpre='$(srcdir)/' ;;
53372          esac
53373          POFILES=
53374          UPDATEPOFILES=
53375          DUMMYPOFILES=
53376          GMOFILES=
53377          for lang in $ALL_LINGUAS; do
53378            POFILES="$POFILES $srcdirpre$lang.po"
53379            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
53380            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
53381            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
53382          done
53383          # CATALOGS depends on both $ac_dir and the user's LINGUAS
53384          # environment variable.
53385          INST_LINGUAS=
53386          if test -n "$ALL_LINGUAS"; then
53387            for presentlang in $ALL_LINGUAS; do
53388              useit=no
53389              if test "%UNSET%" != "$LINGUAS"; then
53390                desiredlanguages="$LINGUAS"
53391              else
53392                desiredlanguages="$ALL_LINGUAS"
53393              fi
53394              for desiredlang in $desiredlanguages; do
53395                # Use the presentlang catalog if desiredlang is
53396                #   a. equal to presentlang, or
53397                #   b. a variant of presentlang (because in this case,
53398                #      presentlang can be used as a fallback for messages
53399                #      which are not translated in the desiredlang catalog).
53400                case "$desiredlang" in
53401                  "$presentlang"*) useit=yes;;
53402                esac
53403              done
53404              if test $useit = yes; then
53405                INST_LINGUAS="$INST_LINGUAS $presentlang"
53406              fi
53407            done
53408          fi
53409          CATALOGS=
53410          if test -n "$INST_LINGUAS"; then
53411            for lang in $INST_LINGUAS; do
53412              CATALOGS="$CATALOGS $lang.gmo"
53413            done
53414          fi
53415          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
53416          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"
53417          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
53418            if test -f "$f"; then
53419              case "$f" in
53420                *.orig | *.bak | *~) ;;
53421                *) cat "$f" >> "$ac_dir/Makefile" ;;
53422              esac
53423            fi
53424          done
53425        fi
53426        ;;
53427      esac
53428    done ;;
53429    "libtool":C)
53430
53431    # See if we are running on zsh, and set the options that allow our
53432    # commands through without removal of \ escapes.
53433    if test -n "${ZSH_VERSION+set}"; then
53434      setopt NO_GLOB_SUBST
53435    fi
53436
53437    cfgfile=${ofile}T
53438    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
53439    $RM "$cfgfile"
53440
53441    cat <<_LT_EOF >> "$cfgfile"
53442#! $SHELL
53443# Generated automatically by $as_me ($PACKAGE) $VERSION
53444# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
53445# NOTE: Changes made to this file will be lost: look at ltmain.sh.
53446
53447# Provide generalized library-building support services.
53448# Written by Gordon Matzigkeit, 1996
53449
53450# Copyright (C) 2014 Free Software Foundation, Inc.
53451# This is free software; see the source for copying conditions.  There is NO
53452# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
53453
53454# GNU Libtool is free software; you can redistribute it and/or modify
53455# it under the terms of the GNU General Public License as published by
53456# the Free Software Foundation; either version 2 of of the License, or
53457# (at your option) any later version.
53458#
53459# As a special exception to the GNU General Public License, if you
53460# distribute this file as part of a program or library that is built
53461# using GNU Libtool, you may include this file under the  same
53462# distribution terms that you use for the rest of that program.
53463#
53464# GNU Libtool is distributed in the hope that it will be useful, but
53465# WITHOUT ANY WARRANTY; without even the implied warranty of
53466# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
53467# GNU General Public License for more details.
53468#
53469# You should have received a copy of the GNU General Public License
53470# along with this program.  If not, see <http://www.gnu.org/licenses/>.
53471
53472
53473# The names of the tagged configurations supported by this script.
53474available_tags=''
53475
53476# Configured defaults for sys_lib_dlsearch_path munging.
53477: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
53478
53479# ### BEGIN LIBTOOL CONFIG
53480
53481# Which release of libtool.m4 was used?
53482macro_version=$macro_version
53483macro_revision=$macro_revision
53484
53485# Whether or not to build shared libraries.
53486build_libtool_libs=$enable_shared
53487
53488# Whether or not to build static libraries.
53489build_old_libs=$enable_static
53490
53491# What type of objects to build.
53492pic_mode=$pic_mode
53493
53494# Whether or not to optimize for fast installation.
53495fast_install=$enable_fast_install
53496
53497# Shared archive member basename,for filename based shared library versioning on AIX.
53498shared_archive_member_spec=$shared_archive_member_spec
53499
53500# Shell to use when invoking shell scripts.
53501SHELL=$lt_SHELL
53502
53503# An echo program that protects backslashes.
53504ECHO=$lt_ECHO
53505
53506# The PATH separator for the build system.
53507PATH_SEPARATOR=$lt_PATH_SEPARATOR
53508
53509# The host system.
53510host_alias=$host_alias
53511host=$host
53512host_os=$host_os
53513
53514# The build system.
53515build_alias=$build_alias
53516build=$build
53517build_os=$build_os
53518
53519# A sed program that does not truncate output.
53520SED=$lt_SED
53521
53522# Sed that helps us avoid accidentally triggering echo(1) options like -n.
53523Xsed="\$SED -e 1s/^X//"
53524
53525# A grep program that handles long lines.
53526GREP=$lt_GREP
53527
53528# An ERE matcher.
53529EGREP=$lt_EGREP
53530
53531# A literal string matcher.
53532FGREP=$lt_FGREP
53533
53534# A BSD- or MS-compatible name lister.
53535NM=$lt_NM
53536
53537# Whether we need soft or hard links.
53538LN_S=$lt_LN_S
53539
53540# What is the maximum length of a command?
53541max_cmd_len=$max_cmd_len
53542
53543# Object file suffix (normally "o").
53544objext=$ac_objext
53545
53546# Executable file suffix (normally "").
53547exeext=$exeext
53548
53549# whether the shell understands "unset".
53550lt_unset=$lt_unset
53551
53552# turn spaces into newlines.
53553SP2NL=$lt_lt_SP2NL
53554
53555# turn newlines into spaces.
53556NL2SP=$lt_lt_NL2SP
53557
53558# convert \$build file names to \$host format.
53559to_host_file_cmd=$lt_cv_to_host_file_cmd
53560
53561# convert \$build files to toolchain format.
53562to_tool_file_cmd=$lt_cv_to_tool_file_cmd
53563
53564# An object symbol dumper.
53565OBJDUMP=$lt_OBJDUMP
53566
53567# Method to check whether dependent libraries are shared objects.
53568deplibs_check_method=$lt_deplibs_check_method
53569
53570# Command to use when deplibs_check_method = "file_magic".
53571file_magic_cmd=$lt_file_magic_cmd
53572
53573# How to find potential files when deplibs_check_method = "file_magic".
53574file_magic_glob=$lt_file_magic_glob
53575
53576# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
53577want_nocaseglob=$lt_want_nocaseglob
53578
53579# DLL creation program.
53580DLLTOOL=$lt_DLLTOOL
53581
53582# Command to associate shared and link libraries.
53583sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
53584
53585# The archiver.
53586AR=$lt_AR
53587
53588# Flags to create an archive.
53589AR_FLAGS=$lt_AR_FLAGS
53590
53591# How to feed a file listing to the archiver.
53592archiver_list_spec=$lt_archiver_list_spec
53593
53594# A symbol stripping program.
53595STRIP=$lt_STRIP
53596
53597# Commands used to install an old-style archive.
53598RANLIB=$lt_RANLIB
53599old_postinstall_cmds=$lt_old_postinstall_cmds
53600old_postuninstall_cmds=$lt_old_postuninstall_cmds
53601
53602# Whether to use a lock for old archive extraction.
53603lock_old_archive_extraction=$lock_old_archive_extraction
53604
53605# A C compiler.
53606LTCC=$lt_CC
53607
53608# LTCC compiler flags.
53609LTCFLAGS=$lt_CFLAGS
53610
53611# Take the output of nm and produce a listing of raw symbols and C names.
53612global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
53613
53614# Transform the output of nm in a proper C declaration.
53615global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
53616
53617# Transform the output of nm into a list of symbols to manually relocate.
53618global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
53619
53620# Transform the output of nm in a C name address pair.
53621global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
53622
53623# Transform the output of nm in a C name address pair when lib prefix is needed.
53624global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
53625
53626# The name lister interface.
53627nm_interface=$lt_lt_cv_nm_interface
53628
53629# Specify filename containing input files for \$NM.
53630nm_file_list_spec=$lt_nm_file_list_spec
53631
53632# The root where to search for dependent libraries,and where our libraries should be installed.
53633lt_sysroot=$lt_sysroot
53634
53635# Command to truncate a binary pipe.
53636lt_truncate_bin=$lt_lt_cv_truncate_bin
53637
53638# The name of the directory that contains temporary libtool files.
53639objdir=$objdir
53640
53641# Used to examine libraries when file_magic_cmd begins with "file".
53642MAGIC_CMD=$MAGIC_CMD
53643
53644# Must we lock files when doing compilation?
53645need_locks=$lt_need_locks
53646
53647# Manifest tool.
53648MANIFEST_TOOL=$lt_MANIFEST_TOOL
53649
53650# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
53651DSYMUTIL=$lt_DSYMUTIL
53652
53653# Tool to change global to local symbols on Mac OS X.
53654NMEDIT=$lt_NMEDIT
53655
53656# Tool to manipulate fat objects and archives on Mac OS X.
53657LIPO=$lt_LIPO
53658
53659# ldd/readelf like tool for Mach-O binaries on Mac OS X.
53660OTOOL=$lt_OTOOL
53661
53662# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
53663OTOOL64=$lt_OTOOL64
53664
53665# Old archive suffix (normally "a").
53666libext=$libext
53667
53668# Shared library suffix (normally ".so").
53669shrext_cmds=$lt_shrext_cmds
53670
53671# The commands to extract the exported symbol list from a shared archive.
53672extract_expsyms_cmds=$lt_extract_expsyms_cmds
53673
53674# Variables whose values should be saved in libtool wrapper scripts and
53675# restored at link time.
53676variables_saved_for_relink=$lt_variables_saved_for_relink
53677
53678# Do we need the "lib" prefix for modules?
53679need_lib_prefix=$need_lib_prefix
53680
53681# Do we need a version for libraries?
53682need_version=$need_version
53683
53684# Library versioning type.
53685version_type=$version_type
53686
53687# Shared library runtime path variable.
53688runpath_var=$runpath_var
53689
53690# Shared library path variable.
53691shlibpath_var=$shlibpath_var
53692
53693# Is shlibpath searched before the hard-coded library search path?
53694shlibpath_overrides_runpath=$shlibpath_overrides_runpath
53695
53696# Format of library name prefix.
53697libname_spec=$lt_libname_spec
53698
53699# List of archive names.  First name is the real one, the rest are links.
53700# The last name is the one that the linker finds with -lNAME
53701library_names_spec=$lt_library_names_spec
53702
53703# The coded name of the library, if different from the real name.
53704soname_spec=$lt_soname_spec
53705
53706# Permission mode override for installation of shared libraries.
53707install_override_mode=$lt_install_override_mode
53708
53709# Command to use after installation of a shared archive.
53710postinstall_cmds=$lt_postinstall_cmds
53711
53712# Command to use after uninstallation of a shared archive.
53713postuninstall_cmds=$lt_postuninstall_cmds
53714
53715# Commands used to finish a libtool library installation in a directory.
53716finish_cmds=$lt_finish_cmds
53717
53718# As "finish_cmds", except a single script fragment to be evaled but
53719# not shown.
53720finish_eval=$lt_finish_eval
53721
53722# Whether we should hardcode library paths into libraries.
53723hardcode_into_libs=$hardcode_into_libs
53724
53725# Compile-time system search path for libraries.
53726sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
53727
53728# Detected run-time system search path for libraries.
53729sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
53730
53731# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
53732configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
53733
53734# Whether dlopen is supported.
53735dlopen_support=$enable_dlopen
53736
53737# Whether dlopen of programs is supported.
53738dlopen_self=$enable_dlopen_self
53739
53740# Whether dlopen of statically linked programs is supported.
53741dlopen_self_static=$enable_dlopen_self_static
53742
53743# Commands to strip libraries.
53744old_striplib=$lt_old_striplib
53745striplib=$lt_striplib
53746
53747
53748# The linker used to build libraries.
53749LD=$lt_LD
53750
53751# How to create reloadable object files.
53752reload_flag=$lt_reload_flag
53753reload_cmds=$lt_reload_cmds
53754
53755# Commands used to build an old-style archive.
53756old_archive_cmds=$lt_old_archive_cmds
53757
53758# A language specific compiler.
53759CC=$lt_compiler
53760
53761# Is the compiler the GNU compiler?
53762with_gcc=$GCC
53763
53764# Compiler flag to turn off builtin functions.
53765no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
53766
53767# Additional compiler flags for building library objects.
53768pic_flag=$lt_lt_prog_compiler_pic
53769
53770# How to pass a linker flag through the compiler.
53771wl=$lt_lt_prog_compiler_wl
53772
53773# Compiler flag to prevent dynamic linking.
53774link_static_flag=$lt_lt_prog_compiler_static
53775
53776# Does compiler simultaneously support -c and -o options?
53777compiler_c_o=$lt_lt_cv_prog_compiler_c_o
53778
53779# Whether or not to add -lc for building shared libraries.
53780build_libtool_need_lc=$archive_cmds_need_lc
53781
53782# Whether or not to disallow shared libs when runtime libs are static.
53783allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
53784
53785# Compiler flag to allow reflexive dlopens.
53786export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
53787
53788# Compiler flag to generate shared objects directly from archives.
53789whole_archive_flag_spec=$lt_whole_archive_flag_spec
53790
53791# Whether the compiler copes with passing no objects directly.
53792compiler_needs_object=$lt_compiler_needs_object
53793
53794# Create an old-style archive from a shared archive.
53795old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
53796
53797# Create a temporary old-style archive to link instead of a shared archive.
53798old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
53799
53800# Commands used to build a shared archive.
53801archive_cmds=$lt_archive_cmds
53802archive_expsym_cmds=$lt_archive_expsym_cmds
53803
53804# Commands used to build a loadable module if different from building
53805# a shared archive.
53806module_cmds=$lt_module_cmds
53807module_expsym_cmds=$lt_module_expsym_cmds
53808
53809# Whether we are building with GNU ld or not.
53810with_gnu_ld=$lt_with_gnu_ld
53811
53812# Flag that allows shared libraries with undefined symbols to be built.
53813allow_undefined_flag=$lt_allow_undefined_flag
53814
53815# Flag that enforces no undefined symbols.
53816no_undefined_flag=$lt_no_undefined_flag
53817
53818# Flag to hardcode \$libdir into a binary during linking.
53819# This must work even if \$libdir does not exist
53820hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
53821
53822# Whether we need a single "-rpath" flag with a separated argument.
53823hardcode_libdir_separator=$lt_hardcode_libdir_separator
53824
53825# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
53826# DIR into the resulting binary.
53827hardcode_direct=$hardcode_direct
53828
53829# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
53830# DIR into the resulting binary and the resulting library dependency is
53831# "absolute",i.e impossible to change by setting \$shlibpath_var if the
53832# library is relocated.
53833hardcode_direct_absolute=$hardcode_direct_absolute
53834
53835# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
53836# into the resulting binary.
53837hardcode_minus_L=$hardcode_minus_L
53838
53839# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
53840# into the resulting binary.
53841hardcode_shlibpath_var=$hardcode_shlibpath_var
53842
53843# Set to "yes" if building a shared library automatically hardcodes DIR
53844# into the library and all subsequent libraries and executables linked
53845# against it.
53846hardcode_automatic=$hardcode_automatic
53847
53848# Set to yes if linker adds runtime paths of dependent libraries
53849# to runtime path list.
53850inherit_rpath=$inherit_rpath
53851
53852# Whether libtool must link a program against all its dependency libraries.
53853link_all_deplibs=$link_all_deplibs
53854
53855# Set to "yes" if exported symbols are required.
53856always_export_symbols=$always_export_symbols
53857
53858# The commands to list exported symbols.
53859export_symbols_cmds=$lt_export_symbols_cmds
53860
53861# Symbols that should not be listed in the preloaded symbols.
53862exclude_expsyms=$lt_exclude_expsyms
53863
53864# Symbols that must always be exported.
53865include_expsyms=$lt_include_expsyms
53866
53867# Commands necessary for linking programs (against libraries) with templates.
53868prelink_cmds=$lt_prelink_cmds
53869
53870# Commands necessary for finishing linking programs.
53871postlink_cmds=$lt_postlink_cmds
53872
53873# Specify filename containing input files.
53874file_list_spec=$lt_file_list_spec
53875
53876# How to hardcode a shared library path into an executable.
53877hardcode_action=$hardcode_action
53878
53879# ### END LIBTOOL CONFIG
53880
53881_LT_EOF
53882
53883    cat <<'_LT_EOF' >> "$cfgfile"
53884
53885# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
53886
53887# func_munge_path_list VARIABLE PATH
53888# -----------------------------------
53889# VARIABLE is name of variable containing _space_ separated list of
53890# directories to be munged by the contents of PATH, which is string
53891# having a format:
53892# "DIR[:DIR]:"
53893#       string "DIR[ DIR]" will be prepended to VARIABLE
53894# ":DIR[:DIR]"
53895#       string "DIR[ DIR]" will be appended to VARIABLE
53896# "DIRP[:DIRP]::[DIRA:]DIRA"
53897#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
53898#       "DIRA[ DIRA]" will be appended to VARIABLE
53899# "DIR[:DIR]"
53900#       VARIABLE will be replaced by "DIR[ DIR]"
53901func_munge_path_list ()
53902{
53903    case x$2 in
53904    x)
53905        ;;
53906    *:)
53907        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
53908        ;;
53909    x:*)
53910        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
53911        ;;
53912    *::*)
53913        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
53914        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
53915        ;;
53916    *)
53917        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
53918        ;;
53919    esac
53920}
53921
53922
53923# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
53924func_cc_basename ()
53925{
53926    for cc_temp in $*""; do
53927      case $cc_temp in
53928        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
53929        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
53930        \-*) ;;
53931        *) break;;
53932      esac
53933    done
53934    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
53935}
53936
53937
53938# ### END FUNCTIONS SHARED WITH CONFIGURE
53939
53940_LT_EOF
53941
53942  case $host_os in
53943  aix3*)
53944    cat <<\_LT_EOF >> "$cfgfile"
53945# AIX sometimes has problems with the GCC collect2 program.  For some
53946# reason, if we set the COLLECT_NAMES environment variable, the problems
53947# vanish in a puff of smoke.
53948if test set != "${COLLECT_NAMES+set}"; then
53949  COLLECT_NAMES=
53950  export COLLECT_NAMES
53951fi
53952_LT_EOF
53953    ;;
53954  esac
53955
53956
53957ltmain=$ac_aux_dir/ltmain.sh
53958
53959
53960  # We use sed instead of cat because bash on DJGPP gets confused if
53961  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
53962  # text mode, it properly converts lines to CR/LF.  This bash problem
53963  # is reportedly fixed, but why not run on old versions too?
53964  sed '$q' "$ltmain" >> "$cfgfile" \
53965     || (rm -f "$cfgfile"; exit 1)
53966
53967   mv -f "$cfgfile" "$ofile" ||
53968    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
53969  chmod +x "$ofile"
53970
53971 ;;
53972
53973  esac
53974done # for ac_tag
53975
53976
53977as_fn_exit 0
53978_ACEOF
53979ac_clean_files=$ac_clean_files_save
53980
53981test $ac_write_fail = 0 ||
53982  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
53983
53984
53985# configure is writing to config.log, and then calls config.status.
53986# config.status does its own redirection, appending to config.log.
53987# Unfortunately, on DOS this fails, as config.log is still kept open
53988# by configure, so config.status won't be able to write to it; its
53989# output is simply discarded.  So we exec the FD to /dev/null,
53990# effectively closing config.log, so it can be properly (re)opened and
53991# appended to by config.status.  When coming back to configure, we
53992# need to make the FD available again.
53993if test "$no_create" != yes; then
53994  ac_cs_success=:
53995  ac_config_status_args=
53996  test "$silent" = yes &&
53997    ac_config_status_args="$ac_config_status_args --quiet"
53998  exec 5>/dev/null
53999  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54000  exec 5>>config.log
54001  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54002  # would make configure fail if this is the last instruction.
54003  $ac_cs_success || as_fn_exit 1
54004fi
54005if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
54006  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
54007$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
54008fi
54009
54010
54011
54012    echo "Compiler Flags:"
54013    echo "  CFLAGS: ${CFLAGS-(none)}"
54014    echo "  CPPFLAGS: ${CPPFLAGS-(none)}"
54015    echo "  LDFLAGS: ${LDFLAGS-(none)}"
54016    echo "  LIBS: ${LIBS-(none)}"
54017
54018
54019    echo "Amanda Components:$AMANDA_COMPONENTS$missing_components"
54020
54021
54022    echo "Working IPv6:" $WORKING_IPV6
54023
54024
54025    echo "Build documentation:" $ENABLE_MANPAGE_BUILD
54026
54027
54028    echo "Directories:"
54029    echo "  Application: $APPLICATION_DIR"
54030    echo "  Configuration: $CONFIG_DIR"
54031    echo "  GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
54032    echo "  Perl modules (amperldir): $amperldir"
54033    echo "  Template and example data files (amdatadir): $amdatadir"
54034    echo "  Temporary: $AMANDA_TMPDIR"
54035
54036    if test -f config.warnings; then
54037	echo "WARNINGS:"
54038	cat config.warnings | sed -e 's/^/  /g'
54039	rm config.warnings
54040    fi
54041
54042