1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.53.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Find the correct PATH separator.  Usually this is `:', but
11# DJGPP uses `;' like DOS.
12if test "X${PATH_SEPARATOR+set}" != Xset; then
13  UNAME=${UNAME-`uname 2>/dev/null`}
14  case X$UNAME in
15    *-DOS) lt_cv_sys_path_separator=';' ;;
16    *)     lt_cv_sys_path_separator=':' ;;
17  esac
18  PATH_SEPARATOR=$lt_cv_sys_path_separator
19fi
20
21
22# Check that we are running under the correct shell.
23SHELL=${CONFIG_SHELL-/bin/sh}
24
25case X$ECHO in
26X*--fallback-echo)
27  # Remove one level of quotation (which was required for Make).
28  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
29  ;;
30esac
31
32echo=${ECHO-echo}
33if test "X$1" = X--no-reexec; then
34  # Discard the --no-reexec flag, and continue.
35  shift
36elif test "X$1" = X--fallback-echo; then
37  # Avoid inline document here, it may be left over
38  :
39elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
40  # Yippee, $echo works!
41  :
42else
43  # Restart under the correct shell.
44  exec $SHELL "$0" --no-reexec ${1+"$@"}
45fi
46
47if test "X$1" = X--fallback-echo; then
48  # used as fallback echo
49  shift
50  cat <<EOF
51
52EOF
53  exit 0
54fi
55
56# The HP-UX ksh and POSIX shell print the target directory to stdout
57# if CDPATH is set.
58if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
59
60if test -z "$ECHO"; then
61if test "X${echo_test_string+set}" != Xset; then
62# find a string as large as possible, as long as the shell can cope with it
63  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
64    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
65    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
66       echo_test_string="`eval $cmd`" &&
67       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
68    then
69      break
70    fi
71  done
72fi
73
74if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
75   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
76   test "X$echo_testing_string" = "X$echo_test_string"; then
77  :
78else
79  # The Solaris, AIX, and Digital Unix default echo programs unquote
80  # backslashes.  This makes it impossible to quote backslashes using
81  #   echo "$something" | sed 's/\\/\\\\/g'
82  #
83  # So, first we look for a working echo in the user's PATH.
84
85  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
86  for dir in $PATH /usr/ucb; do
87    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
88       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
89       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
90       test "X$echo_testing_string" = "X$echo_test_string"; then
91      echo="$dir/echo"
92      break
93    fi
94  done
95  IFS="$save_ifs"
96
97  if test "X$echo" = Xecho; then
98    # We didn't find a better echo, so look for alternatives.
99    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
100       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
101       test "X$echo_testing_string" = "X$echo_test_string"; then
102      # This shell has a builtin print -r that does the trick.
103      echo='print -r'
104    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
105	 test "X$CONFIG_SHELL" != X/bin/ksh; then
106      # If we have ksh, try running configure again with it.
107      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
108      export ORIGINAL_CONFIG_SHELL
109      CONFIG_SHELL=/bin/ksh
110      export CONFIG_SHELL
111      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
112    else
113      # Try using printf.
114      echo='printf %s\n'
115      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
116	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
117	 test "X$echo_testing_string" = "X$echo_test_string"; then
118	# Cool, printf works
119	:
120      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
121	   test "X$echo_testing_string" = 'X\t' &&
122	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
123	   test "X$echo_testing_string" = "X$echo_test_string"; then
124	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
125	export CONFIG_SHELL
126	SHELL="$CONFIG_SHELL"
127	export SHELL
128	echo="$CONFIG_SHELL $0 --fallback-echo"
129      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
130	   test "X$echo_testing_string" = 'X\t' &&
131	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
132	   test "X$echo_testing_string" = "X$echo_test_string"; then
133	echo="$CONFIG_SHELL $0 --fallback-echo"
134      else
135	# maybe with a smaller string...
136	prev=:
137
138	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
139	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
140	  then
141	    break
142	  fi
143	  prev="$cmd"
144	done
145
146	if test "$prev" != 'sed 50q "$0"'; then
147	  echo_test_string=`eval $prev`
148	  export echo_test_string
149	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
150	else
151	  # Oops.  We lost completely, so just stick with echo.
152	  echo=echo
153	fi
154      fi
155    fi
156  fi
157fi
158fi
159
160# Copy echo and quote the copy suitably for passing to libtool from
161# the Makefile, instead of quoting the original, which is used later.
162ECHO=$echo
163if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
164   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
165fi
166
167
168
169if expr a : '\(a\)' >/dev/null 2>&1; then
170  as_expr=expr
171else
172  as_expr=false
173fi
174
175
176## --------------------- ##
177## M4sh Initialization.  ##
178## --------------------- ##
179
180# Be Bourne compatible
181if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
182  emulate sh
183  NULLCMD=:
184elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
185  set -o posix
186fi
187
188# NLS nuisances.
189# Support unset when possible.
190if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
191  as_unset=unset
192else
193  as_unset=false
194fi
195
196(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
197    { $as_unset LANG || test "${LANG+set}" != set; } ||
198      { LANG=C; export LANG; }
199(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
200    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
201      { LC_ALL=C; export LC_ALL; }
202(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
203    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
204      { LC_TIME=C; export LC_TIME; }
205(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
206    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
207      { LC_CTYPE=C; export LC_CTYPE; }
208(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
209    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
210      { LANGUAGE=C; export LANGUAGE; }
211(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
212    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
213      { LC_COLLATE=C; export LC_COLLATE; }
214(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
215    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
216      { LC_NUMERIC=C; export LC_NUMERIC; }
217(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
218    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
219      { LC_MESSAGES=C; export LC_MESSAGES; }
220
221
222# Name of the executable.
223as_me=`(basename "$0") 2>/dev/null ||
224$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
225	 X"$0" : 'X\(//\)$' \| \
226	 X"$0" : 'X\(/\)$' \| \
227	 .     : '\(.\)' 2>/dev/null ||
228echo X/"$0" |
229    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
230  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
231  	  /^X\/\(\/\).*/{ s//\1/; q; }
232  	  s/.*/./; q'`
233
234# PATH needs CR, and LINENO needs CR and PATH.
235# Avoid depending upon Character Ranges.
236as_cr_letters='abcdefghijklmnopqrstuvwxyz'
237as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
238as_cr_Letters=$as_cr_letters$as_cr_LETTERS
239as_cr_digits='0123456789'
240as_cr_alnum=$as_cr_Letters$as_cr_digits
241
242# The user is always right.
243if test "${PATH_SEPARATOR+set}" != set; then
244  echo "#! /bin/sh" >conftest.sh
245  echo  "exit 0"   >>conftest.sh
246  chmod +x conftest.sh
247  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
248    PATH_SEPARATOR=';'
249  else
250    PATH_SEPARATOR=:
251  fi
252  rm -f conftest.sh
253fi
254
255
256  as_lineno_1=$LINENO
257  as_lineno_2=$LINENO
258  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
259  test "x$as_lineno_1" != "x$as_lineno_2" &&
260  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
261  # Find who we are.  Look in the path if we contain no path at all
262  # relative or not.
263  case $0 in
264    *[\\/]* ) as_myself=$0 ;;
265    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
266for as_dir in $PATH
267do
268  IFS=$as_save_IFS
269  test -z "$as_dir" && as_dir=.
270  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
271done
272
273       ;;
274  esac
275  # We did not find ourselves, most probably we were run as `sh COMMAND'
276  # in which case we are not to be found in the path.
277  if test "x$as_myself" = x; then
278    as_myself=$0
279  fi
280  if test ! -f "$as_myself"; then
281    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
282   { (exit 1); exit 1; }; }
283  fi
284  case $CONFIG_SHELL in
285  '')
286    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
287for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
288do
289  IFS=$as_save_IFS
290  test -z "$as_dir" && as_dir=.
291  for as_base in sh bash ksh sh5; do
292	 case $as_dir in
293	 /*)
294	   if ("$as_dir/$as_base" -c '
295  as_lineno_1=$LINENO
296  as_lineno_2=$LINENO
297  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
298  test "x$as_lineno_1" != "x$as_lineno_2" &&
299  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
300	     CONFIG_SHELL=$as_dir/$as_base
301	     export CONFIG_SHELL
302	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
303	   fi;;
304	 esac
305       done
306done
307;;
308  esac
309
310  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
311  # uniformly replaced by the line number.  The first 'sed' inserts a
312  # line-number line before each line; the second 'sed' does the real
313  # work.  The second script uses 'N' to pair each line-number line
314  # with the numbered line, and appends trailing '-' during
315  # substitution so that $LINENO is not a special case at line end.
316  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
317  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
318  sed '=' <$as_myself |
319    sed '
320      N
321      s,$,-,
322      : loop
323      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
324      t loop
325      s,-$,,
326      s,^['$as_cr_digits']*\n,,
327    ' >$as_me.lineno &&
328  chmod +x $as_me.lineno ||
329    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
330   { (exit 1); exit 1; }; }
331
332  # Don't try to exec as it changes $[0], causing all sort of problems
333  # (the dirname of $[0] is not the place where we might find the
334  # original and so on.  Autoconf is especially sensible to this).
335  . ./$as_me.lineno
336  # Exit status is that of the last command.
337  exit
338}
339
340
341case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
342  *c*,-n*) ECHO_N= ECHO_C='
343' ECHO_T='	' ;;
344  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
345  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
346esac
347
348if expr a : '\(a\)' >/dev/null 2>&1; then
349  as_expr=expr
350else
351  as_expr=false
352fi
353
354rm -f conf$$ conf$$.exe conf$$.file
355echo >conf$$.file
356if ln -s conf$$.file conf$$ 2>/dev/null; then
357  # We could just check for DJGPP; but this test a) works b) is more generic
358  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
359  if test -f conf$$.exe; then
360    # Don't use ln at all; we don't have any links
361    as_ln_s='cp -p'
362  else
363    as_ln_s='ln -s'
364  fi
365elif ln conf$$.file conf$$ 2>/dev/null; then
366  as_ln_s=ln
367else
368  as_ln_s='cp -p'
369fi
370rm -f conf$$ conf$$.exe conf$$.file
371
372as_executable_p="test -f"
373
374# Sed expression to map a string onto a valid CPP name.
375as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
376
377# Sed expression to map a string onto a valid variable name.
378as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
379
380
381# IFS
382# We need space, tab and new line, in precisely that order.
383as_nl='
384'
385IFS=" 	$as_nl"
386
387# CDPATH.
388$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
389
390
391# Name of the host.
392# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
393# so uname gets run too.
394ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
395
396exec 6>&1
397
398#
399# Initializations.
400#
401ac_default_prefix=/usr/local
402cross_compiling=no
403subdirs=
404MFLAGS=
405MAKEFLAGS=
406SHELL=${CONFIG_SHELL-/bin/sh}
407
408# Maximum number of lines to put in a shell here document.
409# This variable seems obsolete.  It should probably be removed, and
410# only ac_max_sed_lines should be used.
411: ${ac_max_here_lines=38}
412
413# Identity of this package.
414PACKAGE_NAME=
415PACKAGE_TARNAME=
416PACKAGE_VERSION=
417PACKAGE_STRING=
418PACKAGE_BUGREPORT=
419
420ac_unique_file="Makefile.in"
421ac_default_prefix=/usr/local
422# Factoring default headers for most tests.
423ac_includes_default="\
424#include <stdio.h>
425#if HAVE_SYS_TYPES_H
426# include <sys/types.h>
427#endif
428#if HAVE_SYS_STAT_H
429# include <sys/stat.h>
430#endif
431#if STDC_HEADERS
432# include <stdlib.h>
433# include <stddef.h>
434#else
435# if HAVE_STDLIB_H
436#  include <stdlib.h>
437# endif
438#endif
439#if HAVE_STRING_H
440# if !STDC_HEADERS && HAVE_MEMORY_H
441#  include <memory.h>
442# endif
443# include <string.h>
444#endif
445#if HAVE_STRINGS_H
446# include <strings.h>
447#endif
448#if HAVE_INTTYPES_H
449# include <inttypes.h>
450#else
451# if HAVE_STDINT_H
452#  include <stdint.h>
453# endif
454#endif
455#if HAVE_UNISTD_H
456# include <unistd.h>
457#endif"
458
459
460# Initialize some variables set by options.
461ac_init_help=
462ac_init_version=false
463# The variables have the same names as the options, with
464# dashes changed to underlines.
465cache_file=/dev/null
466exec_prefix=NONE
467no_create=
468no_recursion=
469prefix=NONE
470program_prefix=NONE
471program_suffix=NONE
472program_transform_name=s,x,x,
473silent=
474site=
475srcdir=
476verbose=
477x_includes=NONE
478x_libraries=NONE
479
480# Installation directory options.
481# These are left unexpanded so users can "make install exec_prefix=/foo"
482# and all the variables that are supposed to be based on exec_prefix
483# by default will actually change.
484# Use braces instead of parens because sh, perl, etc. also accept them.
485bindir='${exec_prefix}/bin'
486sbindir='${exec_prefix}/sbin'
487libexecdir='${exec_prefix}/libexec'
488datadir='${prefix}/share'
489sysconfdir='${prefix}/etc'
490sharedstatedir='${prefix}/com'
491localstatedir='${prefix}/var'
492libdir='${exec_prefix}/lib'
493includedir='${prefix}/include'
494oldincludedir='/usr/include'
495infodir='${prefix}/info'
496mandir='${prefix}/man'
497
498ac_prev=
499for ac_option
500do
501  # If the previous option needs an argument, assign it.
502  if test -n "$ac_prev"; then
503    eval "$ac_prev=\$ac_option"
504    ac_prev=
505    continue
506  fi
507
508  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
509
510  # Accept the important Cygnus configure options, so we can diagnose typos.
511
512  case $ac_option in
513
514  -bindir | --bindir | --bindi | --bind | --bin | --bi)
515    ac_prev=bindir ;;
516  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
517    bindir=$ac_optarg ;;
518
519  -build | --build | --buil | --bui | --bu)
520    ac_prev=build_alias ;;
521  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
522    build_alias=$ac_optarg ;;
523
524  -cache-file | --cache-file | --cache-fil | --cache-fi \
525  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
526    ac_prev=cache_file ;;
527  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
528  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
529    cache_file=$ac_optarg ;;
530
531  --config-cache | -C)
532    cache_file=config.cache ;;
533
534  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
535    ac_prev=datadir ;;
536  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
537  | --da=*)
538    datadir=$ac_optarg ;;
539
540  -disable-* | --disable-*)
541    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
542    # Reject names that are not valid shell variable names.
543    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
544      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
545   { (exit 1); exit 1; }; }
546    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
547    eval "enable_$ac_feature=no" ;;
548
549  -enable-* | --enable-*)
550    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
551    # Reject names that are not valid shell variable names.
552    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554   { (exit 1); exit 1; }; }
555    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556    case $ac_option in
557      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558      *) ac_optarg=yes ;;
559    esac
560    eval "enable_$ac_feature='$ac_optarg'" ;;
561
562  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
563  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
564  | --exec | --exe | --ex)
565    ac_prev=exec_prefix ;;
566  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
567  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
568  | --exec=* | --exe=* | --ex=*)
569    exec_prefix=$ac_optarg ;;
570
571  -gas | --gas | --ga | --g)
572    # Obsolete; use --with-gas.
573    with_gas=yes ;;
574
575  -help | --help | --hel | --he | -h)
576    ac_init_help=long ;;
577  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
578    ac_init_help=recursive ;;
579  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
580    ac_init_help=short ;;
581
582  -host | --host | --hos | --ho)
583    ac_prev=host_alias ;;
584  -host=* | --host=* | --hos=* | --ho=*)
585    host_alias=$ac_optarg ;;
586
587  -includedir | --includedir | --includedi | --included | --include \
588  | --includ | --inclu | --incl | --inc)
589    ac_prev=includedir ;;
590  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
591  | --includ=* | --inclu=* | --incl=* | --inc=*)
592    includedir=$ac_optarg ;;
593
594  -infodir | --infodir | --infodi | --infod | --info | --inf)
595    ac_prev=infodir ;;
596  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
597    infodir=$ac_optarg ;;
598
599  -libdir | --libdir | --libdi | --libd)
600    ac_prev=libdir ;;
601  -libdir=* | --libdir=* | --libdi=* | --libd=*)
602    libdir=$ac_optarg ;;
603
604  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
605  | --libexe | --libex | --libe)
606    ac_prev=libexecdir ;;
607  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
608  | --libexe=* | --libex=* | --libe=*)
609    libexecdir=$ac_optarg ;;
610
611  -localstatedir | --localstatedir | --localstatedi | --localstated \
612  | --localstate | --localstat | --localsta | --localst \
613  | --locals | --local | --loca | --loc | --lo)
614    ac_prev=localstatedir ;;
615  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
616  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
617  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
618    localstatedir=$ac_optarg ;;
619
620  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
621    ac_prev=mandir ;;
622  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
623    mandir=$ac_optarg ;;
624
625  -nfp | --nfp | --nf)
626    # Obsolete; use --without-fp.
627    with_fp=no ;;
628
629  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
630  | --no-cr | --no-c | -n)
631    no_create=yes ;;
632
633  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
634  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
635    no_recursion=yes ;;
636
637  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
638  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
639  | --oldin | --oldi | --old | --ol | --o)
640    ac_prev=oldincludedir ;;
641  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
642  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
643  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
644    oldincludedir=$ac_optarg ;;
645
646  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
647    ac_prev=prefix ;;
648  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
649    prefix=$ac_optarg ;;
650
651  -program-prefix | --program-prefix | --program-prefi | --program-pref \
652  | --program-pre | --program-pr | --program-p)
653    ac_prev=program_prefix ;;
654  -program-prefix=* | --program-prefix=* | --program-prefi=* \
655  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
656    program_prefix=$ac_optarg ;;
657
658  -program-suffix | --program-suffix | --program-suffi | --program-suff \
659  | --program-suf | --program-su | --program-s)
660    ac_prev=program_suffix ;;
661  -program-suffix=* | --program-suffix=* | --program-suffi=* \
662  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
663    program_suffix=$ac_optarg ;;
664
665  -program-transform-name | --program-transform-name \
666  | --program-transform-nam | --program-transform-na \
667  | --program-transform-n | --program-transform- \
668  | --program-transform | --program-transfor \
669  | --program-transfo | --program-transf \
670  | --program-trans | --program-tran \
671  | --progr-tra | --program-tr | --program-t)
672    ac_prev=program_transform_name ;;
673  -program-transform-name=* | --program-transform-name=* \
674  | --program-transform-nam=* | --program-transform-na=* \
675  | --program-transform-n=* | --program-transform-=* \
676  | --program-transform=* | --program-transfor=* \
677  | --program-transfo=* | --program-transf=* \
678  | --program-trans=* | --program-tran=* \
679  | --progr-tra=* | --program-tr=* | --program-t=*)
680    program_transform_name=$ac_optarg ;;
681
682  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
683  | -silent | --silent | --silen | --sile | --sil)
684    silent=yes ;;
685
686  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
687    ac_prev=sbindir ;;
688  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
689  | --sbi=* | --sb=*)
690    sbindir=$ac_optarg ;;
691
692  -sharedstatedir | --sharedstatedir | --sharedstatedi \
693  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
694  | --sharedst | --shareds | --shared | --share | --shar \
695  | --sha | --sh)
696    ac_prev=sharedstatedir ;;
697  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
698  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
699  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
700  | --sha=* | --sh=*)
701    sharedstatedir=$ac_optarg ;;
702
703  -site | --site | --sit)
704    ac_prev=site ;;
705  -site=* | --site=* | --sit=*)
706    site=$ac_optarg ;;
707
708  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
709    ac_prev=srcdir ;;
710  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
711    srcdir=$ac_optarg ;;
712
713  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
714  | --syscon | --sysco | --sysc | --sys | --sy)
715    ac_prev=sysconfdir ;;
716  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
717  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
718    sysconfdir=$ac_optarg ;;
719
720  -target | --target | --targe | --targ | --tar | --ta | --t)
721    ac_prev=target_alias ;;
722  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
723    target_alias=$ac_optarg ;;
724
725  -v | -verbose | --verbose | --verbos | --verbo | --verb)
726    verbose=yes ;;
727
728  -version | --version | --versio | --versi | --vers | -V)
729    ac_init_version=: ;;
730
731  -with-* | --with-*)
732    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
733    # Reject names that are not valid shell variable names.
734    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
735      { echo "$as_me: error: invalid package name: $ac_package" >&2
736   { (exit 1); exit 1; }; }
737    ac_package=`echo $ac_package| sed 's/-/_/g'`
738    case $ac_option in
739      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
740      *) ac_optarg=yes ;;
741    esac
742    eval "with_$ac_package='$ac_optarg'" ;;
743
744  -without-* | --without-*)
745    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
746    # Reject names that are not valid shell variable names.
747    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748      { echo "$as_me: error: invalid package name: $ac_package" >&2
749   { (exit 1); exit 1; }; }
750    ac_package=`echo $ac_package | sed 's/-/_/g'`
751    eval "with_$ac_package=no" ;;
752
753  --x)
754    # Obsolete; use --with-x.
755    with_x=yes ;;
756
757  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
758  | --x-incl | --x-inc | --x-in | --x-i)
759    ac_prev=x_includes ;;
760  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
761  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
762    x_includes=$ac_optarg ;;
763
764  -x-libraries | --x-libraries | --x-librarie | --x-librari \
765  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
766    ac_prev=x_libraries ;;
767  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
768  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
769    x_libraries=$ac_optarg ;;
770
771  -*) { echo "$as_me: error: unrecognized option: $ac_option
772Try \`$0 --help' for more information." >&2
773   { (exit 1); exit 1; }; }
774    ;;
775
776  *=*)
777    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
778    # Reject names that are not valid shell variable names.
779    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
780      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
781   { (exit 1); exit 1; }; }
782    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
783    eval "$ac_envvar='$ac_optarg'"
784    export $ac_envvar ;;
785
786  *)
787    # FIXME: should be removed in autoconf 3.0.
788    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
789    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
790      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
791    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
792    ;;
793
794  esac
795done
796
797if test -n "$ac_prev"; then
798  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
799  { echo "$as_me: error: missing argument to $ac_option" >&2
800   { (exit 1); exit 1; }; }
801fi
802
803# Be sure to have absolute paths.
804for ac_var in exec_prefix prefix
805do
806  eval ac_val=$`echo $ac_var`
807  case $ac_val in
808    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
809    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
810   { (exit 1); exit 1; }; };;
811  esac
812done
813
814# Be sure to have absolute paths.
815for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
816              localstatedir libdir includedir oldincludedir infodir mandir
817do
818  eval ac_val=$`echo $ac_var`
819  case $ac_val in
820    [\\/$]* | ?:[\\/]* ) ;;
821    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822   { (exit 1); exit 1; }; };;
823  esac
824done
825
826# There might be people who depend on the old broken behavior: `$host'
827# used to hold the argument of --host etc.
828# FIXME: To remove some day.
829build=$build_alias
830host=$host_alias
831target=$target_alias
832
833# FIXME: To remove some day.
834if test "x$host_alias" != x; then
835  if test "x$build_alias" = x; then
836    cross_compiling=maybe
837    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
838    If a cross compiler is detected then cross compile mode will be used." >&2
839  elif test "x$build_alias" != "x$host_alias"; then
840    cross_compiling=yes
841  fi
842fi
843
844ac_tool_prefix=
845test -n "$host_alias" && ac_tool_prefix=$host_alias-
846
847test "$silent" = yes && exec 6>/dev/null
848
849
850# Find the source files, if location was not specified.
851if test -z "$srcdir"; then
852  ac_srcdir_defaulted=yes
853  # Try the directory containing this script, then its parent.
854  ac_confdir=`(dirname "$0") 2>/dev/null ||
855$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
856         X"$0" : 'X\(//\)[^/]' \| \
857         X"$0" : 'X\(//\)$' \| \
858         X"$0" : 'X\(/\)' \| \
859         .     : '\(.\)' 2>/dev/null ||
860echo X"$0" |
861    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
862  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
863  	  /^X\(\/\/\)$/{ s//\1/; q; }
864  	  /^X\(\/\).*/{ s//\1/; q; }
865  	  s/.*/./; q'`
866  srcdir=$ac_confdir
867  if test ! -r $srcdir/$ac_unique_file; then
868    srcdir=..
869  fi
870else
871  ac_srcdir_defaulted=no
872fi
873if test ! -r $srcdir/$ac_unique_file; then
874  if test "$ac_srcdir_defaulted" = yes; then
875    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
876   { (exit 1); exit 1; }; }
877  else
878    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
879   { (exit 1); exit 1; }; }
880  fi
881fi
882srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
883ac_env_build_alias_set=${build_alias+set}
884ac_env_build_alias_value=$build_alias
885ac_cv_env_build_alias_set=${build_alias+set}
886ac_cv_env_build_alias_value=$build_alias
887ac_env_host_alias_set=${host_alias+set}
888ac_env_host_alias_value=$host_alias
889ac_cv_env_host_alias_set=${host_alias+set}
890ac_cv_env_host_alias_value=$host_alias
891ac_env_target_alias_set=${target_alias+set}
892ac_env_target_alias_value=$target_alias
893ac_cv_env_target_alias_set=${target_alias+set}
894ac_cv_env_target_alias_value=$target_alias
895ac_env_CC_set=${CC+set}
896ac_env_CC_value=$CC
897ac_cv_env_CC_set=${CC+set}
898ac_cv_env_CC_value=$CC
899ac_env_CFLAGS_set=${CFLAGS+set}
900ac_env_CFLAGS_value=$CFLAGS
901ac_cv_env_CFLAGS_set=${CFLAGS+set}
902ac_cv_env_CFLAGS_value=$CFLAGS
903ac_env_LDFLAGS_set=${LDFLAGS+set}
904ac_env_LDFLAGS_value=$LDFLAGS
905ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
906ac_cv_env_LDFLAGS_value=$LDFLAGS
907ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908ac_env_CPPFLAGS_value=$CPPFLAGS
909ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911ac_env_CPP_set=${CPP+set}
912ac_env_CPP_value=$CPP
913ac_cv_env_CPP_set=${CPP+set}
914ac_cv_env_CPP_value=$CPP
915
916#
917# Report the --help message.
918#
919if test "$ac_init_help" = "long"; then
920  # Omit some internal or obsolete options to make the list less imposing.
921  # This message is too long to be a string in the A/UX 3.1 sh.
922  cat <<_ACEOF
923\`configure' configures this package to adapt to many kinds of systems.
924
925Usage: $0 [OPTION]... [VAR=VALUE]...
926
927To assign environment variables (e.g., CC, CFLAGS...), specify them as
928VAR=VALUE.  See below for descriptions of some of the useful variables.
929
930Defaults for the options are specified in brackets.
931
932Configuration:
933  -h, --help              display this help and exit
934      --help=short        display options specific to this package
935      --help=recursive    display the short help of all the included packages
936  -V, --version           display version information and exit
937  -q, --quiet, --silent   do not print \`checking...' messages
938      --cache-file=FILE   cache test results in FILE [disabled]
939  -C, --config-cache      alias for \`--cache-file=config.cache'
940  -n, --no-create         do not create output files
941      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
942
943_ACEOF
944
945  cat <<_ACEOF
946Installation directories:
947  --prefix=PREFIX         install architecture-independent files in PREFIX
948                          [$ac_default_prefix]
949  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
950                          [PREFIX]
951
952By default, \`make install' will install all the files in
953\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
954an installation prefix other than \`$ac_default_prefix' using \`--prefix',
955for instance \`--prefix=\$HOME'.
956
957For better control, use the options below.
958
959Fine tuning of the installation directories:
960  --bindir=DIR           user executables [EPREFIX/bin]
961  --sbindir=DIR          system admin executables [EPREFIX/sbin]
962  --libexecdir=DIR       program executables [EPREFIX/libexec]
963  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
964  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
965  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
966  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
967  --libdir=DIR           object code libraries [EPREFIX/lib]
968  --includedir=DIR       C header files [PREFIX/include]
969  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
970  --infodir=DIR          info documentation [PREFIX/info]
971  --mandir=DIR           man documentation [PREFIX/man]
972_ACEOF
973
974  cat <<\_ACEOF
975
976System types:
977  --build=BUILD     configure for building on BUILD [guessed]
978  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
979  --target=TARGET   configure for building compilers for TARGET [HOST]
980_ACEOF
981fi
982
983if test -n "$ac_init_help"; then
984
985  cat <<\_ACEOF
986
987Optional Features:
988  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
989  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
990  --disable-setuid                  do not install client executables setuid root
991  --enable-priv_ports               require connections from privileged ports
992  --disable-force_localhost         disable force_localhost default
993  --disable-require_configfiles     client programs require lpd.conf, printcap
994  --enable-kerberos                 enable kerberos support
995  --enable-mit_kerberos4            enable MIT Kerberos 4 support
996  --disable-kerberos_checks         disable kerberos library location and checking for support
997  --disable-werror                  disable -Werror compile flag
998  --disable-strip                   disable stripping binaries by default
999  --enable-shared=PKGS  build shared libraries default=no
1000  --enable-static=PKGS  build static libraries default=yes
1001  --enable-fast-install=PKGS  optimize for fast installation default=yes
1002  --disable-libtool-lock  avoid locking (might break parallel builds)
1003  --disable-rpath         do not hardcode runtime library paths
1004  --enable-nls           use Native Language Support
1005  --enable-tcpwrappers             use tcp wrappers (-lwrap)
1006  --disable-ssl                 disable ssl support
1007
1008Optional Packages:
1009  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1010  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1011  --with-localedir=PATH   specify locale information directory
1012  --with-copts     OBSOLETE - use CFLAGS=..., see configure --help
1013  --with-ccopts    OBSOLETE - use CPPFLAGS=..., see configure --help
1014  --with-ldopts    OBSOLETE - use LDFLAGS=..., see configure --help
1015  --with-unix_socket_path=DIR         unix socket path (default /var/run/lprng)
1016  --with-lpddir=DIR                 lpd executable directory (default \${sbindir})
1017  --with-lpd_conf_path=PATH         path of lpd.conf (default: \${sysconfdir}/lpd/lpd.conf)
1018  --with-lpd_perms_path=PATH        path of lpd.perms (default: \${sysconfdir}/lpd/lpd.perms)
1019  --with-printcap_path=PATH         path of printcap (default \${sysconfdir}/printcap)
1020  --with-lpd_printcap_path=PATH     path of lpd_printcap (default \${sysconfdir}/lpd/lpd_printcap)
1021  --with-initpath=PATH              path of lpd startup file (default /usr/local/etc/rc.d/lprng.sh)
1022                                       use 'no' to disable installation and lpd startup
1023  --with-lockfile=PATH              lockfile PATH, default /var/run/lpd
1024  --with-ld_libary_path=PATH        LD_LIBRARY_PATH value, default /lib:/usr/lib:/usr/local/lib
1025  --with-filter_path=PATH           filter PATH value, default /bin:/usr/bin:/usr/local/bin
1026  --with-userid=NAME                run LPRng software as this userid, default daemon
1027  --with-groupid=NAME               run LPRng software as this groupid, default daemon
1028  --with-done_jobs=N                retain last N job status, default 1
1029  --with-done_jobs_max_age=N        retain job status N seconds, default 0 - no expiry
1030  --with-chooser_routine=NAME       load balance queue chooser routine name in user object file
1031  --with-order_routine=NAME         queue order routine name in user object file
1032  --with-user_objs=NAME             user specified object file
1033  --with-user_include=NAME          include file with function prototypes for user object file
1034  --with-filterdir=DIR              filter directory (default \${libexecdir}/filters)
1035  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1036  --with-pic              try to use only PIC/non-PIC objects default=use both
1037  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1038  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1039  --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
1040  --without-libintl-prefix     don't search for libintl in includedir and libdir
1041  --with-openssl=DIR          root location for OpenSSL
1042  --with-openssl-inc        OpenSSL include files
1043  --with-openssl-lib        OpenSSL library files
1044  --with-ssl_ca_file=FILE     ssl Certificate Authority CERT file (default \${sysconfdir}/lpd/ssl.ca/ca.crt)
1045  --with-ssl_ca_key=KEY     ssl Certificate Authority private key file (default \${sysconfdir}/lpd/ssl.ca/ca.key)
1046  --with-ssl_certs_dir=DIR     ssl Certificate Authority certs working directory (default \${sysconfdir}/lpd/ssl.certs/)
1047  --with-ssl_crl_file=PATH     ssl Certificate Revocation List File (default \${sysconfdir}/lpd/ssl.crl/ssl.crl)
1048  --with-ssl_server_cert=FILE     ssl server certificate file (default \${sysconfdir}/lpd/ssl.server/server.crt)
1049  --with-ssl_server_password_file=FILE     ssl server private key in password file (default \${sysconfdir}/lpd/ssl.server/server.pwd)
1050
1051Some influential environment variables:
1052  CC          C compiler command
1053  CFLAGS      C compiler flags
1054  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1055              nonstandard directory <lib dir>
1056  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057              headers in a nonstandard directory <include dir>
1058  CPP         C preprocessor
1059
1060Use these variables to override the choices made by `configure' or to help
1061it to find libraries and programs with nonstandard names/locations.
1062
1063_ACEOF
1064fi
1065
1066if test "$ac_init_help" = "recursive"; then
1067  # If there are subdirs, report their specific --help.
1068  ac_popdir=`pwd`
1069  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1070    test -d $ac_dir || continue
1071    ac_builddir=.
1072
1073if test "$ac_dir" != .; then
1074  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1075  # A "../" for each directory in $ac_dir_suffix.
1076  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1077else
1078  ac_dir_suffix= ac_top_builddir=
1079fi
1080
1081case $srcdir in
1082  .)  # No --srcdir option.  We are building in place.
1083    ac_srcdir=.
1084    if test -z "$ac_top_builddir"; then
1085       ac_top_srcdir=.
1086    else
1087       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1088    fi ;;
1089  [\\/]* | ?:[\\/]* )  # Absolute path.
1090    ac_srcdir=$srcdir$ac_dir_suffix;
1091    ac_top_srcdir=$srcdir ;;
1092  *) # Relative path.
1093    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1094    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1095esac
1096# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1097# absolute.
1098ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1099ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1100ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1101ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1102
1103    cd $ac_dir
1104    # Check for guested configure; otherwise get Cygnus style configure.
1105    if test -f $ac_srcdir/configure.gnu; then
1106      echo
1107      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1108    elif test -f $ac_srcdir/configure; then
1109      echo
1110      $SHELL $ac_srcdir/configure  --help=recursive
1111    elif test -f $ac_srcdir/configure.ac ||
1112           test -f $ac_srcdir/configure.in; then
1113      echo
1114      $ac_configure --help
1115    else
1116      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1117    fi
1118    cd $ac_popdir
1119  done
1120fi
1121
1122test -n "$ac_init_help" && exit 0
1123if $ac_init_version; then
1124  cat <<\_ACEOF
1125
1126Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1127Free Software Foundation, Inc.
1128This configure script is free software; the Free Software Foundation
1129gives unlimited permission to copy, distribute and modify it.
1130_ACEOF
1131  exit 0
1132fi
1133exec 5>config.log
1134cat >&5 <<_ACEOF
1135This file contains any messages produced by compilers while
1136running configure, to aid debugging if configure makes a mistake.
1137
1138It was created by $as_me, which was
1139generated by GNU Autoconf 2.53.  Invocation command line was
1140
1141  $ $0 $@
1142
1143_ACEOF
1144{
1145cat <<_ASUNAME
1146## --------- ##
1147## Platform. ##
1148## --------- ##
1149
1150hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1151uname -m = `(uname -m) 2>/dev/null || echo unknown`
1152uname -r = `(uname -r) 2>/dev/null || echo unknown`
1153uname -s = `(uname -s) 2>/dev/null || echo unknown`
1154uname -v = `(uname -v) 2>/dev/null || echo unknown`
1155
1156/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1157/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1158
1159/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1160/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1161/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1162hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1163/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1164/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1165/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1166
1167_ASUNAME
1168
1169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1170for as_dir in $PATH
1171do
1172  IFS=$as_save_IFS
1173  test -z "$as_dir" && as_dir=.
1174  echo "PATH: $as_dir"
1175done
1176
1177} >&5
1178
1179cat >&5 <<_ACEOF
1180
1181
1182## ----------- ##
1183## Core tests. ##
1184## ----------- ##
1185
1186_ACEOF
1187
1188
1189# Keep a trace of the command line.
1190# Strip out --no-create and --no-recursion so they do not pile up.
1191# Also quote any args containing shell meta-characters.
1192ac_configure_args=
1193ac_sep=
1194for ac_arg
1195do
1196  case $ac_arg in
1197  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1198  | --no-cr | --no-c | -n ) continue ;;
1199  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1200  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1201    continue ;;
1202  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1203    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1204  esac
1205  case " $ac_configure_args " in
1206    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1207    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1208       ac_sep=" " ;;
1209  esac
1210  # Get rid of the leading space.
1211done
1212
1213# When interrupted or exit'd, cleanup temporary files, and complete
1214# config.log.  We remove comments because anyway the quotes in there
1215# would cause problems or look ugly.
1216# WARNING: Be sure not to use single quotes in there, as some shells,
1217# such as our DU 5.0 friend, will then `close' the trap.
1218trap 'exit_status=$?
1219  # Save into config.log some information that might help in debugging.
1220  {
1221    echo
1222    cat <<\_ASBOX
1223## ---------------- ##
1224## Cache variables. ##
1225## ---------------- ##
1226_ASBOX
1227    echo
1228    # The following way of writing the cache mishandles newlines in values,
1229{
1230  (set) 2>&1 |
1231    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1232    *ac_space=\ *)
1233      sed -n \
1234        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1235    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1236      ;;
1237    *)
1238      sed -n \
1239        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1240      ;;
1241    esac;
1242}
1243    echo
1244    if test -s confdefs.h; then
1245      cat <<\_ASBOX
1246## ----------- ##
1247## confdefs.h. ##
1248## ----------- ##
1249_ASBOX
1250      echo
1251      sed "/^$/d" confdefs.h
1252      echo
1253    fi
1254    test "$ac_signal" != 0 &&
1255      echo "$as_me: caught signal $ac_signal"
1256    echo "$as_me: exit $exit_status"
1257  } >&5
1258  rm -f core core.* *.core &&
1259  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1260    exit $exit_status
1261     ' 0
1262for ac_signal in 1 2 13 15; do
1263  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1264done
1265ac_signal=0
1266
1267# confdefs.h avoids OS command line length limits that DEFS can exceed.
1268rm -rf conftest* confdefs.h
1269# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1270echo >confdefs.h
1271
1272# Predefined preprocessor variables.
1273
1274cat >>confdefs.h <<_ACEOF
1275#define PACKAGE_NAME "$PACKAGE_NAME"
1276_ACEOF
1277
1278
1279cat >>confdefs.h <<_ACEOF
1280#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1281_ACEOF
1282
1283
1284cat >>confdefs.h <<_ACEOF
1285#define PACKAGE_VERSION "$PACKAGE_VERSION"
1286_ACEOF
1287
1288
1289cat >>confdefs.h <<_ACEOF
1290#define PACKAGE_STRING "$PACKAGE_STRING"
1291_ACEOF
1292
1293
1294cat >>confdefs.h <<_ACEOF
1295#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1296_ACEOF
1297
1298
1299# Let the site file select an alternate cache file if it wants to.
1300# Prefer explicitly selected file to automatically selected ones.
1301if test -z "$CONFIG_SITE"; then
1302  if test "x$prefix" != xNONE; then
1303    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1304  else
1305    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1306  fi
1307fi
1308for ac_site_file in $CONFIG_SITE; do
1309  if test -r "$ac_site_file"; then
1310    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1311echo "$as_me: loading site script $ac_site_file" >&6;}
1312    sed 's/^/| /' "$ac_site_file" >&5
1313    . "$ac_site_file"
1314  fi
1315done
1316
1317if test -r "$cache_file"; then
1318  # Some versions of bash will fail to source /dev/null (special
1319  # files actually), so we avoid doing that.
1320  if test -f "$cache_file"; then
1321    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1322echo "$as_me: loading cache $cache_file" >&6;}
1323    case $cache_file in
1324      [\\/]* | ?:[\\/]* ) . $cache_file;;
1325      *)                      . ./$cache_file;;
1326    esac
1327  fi
1328else
1329  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1330echo "$as_me: creating cache $cache_file" >&6;}
1331  >$cache_file
1332fi
1333
1334# Check that the precious variables saved in the cache have kept the same
1335# value.
1336ac_cache_corrupted=false
1337for ac_var in `(set) 2>&1 |
1338               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1339  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1340  eval ac_new_set=\$ac_env_${ac_var}_set
1341  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1342  eval ac_new_val="\$ac_env_${ac_var}_value"
1343  case $ac_old_set,$ac_new_set in
1344    set,)
1345      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1346echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1347      ac_cache_corrupted=: ;;
1348    ,set)
1349      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1350echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1351      ac_cache_corrupted=: ;;
1352    ,);;
1353    *)
1354      if test "x$ac_old_val" != "x$ac_new_val"; then
1355        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1356echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1357        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1358echo "$as_me:   former value:  $ac_old_val" >&2;}
1359        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1360echo "$as_me:   current value: $ac_new_val" >&2;}
1361        ac_cache_corrupted=:
1362      fi;;
1363  esac
1364  # Pass precious variables to config.status.
1365  if test "$ac_new_set" = set; then
1366    case $ac_new_val in
1367    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1368      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1369    *) ac_arg=$ac_var=$ac_new_val ;;
1370    esac
1371    case " $ac_configure_args " in
1372      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1373      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1374    esac
1375  fi
1376done
1377if $ac_cache_corrupted; then
1378  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1379echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1380  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1381echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1382   { (exit 1); exit 1; }; }
1383fi
1384
1385ac_ext=c
1386ac_cpp='$CPP $CPPFLAGS'
1387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1389ac_compiler_gnu=$ac_cv_c_compiler_gnu
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410PACKAGE=LPRng
1411VERSION=3.8.22
1412
1413
1414ac_aux_dir=
1415for ac_dir in . $srcdir/.; do
1416  if test -f $ac_dir/install-sh; then
1417    ac_aux_dir=$ac_dir
1418    ac_install_sh="$ac_aux_dir/install-sh -c"
1419    break
1420  elif test -f $ac_dir/install.sh; then
1421    ac_aux_dir=$ac_dir
1422    ac_install_sh="$ac_aux_dir/install.sh -c"
1423    break
1424  elif test -f $ac_dir/shtool; then
1425    ac_aux_dir=$ac_dir
1426    ac_install_sh="$ac_aux_dir/shtool install -c"
1427    break
1428  fi
1429done
1430if test -z "$ac_aux_dir"; then
1431  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1432echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1433   { (exit 1); exit 1; }; }
1434fi
1435ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1436ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1437ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1438
1439# Make sure we can run config.sub.
1440$ac_config_sub sun4 >/dev/null 2>&1 ||
1441  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1442echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1443   { (exit 1); exit 1; }; }
1444
1445echo "$as_me:$LINENO: checking build system type" >&5
1446echo $ECHO_N "checking build system type... $ECHO_C" >&6
1447if test "${ac_cv_build+set}" = set; then
1448  echo $ECHO_N "(cached) $ECHO_C" >&6
1449else
1450  ac_cv_build_alias=$build_alias
1451test -z "$ac_cv_build_alias" &&
1452  ac_cv_build_alias=`$ac_config_guess`
1453test -z "$ac_cv_build_alias" &&
1454  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1455echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1456   { (exit 1); exit 1; }; }
1457ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1458  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1459echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1460   { (exit 1); exit 1; }; }
1461
1462fi
1463echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1464echo "${ECHO_T}$ac_cv_build" >&6
1465build=$ac_cv_build
1466build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1467build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1468build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1469
1470
1471echo "$as_me:$LINENO: checking host system type" >&5
1472echo $ECHO_N "checking host system type... $ECHO_C" >&6
1473if test "${ac_cv_host+set}" = set; then
1474  echo $ECHO_N "(cached) $ECHO_C" >&6
1475else
1476  ac_cv_host_alias=$host_alias
1477test -z "$ac_cv_host_alias" &&
1478  ac_cv_host_alias=$ac_cv_build_alias
1479ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1480  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1481echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1482   { (exit 1); exit 1; }; }
1483
1484fi
1485echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1486echo "${ECHO_T}$ac_cv_host" >&6
1487host=$ac_cv_host
1488host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1489host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1490host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1491
1492
1493echo "$as_me:$LINENO: checking target system type" >&5
1494echo $ECHO_N "checking target system type... $ECHO_C" >&6
1495if test "${ac_cv_target+set}" = set; then
1496  echo $ECHO_N "(cached) $ECHO_C" >&6
1497else
1498  ac_cv_target_alias=$target_alias
1499test "x$ac_cv_target_alias" = "x" &&
1500  ac_cv_target_alias=$ac_cv_host_alias
1501ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1502  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1503echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1504   { (exit 1); exit 1; }; }
1505
1506fi
1507echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1508echo "${ECHO_T}$ac_cv_target" >&6
1509target=$ac_cv_target
1510target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1511target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1512target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1513
1514
1515# The aliases save the names the user supplied, while $host etc.
1516# will get canonicalized.
1517test -n "$target_alias" &&
1518  test "$program_prefix$program_suffix$program_transform_name" = \
1519    NONENONEs,x,x, &&
1520  program_prefix=${target_alias}-
1521ac_config_headers="$ac_config_headers config.h"
1522
1523
1524
1525cat >>confdefs.h <<_ACEOF
1526#define PACKAGE "$PACKAGE"
1527_ACEOF
1528
1529
1530cat >>confdefs.h <<_ACEOF
1531#define VERSION "$VERSION"
1532_ACEOF
1533
1534
1535
1536ALL_LINGUAS="fr"
1537
1538if test -z "$LOCALEDIR" ; then
1539    LOCALEDIR='${prefix}/share/locale'
1540fi;
1541
1542
1543# Check whether --with-localedir or --without-localedir was given.
1544if test "${with_localedir+set}" = set; then
1545  withval="$with_localedir"
1546  echo "$as_me:$LINENO: result: LOCALEDIR is $withval" >&5
1547echo "${ECHO_T}LOCALEDIR is $withval" >&6
1548LOCALEDIR="$withval"
1549else
1550  LOCALEDIR="$LOCALEDIR"
1551echo "$as_me:$LINENO: result: LOCALEDIR defaults to $LOCALEDIR" >&5
1552echo "${ECHO_T}LOCALEDIR defaults to $LOCALEDIR" >&6
1553
1554fi;  export LOCALEDIR
1555
1556
1557
1558# Check whether --with-ccopts or --without-ccopts was given.
1559if test "${with_ccopts+set}" = set; then
1560  withval="$with_ccopts"
1561  { { echo "$as_me:$LINENO: error:  --with-ccopts   OBSOLETE - use CFLAGS=... see configure --help" >&5
1562echo "$as_me: error:  --with-ccopts   OBSOLETE - use CFLAGS=... see configure --help" >&2;}
1563   { (exit 1); exit 1; }; }
1564
1565fi;
1566
1567# Check whether --with-ccpopts or --without-ccpopts was given.
1568if test "${with_ccpopts+set}" = set; then
1569  withval="$with_ccpopts"
1570  { { echo "$as_me:$LINENO: error:  --with-cppopts  OBSOLETE - use CPPFLAGS=... see configure --help" >&5
1571echo "$as_me: error:  --with-cppopts  OBSOLETE - use CPPFLAGS=... see configure --help" >&2;}
1572   { (exit 1); exit 1; }; }
1573
1574fi;
1575
1576# Check whether --with-ldopts or --without-ldopts was given.
1577if test "${with_ldopts+set}" = set; then
1578  withval="$with_ldopts"
1579  { { echo "$as_me:$LINENO: error:  --with-ldopts  OBSOLETE - use LDFLAGS=... see configure --help" >&5
1580echo "$as_me: error:  --with-ldopts  OBSOLETE - use LDFLAGS=... see configure --help" >&2;}
1581   { (exit 1); exit 1; }; }
1582
1583fi;
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595for ac_prog in gawk mawk nawk awk
1596do
1597  # Extract the first word of "$ac_prog", so it can be a program name with args.
1598set dummy $ac_prog; ac_word=$2
1599echo "$as_me:$LINENO: checking for $ac_word" >&5
1600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601if test "${ac_cv_prog_AWK+set}" = set; then
1602  echo $ECHO_N "(cached) $ECHO_C" >&6
1603else
1604  if test -n "$AWK"; then
1605  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1606else
1607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608for as_dir in $PATH
1609do
1610  IFS=$as_save_IFS
1611  test -z "$as_dir" && as_dir=.
1612  for ac_exec_ext in '' $ac_executable_extensions; do
1613  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614    ac_cv_prog_AWK="$ac_prog"
1615    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1616    break 2
1617  fi
1618done
1619done
1620
1621fi
1622fi
1623AWK=$ac_cv_prog_AWK
1624if test -n "$AWK"; then
1625  echo "$as_me:$LINENO: result: $AWK" >&5
1626echo "${ECHO_T}$AWK" >&6
1627else
1628  echo "$as_me:$LINENO: result: no" >&5
1629echo "${ECHO_T}no" >&6
1630fi
1631
1632  test -n "$AWK" && break
1633done
1634
1635
1636# Extract the first word of "sed", so it can be a program name with args.
1637set dummy sed; ac_word=$2
1638echo "$as_me:$LINENO: checking for $ac_word" >&5
1639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640if test "${ac_cv_path_SED+set}" = set; then
1641  echo $ECHO_N "(cached) $ECHO_C" >&6
1642else
1643  case $SED in
1644  [\\/]* | ?:[\\/]*)
1645  ac_cv_path_SED="$SED" # Let the user override the test with a path.
1646  ;;
1647  *)
1648  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649for as_dir in $PATH
1650do
1651  IFS=$as_save_IFS
1652  test -z "$as_dir" && as_dir=.
1653  for ac_exec_ext in '' $ac_executable_extensions; do
1654  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
1656    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657    break 2
1658  fi
1659done
1660done
1661
1662  ;;
1663esac
1664fi
1665SED=$ac_cv_path_SED
1666
1667if test -n "$SED"; then
1668  echo "$as_me:$LINENO: result: $SED" >&5
1669echo "${ECHO_T}$SED" >&6
1670else
1671  echo "$as_me:$LINENO: result: no" >&5
1672echo "${ECHO_T}no" >&6
1673fi
1674# Extract the first word of "perl", so it can be a program name with args.
1675set dummy perl; ac_word=$2
1676echo "$as_me:$LINENO: checking for $ac_word" >&5
1677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678if test "${ac_cv_path_PERL+set}" = set; then
1679  echo $ECHO_N "(cached) $ECHO_C" >&6
1680else
1681  case $PERL in
1682  [\\/]* | ?:[\\/]*)
1683  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1684  ;;
1685  *)
1686  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687for as_dir in $PATH
1688do
1689  IFS=$as_save_IFS
1690  test -z "$as_dir" && as_dir=.
1691  for ac_exec_ext in '' $ac_executable_extensions; do
1692  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1693    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
1694    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1695    break 2
1696  fi
1697done
1698done
1699
1700  ;;
1701esac
1702fi
1703PERL=$ac_cv_path_PERL
1704
1705if test -n "$PERL"; then
1706  echo "$as_me:$LINENO: result: $PERL" >&5
1707echo "${ECHO_T}$PERL" >&6
1708else
1709  echo "$as_me:$LINENO: result: no" >&5
1710echo "${ECHO_T}no" >&6
1711fi
1712# Extract the first word of "chown", so it can be a program name with args.
1713set dummy chown; ac_word=$2
1714echo "$as_me:$LINENO: checking for $ac_word" >&5
1715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716if test "${ac_cv_path_CHOWN+set}" = set; then
1717  echo $ECHO_N "(cached) $ECHO_C" >&6
1718else
1719  case $CHOWN in
1720  [\\/]* | ?:[\\/]*)
1721  ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path.
1722  ;;
1723  *)
1724  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725for as_dir in $PATH
1726do
1727  IFS=$as_save_IFS
1728  test -z "$as_dir" && as_dir=.
1729  for ac_exec_ext in '' $ac_executable_extensions; do
1730  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731    ac_cv_path_CHOWN="$as_dir/$ac_word$ac_exec_ext"
1732    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733    break 2
1734  fi
1735done
1736done
1737
1738  ;;
1739esac
1740fi
1741CHOWN=$ac_cv_path_CHOWN
1742
1743if test -n "$CHOWN"; then
1744  echo "$as_me:$LINENO: result: $CHOWN" >&5
1745echo "${ECHO_T}$CHOWN" >&6
1746else
1747  echo "$as_me:$LINENO: result: no" >&5
1748echo "${ECHO_T}no" >&6
1749fi
1750# Extract the first word of "chgrp", so it can be a program name with args.
1751set dummy chgrp; ac_word=$2
1752echo "$as_me:$LINENO: checking for $ac_word" >&5
1753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754if test "${ac_cv_path_CHGRP+set}" = set; then
1755  echo $ECHO_N "(cached) $ECHO_C" >&6
1756else
1757  case $CHGRP in
1758  [\\/]* | ?:[\\/]*)
1759  ac_cv_path_CHGRP="$CHGRP" # Let the user override the test with a path.
1760  ;;
1761  *)
1762  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763for as_dir in $PATH
1764do
1765  IFS=$as_save_IFS
1766  test -z "$as_dir" && as_dir=.
1767  for ac_exec_ext in '' $ac_executable_extensions; do
1768  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769    ac_cv_path_CHGRP="$as_dir/$ac_word$ac_exec_ext"
1770    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771    break 2
1772  fi
1773done
1774done
1775
1776  ;;
1777esac
1778fi
1779CHGRP=$ac_cv_path_CHGRP
1780
1781if test -n "$CHGRP"; then
1782  echo "$as_me:$LINENO: result: $CHGRP" >&5
1783echo "${ECHO_T}$CHGRP" >&6
1784else
1785  echo "$as_me:$LINENO: result: no" >&5
1786echo "${ECHO_T}no" >&6
1787fi
1788# Extract the first word of "pr", so it can be a program name with args.
1789set dummy pr; ac_word=$2
1790echo "$as_me:$LINENO: checking for $ac_word" >&5
1791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792if test "${ac_cv_path_PRUTIL+set}" = set; then
1793  echo $ECHO_N "(cached) $ECHO_C" >&6
1794else
1795  case $PRUTIL in
1796  [\\/]* | ?:[\\/]*)
1797  ac_cv_path_PRUTIL="$PRUTIL" # Let the user override the test with a path.
1798  ;;
1799  *)
1800  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801for as_dir in $PATH
1802do
1803  IFS=$as_save_IFS
1804  test -z "$as_dir" && as_dir=.
1805  for ac_exec_ext in '' $ac_executable_extensions; do
1806  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1807    ac_cv_path_PRUTIL="$as_dir/$ac_word$ac_exec_ext"
1808    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809    break 2
1810  fi
1811done
1812done
1813
1814  ;;
1815esac
1816fi
1817PRUTIL=$ac_cv_path_PRUTIL
1818
1819if test -n "$PRUTIL"; then
1820  echo "$as_me:$LINENO: result: $PRUTIL" >&5
1821echo "${ECHO_T}$PRUTIL" >&6
1822else
1823  echo "$as_me:$LINENO: result: no" >&5
1824echo "${ECHO_T}no" >&6
1825fi
1826# Extract the first word of "openssl", so it can be a program name with args.
1827set dummy openssl; ac_word=$2
1828echo "$as_me:$LINENO: checking for $ac_word" >&5
1829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830if test "${ac_cv_path_OPENSSL+set}" = set; then
1831  echo $ECHO_N "(cached) $ECHO_C" >&6
1832else
1833  case $OPENSSL in
1834  [\\/]* | ?:[\\/]*)
1835  ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
1836  ;;
1837  *)
1838  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839for as_dir in $PATH
1840do
1841  IFS=$as_save_IFS
1842  test -z "$as_dir" && as_dir=.
1843  for ac_exec_ext in '' $ac_executable_extensions; do
1844  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845    ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
1846    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847    break 2
1848  fi
1849done
1850done
1851
1852  ;;
1853esac
1854fi
1855OPENSSL=$ac_cv_path_OPENSSL
1856
1857if test -n "$OPENSSL"; then
1858  echo "$as_me:$LINENO: result: $OPENSSL" >&5
1859echo "${ECHO_T}$OPENSSL" >&6
1860else
1861  echo "$as_me:$LINENO: result: no" >&5
1862echo "${ECHO_T}no" >&6
1863fi
1864# Extract the first word of "pgp", so it can be a program name with args.
1865set dummy pgp; ac_word=$2
1866echo "$as_me:$LINENO: checking for $ac_word" >&5
1867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868if test "${ac_cv_path_PGP_PATH+set}" = set; then
1869  echo $ECHO_N "(cached) $ECHO_C" >&6
1870else
1871  case $PGP_PATH in
1872  [\\/]* | ?:[\\/]*)
1873  ac_cv_path_PGP_PATH="$PGP_PATH" # Let the user override the test with a path.
1874  ;;
1875  *)
1876  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877for as_dir in $PATH
1878do
1879  IFS=$as_save_IFS
1880  test -z "$as_dir" && as_dir=.
1881  for ac_exec_ext in '' $ac_executable_extensions; do
1882  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883    ac_cv_path_PGP_PATH="$as_dir/$ac_word$ac_exec_ext"
1884    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885    break 2
1886  fi
1887done
1888done
1889
1890  ;;
1891esac
1892fi
1893PGP_PATH=$ac_cv_path_PGP_PATH
1894
1895if test -n "$PGP_PATH"; then
1896  echo "$as_me:$LINENO: result: $PGP_PATH" >&5
1897echo "${ECHO_T}$PGP_PATH" >&6
1898else
1899  echo "$as_me:$LINENO: result: no" >&5
1900echo "${ECHO_T}no" >&6
1901fi
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PGP_PATH "$PGP_PATH"
1905_ACEOF
1906
1907
1908
1909
1910echo "$as_me:$LINENO: checking unix socket pathname" >&5
1911echo $ECHO_N "checking unix socket pathname... $ECHO_C" >&6
1912
1913# Check whether --with-unix_socket_path or --without-unix_socket_path was given.
1914if test "${with_unix_socket_path+set}" = set; then
1915  withval="$with_unix_socket_path"
1916  UNIXSOCKETPATH=$withval
1917else
1918  UNIXSOCKETPATH=/var/run/lprng
1919
1920fi;
1921echo "$as_me:$LINENO: result: $UNIXSOCKETPATH" >&5
1922echo "${ECHO_T}$UNIXSOCKETPATH" >&6
1923
1924
1925
1926echo "$as_me:$LINENO: checking if installing clients setuid" >&5
1927echo $ECHO_N "checking if installing clients setuid... $ECHO_C" >&6
1928# Check whether --enable-setuid or --disable-setuid was given.
1929if test "${enable_setuid+set}" = set; then
1930  enableval="$enable_setuid"
1931
1932if test "$enableval" = "yes" ; then
1933	PERMS=SUID_ROOT_PERMS
1934else
1935	PERMS=NORM_PERMS
1936fi
1937
1938else
1939
1940	PERMS=SUID_ROOT_PERMS
1941
1942fi;
1943echo "$as_me:$LINENO: result: $PERMS" >&5
1944echo "${ECHO_T}$PERMS" >&6
1945
1946
1947echo "$as_me:$LINENO: checking require connections from priviledged ports" >&5
1948echo $ECHO_N "checking require connections from priviledged ports... $ECHO_C" >&6
1949# Check whether --enable-priv_ports or --disable-priv_ports was given.
1950if test "${enable_priv_ports+set}" = set; then
1951  enableval="$enable_priv_ports"
1952
1953if test "$enableval" = "yes" ; then
1954	v=yes;  PRIV_PORTS="";
1955else
1956	v=no; PRIV_PORTS="#";
1957fi
1958
1959else
1960
1961	v=no; PRIV_PORTS="#";
1962
1963
1964fi;
1965echo "$as_me:$LINENO: result: $v" >&5
1966echo "${ECHO_T}$v" >&6;
1967
1968echo "$as_me:$LINENO: checking disable force_localhost default" >&5
1969echo $ECHO_N "checking disable force_localhost default... $ECHO_C" >&6
1970# Check whether --enable-force_localhost or --disable-force_localhost was given.
1971if test "${enable_force_localhost+set}" = set; then
1972  enableval="$enable_force_localhost"
1973
1974if test "$enableval" = "yes" ; then
1975	v=enabled;  FORCE_LOCALHOST=1;
1976else
1977	v=disabled; FORCE_LOCALHOST=0;
1978fi
1979
1980else
1981
1982	v=enabled;  FORCE_LOCALHOST=1;
1983
1984
1985fi;
1986echo "$as_me:$LINENO: result: $v" >&5
1987echo "${ECHO_T}$v" >&6
1988
1989cat >>confdefs.h <<_ACEOF
1990#define FORCE_LOCALHOST "$FORCE_LOCALHOST"
1991_ACEOF
1992
1993
1994echo "$as_me:$LINENO: checking require_configfiles default" >&5
1995echo $ECHO_N "checking require_configfiles default... $ECHO_C" >&6
1996# Check whether --enable-require_configfiles or --disable-require_configfiles was given.
1997if test "${enable_require_configfiles+set}" = set; then
1998  enableval="$enable_require_configfiles"
1999
2000if test "$enableval" = "yes" ; then
2001	v=yes;  REQUIRE_CONFIGFILES=1;
2002else
2003	v=no; REQUIRE_CONFIGFILES=0;
2004fi
2005
2006else
2007
2008	v=yes;  REQUIRE_CONFIGFILES=1;
2009
2010
2011fi;
2012echo "$as_me:$LINENO: result: $v" >&5
2013echo "${ECHO_T}$v" >&6
2014
2015
2016echo "$as_me:$LINENO: checking if Kerberos authentication is enabled" >&5
2017echo $ECHO_N "checking if Kerberos authentication is enabled... $ECHO_C" >&6
2018# Check whether --enable-kerberos or --disable-kerberos was given.
2019if test "${enable_kerberos+set}" = set; then
2020  enableval="$enable_kerberos"
2021
2022if test "$enableval" = "yes" ; then
2023	v=enabled;  KERBEROS=1;
2024cat >>confdefs.h <<_ACEOF
2025#define KERBEROS "$KERBEROS"
2026_ACEOF
2027
2028else
2029	v=disabled; KERBEROS=;
2030fi
2031
2032else
2033
2034	v=disabled; KERBEROS=;
2035
2036
2037fi;
2038echo "$as_me:$LINENO: result: $v (KERBEROS $KERBEROS)" >&5
2039echo "${ECHO_T}$v (KERBEROS $KERBEROS)" >&6;
2040
2041echo "$as_me:$LINENO: checking if MIT Kerberos4 is enabled" >&5
2042echo $ECHO_N "checking if MIT Kerberos4 is enabled... $ECHO_C" >&6
2043# Check whether --enable-mit_kerberos4 or --disable-mit_kerberos4 was given.
2044if test "${enable_mit_kerberos4+set}" = set; then
2045  enableval="$enable_mit_kerberos4"
2046
2047if test "$enableval" = "yes" ; then
2048	v=enabled; MIT_KERBEROS4=1;
2049cat >>confdefs.h <<_ACEOF
2050#define MIT_KERBEROS4 "$MIT_KERBEROS4"
2051_ACEOF
2052
2053else
2054	v=disabled; MIT_KERBEROS4=;
2055fi
2056
2057else
2058
2059	v=disabled; MIT_KERBEROS4=;
2060
2061
2062fi;
2063echo "$as_me:$LINENO: result: $v (MIT_KERBEROS4 $MIT_KERBEROS4)" >&5
2064echo "${ECHO_T}$v (MIT_KERBEROS4 $MIT_KERBEROS4)" >&6;
2065
2066echo "$as_me:$LINENO: checking if Kerberos libraries are to located and other checks" >&5
2067echo $ECHO_N "checking if Kerberos libraries are to located and other checks... $ECHO_C" >&6
2068# Check whether --enable---disable-kerberos_checks or --disable---disable-kerberos_checks was given.
2069if test "${enable___disable_kerberos_checks+set}" = set; then
2070  enableval="$enable___disable_kerberos_checks"
2071
2072if test "$enableval" = "yes" ; then
2073	v=enabled; KERBEROS_CHECKS=1;
2074else
2075	v=disabled; KERBEROS_CHECKS=;
2076fi
2077
2078else
2079
2080	v=enabled; KERBEROS_CHECKS=1;
2081
2082
2083fi;
2084echo "$as_me:$LINENO: result: $v (KERBEROS_CHECKS $KERBEROS_CHECKS)" >&5
2085echo "${ECHO_T}$v (KERBEROS_CHECKS $KERBEROS_CHECKS)" >&6;lpd_dir=/lpd
2086export lpd_dir
2087
2088echo "$as_me:$LINENO: checking where to install the lpd binary" >&5
2089echo $ECHO_N "checking where to install the lpd binary... $ECHO_C" >&6
2090
2091# Check whether --with-lpddir or --without-lpddir was given.
2092if test "${with_lpddir+set}" = set; then
2093  withval="$with_lpddir"
2094  LPD_DIR=$withval
2095else
2096  LPD_DIR=\${sbindir}
2097
2098fi;
2099echo "$as_me:$LINENO: result: $LPD_DIR" >&5
2100echo "${ECHO_T}$LPD_DIR" >&6
2101
2102
2103echo "$as_me:$LINENO: checking lpd.conf location" >&5
2104echo $ECHO_N "checking lpd.conf location... $ECHO_C" >&6
2105
2106# Check whether --with-lpd_conf_path or --without-lpd_conf_path was given.
2107if test "${with_lpd_conf_path+set}" = set; then
2108  withval="$with_lpd_conf_path"
2109  LPD_CONF_PATH=$withval
2110else
2111  LPD_CONF_PATH=\${sysconfdir}/lpd/lpd.conf
2112fi;
2113echo "$as_me:$LINENO: result: $LPD_CONF_PATH" >&5
2114echo "${ECHO_T}$LPD_CONF_PATH" >&6
2115
2116
2117echo "$as_me:$LINENO: checking lpd.perms location" >&5
2118echo $ECHO_N "checking lpd.perms location... $ECHO_C" >&6
2119
2120# Check whether --with-lpd_perms_path or --without-lpd_perms_path was given.
2121if test "${with_lpd_perms_path+set}" = set; then
2122  withval="$with_lpd_perms_path"
2123  LPD_PERMS_PATH=$withval
2124else
2125  LPD_PERMS_PATH=\${sysconfdir}/lpd/lpd.perms
2126fi;
2127echo "$as_me:$LINENO: result: $LPD_PERMS_PATH" >&5
2128echo "${ECHO_T}$LPD_PERMS_PATH" >&6
2129
2130
2131echo "$as_me:$LINENO: checking printcap location" >&5
2132echo $ECHO_N "checking printcap location... $ECHO_C" >&6
2133
2134# Check whether --with-printcap_path or --without-printcap_path was given.
2135if test "${with_printcap_path+set}" = set; then
2136  withval="$with_printcap_path"
2137  PRINTCAP_PATH=$withval
2138else
2139  PRINTCAP_PATH=\${sysconfdir}/printcap
2140fi;
2141echo "$as_me:$LINENO: result: $PRINTCAP_PATH" >&5
2142echo "${ECHO_T}$PRINTCAP_PATH" >&6
2143
2144
2145echo "$as_me:$LINENO: checking lpd_printcap location" >&5
2146echo $ECHO_N "checking lpd_printcap location... $ECHO_C" >&6
2147
2148# Check whether --with-lpd_printcap_path or --without-lpd_printcap_path was given.
2149if test "${with_lpd_printcap_path+set}" = set; then
2150  withval="$with_lpd_printcap_path"
2151  LPD_PRINTCAP_PATH=$withval
2152else
2153  LPD_PRINTCAP_PATH=\${sysconfdir}/lpd/lpd_printcap
2154fi;
2155echo "$as_me:$LINENO: result: $LPD_PRINTCAP_PATH" >&5
2156echo "${ECHO_T}$LPD_PRINTCAP_PATH" >&6
2157
2158echo "$as_me:$LINENO: checking startup (initialization) file location" >&5
2159echo $ECHO_N "checking startup (initialization) file location... $ECHO_C" >&6
2160
2161# Check whether --with-init_path or --without-init_path was given.
2162if test "${with_init_path+set}" = set; then
2163  withval="$with_init_path"
2164  INIT=$withval
2165else
2166  INIT=
2167fi;
2168echo "$as_me:$LINENO: result: $INIT" >&5
2169echo "${ECHO_T}$INIT" >&6
2170
2171
2172echo "$as_me:$LINENO: checking lockfile PATH value" >&5
2173echo $ECHO_N "checking lockfile PATH value... $ECHO_C" >&6
2174
2175# Check whether --with-lockfile or --without-lockfile was given.
2176if test "${with_lockfile+set}" = set; then
2177  withval="$with_lockfile"
2178  LOCKFILE="$withval"
2179else
2180  LOCKFILE="/var/run/lpd"
2181fi;
2182echo "$as_me:$LINENO: result: \"$LOCKFILE\"" >&5
2183echo "${ECHO_T}\"$LOCKFILE\"" >&6
2184
2185
2186
2187echo "$as_me:$LINENO: checking LD_LIBRARY_PATH value" >&5
2188echo $ECHO_N "checking LD_LIBRARY_PATH value... $ECHO_C" >&6
2189
2190# Check whether --with-ld_library_path or --without-ld_library_path was given.
2191if test "${with_ld_library_path+set}" = set; then
2192  withval="$with_ld_library_path"
2193  LD_LIBRARY_PATH="$withval"
2194else
2195  LD_LIBRARY_PATH="/lib:/usr/lib:/usr/local/lib"
2196
2197fi;
2198echo "$as_me:$LINENO: result: \"$LD_LIBRARY_PATH\"" >&5
2199echo "${ECHO_T}\"$LD_LIBRARY_PATH\"" >&6
2200
2201
2202echo "$as_me:$LINENO: checking filter PATH value" >&5
2203echo $ECHO_N "checking filter PATH value... $ECHO_C" >&6
2204
2205# Check whether --with-filter_path or --without-filter_path was given.
2206if test "${with_filter_path+set}" = set; then
2207  withval="$with_filter_path"
2208  FILTER_PATH="$withval"
2209else
2210  FILTER_PATH="/bin:/usr/bin:/usr/local/bin"
2211
2212fi;
2213echo "$as_me:$LINENO: result: \"$FILTER_PATH\"" >&5
2214echo "${ECHO_T}\"$FILTER_PATH\"" >&6
2215
2216
2217echo "$as_me:$LINENO: checking run lpd as userid" >&5
2218echo $ECHO_N "checking run lpd as userid... $ECHO_C" >&6
2219
2220# Check whether --with-userid or --without-userid was given.
2221if test "${with_userid+set}" = set; then
2222  withval="$with_userid"
2223  USERID="$withval"
2224else
2225  USERID="daemon"
2226fi;
2227echo "$as_me:$LINENO: result: \"$USERID\"" >&5
2228echo "${ECHO_T}\"$USERID\"" >&6
2229
2230
2231echo "$as_me:$LINENO: checking run lpd as groupid" >&5
2232echo $ECHO_N "checking run lpd as groupid... $ECHO_C" >&6
2233
2234# Check whether --with-groupid or --without-groupid was given.
2235if test "${with_groupid+set}" = set; then
2236  withval="$with_groupid"
2237  GROUPID="$withval"
2238else
2239  GROUPID="daemon"
2240fi;
2241echo "$as_me:$LINENO: result: \"$GROUPID\"" >&5
2242echo "${ECHO_T}\"$GROUPID\"" >&6
2243
2244
2245
2246echo "$as_me:$LINENO: checking retain status for N jobs" >&5
2247echo $ECHO_N "checking retain status for N jobs... $ECHO_C" >&6
2248
2249# Check whether --with-done_jobs or --without-done_jobs was given.
2250if test "${with_done_jobs+set}" = set; then
2251  withval="$with_done_jobs"
2252  DONE_JOBS="$withval"
2253else
2254  DONE_JOBS="1"
2255fi;
2256echo "$as_me:$LINENO: result: \"$DONE_JOBS\"" >&5
2257echo "${ECHO_T}\"$DONE_JOBS\"" >&6
2258
2259
2260
2261echo "$as_me:$LINENO: checking retain status for jobs less than N seconds old" >&5
2262echo $ECHO_N "checking retain status for jobs less than N seconds old... $ECHO_C" >&6
2263
2264# Check whether --with-done_jobs_max_age or --without-done_jobs_max_age was given.
2265if test "${with_done_jobs_max_age+set}" = set; then
2266  withval="$with_done_jobs_max_age"
2267  DONE_JOBS_MAX_AGE="$withval"
2268else
2269  DONE_JOBS_MAX_AGE="0"
2270fi;
2271echo "$as_me:$LINENO: result: \"$DONE_JOBS_MAX_AGE\"" >&5
2272echo "${ECHO_T}\"$DONE_JOBS_MAX_AGE\"" >&6
2273
2274
2275echo "$as_me:$LINENO: checking load balance queue chooser routine name" >&5
2276echo $ECHO_N "checking load balance queue chooser routine name... $ECHO_C" >&6
2277
2278# Check whether --with-chooser_routine or --without-chooser_routine was given.
2279if test "${with_chooser_routine+set}" = set; then
2280  withval="$with_chooser_routine"
2281
2282CHOOSER_ROUTINE="$withval"
2283
2284cat >>confdefs.h <<_ACEOF
2285#define CHOOSER_ROUTINE $CHOOSER_ROUTINE
2286_ACEOF
2287
2288
2289
2290fi;
2291echo "$as_me:$LINENO: result: \"$CHOOSER_ROUTINE\"" >&5
2292echo "${ECHO_T}\"$CHOOSER_ROUTINE\"" >&6
2293
2294echo "$as_me:$LINENO: checking queue order routine name" >&5
2295echo $ECHO_N "checking queue order routine name... $ECHO_C" >&6
2296
2297# Check whether --with-order_routine or --without-order_routine was given.
2298if test "${with_order_routine+set}" = set; then
2299  withval="$with_order_routine"
2300
2301ORDER_ROUTINE="$withval"
2302
2303cat >>confdefs.h <<_ACEOF
2304#define ORDER_ROUTINE "$ORDER_ROUTINE"
2305_ACEOF
2306
2307
2308
2309fi;
2310echo "$as_me:$LINENO: result: \"$ORDER_ROUTINE\"" >&5
2311echo "${ECHO_T}\"$ORDER_ROUTINE\"" >&6
2312
2313echo "$as_me:$LINENO: checking user specified object file" >&5
2314echo $ECHO_N "checking user specified object file... $ECHO_C" >&6
2315
2316# Check whether --with-user_objs or --without-user_objs was given.
2317if test "${with_user_objs+set}" = set; then
2318  withval="$with_user_objs"
2319  USER_OBJS="$withval"
2320
2321fi;
2322echo "$as_me:$LINENO: result: \"$USER_OBJS\"" >&5
2323echo "${ECHO_T}\"$USER_OBJS\"" >&6
2324
2325
2326echo "$as_me:$LINENO: checking user specified include file for user object files" >&5
2327echo $ECHO_N "checking user specified include file for user object files... $ECHO_C" >&6
2328
2329# Check whether --with-user_include or --without-user_include was given.
2330if test "${with_user_include+set}" = set; then
2331  withval="$with_user_include"
2332
2333USER_INCLUDE="$withval"
2334
2335cat >>confdefs.h <<_ACEOF
2336#define USER_INCLUDE "$USER_INCLUDE"
2337_ACEOF
2338
2339
2340
2341fi;
2342echo "$as_me:$LINENO: result: \"$USER_INCLUDE\"" >&5
2343echo "${ECHO_T}\"$USER_INCLUDE\"" >&6
2344
2345echo "$as_me:$LINENO: checking terminal screen clear program" >&5
2346echo $ECHO_N "checking terminal screen clear program... $ECHO_C" >&6
2347if test -z "$CLEAR" ; then
2348  # Extract the first word of "clear", so it can be a program name with args.
2349set dummy clear; ac_word=$2
2350echo "$as_me:$LINENO: checking for $ac_word" >&5
2351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2352if test "${ac_cv_path_CLEAR+set}" = set; then
2353  echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355  case $CLEAR in
2356  [\\/]* | ?:[\\/]*)
2357  ac_cv_path_CLEAR="$CLEAR" # Let the user override the test with a path.
2358  ;;
2359  *)
2360  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361for as_dir in $PATH
2362do
2363  IFS=$as_save_IFS
2364  test -z "$as_dir" && as_dir=.
2365  for ac_exec_ext in '' $ac_executable_extensions; do
2366  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2367    ac_cv_path_CLEAR="$as_dir/$ac_word$ac_exec_ext"
2368    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369    break 2
2370  fi
2371done
2372done
2373
2374  ;;
2375esac
2376fi
2377CLEAR=$ac_cv_path_CLEAR
2378
2379if test -n "$CLEAR"; then
2380  echo "$as_me:$LINENO: result: $CLEAR" >&5
2381echo "${ECHO_T}$CLEAR" >&6
2382else
2383  echo "$as_me:$LINENO: result: no" >&5
2384echo "${ECHO_T}no" >&6
2385fi
2386fi
2387if test -z "$CLEAR" ; then
2388 { echo "$as_me:$LINENO: WARNING: Program 'clear' is not found. Set environment CLEAR=no if you do not want to use it" >&5
2389echo "$as_me: WARNING: Program 'clear' is not found. Set environment CLEAR=no if you do not want to use it" >&2;};
2390 exit 1
2391fi
2392if test "$CLEAR" = "no" ; then CLEAR= ; fi
2393if test -n "$CLEAR" ; then
2394
2395cat >>confdefs.h <<_ACEOF
2396#define CLEAR "$CLEAR"
2397_ACEOF
2398
2399fi
2400
2401echo "$as_me:$LINENO: checking ps options for displaying all processes" >&5
2402echo $ECHO_N "checking ps options for displaying all processes... $ECHO_C" >&6
2403if test -z "$PSHOWALL" ; then
2404  if ps -ax >/dev/null 2>/dev/null; then
2405  	PSHOWALL="-ax"
2406  elif ps -e >/dev/null 2>/dev/null;  then
2407  	PSHOWALL="-e"
2408  else
2409  	{ echo "$as_me:$LINENO: WARNING: ps not available or -ax AND -e options do not work" >&5
2410echo "$as_me: WARNING: ps not available or -ax AND -e options do not work" >&2;}
2411  	{ echo "$as_me:$LINENO: WARNING: specify options in the PSHOWALL environment variable" >&5
2412echo "$as_me: WARNING: specify options in the PSHOWALL environment variable" >&2;};
2413	exit 1
2414  fi
2415fi
2416echo "$as_me:$LINENO: result: \"using ${PSHOWALL}\"" >&5
2417echo "${ECHO_T}\"using ${PSHOWALL}\"" >&6
2418
2419
2420echo "$as_me:$LINENO: checking filter directory" >&5
2421echo $ECHO_N "checking filter directory... $ECHO_C" >&6
2422
2423# Check whether --with-filterdir or --without-filterdir was given.
2424if test "${with_filterdir+set}" = set; then
2425  withval="$with_filterdir"
2426  FILTER_DIR=$withval
2427else
2428  FILTER_DIR=\${libexecdir}/filters
2429fi;
2430echo "$as_me:$LINENO: result: $FILTER_DIR" >&5
2431echo "${ECHO_T}$FILTER_DIR" >&6
2432
2433
2434echo "$as_me:$LINENO: checking disable -Werror flag" >&5
2435echo $ECHO_N "checking disable -Werror flag... $ECHO_C" >&6
2436# Check whether --enable-werror or --disable-werror was given.
2437if test "${enable_werror+set}" = set; then
2438  enableval="$enable_werror"
2439
2440if test "$enableval" = "yes" ; then
2441	v=yes;  werror=" -Werror ";
2442else
2443	v=no; werror ="";
2444fi
2445
2446else
2447
2448	v=yes;  werror=" -Werror ";
2449
2450
2451fi;
2452echo "$as_me:$LINENO: result: $v" >&5
2453echo "${ECHO_T}$v" >&6
2454
2455echo "$as_me:$LINENO: checking disable stripped binaries" >&5
2456echo $ECHO_N "checking disable stripped binaries... $ECHO_C" >&6
2457# Check whether --enable-strip or --disable-strip was given.
2458if test "${enable_strip+set}" = set; then
2459  enableval="$enable_strip"
2460
2461if test "$enableval" = "yes" ; then
2462	v=yes;  STRIP_OPTION=" -s ";
2463else
2464	v=no; STRIP_OPTION="";
2465fi
2466
2467else
2468
2469	v=yes;  STRIP_OPTION=" -s ";
2470
2471
2472fi;
2473echo "$as_me:$LINENO: result: $v" >&5
2474echo "${ECHO_T}$v" >&6
2475
2476
2477release=`uname -r 2>/dev/null; exit 0`;
2478version=`echo $target_os | sed -e 's/[^0-9][^0-9]*//' -e 's/\./X/' -e 's/\.//g' -e 's/X/./' \
2479	| awk '{ v=$1+0; if( v > 0 ){ while( v < 100 || int(v) != v ){v = v * 10;}}; print v; }' `;
2480if test "$version" -eq 0 ; then
2481	version=`echo $release | sed -e 's/-.*//' -e 's/\.//g' \
2482	| awk '{ v=$1+0; if( v > 0 ){ while( v < 100 || int(v) != v ){v = v * 10;}}; print v; }' `;
2483fi
2484osword=`echo $target_os | sed -e 's/[0-9].*//'`; export osword
2485echo "$as_me:$LINENO: result: Target is $target, arch $target_cpu, os $target_os, release $release, version $version" >&5
2486echo "${ECHO_T}Target is $target, arch $target_cpu, os $target_os, release $release, version $version" >&6
2487
2488
2489cat >>confdefs.h <<_ACEOF
2490#define TARGETARCHITECTURE "$target_cpu"
2491_ACEOF
2492
2493
2494cat >>confdefs.h <<_ACEOF
2495#define OSNAME "$osword"
2496_ACEOF
2497
2498
2499cat >>confdefs.h <<_ACEOF
2500#define OSVERSION $version
2501_ACEOF
2502
2503OSNAME=$osword
2504OSVERSION=$version
2505
2506
2507
2508ac_ext=c
2509ac_cpp='$CPP $CPPFLAGS'
2510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2512ac_compiler_gnu=$ac_cv_c_compiler_gnu
2513if test -n "$ac_tool_prefix"; then
2514  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2515set dummy ${ac_tool_prefix}gcc; ac_word=$2
2516echo "$as_me:$LINENO: checking for $ac_word" >&5
2517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2518if test "${ac_cv_prog_CC+set}" = set; then
2519  echo $ECHO_N "(cached) $ECHO_C" >&6
2520else
2521  if test -n "$CC"; then
2522  ac_cv_prog_CC="$CC" # Let the user override the test.
2523else
2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525for as_dir in $PATH
2526do
2527  IFS=$as_save_IFS
2528  test -z "$as_dir" && as_dir=.
2529  for ac_exec_ext in '' $ac_executable_extensions; do
2530  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2532    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533    break 2
2534  fi
2535done
2536done
2537
2538fi
2539fi
2540CC=$ac_cv_prog_CC
2541if test -n "$CC"; then
2542  echo "$as_me:$LINENO: result: $CC" >&5
2543echo "${ECHO_T}$CC" >&6
2544else
2545  echo "$as_me:$LINENO: result: no" >&5
2546echo "${ECHO_T}no" >&6
2547fi
2548
2549fi
2550if test -z "$ac_cv_prog_CC"; then
2551  ac_ct_CC=$CC
2552  # Extract the first word of "gcc", so it can be a program name with args.
2553set dummy gcc; ac_word=$2
2554echo "$as_me:$LINENO: checking for $ac_word" >&5
2555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2556if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2557  echo $ECHO_N "(cached) $ECHO_C" >&6
2558else
2559  if test -n "$ac_ct_CC"; then
2560  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2561else
2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565  IFS=$as_save_IFS
2566  test -z "$as_dir" && as_dir=.
2567  for ac_exec_ext in '' $ac_executable_extensions; do
2568  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569    ac_cv_prog_ac_ct_CC="gcc"
2570    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571    break 2
2572  fi
2573done
2574done
2575
2576fi
2577fi
2578ac_ct_CC=$ac_cv_prog_ac_ct_CC
2579if test -n "$ac_ct_CC"; then
2580  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2581echo "${ECHO_T}$ac_ct_CC" >&6
2582else
2583  echo "$as_me:$LINENO: result: no" >&5
2584echo "${ECHO_T}no" >&6
2585fi
2586
2587  CC=$ac_ct_CC
2588else
2589  CC="$ac_cv_prog_CC"
2590fi
2591
2592if test -z "$CC"; then
2593  if test -n "$ac_tool_prefix"; then
2594  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2595set dummy ${ac_tool_prefix}cc; ac_word=$2
2596echo "$as_me:$LINENO: checking for $ac_word" >&5
2597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2598if test "${ac_cv_prog_CC+set}" = set; then
2599  echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
2601  if test -n "$CC"; then
2602  ac_cv_prog_CC="$CC" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607  IFS=$as_save_IFS
2608  test -z "$as_dir" && as_dir=.
2609  for ac_exec_ext in '' $ac_executable_extensions; do
2610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611    ac_cv_prog_CC="${ac_tool_prefix}cc"
2612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616done
2617
2618fi
2619fi
2620CC=$ac_cv_prog_CC
2621if test -n "$CC"; then
2622  echo "$as_me:$LINENO: result: $CC" >&5
2623echo "${ECHO_T}$CC" >&6
2624else
2625  echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6
2627fi
2628
2629fi
2630if test -z "$ac_cv_prog_CC"; then
2631  ac_ct_CC=$CC
2632  # Extract the first word of "cc", so it can be a program name with args.
2633set dummy cc; ac_word=$2
2634echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2636if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637  echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
2639  if test -n "$ac_ct_CC"; then
2640  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645  IFS=$as_save_IFS
2646  test -z "$as_dir" && as_dir=.
2647  for ac_exec_ext in '' $ac_executable_extensions; do
2648  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649    ac_cv_prog_ac_ct_CC="cc"
2650    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651    break 2
2652  fi
2653done
2654done
2655
2656fi
2657fi
2658ac_ct_CC=$ac_cv_prog_ac_ct_CC
2659if test -n "$ac_ct_CC"; then
2660  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2661echo "${ECHO_T}$ac_ct_CC" >&6
2662else
2663  echo "$as_me:$LINENO: result: no" >&5
2664echo "${ECHO_T}no" >&6
2665fi
2666
2667  CC=$ac_ct_CC
2668else
2669  CC="$ac_cv_prog_CC"
2670fi
2671
2672fi
2673if test -z "$CC"; then
2674  # Extract the first word of "cc", so it can be a program name with args.
2675set dummy cc; ac_word=$2
2676echo "$as_me:$LINENO: checking for $ac_word" >&5
2677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678if test "${ac_cv_prog_CC+set}" = set; then
2679  echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681  if test -n "$CC"; then
2682  ac_cv_prog_CC="$CC" # Let the user override the test.
2683else
2684  ac_prog_rejected=no
2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688  IFS=$as_save_IFS
2689  test -z "$as_dir" && as_dir=.
2690  for ac_exec_ext in '' $ac_executable_extensions; do
2691  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2693       ac_prog_rejected=yes
2694       continue
2695     fi
2696    ac_cv_prog_CC="cc"
2697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698    break 2
2699  fi
2700done
2701done
2702
2703if test $ac_prog_rejected = yes; then
2704  # We found a bogon in the path, so make sure we never use it.
2705  set dummy $ac_cv_prog_CC
2706  shift
2707  if test $# != 0; then
2708    # We chose a different compiler from the bogus one.
2709    # However, it has the same basename, so the bogon will be chosen
2710    # first if we set CC to just the basename; use the full file name.
2711    shift
2712    set dummy "$as_dir/$ac_word" ${1+"$@"}
2713    shift
2714    ac_cv_prog_CC="$@"
2715  fi
2716fi
2717fi
2718fi
2719CC=$ac_cv_prog_CC
2720if test -n "$CC"; then
2721  echo "$as_me:$LINENO: result: $CC" >&5
2722echo "${ECHO_T}$CC" >&6
2723else
2724  echo "$as_me:$LINENO: result: no" >&5
2725echo "${ECHO_T}no" >&6
2726fi
2727
2728fi
2729if test -z "$CC"; then
2730  if test -n "$ac_tool_prefix"; then
2731  for ac_prog in cl
2732  do
2733    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2734set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2735echo "$as_me:$LINENO: checking for $ac_word" >&5
2736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2737if test "${ac_cv_prog_CC+set}" = set; then
2738  echo $ECHO_N "(cached) $ECHO_C" >&6
2739else
2740  if test -n "$CC"; then
2741  ac_cv_prog_CC="$CC" # Let the user override the test.
2742else
2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744for as_dir in $PATH
2745do
2746  IFS=$as_save_IFS
2747  test -z "$as_dir" && as_dir=.
2748  for ac_exec_ext in '' $ac_executable_extensions; do
2749  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2750    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2751    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752    break 2
2753  fi
2754done
2755done
2756
2757fi
2758fi
2759CC=$ac_cv_prog_CC
2760if test -n "$CC"; then
2761  echo "$as_me:$LINENO: result: $CC" >&5
2762echo "${ECHO_T}$CC" >&6
2763else
2764  echo "$as_me:$LINENO: result: no" >&5
2765echo "${ECHO_T}no" >&6
2766fi
2767
2768    test -n "$CC" && break
2769  done
2770fi
2771if test -z "$CC"; then
2772  ac_ct_CC=$CC
2773  for ac_prog in cl
2774do
2775  # Extract the first word of "$ac_prog", so it can be a program name with args.
2776set dummy $ac_prog; ac_word=$2
2777echo "$as_me:$LINENO: checking for $ac_word" >&5
2778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2779if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2780  echo $ECHO_N "(cached) $ECHO_C" >&6
2781else
2782  if test -n "$ac_ct_CC"; then
2783  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2784else
2785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786for as_dir in $PATH
2787do
2788  IFS=$as_save_IFS
2789  test -z "$as_dir" && as_dir=.
2790  for ac_exec_ext in '' $ac_executable_extensions; do
2791  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792    ac_cv_prog_ac_ct_CC="$ac_prog"
2793    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794    break 2
2795  fi
2796done
2797done
2798
2799fi
2800fi
2801ac_ct_CC=$ac_cv_prog_ac_ct_CC
2802if test -n "$ac_ct_CC"; then
2803  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2804echo "${ECHO_T}$ac_ct_CC" >&6
2805else
2806  echo "$as_me:$LINENO: result: no" >&5
2807echo "${ECHO_T}no" >&6
2808fi
2809
2810  test -n "$ac_ct_CC" && break
2811done
2812
2813  CC=$ac_ct_CC
2814fi
2815
2816fi
2817
2818
2819test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2820echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2821   { (exit 1); exit 1; }; }
2822
2823# Provide some information about the compiler.
2824echo "$as_me:$LINENO:" \
2825     "checking for C compiler version" >&5
2826ac_compiler=`set X $ac_compile; echo $2`
2827{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2828  (eval $ac_compiler --version </dev/null >&5) 2>&5
2829  ac_status=$?
2830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831  (exit $ac_status); }
2832{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2833  (eval $ac_compiler -v </dev/null >&5) 2>&5
2834  ac_status=$?
2835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836  (exit $ac_status); }
2837{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2838  (eval $ac_compiler -V </dev/null >&5) 2>&5
2839  ac_status=$?
2840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841  (exit $ac_status); }
2842
2843cat >conftest.$ac_ext <<_ACEOF
2844#line $LINENO "configure"
2845#include "confdefs.h"
2846
2847#ifdef F77_DUMMY_MAIN
2848#  ifdef __cplusplus
2849     extern "C"
2850#  endif
2851   int F77_DUMMY_MAIN() { return 1; }
2852#endif
2853int
2854main ()
2855{
2856
2857  ;
2858  return 0;
2859}
2860_ACEOF
2861ac_clean_files_save=$ac_clean_files
2862ac_clean_files="$ac_clean_files a.out a.exe"
2863# Try to create an executable without -o first, disregard a.out.
2864# It will help us diagnose broken compilers, and finding out an intuition
2865# of exeext.
2866echo "$as_me:$LINENO: checking for C compiler default output" >&5
2867echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2868ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2869if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2870  (eval $ac_link_default) 2>&5
2871  ac_status=$?
2872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873  (exit $ac_status); }; then
2874  # Find the output, starting from the most likely.  This scheme is
2875# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2876# resort.
2877
2878# Be careful to initialize this variable, since it used to be cached.
2879# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2880ac_cv_exeext=
2881for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2882                ls a.out conftest 2>/dev/null;
2883                ls a.* conftest.* 2>/dev/null`; do
2884  case $ac_file in
2885    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2886    a.out ) # We found the default executable, but exeext='' is most
2887            # certainly right.
2888            break;;
2889    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2890          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2891          export ac_cv_exeext
2892          break;;
2893    * ) break;;
2894  esac
2895done
2896else
2897  echo "$as_me: failed program was:" >&5
2898cat conftest.$ac_ext >&5
2899{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2900echo "$as_me: error: C compiler cannot create executables" >&2;}
2901   { (exit 77); exit 77; }; }
2902fi
2903
2904ac_exeext=$ac_cv_exeext
2905echo "$as_me:$LINENO: result: $ac_file" >&5
2906echo "${ECHO_T}$ac_file" >&6
2907
2908# Check the compiler produces executables we can run.  If not, either
2909# the compiler is broken, or we cross compile.
2910echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2911echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2912# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2913# If not cross compiling, check that we can run a simple program.
2914if test "$cross_compiling" != yes; then
2915  if { ac_try='./$ac_file'
2916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917  (eval $ac_try) 2>&5
2918  ac_status=$?
2919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920  (exit $ac_status); }; }; then
2921    cross_compiling=no
2922  else
2923    if test "$cross_compiling" = maybe; then
2924	cross_compiling=yes
2925    else
2926	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2927If you meant to cross compile, use \`--host'." >&5
2928echo "$as_me: error: cannot run C compiled programs.
2929If you meant to cross compile, use \`--host'." >&2;}
2930   { (exit 1); exit 1; }; }
2931    fi
2932  fi
2933fi
2934echo "$as_me:$LINENO: result: yes" >&5
2935echo "${ECHO_T}yes" >&6
2936
2937rm -f a.out a.exe conftest$ac_cv_exeext
2938ac_clean_files=$ac_clean_files_save
2939# Check the compiler produces executables we can run.  If not, either
2940# the compiler is broken, or we cross compile.
2941echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2942echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2943echo "$as_me:$LINENO: result: $cross_compiling" >&5
2944echo "${ECHO_T}$cross_compiling" >&6
2945
2946echo "$as_me:$LINENO: checking for suffix of executables" >&5
2947echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2949  (eval $ac_link) 2>&5
2950  ac_status=$?
2951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952  (exit $ac_status); }; then
2953  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2954# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2955# work properly (i.e., refer to `conftest.exe'), while it won't with
2956# `rm'.
2957for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2958  case $ac_file in
2959    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2960    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2961          export ac_cv_exeext
2962          break;;
2963    * ) break;;
2964  esac
2965done
2966else
2967  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2968echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2969   { (exit 1); exit 1; }; }
2970fi
2971
2972rm -f conftest$ac_cv_exeext
2973echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2974echo "${ECHO_T}$ac_cv_exeext" >&6
2975
2976rm -f conftest.$ac_ext
2977EXEEXT=$ac_cv_exeext
2978ac_exeext=$EXEEXT
2979echo "$as_me:$LINENO: checking for suffix of object files" >&5
2980echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2981if test "${ac_cv_objext+set}" = set; then
2982  echo $ECHO_N "(cached) $ECHO_C" >&6
2983else
2984  cat >conftest.$ac_ext <<_ACEOF
2985#line $LINENO "configure"
2986#include "confdefs.h"
2987
2988#ifdef F77_DUMMY_MAIN
2989#  ifdef __cplusplus
2990     extern "C"
2991#  endif
2992   int F77_DUMMY_MAIN() { return 1; }
2993#endif
2994int
2995main ()
2996{
2997
2998  ;
2999  return 0;
3000}
3001_ACEOF
3002rm -f conftest.o conftest.obj
3003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3004  (eval $ac_compile) 2>&5
3005  ac_status=$?
3006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007  (exit $ac_status); }; then
3008  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3009  case $ac_file in
3010    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
3011    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3012       break;;
3013  esac
3014done
3015else
3016  echo "$as_me: failed program was:" >&5
3017cat conftest.$ac_ext >&5
3018{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
3019echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
3020   { (exit 1); exit 1; }; }
3021fi
3022
3023rm -f conftest.$ac_cv_objext conftest.$ac_ext
3024fi
3025echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3026echo "${ECHO_T}$ac_cv_objext" >&6
3027OBJEXT=$ac_cv_objext
3028ac_objext=$OBJEXT
3029echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3030echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3031if test "${ac_cv_c_compiler_gnu+set}" = set; then
3032  echo $ECHO_N "(cached) $ECHO_C" >&6
3033else
3034  cat >conftest.$ac_ext <<_ACEOF
3035#line $LINENO "configure"
3036#include "confdefs.h"
3037
3038#ifdef F77_DUMMY_MAIN
3039#  ifdef __cplusplus
3040     extern "C"
3041#  endif
3042   int F77_DUMMY_MAIN() { return 1; }
3043#endif
3044int
3045main ()
3046{
3047#ifndef __GNUC__
3048       choke me
3049#endif
3050
3051  ;
3052  return 0;
3053}
3054_ACEOF
3055rm -f conftest.$ac_objext
3056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3057  (eval $ac_compile) 2>&5
3058  ac_status=$?
3059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060  (exit $ac_status); } &&
3061         { ac_try='test -s conftest.$ac_objext'
3062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063  (eval $ac_try) 2>&5
3064  ac_status=$?
3065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066  (exit $ac_status); }; }; then
3067  ac_compiler_gnu=yes
3068else
3069  echo "$as_me: failed program was:" >&5
3070cat conftest.$ac_ext >&5
3071ac_compiler_gnu=no
3072fi
3073rm -f conftest.$ac_objext conftest.$ac_ext
3074ac_cv_c_compiler_gnu=$ac_compiler_gnu
3075
3076fi
3077echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3078echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3079GCC=`test $ac_compiler_gnu = yes && echo yes`
3080ac_test_CFLAGS=${CFLAGS+set}
3081ac_save_CFLAGS=$CFLAGS
3082CFLAGS="-g"
3083echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3084echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3085if test "${ac_cv_prog_cc_g+set}" = set; then
3086  echo $ECHO_N "(cached) $ECHO_C" >&6
3087else
3088  cat >conftest.$ac_ext <<_ACEOF
3089#line $LINENO "configure"
3090#include "confdefs.h"
3091
3092#ifdef F77_DUMMY_MAIN
3093#  ifdef __cplusplus
3094     extern "C"
3095#  endif
3096   int F77_DUMMY_MAIN() { return 1; }
3097#endif
3098int
3099main ()
3100{
3101
3102  ;
3103  return 0;
3104}
3105_ACEOF
3106rm -f conftest.$ac_objext
3107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3108  (eval $ac_compile) 2>&5
3109  ac_status=$?
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); } &&
3112         { ac_try='test -s conftest.$ac_objext'
3113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114  (eval $ac_try) 2>&5
3115  ac_status=$?
3116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117  (exit $ac_status); }; }; then
3118  ac_cv_prog_cc_g=yes
3119else
3120  echo "$as_me: failed program was:" >&5
3121cat conftest.$ac_ext >&5
3122ac_cv_prog_cc_g=no
3123fi
3124rm -f conftest.$ac_objext conftest.$ac_ext
3125fi
3126echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3127echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3128if test "$ac_test_CFLAGS" = set; then
3129  CFLAGS=$ac_save_CFLAGS
3130elif test $ac_cv_prog_cc_g = yes; then
3131  if test "$GCC" = yes; then
3132    CFLAGS="-g -O2"
3133  else
3134    CFLAGS="-g"
3135  fi
3136else
3137  if test "$GCC" = yes; then
3138    CFLAGS="-O2"
3139  else
3140    CFLAGS=
3141  fi
3142fi
3143# Some people use a C++ compiler to compile C.  Since we use `exit',
3144# in C++ we need to declare it.  In case someone uses the same compiler
3145# for both compiling C and C++ we need to have the C++ compiler decide
3146# the declaration of exit, since it's the most demanding environment.
3147cat >conftest.$ac_ext <<_ACEOF
3148#ifndef __cplusplus
3149  choke me
3150#endif
3151_ACEOF
3152rm -f conftest.$ac_objext
3153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3154  (eval $ac_compile) 2>&5
3155  ac_status=$?
3156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157  (exit $ac_status); } &&
3158         { ac_try='test -s conftest.$ac_objext'
3159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160  (eval $ac_try) 2>&5
3161  ac_status=$?
3162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163  (exit $ac_status); }; }; then
3164  for ac_declaration in \
3165   ''\
3166   '#include <stdlib.h>' \
3167   'extern "C" void std::exit (int) throw (); using std::exit;' \
3168   'extern "C" void std::exit (int); using std::exit;' \
3169   'extern "C" void exit (int) throw ();' \
3170   'extern "C" void exit (int);' \
3171   'void exit (int);'
3172do
3173  cat >conftest.$ac_ext <<_ACEOF
3174#line $LINENO "configure"
3175#include "confdefs.h"
3176#include <stdlib.h>
3177$ac_declaration
3178#ifdef F77_DUMMY_MAIN
3179#  ifdef __cplusplus
3180     extern "C"
3181#  endif
3182   int F77_DUMMY_MAIN() { return 1; }
3183#endif
3184int
3185main ()
3186{
3187exit (42);
3188  ;
3189  return 0;
3190}
3191_ACEOF
3192rm -f conftest.$ac_objext
3193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3194  (eval $ac_compile) 2>&5
3195  ac_status=$?
3196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197  (exit $ac_status); } &&
3198         { ac_try='test -s conftest.$ac_objext'
3199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200  (eval $ac_try) 2>&5
3201  ac_status=$?
3202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203  (exit $ac_status); }; }; then
3204  :
3205else
3206  echo "$as_me: failed program was:" >&5
3207cat conftest.$ac_ext >&5
3208continue
3209fi
3210rm -f conftest.$ac_objext conftest.$ac_ext
3211  cat >conftest.$ac_ext <<_ACEOF
3212#line $LINENO "configure"
3213#include "confdefs.h"
3214$ac_declaration
3215#ifdef F77_DUMMY_MAIN
3216#  ifdef __cplusplus
3217     extern "C"
3218#  endif
3219   int F77_DUMMY_MAIN() { return 1; }
3220#endif
3221int
3222main ()
3223{
3224exit (42);
3225  ;
3226  return 0;
3227}
3228_ACEOF
3229rm -f conftest.$ac_objext
3230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3231  (eval $ac_compile) 2>&5
3232  ac_status=$?
3233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234  (exit $ac_status); } &&
3235         { ac_try='test -s conftest.$ac_objext'
3236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237  (eval $ac_try) 2>&5
3238  ac_status=$?
3239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240  (exit $ac_status); }; }; then
3241  break
3242else
3243  echo "$as_me: failed program was:" >&5
3244cat conftest.$ac_ext >&5
3245fi
3246rm -f conftest.$ac_objext conftest.$ac_ext
3247done
3248rm -f conftest*
3249if test -n "$ac_declaration"; then
3250  echo '#ifdef __cplusplus' >>confdefs.h
3251  echo $ac_declaration      >>confdefs.h
3252  echo '#endif'             >>confdefs.h
3253fi
3254
3255else
3256  echo "$as_me: failed program was:" >&5
3257cat conftest.$ac_ext >&5
3258fi
3259rm -f conftest.$ac_objext conftest.$ac_ext
3260ac_ext=c
3261ac_cpp='$CPP $CPPFLAGS'
3262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265
3266ac_ext=c
3267ac_cpp='$CPP $CPPFLAGS'
3268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3272echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3273# On Suns, sometimes $CPP names a directory.
3274if test -n "$CPP" && test -d "$CPP"; then
3275  CPP=
3276fi
3277if test -z "$CPP"; then
3278  if test "${ac_cv_prog_CPP+set}" = set; then
3279  echo $ECHO_N "(cached) $ECHO_C" >&6
3280else
3281      # Double quotes because CPP needs to be expanded
3282    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3283    do
3284      ac_preproc_ok=false
3285for ac_c_preproc_warn_flag in '' yes
3286do
3287  # Use a header file that comes with gcc, so configuring glibc
3288  # with a fresh cross-compiler works.
3289  # On the NeXT, cc -E runs the code through the compiler's parser,
3290  # not just through cpp. "Syntax error" is here to catch this case.
3291  cat >conftest.$ac_ext <<_ACEOF
3292#line $LINENO "configure"
3293#include "confdefs.h"
3294#include <assert.h>
3295                     Syntax error
3296_ACEOF
3297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3298  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3299  ac_status=$?
3300  egrep -v '^ *\+' conftest.er1 >conftest.err
3301  rm -f conftest.er1
3302  cat conftest.err >&5
3303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304  (exit $ac_status); } >/dev/null; then
3305  if test -s conftest.err; then
3306    ac_cpp_err=$ac_c_preproc_warn_flag
3307  else
3308    ac_cpp_err=
3309  fi
3310else
3311  ac_cpp_err=yes
3312fi
3313if test -z "$ac_cpp_err"; then
3314  :
3315else
3316  echo "$as_me: failed program was:" >&5
3317  cat conftest.$ac_ext >&5
3318  # Broken: fails on valid input.
3319continue
3320fi
3321rm -f conftest.err conftest.$ac_ext
3322
3323  # OK, works on sane cases.  Now check whether non-existent headers
3324  # can be detected and how.
3325  cat >conftest.$ac_ext <<_ACEOF
3326#line $LINENO "configure"
3327#include "confdefs.h"
3328#include <ac_nonexistent.h>
3329_ACEOF
3330if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3331  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3332  ac_status=$?
3333  egrep -v '^ *\+' conftest.er1 >conftest.err
3334  rm -f conftest.er1
3335  cat conftest.err >&5
3336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337  (exit $ac_status); } >/dev/null; then
3338  if test -s conftest.err; then
3339    ac_cpp_err=$ac_c_preproc_warn_flag
3340  else
3341    ac_cpp_err=
3342  fi
3343else
3344  ac_cpp_err=yes
3345fi
3346if test -z "$ac_cpp_err"; then
3347  # Broken: success on invalid input.
3348continue
3349else
3350  echo "$as_me: failed program was:" >&5
3351  cat conftest.$ac_ext >&5
3352  # Passes both tests.
3353ac_preproc_ok=:
3354break
3355fi
3356rm -f conftest.err conftest.$ac_ext
3357
3358done
3359# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3360rm -f conftest.err conftest.$ac_ext
3361if $ac_preproc_ok; then
3362  break
3363fi
3364
3365    done
3366    ac_cv_prog_CPP=$CPP
3367
3368fi
3369  CPP=$ac_cv_prog_CPP
3370else
3371  ac_cv_prog_CPP=$CPP
3372fi
3373echo "$as_me:$LINENO: result: $CPP" >&5
3374echo "${ECHO_T}$CPP" >&6
3375ac_preproc_ok=false
3376for ac_c_preproc_warn_flag in '' yes
3377do
3378  # Use a header file that comes with gcc, so configuring glibc
3379  # with a fresh cross-compiler works.
3380  # On the NeXT, cc -E runs the code through the compiler's parser,
3381  # not just through cpp. "Syntax error" is here to catch this case.
3382  cat >conftest.$ac_ext <<_ACEOF
3383#line $LINENO "configure"
3384#include "confdefs.h"
3385#include <assert.h>
3386                     Syntax error
3387_ACEOF
3388if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3389  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3390  ac_status=$?
3391  egrep -v '^ *\+' conftest.er1 >conftest.err
3392  rm -f conftest.er1
3393  cat conftest.err >&5
3394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395  (exit $ac_status); } >/dev/null; then
3396  if test -s conftest.err; then
3397    ac_cpp_err=$ac_c_preproc_warn_flag
3398  else
3399    ac_cpp_err=
3400  fi
3401else
3402  ac_cpp_err=yes
3403fi
3404if test -z "$ac_cpp_err"; then
3405  :
3406else
3407  echo "$as_me: failed program was:" >&5
3408  cat conftest.$ac_ext >&5
3409  # Broken: fails on valid input.
3410continue
3411fi
3412rm -f conftest.err conftest.$ac_ext
3413
3414  # OK, works on sane cases.  Now check whether non-existent headers
3415  # can be detected and how.
3416  cat >conftest.$ac_ext <<_ACEOF
3417#line $LINENO "configure"
3418#include "confdefs.h"
3419#include <ac_nonexistent.h>
3420_ACEOF
3421if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3422  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3423  ac_status=$?
3424  egrep -v '^ *\+' conftest.er1 >conftest.err
3425  rm -f conftest.er1
3426  cat conftest.err >&5
3427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428  (exit $ac_status); } >/dev/null; then
3429  if test -s conftest.err; then
3430    ac_cpp_err=$ac_c_preproc_warn_flag
3431  else
3432    ac_cpp_err=
3433  fi
3434else
3435  ac_cpp_err=yes
3436fi
3437if test -z "$ac_cpp_err"; then
3438  # Broken: success on invalid input.
3439continue
3440else
3441  echo "$as_me: failed program was:" >&5
3442  cat conftest.$ac_ext >&5
3443  # Passes both tests.
3444ac_preproc_ok=:
3445break
3446fi
3447rm -f conftest.err conftest.$ac_ext
3448
3449done
3450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451rm -f conftest.err conftest.$ac_ext
3452if $ac_preproc_ok; then
3453  :
3454else
3455  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3456echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3457   { (exit 1); exit 1; }; }
3458fi
3459
3460ac_ext=c
3461ac_cpp='$CPP $CPPFLAGS'
3462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465
3466ac_ext=c
3467ac_cpp='$CPP $CPPFLAGS'
3468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471if test -n "$ac_tool_prefix"; then
3472  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3473set dummy ${ac_tool_prefix}gcc; ac_word=$2
3474echo "$as_me:$LINENO: checking for $ac_word" >&5
3475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3476if test "${ac_cv_prog_CC+set}" = set; then
3477  echo $ECHO_N "(cached) $ECHO_C" >&6
3478else
3479  if test -n "$CC"; then
3480  ac_cv_prog_CC="$CC" # Let the user override the test.
3481else
3482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483for as_dir in $PATH
3484do
3485  IFS=$as_save_IFS
3486  test -z "$as_dir" && as_dir=.
3487  for ac_exec_ext in '' $ac_executable_extensions; do
3488  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3490    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3491    break 2
3492  fi
3493done
3494done
3495
3496fi
3497fi
3498CC=$ac_cv_prog_CC
3499if test -n "$CC"; then
3500  echo "$as_me:$LINENO: result: $CC" >&5
3501echo "${ECHO_T}$CC" >&6
3502else
3503  echo "$as_me:$LINENO: result: no" >&5
3504echo "${ECHO_T}no" >&6
3505fi
3506
3507fi
3508if test -z "$ac_cv_prog_CC"; then
3509  ac_ct_CC=$CC
3510  # Extract the first word of "gcc", so it can be a program name with args.
3511set dummy gcc; ac_word=$2
3512echo "$as_me:$LINENO: checking for $ac_word" >&5
3513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3514if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3515  echo $ECHO_N "(cached) $ECHO_C" >&6
3516else
3517  if test -n "$ac_ct_CC"; then
3518  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3519else
3520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521for as_dir in $PATH
3522do
3523  IFS=$as_save_IFS
3524  test -z "$as_dir" && as_dir=.
3525  for ac_exec_ext in '' $ac_executable_extensions; do
3526  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527    ac_cv_prog_ac_ct_CC="gcc"
3528    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3529    break 2
3530  fi
3531done
3532done
3533
3534fi
3535fi
3536ac_ct_CC=$ac_cv_prog_ac_ct_CC
3537if test -n "$ac_ct_CC"; then
3538  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3539echo "${ECHO_T}$ac_ct_CC" >&6
3540else
3541  echo "$as_me:$LINENO: result: no" >&5
3542echo "${ECHO_T}no" >&6
3543fi
3544
3545  CC=$ac_ct_CC
3546else
3547  CC="$ac_cv_prog_CC"
3548fi
3549
3550if test -z "$CC"; then
3551  if test -n "$ac_tool_prefix"; then
3552  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3553set dummy ${ac_tool_prefix}cc; ac_word=$2
3554echo "$as_me:$LINENO: checking for $ac_word" >&5
3555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3556if test "${ac_cv_prog_CC+set}" = set; then
3557  echo $ECHO_N "(cached) $ECHO_C" >&6
3558else
3559  if test -n "$CC"; then
3560  ac_cv_prog_CC="$CC" # Let the user override the test.
3561else
3562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563for as_dir in $PATH
3564do
3565  IFS=$as_save_IFS
3566  test -z "$as_dir" && as_dir=.
3567  for ac_exec_ext in '' $ac_executable_extensions; do
3568  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569    ac_cv_prog_CC="${ac_tool_prefix}cc"
3570    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3571    break 2
3572  fi
3573done
3574done
3575
3576fi
3577fi
3578CC=$ac_cv_prog_CC
3579if test -n "$CC"; then
3580  echo "$as_me:$LINENO: result: $CC" >&5
3581echo "${ECHO_T}$CC" >&6
3582else
3583  echo "$as_me:$LINENO: result: no" >&5
3584echo "${ECHO_T}no" >&6
3585fi
3586
3587fi
3588if test -z "$ac_cv_prog_CC"; then
3589  ac_ct_CC=$CC
3590  # Extract the first word of "cc", so it can be a program name with args.
3591set dummy cc; ac_word=$2
3592echo "$as_me:$LINENO: checking for $ac_word" >&5
3593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3594if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3595  echo $ECHO_N "(cached) $ECHO_C" >&6
3596else
3597  if test -n "$ac_ct_CC"; then
3598  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3599else
3600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601for as_dir in $PATH
3602do
3603  IFS=$as_save_IFS
3604  test -z "$as_dir" && as_dir=.
3605  for ac_exec_ext in '' $ac_executable_extensions; do
3606  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607    ac_cv_prog_ac_ct_CC="cc"
3608    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609    break 2
3610  fi
3611done
3612done
3613
3614fi
3615fi
3616ac_ct_CC=$ac_cv_prog_ac_ct_CC
3617if test -n "$ac_ct_CC"; then
3618  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3619echo "${ECHO_T}$ac_ct_CC" >&6
3620else
3621  echo "$as_me:$LINENO: result: no" >&5
3622echo "${ECHO_T}no" >&6
3623fi
3624
3625  CC=$ac_ct_CC
3626else
3627  CC="$ac_cv_prog_CC"
3628fi
3629
3630fi
3631if test -z "$CC"; then
3632  # Extract the first word of "cc", so it can be a program name with args.
3633set dummy cc; ac_word=$2
3634echo "$as_me:$LINENO: checking for $ac_word" >&5
3635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3636if test "${ac_cv_prog_CC+set}" = set; then
3637  echo $ECHO_N "(cached) $ECHO_C" >&6
3638else
3639  if test -n "$CC"; then
3640  ac_cv_prog_CC="$CC" # Let the user override the test.
3641else
3642  ac_prog_rejected=no
3643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644for as_dir in $PATH
3645do
3646  IFS=$as_save_IFS
3647  test -z "$as_dir" && as_dir=.
3648  for ac_exec_ext in '' $ac_executable_extensions; do
3649  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3650    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3651       ac_prog_rejected=yes
3652       continue
3653     fi
3654    ac_cv_prog_CC="cc"
3655    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3656    break 2
3657  fi
3658done
3659done
3660
3661if test $ac_prog_rejected = yes; then
3662  # We found a bogon in the path, so make sure we never use it.
3663  set dummy $ac_cv_prog_CC
3664  shift
3665  if test $# != 0; then
3666    # We chose a different compiler from the bogus one.
3667    # However, it has the same basename, so the bogon will be chosen
3668    # first if we set CC to just the basename; use the full file name.
3669    shift
3670    set dummy "$as_dir/$ac_word" ${1+"$@"}
3671    shift
3672    ac_cv_prog_CC="$@"
3673  fi
3674fi
3675fi
3676fi
3677CC=$ac_cv_prog_CC
3678if test -n "$CC"; then
3679  echo "$as_me:$LINENO: result: $CC" >&5
3680echo "${ECHO_T}$CC" >&6
3681else
3682  echo "$as_me:$LINENO: result: no" >&5
3683echo "${ECHO_T}no" >&6
3684fi
3685
3686fi
3687if test -z "$CC"; then
3688  if test -n "$ac_tool_prefix"; then
3689  for ac_prog in cl
3690  do
3691    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3692set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3693echo "$as_me:$LINENO: checking for $ac_word" >&5
3694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695if test "${ac_cv_prog_CC+set}" = set; then
3696  echo $ECHO_N "(cached) $ECHO_C" >&6
3697else
3698  if test -n "$CC"; then
3699  ac_cv_prog_CC="$CC" # Let the user override the test.
3700else
3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702for as_dir in $PATH
3703do
3704  IFS=$as_save_IFS
3705  test -z "$as_dir" && as_dir=.
3706  for ac_exec_ext in '' $ac_executable_extensions; do
3707  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3709    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710    break 2
3711  fi
3712done
3713done
3714
3715fi
3716fi
3717CC=$ac_cv_prog_CC
3718if test -n "$CC"; then
3719  echo "$as_me:$LINENO: result: $CC" >&5
3720echo "${ECHO_T}$CC" >&6
3721else
3722  echo "$as_me:$LINENO: result: no" >&5
3723echo "${ECHO_T}no" >&6
3724fi
3725
3726    test -n "$CC" && break
3727  done
3728fi
3729if test -z "$CC"; then
3730  ac_ct_CC=$CC
3731  for ac_prog in cl
3732do
3733  # Extract the first word of "$ac_prog", so it can be a program name with args.
3734set dummy $ac_prog; ac_word=$2
3735echo "$as_me:$LINENO: checking for $ac_word" >&5
3736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3738  echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740  if test -n "$ac_ct_CC"; then
3741  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3742else
3743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744for as_dir in $PATH
3745do
3746  IFS=$as_save_IFS
3747  test -z "$as_dir" && as_dir=.
3748  for ac_exec_ext in '' $ac_executable_extensions; do
3749  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750    ac_cv_prog_ac_ct_CC="$ac_prog"
3751    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752    break 2
3753  fi
3754done
3755done
3756
3757fi
3758fi
3759ac_ct_CC=$ac_cv_prog_ac_ct_CC
3760if test -n "$ac_ct_CC"; then
3761  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3762echo "${ECHO_T}$ac_ct_CC" >&6
3763else
3764  echo "$as_me:$LINENO: result: no" >&5
3765echo "${ECHO_T}no" >&6
3766fi
3767
3768  test -n "$ac_ct_CC" && break
3769done
3770
3771  CC=$ac_ct_CC
3772fi
3773
3774fi
3775
3776
3777test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
3778echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
3779   { (exit 1); exit 1; }; }
3780
3781# Provide some information about the compiler.
3782echo "$as_me:$LINENO:" \
3783     "checking for C compiler version" >&5
3784ac_compiler=`set X $ac_compile; echo $2`
3785{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3786  (eval $ac_compiler --version </dev/null >&5) 2>&5
3787  ac_status=$?
3788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789  (exit $ac_status); }
3790{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3791  (eval $ac_compiler -v </dev/null >&5) 2>&5
3792  ac_status=$?
3793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794  (exit $ac_status); }
3795{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3796  (eval $ac_compiler -V </dev/null >&5) 2>&5
3797  ac_status=$?
3798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799  (exit $ac_status); }
3800
3801echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3802echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3803if test "${ac_cv_c_compiler_gnu+set}" = set; then
3804  echo $ECHO_N "(cached) $ECHO_C" >&6
3805else
3806  cat >conftest.$ac_ext <<_ACEOF
3807#line $LINENO "configure"
3808#include "confdefs.h"
3809
3810#ifdef F77_DUMMY_MAIN
3811#  ifdef __cplusplus
3812     extern "C"
3813#  endif
3814   int F77_DUMMY_MAIN() { return 1; }
3815#endif
3816int
3817main ()
3818{
3819#ifndef __GNUC__
3820       choke me
3821#endif
3822
3823  ;
3824  return 0;
3825}
3826_ACEOF
3827rm -f conftest.$ac_objext
3828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829  (eval $ac_compile) 2>&5
3830  ac_status=$?
3831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832  (exit $ac_status); } &&
3833         { ac_try='test -s conftest.$ac_objext'
3834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835  (eval $ac_try) 2>&5
3836  ac_status=$?
3837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838  (exit $ac_status); }; }; then
3839  ac_compiler_gnu=yes
3840else
3841  echo "$as_me: failed program was:" >&5
3842cat conftest.$ac_ext >&5
3843ac_compiler_gnu=no
3844fi
3845rm -f conftest.$ac_objext conftest.$ac_ext
3846ac_cv_c_compiler_gnu=$ac_compiler_gnu
3847
3848fi
3849echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3850echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3851GCC=`test $ac_compiler_gnu = yes && echo yes`
3852ac_test_CFLAGS=${CFLAGS+set}
3853ac_save_CFLAGS=$CFLAGS
3854CFLAGS="-g"
3855echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3856echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3857if test "${ac_cv_prog_cc_g+set}" = set; then
3858  echo $ECHO_N "(cached) $ECHO_C" >&6
3859else
3860  cat >conftest.$ac_ext <<_ACEOF
3861#line $LINENO "configure"
3862#include "confdefs.h"
3863
3864#ifdef F77_DUMMY_MAIN
3865#  ifdef __cplusplus
3866     extern "C"
3867#  endif
3868   int F77_DUMMY_MAIN() { return 1; }
3869#endif
3870int
3871main ()
3872{
3873
3874  ;
3875  return 0;
3876}
3877_ACEOF
3878rm -f conftest.$ac_objext
3879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3880  (eval $ac_compile) 2>&5
3881  ac_status=$?
3882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883  (exit $ac_status); } &&
3884         { ac_try='test -s conftest.$ac_objext'
3885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886  (eval $ac_try) 2>&5
3887  ac_status=$?
3888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889  (exit $ac_status); }; }; then
3890  ac_cv_prog_cc_g=yes
3891else
3892  echo "$as_me: failed program was:" >&5
3893cat conftest.$ac_ext >&5
3894ac_cv_prog_cc_g=no
3895fi
3896rm -f conftest.$ac_objext conftest.$ac_ext
3897fi
3898echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3899echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3900if test "$ac_test_CFLAGS" = set; then
3901  CFLAGS=$ac_save_CFLAGS
3902elif test $ac_cv_prog_cc_g = yes; then
3903  if test "$GCC" = yes; then
3904    CFLAGS="-g -O2"
3905  else
3906    CFLAGS="-g"
3907  fi
3908else
3909  if test "$GCC" = yes; then
3910    CFLAGS="-O2"
3911  else
3912    CFLAGS=
3913  fi
3914fi
3915# Some people use a C++ compiler to compile C.  Since we use `exit',
3916# in C++ we need to declare it.  In case someone uses the same compiler
3917# for both compiling C and C++ we need to have the C++ compiler decide
3918# the declaration of exit, since it's the most demanding environment.
3919cat >conftest.$ac_ext <<_ACEOF
3920#ifndef __cplusplus
3921  choke me
3922#endif
3923_ACEOF
3924rm -f conftest.$ac_objext
3925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3926  (eval $ac_compile) 2>&5
3927  ac_status=$?
3928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929  (exit $ac_status); } &&
3930         { ac_try='test -s conftest.$ac_objext'
3931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932  (eval $ac_try) 2>&5
3933  ac_status=$?
3934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935  (exit $ac_status); }; }; then
3936  for ac_declaration in \
3937   ''\
3938   '#include <stdlib.h>' \
3939   'extern "C" void std::exit (int) throw (); using std::exit;' \
3940   'extern "C" void std::exit (int); using std::exit;' \
3941   'extern "C" void exit (int) throw ();' \
3942   'extern "C" void exit (int);' \
3943   'void exit (int);'
3944do
3945  cat >conftest.$ac_ext <<_ACEOF
3946#line $LINENO "configure"
3947#include "confdefs.h"
3948#include <stdlib.h>
3949$ac_declaration
3950#ifdef F77_DUMMY_MAIN
3951#  ifdef __cplusplus
3952     extern "C"
3953#  endif
3954   int F77_DUMMY_MAIN() { return 1; }
3955#endif
3956int
3957main ()
3958{
3959exit (42);
3960  ;
3961  return 0;
3962}
3963_ACEOF
3964rm -f conftest.$ac_objext
3965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966  (eval $ac_compile) 2>&5
3967  ac_status=$?
3968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969  (exit $ac_status); } &&
3970         { ac_try='test -s conftest.$ac_objext'
3971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972  (eval $ac_try) 2>&5
3973  ac_status=$?
3974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975  (exit $ac_status); }; }; then
3976  :
3977else
3978  echo "$as_me: failed program was:" >&5
3979cat conftest.$ac_ext >&5
3980continue
3981fi
3982rm -f conftest.$ac_objext conftest.$ac_ext
3983  cat >conftest.$ac_ext <<_ACEOF
3984#line $LINENO "configure"
3985#include "confdefs.h"
3986$ac_declaration
3987#ifdef F77_DUMMY_MAIN
3988#  ifdef __cplusplus
3989     extern "C"
3990#  endif
3991   int F77_DUMMY_MAIN() { return 1; }
3992#endif
3993int
3994main ()
3995{
3996exit (42);
3997  ;
3998  return 0;
3999}
4000_ACEOF
4001rm -f conftest.$ac_objext
4002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4003  (eval $ac_compile) 2>&5
4004  ac_status=$?
4005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006  (exit $ac_status); } &&
4007         { ac_try='test -s conftest.$ac_objext'
4008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009  (eval $ac_try) 2>&5
4010  ac_status=$?
4011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012  (exit $ac_status); }; }; then
4013  break
4014else
4015  echo "$as_me: failed program was:" >&5
4016cat conftest.$ac_ext >&5
4017fi
4018rm -f conftest.$ac_objext conftest.$ac_ext
4019done
4020rm -f conftest*
4021if test -n "$ac_declaration"; then
4022  echo '#ifdef __cplusplus' >>confdefs.h
4023  echo $ac_declaration      >>confdefs.h
4024  echo '#endif'             >>confdefs.h
4025fi
4026
4027else
4028  echo "$as_me: failed program was:" >&5
4029cat conftest.$ac_ext >&5
4030fi
4031rm -f conftest.$ac_objext conftest.$ac_ext
4032ac_ext=c
4033ac_cpp='$CPP $CPPFLAGS'
4034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037
4038
4039
4040
4041
4042echo "$as_me:$LINENO: checking for AIX" >&5
4043echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4044cat >conftest.$ac_ext <<_ACEOF
4045#line $LINENO "configure"
4046#include "confdefs.h"
4047#ifdef _AIX
4048  yes
4049#endif
4050
4051_ACEOF
4052if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4053  egrep "yes" >/dev/null 2>&1; then
4054  echo "$as_me:$LINENO: result: yes" >&5
4055echo "${ECHO_T}yes" >&6
4056cat >>confdefs.h <<\_ACEOF
4057#define _ALL_SOURCE 1
4058_ACEOF
4059
4060else
4061  echo "$as_me:$LINENO: result: no" >&5
4062echo "${ECHO_T}no" >&6
4063fi
4064rm -f conftest*
4065
4066
4067
4068        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4069echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
4070if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4071  echo $ECHO_N "(cached) $ECHO_C" >&6
4072else
4073  ac_check_lib_save_LIBS=$LIBS
4074LIBS="-lcposix  $LIBS"
4075cat >conftest.$ac_ext <<_ACEOF
4076#line $LINENO "configure"
4077#include "confdefs.h"
4078
4079/* Override any gcc2 internal prototype to avoid an error.  */
4080#ifdef __cplusplus
4081extern "C"
4082#endif
4083/* We use char because int might match the return type of a gcc2
4084   builtin and then its argument prototype would still apply.  */
4085char strerror ();
4086#ifdef F77_DUMMY_MAIN
4087#  ifdef __cplusplus
4088     extern "C"
4089#  endif
4090   int F77_DUMMY_MAIN() { return 1; }
4091#endif
4092int
4093main ()
4094{
4095strerror ();
4096  ;
4097  return 0;
4098}
4099_ACEOF
4100rm -f conftest.$ac_objext conftest$ac_exeext
4101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4102  (eval $ac_link) 2>&5
4103  ac_status=$?
4104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105  (exit $ac_status); } &&
4106         { ac_try='test -s conftest$ac_exeext'
4107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108  (eval $ac_try) 2>&5
4109  ac_status=$?
4110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111  (exit $ac_status); }; }; then
4112  ac_cv_lib_cposix_strerror=yes
4113else
4114  echo "$as_me: failed program was:" >&5
4115cat conftest.$ac_ext >&5
4116ac_cv_lib_cposix_strerror=no
4117fi
4118rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4119LIBS=$ac_check_lib_save_LIBS
4120fi
4121echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4122echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4123if test $ac_cv_lib_cposix_strerror = yes; then
4124  LIBS="$LIBS -lcposix"
4125fi
4126
4127
4128
4129echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4130echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4131if test "${ac_cv_header_stdc+set}" = set; then
4132  echo $ECHO_N "(cached) $ECHO_C" >&6
4133else
4134  cat >conftest.$ac_ext <<_ACEOF
4135#line $LINENO "configure"
4136#include "confdefs.h"
4137#include <stdlib.h>
4138#include <stdarg.h>
4139#include <string.h>
4140#include <float.h>
4141
4142_ACEOF
4143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4144  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4145  ac_status=$?
4146  egrep -v '^ *\+' conftest.er1 >conftest.err
4147  rm -f conftest.er1
4148  cat conftest.err >&5
4149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150  (exit $ac_status); } >/dev/null; then
4151  if test -s conftest.err; then
4152    ac_cpp_err=$ac_c_preproc_warn_flag
4153  else
4154    ac_cpp_err=
4155  fi
4156else
4157  ac_cpp_err=yes
4158fi
4159if test -z "$ac_cpp_err"; then
4160  ac_cv_header_stdc=yes
4161else
4162  echo "$as_me: failed program was:" >&5
4163  cat conftest.$ac_ext >&5
4164  ac_cv_header_stdc=no
4165fi
4166rm -f conftest.err conftest.$ac_ext
4167
4168if test $ac_cv_header_stdc = yes; then
4169  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4170  cat >conftest.$ac_ext <<_ACEOF
4171#line $LINENO "configure"
4172#include "confdefs.h"
4173#include <string.h>
4174
4175_ACEOF
4176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4177  egrep "memchr" >/dev/null 2>&1; then
4178  :
4179else
4180  ac_cv_header_stdc=no
4181fi
4182rm -f conftest*
4183
4184fi
4185
4186if test $ac_cv_header_stdc = yes; then
4187  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4188  cat >conftest.$ac_ext <<_ACEOF
4189#line $LINENO "configure"
4190#include "confdefs.h"
4191#include <stdlib.h>
4192
4193_ACEOF
4194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4195  egrep "free" >/dev/null 2>&1; then
4196  :
4197else
4198  ac_cv_header_stdc=no
4199fi
4200rm -f conftest*
4201
4202fi
4203
4204if test $ac_cv_header_stdc = yes; then
4205  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4206  if test "$cross_compiling" = yes; then
4207  :
4208else
4209  cat >conftest.$ac_ext <<_ACEOF
4210#line $LINENO "configure"
4211#include "confdefs.h"
4212#include <ctype.h>
4213#if ((' ' & 0x0FF) == 0x020)
4214# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4215# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4216#else
4217# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4218                     || ('j' <= (c) && (c) <= 'r') \
4219                     || ('s' <= (c) && (c) <= 'z'))
4220# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4221#endif
4222
4223#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4224int
4225main ()
4226{
4227  int i;
4228  for (i = 0; i < 256; i++)
4229    if (XOR (islower (i), ISLOWER (i))
4230        || toupper (i) != TOUPPER (i))
4231      exit(2);
4232  exit (0);
4233}
4234_ACEOF
4235rm -f conftest$ac_exeext
4236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4237  (eval $ac_link) 2>&5
4238  ac_status=$?
4239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242  (eval $ac_try) 2>&5
4243  ac_status=$?
4244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245  (exit $ac_status); }; }; then
4246  :
4247else
4248  echo "$as_me: program exited with status $ac_status" >&5
4249echo "$as_me: failed program was:" >&5
4250cat conftest.$ac_ext >&5
4251( exit $ac_status )
4252ac_cv_header_stdc=no
4253fi
4254rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4255fi
4256fi
4257fi
4258echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4259echo "${ECHO_T}$ac_cv_header_stdc" >&6
4260if test $ac_cv_header_stdc = yes; then
4261
4262cat >>confdefs.h <<\_ACEOF
4263#define STDC_HEADERS 1
4264_ACEOF
4265
4266fi
4267
4268# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4279                  inttypes.h stdint.h unistd.h
4280do
4281as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4282echo "$as_me:$LINENO: checking for $ac_header" >&5
4283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4284if eval "test \"\${$as_ac_Header+set}\" = set"; then
4285  echo $ECHO_N "(cached) $ECHO_C" >&6
4286else
4287  cat >conftest.$ac_ext <<_ACEOF
4288#line $LINENO "configure"
4289#include "confdefs.h"
4290$ac_includes_default
4291
4292#include <$ac_header>
4293_ACEOF
4294rm -f conftest.$ac_objext
4295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4296  (eval $ac_compile) 2>&5
4297  ac_status=$?
4298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299  (exit $ac_status); } &&
4300         { ac_try='test -s conftest.$ac_objext'
4301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302  (eval $ac_try) 2>&5
4303  ac_status=$?
4304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305  (exit $ac_status); }; }; then
4306  eval "$as_ac_Header=yes"
4307else
4308  echo "$as_me: failed program was:" >&5
4309cat conftest.$ac_ext >&5
4310eval "$as_ac_Header=no"
4311fi
4312rm -f conftest.$ac_objext conftest.$ac_ext
4313fi
4314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4316if test `eval echo '${'$as_ac_Header'}'` = yes; then
4317  cat >>confdefs.h <<_ACEOF
4318#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4319_ACEOF
4320
4321fi
4322
4323done
4324
4325
4326if test "${ac_cv_header_minix_config_h+set}" = set; then
4327  echo "$as_me:$LINENO: checking for minix/config.h" >&5
4328echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4329if test "${ac_cv_header_minix_config_h+set}" = set; then
4330  echo $ECHO_N "(cached) $ECHO_C" >&6
4331fi
4332echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4333echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4334else
4335  # Is the header compilable?
4336echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4337echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4338cat >conftest.$ac_ext <<_ACEOF
4339#line $LINENO "configure"
4340#include "confdefs.h"
4341$ac_includes_default
4342#include <minix/config.h>
4343_ACEOF
4344rm -f conftest.$ac_objext
4345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4346  (eval $ac_compile) 2>&5
4347  ac_status=$?
4348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349  (exit $ac_status); } &&
4350         { ac_try='test -s conftest.$ac_objext'
4351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352  (eval $ac_try) 2>&5
4353  ac_status=$?
4354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355  (exit $ac_status); }; }; then
4356  ac_header_compiler=yes
4357else
4358  echo "$as_me: failed program was:" >&5
4359cat conftest.$ac_ext >&5
4360ac_header_compiler=no
4361fi
4362rm -f conftest.$ac_objext conftest.$ac_ext
4363echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4364echo "${ECHO_T}$ac_header_compiler" >&6
4365
4366# Is the header present?
4367echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4368echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4369cat >conftest.$ac_ext <<_ACEOF
4370#line $LINENO "configure"
4371#include "confdefs.h"
4372#include <minix/config.h>
4373_ACEOF
4374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4375  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4376  ac_status=$?
4377  egrep -v '^ *\+' conftest.er1 >conftest.err
4378  rm -f conftest.er1
4379  cat conftest.err >&5
4380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381  (exit $ac_status); } >/dev/null; then
4382  if test -s conftest.err; then
4383    ac_cpp_err=$ac_c_preproc_warn_flag
4384  else
4385    ac_cpp_err=
4386  fi
4387else
4388  ac_cpp_err=yes
4389fi
4390if test -z "$ac_cpp_err"; then
4391  ac_header_preproc=yes
4392else
4393  echo "$as_me: failed program was:" >&5
4394  cat conftest.$ac_ext >&5
4395  ac_header_preproc=no
4396fi
4397rm -f conftest.err conftest.$ac_ext
4398echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4399echo "${ECHO_T}$ac_header_preproc" >&6
4400
4401# So?  What about this header?
4402case $ac_header_compiler:$ac_header_preproc in
4403  yes:no )
4404    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4405echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4406    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4407echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
4408  no:yes )
4409    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4410echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4411    { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4412echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4413    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4414echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
4415esac
4416echo "$as_me:$LINENO: checking for minix/config.h" >&5
4417echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4418if test "${ac_cv_header_minix_config_h+set}" = set; then
4419  echo $ECHO_N "(cached) $ECHO_C" >&6
4420else
4421  ac_cv_header_minix_config_h=$ac_header_preproc
4422fi
4423echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4424echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4425
4426fi
4427if test $ac_cv_header_minix_config_h = yes; then
4428  MINIX=yes
4429else
4430  MINIX=
4431fi
4432
4433
4434if test "$MINIX" = yes; then
4435
4436cat >>confdefs.h <<\_ACEOF
4437#define _POSIX_SOURCE 1
4438_ACEOF
4439
4440
4441cat >>confdefs.h <<\_ACEOF
4442#define _POSIX_1_SOURCE 2
4443_ACEOF
4444
4445
4446cat >>confdefs.h <<\_ACEOF
4447#define _MINIX 1
4448_ACEOF
4449
4450fi
4451
4452
4453
4454if test "$ac_cv_c_compiler_gnu" = yes; then
4455	cat >conftest.c <<EOF
4456#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)
4457yes
4458#endif
4459EOF
4460    if ${CC-cc} -E conftest.c | egrep yes >/dev/null 2>&1; then
4461        gcc -v
4462		echo "WARNING: gcc -O (version 2.4.5 and below) produces incorrect code"
4463		echo "  for lpd.c and other large routines. Update your GCC compiler"
4464		exit 1
4465	fi;
4466fi;
4467
4468LDCC="$CC"
4469
4470# Check whether --enable-shared or --disable-shared was given.
4471if test "${enable_shared+set}" = set; then
4472  enableval="$enable_shared"
4473  p=${PACKAGE-default}
4474case $enableval in
4475yes) enable_shared=yes ;;
4476no) enable_shared=no ;;
4477*)
4478  enable_shared=no
4479  # Look at the argument we got.  We use all the common list separators.
4480  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4481  for pkg in $enableval; do
4482    if test "X$pkg" = "X$p"; then
4483      enable_shared=yes
4484    fi
4485  done
4486  IFS="$ac_save_ifs"
4487  ;;
4488esac
4489else
4490  enable_shared=no
4491fi;
4492# Check whether --enable-static or --disable-static was given.
4493if test "${enable_static+set}" = set; then
4494  enableval="$enable_static"
4495  p=${PACKAGE-default}
4496case $enableval in
4497yes) enable_static=yes ;;
4498no) enable_static=no ;;
4499*)
4500  enable_static=no
4501  # Look at the argument we got.  We use all the common list separators.
4502  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4503  for pkg in $enableval; do
4504    if test "X$pkg" = "X$p"; then
4505      enable_static=yes
4506    fi
4507  done
4508  IFS="$ac_save_ifs"
4509  ;;
4510esac
4511else
4512  enable_static=yes
4513fi;
4514# Check whether --enable-fast-install or --disable-fast-install was given.
4515if test "${enable_fast_install+set}" = set; then
4516  enableval="$enable_fast_install"
4517  p=${PACKAGE-default}
4518case $enableval in
4519yes) enable_fast_install=yes ;;
4520no) enable_fast_install=no ;;
4521*)
4522  enable_fast_install=no
4523  # Look at the argument we got.  We use all the common list separators.
4524  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4525  for pkg in $enableval; do
4526    if test "X$pkg" = "X$p"; then
4527      enable_fast_install=yes
4528    fi
4529  done
4530  IFS="$ac_save_ifs"
4531  ;;
4532esac
4533else
4534  enable_fast_install=yes
4535fi;
4536# Find the correct PATH separator.  Usually this is `:', but
4537# DJGPP uses `;' like DOS.
4538if test "X${PATH_SEPARATOR+set}" != Xset; then
4539  UNAME=${UNAME-`uname 2>/dev/null`}
4540  case X$UNAME in
4541    *-DOS) lt_cv_sys_path_separator=';' ;;
4542    *)     lt_cv_sys_path_separator=':' ;;
4543  esac
4544  PATH_SEPARATOR=$lt_cv_sys_path_separator
4545fi
4546
4547
4548# Check whether --with-gnu-ld or --without-gnu-ld was given.
4549if test "${with_gnu_ld+set}" = set; then
4550  withval="$with_gnu_ld"
4551  test "$withval" = no || with_gnu_ld=yes
4552else
4553  with_gnu_ld=no
4554fi;
4555ac_prog=ld
4556if test "$GCC" = yes; then
4557  # Check if gcc -print-prog-name=ld gives a path.
4558  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4559echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4560  case $host in
4561  *-*-mingw*)
4562    # gcc leaves a trailing carriage return which upsets mingw
4563    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4564  *)
4565    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4566  esac
4567  case $ac_prog in
4568    # Accept absolute paths.
4569    [\\/]* | [A-Za-z]:[\\/]*)
4570      re_direlt='/[^/][^/]*/\.\./'
4571      # Canonicalize the path of ld
4572      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4573      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4574	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4575      done
4576      test -z "$LD" && LD="$ac_prog"
4577      ;;
4578  "")
4579    # If it fails, then pretend we aren't using GCC.
4580    ac_prog=ld
4581    ;;
4582  *)
4583    # If it is relative, then search for the first ld in PATH.
4584    with_gnu_ld=unknown
4585    ;;
4586  esac
4587elif test "$with_gnu_ld" = yes; then
4588  echo "$as_me:$LINENO: checking for GNU ld" >&5
4589echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4590else
4591  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4592echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4593fi
4594if test "${lt_cv_path_LD+set}" = set; then
4595  echo $ECHO_N "(cached) $ECHO_C" >&6
4596else
4597  if test -z "$LD"; then
4598  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4599  for ac_dir in $PATH; do
4600    test -z "$ac_dir" && ac_dir=.
4601    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4602      lt_cv_path_LD="$ac_dir/$ac_prog"
4603      # Check to see if the program is GNU ld.  I'd rather use --version,
4604      # but apparently some GNU ld's only accept -v.
4605      # Break only if it was the GNU/non-GNU ld that we prefer.
4606      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4607	test "$with_gnu_ld" != no && break
4608      else
4609	test "$with_gnu_ld" != yes && break
4610      fi
4611    fi
4612  done
4613  IFS="$ac_save_ifs"
4614else
4615  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4616fi
4617fi
4618
4619LD="$lt_cv_path_LD"
4620if test -n "$LD"; then
4621  echo "$as_me:$LINENO: result: $LD" >&5
4622echo "${ECHO_T}$LD" >&6
4623else
4624  echo "$as_me:$LINENO: result: no" >&5
4625echo "${ECHO_T}no" >&6
4626fi
4627test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4628echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4629   { (exit 1); exit 1; }; }
4630echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4631echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4632if test "${lt_cv_prog_gnu_ld+set}" = set; then
4633  echo $ECHO_N "(cached) $ECHO_C" >&6
4634else
4635  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4636if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4637  lt_cv_prog_gnu_ld=yes
4638else
4639  lt_cv_prog_gnu_ld=no
4640fi
4641fi
4642echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4643echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4644with_gnu_ld=$lt_cv_prog_gnu_ld
4645
4646
4647echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4648echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4649if test "${lt_cv_ld_reload_flag+set}" = set; then
4650  echo $ECHO_N "(cached) $ECHO_C" >&6
4651else
4652  lt_cv_ld_reload_flag='-r'
4653fi
4654echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4655echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4656reload_flag=$lt_cv_ld_reload_flag
4657test -n "$reload_flag" && reload_flag=" $reload_flag"
4658
4659echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4660echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4661if test "${lt_cv_path_NM+set}" = set; then
4662  echo $ECHO_N "(cached) $ECHO_C" >&6
4663else
4664  if test -n "$NM"; then
4665  # Let the user override the test.
4666  lt_cv_path_NM="$NM"
4667else
4668  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4669  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4670    test -z "$ac_dir" && ac_dir=.
4671    tmp_nm=$ac_dir/${ac_tool_prefix}nm
4672    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4673      # Check to see if the nm accepts a BSD-compat flag.
4674      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4675      #   nm: unknown option "B" ignored
4676      # Tru64's nm complains that /dev/null is an invalid object file
4677      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4678	lt_cv_path_NM="$tmp_nm -B"
4679	break
4680      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4681	lt_cv_path_NM="$tmp_nm -p"
4682	break
4683      else
4684	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4685	continue # so that we can try to find one that supports BSD flags
4686      fi
4687    fi
4688  done
4689  IFS="$ac_save_ifs"
4690  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4691fi
4692fi
4693
4694NM="$lt_cv_path_NM"
4695echo "$as_me:$LINENO: result: $NM" >&5
4696echo "${ECHO_T}$NM" >&6
4697
4698echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4699echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4700if test "${lt_cv_path_SED+set}" = set; then
4701  echo $ECHO_N "(cached) $ECHO_C" >&6
4702else
4703  # Loop through the user's path and test for sed and gsed.
4704# Then use that list of sed's as ones to test for truncation.
4705as_executable_p="test -f"
4706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709  IFS=$as_save_IFS
4710  test -z "$as_dir" && as_dir=.
4711  for ac_prog in sed gsed; do
4712    for ac_exec_ext in '' $ac_executable_extensions; do
4713      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4714        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
4715      fi
4716    done
4717  done
4718done
4719
4720  # Create a temporary directory, and hook for its removal unless debugging.
4721$debug ||
4722{
4723  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4724  trap '{ (exit 1); exit 1; }' 1 2 13 15
4725}
4726
4727# Create a (secure) tmp directory for tmp files.
4728: ${TMPDIR=/tmp}
4729{
4730  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4731  test -n "$tmp" && test -d "$tmp"
4732}  ||
4733{
4734  tmp=$TMPDIR/sed$$-$RANDOM
4735  (umask 077 && mkdir $tmp)
4736} ||
4737{
4738   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4739   { (exit 1); exit 1; }
4740}
4741  _max=0
4742  _count=0
4743  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4744  # along with /bin/sed that truncates output.
4745  for _sed in $_sed_list /usr/xpg4/bin/sed; do
4746    test ! -f ${_sed} && break
4747    cat /dev/null > "$tmp/sed.in"
4748    _count=0
4749    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
4750    # Check for GNU sed and select it if it is found.
4751    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4752      lt_cv_path_SED=${_sed}
4753      break
4754    fi
4755    while true; do
4756      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4757      mv "$tmp/sed.tmp" "$tmp/sed.in"
4758      cp "$tmp/sed.in" "$tmp/sed.nl"
4759      echo >>"$tmp/sed.nl"
4760      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4761      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4762      # 40000 chars as input seems more than enough
4763      test $_count -gt 10 && break
4764      _count=`expr $_count + 1`
4765      if test $_count -gt $_max; then
4766        _max=$_count
4767        lt_cv_path_SED=$_sed
4768      fi
4769    done
4770  done
4771  rm -rf "$tmp"
4772
4773fi
4774
4775if test "X$SED" != "X"; then
4776  lt_cv_path_SED=$SED
4777else
4778  SED=$lt_cv_path_SED
4779fi
4780echo "$as_me:$LINENO: result: $SED" >&5
4781echo "${ECHO_T}$SED" >&6
4782
4783echo "$as_me:$LINENO: checking whether ln -s works" >&5
4784echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4785LN_S=$as_ln_s
4786if test "$LN_S" = "ln -s"; then
4787  echo "$as_me:$LINENO: result: yes" >&5
4788echo "${ECHO_T}yes" >&6
4789else
4790  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4791echo "${ECHO_T}no, using $LN_S" >&6
4792fi
4793
4794echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4795echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4796if test "${lt_cv_deplibs_check_method+set}" = set; then
4797  echo $ECHO_N "(cached) $ECHO_C" >&6
4798else
4799  lt_cv_file_magic_cmd='$MAGIC_CMD'
4800lt_cv_file_magic_test_file=
4801lt_cv_deplibs_check_method='unknown'
4802# Need to set the preceding variable on all platforms that support
4803# interlibrary dependencies.
4804# 'none' -- dependencies not supported.
4805# `unknown' -- same as none, but documents that we really don't know.
4806# 'pass_all' -- all dependencies passed with no checks.
4807# 'test_compile' -- check by making test program.
4808# 'file_magic [[regex]]' -- check by looking for files in library path
4809# which responds to the $file_magic_cmd with a given egrep regex.
4810# If you have `file' or equivalent on your system and you're not sure
4811# whether `pass_all' will *always* work, you probably want this one.
4812
4813case $host_os in
4814aix4* | aix5*)
4815  lt_cv_deplibs_check_method=pass_all
4816  ;;
4817
4818beos*)
4819  lt_cv_deplibs_check_method=pass_all
4820  ;;
4821
4822bsdi4*)
4823  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4824  lt_cv_file_magic_cmd='/usr/bin/file -L'
4825  lt_cv_file_magic_test_file=/shlib/libc.so
4826  ;;
4827
4828cygwin* | mingw* | pw32*)
4829  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4830  lt_cv_file_magic_cmd='$OBJDUMP -f'
4831  ;;
4832
4833darwin* | rhapsody*)
4834  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4835  lt_cv_file_magic_cmd='/usr/bin/file -L'
4836  case "$host_os" in
4837  rhapsody* | darwin1.[012])
4838    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4839    ;;
4840  *) # Darwin 1.3 on
4841    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4842    ;;
4843  esac
4844  ;;
4845
4846freebsd*)
4847  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4848    case $host_cpu in
4849    i*86 )
4850      # Not sure whether the presence of OpenBSD here was a mistake.
4851      # Let's accept both of them until this is cleared up.
4852      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4853      lt_cv_file_magic_cmd=/usr/bin/file
4854      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4855      ;;
4856    esac
4857  else
4858    lt_cv_deplibs_check_method=pass_all
4859  fi
4860  ;;
4861
4862gnu*)
4863  lt_cv_deplibs_check_method=pass_all
4864  ;;
4865
4866hpux10.20*|hpux11*)
4867  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4868  lt_cv_file_magic_cmd=/usr/bin/file
4869  lt_cv_file_magic_test_file=/usr/lib/libc.sl
4870  ;;
4871
4872irix5* | irix6* | nonstopux*)
4873  case $host_os in
4874  irix5* | nonstopux*)
4875    # this will be overridden with pass_all, but let us keep it just in case
4876    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4877    ;;
4878  *)
4879    case $LD in
4880    *-32|*"-32 ") libmagic=32-bit;;
4881    *-n32|*"-n32 ") libmagic=N32;;
4882    *-64|*"-64 ") libmagic=64-bit;;
4883    *) libmagic=never-match;;
4884    esac
4885    # this will be overridden with pass_all, but let us keep it just in case
4886    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4887    ;;
4888  esac
4889  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4890  lt_cv_deplibs_check_method=pass_all
4891  ;;
4892
4893# This must be Linux ELF.
4894linux-gnu*)
4895  case $host_cpu in
4896  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
4897    lt_cv_deplibs_check_method=pass_all ;;
4898  *)
4899    # glibc up to 2.1.1 does not perform some relocations on ARM
4900    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4901  esac
4902  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4903  ;;
4904
4905netbsd*)
4906  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4907    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4908  else
4909    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4910  fi
4911  ;;
4912
4913newos6*)
4914  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4915  lt_cv_file_magic_cmd=/usr/bin/file
4916  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4917  ;;
4918
4919openbsd*)
4920  lt_cv_file_magic_cmd=/usr/bin/file
4921  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4922  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4923    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4924  else
4925    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4926  fi
4927  ;;
4928
4929osf3* | osf4* | osf5*)
4930  # this will be overridden with pass_all, but let us keep it just in case
4931  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4932  lt_cv_file_magic_test_file=/shlib/libc.so
4933  lt_cv_deplibs_check_method=pass_all
4934  ;;
4935
4936sco3.2v5*)
4937  lt_cv_deplibs_check_method=pass_all
4938  ;;
4939
4940solaris*)
4941  lt_cv_deplibs_check_method=pass_all
4942  lt_cv_file_magic_test_file=/lib/libc.so
4943  ;;
4944
4945sysv5uw[78]* | sysv4*uw2*)
4946  lt_cv_deplibs_check_method=pass_all
4947  ;;
4948
4949sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4950  case $host_vendor in
4951  motorola)
4952    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]'
4953    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4954    ;;
4955  ncr)
4956    lt_cv_deplibs_check_method=pass_all
4957    ;;
4958  sequent)
4959    lt_cv_file_magic_cmd='/bin/file'
4960    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4961    ;;
4962  sni)
4963    lt_cv_file_magic_cmd='/bin/file'
4964    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4965    lt_cv_file_magic_test_file=/lib/libc.so
4966    ;;
4967  siemens)
4968    lt_cv_deplibs_check_method=pass_all
4969    ;;
4970  esac
4971  ;;
4972esac
4973
4974fi
4975echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4976echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4977file_magic_cmd=$lt_cv_file_magic_cmd
4978deplibs_check_method=$lt_cv_deplibs_check_method
4979
4980
4981
4982
4983
4984
4985
4986# Check for command to grab the raw symbol name followed by C symbol from nm.
4987echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4988echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4989if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4990  echo $ECHO_N "(cached) $ECHO_C" >&6
4991else
4992
4993# These are sane defaults that work on at least a few old systems.
4994# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4995
4996# Character class describing NM global symbol codes.
4997symcode='[BCDEGRST]'
4998
4999# Regexp to match symbols that can be accessed directly from C.
5000sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5001
5002# Transform the above into a raw symbol and a C symbol.
5003symxfrm='\1 \2\3 \3'
5004
5005# Transform an extracted symbol line into a proper C declaration
5006lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
5007
5008# Transform an extracted symbol line into symbol name and symbol address
5009lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5010
5011# Define system-specific variables.
5012case $host_os in
5013aix*)
5014  symcode='[BCDT]'
5015  ;;
5016cygwin* | mingw* | pw32*)
5017  symcode='[ABCDGISTW]'
5018  ;;
5019hpux*) # Its linker distinguishes data from code symbols
5020  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5021  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5022  ;;
5023irix* | nonstopux*)
5024  symcode='[BCDEGRST]'
5025  ;;
5026osf*)
5027  symcode='[BCDEGQRST]'
5028  ;;
5029solaris* | sysv5*)
5030  symcode='[BDT]'
5031  ;;
5032sysv4)
5033  symcode='[DFNSTU]'
5034  ;;
5035esac
5036
5037# Handle CRLF in mingw tool chain
5038opt_cr=
5039case $host_os in
5040mingw*)
5041  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5042  ;;
5043esac
5044
5045# If we're using GNU nm, then use its standard symbol codes.
5046if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
5047  symcode='[ABCDGISTW]'
5048fi
5049
5050# Try without a prefix undercore, then with it.
5051for ac_symprfx in "" "_"; do
5052
5053  # Write the raw and C identifiers.
5054lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5055
5056  # Check to see that the pipe works correctly.
5057  pipe_works=no
5058  rm -f conftest*
5059  cat > conftest.$ac_ext <<EOF
5060#ifdef __cplusplus
5061extern "C" {
5062#endif
5063char nm_test_var;
5064void nm_test_func(){}
5065#ifdef __cplusplus
5066}
5067#endif
5068int main(){nm_test_var='a';nm_test_func();return(0);}
5069EOF
5070
5071  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5072  (eval $ac_compile) 2>&5
5073  ac_status=$?
5074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075  (exit $ac_status); }; then
5076    # Now try to grab the symbols.
5077    nlist=conftest.nm
5078    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5079  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5080  ac_status=$?
5081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082  (exit $ac_status); } && test -s "$nlist"; then
5083      # Try sorting and uniquifying the output.
5084      if sort "$nlist" | uniq > "$nlist"T; then
5085	mv -f "$nlist"T "$nlist"
5086      else
5087	rm -f "$nlist"T
5088      fi
5089
5090      # Make sure that we snagged all the symbols we need.
5091      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
5092	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
5093	  cat <<EOF > conftest.$ac_ext
5094#ifdef __cplusplus
5095extern "C" {
5096#endif
5097
5098EOF
5099	  # Now generate the symbol file.
5100	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
5101
5102	  cat <<EOF >> conftest.$ac_ext
5103#if defined (__STDC__) && __STDC__
5104# define lt_ptr void *
5105#else
5106# define lt_ptr char *
5107# define const
5108#endif
5109
5110/* The mapping between symbol names and symbols. */
5111const struct {
5112  const char *name;
5113  lt_ptr address;
5114}
5115lt_preloaded_symbols[] =
5116{
5117EOF
5118	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
5119	  cat <<\EOF >> conftest.$ac_ext
5120  {0, (lt_ptr) 0}
5121};
5122
5123#ifdef __cplusplus
5124}
5125#endif
5126EOF
5127	  # Now try linking the two files.
5128	  mv conftest.$ac_objext conftstm.$ac_objext
5129	  save_LIBS="$LIBS"
5130	  save_CFLAGS="$CFLAGS"
5131	  LIBS="conftstm.$ac_objext"
5132	  CFLAGS="$CFLAGS$no_builtin_flag"
5133	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5134  (eval $ac_link) 2>&5
5135  ac_status=$?
5136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137  (exit $ac_status); } && test -s conftest$ac_exeext; then
5138	    pipe_works=yes
5139	  fi
5140	  LIBS="$save_LIBS"
5141	  CFLAGS="$save_CFLAGS"
5142	else
5143	  echo "cannot find nm_test_func in $nlist" >&5
5144	fi
5145      else
5146	echo "cannot find nm_test_var in $nlist" >&5
5147      fi
5148    else
5149      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5150    fi
5151  else
5152    echo "$progname: failed program was:" >&5
5153    cat conftest.$ac_ext >&5
5154  fi
5155  rm -f conftest* conftst*
5156
5157  # Do not use the global_symbol_pipe unless it works.
5158  if test "$pipe_works" = yes; then
5159    break
5160  else
5161    lt_cv_sys_global_symbol_pipe=
5162  fi
5163done
5164
5165fi
5166
5167global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
5168if test -z "$lt_cv_sys_global_symbol_pipe"; then
5169  global_symbol_to_cdecl=
5170  global_symbol_to_c_name_address=
5171else
5172  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
5173  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
5174fi
5175if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
5176then
5177  echo "$as_me:$LINENO: result: failed" >&5
5178echo "${ECHO_T}failed" >&6
5179else
5180  echo "$as_me:$LINENO: result: ok" >&5
5181echo "${ECHO_T}ok" >&6
5182fi
5183
5184
5185for ac_header in dlfcn.h
5186do
5187as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5188if eval "test \"\${$as_ac_Header+set}\" = set"; then
5189  echo "$as_me:$LINENO: checking for $ac_header" >&5
5190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5191if eval "test \"\${$as_ac_Header+set}\" = set"; then
5192  echo $ECHO_N "(cached) $ECHO_C" >&6
5193fi
5194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5196else
5197  # Is the header compilable?
5198echo "$as_me:$LINENO: checking $ac_header usability" >&5
5199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5200cat >conftest.$ac_ext <<_ACEOF
5201#line $LINENO "configure"
5202#include "confdefs.h"
5203$ac_includes_default
5204#include <$ac_header>
5205_ACEOF
5206rm -f conftest.$ac_objext
5207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5208  (eval $ac_compile) 2>&5
5209  ac_status=$?
5210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211  (exit $ac_status); } &&
5212         { ac_try='test -s conftest.$ac_objext'
5213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214  (eval $ac_try) 2>&5
5215  ac_status=$?
5216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217  (exit $ac_status); }; }; then
5218  ac_header_compiler=yes
5219else
5220  echo "$as_me: failed program was:" >&5
5221cat conftest.$ac_ext >&5
5222ac_header_compiler=no
5223fi
5224rm -f conftest.$ac_objext conftest.$ac_ext
5225echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5226echo "${ECHO_T}$ac_header_compiler" >&6
5227
5228# Is the header present?
5229echo "$as_me:$LINENO: checking $ac_header presence" >&5
5230echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5231cat >conftest.$ac_ext <<_ACEOF
5232#line $LINENO "configure"
5233#include "confdefs.h"
5234#include <$ac_header>
5235_ACEOF
5236if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5237  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5238  ac_status=$?
5239  egrep -v '^ *\+' conftest.er1 >conftest.err
5240  rm -f conftest.er1
5241  cat conftest.err >&5
5242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243  (exit $ac_status); } >/dev/null; then
5244  if test -s conftest.err; then
5245    ac_cpp_err=$ac_c_preproc_warn_flag
5246  else
5247    ac_cpp_err=
5248  fi
5249else
5250  ac_cpp_err=yes
5251fi
5252if test -z "$ac_cpp_err"; then
5253  ac_header_preproc=yes
5254else
5255  echo "$as_me: failed program was:" >&5
5256  cat conftest.$ac_ext >&5
5257  ac_header_preproc=no
5258fi
5259rm -f conftest.err conftest.$ac_ext
5260echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5261echo "${ECHO_T}$ac_header_preproc" >&6
5262
5263# So?  What about this header?
5264case $ac_header_compiler:$ac_header_preproc in
5265  yes:no )
5266    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5267echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5268    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5269echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5270  no:yes )
5271    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5272echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5273    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5274echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5275    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5276echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5277esac
5278echo "$as_me:$LINENO: checking for $ac_header" >&5
5279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5280if eval "test \"\${$as_ac_Header+set}\" = set"; then
5281  echo $ECHO_N "(cached) $ECHO_C" >&6
5282else
5283  eval "$as_ac_Header=$ac_header_preproc"
5284fi
5285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5286echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5287
5288fi
5289if test `eval echo '${'$as_ac_Header'}'` = yes; then
5290  cat >>confdefs.h <<_ACEOF
5291#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5292_ACEOF
5293
5294fi
5295
5296done
5297
5298
5299
5300
5301
5302
5303# Only perform the check for file, if the check method requires it
5304case $deplibs_check_method in
5305file_magic*)
5306  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5307    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5308echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5309if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5310  echo $ECHO_N "(cached) $ECHO_C" >&6
5311else
5312  case $MAGIC_CMD in
5313  /*)
5314  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5315  ;;
5316  ?:/*)
5317  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5318  ;;
5319  *)
5320  ac_save_MAGIC_CMD="$MAGIC_CMD"
5321  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5322  ac_dummy="/usr/bin:$PATH"
5323  for ac_dir in $ac_dummy; do
5324    test -z "$ac_dir" && ac_dir=.
5325    if test -f $ac_dir/${ac_tool_prefix}file; then
5326      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5327      if test -n "$file_magic_test_file"; then
5328	case $deplibs_check_method in
5329	"file_magic "*)
5330	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5331	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5332	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5333	    egrep "$file_magic_regex" > /dev/null; then
5334	    :
5335	  else
5336	    cat <<EOF 1>&2
5337
5338*** Warning: the command libtool uses to detect shared libraries,
5339*** $file_magic_cmd, produces output that libtool cannot recognize.
5340*** The result is that libtool may fail to recognize shared libraries
5341*** as such.  This will affect the creation of libtool libraries that
5342*** depend on shared libraries, but programs linked with such libtool
5343*** libraries will work regardless of this problem.  Nevertheless, you
5344*** may want to report the problem to your system manager and/or to
5345*** bug-libtool@gnu.org
5346
5347EOF
5348	  fi ;;
5349	esac
5350      fi
5351      break
5352    fi
5353  done
5354  IFS="$ac_save_ifs"
5355  MAGIC_CMD="$ac_save_MAGIC_CMD"
5356  ;;
5357esac
5358fi
5359
5360MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5361if test -n "$MAGIC_CMD"; then
5362  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5363echo "${ECHO_T}$MAGIC_CMD" >&6
5364else
5365  echo "$as_me:$LINENO: result: no" >&5
5366echo "${ECHO_T}no" >&6
5367fi
5368
5369if test -z "$lt_cv_path_MAGIC_CMD"; then
5370  if test -n "$ac_tool_prefix"; then
5371    echo "$as_me:$LINENO: checking for file" >&5
5372echo $ECHO_N "checking for file... $ECHO_C" >&6
5373if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5374  echo $ECHO_N "(cached) $ECHO_C" >&6
5375else
5376  case $MAGIC_CMD in
5377  /*)
5378  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5379  ;;
5380  ?:/*)
5381  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5382  ;;
5383  *)
5384  ac_save_MAGIC_CMD="$MAGIC_CMD"
5385  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5386  ac_dummy="/usr/bin:$PATH"
5387  for ac_dir in $ac_dummy; do
5388    test -z "$ac_dir" && ac_dir=.
5389    if test -f $ac_dir/file; then
5390      lt_cv_path_MAGIC_CMD="$ac_dir/file"
5391      if test -n "$file_magic_test_file"; then
5392	case $deplibs_check_method in
5393	"file_magic "*)
5394	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5395	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5396	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5397	    egrep "$file_magic_regex" > /dev/null; then
5398	    :
5399	  else
5400	    cat <<EOF 1>&2
5401
5402*** Warning: the command libtool uses to detect shared libraries,
5403*** $file_magic_cmd, produces output that libtool cannot recognize.
5404*** The result is that libtool may fail to recognize shared libraries
5405*** as such.  This will affect the creation of libtool libraries that
5406*** depend on shared libraries, but programs linked with such libtool
5407*** libraries will work regardless of this problem.  Nevertheless, you
5408*** may want to report the problem to your system manager and/or to
5409*** bug-libtool@gnu.org
5410
5411EOF
5412	  fi ;;
5413	esac
5414      fi
5415      break
5416    fi
5417  done
5418  IFS="$ac_save_ifs"
5419  MAGIC_CMD="$ac_save_MAGIC_CMD"
5420  ;;
5421esac
5422fi
5423
5424MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5425if test -n "$MAGIC_CMD"; then
5426  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5427echo "${ECHO_T}$MAGIC_CMD" >&6
5428else
5429  echo "$as_me:$LINENO: result: no" >&5
5430echo "${ECHO_T}no" >&6
5431fi
5432
5433  else
5434    MAGIC_CMD=:
5435  fi
5436fi
5437
5438  fi
5439  ;;
5440esac
5441
5442if test -n "$ac_tool_prefix"; then
5443  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5444set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5445echo "$as_me:$LINENO: checking for $ac_word" >&5
5446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5447if test "${ac_cv_prog_RANLIB+set}" = set; then
5448  echo $ECHO_N "(cached) $ECHO_C" >&6
5449else
5450  if test -n "$RANLIB"; then
5451  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5452else
5453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454for as_dir in $PATH
5455do
5456  IFS=$as_save_IFS
5457  test -z "$as_dir" && as_dir=.
5458  for ac_exec_ext in '' $ac_executable_extensions; do
5459  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5461    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5462    break 2
5463  fi
5464done
5465done
5466
5467fi
5468fi
5469RANLIB=$ac_cv_prog_RANLIB
5470if test -n "$RANLIB"; then
5471  echo "$as_me:$LINENO: result: $RANLIB" >&5
5472echo "${ECHO_T}$RANLIB" >&6
5473else
5474  echo "$as_me:$LINENO: result: no" >&5
5475echo "${ECHO_T}no" >&6
5476fi
5477
5478fi
5479if test -z "$ac_cv_prog_RANLIB"; then
5480  ac_ct_RANLIB=$RANLIB
5481  # Extract the first word of "ranlib", so it can be a program name with args.
5482set dummy ranlib; ac_word=$2
5483echo "$as_me:$LINENO: checking for $ac_word" >&5
5484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5485if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5486  echo $ECHO_N "(cached) $ECHO_C" >&6
5487else
5488  if test -n "$ac_ct_RANLIB"; then
5489  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5490else
5491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492for as_dir in $PATH
5493do
5494  IFS=$as_save_IFS
5495  test -z "$as_dir" && as_dir=.
5496  for ac_exec_ext in '' $ac_executable_extensions; do
5497  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5498    ac_cv_prog_ac_ct_RANLIB="ranlib"
5499    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5500    break 2
5501  fi
5502done
5503done
5504
5505  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5506fi
5507fi
5508ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5509if test -n "$ac_ct_RANLIB"; then
5510  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5511echo "${ECHO_T}$ac_ct_RANLIB" >&6
5512else
5513  echo "$as_me:$LINENO: result: no" >&5
5514echo "${ECHO_T}no" >&6
5515fi
5516
5517  RANLIB=$ac_ct_RANLIB
5518else
5519  RANLIB="$ac_cv_prog_RANLIB"
5520fi
5521
5522if test -n "$ac_tool_prefix"; then
5523  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5524set dummy ${ac_tool_prefix}strip; ac_word=$2
5525echo "$as_me:$LINENO: checking for $ac_word" >&5
5526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5527if test "${ac_cv_prog_STRIP+set}" = set; then
5528  echo $ECHO_N "(cached) $ECHO_C" >&6
5529else
5530  if test -n "$STRIP"; then
5531  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5532else
5533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534for as_dir in $PATH
5535do
5536  IFS=$as_save_IFS
5537  test -z "$as_dir" && as_dir=.
5538  for ac_exec_ext in '' $ac_executable_extensions; do
5539  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5540    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5541    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5542    break 2
5543  fi
5544done
5545done
5546
5547fi
5548fi
5549STRIP=$ac_cv_prog_STRIP
5550if test -n "$STRIP"; then
5551  echo "$as_me:$LINENO: result: $STRIP" >&5
5552echo "${ECHO_T}$STRIP" >&6
5553else
5554  echo "$as_me:$LINENO: result: no" >&5
5555echo "${ECHO_T}no" >&6
5556fi
5557
5558fi
5559if test -z "$ac_cv_prog_STRIP"; then
5560  ac_ct_STRIP=$STRIP
5561  # Extract the first word of "strip", so it can be a program name with args.
5562set dummy strip; ac_word=$2
5563echo "$as_me:$LINENO: checking for $ac_word" >&5
5564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5565if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5566  echo $ECHO_N "(cached) $ECHO_C" >&6
5567else
5568  if test -n "$ac_ct_STRIP"; then
5569  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5570else
5571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572for as_dir in $PATH
5573do
5574  IFS=$as_save_IFS
5575  test -z "$as_dir" && as_dir=.
5576  for ac_exec_ext in '' $ac_executable_extensions; do
5577  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5578    ac_cv_prog_ac_ct_STRIP="strip"
5579    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5580    break 2
5581  fi
5582done
5583done
5584
5585  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5586fi
5587fi
5588ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5589if test -n "$ac_ct_STRIP"; then
5590  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5591echo "${ECHO_T}$ac_ct_STRIP" >&6
5592else
5593  echo "$as_me:$LINENO: result: no" >&5
5594echo "${ECHO_T}no" >&6
5595fi
5596
5597  STRIP=$ac_ct_STRIP
5598else
5599  STRIP="$ac_cv_prog_STRIP"
5600fi
5601
5602
5603enable_dlopen=no
5604enable_win32_dll=no
5605
5606# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5607if test "${enable_libtool_lock+set}" = set; then
5608  enableval="$enable_libtool_lock"
5609
5610fi;
5611test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5612
5613# Some flags need to be propagated to the compiler or linker for good
5614# libtool support.
5615case $host in
5616*-*-irix6*)
5617  # Find out which ABI we are using.
5618  echo '#line 5618 "configure"' > conftest.$ac_ext
5619  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5620  (eval $ac_compile) 2>&5
5621  ac_status=$?
5622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623  (exit $ac_status); }; then
5624    case `/usr/bin/file conftest.$ac_objext` in
5625    *32-bit*)
5626      LD="${LD-ld} -32"
5627      ;;
5628    *N32*)
5629      LD="${LD-ld} -n32"
5630      ;;
5631    *64-bit*)
5632      LD="${LD-ld} -64"
5633      ;;
5634    esac
5635  fi
5636  rm -rf conftest*
5637  ;;
5638
5639*-*-sco3.2v5*)
5640  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5641  SAVE_CFLAGS="$CFLAGS"
5642  CFLAGS="$CFLAGS -belf"
5643  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5644echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5645if test "${lt_cv_cc_needs_belf+set}" = set; then
5646  echo $ECHO_N "(cached) $ECHO_C" >&6
5647else
5648
5649
5650     ac_ext=c
5651ac_cpp='$CPP $CPPFLAGS'
5652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655
5656     cat >conftest.$ac_ext <<_ACEOF
5657#line $LINENO "configure"
5658#include "confdefs.h"
5659
5660#ifdef F77_DUMMY_MAIN
5661#  ifdef __cplusplus
5662     extern "C"
5663#  endif
5664   int F77_DUMMY_MAIN() { return 1; }
5665#endif
5666int
5667main ()
5668{
5669
5670  ;
5671  return 0;
5672}
5673_ACEOF
5674rm -f conftest.$ac_objext conftest$ac_exeext
5675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5676  (eval $ac_link) 2>&5
5677  ac_status=$?
5678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679  (exit $ac_status); } &&
5680         { ac_try='test -s conftest$ac_exeext'
5681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682  (eval $ac_try) 2>&5
5683  ac_status=$?
5684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685  (exit $ac_status); }; }; then
5686  lt_cv_cc_needs_belf=yes
5687else
5688  echo "$as_me: failed program was:" >&5
5689cat conftest.$ac_ext >&5
5690lt_cv_cc_needs_belf=no
5691fi
5692rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5693     ac_ext=c
5694ac_cpp='$CPP $CPPFLAGS'
5695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5697ac_compiler_gnu=$ac_cv_c_compiler_gnu
5698
5699fi
5700echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5701echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5702  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5703    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5704    CFLAGS="$SAVE_CFLAGS"
5705  fi
5706  ;;
5707
5708
5709esac
5710
5711# Sed substitution that helps us do robust quoting.  It backslashifies
5712# metacharacters that are still active within double-quoted strings.
5713Xsed='sed -e s/^X//'
5714sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5715
5716# Same as above, but do not quote variable references.
5717double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5718
5719# Sed substitution to delay expansion of an escaped shell variable in a
5720# double_quote_subst'ed string.
5721delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5722
5723# Constants:
5724rm="rm -f"
5725
5726# Global variables:
5727default_ofile=libtool
5728can_build_shared=yes
5729
5730# All known linkers require a `.a' archive for static linking (except M$VC,
5731# which needs '.lib').
5732libext=a
5733ltmain="$ac_aux_dir/ltmain.sh"
5734ofile="$default_ofile"
5735with_gnu_ld="$lt_cv_prog_gnu_ld"
5736need_locks="$enable_libtool_lock"
5737
5738old_CC="$CC"
5739old_CFLAGS="$CFLAGS"
5740
5741# Set sane defaults for various variables
5742test -z "$AR" && AR=ar
5743test -z "$AR_FLAGS" && AR_FLAGS=cru
5744test -z "$AS" && AS=as
5745test -z "$CC" && CC=cc
5746test -z "$DLLTOOL" && DLLTOOL=dlltool
5747test -z "$LD" && LD=ld
5748test -z "$LN_S" && LN_S="ln -s"
5749test -z "$MAGIC_CMD" && MAGIC_CMD=file
5750test -z "$NM" && NM=nm
5751test -z "$OBJDUMP" && OBJDUMP=objdump
5752test -z "$RANLIB" && RANLIB=:
5753test -z "$STRIP" && STRIP=:
5754test -z "$ac_objext" && ac_objext=o
5755
5756if test x"$host" != x"$build"; then
5757  ac_tool_prefix=${host_alias}-
5758else
5759  ac_tool_prefix=
5760fi
5761
5762# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5763case $host_os in
5764linux-gnu*) ;;
5765linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5766esac
5767
5768case $host_os in
5769aix3*)
5770  # AIX sometimes has problems with the GCC collect2 program.  For some
5771  # reason, if we set the COLLECT_NAMES environment variable, the problems
5772  # vanish in a puff of smoke.
5773  if test "X${COLLECT_NAMES+set}" != Xset; then
5774    COLLECT_NAMES=
5775    export COLLECT_NAMES
5776  fi
5777  ;;
5778esac
5779
5780# Determine commands to create old-style static archives.
5781old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5782old_postinstall_cmds='chmod 644 $oldlib'
5783old_postuninstall_cmds=
5784
5785if test -n "$RANLIB"; then
5786  case $host_os in
5787  openbsd*)
5788    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5789    ;;
5790  *)
5791    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5792    ;;
5793  esac
5794  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5795fi
5796
5797# Allow CC to be a program name with arguments.
5798set dummy $CC
5799compiler="$2"
5800
5801## FIXME: this should be a separate macro
5802##
5803echo "$as_me:$LINENO: checking for objdir" >&5
5804echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5805rm -f .libs 2>/dev/null
5806mkdir .libs 2>/dev/null
5807if test -d .libs; then
5808  objdir=.libs
5809else
5810  # MS-DOS does not allow filenames that begin with a dot.
5811  objdir=_libs
5812fi
5813rmdir .libs 2>/dev/null
5814echo "$as_me:$LINENO: result: $objdir" >&5
5815echo "${ECHO_T}$objdir" >&6
5816##
5817## END FIXME
5818
5819
5820## FIXME: this should be a separate macro
5821##
5822
5823# Check whether --with-pic or --without-pic was given.
5824if test "${with_pic+set}" = set; then
5825  withval="$with_pic"
5826  pic_mode="$withval"
5827else
5828  pic_mode=default
5829fi;
5830test -z "$pic_mode" && pic_mode=default
5831
5832# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5833# in isolation, and that seeing it set (from the cache) indicates that
5834# the associated values are set (in the cache) correctly too.
5835echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5836echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5837if test "${lt_cv_prog_cc_pic+set}" = set; then
5838  echo $ECHO_N "(cached) $ECHO_C" >&6
5839else
5840   lt_cv_prog_cc_pic=
5841  lt_cv_prog_cc_shlib=
5842  lt_cv_prog_cc_wl=
5843  lt_cv_prog_cc_static=
5844  lt_cv_prog_cc_no_builtin=
5845  lt_cv_prog_cc_can_build_shared=$can_build_shared
5846
5847  if test "$GCC" = yes; then
5848    lt_cv_prog_cc_wl='-Wl,'
5849    lt_cv_prog_cc_static='-static'
5850
5851    case $host_os in
5852    aix*)
5853      # Below there is a dirty hack to force normal static linking with -ldl
5854      # The problem is because libdl dynamically linked with both libc and
5855      # libC (AIX C++ library), which obviously doesn't included in libraries
5856      # list by gcc. This cause undefined symbols with -static flags.
5857      # This hack allows C programs to be linked with "-static -ldl", but
5858      # not sure about C++ programs.
5859      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5860      ;;
5861    amigaos*)
5862      # FIXME: we need at least 68020 code to build shared libraries, but
5863      # adding the `-m68020' flag to GCC prevents building anything better,
5864      # like `-m68040'.
5865      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5866      ;;
5867    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5868      # PIC is the default for these OSes.
5869      ;;
5870    darwin* | rhapsody*)
5871      # PIC is the default on this platform
5872      # Common symbols not allowed in MH_DYLIB files
5873      lt_cv_prog_cc_pic='-fno-common'
5874      ;;
5875    cygwin* | mingw* | pw32* | os2*)
5876      # This hack is so that the source file can tell whether it is being
5877      # built for inclusion in a dll (and should export symbols for example).
5878      lt_cv_prog_cc_pic='-DDLL_EXPORT'
5879      ;;
5880    sysv4*MP*)
5881      if test -d /usr/nec; then
5882	 lt_cv_prog_cc_pic=-Kconform_pic
5883      fi
5884      ;;
5885    *)
5886      lt_cv_prog_cc_pic='-fPIC'
5887      ;;
5888    esac
5889  else
5890    # PORTME Check for PIC flags for the system compiler.
5891    case $host_os in
5892    aix3* | aix4* | aix5*)
5893      lt_cv_prog_cc_wl='-Wl,'
5894      # All AIX code is PIC.
5895      if test "$host_cpu" = ia64; then
5896	# AIX 5 now supports IA64 processor
5897	lt_cv_prog_cc_static='-Bstatic'
5898      else
5899	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5900      fi
5901      ;;
5902
5903    hpux9* | hpux10* | hpux11*)
5904      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5905      lt_cv_prog_cc_wl='-Wl,'
5906      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5907      lt_cv_prog_cc_pic='+Z'
5908      ;;
5909
5910    irix5* | irix6* | nonstopux*)
5911      lt_cv_prog_cc_wl='-Wl,'
5912      lt_cv_prog_cc_static='-non_shared'
5913      # PIC (with -KPIC) is the default.
5914      ;;
5915
5916    cygwin* | mingw* | pw32* | os2*)
5917      # This hack is so that the source file can tell whether it is being
5918      # built for inclusion in a dll (and should export symbols for example).
5919      lt_cv_prog_cc_pic='-DDLL_EXPORT'
5920      ;;
5921
5922    newsos6)
5923      lt_cv_prog_cc_pic='-KPIC'
5924      lt_cv_prog_cc_static='-Bstatic'
5925      ;;
5926
5927    osf3* | osf4* | osf5*)
5928      # All OSF/1 code is PIC.
5929      lt_cv_prog_cc_wl='-Wl,'
5930      lt_cv_prog_cc_static='-non_shared'
5931      ;;
5932
5933    sco3.2v5*)
5934      lt_cv_prog_cc_pic='-Kpic'
5935      lt_cv_prog_cc_static='-dn'
5936      lt_cv_prog_cc_shlib='-belf'
5937      ;;
5938
5939    solaris*)
5940      lt_cv_prog_cc_pic='-KPIC'
5941      lt_cv_prog_cc_static='-Bstatic'
5942      lt_cv_prog_cc_wl='-Wl,'
5943      ;;
5944
5945    sunos4*)
5946      lt_cv_prog_cc_pic='-PIC'
5947      lt_cv_prog_cc_static='-Bstatic'
5948      lt_cv_prog_cc_wl='-Qoption ld '
5949      ;;
5950
5951    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5952      lt_cv_prog_cc_pic='-KPIC'
5953      lt_cv_prog_cc_static='-Bstatic'
5954      lt_cv_prog_cc_wl='-Wl,'
5955      ;;
5956
5957    uts4*)
5958      lt_cv_prog_cc_pic='-pic'
5959      lt_cv_prog_cc_static='-Bstatic'
5960      ;;
5961
5962    sysv4*MP*)
5963      if test -d /usr/nec ;then
5964	lt_cv_prog_cc_pic='-Kconform_pic'
5965	lt_cv_prog_cc_static='-Bstatic'
5966      fi
5967      ;;
5968
5969    *)
5970      lt_cv_prog_cc_can_build_shared=no
5971      ;;
5972    esac
5973  fi
5974
5975fi
5976
5977if test -z "$lt_cv_prog_cc_pic"; then
5978  echo "$as_me:$LINENO: result: none" >&5
5979echo "${ECHO_T}none" >&6
5980else
5981  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5982echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5983
5984  # Check to make sure the pic_flag actually works.
5985  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5986echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5987  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5988  echo $ECHO_N "(cached) $ECHO_C" >&6
5989else
5990      save_CFLAGS="$CFLAGS"
5991    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5992    cat >conftest.$ac_ext <<_ACEOF
5993#line $LINENO "configure"
5994#include "confdefs.h"
5995
5996#ifdef F77_DUMMY_MAIN
5997#  ifdef __cplusplus
5998     extern "C"
5999#  endif
6000   int F77_DUMMY_MAIN() { return 1; }
6001#endif
6002int
6003main ()
6004{
6005
6006  ;
6007  return 0;
6008}
6009_ACEOF
6010rm -f conftest.$ac_objext
6011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6012  (eval $ac_compile) 2>&5
6013  ac_status=$?
6014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015  (exit $ac_status); } &&
6016         { ac_try='test -s conftest.$ac_objext'
6017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018  (eval $ac_try) 2>&5
6019  ac_status=$?
6020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021  (exit $ac_status); }; }; then
6022        case $host_os in
6023      hpux9* | hpux10* | hpux11*)
6024	# On HP-UX, both CC and GCC only warn that PIC is supported... then
6025	# they create non-PIC objects.  So, if there were any warnings, we
6026	# assume that PIC is not supported.
6027	if test -s conftest.err; then
6028	  lt_cv_prog_cc_pic_works=no
6029	else
6030	  lt_cv_prog_cc_pic_works=yes
6031	fi
6032	;;
6033      *)
6034	lt_cv_prog_cc_pic_works=yes
6035	;;
6036      esac
6037
6038else
6039  echo "$as_me: failed program was:" >&5
6040cat conftest.$ac_ext >&5
6041      lt_cv_prog_cc_pic_works=no
6042
6043fi
6044rm -f conftest.$ac_objext conftest.$ac_ext
6045    CFLAGS="$save_CFLAGS"
6046
6047fi
6048
6049
6050  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
6051    lt_cv_prog_cc_pic=
6052    lt_cv_prog_cc_can_build_shared=no
6053  else
6054    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
6055  fi
6056
6057  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
6058echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
6059fi
6060##
6061## END FIXME
6062
6063# Check for any special shared library compilation flags.
6064if test -n "$lt_cv_prog_cc_shlib"; then
6065  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
6066echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
6067  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_cv_prog_cc_shlib[ 	]" >/dev/null; then :
6068  else
6069   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6070echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6071    lt_cv_prog_cc_can_build_shared=no
6072  fi
6073fi
6074
6075## FIXME: this should be a separate macro
6076##
6077echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
6078echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
6079if test "${lt_cv_prog_cc_static_works+set}" = set; then
6080  echo $ECHO_N "(cached) $ECHO_C" >&6
6081else
6082    lt_cv_prog_cc_static_works=no
6083  save_LDFLAGS="$LDFLAGS"
6084  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
6085  cat >conftest.$ac_ext <<_ACEOF
6086#line $LINENO "configure"
6087#include "confdefs.h"
6088
6089#ifdef F77_DUMMY_MAIN
6090#  ifdef __cplusplus
6091     extern "C"
6092#  endif
6093   int F77_DUMMY_MAIN() { return 1; }
6094#endif
6095int
6096main ()
6097{
6098
6099  ;
6100  return 0;
6101}
6102_ACEOF
6103rm -f conftest.$ac_objext conftest$ac_exeext
6104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6105  (eval $ac_link) 2>&5
6106  ac_status=$?
6107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108  (exit $ac_status); } &&
6109         { ac_try='test -s conftest$ac_exeext'
6110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111  (eval $ac_try) 2>&5
6112  ac_status=$?
6113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114  (exit $ac_status); }; }; then
6115  lt_cv_prog_cc_static_works=yes
6116else
6117  echo "$as_me: failed program was:" >&5
6118cat conftest.$ac_ext >&5
6119fi
6120rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6121  LDFLAGS="$save_LDFLAGS"
6122
6123fi
6124
6125
6126# Belt *and* braces to stop my trousers falling down:
6127test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
6128echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
6129echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
6130
6131pic_flag="$lt_cv_prog_cc_pic"
6132special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
6133wl="$lt_cv_prog_cc_wl"
6134link_static_flag="$lt_cv_prog_cc_static"
6135no_builtin_flag="$lt_cv_prog_cc_no_builtin"
6136can_build_shared="$lt_cv_prog_cc_can_build_shared"
6137##
6138## END FIXME
6139
6140
6141## FIXME: this should be a separate macro
6142##
6143# Check to see if options -o and -c are simultaneously supported by compiler
6144echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6145echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6146if test "${lt_cv_compiler_c_o+set}" = set; then
6147  echo $ECHO_N "(cached) $ECHO_C" >&6
6148else
6149
6150$rm -r conftest 2>/dev/null
6151mkdir conftest
6152cd conftest
6153echo "int some_variable = 0;" > conftest.$ac_ext
6154mkdir out
6155# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6156# that will create temporary files in the current directory regardless of
6157# the output directory.  Thus, making CWD read-only will cause this test
6158# to fail, enabling locking or at least warning the user not to do parallel
6159# builds.
6160chmod -w .
6161save_CFLAGS="$CFLAGS"
6162CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6163compiler_c_o=no
6164if { (eval echo configure:6164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
6165  # The compiler can only warn and ignore the option if not recognized
6166  # So say no if there are warnings
6167  if test -s out/conftest.err; then
6168    lt_cv_compiler_c_o=no
6169  else
6170    lt_cv_compiler_c_o=yes
6171  fi
6172else
6173  # Append any errors to the config.log.
6174  cat out/conftest.err 1>&5
6175  lt_cv_compiler_c_o=no
6176fi
6177CFLAGS="$save_CFLAGS"
6178chmod u+w .
6179$rm conftest* out/*
6180rmdir out
6181cd ..
6182rmdir conftest
6183$rm -r conftest 2>/dev/null
6184
6185fi
6186
6187compiler_c_o=$lt_cv_compiler_c_o
6188echo "$as_me:$LINENO: result: $compiler_c_o" >&5
6189echo "${ECHO_T}$compiler_c_o" >&6
6190
6191if test x"$compiler_c_o" = x"yes"; then
6192  # Check to see if we can write to a .lo
6193  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
6194echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
6195  if test "${lt_cv_compiler_o_lo+set}" = set; then
6196  echo $ECHO_N "(cached) $ECHO_C" >&6
6197else
6198
6199  lt_cv_compiler_o_lo=no
6200  save_CFLAGS="$CFLAGS"
6201  CFLAGS="$CFLAGS -c -o conftest.lo"
6202  save_objext="$ac_objext"
6203  ac_objext=lo
6204  cat >conftest.$ac_ext <<_ACEOF
6205#line $LINENO "configure"
6206#include "confdefs.h"
6207
6208#ifdef F77_DUMMY_MAIN
6209#  ifdef __cplusplus
6210     extern "C"
6211#  endif
6212   int F77_DUMMY_MAIN() { return 1; }
6213#endif
6214int
6215main ()
6216{
6217int some_variable = 0;
6218  ;
6219  return 0;
6220}
6221_ACEOF
6222rm -f conftest.$ac_objext
6223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6224  (eval $ac_compile) 2>&5
6225  ac_status=$?
6226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227  (exit $ac_status); } &&
6228         { ac_try='test -s conftest.$ac_objext'
6229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230  (eval $ac_try) 2>&5
6231  ac_status=$?
6232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233  (exit $ac_status); }; }; then
6234      # The compiler can only warn and ignore the option if not recognized
6235    # So say no if there are warnings
6236    if test -s conftest.err; then
6237      lt_cv_compiler_o_lo=no
6238    else
6239      lt_cv_compiler_o_lo=yes
6240    fi
6241
6242else
6243  echo "$as_me: failed program was:" >&5
6244cat conftest.$ac_ext >&5
6245fi
6246rm -f conftest.$ac_objext conftest.$ac_ext
6247  ac_objext="$save_objext"
6248  CFLAGS="$save_CFLAGS"
6249
6250fi
6251
6252  compiler_o_lo=$lt_cv_compiler_o_lo
6253  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
6254echo "${ECHO_T}$compiler_o_lo" >&6
6255else
6256  compiler_o_lo=no
6257fi
6258##
6259## END FIXME
6260
6261## FIXME: this should be a separate macro
6262##
6263# Check to see if we can do hard links to lock some files if needed
6264hard_links="nottested"
6265if test "$compiler_c_o" = no && test "$need_locks" != no; then
6266  # do not overwrite the value of need_locks provided by the user
6267  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6268echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6269  hard_links=yes
6270  $rm conftest*
6271  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6272  touch conftest.a
6273  ln conftest.a conftest.b 2>&5 || hard_links=no
6274  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6275  echo "$as_me:$LINENO: result: $hard_links" >&5
6276echo "${ECHO_T}$hard_links" >&6
6277  if test "$hard_links" = no; then
6278    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6279echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6280    need_locks=warn
6281  fi
6282else
6283  need_locks=no
6284fi
6285##
6286## END FIXME
6287
6288## FIXME: this should be a separate macro
6289##
6290if test "$GCC" = yes; then
6291  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6292  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6293echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6294  echo "int some_variable = 0;" > conftest.$ac_ext
6295  save_CFLAGS="$CFLAGS"
6296  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6297  compiler_rtti_exceptions=no
6298  cat >conftest.$ac_ext <<_ACEOF
6299#line $LINENO "configure"
6300#include "confdefs.h"
6301
6302#ifdef F77_DUMMY_MAIN
6303#  ifdef __cplusplus
6304     extern "C"
6305#  endif
6306   int F77_DUMMY_MAIN() { return 1; }
6307#endif
6308int
6309main ()
6310{
6311int some_variable = 0;
6312  ;
6313  return 0;
6314}
6315_ACEOF
6316rm -f conftest.$ac_objext
6317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6318  (eval $ac_compile) 2>&5
6319  ac_status=$?
6320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321  (exit $ac_status); } &&
6322         { ac_try='test -s conftest.$ac_objext'
6323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324  (eval $ac_try) 2>&5
6325  ac_status=$?
6326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327  (exit $ac_status); }; }; then
6328      # The compiler can only warn and ignore the option if not recognized
6329    # So say no if there are warnings
6330    if test -s conftest.err; then
6331      compiler_rtti_exceptions=no
6332    else
6333      compiler_rtti_exceptions=yes
6334    fi
6335
6336else
6337  echo "$as_me: failed program was:" >&5
6338cat conftest.$ac_ext >&5
6339fi
6340rm -f conftest.$ac_objext conftest.$ac_ext
6341  CFLAGS="$save_CFLAGS"
6342  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6343echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6344
6345  if test "$compiler_rtti_exceptions" = "yes"; then
6346    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6347  else
6348    no_builtin_flag=' -fno-builtin'
6349  fi
6350fi
6351##
6352## END FIXME
6353
6354## FIXME: this should be a separate macro
6355##
6356# See if the linker supports building shared libraries.
6357echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6358echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6359
6360allow_undefined_flag=
6361no_undefined_flag=
6362need_lib_prefix=unknown
6363need_version=unknown
6364# when you set need_version to no, make sure it does not cause -set_version
6365# flags to be left without arguments
6366archive_cmds=
6367archive_expsym_cmds=
6368old_archive_from_new_cmds=
6369old_archive_from_expsyms_cmds=
6370export_dynamic_flag_spec=
6371whole_archive_flag_spec=
6372thread_safe_flag_spec=
6373hardcode_into_libs=no
6374hardcode_libdir_flag_spec=
6375hardcode_libdir_separator=
6376hardcode_direct=no
6377hardcode_minus_L=no
6378hardcode_shlibpath_var=unsupported
6379runpath_var=
6380link_all_deplibs=unknown
6381always_export_symbols=no
6382export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6383# include_expsyms should be a list of space-separated symbols to be *always*
6384# included in the symbol list
6385include_expsyms=
6386# exclude_expsyms can be an egrep regular expression of symbols to exclude
6387# it will be wrapped by ` (' and `)$', so one must not match beginning or
6388# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6389# as well as any symbol that contains `d'.
6390exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6391# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6392# platforms (ab)use it in PIC code, but their linkers get confused if
6393# the symbol is explicitly referenced.  Since portable code cannot
6394# rely on this symbol name, it's probably fine to never include it in
6395# preloaded symbol tables.
6396extract_expsyms_cmds=
6397
6398case $host_os in
6399cygwin* | mingw* | pw32*)
6400  # FIXME: the MSVC++ port hasn't been tested in a loooong time
6401  # When not using gcc, we currently assume that we are using
6402  # Microsoft Visual C++.
6403  if test "$GCC" != yes; then
6404    with_gnu_ld=no
6405  fi
6406  ;;
6407openbsd*)
6408  with_gnu_ld=no
6409  ;;
6410esac
6411
6412ld_shlibs=yes
6413if test "$with_gnu_ld" = yes; then
6414  # If archive_cmds runs LD, not CC, wlarc should be empty
6415  wlarc='${wl}'
6416
6417  # See if GNU ld supports shared libraries.
6418  case $host_os in
6419  aix3* | aix4* | aix5*)
6420    # On AIX, the GNU linker is very broken
6421    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6422    ld_shlibs=no
6423    cat <<EOF 1>&2
6424
6425*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6426*** to be unable to reliably create shared libraries on AIX.
6427*** Therefore, libtool is disabling shared libraries support.  If you
6428*** really care for shared libraries, you may want to modify your PATH
6429*** so that a non-GNU linker is found, and then restart.
6430
6431EOF
6432    ;;
6433
6434  amigaos*)
6435    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)'
6436    hardcode_libdir_flag_spec='-L$libdir'
6437    hardcode_minus_L=yes
6438
6439    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6440    # that the semantics of dynamic libraries on AmigaOS, at least up
6441    # to version 4, is to share data among multiple programs linked
6442    # with the same dynamic library.  Since this doesn't match the
6443    # behavior of shared libraries on other platforms, we can use
6444    # them.
6445    ld_shlibs=no
6446    ;;
6447
6448  beos*)
6449    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6450      allow_undefined_flag=unsupported
6451      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6452      # support --undefined.  This deserves some investigation.  FIXME
6453      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6454    else
6455      ld_shlibs=no
6456    fi
6457    ;;
6458
6459  cygwin* | mingw* | pw32*)
6460    # hardcode_libdir_flag_spec is actually meaningless, as there is
6461    # no search path for DLLs.
6462    hardcode_libdir_flag_spec='-L$libdir'
6463    allow_undefined_flag=unsupported
6464    always_export_symbols=yes
6465
6466    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6467      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6468      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6469      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6470      else $CC -o impgen impgen.c ; fi)~
6471      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6472
6473    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6474
6475    # cygwin and mingw dlls have different entry points and sets of symbols
6476    # to exclude.
6477    # FIXME: what about values for MSVC?
6478    dll_entry=__cygwin_dll_entry@12
6479    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6480    case $host_os in
6481    mingw*)
6482      # mingw values
6483      dll_entry=_DllMainCRTStartup@12
6484      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6485      ;;
6486    esac
6487
6488    # mingw and cygwin differ, and it's simplest to just exclude the union
6489    # of the two symbol sets.
6490    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6491
6492    # recent cygwin and mingw systems supply a stub DllMain which the user
6493    # can override, but on older systems we have to supply one (in ltdll.c)
6494    if test "x$lt_cv_need_dllmain" = "xyes"; then
6495      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6496      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6497	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6498    else
6499      ltdll_obj=
6500      ltdll_cmds=
6501    fi
6502
6503    # Extract the symbol export list from an `--export-all' def file,
6504    # then regenerate the def file from the symbol export list, so that
6505    # the compiled dll only exports the symbol export list.
6506    # Be careful not to strip the DATA tag left be newer dlltools.
6507    export_symbols_cmds="$ltdll_cmds"'
6508      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6509      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6510
6511    # If the export-symbols file already is a .def file (1st line
6512    # is EXPORTS), use it as is.
6513    # If DATA tags from a recent dlltool are present, honour them!
6514    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6515	cp $export_symbols $output_objdir/$soname-def;
6516      else
6517	echo EXPORTS > $output_objdir/$soname-def;
6518	_lt_hint=1;
6519	cat $export_symbols | while read symbol; do
6520	 set dummy \$symbol;
6521	 case \$# in
6522	   2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6523	   4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6524	   *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6525	 esac;
6526	 _lt_hint=`expr 1 + \$_lt_hint`;
6527	done;
6528      fi~
6529      '"$ltdll_cmds"'
6530      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6531      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6532      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6533      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6534      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6535    ;;
6536
6537  netbsd*)
6538    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6539      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6540      wlarc=
6541    else
6542      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6543      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6544    fi
6545    ;;
6546
6547  solaris* | sysv5*)
6548    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6549      ld_shlibs=no
6550      cat <<EOF 1>&2
6551
6552*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6553*** create shared libraries on Solaris systems.  Therefore, libtool
6554*** is disabling shared libraries support.  We urge you to upgrade GNU
6555*** binutils to release 2.9.1 or newer.  Another option is to modify
6556*** your PATH or compiler configuration so that the native linker is
6557*** used, and then restart.
6558
6559EOF
6560    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6561      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6562      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6563    else
6564      ld_shlibs=no
6565    fi
6566    ;;
6567
6568  sunos4*)
6569    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6570    wlarc=
6571    hardcode_direct=yes
6572    hardcode_shlibpath_var=no
6573    ;;
6574
6575  *)
6576    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6577      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6578      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6579    else
6580      ld_shlibs=no
6581    fi
6582    ;;
6583  esac
6584
6585  if test "$ld_shlibs" = yes; then
6586    runpath_var=LD_RUN_PATH
6587    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6588    export_dynamic_flag_spec='${wl}--export-dynamic'
6589    case $host_os in
6590    cygwin* | mingw* | pw32*)
6591      # dlltool doesn't understand --whole-archive et. al.
6592      whole_archive_flag_spec=
6593      ;;
6594    *)
6595      # ancient GNU ld didn't support --whole-archive et. al.
6596      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6597	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6598      else
6599	whole_archive_flag_spec=
6600      fi
6601      ;;
6602    esac
6603  fi
6604else
6605  # PORTME fill in a description of your system's linker (not GNU ld)
6606  case $host_os in
6607  aix3*)
6608    allow_undefined_flag=unsupported
6609    always_export_symbols=yes
6610    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'
6611    # Note: this linker hardcodes the directories in LIBPATH if there
6612    # are no directories specified by -L.
6613    hardcode_minus_L=yes
6614    if test "$GCC" = yes && test -z "$link_static_flag"; then
6615      # Neither direct hardcoding nor static linking is supported with a
6616      # broken collect2.
6617      hardcode_direct=unsupported
6618    fi
6619    ;;
6620
6621  aix4* | aix5*)
6622    if test "$host_cpu" = ia64; then
6623      # On IA64, the linker does run time linking by default, so we don't
6624      # have to do anything special.
6625      aix_use_runtimelinking=no
6626      exp_sym_flag='-Bexport'
6627      no_entry_flag=""
6628    else
6629      aix_use_runtimelinking=no
6630
6631      # Test if we are trying to use run time linking or normal
6632      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6633      # need to do runtime linking.
6634      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6635	for ld_flag in $LDFLAGS; do
6636	  case $ld_flag in
6637	  *-brtl*)
6638	    aix_use_runtimelinking=yes
6639	    break
6640	  ;;
6641	  esac
6642	done
6643      esac
6644
6645      exp_sym_flag='-bexport'
6646      no_entry_flag='-bnoentry'
6647    fi
6648
6649    # When large executables or shared objects are built, AIX ld can
6650    # have problems creating the table of contents.  If linking a library
6651    # or program results in "error TOC overflow" add -mminimal-toc to
6652    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6653    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6654
6655    hardcode_direct=yes
6656    archive_cmds=''
6657    hardcode_libdir_separator=':'
6658    if test "$GCC" = yes; then
6659      case $host_os in aix4.[012]|aix4.[012].*)
6660	collect2name=`${CC} -print-prog-name=collect2`
6661	if test -f "$collect2name" && \
6662	  strings "$collect2name" | grep resolve_lib_name >/dev/null
6663	then
6664	  # We have reworked collect2
6665	  hardcode_direct=yes
6666	else
6667	  # We have old collect2
6668	  hardcode_direct=unsupported
6669	  # It fails to find uninstalled libraries when the uninstalled
6670	  # path is not listed in the libpath.  Setting hardcode_minus_L
6671	  # to unsupported forces relinking
6672	  hardcode_minus_L=yes
6673	  hardcode_libdir_flag_spec='-L$libdir'
6674	  hardcode_libdir_separator=
6675	fi
6676      esac
6677
6678      shared_flag='-shared'
6679    else
6680      # not using gcc
6681      if test "$host_cpu" = ia64; then
6682	shared_flag='${wl}-G'
6683      else
6684	if test "$aix_use_runtimelinking" = yes; then
6685	  shared_flag='${wl}-G'
6686	else
6687	  shared_flag='${wl}-bM:SRE'
6688	fi
6689      fi
6690    fi
6691
6692    # It seems that -bexpall can do strange things, so it is better to
6693    # generate a list of symbols to export.
6694    always_export_symbols=yes
6695    if test "$aix_use_runtimelinking" = yes; then
6696      # Warning - without using the other runtime loading flags (-brtl),
6697      # -berok will link without error, but may produce a broken library.
6698      allow_undefined_flag='-berok'
6699      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6700      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6701    else
6702      if test "$host_cpu" = ia64; then
6703	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6704	allow_undefined_flag="-z nodefs"
6705	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6706      else
6707	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6708	# Warning - without using the other run time loading flags,
6709	# -berok will link without error, but may produce a broken library.
6710	allow_undefined_flag='${wl}-berok'
6711	# This is a bit strange, but is similar to how AIX traditionally builds
6712	# it's shared libraries.
6713	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6714      fi
6715    fi
6716    ;;
6717
6718  amigaos*)
6719    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)'
6720    hardcode_libdir_flag_spec='-L$libdir'
6721    hardcode_minus_L=yes
6722    # see comment about different semantics on the GNU ld section
6723    ld_shlibs=no
6724    ;;
6725
6726  cygwin* | mingw* | pw32*)
6727    # When not using gcc, we currently assume that we are using
6728    # Microsoft Visual C++.
6729    # hardcode_libdir_flag_spec is actually meaningless, as there is
6730    # no search path for DLLs.
6731    hardcode_libdir_flag_spec=' '
6732    allow_undefined_flag=unsupported
6733    # Tell ltmain to make .lib files, not .a files.
6734    libext=lib
6735    # FIXME: Setting linknames here is a bad hack.
6736    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6737    # The linker will automatically build a .lib file if we build a DLL.
6738    old_archive_from_new_cmds='true'
6739    # FIXME: Should let the user specify the lib program.
6740    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6741    fix_srcfile_path='`cygpath -w "$srcfile"`'
6742    ;;
6743
6744  darwin* | rhapsody*)
6745    case "$host_os" in
6746    rhapsody* | darwin1.[012])
6747      allow_undefined_flag='-undefined suppress'
6748      ;;
6749    *) # Darwin 1.3 on
6750      allow_undefined_flag='-flat_namespace -undefined suppress'
6751      ;;
6752    esac
6753    # FIXME: Relying on posixy $() will cause problems for
6754    #        cross-compilation, but unfortunately the echo tests do not
6755    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6756    #	     `"' quotes if we put them in here... so don't!
6757    archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6758    # We need to add '_' to the symbols in $export_symbols first
6759    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6760    hardcode_direct=yes
6761    hardcode_shlibpath_var=no
6762    whole_archive_flag_spec='-all_load $convenience'
6763    ;;
6764
6765  freebsd1*)
6766    ld_shlibs=no
6767    ;;
6768
6769  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6770  # support.  Future versions do this automatically, but an explicit c++rt0.o
6771  # does not break anything, and helps significantly (at the cost of a little
6772  # extra space).
6773  freebsd2.2*)
6774    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6775    hardcode_libdir_flag_spec='-R$libdir'
6776    hardcode_direct=yes
6777    hardcode_shlibpath_var=no
6778    ;;
6779
6780  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6781  freebsd2*)
6782    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6783    hardcode_direct=yes
6784    hardcode_minus_L=yes
6785    hardcode_shlibpath_var=no
6786    ;;
6787
6788  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6789  freebsd*)
6790    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6791    hardcode_libdir_flag_spec='-R$libdir'
6792    hardcode_direct=yes
6793    hardcode_shlibpath_var=no
6794    ;;
6795
6796  hpux9* | hpux10* | hpux11*)
6797    case $host_os in
6798    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6799    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6800    esac
6801    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6802    hardcode_libdir_separator=:
6803    hardcode_direct=yes
6804    hardcode_minus_L=yes # Not in the search PATH, but as the default
6805			 # location of the library.
6806    export_dynamic_flag_spec='${wl}-E'
6807    ;;
6808
6809  irix5* | irix6* | nonstopux*)
6810    if test "$GCC" = yes; then
6811      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6812      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6813    else
6814      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6815      hardcode_libdir_flag_spec='-rpath $libdir'
6816    fi
6817    hardcode_libdir_separator=:
6818    link_all_deplibs=yes
6819    ;;
6820
6821  netbsd*)
6822    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6823      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6824    else
6825      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6826    fi
6827    hardcode_libdir_flag_spec='-R$libdir'
6828    hardcode_direct=yes
6829    hardcode_shlibpath_var=no
6830    ;;
6831
6832  newsos6)
6833    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6834    hardcode_direct=yes
6835    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6836    hardcode_libdir_separator=:
6837    hardcode_shlibpath_var=no
6838    ;;
6839
6840  openbsd*)
6841    hardcode_direct=yes
6842    hardcode_shlibpath_var=no
6843    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6844      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6845      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6846      export_dynamic_flag_spec='${wl}-E'
6847    else
6848      case "$host_os" in
6849      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6850	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6851	hardcode_libdir_flag_spec='-R$libdir'
6852        ;;
6853      *)
6854        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6855        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6856        ;;
6857      esac
6858    fi
6859    ;;
6860
6861  os2*)
6862    hardcode_libdir_flag_spec='-L$libdir'
6863    hardcode_minus_L=yes
6864    allow_undefined_flag=unsupported
6865    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6866    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6867    ;;
6868
6869  osf3*)
6870    if test "$GCC" = yes; then
6871      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6872      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6873    else
6874      allow_undefined_flag=' -expect_unresolved \*'
6875      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6876    fi
6877    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6878    hardcode_libdir_separator=:
6879    ;;
6880
6881  osf4* | osf5*)	# as osf3* with the addition of -msym flag
6882    if test "$GCC" = yes; then
6883      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6884      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6885      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6886    else
6887      allow_undefined_flag=' -expect_unresolved \*'
6888      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6889      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6890      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6891
6892      #Both c and cxx compiler support -rpath directly
6893      hardcode_libdir_flag_spec='-rpath $libdir'
6894    fi
6895    hardcode_libdir_separator=:
6896    ;;
6897
6898  sco3.2v5*)
6899    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6900    hardcode_shlibpath_var=no
6901    runpath_var=LD_RUN_PATH
6902    hardcode_runpath_var=yes
6903    export_dynamic_flag_spec='${wl}-Bexport'
6904    ;;
6905
6906  solaris*)
6907    # gcc --version < 3.0 without binutils cannot create self contained
6908    # shared libraries reliably, requiring libgcc.a to resolve some of
6909    # the object symbols generated in some cases.  Libraries that use
6910    # assert need libgcc.a to resolve __eprintf, for example.  Linking
6911    # a copy of libgcc.a into every shared library to guarantee resolving
6912    # such symbols causes other problems:  According to Tim Van Holder
6913    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6914    # (to the application) exception stack for one thing.
6915    no_undefined_flag=' -z defs'
6916    if test "$GCC" = yes; then
6917      case `$CC --version 2>/dev/null` in
6918      [12].*)
6919	cat <<EOF 1>&2
6920
6921*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6922*** create self contained shared libraries on Solaris systems, without
6923*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6924*** -no-undefined support, which will at least allow you to build shared
6925*** libraries.  However, you may find that when you link such libraries
6926*** into an application without using GCC, you have to manually add
6927*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6928*** upgrade to a newer version of GCC.  Another option is to rebuild your
6929*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6930
6931EOF
6932        no_undefined_flag=
6933	;;
6934      esac
6935    fi
6936    # $CC -shared without GNU ld will not create a library from C++
6937    # object files and a static libstdc++, better avoid it by now
6938    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6939    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6940		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6941    hardcode_libdir_flag_spec='-R$libdir'
6942    hardcode_shlibpath_var=no
6943    case $host_os in
6944    solaris2.[0-5] | solaris2.[0-5].*) ;;
6945    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6946      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6947    esac
6948    link_all_deplibs=yes
6949    ;;
6950
6951  sunos4*)
6952    if test "x$host_vendor" = xsequent; then
6953      # Use $CC to link under sequent, because it throws in some extra .o
6954      # files that make .init and .fini sections work.
6955      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6956    else
6957      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6958    fi
6959    hardcode_libdir_flag_spec='-L$libdir'
6960    hardcode_direct=yes
6961    hardcode_minus_L=yes
6962    hardcode_shlibpath_var=no
6963    ;;
6964
6965  sysv4)
6966    case $host_vendor in
6967      sni)
6968        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6969        hardcode_direct=yes # is this really true???
6970        ;;
6971      siemens)
6972        ## LD is ld it makes a PLAMLIB
6973        ## CC just makes a GrossModule.
6974        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6975        reload_cmds='$CC -r -o $output$reload_objs'
6976        hardcode_direct=no
6977        ;;
6978      motorola)
6979        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6980        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6981        ;;
6982    esac
6983    runpath_var='LD_RUN_PATH'
6984    hardcode_shlibpath_var=no
6985    ;;
6986
6987  sysv4.3*)
6988    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6989    hardcode_shlibpath_var=no
6990    export_dynamic_flag_spec='-Bexport'
6991    ;;
6992
6993  sysv5*)
6994    no_undefined_flag=' -z text'
6995    # $CC -shared without GNU ld will not create a library from C++
6996    # object files and a static libstdc++, better avoid it by now
6997    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6998    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6999		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7000    hardcode_libdir_flag_spec=
7001    hardcode_shlibpath_var=no
7002    runpath_var='LD_RUN_PATH'
7003    ;;
7004
7005  uts4*)
7006    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7007    hardcode_libdir_flag_spec='-L$libdir'
7008    hardcode_shlibpath_var=no
7009    ;;
7010
7011  dgux*)
7012    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7013    hardcode_libdir_flag_spec='-L$libdir'
7014    hardcode_shlibpath_var=no
7015    ;;
7016
7017  sysv4*MP*)
7018    if test -d /usr/nec; then
7019      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7020      hardcode_shlibpath_var=no
7021      runpath_var=LD_RUN_PATH
7022      hardcode_runpath_var=yes
7023      ld_shlibs=yes
7024    fi
7025    ;;
7026
7027  sysv4.2uw2*)
7028    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7029    hardcode_direct=yes
7030    hardcode_minus_L=no
7031    hardcode_shlibpath_var=no
7032    hardcode_runpath_var=yes
7033    runpath_var=LD_RUN_PATH
7034    ;;
7035
7036  sysv5uw7* | unixware7*)
7037    no_undefined_flag='${wl}-z ${wl}text'
7038    if test "$GCC" = yes; then
7039      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7040    else
7041      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7042    fi
7043    runpath_var='LD_RUN_PATH'
7044    hardcode_shlibpath_var=no
7045    ;;
7046
7047  *)
7048    ld_shlibs=no
7049    ;;
7050  esac
7051fi
7052echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7053echo "${ECHO_T}$ld_shlibs" >&6
7054test "$ld_shlibs" = no && can_build_shared=no
7055##
7056## END FIXME
7057
7058## FIXME: this should be a separate macro
7059##
7060# Check hardcoding attributes.
7061echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7062echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7063hardcode_action=
7064if test -n "$hardcode_libdir_flag_spec" || \
7065   test -n "$runpath_var"; then
7066
7067  # We can hardcode non-existant directories.
7068  if test "$hardcode_direct" != no &&
7069     # If the only mechanism to avoid hardcoding is shlibpath_var, we
7070     # have to relink, otherwise we might link with an installed library
7071     # when we should be linking with a yet-to-be-installed one
7072     ## test "$hardcode_shlibpath_var" != no &&
7073     test "$hardcode_minus_L" != no; then
7074    # Linking always hardcodes the temporary library directory.
7075    hardcode_action=relink
7076  else
7077    # We can link without hardcoding, and we can hardcode nonexisting dirs.
7078    hardcode_action=immediate
7079  fi
7080else
7081  # We cannot hardcode anything, or else we can only hardcode existing
7082  # directories.
7083  hardcode_action=unsupported
7084fi
7085echo "$as_me:$LINENO: result: $hardcode_action" >&5
7086echo "${ECHO_T}$hardcode_action" >&6
7087##
7088## END FIXME
7089
7090## FIXME: this should be a separate macro
7091##
7092striplib=
7093old_striplib=
7094echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7095echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7096if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7097  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7098  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7099  echo "$as_me:$LINENO: result: yes" >&5
7100echo "${ECHO_T}yes" >&6
7101else
7102  echo "$as_me:$LINENO: result: no" >&5
7103echo "${ECHO_T}no" >&6
7104fi
7105##
7106## END FIXME
7107
7108reload_cmds='$LD$reload_flag -o $output$reload_objs'
7109test -z "$deplibs_check_method" && deplibs_check_method=unknown
7110
7111## FIXME: this should be a separate macro
7112##
7113# PORTME Fill in your ld.so characteristics
7114echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7115echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7116library_names_spec=
7117libname_spec='lib$name'
7118soname_spec=
7119postinstall_cmds=
7120postuninstall_cmds=
7121finish_cmds=
7122finish_eval=
7123shlibpath_var=
7124shlibpath_overrides_runpath=unknown
7125version_type=none
7126dynamic_linker="$host_os ld.so"
7127sys_lib_dlsearch_path_spec="/lib /usr/lib"
7128sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7129
7130case $host_os in
7131aix3*)
7132  version_type=linux
7133  library_names_spec='${libname}${release}.so$versuffix $libname.a'
7134  shlibpath_var=LIBPATH
7135
7136  # AIX has no versioning support, so we append a major version to the name.
7137  soname_spec='${libname}${release}.so$major'
7138  ;;
7139
7140aix4* | aix5*)
7141  version_type=linux
7142  need_lib_prefix=no
7143  need_version=no
7144  hardcode_into_libs=yes
7145  if test "$host_cpu" = ia64; then
7146    # AIX 5 supports IA64
7147    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7148    shlibpath_var=LD_LIBRARY_PATH
7149  else
7150    # With GCC up to 2.95.x, collect2 would create an import file
7151    # for dependence libraries.  The import file would start with
7152    # the line `#! .'.  This would cause the generated library to
7153    # depend on `.', always an invalid library.  This was fixed in
7154    # development snapshots of GCC prior to 3.0.
7155    case $host_os in
7156      aix4 | aix4.[01] | aix4.[01].*)
7157	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7158	     echo ' yes '
7159	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7160	  :
7161	else
7162	  can_build_shared=no
7163	fi
7164	;;
7165    esac
7166    # AIX (on Power*) has no versioning support, so currently we can
7167    # not hardcode correct soname into executable. Probably we can
7168    # add versioning support to collect2, so additional links can
7169    # be useful in future.
7170    if test "$aix_use_runtimelinking" = yes; then
7171      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7172      # instead of lib<name>.a to let people know that these are not
7173      # typical AIX shared libraries.
7174      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7175    else
7176      # We preserve .a as extension for shared libraries through AIX4.2
7177      # and later when we are not doing run time linking.
7178      library_names_spec='${libname}${release}.a $libname.a'
7179      soname_spec='${libname}${release}.so$major'
7180    fi
7181    shlibpath_var=LIBPATH
7182  fi
7183  hardcode_into_libs=yes
7184  ;;
7185
7186amigaos*)
7187  library_names_spec='$libname.ixlibrary $libname.a'
7188  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7189  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
7190  ;;
7191
7192beos*)
7193  library_names_spec='${libname}.so'
7194  dynamic_linker="$host_os ld.so"
7195  shlibpath_var=LIBRARY_PATH
7196  ;;
7197
7198bsdi4*)
7199  version_type=linux
7200  need_version=no
7201  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7202  soname_spec='${libname}${release}.so$major'
7203  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7204  shlibpath_var=LD_LIBRARY_PATH
7205  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7206  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7207  export_dynamic_flag_spec=-rdynamic
7208  # the default ld.so.conf also contains /usr/contrib/lib and
7209  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7210  # libtool to hard-code these into programs
7211  ;;
7212
7213cygwin* | mingw* | pw32*)
7214  version_type=windows
7215  need_version=no
7216  need_lib_prefix=no
7217  case $GCC,$host_os in
7218  yes,cygwin*)
7219    library_names_spec='$libname.dll.a'
7220    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7221    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7222      dldir=$destdir/`dirname \$dlpath`~
7223      test -d \$dldir || mkdir -p \$dldir~
7224      $install_prog .libs/$dlname \$dldir/$dlname'
7225    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7226      dlpath=$dir/\$dldll~
7227       $rm \$dlpath'
7228    ;;
7229  yes,mingw*)
7230    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7231    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
7232    ;;
7233  yes,pw32*)
7234    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7235    ;;
7236  *)
7237    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7238    ;;
7239  esac
7240  dynamic_linker='Win32 ld.exe'
7241  # FIXME: first we should search . and the directory the executable is in
7242  shlibpath_var=PATH
7243  ;;
7244
7245darwin* | rhapsody*)
7246  dynamic_linker="$host_os dyld"
7247  version_type=darwin
7248  need_lib_prefix=no
7249  need_version=no
7250  # FIXME: Relying on posixy $() will cause problems for
7251  #        cross-compilation, but unfortunately the echo tests do not
7252  #        yet detect zsh echo's removal of \ escapes.
7253  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
7254  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7255  shlibpath_overrides_runpath=yes
7256  shlibpath_var=DYLD_LIBRARY_PATH
7257  ;;
7258
7259freebsd1*)
7260  dynamic_linker=no
7261  ;;
7262
7263freebsd*)
7264  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7265  version_type=freebsd-$objformat
7266  case $version_type in
7267    freebsd-elf*)
7268      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7269      need_version=no
7270      need_lib_prefix=no
7271      ;;
7272    freebsd-*)
7273      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7274      need_version=yes
7275      ;;
7276  esac
7277  shlibpath_var=LD_LIBRARY_PATH
7278  case $host_os in
7279  freebsd2*)
7280    shlibpath_overrides_runpath=yes
7281    ;;
7282  *)
7283    shlibpath_overrides_runpath=no
7284    hardcode_into_libs=yes
7285    ;;
7286  esac
7287  ;;
7288
7289gnu*)
7290  version_type=linux
7291  need_lib_prefix=no
7292  need_version=no
7293  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7294  soname_spec='${libname}${release}.so$major'
7295  shlibpath_var=LD_LIBRARY_PATH
7296  hardcode_into_libs=yes
7297  ;;
7298
7299hpux9* | hpux10* | hpux11*)
7300  # Give a soname corresponding to the major version so that dld.sl refuses to
7301  # link against other versions.
7302  dynamic_linker="$host_os dld.sl"
7303  version_type=sunos
7304  need_lib_prefix=no
7305  need_version=no
7306  shlibpath_var=SHLIB_PATH
7307  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7308  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7309  soname_spec='${libname}${release}.sl$major'
7310  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7311  postinstall_cmds='chmod 555 $lib'
7312  ;;
7313
7314irix5* | irix6* | nonstopux*)
7315  case $host_os in
7316    nonstopux*) version_type=nonstopux ;;
7317    *)          version_type=irix ;;
7318  esac
7319  need_lib_prefix=no
7320  need_version=no
7321  soname_spec='${libname}${release}.so$major'
7322  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7323  case $host_os in
7324  irix5* | nonstopux*)
7325    libsuff= shlibsuff=
7326    ;;
7327  *)
7328    case $LD in # libtool.m4 will add one of these switches to LD
7329    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7330    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7331    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7332    *) libsuff= shlibsuff= libmagic=never-match;;
7333    esac
7334    ;;
7335  esac
7336  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7337  shlibpath_overrides_runpath=no
7338  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7339  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7340  ;;
7341
7342# No shared lib support for Linux oldld, aout, or coff.
7343linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7344  dynamic_linker=no
7345  ;;
7346
7347# This must be Linux ELF.
7348linux-gnu*)
7349  version_type=linux
7350  need_lib_prefix=no
7351  need_version=no
7352  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7353  soname_spec='${libname}${release}.so$major'
7354  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7355  shlibpath_var=LD_LIBRARY_PATH
7356  shlibpath_overrides_runpath=no
7357  # This implies no fast_install, which is unacceptable.
7358  # Some rework will be needed to allow for fast_install
7359  # before this can be enabled.
7360  hardcode_into_libs=yes
7361
7362  # We used to test for /lib/ld.so.1 and disable shared libraries on
7363  # powerpc, because MkLinux only supported shared libraries with the
7364  # GNU dynamic linker.  Since this was broken with cross compilers,
7365  # most powerpc-linux boxes support dynamic linking these days and
7366  # people can always --disable-shared, the test was removed, and we
7367  # assume the GNU/Linux dynamic linker is in use.
7368  dynamic_linker='GNU/Linux ld.so'
7369  ;;
7370
7371netbsd*)
7372  version_type=sunos
7373  need_lib_prefix=no
7374  need_version=no
7375  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7376    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7377    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7378    dynamic_linker='NetBSD (a.out) ld.so'
7379  else
7380    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7381    soname_spec='${libname}${release}.so$major'
7382    dynamic_linker='NetBSD ld.elf_so'
7383  fi
7384  shlibpath_var=LD_LIBRARY_PATH
7385  shlibpath_overrides_runpath=yes
7386  hardcode_into_libs=yes
7387  ;;
7388
7389newsos6)
7390  version_type=linux
7391  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7392  shlibpath_var=LD_LIBRARY_PATH
7393  shlibpath_overrides_runpath=yes
7394  ;;
7395
7396openbsd*)
7397  version_type=sunos
7398  need_lib_prefix=no
7399  need_version=no
7400  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7401    case "$host_os" in
7402    openbsd2.[89] | openbsd2.[89].*)
7403      shlibpath_overrides_runpath=no
7404      ;;
7405    *)
7406      shlibpath_overrides_runpath=yes
7407      ;;
7408    esac
7409  else
7410    shlibpath_overrides_runpath=yes
7411  fi
7412  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7413  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7414  shlibpath_var=LD_LIBRARY_PATH
7415  ;;
7416
7417os2*)
7418  libname_spec='$name'
7419  need_lib_prefix=no
7420  library_names_spec='$libname.dll $libname.a'
7421  dynamic_linker='OS/2 ld.exe'
7422  shlibpath_var=LIBPATH
7423  ;;
7424
7425osf3* | osf4* | osf5*)
7426  version_type=osf
7427  need_version=no
7428  soname_spec='${libname}${release}.so$major'
7429  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7430  shlibpath_var=LD_LIBRARY_PATH
7431  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7432  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7433  hardcode_into_libs=yes
7434  ;;
7435
7436sco3.2v5*)
7437  version_type=osf
7438  soname_spec='${libname}${release}.so$major'
7439  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7440  shlibpath_var=LD_LIBRARY_PATH
7441  ;;
7442
7443solaris*)
7444  version_type=linux
7445  need_lib_prefix=no
7446  need_version=no
7447  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7448  soname_spec='${libname}${release}.so$major'
7449  shlibpath_var=LD_LIBRARY_PATH
7450  shlibpath_overrides_runpath=yes
7451  hardcode_into_libs=yes
7452  # ldd complains unless libraries are executable
7453  postinstall_cmds='chmod +x $lib'
7454  ;;
7455
7456sunos4*)
7457  version_type=sunos
7458  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7459  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7460  shlibpath_var=LD_LIBRARY_PATH
7461  shlibpath_overrides_runpath=yes
7462  if test "$with_gnu_ld" = yes; then
7463    need_lib_prefix=no
7464  fi
7465  need_version=yes
7466  ;;
7467
7468sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7469  version_type=linux
7470  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7471  soname_spec='${libname}${release}.so$major'
7472  shlibpath_var=LD_LIBRARY_PATH
7473  case $host_vendor in
7474    sni)
7475      shlibpath_overrides_runpath=no
7476      need_lib_prefix=no
7477      export_dynamic_flag_spec='${wl}-Blargedynsym'
7478      runpath_var=LD_RUN_PATH
7479      ;;
7480    siemens)
7481      need_lib_prefix=no
7482      ;;
7483    motorola)
7484      need_lib_prefix=no
7485      need_version=no
7486      shlibpath_overrides_runpath=no
7487      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7488      ;;
7489  esac
7490  ;;
7491
7492uts4*)
7493  version_type=linux
7494  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7495  soname_spec='${libname}${release}.so$major'
7496  shlibpath_var=LD_LIBRARY_PATH
7497  ;;
7498
7499dgux*)
7500  version_type=linux
7501  need_lib_prefix=no
7502  need_version=no
7503  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7504  soname_spec='${libname}${release}.so$major'
7505  shlibpath_var=LD_LIBRARY_PATH
7506  ;;
7507
7508sysv4*MP*)
7509  if test -d /usr/nec ;then
7510    version_type=linux
7511    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7512    soname_spec='$libname.so.$major'
7513    shlibpath_var=LD_LIBRARY_PATH
7514  fi
7515  ;;
7516
7517*)
7518  dynamic_linker=no
7519  ;;
7520esac
7521echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7522echo "${ECHO_T}$dynamic_linker" >&6
7523test "$dynamic_linker" = no && can_build_shared=no
7524##
7525## END FIXME
7526
7527## FIXME: this should be a separate macro
7528##
7529# Report the final consequences.
7530echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7531echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7532echo "$as_me:$LINENO: result: $can_build_shared" >&5
7533echo "${ECHO_T}$can_build_shared" >&6
7534##
7535## END FIXME
7536
7537## FIXME: this should be a separate macro
7538##
7539echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7540echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7541test "$can_build_shared" = "no" && enable_shared=no
7542
7543# On AIX, shared libraries and static libraries use the same namespace, and
7544# are all built from PIC.
7545case "$host_os" in
7546aix3*)
7547  test "$enable_shared" = yes && enable_static=no
7548  if test -n "$RANLIB"; then
7549    archive_cmds="$archive_cmds~\$RANLIB \$lib"
7550    postinstall_cmds='$RANLIB $lib'
7551  fi
7552  ;;
7553
7554aix4*)
7555  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7556    test "$enable_shared" = yes && enable_static=no
7557  fi
7558  ;;
7559esac
7560echo "$as_me:$LINENO: result: $enable_shared" >&5
7561echo "${ECHO_T}$enable_shared" >&6
7562##
7563## END FIXME
7564
7565## FIXME: this should be a separate macro
7566##
7567echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7568echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7569# Make sure either enable_shared or enable_static is yes.
7570test "$enable_shared" = yes || enable_static=yes
7571echo "$as_me:$LINENO: result: $enable_static" >&5
7572echo "${ECHO_T}$enable_static" >&6
7573##
7574## END FIXME
7575
7576if test "$hardcode_action" = relink; then
7577  # Fast installation is not supported
7578  enable_fast_install=no
7579elif test "$shlibpath_overrides_runpath" = yes ||
7580     test "$enable_shared" = no; then
7581  # Fast installation is not necessary
7582  enable_fast_install=needless
7583fi
7584
7585variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7586if test "$GCC" = yes; then
7587  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7588fi
7589
7590if test "x$enable_dlopen" != xyes; then
7591  enable_dlopen=unknown
7592  enable_dlopen_self=unknown
7593  enable_dlopen_self_static=unknown
7594else
7595  lt_cv_dlopen=no
7596  lt_cv_dlopen_libs=
7597
7598  case $host_os in
7599  beos*)
7600    lt_cv_dlopen="load_add_on"
7601    lt_cv_dlopen_libs=
7602    lt_cv_dlopen_self=yes
7603    ;;
7604
7605  cygwin* | mingw* | pw32*)
7606    lt_cv_dlopen="LoadLibrary"
7607    lt_cv_dlopen_libs=
7608   ;;
7609
7610  *)
7611    echo "$as_me:$LINENO: checking for shl_load" >&5
7612echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7613if test "${ac_cv_func_shl_load+set}" = set; then
7614  echo $ECHO_N "(cached) $ECHO_C" >&6
7615else
7616  cat >conftest.$ac_ext <<_ACEOF
7617#line $LINENO "configure"
7618#include "confdefs.h"
7619/* System header to define __stub macros and hopefully few prototypes,
7620    which can conflict with char shl_load (); below.  */
7621#include <assert.h>
7622/* Override any gcc2 internal prototype to avoid an error.  */
7623#ifdef __cplusplus
7624extern "C"
7625#endif
7626/* We use char because int might match the return type of a gcc2
7627   builtin and then its argument prototype would still apply.  */
7628char shl_load ();
7629char (*f) ();
7630
7631#ifdef F77_DUMMY_MAIN
7632#  ifdef __cplusplus
7633     extern "C"
7634#  endif
7635   int F77_DUMMY_MAIN() { return 1; }
7636#endif
7637int
7638main ()
7639{
7640/* The GNU C library defines this for functions which it implements
7641    to always fail with ENOSYS.  Some functions are actually named
7642    something starting with __ and the normal name is an alias.  */
7643#if defined (__stub_shl_load) || defined (__stub___shl_load)
7644choke me
7645#else
7646f = shl_load;
7647#endif
7648
7649  ;
7650  return 0;
7651}
7652_ACEOF
7653rm -f conftest.$ac_objext conftest$ac_exeext
7654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7655  (eval $ac_link) 2>&5
7656  ac_status=$?
7657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658  (exit $ac_status); } &&
7659         { ac_try='test -s conftest$ac_exeext'
7660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661  (eval $ac_try) 2>&5
7662  ac_status=$?
7663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664  (exit $ac_status); }; }; then
7665  ac_cv_func_shl_load=yes
7666else
7667  echo "$as_me: failed program was:" >&5
7668cat conftest.$ac_ext >&5
7669ac_cv_func_shl_load=no
7670fi
7671rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7672fi
7673echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7674echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7675if test $ac_cv_func_shl_load = yes; then
7676  lt_cv_dlopen="shl_load"
7677else
7678  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7679echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7680if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7681  echo $ECHO_N "(cached) $ECHO_C" >&6
7682else
7683  ac_check_lib_save_LIBS=$LIBS
7684LIBS="-ldld  $LIBS"
7685cat >conftest.$ac_ext <<_ACEOF
7686#line $LINENO "configure"
7687#include "confdefs.h"
7688
7689/* Override any gcc2 internal prototype to avoid an error.  */
7690#ifdef __cplusplus
7691extern "C"
7692#endif
7693/* We use char because int might match the return type of a gcc2
7694   builtin and then its argument prototype would still apply.  */
7695char shl_load ();
7696#ifdef F77_DUMMY_MAIN
7697#  ifdef __cplusplus
7698     extern "C"
7699#  endif
7700   int F77_DUMMY_MAIN() { return 1; }
7701#endif
7702int
7703main ()
7704{
7705shl_load ();
7706  ;
7707  return 0;
7708}
7709_ACEOF
7710rm -f conftest.$ac_objext conftest$ac_exeext
7711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7712  (eval $ac_link) 2>&5
7713  ac_status=$?
7714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715  (exit $ac_status); } &&
7716         { ac_try='test -s conftest$ac_exeext'
7717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718  (eval $ac_try) 2>&5
7719  ac_status=$?
7720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721  (exit $ac_status); }; }; then
7722  ac_cv_lib_dld_shl_load=yes
7723else
7724  echo "$as_me: failed program was:" >&5
7725cat conftest.$ac_ext >&5
7726ac_cv_lib_dld_shl_load=no
7727fi
7728rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7729LIBS=$ac_check_lib_save_LIBS
7730fi
7731echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7732echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7733if test $ac_cv_lib_dld_shl_load = yes; then
7734  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7735else
7736  echo "$as_me:$LINENO: checking for dlopen" >&5
7737echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7738if test "${ac_cv_func_dlopen+set}" = set; then
7739  echo $ECHO_N "(cached) $ECHO_C" >&6
7740else
7741  cat >conftest.$ac_ext <<_ACEOF
7742#line $LINENO "configure"
7743#include "confdefs.h"
7744/* System header to define __stub macros and hopefully few prototypes,
7745    which can conflict with char dlopen (); below.  */
7746#include <assert.h>
7747/* Override any gcc2 internal prototype to avoid an error.  */
7748#ifdef __cplusplus
7749extern "C"
7750#endif
7751/* We use char because int might match the return type of a gcc2
7752   builtin and then its argument prototype would still apply.  */
7753char dlopen ();
7754char (*f) ();
7755
7756#ifdef F77_DUMMY_MAIN
7757#  ifdef __cplusplus
7758     extern "C"
7759#  endif
7760   int F77_DUMMY_MAIN() { return 1; }
7761#endif
7762int
7763main ()
7764{
7765/* The GNU C library defines this for functions which it implements
7766    to always fail with ENOSYS.  Some functions are actually named
7767    something starting with __ and the normal name is an alias.  */
7768#if defined (__stub_dlopen) || defined (__stub___dlopen)
7769choke me
7770#else
7771f = dlopen;
7772#endif
7773
7774  ;
7775  return 0;
7776}
7777_ACEOF
7778rm -f conftest.$ac_objext conftest$ac_exeext
7779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7780  (eval $ac_link) 2>&5
7781  ac_status=$?
7782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783  (exit $ac_status); } &&
7784         { ac_try='test -s conftest$ac_exeext'
7785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786  (eval $ac_try) 2>&5
7787  ac_status=$?
7788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789  (exit $ac_status); }; }; then
7790  ac_cv_func_dlopen=yes
7791else
7792  echo "$as_me: failed program was:" >&5
7793cat conftest.$ac_ext >&5
7794ac_cv_func_dlopen=no
7795fi
7796rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7797fi
7798echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7799echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7800if test $ac_cv_func_dlopen = yes; then
7801  lt_cv_dlopen="dlopen"
7802else
7803  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7804echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7805if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7806  echo $ECHO_N "(cached) $ECHO_C" >&6
7807else
7808  ac_check_lib_save_LIBS=$LIBS
7809LIBS="-ldl  $LIBS"
7810cat >conftest.$ac_ext <<_ACEOF
7811#line $LINENO "configure"
7812#include "confdefs.h"
7813
7814/* Override any gcc2 internal prototype to avoid an error.  */
7815#ifdef __cplusplus
7816extern "C"
7817#endif
7818/* We use char because int might match the return type of a gcc2
7819   builtin and then its argument prototype would still apply.  */
7820char dlopen ();
7821#ifdef F77_DUMMY_MAIN
7822#  ifdef __cplusplus
7823     extern "C"
7824#  endif
7825   int F77_DUMMY_MAIN() { return 1; }
7826#endif
7827int
7828main ()
7829{
7830dlopen ();
7831  ;
7832  return 0;
7833}
7834_ACEOF
7835rm -f conftest.$ac_objext conftest$ac_exeext
7836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7837  (eval $ac_link) 2>&5
7838  ac_status=$?
7839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840  (exit $ac_status); } &&
7841         { ac_try='test -s conftest$ac_exeext'
7842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843  (eval $ac_try) 2>&5
7844  ac_status=$?
7845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846  (exit $ac_status); }; }; then
7847  ac_cv_lib_dl_dlopen=yes
7848else
7849  echo "$as_me: failed program was:" >&5
7850cat conftest.$ac_ext >&5
7851ac_cv_lib_dl_dlopen=no
7852fi
7853rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7854LIBS=$ac_check_lib_save_LIBS
7855fi
7856echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7857echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7858if test $ac_cv_lib_dl_dlopen = yes; then
7859  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7860else
7861  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7862echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7863if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7864  echo $ECHO_N "(cached) $ECHO_C" >&6
7865else
7866  ac_check_lib_save_LIBS=$LIBS
7867LIBS="-lsvld  $LIBS"
7868cat >conftest.$ac_ext <<_ACEOF
7869#line $LINENO "configure"
7870#include "confdefs.h"
7871
7872/* Override any gcc2 internal prototype to avoid an error.  */
7873#ifdef __cplusplus
7874extern "C"
7875#endif
7876/* We use char because int might match the return type of a gcc2
7877   builtin and then its argument prototype would still apply.  */
7878char dlopen ();
7879#ifdef F77_DUMMY_MAIN
7880#  ifdef __cplusplus
7881     extern "C"
7882#  endif
7883   int F77_DUMMY_MAIN() { return 1; }
7884#endif
7885int
7886main ()
7887{
7888dlopen ();
7889  ;
7890  return 0;
7891}
7892_ACEOF
7893rm -f conftest.$ac_objext conftest$ac_exeext
7894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7895  (eval $ac_link) 2>&5
7896  ac_status=$?
7897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898  (exit $ac_status); } &&
7899         { ac_try='test -s conftest$ac_exeext'
7900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901  (eval $ac_try) 2>&5
7902  ac_status=$?
7903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904  (exit $ac_status); }; }; then
7905  ac_cv_lib_svld_dlopen=yes
7906else
7907  echo "$as_me: failed program was:" >&5
7908cat conftest.$ac_ext >&5
7909ac_cv_lib_svld_dlopen=no
7910fi
7911rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7912LIBS=$ac_check_lib_save_LIBS
7913fi
7914echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7915echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7916if test $ac_cv_lib_svld_dlopen = yes; then
7917  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7918else
7919  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7920echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7921if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7922  echo $ECHO_N "(cached) $ECHO_C" >&6
7923else
7924  ac_check_lib_save_LIBS=$LIBS
7925LIBS="-ldld  $LIBS"
7926cat >conftest.$ac_ext <<_ACEOF
7927#line $LINENO "configure"
7928#include "confdefs.h"
7929
7930/* Override any gcc2 internal prototype to avoid an error.  */
7931#ifdef __cplusplus
7932extern "C"
7933#endif
7934/* We use char because int might match the return type of a gcc2
7935   builtin and then its argument prototype would still apply.  */
7936char dld_link ();
7937#ifdef F77_DUMMY_MAIN
7938#  ifdef __cplusplus
7939     extern "C"
7940#  endif
7941   int F77_DUMMY_MAIN() { return 1; }
7942#endif
7943int
7944main ()
7945{
7946dld_link ();
7947  ;
7948  return 0;
7949}
7950_ACEOF
7951rm -f conftest.$ac_objext conftest$ac_exeext
7952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7953  (eval $ac_link) 2>&5
7954  ac_status=$?
7955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956  (exit $ac_status); } &&
7957         { ac_try='test -s conftest$ac_exeext'
7958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959  (eval $ac_try) 2>&5
7960  ac_status=$?
7961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962  (exit $ac_status); }; }; then
7963  ac_cv_lib_dld_dld_link=yes
7964else
7965  echo "$as_me: failed program was:" >&5
7966cat conftest.$ac_ext >&5
7967ac_cv_lib_dld_dld_link=no
7968fi
7969rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7970LIBS=$ac_check_lib_save_LIBS
7971fi
7972echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7973echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7974if test $ac_cv_lib_dld_dld_link = yes; then
7975  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7976fi
7977
7978
7979fi
7980
7981
7982fi
7983
7984
7985fi
7986
7987
7988fi
7989
7990
7991fi
7992
7993    ;;
7994  esac
7995
7996  if test "x$lt_cv_dlopen" != xno; then
7997    enable_dlopen=yes
7998  else
7999    enable_dlopen=no
8000  fi
8001
8002  case $lt_cv_dlopen in
8003  dlopen)
8004    save_CPPFLAGS="$CPPFLAGS"
8005        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8006
8007    save_LDFLAGS="$LDFLAGS"
8008    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8009
8010    save_LIBS="$LIBS"
8011    LIBS="$lt_cv_dlopen_libs $LIBS"
8012
8013    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8014echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8015if test "${lt_cv_dlopen_self+set}" = set; then
8016  echo $ECHO_N "(cached) $ECHO_C" >&6
8017else
8018  	  if test "$cross_compiling" = yes; then :
8019  lt_cv_dlopen_self=cross
8020else
8021    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8022  lt_status=$lt_dlunknown
8023  cat > conftest.$ac_ext <<EOF
8024#line 8024 "configure"
8025#include "confdefs.h"
8026
8027#if HAVE_DLFCN_H
8028#include <dlfcn.h>
8029#endif
8030
8031#include <stdio.h>
8032
8033#ifdef RTLD_GLOBAL
8034#  define LT_DLGLOBAL		RTLD_GLOBAL
8035#else
8036#  ifdef DL_GLOBAL
8037#    define LT_DLGLOBAL		DL_GLOBAL
8038#  else
8039#    define LT_DLGLOBAL		0
8040#  endif
8041#endif
8042
8043/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8044   find out it does not work in some platform. */
8045#ifndef LT_DLLAZY_OR_NOW
8046#  ifdef RTLD_LAZY
8047#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8048#  else
8049#    ifdef DL_LAZY
8050#      define LT_DLLAZY_OR_NOW		DL_LAZY
8051#    else
8052#      ifdef RTLD_NOW
8053#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8054#      else
8055#        ifdef DL_NOW
8056#          define LT_DLLAZY_OR_NOW	DL_NOW
8057#        else
8058#          define LT_DLLAZY_OR_NOW	0
8059#        endif
8060#      endif
8061#    endif
8062#  endif
8063#endif
8064
8065#ifdef __cplusplus
8066extern "C" void exit (int);
8067#endif
8068
8069void fnord() { int i=42;}
8070int main ()
8071{
8072  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8073  int status = $lt_dlunknown;
8074
8075  if (self)
8076    {
8077      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8078      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8079      /* dlclose (self); */
8080    }
8081
8082    exit (status);
8083}
8084EOF
8085  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8086  (eval $ac_link) 2>&5
8087  ac_status=$?
8088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8090    (./conftest; exit; ) 2>/dev/null
8091    lt_status=$?
8092    case x$lt_status in
8093      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8094      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8095      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8096    esac
8097  else :
8098    # compilation failed
8099    lt_cv_dlopen_self=no
8100  fi
8101fi
8102rm -fr conftest*
8103
8104
8105fi
8106echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8107echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8108
8109    if test "x$lt_cv_dlopen_self" = xyes; then
8110      LDFLAGS="$LDFLAGS $link_static_flag"
8111      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8112echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8113if test "${lt_cv_dlopen_self_static+set}" = set; then
8114  echo $ECHO_N "(cached) $ECHO_C" >&6
8115else
8116  	  if test "$cross_compiling" = yes; then :
8117  lt_cv_dlopen_self_static=cross
8118else
8119    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8120  lt_status=$lt_dlunknown
8121  cat > conftest.$ac_ext <<EOF
8122#line 8122 "configure"
8123#include "confdefs.h"
8124
8125#if HAVE_DLFCN_H
8126#include <dlfcn.h>
8127#endif
8128
8129#include <stdio.h>
8130
8131#ifdef RTLD_GLOBAL
8132#  define LT_DLGLOBAL		RTLD_GLOBAL
8133#else
8134#  ifdef DL_GLOBAL
8135#    define LT_DLGLOBAL		DL_GLOBAL
8136#  else
8137#    define LT_DLGLOBAL		0
8138#  endif
8139#endif
8140
8141/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8142   find out it does not work in some platform. */
8143#ifndef LT_DLLAZY_OR_NOW
8144#  ifdef RTLD_LAZY
8145#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8146#  else
8147#    ifdef DL_LAZY
8148#      define LT_DLLAZY_OR_NOW		DL_LAZY
8149#    else
8150#      ifdef RTLD_NOW
8151#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8152#      else
8153#        ifdef DL_NOW
8154#          define LT_DLLAZY_OR_NOW	DL_NOW
8155#        else
8156#          define LT_DLLAZY_OR_NOW	0
8157#        endif
8158#      endif
8159#    endif
8160#  endif
8161#endif
8162
8163#ifdef __cplusplus
8164extern "C" void exit (int);
8165#endif
8166
8167void fnord() { int i=42;}
8168int main ()
8169{
8170  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8171  int status = $lt_dlunknown;
8172
8173  if (self)
8174    {
8175      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8176      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8177      /* dlclose (self); */
8178    }
8179
8180    exit (status);
8181}
8182EOF
8183  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8184  (eval $ac_link) 2>&5
8185  ac_status=$?
8186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8188    (./conftest; exit; ) 2>/dev/null
8189    lt_status=$?
8190    case x$lt_status in
8191      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8192      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8193      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8194    esac
8195  else :
8196    # compilation failed
8197    lt_cv_dlopen_self_static=no
8198  fi
8199fi
8200rm -fr conftest*
8201
8202
8203fi
8204echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8205echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8206    fi
8207
8208    CPPFLAGS="$save_CPPFLAGS"
8209    LDFLAGS="$save_LDFLAGS"
8210    LIBS="$save_LIBS"
8211    ;;
8212  esac
8213
8214  case $lt_cv_dlopen_self in
8215  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8216  *) enable_dlopen_self=unknown ;;
8217  esac
8218
8219  case $lt_cv_dlopen_self_static in
8220  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8221  *) enable_dlopen_self_static=unknown ;;
8222  esac
8223fi
8224
8225
8226## FIXME: this should be a separate macro
8227##
8228if test "$enable_shared" = yes && test "$GCC" = yes; then
8229  case $archive_cmds in
8230  *'~'*)
8231    # FIXME: we may have to deal with multi-command sequences.
8232    ;;
8233  '$CC '*)
8234    # Test whether the compiler implicitly links with -lc since on some
8235    # systems, -lgcc has to come before -lc. If gcc already passes -lc
8236    # to ld, don't add -lc before -lgcc.
8237    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8238echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8239    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8240  echo $ECHO_N "(cached) $ECHO_C" >&6
8241else
8242  $rm conftest*
8243    echo 'static int dummy;' > conftest.$ac_ext
8244
8245    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8246  (eval $ac_compile) 2>&5
8247  ac_status=$?
8248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249  (exit $ac_status); }; then
8250      soname=conftest
8251      lib=conftest
8252      libobjs=conftest.$ac_objext
8253      deplibs=
8254      wl=$lt_cv_prog_cc_wl
8255      compiler_flags=-v
8256      linker_flags=-v
8257      verstring=
8258      output_objdir=.
8259      libname=conftest
8260      save_allow_undefined_flag=$allow_undefined_flag
8261      allow_undefined_flag=
8262      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8263  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8264  ac_status=$?
8265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266  (exit $ac_status); }
8267      then
8268	lt_cv_archive_cmds_need_lc=no
8269      else
8270	lt_cv_archive_cmds_need_lc=yes
8271      fi
8272      allow_undefined_flag=$save_allow_undefined_flag
8273    else
8274      cat conftest.err 1>&5
8275    fi
8276fi
8277
8278    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8279echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8280    ;;
8281  esac
8282fi
8283need_lc=${lt_cv_archive_cmds_need_lc-yes}
8284##
8285## END FIXME
8286
8287## FIXME: this should be a separate macro
8288##
8289# The second clause should only fire when bootstrapping the
8290# libtool distribution, otherwise you forgot to ship ltmain.sh
8291# with your package, and you will get complaints that there are
8292# no rules to generate ltmain.sh.
8293if test -f "$ltmain"; then
8294  :
8295else
8296  # If there is no Makefile yet, we rely on a make rule to execute
8297  # `config.status --recheck' to rerun these tests and create the
8298  # libtool script then.
8299  test -f Makefile && make "$ltmain"
8300fi
8301
8302if test -f "$ltmain"; then
8303  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8304  $rm -f "${ofile}T"
8305
8306  echo creating $ofile
8307
8308  # Now quote all the things that may contain metacharacters while being
8309  # careful not to overquote the AC_SUBSTed values.  We take copies of the
8310  # variables and quote the copies for generation of the libtool script.
8311  for var in echo old_CC old_CFLAGS SED \
8312    AR AR_FLAGS CC LD LN_S NM SHELL \
8313    reload_flag reload_cmds wl \
8314    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8315    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8316    library_names_spec soname_spec \
8317    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8318    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8319    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8320    old_striplib striplib file_magic_cmd export_symbols_cmds \
8321    deplibs_check_method allow_undefined_flag no_undefined_flag \
8322    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8323    global_symbol_to_c_name_address \
8324    hardcode_libdir_flag_spec hardcode_libdir_separator  \
8325    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8326    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8327
8328    case $var in
8329    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8330    old_postinstall_cmds | old_postuninstall_cmds | \
8331    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8332    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8333    postinstall_cmds | postuninstall_cmds | \
8334    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8335      # Double-quote double-evaled strings.
8336      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8337      ;;
8338    *)
8339      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8340      ;;
8341    esac
8342  done
8343
8344  cat <<__EOF__ > "${ofile}T"
8345#! $SHELL
8346
8347# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8348# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8349# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8350#
8351# Copyright (C) 1996-2000 Free Software Foundation, Inc.
8352# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8353#
8354# This program is free software; you can redistribute it and/or modify
8355# it under the terms of the GNU General Public License as published by
8356# the Free Software Foundation; either version 2 of the License, or
8357# (at your option) any later version.
8358#
8359# This program is distributed in the hope that it will be useful, but
8360# WITHOUT ANY WARRANTY; without even the implied warranty of
8361# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8362# General Public License for more details.
8363#
8364# You should have received a copy of the GNU General Public License
8365# along with this program; if not, write to the Free Software
8366# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8367#
8368# As a special exception to the GNU General Public License, if you
8369# distribute this file as part of a program that contains a
8370# configuration script generated by Autoconf, you may include it under
8371# the same distribution terms that you use for the rest of that program.
8372
8373# A sed that does not truncate output.
8374SED=$lt_SED
8375
8376# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8377Xsed="${SED} -e s/^X//"
8378
8379# The HP-UX ksh and POSIX shell print the target directory to stdout
8380# if CDPATH is set.
8381if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8382
8383# ### BEGIN LIBTOOL CONFIG
8384
8385# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8386
8387# Shell to use when invoking shell scripts.
8388SHELL=$lt_SHELL
8389
8390# Whether or not to build shared libraries.
8391build_libtool_libs=$enable_shared
8392
8393# Whether or not to build static libraries.
8394build_old_libs=$enable_static
8395
8396# Whether or not to add -lc for building shared libraries.
8397build_libtool_need_lc=$need_lc
8398
8399# Whether or not to optimize for fast installation.
8400fast_install=$enable_fast_install
8401
8402# The host system.
8403host_alias=$host_alias
8404host=$host
8405
8406# An echo program that does not interpret backslashes.
8407echo=$lt_echo
8408
8409# The archiver.
8410AR=$lt_AR
8411AR_FLAGS=$lt_AR_FLAGS
8412
8413# The default C compiler.
8414CC=$lt_CC
8415
8416# Is the compiler the GNU C compiler?
8417with_gcc=$GCC
8418
8419# The linker used to build libraries.
8420LD=$lt_LD
8421
8422# Whether we need hard or soft links.
8423LN_S=$lt_LN_S
8424
8425# A BSD-compatible nm program.
8426NM=$lt_NM
8427
8428# A symbol stripping program
8429STRIP=$STRIP
8430
8431# Used to examine libraries when file_magic_cmd begins "file"
8432MAGIC_CMD=$MAGIC_CMD
8433
8434# Used on cygwin: DLL creation program.
8435DLLTOOL="$DLLTOOL"
8436
8437# Used on cygwin: object dumper.
8438OBJDUMP="$OBJDUMP"
8439
8440# Used on cygwin: assembler.
8441AS="$AS"
8442
8443# The name of the directory that contains temporary libtool files.
8444objdir=$objdir
8445
8446# How to create reloadable object files.
8447reload_flag=$lt_reload_flag
8448reload_cmds=$lt_reload_cmds
8449
8450# How to pass a linker flag through the compiler.
8451wl=$lt_wl
8452
8453# Object file suffix (normally "o").
8454objext="$ac_objext"
8455
8456# Old archive suffix (normally "a").
8457libext="$libext"
8458
8459# Executable file suffix (normally "").
8460exeext="$exeext"
8461
8462# Additional compiler flags for building library objects.
8463pic_flag=$lt_pic_flag
8464pic_mode=$pic_mode
8465
8466# Does compiler simultaneously support -c and -o options?
8467compiler_c_o=$lt_compiler_c_o
8468
8469# Can we write directly to a .lo ?
8470compiler_o_lo=$lt_compiler_o_lo
8471
8472# Must we lock files when doing compilation ?
8473need_locks=$lt_need_locks
8474
8475# Do we need the lib prefix for modules?
8476need_lib_prefix=$need_lib_prefix
8477
8478# Do we need a version for libraries?
8479need_version=$need_version
8480
8481# Whether dlopen is supported.
8482dlopen_support=$enable_dlopen
8483
8484# Whether dlopen of programs is supported.
8485dlopen_self=$enable_dlopen_self
8486
8487# Whether dlopen of statically linked programs is supported.
8488dlopen_self_static=$enable_dlopen_self_static
8489
8490# Compiler flag to prevent dynamic linking.
8491link_static_flag=$lt_link_static_flag
8492
8493# Compiler flag to turn off builtin functions.
8494no_builtin_flag=$lt_no_builtin_flag
8495
8496# Compiler flag to allow reflexive dlopens.
8497export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8498
8499# Compiler flag to generate shared objects directly from archives.
8500whole_archive_flag_spec=$lt_whole_archive_flag_spec
8501
8502# Compiler flag to generate thread-safe objects.
8503thread_safe_flag_spec=$lt_thread_safe_flag_spec
8504
8505# Library versioning type.
8506version_type=$version_type
8507
8508# Format of library name prefix.
8509libname_spec=$lt_libname_spec
8510
8511# List of archive names.  First name is the real one, the rest are links.
8512# The last name is the one that the linker finds with -lNAME.
8513library_names_spec=$lt_library_names_spec
8514
8515# The coded name of the library, if different from the real name.
8516soname_spec=$lt_soname_spec
8517
8518# Commands used to build and install an old-style archive.
8519RANLIB=$lt_RANLIB
8520old_archive_cmds=$lt_old_archive_cmds
8521old_postinstall_cmds=$lt_old_postinstall_cmds
8522old_postuninstall_cmds=$lt_old_postuninstall_cmds
8523
8524# Create an old-style archive from a shared archive.
8525old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8526
8527# Create a temporary old-style archive to link instead of a shared archive.
8528old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8529
8530# Commands used to build and install a shared archive.
8531archive_cmds=$lt_archive_cmds
8532archive_expsym_cmds=$lt_archive_expsym_cmds
8533postinstall_cmds=$lt_postinstall_cmds
8534postuninstall_cmds=$lt_postuninstall_cmds
8535
8536# Commands to strip libraries.
8537old_striplib=$lt_old_striplib
8538striplib=$lt_striplib
8539
8540# Method to check whether dependent libraries are shared objects.
8541deplibs_check_method=$lt_deplibs_check_method
8542
8543# Command to use when deplibs_check_method == file_magic.
8544file_magic_cmd=$lt_file_magic_cmd
8545
8546# Flag that allows shared libraries with undefined symbols to be built.
8547allow_undefined_flag=$lt_allow_undefined_flag
8548
8549# Flag that forces no undefined symbols.
8550no_undefined_flag=$lt_no_undefined_flag
8551
8552# Commands used to finish a libtool library installation in a directory.
8553finish_cmds=$lt_finish_cmds
8554
8555# Same as above, but a single script fragment to be evaled but not shown.
8556finish_eval=$lt_finish_eval
8557
8558# Take the output of nm and produce a listing of raw symbols and C names.
8559global_symbol_pipe=$lt_global_symbol_pipe
8560
8561# Transform the output of nm in a proper C declaration
8562global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8563
8564# Transform the output of nm in a C name address pair
8565global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8566
8567# This is the shared library runtime path variable.
8568runpath_var=$runpath_var
8569
8570# This is the shared library path variable.
8571shlibpath_var=$shlibpath_var
8572
8573# Is shlibpath searched before the hard-coded library search path?
8574shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8575
8576# How to hardcode a shared library path into an executable.
8577hardcode_action=$hardcode_action
8578
8579# Whether we should hardcode library paths into libraries.
8580hardcode_into_libs=$hardcode_into_libs
8581
8582# Flag to hardcode \$libdir into a binary during linking.
8583# This must work even if \$libdir does not exist.
8584hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8585
8586# Whether we need a single -rpath flag with a separated argument.
8587hardcode_libdir_separator=$lt_hardcode_libdir_separator
8588
8589# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8590# resulting binary.
8591hardcode_direct=$hardcode_direct
8592
8593# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8594# resulting binary.
8595hardcode_minus_L=$hardcode_minus_L
8596
8597# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8598# the resulting binary.
8599hardcode_shlibpath_var=$hardcode_shlibpath_var
8600
8601# Variables whose values should be saved in libtool wrapper scripts and
8602# restored at relink time.
8603variables_saved_for_relink="$variables_saved_for_relink"
8604
8605# Whether libtool must link a program against all its dependency libraries.
8606link_all_deplibs=$link_all_deplibs
8607
8608# Compile-time system search path for libraries
8609sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8610
8611# Run-time system search path for libraries
8612sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8613
8614# Fix the shell variable \$srcfile for the compiler.
8615fix_srcfile_path="$fix_srcfile_path"
8616
8617# Set to yes if exported symbols are required.
8618always_export_symbols=$always_export_symbols
8619
8620# The commands to list exported symbols.
8621export_symbols_cmds=$lt_export_symbols_cmds
8622
8623# The commands to extract the exported symbol list from a shared archive.
8624extract_expsyms_cmds=$lt_extract_expsyms_cmds
8625
8626# Symbols that should not be listed in the preloaded symbols.
8627exclude_expsyms=$lt_exclude_expsyms
8628
8629# Symbols that must always be exported.
8630include_expsyms=$lt_include_expsyms
8631
8632# ### END LIBTOOL CONFIG
8633
8634__EOF__
8635
8636  case $host_os in
8637  aix3*)
8638    cat <<\EOF >> "${ofile}T"
8639
8640# AIX sometimes has problems with the GCC collect2 program.  For some
8641# reason, if we set the COLLECT_NAMES environment variable, the problems
8642# vanish in a puff of smoke.
8643if test "X${COLLECT_NAMES+set}" != Xset; then
8644  COLLECT_NAMES=
8645  export COLLECT_NAMES
8646fi
8647EOF
8648    ;;
8649  esac
8650
8651  case $host_os in
8652  cygwin* | mingw* | pw32* | os2*)
8653    cat <<'EOF' >> "${ofile}T"
8654      # This is a source program that is used to create dlls on Windows
8655      # Don't remove nor modify the starting and closing comments
8656# /* ltdll.c starts here */
8657# #define WIN32_LEAN_AND_MEAN
8658# #include <windows.h>
8659# #undef WIN32_LEAN_AND_MEAN
8660# #include <stdio.h>
8661#
8662# #ifndef __CYGWIN__
8663# #  ifdef __CYGWIN32__
8664# #    define __CYGWIN__ __CYGWIN32__
8665# #  endif
8666# #endif
8667#
8668# #ifdef __cplusplus
8669# extern "C" {
8670# #endif
8671# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8672# #ifdef __cplusplus
8673# }
8674# #endif
8675#
8676# #ifdef __CYGWIN__
8677# #include <cygwin/cygwin_dll.h>
8678# DECLARE_CYGWIN_DLL( DllMain );
8679# #endif
8680# HINSTANCE __hDllInstance_base;
8681#
8682# BOOL APIENTRY
8683# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8684# {
8685#   __hDllInstance_base = hInst;
8686#   return TRUE;
8687# }
8688# /* ltdll.c ends here */
8689	# This is a source program that is used to create import libraries
8690	# on Windows for dlls which lack them. Don't remove nor modify the
8691	# starting and closing comments
8692# /* impgen.c starts here */
8693# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8694#
8695#  This file is part of GNU libtool.
8696#
8697#  This program is free software; you can redistribute it and/or modify
8698#  it under the terms of the GNU General Public License as published by
8699#  the Free Software Foundation; either version 2 of the License, or
8700#  (at your option) any later version.
8701#
8702#  This program is distributed in the hope that it will be useful,
8703#  but WITHOUT ANY WARRANTY; without even the implied warranty of
8704#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8705#  GNU General Public License for more details.
8706#
8707#  You should have received a copy of the GNU General Public License
8708#  along with this program; if not, write to the Free Software
8709#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8710#  */
8711#
8712# #include <stdio.h>		/* for printf() */
8713# #include <unistd.h>		/* for open(), lseek(), read() */
8714# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
8715# #include <string.h>		/* for strdup() */
8716#
8717# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8718# #ifndef O_BINARY
8719# #define O_BINARY 0
8720# #endif
8721#
8722# static unsigned int
8723# pe_get16 (fd, offset)
8724#      int fd;
8725#      int offset;
8726# {
8727#   unsigned char b[2];
8728#   lseek (fd, offset, SEEK_SET);
8729#   read (fd, b, 2);
8730#   return b[0] + (b[1]<<8);
8731# }
8732#
8733# static unsigned int
8734# pe_get32 (fd, offset)
8735#     int fd;
8736#     int offset;
8737# {
8738#   unsigned char b[4];
8739#   lseek (fd, offset, SEEK_SET);
8740#   read (fd, b, 4);
8741#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8742# }
8743#
8744# static unsigned int
8745# pe_as32 (ptr)
8746#      void *ptr;
8747# {
8748#   unsigned char *b = ptr;
8749#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8750# }
8751#
8752# int
8753# main (argc, argv)
8754#     int argc;
8755#     char *argv[];
8756# {
8757#     int dll;
8758#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8759#     unsigned long export_rva, export_size, nsections, secptr, expptr;
8760#     unsigned long name_rvas, nexp;
8761#     unsigned char *expdata, *erva;
8762#     char *filename, *dll_name;
8763#
8764#     filename = argv[1];
8765#
8766#     dll = open(filename, O_RDONLY|O_BINARY);
8767#     if (dll < 1)
8768# 	return 1;
8769#
8770#     dll_name = filename;
8771#
8772#     for (i=0; filename[i]; i++)
8773# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8774# 	    dll_name = filename + i +1;
8775#
8776#     pe_header_offset = pe_get32 (dll, 0x3c);
8777#     opthdr_ofs = pe_header_offset + 4 + 20;
8778#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8779#
8780#     if (num_entries < 1) /* no exports */
8781# 	return 1;
8782#
8783#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8784#     export_size = pe_get32 (dll, opthdr_ofs + 100);
8785#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8786#     secptr = (pe_header_offset + 4 + 20 +
8787# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
8788#
8789#     expptr = 0;
8790#     for (i = 0; i < nsections; i++)
8791#     {
8792# 	char sname[8];
8793# 	unsigned long secptr1 = secptr + 40 * i;
8794# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8795# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8796# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8797# 	lseek(dll, secptr1, SEEK_SET);
8798# 	read(dll, sname, 8);
8799# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
8800# 	{
8801# 	    expptr = fptr + (export_rva - vaddr);
8802# 	    if (export_rva + export_size > vaddr + vsize)
8803# 		export_size = vsize - (export_rva - vaddr);
8804# 	    break;
8805# 	}
8806#     }
8807#
8808#     expdata = (unsigned char*)malloc(export_size);
8809#     lseek (dll, expptr, SEEK_SET);
8810#     read (dll, expdata, export_size);
8811#     erva = expdata - export_rva;
8812#
8813#     nexp = pe_as32 (expdata+24);
8814#     name_rvas = pe_as32 (expdata+32);
8815#
8816#     printf ("EXPORTS\n");
8817#     for (i = 0; i<nexp; i++)
8818#     {
8819# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8820# 	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8821#     }
8822#
8823#     return 0;
8824# }
8825# /* impgen.c ends here */
8826
8827EOF
8828    ;;
8829  esac
8830
8831  # We use sed instead of cat because bash on DJGPP gets confused if
8832  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8833  # text mode, it properly converts lines to CR/LF.  This bash problem
8834  # is reportedly fixed, but why not run on old versions too?
8835  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8836
8837  mv -f "${ofile}T" "$ofile" || \
8838    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8839  chmod +x "$ofile"
8840fi
8841##
8842## END FIXME
8843
8844
8845
8846
8847
8848# This can be used to rebuild libtool when needed
8849LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8850
8851# Always use our own libtool.
8852LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8853
8854# Prevent multiple expansion
8855
8856
8857
8858echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8859echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8860if test "${ac_cv_prog_cc_stdc+set}" = set; then
8861  echo $ECHO_N "(cached) $ECHO_C" >&6
8862else
8863  ac_cv_prog_cc_stdc=no
8864ac_save_CC=$CC
8865cat >conftest.$ac_ext <<_ACEOF
8866#line $LINENO "configure"
8867#include "confdefs.h"
8868#include <stdarg.h>
8869#include <stdio.h>
8870#include <sys/types.h>
8871#include <sys/stat.h>
8872/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
8873struct buf { int x; };
8874FILE * (*rcsopen) (struct buf *, struct stat *, int);
8875static char *e (p, i)
8876     char **p;
8877     int i;
8878{
8879  return p[i];
8880}
8881static char *f (char * (*g) (char **, int), char **p, ...)
8882{
8883  char *s;
8884  va_list v;
8885  va_start (v,p);
8886  s = g (p, va_arg (v,int));
8887  va_end (v);
8888  return s;
8889}
8890int test (int i, double x);
8891struct s1 {int (*f) (int a);};
8892struct s2 {int (*f) (double a);};
8893int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8894int argc;
8895char **argv;
8896#ifdef F77_DUMMY_MAIN
8897#  ifdef __cplusplus
8898     extern "C"
8899#  endif
8900   int F77_DUMMY_MAIN() { return 1; }
8901#endif
8902int
8903main ()
8904{
8905return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
8906  ;
8907  return 0;
8908}
8909_ACEOF
8910# Don't try gcc -ansi; that turns off useful extensions and
8911# breaks some systems' header files.
8912# AIX			-qlanglvl=ansi
8913# Ultrix and OSF/1	-std1
8914# HP-UX 10.20 and later	-Ae
8915# HP-UX older versions	-Aa -D_HPUX_SOURCE
8916# SVR4			-Xc -D__EXTENSIONS__
8917for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8918do
8919  CC="$ac_save_CC $ac_arg"
8920  rm -f conftest.$ac_objext
8921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8922  (eval $ac_compile) 2>&5
8923  ac_status=$?
8924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925  (exit $ac_status); } &&
8926         { ac_try='test -s conftest.$ac_objext'
8927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928  (eval $ac_try) 2>&5
8929  ac_status=$?
8930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931  (exit $ac_status); }; }; then
8932  ac_cv_prog_cc_stdc=$ac_arg
8933break
8934else
8935  echo "$as_me: failed program was:" >&5
8936cat conftest.$ac_ext >&5
8937fi
8938rm -f conftest.$ac_objext
8939done
8940rm -f conftest.$ac_ext conftest.$ac_objext
8941CC=$ac_save_CC
8942
8943fi
8944
8945case "x$ac_cv_prog_cc_stdc" in
8946  x|xno)
8947    echo "$as_me:$LINENO: result: none needed" >&5
8948echo "${ECHO_T}none needed" >&6 ;;
8949  *)
8950    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8951echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8952    CC="$CC $ac_cv_prog_cc_stdc" ;;
8953esac
8954
8955echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8956echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8957if test "${ac_cv_c_const+set}" = set; then
8958  echo $ECHO_N "(cached) $ECHO_C" >&6
8959else
8960  cat >conftest.$ac_ext <<_ACEOF
8961#line $LINENO "configure"
8962#include "confdefs.h"
8963
8964#ifdef F77_DUMMY_MAIN
8965#  ifdef __cplusplus
8966     extern "C"
8967#  endif
8968   int F77_DUMMY_MAIN() { return 1; }
8969#endif
8970int
8971main ()
8972{
8973/* FIXME: Include the comments suggested by Paul. */
8974#ifndef __cplusplus
8975  /* Ultrix mips cc rejects this.  */
8976  typedef int charset[2];
8977  const charset x;
8978  /* SunOS 4.1.1 cc rejects this.  */
8979  char const *const *ccp;
8980  char **p;
8981  /* NEC SVR4.0.2 mips cc rejects this.  */
8982  struct point {int x, y;};
8983  static struct point const zero = {0,0};
8984  /* AIX XL C 1.02.0.0 rejects this.
8985     It does not let you subtract one const X* pointer from another in
8986     an arm of an if-expression whose if-part is not a constant
8987     expression */
8988  const char *g = "string";
8989  ccp = &g + (g ? g-g : 0);
8990  /* HPUX 7.0 cc rejects these. */
8991  ++ccp;
8992  p = (char**) ccp;
8993  ccp = (char const *const *) p;
8994  { /* SCO 3.2v4 cc rejects this.  */
8995    char *t;
8996    char const *s = 0 ? (char *) 0 : (char const *) 0;
8997
8998    *t++ = 0;
8999  }
9000  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9001    int x[] = {25, 17};
9002    const int *foo = &x[0];
9003    ++foo;
9004  }
9005  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9006    typedef const int *iptr;
9007    iptr p = 0;
9008    ++p;
9009  }
9010  { /* AIX XL C 1.02.0.0 rejects this saying
9011       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9012    struct s { int j; const int *ap[3]; };
9013    struct s *b; b->j = 5;
9014  }
9015  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9016    const int foo = 10;
9017  }
9018#endif
9019
9020  ;
9021  return 0;
9022}
9023_ACEOF
9024rm -f conftest.$ac_objext
9025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9026  (eval $ac_compile) 2>&5
9027  ac_status=$?
9028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029  (exit $ac_status); } &&
9030         { ac_try='test -s conftest.$ac_objext'
9031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032  (eval $ac_try) 2>&5
9033  ac_status=$?
9034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035  (exit $ac_status); }; }; then
9036  ac_cv_c_const=yes
9037else
9038  echo "$as_me: failed program was:" >&5
9039cat conftest.$ac_ext >&5
9040ac_cv_c_const=no
9041fi
9042rm -f conftest.$ac_objext conftest.$ac_ext
9043fi
9044echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9045echo "${ECHO_T}$ac_cv_c_const" >&6
9046if test $ac_cv_c_const = no; then
9047
9048cat >>confdefs.h <<\_ACEOF
9049#define const
9050_ACEOF
9051
9052fi
9053
9054echo "$as_me:$LINENO: checking for inline" >&5
9055echo $ECHO_N "checking for inline... $ECHO_C" >&6
9056if test "${ac_cv_c_inline+set}" = set; then
9057  echo $ECHO_N "(cached) $ECHO_C" >&6
9058else
9059  ac_cv_c_inline=no
9060for ac_kw in inline __inline__ __inline; do
9061  cat >conftest.$ac_ext <<_ACEOF
9062#line $LINENO "configure"
9063#include "confdefs.h"
9064#ifndef __cplusplus
9065static $ac_kw int static_foo () {return 0; }
9066$ac_kw int foo () {return 0; }
9067#endif
9068
9069_ACEOF
9070rm -f conftest.$ac_objext
9071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072  (eval $ac_compile) 2>&5
9073  ac_status=$?
9074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075  (exit $ac_status); } &&
9076         { ac_try='test -s conftest.$ac_objext'
9077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078  (eval $ac_try) 2>&5
9079  ac_status=$?
9080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081  (exit $ac_status); }; }; then
9082  ac_cv_c_inline=$ac_kw; break
9083else
9084  echo "$as_me: failed program was:" >&5
9085cat conftest.$ac_ext >&5
9086fi
9087rm -f conftest.$ac_objext conftest.$ac_ext
9088done
9089
9090fi
9091echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9092echo "${ECHO_T}$ac_cv_c_inline" >&6
9093case $ac_cv_c_inline in
9094  inline | yes) ;;
9095  no)
9096cat >>confdefs.h <<\_ACEOF
9097#define inline
9098_ACEOF
9099 ;;
9100  *)  cat >>confdefs.h <<_ACEOF
9101#define inline $ac_cv_c_inline
9102_ACEOF
9103 ;;
9104esac
9105
9106echo "$as_me:$LINENO: checking for working volatile" >&5
9107echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9108if test "${ac_cv_c_volatile+set}" = set; then
9109  echo $ECHO_N "(cached) $ECHO_C" >&6
9110else
9111  cat >conftest.$ac_ext <<_ACEOF
9112#line $LINENO "configure"
9113#include "confdefs.h"
9114
9115#ifdef F77_DUMMY_MAIN
9116#  ifdef __cplusplus
9117     extern "C"
9118#  endif
9119   int F77_DUMMY_MAIN() { return 1; }
9120#endif
9121int
9122main ()
9123{
9124
9125volatile int x;
9126int * volatile y;
9127  ;
9128  return 0;
9129}
9130_ACEOF
9131rm -f conftest.$ac_objext
9132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9133  (eval $ac_compile) 2>&5
9134  ac_status=$?
9135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136  (exit $ac_status); } &&
9137         { ac_try='test -s conftest.$ac_objext'
9138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139  (eval $ac_try) 2>&5
9140  ac_status=$?
9141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142  (exit $ac_status); }; }; then
9143  ac_cv_c_volatile=yes
9144else
9145  echo "$as_me: failed program was:" >&5
9146cat conftest.$ac_ext >&5
9147ac_cv_c_volatile=no
9148fi
9149rm -f conftest.$ac_objext conftest.$ac_ext
9150fi
9151echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9152echo "${ECHO_T}$ac_cv_c_volatile" >&6
9153if test $ac_cv_c_volatile = no; then
9154
9155cat >>confdefs.h <<\_ACEOF
9156#define volatile
9157_ACEOF
9158
9159fi
9160
9161
9162echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9163echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9164if test "${ac_cv_header_stdc+set}" = set; then
9165  echo $ECHO_N "(cached) $ECHO_C" >&6
9166else
9167  cat >conftest.$ac_ext <<_ACEOF
9168#line $LINENO "configure"
9169#include "confdefs.h"
9170#include <stdlib.h>
9171#include <stdarg.h>
9172#include <string.h>
9173#include <float.h>
9174
9175_ACEOF
9176if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9177  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9178  ac_status=$?
9179  egrep -v '^ *\+' conftest.er1 >conftest.err
9180  rm -f conftest.er1
9181  cat conftest.err >&5
9182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183  (exit $ac_status); } >/dev/null; then
9184  if test -s conftest.err; then
9185    ac_cpp_err=$ac_c_preproc_warn_flag
9186  else
9187    ac_cpp_err=
9188  fi
9189else
9190  ac_cpp_err=yes
9191fi
9192if test -z "$ac_cpp_err"; then
9193  ac_cv_header_stdc=yes
9194else
9195  echo "$as_me: failed program was:" >&5
9196  cat conftest.$ac_ext >&5
9197  ac_cv_header_stdc=no
9198fi
9199rm -f conftest.err conftest.$ac_ext
9200
9201if test $ac_cv_header_stdc = yes; then
9202  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9203  cat >conftest.$ac_ext <<_ACEOF
9204#line $LINENO "configure"
9205#include "confdefs.h"
9206#include <string.h>
9207
9208_ACEOF
9209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9210  egrep "memchr" >/dev/null 2>&1; then
9211  :
9212else
9213  ac_cv_header_stdc=no
9214fi
9215rm -f conftest*
9216
9217fi
9218
9219if test $ac_cv_header_stdc = yes; then
9220  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9221  cat >conftest.$ac_ext <<_ACEOF
9222#line $LINENO "configure"
9223#include "confdefs.h"
9224#include <stdlib.h>
9225
9226_ACEOF
9227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9228  egrep "free" >/dev/null 2>&1; then
9229  :
9230else
9231  ac_cv_header_stdc=no
9232fi
9233rm -f conftest*
9234
9235fi
9236
9237if test $ac_cv_header_stdc = yes; then
9238  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9239  if test "$cross_compiling" = yes; then
9240  :
9241else
9242  cat >conftest.$ac_ext <<_ACEOF
9243#line $LINENO "configure"
9244#include "confdefs.h"
9245#include <ctype.h>
9246#if ((' ' & 0x0FF) == 0x020)
9247# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9248# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9249#else
9250# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9251                     || ('j' <= (c) && (c) <= 'r') \
9252                     || ('s' <= (c) && (c) <= 'z'))
9253# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9254#endif
9255
9256#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9257int
9258main ()
9259{
9260  int i;
9261  for (i = 0; i < 256; i++)
9262    if (XOR (islower (i), ISLOWER (i))
9263        || toupper (i) != TOUPPER (i))
9264      exit(2);
9265  exit (0);
9266}
9267_ACEOF
9268rm -f conftest$ac_exeext
9269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9270  (eval $ac_link) 2>&5
9271  ac_status=$?
9272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275  (eval $ac_try) 2>&5
9276  ac_status=$?
9277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278  (exit $ac_status); }; }; then
9279  :
9280else
9281  echo "$as_me: program exited with status $ac_status" >&5
9282echo "$as_me: failed program was:" >&5
9283cat conftest.$ac_ext >&5
9284( exit $ac_status )
9285ac_cv_header_stdc=no
9286fi
9287rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9288fi
9289fi
9290fi
9291echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9292echo "${ECHO_T}$ac_cv_header_stdc" >&6
9293if test $ac_cv_header_stdc = yes; then
9294
9295cat >>confdefs.h <<\_ACEOF
9296#define STDC_HEADERS 1
9297_ACEOF
9298
9299fi
9300
9301
9302
9303
9304
9305
9306ac_header_dirent=no
9307for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9308  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9309echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9310echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9311if eval "test \"\${$as_ac_Header+set}\" = set"; then
9312  echo $ECHO_N "(cached) $ECHO_C" >&6
9313else
9314  cat >conftest.$ac_ext <<_ACEOF
9315#line $LINENO "configure"
9316#include "confdefs.h"
9317#include <sys/types.h>
9318#include <$ac_hdr>
9319
9320#ifdef F77_DUMMY_MAIN
9321#  ifdef __cplusplus
9322     extern "C"
9323#  endif
9324   int F77_DUMMY_MAIN() { return 1; }
9325#endif
9326int
9327main ()
9328{
9329if ((DIR *) 0)
9330return 0;
9331  ;
9332  return 0;
9333}
9334_ACEOF
9335rm -f conftest.$ac_objext
9336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9337  (eval $ac_compile) 2>&5
9338  ac_status=$?
9339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340  (exit $ac_status); } &&
9341         { ac_try='test -s conftest.$ac_objext'
9342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343  (eval $ac_try) 2>&5
9344  ac_status=$?
9345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346  (exit $ac_status); }; }; then
9347  eval "$as_ac_Header=yes"
9348else
9349  echo "$as_me: failed program was:" >&5
9350cat conftest.$ac_ext >&5
9351eval "$as_ac_Header=no"
9352fi
9353rm -f conftest.$ac_objext conftest.$ac_ext
9354fi
9355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9356echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9357if test `eval echo '${'$as_ac_Header'}'` = yes; then
9358  cat >>confdefs.h <<_ACEOF
9359#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9360_ACEOF
9361
9362ac_header_dirent=$ac_hdr; break
9363fi
9364
9365done
9366# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9367if test $ac_header_dirent = dirent.h; then
9368  echo "$as_me:$LINENO: checking for library containing opendir" >&5
9369echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9370if test "${ac_cv_search_opendir+set}" = set; then
9371  echo $ECHO_N "(cached) $ECHO_C" >&6
9372else
9373  ac_func_search_save_LIBS=$LIBS
9374ac_cv_search_opendir=no
9375cat >conftest.$ac_ext <<_ACEOF
9376#line $LINENO "configure"
9377#include "confdefs.h"
9378
9379/* Override any gcc2 internal prototype to avoid an error.  */
9380#ifdef __cplusplus
9381extern "C"
9382#endif
9383/* We use char because int might match the return type of a gcc2
9384   builtin and then its argument prototype would still apply.  */
9385char opendir ();
9386#ifdef F77_DUMMY_MAIN
9387#  ifdef __cplusplus
9388     extern "C"
9389#  endif
9390   int F77_DUMMY_MAIN() { return 1; }
9391#endif
9392int
9393main ()
9394{
9395opendir ();
9396  ;
9397  return 0;
9398}
9399_ACEOF
9400rm -f conftest.$ac_objext conftest$ac_exeext
9401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9402  (eval $ac_link) 2>&5
9403  ac_status=$?
9404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405  (exit $ac_status); } &&
9406         { ac_try='test -s conftest$ac_exeext'
9407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408  (eval $ac_try) 2>&5
9409  ac_status=$?
9410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411  (exit $ac_status); }; }; then
9412  ac_cv_search_opendir="none required"
9413else
9414  echo "$as_me: failed program was:" >&5
9415cat conftest.$ac_ext >&5
9416fi
9417rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9418if test "$ac_cv_search_opendir" = no; then
9419  for ac_lib in dir; do
9420    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9421    cat >conftest.$ac_ext <<_ACEOF
9422#line $LINENO "configure"
9423#include "confdefs.h"
9424
9425/* Override any gcc2 internal prototype to avoid an error.  */
9426#ifdef __cplusplus
9427extern "C"
9428#endif
9429/* We use char because int might match the return type of a gcc2
9430   builtin and then its argument prototype would still apply.  */
9431char opendir ();
9432#ifdef F77_DUMMY_MAIN
9433#  ifdef __cplusplus
9434     extern "C"
9435#  endif
9436   int F77_DUMMY_MAIN() { return 1; }
9437#endif
9438int
9439main ()
9440{
9441opendir ();
9442  ;
9443  return 0;
9444}
9445_ACEOF
9446rm -f conftest.$ac_objext conftest$ac_exeext
9447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448  (eval $ac_link) 2>&5
9449  ac_status=$?
9450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451  (exit $ac_status); } &&
9452         { ac_try='test -s conftest$ac_exeext'
9453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454  (eval $ac_try) 2>&5
9455  ac_status=$?
9456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457  (exit $ac_status); }; }; then
9458  ac_cv_search_opendir="-l$ac_lib"
9459break
9460else
9461  echo "$as_me: failed program was:" >&5
9462cat conftest.$ac_ext >&5
9463fi
9464rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9465  done
9466fi
9467LIBS=$ac_func_search_save_LIBS
9468fi
9469echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9470echo "${ECHO_T}$ac_cv_search_opendir" >&6
9471if test "$ac_cv_search_opendir" != no; then
9472  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9473
9474fi
9475
9476else
9477  echo "$as_me:$LINENO: checking for library containing opendir" >&5
9478echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9479if test "${ac_cv_search_opendir+set}" = set; then
9480  echo $ECHO_N "(cached) $ECHO_C" >&6
9481else
9482  ac_func_search_save_LIBS=$LIBS
9483ac_cv_search_opendir=no
9484cat >conftest.$ac_ext <<_ACEOF
9485#line $LINENO "configure"
9486#include "confdefs.h"
9487
9488/* Override any gcc2 internal prototype to avoid an error.  */
9489#ifdef __cplusplus
9490extern "C"
9491#endif
9492/* We use char because int might match the return type of a gcc2
9493   builtin and then its argument prototype would still apply.  */
9494char opendir ();
9495#ifdef F77_DUMMY_MAIN
9496#  ifdef __cplusplus
9497     extern "C"
9498#  endif
9499   int F77_DUMMY_MAIN() { return 1; }
9500#endif
9501int
9502main ()
9503{
9504opendir ();
9505  ;
9506  return 0;
9507}
9508_ACEOF
9509rm -f conftest.$ac_objext conftest$ac_exeext
9510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9511  (eval $ac_link) 2>&5
9512  ac_status=$?
9513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514  (exit $ac_status); } &&
9515         { ac_try='test -s conftest$ac_exeext'
9516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517  (eval $ac_try) 2>&5
9518  ac_status=$?
9519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520  (exit $ac_status); }; }; then
9521  ac_cv_search_opendir="none required"
9522else
9523  echo "$as_me: failed program was:" >&5
9524cat conftest.$ac_ext >&5
9525fi
9526rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9527if test "$ac_cv_search_opendir" = no; then
9528  for ac_lib in x; do
9529    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9530    cat >conftest.$ac_ext <<_ACEOF
9531#line $LINENO "configure"
9532#include "confdefs.h"
9533
9534/* Override any gcc2 internal prototype to avoid an error.  */
9535#ifdef __cplusplus
9536extern "C"
9537#endif
9538/* We use char because int might match the return type of a gcc2
9539   builtin and then its argument prototype would still apply.  */
9540char opendir ();
9541#ifdef F77_DUMMY_MAIN
9542#  ifdef __cplusplus
9543     extern "C"
9544#  endif
9545   int F77_DUMMY_MAIN() { return 1; }
9546#endif
9547int
9548main ()
9549{
9550opendir ();
9551  ;
9552  return 0;
9553}
9554_ACEOF
9555rm -f conftest.$ac_objext conftest$ac_exeext
9556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9557  (eval $ac_link) 2>&5
9558  ac_status=$?
9559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560  (exit $ac_status); } &&
9561         { ac_try='test -s conftest$ac_exeext'
9562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563  (eval $ac_try) 2>&5
9564  ac_status=$?
9565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566  (exit $ac_status); }; }; then
9567  ac_cv_search_opendir="-l$ac_lib"
9568break
9569else
9570  echo "$as_me: failed program was:" >&5
9571cat conftest.$ac_ext >&5
9572fi
9573rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9574  done
9575fi
9576LIBS=$ac_func_search_save_LIBS
9577fi
9578echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9579echo "${ECHO_T}$ac_cv_search_opendir" >&6
9580if test "$ac_cv_search_opendir" != no; then
9581  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9582
9583fi
9584
9585fi
9586
9587echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9588echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9589if test "${ac_cv_header_sys_wait_h+set}" = set; then
9590  echo $ECHO_N "(cached) $ECHO_C" >&6
9591else
9592  cat >conftest.$ac_ext <<_ACEOF
9593#line $LINENO "configure"
9594#include "confdefs.h"
9595#include <sys/types.h>
9596#include <sys/wait.h>
9597#ifndef WEXITSTATUS
9598# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9599#endif
9600#ifndef WIFEXITED
9601# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9602#endif
9603
9604#ifdef F77_DUMMY_MAIN
9605#  ifdef __cplusplus
9606     extern "C"
9607#  endif
9608   int F77_DUMMY_MAIN() { return 1; }
9609#endif
9610int
9611main ()
9612{
9613  int s;
9614  wait (&s);
9615  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9616  ;
9617  return 0;
9618}
9619_ACEOF
9620rm -f conftest.$ac_objext
9621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9622  (eval $ac_compile) 2>&5
9623  ac_status=$?
9624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625  (exit $ac_status); } &&
9626         { ac_try='test -s conftest.$ac_objext'
9627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628  (eval $ac_try) 2>&5
9629  ac_status=$?
9630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631  (exit $ac_status); }; }; then
9632  ac_cv_header_sys_wait_h=yes
9633else
9634  echo "$as_me: failed program was:" >&5
9635cat conftest.$ac_ext >&5
9636ac_cv_header_sys_wait_h=no
9637fi
9638rm -f conftest.$ac_objext conftest.$ac_ext
9639fi
9640echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9641echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9642if test $ac_cv_header_sys_wait_h = yes; then
9643
9644cat >>confdefs.h <<\_ACEOF
9645#define HAVE_SYS_WAIT_H 1
9646_ACEOF
9647
9648fi
9649
9650echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9651echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9652if test "${ac_cv_header_time+set}" = set; then
9653  echo $ECHO_N "(cached) $ECHO_C" >&6
9654else
9655  cat >conftest.$ac_ext <<_ACEOF
9656#line $LINENO "configure"
9657#include "confdefs.h"
9658#include <sys/types.h>
9659#include <sys/time.h>
9660#include <time.h>
9661
9662#ifdef F77_DUMMY_MAIN
9663#  ifdef __cplusplus
9664     extern "C"
9665#  endif
9666   int F77_DUMMY_MAIN() { return 1; }
9667#endif
9668int
9669main ()
9670{
9671if ((struct tm *) 0)
9672return 0;
9673  ;
9674  return 0;
9675}
9676_ACEOF
9677rm -f conftest.$ac_objext
9678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9679  (eval $ac_compile) 2>&5
9680  ac_status=$?
9681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682  (exit $ac_status); } &&
9683         { ac_try='test -s conftest.$ac_objext'
9684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685  (eval $ac_try) 2>&5
9686  ac_status=$?
9687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688  (exit $ac_status); }; }; then
9689  ac_cv_header_time=yes
9690else
9691  echo "$as_me: failed program was:" >&5
9692cat conftest.$ac_ext >&5
9693ac_cv_header_time=no
9694fi
9695rm -f conftest.$ac_objext conftest.$ac_ext
9696fi
9697echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9698echo "${ECHO_T}$ac_cv_header_time" >&6
9699if test $ac_cv_header_time = yes; then
9700
9701cat >>confdefs.h <<\_ACEOF
9702#define TIME_WITH_SYS_TIME 1
9703_ACEOF
9704
9705fi
9706
9707
9708echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9709echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9710if test "${ac_cv_type_signal+set}" = set; then
9711  echo $ECHO_N "(cached) $ECHO_C" >&6
9712else
9713  cat >conftest.$ac_ext <<_ACEOF
9714#line $LINENO "configure"
9715#include "confdefs.h"
9716#include <sys/types.h>
9717#include <signal.h>
9718#ifdef signal
9719# undef signal
9720#endif
9721#ifdef __cplusplus
9722extern "C" void (*signal (int, void (*)(int)))(int);
9723#else
9724void (*signal ()) ();
9725#endif
9726
9727#ifdef F77_DUMMY_MAIN
9728#  ifdef __cplusplus
9729     extern "C"
9730#  endif
9731   int F77_DUMMY_MAIN() { return 1; }
9732#endif
9733int
9734main ()
9735{
9736int i;
9737  ;
9738  return 0;
9739}
9740_ACEOF
9741rm -f conftest.$ac_objext
9742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9743  (eval $ac_compile) 2>&5
9744  ac_status=$?
9745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746  (exit $ac_status); } &&
9747         { ac_try='test -s conftest.$ac_objext'
9748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749  (eval $ac_try) 2>&5
9750  ac_status=$?
9751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752  (exit $ac_status); }; }; then
9753  ac_cv_type_signal=void
9754else
9755  echo "$as_me: failed program was:" >&5
9756cat conftest.$ac_ext >&5
9757ac_cv_type_signal=int
9758fi
9759rm -f conftest.$ac_objext conftest.$ac_ext
9760fi
9761echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9762echo "${ECHO_T}$ac_cv_type_signal" >&6
9763
9764cat >>confdefs.h <<_ACEOF
9765#define RETSIGTYPE $ac_cv_type_signal
9766_ACEOF
9767
9768
9769echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9770echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9771if test "${ac_cv_type_uid_t+set}" = set; then
9772  echo $ECHO_N "(cached) $ECHO_C" >&6
9773else
9774  cat >conftest.$ac_ext <<_ACEOF
9775#line $LINENO "configure"
9776#include "confdefs.h"
9777#include <sys/types.h>
9778
9779_ACEOF
9780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9781  egrep "uid_t" >/dev/null 2>&1; then
9782  ac_cv_type_uid_t=yes
9783else
9784  ac_cv_type_uid_t=no
9785fi
9786rm -f conftest*
9787
9788fi
9789echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9790echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9791if test $ac_cv_type_uid_t = no; then
9792
9793cat >>confdefs.h <<\_ACEOF
9794#define uid_t int
9795_ACEOF
9796
9797
9798cat >>confdefs.h <<\_ACEOF
9799#define gid_t int
9800_ACEOF
9801
9802fi
9803
9804echo "$as_me:$LINENO: checking for size_t" >&5
9805echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9806if test "${ac_cv_type_size_t+set}" = set; then
9807  echo $ECHO_N "(cached) $ECHO_C" >&6
9808else
9809  cat >conftest.$ac_ext <<_ACEOF
9810#line $LINENO "configure"
9811#include "confdefs.h"
9812$ac_includes_default
9813#ifdef F77_DUMMY_MAIN
9814#  ifdef __cplusplus
9815     extern "C"
9816#  endif
9817   int F77_DUMMY_MAIN() { return 1; }
9818#endif
9819int
9820main ()
9821{
9822if ((size_t *) 0)
9823  return 0;
9824if (sizeof (size_t))
9825  return 0;
9826  ;
9827  return 0;
9828}
9829_ACEOF
9830rm -f conftest.$ac_objext
9831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9832  (eval $ac_compile) 2>&5
9833  ac_status=$?
9834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835  (exit $ac_status); } &&
9836         { ac_try='test -s conftest.$ac_objext'
9837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838  (eval $ac_try) 2>&5
9839  ac_status=$?
9840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841  (exit $ac_status); }; }; then
9842  ac_cv_type_size_t=yes
9843else
9844  echo "$as_me: failed program was:" >&5
9845cat conftest.$ac_ext >&5
9846ac_cv_type_size_t=no
9847fi
9848rm -f conftest.$ac_objext conftest.$ac_ext
9849fi
9850echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9851echo "${ECHO_T}$ac_cv_type_size_t" >&6
9852if test $ac_cv_type_size_t = yes; then
9853  :
9854else
9855
9856cat >>confdefs.h <<_ACEOF
9857#define size_t unsigned
9858_ACEOF
9859
9860fi
9861
9862echo "$as_me:$LINENO: checking for mode_t" >&5
9863echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
9864if test "${ac_cv_type_mode_t+set}" = set; then
9865  echo $ECHO_N "(cached) $ECHO_C" >&6
9866else
9867  cat >conftest.$ac_ext <<_ACEOF
9868#line $LINENO "configure"
9869#include "confdefs.h"
9870$ac_includes_default
9871#ifdef F77_DUMMY_MAIN
9872#  ifdef __cplusplus
9873     extern "C"
9874#  endif
9875   int F77_DUMMY_MAIN() { return 1; }
9876#endif
9877int
9878main ()
9879{
9880if ((mode_t *) 0)
9881  return 0;
9882if (sizeof (mode_t))
9883  return 0;
9884  ;
9885  return 0;
9886}
9887_ACEOF
9888rm -f conftest.$ac_objext
9889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9890  (eval $ac_compile) 2>&5
9891  ac_status=$?
9892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893  (exit $ac_status); } &&
9894         { ac_try='test -s conftest.$ac_objext'
9895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896  (eval $ac_try) 2>&5
9897  ac_status=$?
9898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899  (exit $ac_status); }; }; then
9900  ac_cv_type_mode_t=yes
9901else
9902  echo "$as_me: failed program was:" >&5
9903cat conftest.$ac_ext >&5
9904ac_cv_type_mode_t=no
9905fi
9906rm -f conftest.$ac_objext conftest.$ac_ext
9907fi
9908echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
9909echo "${ECHO_T}$ac_cv_type_mode_t" >&6
9910if test $ac_cv_type_mode_t = yes; then
9911  :
9912else
9913
9914cat >>confdefs.h <<_ACEOF
9915#define mode_t int
9916_ACEOF
9917
9918fi
9919
9920echo "$as_me:$LINENO: checking for off_t" >&5
9921echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9922if test "${ac_cv_type_off_t+set}" = set; then
9923  echo $ECHO_N "(cached) $ECHO_C" >&6
9924else
9925  cat >conftest.$ac_ext <<_ACEOF
9926#line $LINENO "configure"
9927#include "confdefs.h"
9928$ac_includes_default
9929#ifdef F77_DUMMY_MAIN
9930#  ifdef __cplusplus
9931     extern "C"
9932#  endif
9933   int F77_DUMMY_MAIN() { return 1; }
9934#endif
9935int
9936main ()
9937{
9938if ((off_t *) 0)
9939  return 0;
9940if (sizeof (off_t))
9941  return 0;
9942  ;
9943  return 0;
9944}
9945_ACEOF
9946rm -f conftest.$ac_objext
9947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9948  (eval $ac_compile) 2>&5
9949  ac_status=$?
9950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951  (exit $ac_status); } &&
9952         { ac_try='test -s conftest.$ac_objext'
9953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954  (eval $ac_try) 2>&5
9955  ac_status=$?
9956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957  (exit $ac_status); }; }; then
9958  ac_cv_type_off_t=yes
9959else
9960  echo "$as_me: failed program was:" >&5
9961cat conftest.$ac_ext >&5
9962ac_cv_type_off_t=no
9963fi
9964rm -f conftest.$ac_objext conftest.$ac_ext
9965fi
9966echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9967echo "${ECHO_T}$ac_cv_type_off_t" >&6
9968if test $ac_cv_type_off_t = yes; then
9969  :
9970else
9971
9972cat >>confdefs.h <<_ACEOF
9973#define off_t long
9974_ACEOF
9975
9976fi
9977
9978echo "$as_me:$LINENO: checking for pid_t" >&5
9979echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9980if test "${ac_cv_type_pid_t+set}" = set; then
9981  echo $ECHO_N "(cached) $ECHO_C" >&6
9982else
9983  cat >conftest.$ac_ext <<_ACEOF
9984#line $LINENO "configure"
9985#include "confdefs.h"
9986$ac_includes_default
9987#ifdef F77_DUMMY_MAIN
9988#  ifdef __cplusplus
9989     extern "C"
9990#  endif
9991   int F77_DUMMY_MAIN() { return 1; }
9992#endif
9993int
9994main ()
9995{
9996if ((pid_t *) 0)
9997  return 0;
9998if (sizeof (pid_t))
9999  return 0;
10000  ;
10001  return 0;
10002}
10003_ACEOF
10004rm -f conftest.$ac_objext
10005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10006  (eval $ac_compile) 2>&5
10007  ac_status=$?
10008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009  (exit $ac_status); } &&
10010         { ac_try='test -s conftest.$ac_objext'
10011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012  (eval $ac_try) 2>&5
10013  ac_status=$?
10014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015  (exit $ac_status); }; }; then
10016  ac_cv_type_pid_t=yes
10017else
10018  echo "$as_me: failed program was:" >&5
10019cat conftest.$ac_ext >&5
10020ac_cv_type_pid_t=no
10021fi
10022rm -f conftest.$ac_objext conftest.$ac_ext
10023fi
10024echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10025echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10026if test $ac_cv_type_pid_t = yes; then
10027  :
10028else
10029
10030cat >>confdefs.h <<_ACEOF
10031#define pid_t int
10032_ACEOF
10033
10034fi
10035
10036
10037
10038echo "$as_me:$LINENO: checking for fd_set" >&5
10039echo $ECHO_N "checking for fd_set... $ECHO_C" >&6
10040if test "${ac_cv_type_fd_set+set}" = set; then
10041  echo $ECHO_N "(cached) $ECHO_C" >&6
10042else
10043  cat >conftest.$ac_ext <<_ACEOF
10044#line $LINENO "configure"
10045#include "confdefs.h"
10046
10047#include <sys/types.h>
10048#include <sys/time.h>
10049#include <sys/unistd.h>
10050
10051
10052#ifdef F77_DUMMY_MAIN
10053#  ifdef __cplusplus
10054     extern "C"
10055#  endif
10056   int F77_DUMMY_MAIN() { return 1; }
10057#endif
10058int
10059main ()
10060{
10061if ((fd_set *) 0)
10062  return 0;
10063if (sizeof (fd_set))
10064  return 0;
10065  ;
10066  return 0;
10067}
10068_ACEOF
10069rm -f conftest.$ac_objext
10070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10071  (eval $ac_compile) 2>&5
10072  ac_status=$?
10073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074  (exit $ac_status); } &&
10075         { ac_try='test -s conftest.$ac_objext'
10076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077  (eval $ac_try) 2>&5
10078  ac_status=$?
10079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080  (exit $ac_status); }; }; then
10081  ac_cv_type_fd_set=yes
10082else
10083  echo "$as_me: failed program was:" >&5
10084cat conftest.$ac_ext >&5
10085ac_cv_type_fd_set=no
10086fi
10087rm -f conftest.$ac_objext conftest.$ac_ext
10088fi
10089echo "$as_me:$LINENO: result: $ac_cv_type_fd_set" >&5
10090echo "${ECHO_T}$ac_cv_type_fd_set" >&6
10091if test $ac_cv_type_fd_set = yes; then
10092
10093cat >>confdefs.h <<_ACEOF
10094#define HAVE_FD_SET 1
10095_ACEOF
10096
10097
10098fi
10099
10100
10101echo "$as_me:$LINENO: checking for socklen_t" >&5
10102echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10103if test "${ac_cv_type_socklen_t+set}" = set; then
10104  echo $ECHO_N "(cached) $ECHO_C" >&6
10105else
10106  cat >conftest.$ac_ext <<_ACEOF
10107#line $LINENO "configure"
10108#include "confdefs.h"
10109
10110#include <sys/types.h>
10111#include <sys/socket.h>
10112
10113
10114#ifdef F77_DUMMY_MAIN
10115#  ifdef __cplusplus
10116     extern "C"
10117#  endif
10118   int F77_DUMMY_MAIN() { return 1; }
10119#endif
10120int
10121main ()
10122{
10123if ((socklen_t *) 0)
10124  return 0;
10125if (sizeof (socklen_t))
10126  return 0;
10127  ;
10128  return 0;
10129}
10130_ACEOF
10131rm -f conftest.$ac_objext
10132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10133  (eval $ac_compile) 2>&5
10134  ac_status=$?
10135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136  (exit $ac_status); } &&
10137         { ac_try='test -s conftest.$ac_objext'
10138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139  (eval $ac_try) 2>&5
10140  ac_status=$?
10141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142  (exit $ac_status); }; }; then
10143  ac_cv_type_socklen_t=yes
10144else
10145  echo "$as_me: failed program was:" >&5
10146cat conftest.$ac_ext >&5
10147ac_cv_type_socklen_t=no
10148fi
10149rm -f conftest.$ac_objext conftest.$ac_ext
10150fi
10151echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
10152echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
10153if test $ac_cv_type_socklen_t = yes; then
10154
10155cat >>confdefs.h <<_ACEOF
10156#define HAVE_SOCKLEN_T 1
10157_ACEOF
10158
10159
10160fi
10161
10162
10163echo "$as_me:$LINENO: checking checking for long long" >&5
10164echo $ECHO_N "checking checking for long long... $ECHO_C" >&6
10165if test "${ac_cv_long_long+set}" = set; then
10166  echo $ECHO_N "(cached) $ECHO_C" >&6
10167else
10168
10169cat >conftest.$ac_ext <<_ACEOF
10170#line $LINENO "configure"
10171#include "confdefs.h"
10172
10173#include <stdio.h>
10174#include <sys/types.h>
10175
10176#ifdef F77_DUMMY_MAIN
10177#  ifdef __cplusplus
10178     extern "C"
10179#  endif
10180   int F77_DUMMY_MAIN() { return 1; }
10181#endif
10182int
10183main ()
10184{
10185printf("%d",sizeof(long long));
10186  ;
10187  return 0;
10188}
10189_ACEOF
10190rm -f conftest.$ac_objext
10191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10192  (eval $ac_compile) 2>&5
10193  ac_status=$?
10194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195  (exit $ac_status); } &&
10196         { ac_try='test -s conftest.$ac_objext'
10197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198  (eval $ac_try) 2>&5
10199  ac_status=$?
10200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201  (exit $ac_status); }; }; then
10202  ac_cv_long_long=yes
10203else
10204  echo "$as_me: failed program was:" >&5
10205cat conftest.$ac_ext >&5
10206ac_cv_long_long=no
10207fi
10208rm -f conftest.$ac_objext conftest.$ac_ext
10209
10210fi
10211echo "$as_me:$LINENO: result: $ac_cv_long_long" >&5
10212echo "${ECHO_T}$ac_cv_long_long" >&6
10213if test $ac_cv_long_long = yes; then
10214
10215cat >>confdefs.h <<\_ACEOF
10216#define HAVE_LONG_LONG 1
10217_ACEOF
10218
10219fi
10220
10221echo "$as_me:$LINENO: checking checking for long double" >&5
10222echo $ECHO_N "checking checking for long double... $ECHO_C" >&6
10223if test "${ac_cv_long_double+set}" = set; then
10224  echo $ECHO_N "(cached) $ECHO_C" >&6
10225else
10226
10227cat >conftest.$ac_ext <<_ACEOF
10228#line $LINENO "configure"
10229#include "confdefs.h"
10230
10231#include <stdio.h>
10232#include <sys/types.h>
10233
10234#ifdef F77_DUMMY_MAIN
10235#  ifdef __cplusplus
10236     extern "C"
10237#  endif
10238   int F77_DUMMY_MAIN() { return 1; }
10239#endif
10240int
10241main ()
10242{
10243printf("%d",sizeof(long double));
10244  ;
10245  return 0;
10246}
10247_ACEOF
10248rm -f conftest.$ac_objext
10249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10250  (eval $ac_compile) 2>&5
10251  ac_status=$?
10252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253  (exit $ac_status); } &&
10254         { ac_try='test -s conftest.$ac_objext'
10255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256  (eval $ac_try) 2>&5
10257  ac_status=$?
10258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259  (exit $ac_status); }; }; then
10260  ac_cv_long_double=yes
10261else
10262  echo "$as_me: failed program was:" >&5
10263cat conftest.$ac_ext >&5
10264ac_cv_long_double=no
10265fi
10266rm -f conftest.$ac_objext conftest.$ac_ext
10267
10268fi
10269echo "$as_me:$LINENO: result: $ac_cv_long_double" >&5
10270echo "${ECHO_T}$ac_cv_long_double" >&6
10271if test $ac_cv_long_double = yes; then
10272
10273cat >>confdefs.h <<\_ACEOF
10274#define HAVE_LONG_DOUBLE 1
10275_ACEOF
10276
10277fi
10278
10279echo "$as_me:$LINENO: checking checking for quad_t" >&5
10280echo $ECHO_N "checking checking for quad_t... $ECHO_C" >&6
10281if test "${ac_cv_quad_t+set}" = set; then
10282  echo $ECHO_N "(cached) $ECHO_C" >&6
10283else
10284
10285cat >conftest.$ac_ext <<_ACEOF
10286#line $LINENO "configure"
10287#include "confdefs.h"
10288
10289#include <stdio.h>
10290#include <sys/types.h>
10291
10292#ifdef F77_DUMMY_MAIN
10293#  ifdef __cplusplus
10294     extern "C"
10295#  endif
10296   int F77_DUMMY_MAIN() { return 1; }
10297#endif
10298int
10299main ()
10300{
10301printf("%d",sizeof(quad_t));
10302  ;
10303  return 0;
10304}
10305_ACEOF
10306rm -f conftest.$ac_objext
10307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10308  (eval $ac_compile) 2>&5
10309  ac_status=$?
10310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311  (exit $ac_status); } &&
10312         { ac_try='test -s conftest.$ac_objext'
10313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314  (eval $ac_try) 2>&5
10315  ac_status=$?
10316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317  (exit $ac_status); }; }; then
10318  ac_cv_quad_t=yes
10319else
10320  echo "$as_me: failed program was:" >&5
10321cat conftest.$ac_ext >&5
10322ac_cv_quad_t=no
10323fi
10324rm -f conftest.$ac_objext conftest.$ac_ext
10325
10326fi
10327echo "$as_me:$LINENO: result: $ac_cv_quad_t" >&5
10328echo "${ECHO_T}$ac_cv_quad_t" >&6
10329if test $ac_cv_quad_t = yes; then
10330
10331cat >>confdefs.h <<\_ACEOF
10332#define HAVE_QUAD_T 1
10333_ACEOF
10334
10335fi
10336
10337
10338checklibs=
10339case $target_os in
10340	 *linux* )
10341		no_resolv_lib=yes;
10342		case $release in
10343		2.2.1[0-5]* )
10344
10345cat >>confdefs.h <<\_ACEOF
10346#define SETUID_CHECK 1
10347_ACEOF
10348
10349			{ echo "$as_me:$LINENO: WARNING: Kernel may have SETUID compromise.  Update kernel" >&5
10350echo "$as_me: WARNING: Kernel may have SETUID compromise.  Update kernel" >&2;}
10351			;;
10352		esac
10353		CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
10354		CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64"
10355		;;
10356	 *bsdi* )
10357		LDCC=shlicc
10358				echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
10359echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
10360if test "${ac_cv_lib_util_setproctitle+set}" = set; then
10361  echo $ECHO_N "(cached) $ECHO_C" >&6
10362else
10363  ac_check_lib_save_LIBS=$LIBS
10364LIBS="-lutil  $LIBS"
10365cat >conftest.$ac_ext <<_ACEOF
10366#line $LINENO "configure"
10367#include "confdefs.h"
10368
10369/* Override any gcc2 internal prototype to avoid an error.  */
10370#ifdef __cplusplus
10371extern "C"
10372#endif
10373/* We use char because int might match the return type of a gcc2
10374   builtin and then its argument prototype would still apply.  */
10375char setproctitle ();
10376#ifdef F77_DUMMY_MAIN
10377#  ifdef __cplusplus
10378     extern "C"
10379#  endif
10380   int F77_DUMMY_MAIN() { return 1; }
10381#endif
10382int
10383main ()
10384{
10385setproctitle ();
10386  ;
10387  return 0;
10388}
10389_ACEOF
10390rm -f conftest.$ac_objext conftest$ac_exeext
10391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10392  (eval $ac_link) 2>&5
10393  ac_status=$?
10394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395  (exit $ac_status); } &&
10396         { ac_try='test -s conftest$ac_exeext'
10397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398  (eval $ac_try) 2>&5
10399  ac_status=$?
10400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401  (exit $ac_status); }; }; then
10402  ac_cv_lib_util_setproctitle=yes
10403else
10404  echo "$as_me: failed program was:" >&5
10405cat conftest.$ac_ext >&5
10406ac_cv_lib_util_setproctitle=no
10407fi
10408rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10409LIBS=$ac_check_lib_save_LIBS
10410fi
10411echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
10412echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
10413if test $ac_cv_lib_util_setproctitle = yes; then
10414  LIBS="-lutil $LIBS"
10415fi
10416
10417		;;
10418	 *bsd* )
10419				echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
10420echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
10421if test "${ac_cv_lib_util_setproctitle+set}" = set; then
10422  echo $ECHO_N "(cached) $ECHO_C" >&6
10423else
10424  ac_check_lib_save_LIBS=$LIBS
10425LIBS="-lutil  $LIBS"
10426cat >conftest.$ac_ext <<_ACEOF
10427#line $LINENO "configure"
10428#include "confdefs.h"
10429
10430/* Override any gcc2 internal prototype to avoid an error.  */
10431#ifdef __cplusplus
10432extern "C"
10433#endif
10434/* We use char because int might match the return type of a gcc2
10435   builtin and then its argument prototype would still apply.  */
10436char setproctitle ();
10437#ifdef F77_DUMMY_MAIN
10438#  ifdef __cplusplus
10439     extern "C"
10440#  endif
10441   int F77_DUMMY_MAIN() { return 1; }
10442#endif
10443int
10444main ()
10445{
10446setproctitle ();
10447  ;
10448  return 0;
10449}
10450_ACEOF
10451rm -f conftest.$ac_objext conftest$ac_exeext
10452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10453  (eval $ac_link) 2>&5
10454  ac_status=$?
10455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456  (exit $ac_status); } &&
10457         { ac_try='test -s conftest$ac_exeext'
10458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459  (eval $ac_try) 2>&5
10460  ac_status=$?
10461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462  (exit $ac_status); }; }; then
10463  ac_cv_lib_util_setproctitle=yes
10464else
10465  echo "$as_me: failed program was:" >&5
10466cat conftest.$ac_ext >&5
10467ac_cv_lib_util_setproctitle=no
10468fi
10469rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10470LIBS=$ac_check_lib_save_LIBS
10471fi
10472echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
10473echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
10474if test $ac_cv_lib_util_setproctitle = yes; then
10475  LIBS="-lutil $LIBS"
10476fi
10477
10478		;;
10479	 *unicos* )
10480		checklibs=no
10481		;;
10482	 *irix6* )
10483		checklibs=no
10484
10485cat >>confdefs.h <<_ACEOF
10486#define IRIX $version
10487_ACEOF
10488
10489		;;
10490	 *irix5* )
10491		checklibs=no
10492
10493cat >>confdefs.h <<\_ACEOF
10494#define HAVE_BROKEN_TIOCEXCL 1
10495_ACEOF
10496
10497
10498cat >>confdefs.h <<\_ACEOF
10499#define SVR4 1
10500_ACEOF
10501
10502
10503cat >>confdefs.h <<_ACEOF
10504#define IRIX $version
10505_ACEOF
10506
10507		;;
10508	 *irix* )
10509		checklibs=no
10510
10511cat >>confdefs.h <<_ACEOF
10512#define IRIX $version
10513_ACEOF
10514
10515		;;
10516	*solaris* )
10517
10518cat >>confdefs.h <<\_ACEOF
10519#define SVR4 1
10520_ACEOF
10521
10522
10523cat >>confdefs.h <<_ACEOF
10524#define SOLARIS $version
10525_ACEOF
10526
10527		no_resolv_lib=yes;
10528		;;
10529	*hpux* )
10530
10531cat >>confdefs.h <<\_ACEOF
10532#define _HPUX_SOURCE 1
10533_ACEOF
10534
10535		CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE=1"
10536		CFLAGS="$CFLAGS -D_HPUX_SOURCE=1"
10537
10538cat >>confdefs.h <<_ACEOF
10539#define HPUX $version
10540_ACEOF
10541
10542		;;
10543	*sunos* )
10544
10545cat >>confdefs.h <<_ACEOF
10546#define SUNOS $version
10547_ACEOF
10548
10549		;;
10550	osf* )
10551
10552cat >>confdefs.h <<_ACEOF
10553#define DECALPHA $version
10554_ACEOF
10555
10556		if test "$ac_cv_c_compiler_gnu" != yes; then
10557			CPPFLAGS="$CPPFLAGS -std";
10558			CFLAGS="$CFLAGS -std";
10559        else
10560            CPPFLAGS="$CPPFLAGS -DAES_SOURCE"
10561            CFLAGS="$CFLAGS -DAES_SOURCE"
10562		fi
10563		;;
10564	*mips-sni* )
10565		;;
10566esac
10567echo "$as_me:$LINENO: result: using CPPFLAGS=\"${CPPFLAGS}\", CFLAGS=\"${CFLAGS}\"" >&5
10568echo "${ECHO_T}using CPPFLAGS=\"${CPPFLAGS}\", CFLAGS=\"${CFLAGS}\"" >&6
10569
10570
10571
10572
10573
10574
10575
10576
10577for ac_header in a_out.h aouthdr.h ar.h arpa/inet.h arpa/nameser.h assert.h
10578do
10579as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10580if eval "test \"\${$as_ac_Header+set}\" = set"; then
10581  echo "$as_me:$LINENO: checking for $ac_header" >&5
10582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10583if eval "test \"\${$as_ac_Header+set}\" = set"; then
10584  echo $ECHO_N "(cached) $ECHO_C" >&6
10585fi
10586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10587echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10588else
10589  # Is the header compilable?
10590echo "$as_me:$LINENO: checking $ac_header usability" >&5
10591echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10592cat >conftest.$ac_ext <<_ACEOF
10593#line $LINENO "configure"
10594#include "confdefs.h"
10595$ac_includes_default
10596#include <$ac_header>
10597_ACEOF
10598rm -f conftest.$ac_objext
10599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10600  (eval $ac_compile) 2>&5
10601  ac_status=$?
10602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603  (exit $ac_status); } &&
10604         { ac_try='test -s conftest.$ac_objext'
10605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10606  (eval $ac_try) 2>&5
10607  ac_status=$?
10608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609  (exit $ac_status); }; }; then
10610  ac_header_compiler=yes
10611else
10612  echo "$as_me: failed program was:" >&5
10613cat conftest.$ac_ext >&5
10614ac_header_compiler=no
10615fi
10616rm -f conftest.$ac_objext conftest.$ac_ext
10617echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10618echo "${ECHO_T}$ac_header_compiler" >&6
10619
10620# Is the header present?
10621echo "$as_me:$LINENO: checking $ac_header presence" >&5
10622echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10623cat >conftest.$ac_ext <<_ACEOF
10624#line $LINENO "configure"
10625#include "confdefs.h"
10626#include <$ac_header>
10627_ACEOF
10628if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10629  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10630  ac_status=$?
10631  egrep -v '^ *\+' conftest.er1 >conftest.err
10632  rm -f conftest.er1
10633  cat conftest.err >&5
10634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635  (exit $ac_status); } >/dev/null; then
10636  if test -s conftest.err; then
10637    ac_cpp_err=$ac_c_preproc_warn_flag
10638  else
10639    ac_cpp_err=
10640  fi
10641else
10642  ac_cpp_err=yes
10643fi
10644if test -z "$ac_cpp_err"; then
10645  ac_header_preproc=yes
10646else
10647  echo "$as_me: failed program was:" >&5
10648  cat conftest.$ac_ext >&5
10649  ac_header_preproc=no
10650fi
10651rm -f conftest.err conftest.$ac_ext
10652echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10653echo "${ECHO_T}$ac_header_preproc" >&6
10654
10655# So?  What about this header?
10656case $ac_header_compiler:$ac_header_preproc in
10657  yes:no )
10658    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10659echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10660    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10661echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10662  no:yes )
10663    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10664echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10665    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10666echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10667    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10668echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10669esac
10670echo "$as_me:$LINENO: checking for $ac_header" >&5
10671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10672if eval "test \"\${$as_ac_Header+set}\" = set"; then
10673  echo $ECHO_N "(cached) $ECHO_C" >&6
10674else
10675  eval "$as_ac_Header=$ac_header_preproc"
10676fi
10677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10679
10680fi
10681if test `eval echo '${'$as_ac_Header'}'` = yes; then
10682  cat >>confdefs.h <<_ACEOF
10683#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10684_ACEOF
10685
10686fi
10687
10688done
10689
10690
10691
10692
10693
10694
10695
10696for ac_header in com_err.h compat.h ctype.h ctypes.h dirent.h errno.h
10697do
10698as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10699if eval "test \"\${$as_ac_Header+set}\" = set"; then
10700  echo "$as_me:$LINENO: checking for $ac_header" >&5
10701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10702if eval "test \"\${$as_ac_Header+set}\" = set"; then
10703  echo $ECHO_N "(cached) $ECHO_C" >&6
10704fi
10705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10707else
10708  # Is the header compilable?
10709echo "$as_me:$LINENO: checking $ac_header usability" >&5
10710echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10711cat >conftest.$ac_ext <<_ACEOF
10712#line $LINENO "configure"
10713#include "confdefs.h"
10714$ac_includes_default
10715#include <$ac_header>
10716_ACEOF
10717rm -f conftest.$ac_objext
10718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10719  (eval $ac_compile) 2>&5
10720  ac_status=$?
10721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722  (exit $ac_status); } &&
10723         { ac_try='test -s conftest.$ac_objext'
10724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725  (eval $ac_try) 2>&5
10726  ac_status=$?
10727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728  (exit $ac_status); }; }; then
10729  ac_header_compiler=yes
10730else
10731  echo "$as_me: failed program was:" >&5
10732cat conftest.$ac_ext >&5
10733ac_header_compiler=no
10734fi
10735rm -f conftest.$ac_objext conftest.$ac_ext
10736echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10737echo "${ECHO_T}$ac_header_compiler" >&6
10738
10739# Is the header present?
10740echo "$as_me:$LINENO: checking $ac_header presence" >&5
10741echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10742cat >conftest.$ac_ext <<_ACEOF
10743#line $LINENO "configure"
10744#include "confdefs.h"
10745#include <$ac_header>
10746_ACEOF
10747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10748  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10749  ac_status=$?
10750  egrep -v '^ *\+' conftest.er1 >conftest.err
10751  rm -f conftest.er1
10752  cat conftest.err >&5
10753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754  (exit $ac_status); } >/dev/null; then
10755  if test -s conftest.err; then
10756    ac_cpp_err=$ac_c_preproc_warn_flag
10757  else
10758    ac_cpp_err=
10759  fi
10760else
10761  ac_cpp_err=yes
10762fi
10763if test -z "$ac_cpp_err"; then
10764  ac_header_preproc=yes
10765else
10766  echo "$as_me: failed program was:" >&5
10767  cat conftest.$ac_ext >&5
10768  ac_header_preproc=no
10769fi
10770rm -f conftest.err conftest.$ac_ext
10771echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10772echo "${ECHO_T}$ac_header_preproc" >&6
10773
10774# So?  What about this header?
10775case $ac_header_compiler:$ac_header_preproc in
10776  yes:no )
10777    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10778echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10779    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10781  no:yes )
10782    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10783echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10784    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10785echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10786    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10787echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10788esac
10789echo "$as_me:$LINENO: checking for $ac_header" >&5
10790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10791if eval "test \"\${$as_ac_Header+set}\" = set"; then
10792  echo $ECHO_N "(cached) $ECHO_C" >&6
10793else
10794  eval "$as_ac_Header=$ac_header_preproc"
10795fi
10796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10798
10799fi
10800if test `eval echo '${'$as_ac_Header'}'` = yes; then
10801  cat >>confdefs.h <<_ACEOF
10802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10803_ACEOF
10804
10805fi
10806
10807done
10808
10809
10810
10811
10812
10813
10814
10815for ac_header in exechdr.h fcntl.h filehdr.h grp.h limits.h locale.h
10816do
10817as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10818if eval "test \"\${$as_ac_Header+set}\" = set"; then
10819  echo "$as_me:$LINENO: checking for $ac_header" >&5
10820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10821if eval "test \"\${$as_ac_Header+set}\" = set"; then
10822  echo $ECHO_N "(cached) $ECHO_C" >&6
10823fi
10824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10825echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10826else
10827  # Is the header compilable?
10828echo "$as_me:$LINENO: checking $ac_header usability" >&5
10829echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10830cat >conftest.$ac_ext <<_ACEOF
10831#line $LINENO "configure"
10832#include "confdefs.h"
10833$ac_includes_default
10834#include <$ac_header>
10835_ACEOF
10836rm -f conftest.$ac_objext
10837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10838  (eval $ac_compile) 2>&5
10839  ac_status=$?
10840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841  (exit $ac_status); } &&
10842         { ac_try='test -s conftest.$ac_objext'
10843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844  (eval $ac_try) 2>&5
10845  ac_status=$?
10846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847  (exit $ac_status); }; }; then
10848  ac_header_compiler=yes
10849else
10850  echo "$as_me: failed program was:" >&5
10851cat conftest.$ac_ext >&5
10852ac_header_compiler=no
10853fi
10854rm -f conftest.$ac_objext conftest.$ac_ext
10855echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10856echo "${ECHO_T}$ac_header_compiler" >&6
10857
10858# Is the header present?
10859echo "$as_me:$LINENO: checking $ac_header presence" >&5
10860echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10861cat >conftest.$ac_ext <<_ACEOF
10862#line $LINENO "configure"
10863#include "confdefs.h"
10864#include <$ac_header>
10865_ACEOF
10866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10867  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10868  ac_status=$?
10869  egrep -v '^ *\+' conftest.er1 >conftest.err
10870  rm -f conftest.er1
10871  cat conftest.err >&5
10872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873  (exit $ac_status); } >/dev/null; then
10874  if test -s conftest.err; then
10875    ac_cpp_err=$ac_c_preproc_warn_flag
10876  else
10877    ac_cpp_err=
10878  fi
10879else
10880  ac_cpp_err=yes
10881fi
10882if test -z "$ac_cpp_err"; then
10883  ac_header_preproc=yes
10884else
10885  echo "$as_me: failed program was:" >&5
10886  cat conftest.$ac_ext >&5
10887  ac_header_preproc=no
10888fi
10889rm -f conftest.err conftest.$ac_ext
10890echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10891echo "${ECHO_T}$ac_header_preproc" >&6
10892
10893# So?  What about this header?
10894case $ac_header_compiler:$ac_header_preproc in
10895  yes:no )
10896    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10897echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10898    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10900  no:yes )
10901    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10902echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10903    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10904echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10905    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10907esac
10908echo "$as_me:$LINENO: checking for $ac_header" >&5
10909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10910if eval "test \"\${$as_ac_Header+set}\" = set"; then
10911  echo $ECHO_N "(cached) $ECHO_C" >&6
10912else
10913  eval "$as_ac_Header=$ac_header_preproc"
10914fi
10915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10917
10918fi
10919if test `eval echo '${'$as_ac_Header'}'` = yes; then
10920  cat >>confdefs.h <<_ACEOF
10921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10922_ACEOF
10923
10924fi
10925
10926done
10927
10928
10929
10930
10931
10932
10933
10934for ac_header in machine/vmparam.h malloc.h memory.h ndir.h netdb.h netinet/in.h
10935do
10936as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10937if eval "test \"\${$as_ac_Header+set}\" = set"; then
10938  echo "$as_me:$LINENO: checking for $ac_header" >&5
10939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10940if eval "test \"\${$as_ac_Header+set}\" = set"; then
10941  echo $ECHO_N "(cached) $ECHO_C" >&6
10942fi
10943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10945else
10946  # Is the header compilable?
10947echo "$as_me:$LINENO: checking $ac_header usability" >&5
10948echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10949cat >conftest.$ac_ext <<_ACEOF
10950#line $LINENO "configure"
10951#include "confdefs.h"
10952$ac_includes_default
10953#include <$ac_header>
10954_ACEOF
10955rm -f conftest.$ac_objext
10956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10957  (eval $ac_compile) 2>&5
10958  ac_status=$?
10959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960  (exit $ac_status); } &&
10961         { ac_try='test -s conftest.$ac_objext'
10962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963  (eval $ac_try) 2>&5
10964  ac_status=$?
10965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966  (exit $ac_status); }; }; then
10967  ac_header_compiler=yes
10968else
10969  echo "$as_me: failed program was:" >&5
10970cat conftest.$ac_ext >&5
10971ac_header_compiler=no
10972fi
10973rm -f conftest.$ac_objext conftest.$ac_ext
10974echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10975echo "${ECHO_T}$ac_header_compiler" >&6
10976
10977# Is the header present?
10978echo "$as_me:$LINENO: checking $ac_header presence" >&5
10979echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10980cat >conftest.$ac_ext <<_ACEOF
10981#line $LINENO "configure"
10982#include "confdefs.h"
10983#include <$ac_header>
10984_ACEOF
10985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10986  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10987  ac_status=$?
10988  egrep -v '^ *\+' conftest.er1 >conftest.err
10989  rm -f conftest.er1
10990  cat conftest.err >&5
10991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992  (exit $ac_status); } >/dev/null; then
10993  if test -s conftest.err; then
10994    ac_cpp_err=$ac_c_preproc_warn_flag
10995  else
10996    ac_cpp_err=
10997  fi
10998else
10999  ac_cpp_err=yes
11000fi
11001if test -z "$ac_cpp_err"; then
11002  ac_header_preproc=yes
11003else
11004  echo "$as_me: failed program was:" >&5
11005  cat conftest.$ac_ext >&5
11006  ac_header_preproc=no
11007fi
11008rm -f conftest.err conftest.$ac_ext
11009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11010echo "${ECHO_T}$ac_header_preproc" >&6
11011
11012# So?  What about this header?
11013case $ac_header_compiler:$ac_header_preproc in
11014  yes:no )
11015    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11017    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11018echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11019  no:yes )
11020    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11021echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11022    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11023echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11024    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11025echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11026esac
11027echo "$as_me:$LINENO: checking for $ac_header" >&5
11028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11029if eval "test \"\${$as_ac_Header+set}\" = set"; then
11030  echo $ECHO_N "(cached) $ECHO_C" >&6
11031else
11032  eval "$as_ac_Header=$ac_header_preproc"
11033fi
11034echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11035echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11036
11037fi
11038if test `eval echo '${'$as_ac_Header'}'` = yes; then
11039  cat >>confdefs.h <<_ACEOF
11040#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11041_ACEOF
11042
11043fi
11044
11045done
11046
11047
11048
11049
11050
11051
11052
11053for ac_header in nlist.h pwd.h reloc.h resolv.h select.h setjmp.h
11054do
11055as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11056if eval "test \"\${$as_ac_Header+set}\" = set"; then
11057  echo "$as_me:$LINENO: checking for $ac_header" >&5
11058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11059if eval "test \"\${$as_ac_Header+set}\" = set"; then
11060  echo $ECHO_N "(cached) $ECHO_C" >&6
11061fi
11062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11063echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11064else
11065  # Is the header compilable?
11066echo "$as_me:$LINENO: checking $ac_header usability" >&5
11067echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11068cat >conftest.$ac_ext <<_ACEOF
11069#line $LINENO "configure"
11070#include "confdefs.h"
11071$ac_includes_default
11072#include <$ac_header>
11073_ACEOF
11074rm -f conftest.$ac_objext
11075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11076  (eval $ac_compile) 2>&5
11077  ac_status=$?
11078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079  (exit $ac_status); } &&
11080         { ac_try='test -s conftest.$ac_objext'
11081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082  (eval $ac_try) 2>&5
11083  ac_status=$?
11084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085  (exit $ac_status); }; }; then
11086  ac_header_compiler=yes
11087else
11088  echo "$as_me: failed program was:" >&5
11089cat conftest.$ac_ext >&5
11090ac_header_compiler=no
11091fi
11092rm -f conftest.$ac_objext conftest.$ac_ext
11093echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11094echo "${ECHO_T}$ac_header_compiler" >&6
11095
11096# Is the header present?
11097echo "$as_me:$LINENO: checking $ac_header presence" >&5
11098echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11099cat >conftest.$ac_ext <<_ACEOF
11100#line $LINENO "configure"
11101#include "confdefs.h"
11102#include <$ac_header>
11103_ACEOF
11104if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11105  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11106  ac_status=$?
11107  egrep -v '^ *\+' conftest.er1 >conftest.err
11108  rm -f conftest.er1
11109  cat conftest.err >&5
11110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111  (exit $ac_status); } >/dev/null; then
11112  if test -s conftest.err; then
11113    ac_cpp_err=$ac_c_preproc_warn_flag
11114  else
11115    ac_cpp_err=
11116  fi
11117else
11118  ac_cpp_err=yes
11119fi
11120if test -z "$ac_cpp_err"; then
11121  ac_header_preproc=yes
11122else
11123  echo "$as_me: failed program was:" >&5
11124  cat conftest.$ac_ext >&5
11125  ac_header_preproc=no
11126fi
11127rm -f conftest.err conftest.$ac_ext
11128echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11129echo "${ECHO_T}$ac_header_preproc" >&6
11130
11131# So?  What about this header?
11132case $ac_header_compiler:$ac_header_preproc in
11133  yes:no )
11134    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11135echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11136    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11137echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11138  no:yes )
11139    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11141    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11142echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11143    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11144echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11145esac
11146echo "$as_me:$LINENO: checking for $ac_header" >&5
11147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11148if eval "test \"\${$as_ac_Header+set}\" = set"; then
11149  echo $ECHO_N "(cached) $ECHO_C" >&6
11150else
11151  eval "$as_ac_Header=$ac_header_preproc"
11152fi
11153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11155
11156fi
11157if test `eval echo '${'$as_ac_Header'}'` = yes; then
11158  cat >>confdefs.h <<_ACEOF
11159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11160_ACEOF
11161
11162fi
11163
11164done
11165
11166
11167
11168
11169
11170
11171
11172for ac_header in sgs.h sgtty.h signal.h stab.h stdarg.h stdio.h
11173do
11174as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11175if eval "test \"\${$as_ac_Header+set}\" = set"; then
11176  echo "$as_me:$LINENO: checking for $ac_header" >&5
11177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11178if eval "test \"\${$as_ac_Header+set}\" = set"; then
11179  echo $ECHO_N "(cached) $ECHO_C" >&6
11180fi
11181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11182echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11183else
11184  # Is the header compilable?
11185echo "$as_me:$LINENO: checking $ac_header usability" >&5
11186echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11187cat >conftest.$ac_ext <<_ACEOF
11188#line $LINENO "configure"
11189#include "confdefs.h"
11190$ac_includes_default
11191#include <$ac_header>
11192_ACEOF
11193rm -f conftest.$ac_objext
11194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11195  (eval $ac_compile) 2>&5
11196  ac_status=$?
11197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198  (exit $ac_status); } &&
11199         { ac_try='test -s conftest.$ac_objext'
11200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201  (eval $ac_try) 2>&5
11202  ac_status=$?
11203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204  (exit $ac_status); }; }; then
11205  ac_header_compiler=yes
11206else
11207  echo "$as_me: failed program was:" >&5
11208cat conftest.$ac_ext >&5
11209ac_header_compiler=no
11210fi
11211rm -f conftest.$ac_objext conftest.$ac_ext
11212echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11213echo "${ECHO_T}$ac_header_compiler" >&6
11214
11215# Is the header present?
11216echo "$as_me:$LINENO: checking $ac_header presence" >&5
11217echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11218cat >conftest.$ac_ext <<_ACEOF
11219#line $LINENO "configure"
11220#include "confdefs.h"
11221#include <$ac_header>
11222_ACEOF
11223if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11224  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11225  ac_status=$?
11226  egrep -v '^ *\+' conftest.er1 >conftest.err
11227  rm -f conftest.er1
11228  cat conftest.err >&5
11229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230  (exit $ac_status); } >/dev/null; then
11231  if test -s conftest.err; then
11232    ac_cpp_err=$ac_c_preproc_warn_flag
11233  else
11234    ac_cpp_err=
11235  fi
11236else
11237  ac_cpp_err=yes
11238fi
11239if test -z "$ac_cpp_err"; then
11240  ac_header_preproc=yes
11241else
11242  echo "$as_me: failed program was:" >&5
11243  cat conftest.$ac_ext >&5
11244  ac_header_preproc=no
11245fi
11246rm -f conftest.err conftest.$ac_ext
11247echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11248echo "${ECHO_T}$ac_header_preproc" >&6
11249
11250# So?  What about this header?
11251case $ac_header_compiler:$ac_header_preproc in
11252  yes:no )
11253    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11254echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11255    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11257  no:yes )
11258    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11259echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11260    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11261echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11262    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11263echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11264esac
11265echo "$as_me:$LINENO: checking for $ac_header" >&5
11266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11267if eval "test \"\${$as_ac_Header+set}\" = set"; then
11268  echo $ECHO_N "(cached) $ECHO_C" >&6
11269else
11270  eval "$as_ac_Header=$ac_header_preproc"
11271fi
11272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11273echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11274
11275fi
11276if test `eval echo '${'$as_ac_Header'}'` = yes; then
11277  cat >>confdefs.h <<_ACEOF
11278#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11279_ACEOF
11280
11281fi
11282
11283done
11284
11285
11286
11287
11288
11289
11290
11291for ac_header in stdlib.h string.h strings.h sys/dir.h sys/exec.h sys/exechdr.h
11292do
11293as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11294if eval "test \"\${$as_ac_Header+set}\" = set"; then
11295  echo "$as_me:$LINENO: checking for $ac_header" >&5
11296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11297if eval "test \"\${$as_ac_Header+set}\" = set"; then
11298  echo $ECHO_N "(cached) $ECHO_C" >&6
11299fi
11300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11302else
11303  # Is the header compilable?
11304echo "$as_me:$LINENO: checking $ac_header usability" >&5
11305echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11306cat >conftest.$ac_ext <<_ACEOF
11307#line $LINENO "configure"
11308#include "confdefs.h"
11309$ac_includes_default
11310#include <$ac_header>
11311_ACEOF
11312rm -f conftest.$ac_objext
11313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11314  (eval $ac_compile) 2>&5
11315  ac_status=$?
11316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317  (exit $ac_status); } &&
11318         { ac_try='test -s conftest.$ac_objext'
11319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320  (eval $ac_try) 2>&5
11321  ac_status=$?
11322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323  (exit $ac_status); }; }; then
11324  ac_header_compiler=yes
11325else
11326  echo "$as_me: failed program was:" >&5
11327cat conftest.$ac_ext >&5
11328ac_header_compiler=no
11329fi
11330rm -f conftest.$ac_objext conftest.$ac_ext
11331echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11332echo "${ECHO_T}$ac_header_compiler" >&6
11333
11334# Is the header present?
11335echo "$as_me:$LINENO: checking $ac_header presence" >&5
11336echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11337cat >conftest.$ac_ext <<_ACEOF
11338#line $LINENO "configure"
11339#include "confdefs.h"
11340#include <$ac_header>
11341_ACEOF
11342if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11343  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11344  ac_status=$?
11345  egrep -v '^ *\+' conftest.er1 >conftest.err
11346  rm -f conftest.er1
11347  cat conftest.err >&5
11348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349  (exit $ac_status); } >/dev/null; then
11350  if test -s conftest.err; then
11351    ac_cpp_err=$ac_c_preproc_warn_flag
11352  else
11353    ac_cpp_err=
11354  fi
11355else
11356  ac_cpp_err=yes
11357fi
11358if test -z "$ac_cpp_err"; then
11359  ac_header_preproc=yes
11360else
11361  echo "$as_me: failed program was:" >&5
11362  cat conftest.$ac_ext >&5
11363  ac_header_preproc=no
11364fi
11365rm -f conftest.err conftest.$ac_ext
11366echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11367echo "${ECHO_T}$ac_header_preproc" >&6
11368
11369# So?  What about this header?
11370case $ac_header_compiler:$ac_header_preproc in
11371  yes:no )
11372    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11373echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11374    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11375echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11376  no:yes )
11377    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11378echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11379    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11380echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11381    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11382echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11383esac
11384echo "$as_me:$LINENO: checking for $ac_header" >&5
11385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11386if eval "test \"\${$as_ac_Header+set}\" = set"; then
11387  echo $ECHO_N "(cached) $ECHO_C" >&6
11388else
11389  eval "$as_ac_Header=$ac_header_preproc"
11390fi
11391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11393
11394fi
11395if test `eval echo '${'$as_ac_Header'}'` = yes; then
11396  cat >>confdefs.h <<_ACEOF
11397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11398_ACEOF
11399
11400fi
11401
11402done
11403
11404
11405
11406
11407
11408
11409
11410for ac_header in sys/fcntl.h sys/file.h sys/ioctl.h sys/loader.h sys/mount.h sys/ndir.h
11411do
11412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11413if eval "test \"\${$as_ac_Header+set}\" = set"; then
11414  echo "$as_me:$LINENO: checking for $ac_header" >&5
11415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11416if eval "test \"\${$as_ac_Header+set}\" = set"; then
11417  echo $ECHO_N "(cached) $ECHO_C" >&6
11418fi
11419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11421else
11422  # Is the header compilable?
11423echo "$as_me:$LINENO: checking $ac_header usability" >&5
11424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11425cat >conftest.$ac_ext <<_ACEOF
11426#line $LINENO "configure"
11427#include "confdefs.h"
11428$ac_includes_default
11429#include <$ac_header>
11430_ACEOF
11431rm -f conftest.$ac_objext
11432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11433  (eval $ac_compile) 2>&5
11434  ac_status=$?
11435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436  (exit $ac_status); } &&
11437         { ac_try='test -s conftest.$ac_objext'
11438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439  (eval $ac_try) 2>&5
11440  ac_status=$?
11441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442  (exit $ac_status); }; }; then
11443  ac_header_compiler=yes
11444else
11445  echo "$as_me: failed program was:" >&5
11446cat conftest.$ac_ext >&5
11447ac_header_compiler=no
11448fi
11449rm -f conftest.$ac_objext conftest.$ac_ext
11450echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11451echo "${ECHO_T}$ac_header_compiler" >&6
11452
11453# Is the header present?
11454echo "$as_me:$LINENO: checking $ac_header presence" >&5
11455echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11456cat >conftest.$ac_ext <<_ACEOF
11457#line $LINENO "configure"
11458#include "confdefs.h"
11459#include <$ac_header>
11460_ACEOF
11461if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11462  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11463  ac_status=$?
11464  egrep -v '^ *\+' conftest.er1 >conftest.err
11465  rm -f conftest.er1
11466  cat conftest.err >&5
11467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468  (exit $ac_status); } >/dev/null; then
11469  if test -s conftest.err; then
11470    ac_cpp_err=$ac_c_preproc_warn_flag
11471  else
11472    ac_cpp_err=
11473  fi
11474else
11475  ac_cpp_err=yes
11476fi
11477if test -z "$ac_cpp_err"; then
11478  ac_header_preproc=yes
11479else
11480  echo "$as_me: failed program was:" >&5
11481  cat conftest.$ac_ext >&5
11482  ac_header_preproc=no
11483fi
11484rm -f conftest.err conftest.$ac_ext
11485echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11486echo "${ECHO_T}$ac_header_preproc" >&6
11487
11488# So?  What about this header?
11489case $ac_header_compiler:$ac_header_preproc in
11490  yes:no )
11491    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11492echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11493    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11494echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11495  no:yes )
11496    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11497echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11498    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11499echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11500    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11501echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11502esac
11503echo "$as_me:$LINENO: checking for $ac_header" >&5
11504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11505if eval "test \"\${$as_ac_Header+set}\" = set"; then
11506  echo $ECHO_N "(cached) $ECHO_C" >&6
11507else
11508  eval "$as_ac_Header=$ac_header_preproc"
11509fi
11510echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11511echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11512
11513fi
11514if test `eval echo '${'$as_ac_Header'}'` = yes; then
11515  cat >>confdefs.h <<_ACEOF
11516#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11517_ACEOF
11518
11519fi
11520
11521done
11522
11523
11524
11525
11526
11527
11528
11529for ac_header in sys/param.h sys/pstat.h sys/resource.h sys/select.h sys/signal.h sys/socket.h
11530do
11531as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11532if eval "test \"\${$as_ac_Header+set}\" = set"; then
11533  echo "$as_me:$LINENO: checking for $ac_header" >&5
11534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11535if eval "test \"\${$as_ac_Header+set}\" = set"; then
11536  echo $ECHO_N "(cached) $ECHO_C" >&6
11537fi
11538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11539echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11540else
11541  # Is the header compilable?
11542echo "$as_me:$LINENO: checking $ac_header usability" >&5
11543echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11544cat >conftest.$ac_ext <<_ACEOF
11545#line $LINENO "configure"
11546#include "confdefs.h"
11547$ac_includes_default
11548#include <$ac_header>
11549_ACEOF
11550rm -f conftest.$ac_objext
11551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11552  (eval $ac_compile) 2>&5
11553  ac_status=$?
11554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555  (exit $ac_status); } &&
11556         { ac_try='test -s conftest.$ac_objext'
11557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558  (eval $ac_try) 2>&5
11559  ac_status=$?
11560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561  (exit $ac_status); }; }; then
11562  ac_header_compiler=yes
11563else
11564  echo "$as_me: failed program was:" >&5
11565cat conftest.$ac_ext >&5
11566ac_header_compiler=no
11567fi
11568rm -f conftest.$ac_objext conftest.$ac_ext
11569echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11570echo "${ECHO_T}$ac_header_compiler" >&6
11571
11572# Is the header present?
11573echo "$as_me:$LINENO: checking $ac_header presence" >&5
11574echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11575cat >conftest.$ac_ext <<_ACEOF
11576#line $LINENO "configure"
11577#include "confdefs.h"
11578#include <$ac_header>
11579_ACEOF
11580if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11581  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11582  ac_status=$?
11583  egrep -v '^ *\+' conftest.er1 >conftest.err
11584  rm -f conftest.er1
11585  cat conftest.err >&5
11586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587  (exit $ac_status); } >/dev/null; then
11588  if test -s conftest.err; then
11589    ac_cpp_err=$ac_c_preproc_warn_flag
11590  else
11591    ac_cpp_err=
11592  fi
11593else
11594  ac_cpp_err=yes
11595fi
11596if test -z "$ac_cpp_err"; then
11597  ac_header_preproc=yes
11598else
11599  echo "$as_me: failed program was:" >&5
11600  cat conftest.$ac_ext >&5
11601  ac_header_preproc=no
11602fi
11603rm -f conftest.err conftest.$ac_ext
11604echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11605echo "${ECHO_T}$ac_header_preproc" >&6
11606
11607# So?  What about this header?
11608case $ac_header_compiler:$ac_header_preproc in
11609  yes:no )
11610    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11611echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11612    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11613echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11614  no:yes )
11615    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11616echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11617    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11618echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11619    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11620echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11621esac
11622echo "$as_me:$LINENO: checking for $ac_header" >&5
11623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11624if eval "test \"\${$as_ac_Header+set}\" = set"; then
11625  echo $ECHO_N "(cached) $ECHO_C" >&6
11626else
11627  eval "$as_ac_Header=$ac_header_preproc"
11628fi
11629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11630echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11631
11632fi
11633if test `eval echo '${'$as_ac_Header'}'` = yes; then
11634  cat >>confdefs.h <<_ACEOF
11635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11636_ACEOF
11637
11638fi
11639
11640done
11641
11642
11643
11644
11645
11646
11647
11648for ac_header in sys/stat.h sys/statfs.h sys/statvfs.h sys/syslog.h sys/systeminfo.h sys/termio.h
11649do
11650as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11651if eval "test \"\${$as_ac_Header+set}\" = set"; then
11652  echo "$as_me:$LINENO: checking for $ac_header" >&5
11653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11654if eval "test \"\${$as_ac_Header+set}\" = set"; then
11655  echo $ECHO_N "(cached) $ECHO_C" >&6
11656fi
11657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11658echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11659else
11660  # Is the header compilable?
11661echo "$as_me:$LINENO: checking $ac_header usability" >&5
11662echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11663cat >conftest.$ac_ext <<_ACEOF
11664#line $LINENO "configure"
11665#include "confdefs.h"
11666$ac_includes_default
11667#include <$ac_header>
11668_ACEOF
11669rm -f conftest.$ac_objext
11670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11671  (eval $ac_compile) 2>&5
11672  ac_status=$?
11673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674  (exit $ac_status); } &&
11675         { ac_try='test -s conftest.$ac_objext'
11676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677  (eval $ac_try) 2>&5
11678  ac_status=$?
11679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680  (exit $ac_status); }; }; then
11681  ac_header_compiler=yes
11682else
11683  echo "$as_me: failed program was:" >&5
11684cat conftest.$ac_ext >&5
11685ac_header_compiler=no
11686fi
11687rm -f conftest.$ac_objext conftest.$ac_ext
11688echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11689echo "${ECHO_T}$ac_header_compiler" >&6
11690
11691# Is the header present?
11692echo "$as_me:$LINENO: checking $ac_header presence" >&5
11693echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11694cat >conftest.$ac_ext <<_ACEOF
11695#line $LINENO "configure"
11696#include "confdefs.h"
11697#include <$ac_header>
11698_ACEOF
11699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11700  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11701  ac_status=$?
11702  egrep -v '^ *\+' conftest.er1 >conftest.err
11703  rm -f conftest.er1
11704  cat conftest.err >&5
11705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706  (exit $ac_status); } >/dev/null; then
11707  if test -s conftest.err; then
11708    ac_cpp_err=$ac_c_preproc_warn_flag
11709  else
11710    ac_cpp_err=
11711  fi
11712else
11713  ac_cpp_err=yes
11714fi
11715if test -z "$ac_cpp_err"; then
11716  ac_header_preproc=yes
11717else
11718  echo "$as_me: failed program was:" >&5
11719  cat conftest.$ac_ext >&5
11720  ac_header_preproc=no
11721fi
11722rm -f conftest.err conftest.$ac_ext
11723echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11724echo "${ECHO_T}$ac_header_preproc" >&6
11725
11726# So?  What about this header?
11727case $ac_header_compiler:$ac_header_preproc in
11728  yes:no )
11729    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11730echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11731    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11732echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11733  no:yes )
11734    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11735echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11736    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11737echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11738    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11739echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11740esac
11741echo "$as_me:$LINENO: checking for $ac_header" >&5
11742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11743if eval "test \"\${$as_ac_Header+set}\" = set"; then
11744  echo $ECHO_N "(cached) $ECHO_C" >&6
11745else
11746  eval "$as_ac_Header=$ac_header_preproc"
11747fi
11748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11750
11751fi
11752if test `eval echo '${'$as_ac_Header'}'` = yes; then
11753  cat >>confdefs.h <<_ACEOF
11754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11755_ACEOF
11756
11757fi
11758
11759done
11760
11761
11762
11763
11764
11765
11766
11767for ac_header in sys/termiox.h sys/time.h sys/ttold.h sys/ttycom.h sys/types.h sys/utsname.h
11768do
11769as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11770if eval "test \"\${$as_ac_Header+set}\" = set"; then
11771  echo "$as_me:$LINENO: checking for $ac_header" >&5
11772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11773if eval "test \"\${$as_ac_Header+set}\" = set"; then
11774  echo $ECHO_N "(cached) $ECHO_C" >&6
11775fi
11776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11777echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11778else
11779  # Is the header compilable?
11780echo "$as_me:$LINENO: checking $ac_header usability" >&5
11781echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11782cat >conftest.$ac_ext <<_ACEOF
11783#line $LINENO "configure"
11784#include "confdefs.h"
11785$ac_includes_default
11786#include <$ac_header>
11787_ACEOF
11788rm -f conftest.$ac_objext
11789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11790  (eval $ac_compile) 2>&5
11791  ac_status=$?
11792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793  (exit $ac_status); } &&
11794         { ac_try='test -s conftest.$ac_objext'
11795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796  (eval $ac_try) 2>&5
11797  ac_status=$?
11798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799  (exit $ac_status); }; }; then
11800  ac_header_compiler=yes
11801else
11802  echo "$as_me: failed program was:" >&5
11803cat conftest.$ac_ext >&5
11804ac_header_compiler=no
11805fi
11806rm -f conftest.$ac_objext conftest.$ac_ext
11807echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11808echo "${ECHO_T}$ac_header_compiler" >&6
11809
11810# Is the header present?
11811echo "$as_me:$LINENO: checking $ac_header presence" >&5
11812echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11813cat >conftest.$ac_ext <<_ACEOF
11814#line $LINENO "configure"
11815#include "confdefs.h"
11816#include <$ac_header>
11817_ACEOF
11818if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11819  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11820  ac_status=$?
11821  egrep -v '^ *\+' conftest.er1 >conftest.err
11822  rm -f conftest.er1
11823  cat conftest.err >&5
11824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825  (exit $ac_status); } >/dev/null; then
11826  if test -s conftest.err; then
11827    ac_cpp_err=$ac_c_preproc_warn_flag
11828  else
11829    ac_cpp_err=
11830  fi
11831else
11832  ac_cpp_err=yes
11833fi
11834if test -z "$ac_cpp_err"; then
11835  ac_header_preproc=yes
11836else
11837  echo "$as_me: failed program was:" >&5
11838  cat conftest.$ac_ext >&5
11839  ac_header_preproc=no
11840fi
11841rm -f conftest.err conftest.$ac_ext
11842echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11843echo "${ECHO_T}$ac_header_preproc" >&6
11844
11845# So?  What about this header?
11846case $ac_header_compiler:$ac_header_preproc in
11847  yes:no )
11848    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11850    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11851echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11852  no:yes )
11853    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11854echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11855    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11856echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11857    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11858echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11859esac
11860echo "$as_me:$LINENO: checking for $ac_header" >&5
11861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11862if eval "test \"\${$as_ac_Header+set}\" = set"; then
11863  echo $ECHO_N "(cached) $ECHO_C" >&6
11864else
11865  eval "$as_ac_Header=$ac_header_preproc"
11866fi
11867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11868echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11869
11870fi
11871if test `eval echo '${'$as_ac_Header'}'` = yes; then
11872  cat >>confdefs.h <<_ACEOF
11873#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11874_ACEOF
11875
11876fi
11877
11878done
11879
11880
11881
11882
11883
11884
11885
11886for ac_header in sys/vfs.h sys/wait.h syslog.h term.h termcap.h termio.h
11887do
11888as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11889if eval "test \"\${$as_ac_Header+set}\" = set"; then
11890  echo "$as_me:$LINENO: checking for $ac_header" >&5
11891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11892if eval "test \"\${$as_ac_Header+set}\" = set"; then
11893  echo $ECHO_N "(cached) $ECHO_C" >&6
11894fi
11895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11896echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11897else
11898  # Is the header compilable?
11899echo "$as_me:$LINENO: checking $ac_header usability" >&5
11900echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11901cat >conftest.$ac_ext <<_ACEOF
11902#line $LINENO "configure"
11903#include "confdefs.h"
11904$ac_includes_default
11905#include <$ac_header>
11906_ACEOF
11907rm -f conftest.$ac_objext
11908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11909  (eval $ac_compile) 2>&5
11910  ac_status=$?
11911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912  (exit $ac_status); } &&
11913         { ac_try='test -s conftest.$ac_objext'
11914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915  (eval $ac_try) 2>&5
11916  ac_status=$?
11917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918  (exit $ac_status); }; }; then
11919  ac_header_compiler=yes
11920else
11921  echo "$as_me: failed program was:" >&5
11922cat conftest.$ac_ext >&5
11923ac_header_compiler=no
11924fi
11925rm -f conftest.$ac_objext conftest.$ac_ext
11926echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11927echo "${ECHO_T}$ac_header_compiler" >&6
11928
11929# Is the header present?
11930echo "$as_me:$LINENO: checking $ac_header presence" >&5
11931echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11932cat >conftest.$ac_ext <<_ACEOF
11933#line $LINENO "configure"
11934#include "confdefs.h"
11935#include <$ac_header>
11936_ACEOF
11937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11938  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11939  ac_status=$?
11940  egrep -v '^ *\+' conftest.er1 >conftest.err
11941  rm -f conftest.er1
11942  cat conftest.err >&5
11943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944  (exit $ac_status); } >/dev/null; then
11945  if test -s conftest.err; then
11946    ac_cpp_err=$ac_c_preproc_warn_flag
11947  else
11948    ac_cpp_err=
11949  fi
11950else
11951  ac_cpp_err=yes
11952fi
11953if test -z "$ac_cpp_err"; then
11954  ac_header_preproc=yes
11955else
11956  echo "$as_me: failed program was:" >&5
11957  cat conftest.$ac_ext >&5
11958  ac_header_preproc=no
11959fi
11960rm -f conftest.err conftest.$ac_ext
11961echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11962echo "${ECHO_T}$ac_header_preproc" >&6
11963
11964# So?  What about this header?
11965case $ac_header_compiler:$ac_header_preproc in
11966  yes:no )
11967    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11968echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11969    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11970echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11971  no:yes )
11972    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11974    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11975echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11976    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11977echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11978esac
11979echo "$as_me:$LINENO: checking for $ac_header" >&5
11980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11981if eval "test \"\${$as_ac_Header+set}\" = set"; then
11982  echo $ECHO_N "(cached) $ECHO_C" >&6
11983else
11984  eval "$as_ac_Header=$ac_header_preproc"
11985fi
11986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11987echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11988
11989fi
11990if test `eval echo '${'$as_ac_Header'}'` = yes; then
11991  cat >>confdefs.h <<_ACEOF
11992#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11993_ACEOF
11994
11995fi
11996
11997done
11998
11999
12000
12001
12002
12003
12004
12005for ac_header in termios.h time.h unistd.h utsname.h varargs.h vmparam.h
12006do
12007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12008if eval "test \"\${$as_ac_Header+set}\" = set"; then
12009  echo "$as_me:$LINENO: checking for $ac_header" >&5
12010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12011if eval "test \"\${$as_ac_Header+set}\" = set"; then
12012  echo $ECHO_N "(cached) $ECHO_C" >&6
12013fi
12014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12016else
12017  # Is the header compilable?
12018echo "$as_me:$LINENO: checking $ac_header usability" >&5
12019echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12020cat >conftest.$ac_ext <<_ACEOF
12021#line $LINENO "configure"
12022#include "confdefs.h"
12023$ac_includes_default
12024#include <$ac_header>
12025_ACEOF
12026rm -f conftest.$ac_objext
12027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12028  (eval $ac_compile) 2>&5
12029  ac_status=$?
12030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031  (exit $ac_status); } &&
12032         { ac_try='test -s conftest.$ac_objext'
12033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034  (eval $ac_try) 2>&5
12035  ac_status=$?
12036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037  (exit $ac_status); }; }; then
12038  ac_header_compiler=yes
12039else
12040  echo "$as_me: failed program was:" >&5
12041cat conftest.$ac_ext >&5
12042ac_header_compiler=no
12043fi
12044rm -f conftest.$ac_objext conftest.$ac_ext
12045echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12046echo "${ECHO_T}$ac_header_compiler" >&6
12047
12048# Is the header present?
12049echo "$as_me:$LINENO: checking $ac_header presence" >&5
12050echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12051cat >conftest.$ac_ext <<_ACEOF
12052#line $LINENO "configure"
12053#include "confdefs.h"
12054#include <$ac_header>
12055_ACEOF
12056if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12057  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12058  ac_status=$?
12059  egrep -v '^ *\+' conftest.er1 >conftest.err
12060  rm -f conftest.er1
12061  cat conftest.err >&5
12062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063  (exit $ac_status); } >/dev/null; then
12064  if test -s conftest.err; then
12065    ac_cpp_err=$ac_c_preproc_warn_flag
12066  else
12067    ac_cpp_err=
12068  fi
12069else
12070  ac_cpp_err=yes
12071fi
12072if test -z "$ac_cpp_err"; then
12073  ac_header_preproc=yes
12074else
12075  echo "$as_me: failed program was:" >&5
12076  cat conftest.$ac_ext >&5
12077  ac_header_preproc=no
12078fi
12079rm -f conftest.err conftest.$ac_ext
12080echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12081echo "${ECHO_T}$ac_header_preproc" >&6
12082
12083# So?  What about this header?
12084case $ac_header_compiler:$ac_header_preproc in
12085  yes:no )
12086    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12087echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12088    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12089echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12090  no:yes )
12091    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12092echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12093    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12094echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12095    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12096echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12097esac
12098echo "$as_me:$LINENO: checking for $ac_header" >&5
12099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12100if eval "test \"\${$as_ac_Header+set}\" = set"; then
12101  echo $ECHO_N "(cached) $ECHO_C" >&6
12102else
12103  eval "$as_ac_Header=$ac_header_preproc"
12104fi
12105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12106echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12107
12108fi
12109if test `eval echo '${'$as_ac_Header'}'` = yes; then
12110  cat >>confdefs.h <<_ACEOF
12111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12112_ACEOF
12113
12114fi
12115
12116done
12117
12118
12119
12120
12121if test -z "$checklibs"; then
12122		echo "$as_me:$LINENO: checking for getpwent in -lposix" >&5
12123echo $ECHO_N "checking for getpwent in -lposix... $ECHO_C" >&6
12124if test "${ac_cv_lib_posix_getpwent+set}" = set; then
12125  echo $ECHO_N "(cached) $ECHO_C" >&6
12126else
12127  ac_check_lib_save_LIBS=$LIBS
12128LIBS="-lposix  $LIBS"
12129cat >conftest.$ac_ext <<_ACEOF
12130#line $LINENO "configure"
12131#include "confdefs.h"
12132
12133/* Override any gcc2 internal prototype to avoid an error.  */
12134#ifdef __cplusplus
12135extern "C"
12136#endif
12137/* We use char because int might match the return type of a gcc2
12138   builtin and then its argument prototype would still apply.  */
12139char getpwent ();
12140#ifdef F77_DUMMY_MAIN
12141#  ifdef __cplusplus
12142     extern "C"
12143#  endif
12144   int F77_DUMMY_MAIN() { return 1; }
12145#endif
12146int
12147main ()
12148{
12149getpwent ();
12150  ;
12151  return 0;
12152}
12153_ACEOF
12154rm -f conftest.$ac_objext conftest$ac_exeext
12155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12156  (eval $ac_link) 2>&5
12157  ac_status=$?
12158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159  (exit $ac_status); } &&
12160         { ac_try='test -s conftest$ac_exeext'
12161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162  (eval $ac_try) 2>&5
12163  ac_status=$?
12164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165  (exit $ac_status); }; }; then
12166  ac_cv_lib_posix_getpwent=yes
12167else
12168  echo "$as_me: failed program was:" >&5
12169cat conftest.$ac_ext >&5
12170ac_cv_lib_posix_getpwent=no
12171fi
12172rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12173LIBS=$ac_check_lib_save_LIBS
12174fi
12175echo "$as_me:$LINENO: result: $ac_cv_lib_posix_getpwent" >&5
12176echo "${ECHO_T}$ac_cv_lib_posix_getpwent" >&6
12177if test $ac_cv_lib_posix_getpwent = yes; then
12178  LIBS="$LIBS -lposix"
12179fi
12180
12181
12182		echo "$as_me:$LINENO: checking for socket in -lsocket_s" >&5
12183echo $ECHO_N "checking for socket in -lsocket_s... $ECHO_C" >&6
12184if test "${ac_cv_lib_socket_s_socket+set}" = set; then
12185  echo $ECHO_N "(cached) $ECHO_C" >&6
12186else
12187  ac_check_lib_save_LIBS=$LIBS
12188LIBS="-lsocket_s -lnsl $LIBS"
12189cat >conftest.$ac_ext <<_ACEOF
12190#line $LINENO "configure"
12191#include "confdefs.h"
12192
12193/* Override any gcc2 internal prototype to avoid an error.  */
12194#ifdef __cplusplus
12195extern "C"
12196#endif
12197/* We use char because int might match the return type of a gcc2
12198   builtin and then its argument prototype would still apply.  */
12199char socket ();
12200#ifdef F77_DUMMY_MAIN
12201#  ifdef __cplusplus
12202     extern "C"
12203#  endif
12204   int F77_DUMMY_MAIN() { return 1; }
12205#endif
12206int
12207main ()
12208{
12209socket ();
12210  ;
12211  return 0;
12212}
12213_ACEOF
12214rm -f conftest.$ac_objext conftest$ac_exeext
12215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12216  (eval $ac_link) 2>&5
12217  ac_status=$?
12218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219  (exit $ac_status); } &&
12220         { ac_try='test -s conftest$ac_exeext'
12221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222  (eval $ac_try) 2>&5
12223  ac_status=$?
12224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225  (exit $ac_status); }; }; then
12226  ac_cv_lib_socket_s_socket=yes
12227else
12228  echo "$as_me: failed program was:" >&5
12229cat conftest.$ac_ext >&5
12230ac_cv_lib_socket_s_socket=no
12231fi
12232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12233LIBS=$ac_check_lib_save_LIBS
12234fi
12235echo "$as_me:$LINENO: result: $ac_cv_lib_socket_s_socket" >&5
12236echo "${ECHO_T}$ac_cv_lib_socket_s_socket" >&6
12237if test $ac_cv_lib_socket_s_socket = yes; then
12238  LIBS="$LIBS -lsocket_s"; have_socket=1
12239fi
12240
12241	if test -z "$have_socket"; then
12242		echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
12243echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
12244if test "${ac_cv_lib_socket_socket+set}" = set; then
12245  echo $ECHO_N "(cached) $ECHO_C" >&6
12246else
12247  ac_check_lib_save_LIBS=$LIBS
12248LIBS="-lsocket -lnsl $LIBS"
12249cat >conftest.$ac_ext <<_ACEOF
12250#line $LINENO "configure"
12251#include "confdefs.h"
12252
12253/* Override any gcc2 internal prototype to avoid an error.  */
12254#ifdef __cplusplus
12255extern "C"
12256#endif
12257/* We use char because int might match the return type of a gcc2
12258   builtin and then its argument prototype would still apply.  */
12259char socket ();
12260#ifdef F77_DUMMY_MAIN
12261#  ifdef __cplusplus
12262     extern "C"
12263#  endif
12264   int F77_DUMMY_MAIN() { return 1; }
12265#endif
12266int
12267main ()
12268{
12269socket ();
12270  ;
12271  return 0;
12272}
12273_ACEOF
12274rm -f conftest.$ac_objext conftest$ac_exeext
12275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12276  (eval $ac_link) 2>&5
12277  ac_status=$?
12278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279  (exit $ac_status); } &&
12280         { ac_try='test -s conftest$ac_exeext'
12281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282  (eval $ac_try) 2>&5
12283  ac_status=$?
12284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285  (exit $ac_status); }; }; then
12286  ac_cv_lib_socket_socket=yes
12287else
12288  echo "$as_me: failed program was:" >&5
12289cat conftest.$ac_ext >&5
12290ac_cv_lib_socket_socket=no
12291fi
12292rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12293LIBS=$ac_check_lib_save_LIBS
12294fi
12295echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
12296echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
12297if test $ac_cv_lib_socket_socket = yes; then
12298  LIBS="$LIBS -lsocket"
12299fi
12300
12301	fi
12302
12303	cat >conftest.$ac_ext <<_ACEOF
12304#line $LINENO "configure"
12305#include "confdefs.h"
12306
12307#ifdef F77_DUMMY_MAIN
12308#  ifdef __cplusplus
12309     extern "C"
12310#  endif
12311   int F77_DUMMY_MAIN() { return 1; }
12312#endif
12313int
12314main ()
12315{
12316extern int gethostbyaddr; return (gethostbyaddr);
12317  ;
12318  return 0;
12319}
12320_ACEOF
12321rm -f conftest.$ac_objext conftest$ac_exeext
12322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12323  (eval $ac_link) 2>&5
12324  ac_status=$?
12325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326  (exit $ac_status); } &&
12327         { ac_try='test -s conftest$ac_exeext'
12328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329  (eval $ac_try) 2>&5
12330  ac_status=$?
12331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332  (exit $ac_status); }; }; then
12333  have_gethost=1
12334else
12335  echo "$as_me: failed program was:" >&5
12336cat conftest.$ac_ext >&5
12337fi
12338rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12339	if test -z "$have_gethost" ; then
12340		h="you need additional libs for gethostbyaddr";
12341	else
12342		h="no additional libs for gethostbyaddr";
12343	fi
12344	echo "$as_me:$LINENO: result: $h" >&5
12345echo "${ECHO_T}$h" >&6
12346	if test -z "$have_gethost" ; then
12347		echo "$as_me:$LINENO: checking for gethostbyaddr in -lnsl_s" >&5
12348echo $ECHO_N "checking for gethostbyaddr in -lnsl_s... $ECHO_C" >&6
12349if test "${ac_cv_lib_nsl_s_gethostbyaddr+set}" = set; then
12350  echo $ECHO_N "(cached) $ECHO_C" >&6
12351else
12352  ac_check_lib_save_LIBS=$LIBS
12353LIBS="-lnsl_s  $LIBS"
12354cat >conftest.$ac_ext <<_ACEOF
12355#line $LINENO "configure"
12356#include "confdefs.h"
12357
12358/* Override any gcc2 internal prototype to avoid an error.  */
12359#ifdef __cplusplus
12360extern "C"
12361#endif
12362/* We use char because int might match the return type of a gcc2
12363   builtin and then its argument prototype would still apply.  */
12364char gethostbyaddr ();
12365#ifdef F77_DUMMY_MAIN
12366#  ifdef __cplusplus
12367     extern "C"
12368#  endif
12369   int F77_DUMMY_MAIN() { return 1; }
12370#endif
12371int
12372main ()
12373{
12374gethostbyaddr ();
12375  ;
12376  return 0;
12377}
12378_ACEOF
12379rm -f conftest.$ac_objext conftest$ac_exeext
12380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12381  (eval $ac_link) 2>&5
12382  ac_status=$?
12383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384  (exit $ac_status); } &&
12385         { ac_try='test -s conftest$ac_exeext'
12386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387  (eval $ac_try) 2>&5
12388  ac_status=$?
12389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390  (exit $ac_status); }; }; then
12391  ac_cv_lib_nsl_s_gethostbyaddr=yes
12392else
12393  echo "$as_me: failed program was:" >&5
12394cat conftest.$ac_ext >&5
12395ac_cv_lib_nsl_s_gethostbyaddr=no
12396fi
12397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12398LIBS=$ac_check_lib_save_LIBS
12399fi
12400echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_gethostbyaddr" >&5
12401echo "${ECHO_T}$ac_cv_lib_nsl_s_gethostbyaddr" >&6
12402if test $ac_cv_lib_nsl_s_gethostbyaddr = yes; then
12403  LIBS="$LIBS -lnsl_s"; have_gethost=1
12404fi
12405
12406	fi
12407	if test -z "$have_gethost"; then
12408		echo "$as_me:$LINENO: checking for gethostbyaddr in -lnsl" >&5
12409echo $ECHO_N "checking for gethostbyaddr in -lnsl... $ECHO_C" >&6
12410if test "${ac_cv_lib_nsl_gethostbyaddr+set}" = set; then
12411  echo $ECHO_N "(cached) $ECHO_C" >&6
12412else
12413  ac_check_lib_save_LIBS=$LIBS
12414LIBS="-lnsl  $LIBS"
12415cat >conftest.$ac_ext <<_ACEOF
12416#line $LINENO "configure"
12417#include "confdefs.h"
12418
12419/* Override any gcc2 internal prototype to avoid an error.  */
12420#ifdef __cplusplus
12421extern "C"
12422#endif
12423/* We use char because int might match the return type of a gcc2
12424   builtin and then its argument prototype would still apply.  */
12425char gethostbyaddr ();
12426#ifdef F77_DUMMY_MAIN
12427#  ifdef __cplusplus
12428     extern "C"
12429#  endif
12430   int F77_DUMMY_MAIN() { return 1; }
12431#endif
12432int
12433main ()
12434{
12435gethostbyaddr ();
12436  ;
12437  return 0;
12438}
12439_ACEOF
12440rm -f conftest.$ac_objext conftest$ac_exeext
12441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12442  (eval $ac_link) 2>&5
12443  ac_status=$?
12444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445  (exit $ac_status); } &&
12446         { ac_try='test -s conftest$ac_exeext'
12447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448  (eval $ac_try) 2>&5
12449  ac_status=$?
12450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451  (exit $ac_status); }; }; then
12452  ac_cv_lib_nsl_gethostbyaddr=yes
12453else
12454  echo "$as_me: failed program was:" >&5
12455cat conftest.$ac_ext >&5
12456ac_cv_lib_nsl_gethostbyaddr=no
12457fi
12458rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12459LIBS=$ac_check_lib_save_LIBS
12460fi
12461echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyaddr" >&5
12462echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyaddr" >&6
12463if test $ac_cv_lib_nsl_gethostbyaddr = yes; then
12464  LIBS="$LIBS -lnsl"; have_gethost=1
12465fi
12466
12467	fi
12468
12469	if test -z "$have_gethost"; then
12470		echo "$as_me:$LINENO: checking for gethostbyaddr in -lnet_s" >&5
12471echo $ECHO_N "checking for gethostbyaddr in -lnet_s... $ECHO_C" >&6
12472if test "${ac_cv_lib_net_s_gethostbyaddr+set}" = set; then
12473  echo $ECHO_N "(cached) $ECHO_C" >&6
12474else
12475  ac_check_lib_save_LIBS=$LIBS
12476LIBS="-lnet_s  $LIBS"
12477cat >conftest.$ac_ext <<_ACEOF
12478#line $LINENO "configure"
12479#include "confdefs.h"
12480
12481/* Override any gcc2 internal prototype to avoid an error.  */
12482#ifdef __cplusplus
12483extern "C"
12484#endif
12485/* We use char because int might match the return type of a gcc2
12486   builtin and then its argument prototype would still apply.  */
12487char gethostbyaddr ();
12488#ifdef F77_DUMMY_MAIN
12489#  ifdef __cplusplus
12490     extern "C"
12491#  endif
12492   int F77_DUMMY_MAIN() { return 1; }
12493#endif
12494int
12495main ()
12496{
12497gethostbyaddr ();
12498  ;
12499  return 0;
12500}
12501_ACEOF
12502rm -f conftest.$ac_objext conftest$ac_exeext
12503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12504  (eval $ac_link) 2>&5
12505  ac_status=$?
12506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507  (exit $ac_status); } &&
12508         { ac_try='test -s conftest$ac_exeext'
12509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510  (eval $ac_try) 2>&5
12511  ac_status=$?
12512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513  (exit $ac_status); }; }; then
12514  ac_cv_lib_net_s_gethostbyaddr=yes
12515else
12516  echo "$as_me: failed program was:" >&5
12517cat conftest.$ac_ext >&5
12518ac_cv_lib_net_s_gethostbyaddr=no
12519fi
12520rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12521LIBS=$ac_check_lib_save_LIBS
12522fi
12523echo "$as_me:$LINENO: result: $ac_cv_lib_net_s_gethostbyaddr" >&5
12524echo "${ECHO_T}$ac_cv_lib_net_s_gethostbyaddr" >&6
12525if test $ac_cv_lib_net_s_gethostbyaddr = yes; then
12526  LIBS="$LIBS -lnet_s"; have_gethost=1
12527fi
12528
12529	fi
12530	if test -z "$have_gethost"; then
12531		echo "$as_me:$LINENO: checking for gethostbyaddr in -lnet" >&5
12532echo $ECHO_N "checking for gethostbyaddr in -lnet... $ECHO_C" >&6
12533if test "${ac_cv_lib_net_gethostbyaddr+set}" = set; then
12534  echo $ECHO_N "(cached) $ECHO_C" >&6
12535else
12536  ac_check_lib_save_LIBS=$LIBS
12537LIBS="-lnet  $LIBS"
12538cat >conftest.$ac_ext <<_ACEOF
12539#line $LINENO "configure"
12540#include "confdefs.h"
12541
12542/* Override any gcc2 internal prototype to avoid an error.  */
12543#ifdef __cplusplus
12544extern "C"
12545#endif
12546/* We use char because int might match the return type of a gcc2
12547   builtin and then its argument prototype would still apply.  */
12548char gethostbyaddr ();
12549#ifdef F77_DUMMY_MAIN
12550#  ifdef __cplusplus
12551     extern "C"
12552#  endif
12553   int F77_DUMMY_MAIN() { return 1; }
12554#endif
12555int
12556main ()
12557{
12558gethostbyaddr ();
12559  ;
12560  return 0;
12561}
12562_ACEOF
12563rm -f conftest.$ac_objext conftest$ac_exeext
12564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12565  (eval $ac_link) 2>&5
12566  ac_status=$?
12567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568  (exit $ac_status); } &&
12569         { ac_try='test -s conftest$ac_exeext'
12570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571  (eval $ac_try) 2>&5
12572  ac_status=$?
12573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574  (exit $ac_status); }; }; then
12575  ac_cv_lib_net_gethostbyaddr=yes
12576else
12577  echo "$as_me: failed program was:" >&5
12578cat conftest.$ac_ext >&5
12579ac_cv_lib_net_gethostbyaddr=no
12580fi
12581rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12582LIBS=$ac_check_lib_save_LIBS
12583fi
12584echo "$as_me:$LINENO: result: $ac_cv_lib_net_gethostbyaddr" >&5
12585echo "${ECHO_T}$ac_cv_lib_net_gethostbyaddr" >&6
12586if test $ac_cv_lib_net_gethostbyaddr = yes; then
12587  LIBS="$LIBS -lnet"; have_gethost=1
12588fi
12589
12590	fi
12591
12592		if test -z "$no_resolv_lib"; then
12593	  echo "$as_me:$LINENO: checking for inet_ntop" >&5
12594echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
12595if test "${ac_cv_func_inet_ntop+set}" = set; then
12596  echo $ECHO_N "(cached) $ECHO_C" >&6
12597else
12598  cat >conftest.$ac_ext <<_ACEOF
12599#line $LINENO "configure"
12600#include "confdefs.h"
12601/* System header to define __stub macros and hopefully few prototypes,
12602    which can conflict with char inet_ntop (); below.  */
12603#include <assert.h>
12604/* Override any gcc2 internal prototype to avoid an error.  */
12605#ifdef __cplusplus
12606extern "C"
12607#endif
12608/* We use char because int might match the return type of a gcc2
12609   builtin and then its argument prototype would still apply.  */
12610char inet_ntop ();
12611char (*f) ();
12612
12613#ifdef F77_DUMMY_MAIN
12614#  ifdef __cplusplus
12615     extern "C"
12616#  endif
12617   int F77_DUMMY_MAIN() { return 1; }
12618#endif
12619int
12620main ()
12621{
12622/* The GNU C library defines this for functions which it implements
12623    to always fail with ENOSYS.  Some functions are actually named
12624    something starting with __ and the normal name is an alias.  */
12625#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
12626choke me
12627#else
12628f = inet_ntop;
12629#endif
12630
12631  ;
12632  return 0;
12633}
12634_ACEOF
12635rm -f conftest.$ac_objext conftest$ac_exeext
12636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12637  (eval $ac_link) 2>&5
12638  ac_status=$?
12639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640  (exit $ac_status); } &&
12641         { ac_try='test -s conftest$ac_exeext'
12642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643  (eval $ac_try) 2>&5
12644  ac_status=$?
12645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646  (exit $ac_status); }; }; then
12647  ac_cv_func_inet_ntop=yes
12648else
12649  echo "$as_me: failed program was:" >&5
12650cat conftest.$ac_ext >&5
12651ac_cv_func_inet_ntop=no
12652fi
12653rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12654fi
12655echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
12656echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
12657if test $ac_cv_func_inet_ntop = yes; then
12658  name2=yes
12659fi
12660
12661	  if test -z "$name2" ; then
12662		echo "$as_me:$LINENO: checking for inet_ntop in -lresolv" >&5
12663echo $ECHO_N "checking for inet_ntop in -lresolv... $ECHO_C" >&6
12664if test "${ac_cv_lib_resolv_inet_ntop+set}" = set; then
12665  echo $ECHO_N "(cached) $ECHO_C" >&6
12666else
12667  ac_check_lib_save_LIBS=$LIBS
12668LIBS="-lresolv  $LIBS"
12669cat >conftest.$ac_ext <<_ACEOF
12670#line $LINENO "configure"
12671#include "confdefs.h"
12672
12673/* Override any gcc2 internal prototype to avoid an error.  */
12674#ifdef __cplusplus
12675extern "C"
12676#endif
12677/* We use char because int might match the return type of a gcc2
12678   builtin and then its argument prototype would still apply.  */
12679char inet_ntop ();
12680#ifdef F77_DUMMY_MAIN
12681#  ifdef __cplusplus
12682     extern "C"
12683#  endif
12684   int F77_DUMMY_MAIN() { return 1; }
12685#endif
12686int
12687main ()
12688{
12689inet_ntop ();
12690  ;
12691  return 0;
12692}
12693_ACEOF
12694rm -f conftest.$ac_objext conftest$ac_exeext
12695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12696  (eval $ac_link) 2>&5
12697  ac_status=$?
12698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699  (exit $ac_status); } &&
12700         { ac_try='test -s conftest$ac_exeext'
12701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12702  (eval $ac_try) 2>&5
12703  ac_status=$?
12704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705  (exit $ac_status); }; }; then
12706  ac_cv_lib_resolv_inet_ntop=yes
12707else
12708  echo "$as_me: failed program was:" >&5
12709cat conftest.$ac_ext >&5
12710ac_cv_lib_resolv_inet_ntop=no
12711fi
12712rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12713LIBS=$ac_check_lib_save_LIBS
12714fi
12715echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_ntop" >&5
12716echo "${ECHO_T}$ac_cv_lib_resolv_inet_ntop" >&6
12717if test $ac_cv_lib_resolv_inet_ntop = yes; then
12718  LIBS="$LIBS -lresolv";name2=yes
12719fi
12720
12721	  fi;
12722	fi
12723fi
12724
12725
12726
12727
12728
12729
12730
12731
12732for ac_func in _res cfsetispeed fcntl flock gethostbyname2 getdtablesize
12733do
12734as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12735echo "$as_me:$LINENO: checking for $ac_func" >&5
12736echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12737if eval "test \"\${$as_ac_var+set}\" = set"; then
12738  echo $ECHO_N "(cached) $ECHO_C" >&6
12739else
12740  cat >conftest.$ac_ext <<_ACEOF
12741#line $LINENO "configure"
12742#include "confdefs.h"
12743/* System header to define __stub macros and hopefully few prototypes,
12744    which can conflict with char $ac_func (); below.  */
12745#include <assert.h>
12746/* Override any gcc2 internal prototype to avoid an error.  */
12747#ifdef __cplusplus
12748extern "C"
12749#endif
12750/* We use char because int might match the return type of a gcc2
12751   builtin and then its argument prototype would still apply.  */
12752char $ac_func ();
12753char (*f) ();
12754
12755#ifdef F77_DUMMY_MAIN
12756#  ifdef __cplusplus
12757     extern "C"
12758#  endif
12759   int F77_DUMMY_MAIN() { return 1; }
12760#endif
12761int
12762main ()
12763{
12764/* The GNU C library defines this for functions which it implements
12765    to always fail with ENOSYS.  Some functions are actually named
12766    something starting with __ and the normal name is an alias.  */
12767#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12768choke me
12769#else
12770f = $ac_func;
12771#endif
12772
12773  ;
12774  return 0;
12775}
12776_ACEOF
12777rm -f conftest.$ac_objext conftest$ac_exeext
12778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12779  (eval $ac_link) 2>&5
12780  ac_status=$?
12781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782  (exit $ac_status); } &&
12783         { ac_try='test -s conftest$ac_exeext'
12784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785  (eval $ac_try) 2>&5
12786  ac_status=$?
12787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788  (exit $ac_status); }; }; then
12789  eval "$as_ac_var=yes"
12790else
12791  echo "$as_me: failed program was:" >&5
12792cat conftest.$ac_ext >&5
12793eval "$as_ac_var=no"
12794fi
12795rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12796fi
12797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12798echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12799if test `eval echo '${'$as_ac_var'}'` = yes; then
12800  cat >>confdefs.h <<_ACEOF
12801#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12802_ACEOF
12803
12804fi
12805done
12806
12807
12808
12809
12810
12811
12812for ac_func in gethostname getrlimit inet_aton inet_ntop inet_pton
12813do
12814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12815echo "$as_me:$LINENO: checking for $ac_func" >&5
12816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12817if eval "test \"\${$as_ac_var+set}\" = set"; then
12818  echo $ECHO_N "(cached) $ECHO_C" >&6
12819else
12820  cat >conftest.$ac_ext <<_ACEOF
12821#line $LINENO "configure"
12822#include "confdefs.h"
12823/* System header to define __stub macros and hopefully few prototypes,
12824    which can conflict with char $ac_func (); below.  */
12825#include <assert.h>
12826/* Override any gcc2 internal prototype to avoid an error.  */
12827#ifdef __cplusplus
12828extern "C"
12829#endif
12830/* We use char because int might match the return type of a gcc2
12831   builtin and then its argument prototype would still apply.  */
12832char $ac_func ();
12833char (*f) ();
12834
12835#ifdef F77_DUMMY_MAIN
12836#  ifdef __cplusplus
12837     extern "C"
12838#  endif
12839   int F77_DUMMY_MAIN() { return 1; }
12840#endif
12841int
12842main ()
12843{
12844/* The GNU C library defines this for functions which it implements
12845    to always fail with ENOSYS.  Some functions are actually named
12846    something starting with __ and the normal name is an alias.  */
12847#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12848choke me
12849#else
12850f = $ac_func;
12851#endif
12852
12853  ;
12854  return 0;
12855}
12856_ACEOF
12857rm -f conftest.$ac_objext conftest$ac_exeext
12858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12859  (eval $ac_link) 2>&5
12860  ac_status=$?
12861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862  (exit $ac_status); } &&
12863         { ac_try='test -s conftest$ac_exeext'
12864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865  (eval $ac_try) 2>&5
12866  ac_status=$?
12867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868  (exit $ac_status); }; }; then
12869  eval "$as_ac_var=yes"
12870else
12871  echo "$as_me: failed program was:" >&5
12872cat conftest.$ac_ext >&5
12873eval "$as_ac_var=no"
12874fi
12875rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12876fi
12877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12878echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12879if test `eval echo '${'$as_ac_var'}'` = yes; then
12880  cat >>confdefs.h <<_ACEOF
12881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12882_ACEOF
12883
12884fi
12885done
12886
12887
12888
12889
12890
12891
12892for ac_func in innetgr initgroups killpg lockf mkstemp
12893do
12894as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12895echo "$as_me:$LINENO: checking for $ac_func" >&5
12896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12897if eval "test \"\${$as_ac_var+set}\" = set"; then
12898  echo $ECHO_N "(cached) $ECHO_C" >&6
12899else
12900  cat >conftest.$ac_ext <<_ACEOF
12901#line $LINENO "configure"
12902#include "confdefs.h"
12903/* System header to define __stub macros and hopefully few prototypes,
12904    which can conflict with char $ac_func (); below.  */
12905#include <assert.h>
12906/* Override any gcc2 internal prototype to avoid an error.  */
12907#ifdef __cplusplus
12908extern "C"
12909#endif
12910/* We use char because int might match the return type of a gcc2
12911   builtin and then its argument prototype would still apply.  */
12912char $ac_func ();
12913char (*f) ();
12914
12915#ifdef F77_DUMMY_MAIN
12916#  ifdef __cplusplus
12917     extern "C"
12918#  endif
12919   int F77_DUMMY_MAIN() { return 1; }
12920#endif
12921int
12922main ()
12923{
12924/* The GNU C library defines this for functions which it implements
12925    to always fail with ENOSYS.  Some functions are actually named
12926    something starting with __ and the normal name is an alias.  */
12927#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12928choke me
12929#else
12930f = $ac_func;
12931#endif
12932
12933  ;
12934  return 0;
12935}
12936_ACEOF
12937rm -f conftest.$ac_objext conftest$ac_exeext
12938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12939  (eval $ac_link) 2>&5
12940  ac_status=$?
12941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942  (exit $ac_status); } &&
12943         { ac_try='test -s conftest$ac_exeext'
12944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945  (eval $ac_try) 2>&5
12946  ac_status=$?
12947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948  (exit $ac_status); }; }; then
12949  eval "$as_ac_var=yes"
12950else
12951  echo "$as_me: failed program was:" >&5
12952cat conftest.$ac_ext >&5
12953eval "$as_ac_var=no"
12954fi
12955rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12956fi
12957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12958echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12959if test `eval echo '${'$as_ac_var'}'` = yes; then
12960  cat >>confdefs.h <<_ACEOF
12961#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12962_ACEOF
12963
12964fi
12965done
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978for ac_func in mktemp openlog putenv random rand setenv seteuid setgroups setlocale setpgid setproctitle
12979do
12980as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12981echo "$as_me:$LINENO: checking for $ac_func" >&5
12982echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12983if eval "test \"\${$as_ac_var+set}\" = set"; then
12984  echo $ECHO_N "(cached) $ECHO_C" >&6
12985else
12986  cat >conftest.$ac_ext <<_ACEOF
12987#line $LINENO "configure"
12988#include "confdefs.h"
12989/* System header to define __stub macros and hopefully few prototypes,
12990    which can conflict with char $ac_func (); below.  */
12991#include <assert.h>
12992/* Override any gcc2 internal prototype to avoid an error.  */
12993#ifdef __cplusplus
12994extern "C"
12995#endif
12996/* We use char because int might match the return type of a gcc2
12997   builtin and then its argument prototype would still apply.  */
12998char $ac_func ();
12999char (*f) ();
13000
13001#ifdef F77_DUMMY_MAIN
13002#  ifdef __cplusplus
13003     extern "C"
13004#  endif
13005   int F77_DUMMY_MAIN() { return 1; }
13006#endif
13007int
13008main ()
13009{
13010/* The GNU C library defines this for functions which it implements
13011    to always fail with ENOSYS.  Some functions are actually named
13012    something starting with __ and the normal name is an alias.  */
13013#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13014choke me
13015#else
13016f = $ac_func;
13017#endif
13018
13019  ;
13020  return 0;
13021}
13022_ACEOF
13023rm -f conftest.$ac_objext conftest$ac_exeext
13024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13025  (eval $ac_link) 2>&5
13026  ac_status=$?
13027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028  (exit $ac_status); } &&
13029         { ac_try='test -s conftest$ac_exeext'
13030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031  (eval $ac_try) 2>&5
13032  ac_status=$?
13033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034  (exit $ac_status); }; }; then
13035  eval "$as_ac_var=yes"
13036else
13037  echo "$as_me: failed program was:" >&5
13038cat conftest.$ac_ext >&5
13039eval "$as_ac_var=no"
13040fi
13041rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13042fi
13043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13044echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13045if test `eval echo '${'$as_ac_var'}'` = yes; then
13046  cat >>confdefs.h <<_ACEOF
13047#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13048_ACEOF
13049
13050fi
13051done
13052
13053
13054
13055
13056
13057
13058for ac_func in setresuid setreuid setruid setsid sigaction
13059do
13060as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13061echo "$as_me:$LINENO: checking for $ac_func" >&5
13062echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13063if eval "test \"\${$as_ac_var+set}\" = set"; then
13064  echo $ECHO_N "(cached) $ECHO_C" >&6
13065else
13066  cat >conftest.$ac_ext <<_ACEOF
13067#line $LINENO "configure"
13068#include "confdefs.h"
13069/* System header to define __stub macros and hopefully few prototypes,
13070    which can conflict with char $ac_func (); below.  */
13071#include <assert.h>
13072/* Override any gcc2 internal prototype to avoid an error.  */
13073#ifdef __cplusplus
13074extern "C"
13075#endif
13076/* We use char because int might match the return type of a gcc2
13077   builtin and then its argument prototype would still apply.  */
13078char $ac_func ();
13079char (*f) ();
13080
13081#ifdef F77_DUMMY_MAIN
13082#  ifdef __cplusplus
13083     extern "C"
13084#  endif
13085   int F77_DUMMY_MAIN() { return 1; }
13086#endif
13087int
13088main ()
13089{
13090/* The GNU C library defines this for functions which it implements
13091    to always fail with ENOSYS.  Some functions are actually named
13092    something starting with __ and the normal name is an alias.  */
13093#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13094choke me
13095#else
13096f = $ac_func;
13097#endif
13098
13099  ;
13100  return 0;
13101}
13102_ACEOF
13103rm -f conftest.$ac_objext conftest$ac_exeext
13104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13105  (eval $ac_link) 2>&5
13106  ac_status=$?
13107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108  (exit $ac_status); } &&
13109         { ac_try='test -s conftest$ac_exeext'
13110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111  (eval $ac_try) 2>&5
13112  ac_status=$?
13113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114  (exit $ac_status); }; }; then
13115  eval "$as_ac_var=yes"
13116else
13117  echo "$as_me: failed program was:" >&5
13118cat conftest.$ac_ext >&5
13119eval "$as_ac_var=no"
13120fi
13121rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13122fi
13123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13124echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13125if test `eval echo '${'$as_ac_var'}'` = yes; then
13126  cat >>confdefs.h <<_ACEOF
13127#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13128_ACEOF
13129
13130fi
13131done
13132
13133
13134
13135
13136
13137for ac_func in sigprocmask siglongjmp socketpair strcasecmp
13138do
13139as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13140echo "$as_me:$LINENO: checking for $ac_func" >&5
13141echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13142if eval "test \"\${$as_ac_var+set}\" = set"; then
13143  echo $ECHO_N "(cached) $ECHO_C" >&6
13144else
13145  cat >conftest.$ac_ext <<_ACEOF
13146#line $LINENO "configure"
13147#include "confdefs.h"
13148/* System header to define __stub macros and hopefully few prototypes,
13149    which can conflict with char $ac_func (); below.  */
13150#include <assert.h>
13151/* Override any gcc2 internal prototype to avoid an error.  */
13152#ifdef __cplusplus
13153extern "C"
13154#endif
13155/* We use char because int might match the return type of a gcc2
13156   builtin and then its argument prototype would still apply.  */
13157char $ac_func ();
13158char (*f) ();
13159
13160#ifdef F77_DUMMY_MAIN
13161#  ifdef __cplusplus
13162     extern "C"
13163#  endif
13164   int F77_DUMMY_MAIN() { return 1; }
13165#endif
13166int
13167main ()
13168{
13169/* The GNU C library defines this for functions which it implements
13170    to always fail with ENOSYS.  Some functions are actually named
13171    something starting with __ and the normal name is an alias.  */
13172#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13173choke me
13174#else
13175f = $ac_func;
13176#endif
13177
13178  ;
13179  return 0;
13180}
13181_ACEOF
13182rm -f conftest.$ac_objext conftest$ac_exeext
13183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13184  (eval $ac_link) 2>&5
13185  ac_status=$?
13186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187  (exit $ac_status); } &&
13188         { ac_try='test -s conftest$ac_exeext'
13189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190  (eval $ac_try) 2>&5
13191  ac_status=$?
13192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193  (exit $ac_status); }; }; then
13194  eval "$as_ac_var=yes"
13195else
13196  echo "$as_me: failed program was:" >&5
13197cat conftest.$ac_ext >&5
13198eval "$as_ac_var=no"
13199fi
13200rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13201fi
13202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13203echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13204if test `eval echo '${'$as_ac_var'}'` = yes; then
13205  cat >>confdefs.h <<_ACEOF
13206#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13207_ACEOF
13208
13209fi
13210done
13211
13212
13213
13214
13215
13216
13217
13218for ac_func in strchr strdup strerror strncasecmp sysconf sysinfo
13219do
13220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13221echo "$as_me:$LINENO: checking for $ac_func" >&5
13222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13223if eval "test \"\${$as_ac_var+set}\" = set"; then
13224  echo $ECHO_N "(cached) $ECHO_C" >&6
13225else
13226  cat >conftest.$ac_ext <<_ACEOF
13227#line $LINENO "configure"
13228#include "confdefs.h"
13229/* System header to define __stub macros and hopefully few prototypes,
13230    which can conflict with char $ac_func (); below.  */
13231#include <assert.h>
13232/* Override any gcc2 internal prototype to avoid an error.  */
13233#ifdef __cplusplus
13234extern "C"
13235#endif
13236/* We use char because int might match the return type of a gcc2
13237   builtin and then its argument prototype would still apply.  */
13238char $ac_func ();
13239char (*f) ();
13240
13241#ifdef F77_DUMMY_MAIN
13242#  ifdef __cplusplus
13243     extern "C"
13244#  endif
13245   int F77_DUMMY_MAIN() { return 1; }
13246#endif
13247int
13248main ()
13249{
13250/* The GNU C library defines this for functions which it implements
13251    to always fail with ENOSYS.  Some functions are actually named
13252    something starting with __ and the normal name is an alias.  */
13253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13254choke me
13255#else
13256f = $ac_func;
13257#endif
13258
13259  ;
13260  return 0;
13261}
13262_ACEOF
13263rm -f conftest.$ac_objext conftest$ac_exeext
13264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13265  (eval $ac_link) 2>&5
13266  ac_status=$?
13267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268  (exit $ac_status); } &&
13269         { ac_try='test -s conftest$ac_exeext'
13270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271  (eval $ac_try) 2>&5
13272  ac_status=$?
13273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274  (exit $ac_status); }; }; then
13275  eval "$as_ac_var=yes"
13276else
13277  echo "$as_me: failed program was:" >&5
13278cat conftest.$ac_ext >&5
13279eval "$as_ac_var=no"
13280fi
13281rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13282fi
13283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13284echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13285if test `eval echo '${'$as_ac_var'}'` = yes; then
13286  cat >>confdefs.h <<_ACEOF
13287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13288_ACEOF
13289
13290fi
13291done
13292
13293
13294
13295
13296
13297
13298
13299
13300for ac_func in tcdrain tcflush tcsetattr uname unsetenv wait3 waitpid
13301do
13302as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13303echo "$as_me:$LINENO: checking for $ac_func" >&5
13304echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13305if eval "test \"\${$as_ac_var+set}\" = set"; then
13306  echo $ECHO_N "(cached) $ECHO_C" >&6
13307else
13308  cat >conftest.$ac_ext <<_ACEOF
13309#line $LINENO "configure"
13310#include "confdefs.h"
13311/* System header to define __stub macros and hopefully few prototypes,
13312    which can conflict with char $ac_func (); below.  */
13313#include <assert.h>
13314/* Override any gcc2 internal prototype to avoid an error.  */
13315#ifdef __cplusplus
13316extern "C"
13317#endif
13318/* We use char because int might match the return type of a gcc2
13319   builtin and then its argument prototype would still apply.  */
13320char $ac_func ();
13321char (*f) ();
13322
13323#ifdef F77_DUMMY_MAIN
13324#  ifdef __cplusplus
13325     extern "C"
13326#  endif
13327   int F77_DUMMY_MAIN() { return 1; }
13328#endif
13329int
13330main ()
13331{
13332/* The GNU C library defines this for functions which it implements
13333    to always fail with ENOSYS.  Some functions are actually named
13334    something starting with __ and the normal name is an alias.  */
13335#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13336choke me
13337#else
13338f = $ac_func;
13339#endif
13340
13341  ;
13342  return 0;
13343}
13344_ACEOF
13345rm -f conftest.$ac_objext conftest$ac_exeext
13346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13347  (eval $ac_link) 2>&5
13348  ac_status=$?
13349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350  (exit $ac_status); } &&
13351         { ac_try='test -s conftest$ac_exeext'
13352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353  (eval $ac_try) 2>&5
13354  ac_status=$?
13355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356  (exit $ac_status); }; }; then
13357  eval "$as_ac_var=yes"
13358else
13359  echo "$as_me: failed program was:" >&5
13360cat conftest.$ac_ext >&5
13361eval "$as_ac_var=no"
13362fi
13363rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13364fi
13365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13366echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13367if test `eval echo '${'$as_ac_var'}'` = yes; then
13368  cat >>confdefs.h <<_ACEOF
13369#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13370_ACEOF
13371
13372fi
13373done
13374
13375
13376if test ! "$ac_cv_func_setreuid" = yes -a ! "$ac_cv_func_seteuid" = yes -a ! "$ac_cv_func_setresuid" = yes; then
13377	echo "WARNING: missing setreuid(), seteuid(), and setresuid()"
13378fi
13379
13380
13381
13382for ac_header in unistd.h vfork.h
13383do
13384as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13385if eval "test \"\${$as_ac_Header+set}\" = set"; then
13386  echo "$as_me:$LINENO: checking for $ac_header" >&5
13387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13388if eval "test \"\${$as_ac_Header+set}\" = set"; then
13389  echo $ECHO_N "(cached) $ECHO_C" >&6
13390fi
13391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13393else
13394  # Is the header compilable?
13395echo "$as_me:$LINENO: checking $ac_header usability" >&5
13396echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13397cat >conftest.$ac_ext <<_ACEOF
13398#line $LINENO "configure"
13399#include "confdefs.h"
13400$ac_includes_default
13401#include <$ac_header>
13402_ACEOF
13403rm -f conftest.$ac_objext
13404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13405  (eval $ac_compile) 2>&5
13406  ac_status=$?
13407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408  (exit $ac_status); } &&
13409         { ac_try='test -s conftest.$ac_objext'
13410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411  (eval $ac_try) 2>&5
13412  ac_status=$?
13413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414  (exit $ac_status); }; }; then
13415  ac_header_compiler=yes
13416else
13417  echo "$as_me: failed program was:" >&5
13418cat conftest.$ac_ext >&5
13419ac_header_compiler=no
13420fi
13421rm -f conftest.$ac_objext conftest.$ac_ext
13422echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13423echo "${ECHO_T}$ac_header_compiler" >&6
13424
13425# Is the header present?
13426echo "$as_me:$LINENO: checking $ac_header presence" >&5
13427echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13428cat >conftest.$ac_ext <<_ACEOF
13429#line $LINENO "configure"
13430#include "confdefs.h"
13431#include <$ac_header>
13432_ACEOF
13433if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13434  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13435  ac_status=$?
13436  egrep -v '^ *\+' conftest.er1 >conftest.err
13437  rm -f conftest.er1
13438  cat conftest.err >&5
13439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440  (exit $ac_status); } >/dev/null; then
13441  if test -s conftest.err; then
13442    ac_cpp_err=$ac_c_preproc_warn_flag
13443  else
13444    ac_cpp_err=
13445  fi
13446else
13447  ac_cpp_err=yes
13448fi
13449if test -z "$ac_cpp_err"; then
13450  ac_header_preproc=yes
13451else
13452  echo "$as_me: failed program was:" >&5
13453  cat conftest.$ac_ext >&5
13454  ac_header_preproc=no
13455fi
13456rm -f conftest.err conftest.$ac_ext
13457echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13458echo "${ECHO_T}$ac_header_preproc" >&6
13459
13460# So?  What about this header?
13461case $ac_header_compiler:$ac_header_preproc in
13462  yes:no )
13463    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13464echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13465    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13466echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13467  no:yes )
13468    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13469echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13470    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13471echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13472    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13473echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13474esac
13475echo "$as_me:$LINENO: checking for $ac_header" >&5
13476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13477if eval "test \"\${$as_ac_Header+set}\" = set"; then
13478  echo $ECHO_N "(cached) $ECHO_C" >&6
13479else
13480  eval "$as_ac_Header=$ac_header_preproc"
13481fi
13482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13484
13485fi
13486if test `eval echo '${'$as_ac_Header'}'` = yes; then
13487  cat >>confdefs.h <<_ACEOF
13488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13489_ACEOF
13490
13491fi
13492
13493done
13494
13495
13496
13497for ac_func in fork vfork
13498do
13499as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13500echo "$as_me:$LINENO: checking for $ac_func" >&5
13501echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13502if eval "test \"\${$as_ac_var+set}\" = set"; then
13503  echo $ECHO_N "(cached) $ECHO_C" >&6
13504else
13505  cat >conftest.$ac_ext <<_ACEOF
13506#line $LINENO "configure"
13507#include "confdefs.h"
13508/* System header to define __stub macros and hopefully few prototypes,
13509    which can conflict with char $ac_func (); below.  */
13510#include <assert.h>
13511/* Override any gcc2 internal prototype to avoid an error.  */
13512#ifdef __cplusplus
13513extern "C"
13514#endif
13515/* We use char because int might match the return type of a gcc2
13516   builtin and then its argument prototype would still apply.  */
13517char $ac_func ();
13518char (*f) ();
13519
13520#ifdef F77_DUMMY_MAIN
13521#  ifdef __cplusplus
13522     extern "C"
13523#  endif
13524   int F77_DUMMY_MAIN() { return 1; }
13525#endif
13526int
13527main ()
13528{
13529/* The GNU C library defines this for functions which it implements
13530    to always fail with ENOSYS.  Some functions are actually named
13531    something starting with __ and the normal name is an alias.  */
13532#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13533choke me
13534#else
13535f = $ac_func;
13536#endif
13537
13538  ;
13539  return 0;
13540}
13541_ACEOF
13542rm -f conftest.$ac_objext conftest$ac_exeext
13543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13544  (eval $ac_link) 2>&5
13545  ac_status=$?
13546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547  (exit $ac_status); } &&
13548         { ac_try='test -s conftest$ac_exeext'
13549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550  (eval $ac_try) 2>&5
13551  ac_status=$?
13552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553  (exit $ac_status); }; }; then
13554  eval "$as_ac_var=yes"
13555else
13556  echo "$as_me: failed program was:" >&5
13557cat conftest.$ac_ext >&5
13558eval "$as_ac_var=no"
13559fi
13560rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13561fi
13562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13563echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13564if test `eval echo '${'$as_ac_var'}'` = yes; then
13565  cat >>confdefs.h <<_ACEOF
13566#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13567_ACEOF
13568
13569fi
13570done
13571
13572ac_cv_func_fork_works=$ac_cv_func_fork
13573if test "x$ac_cv_func_fork" = xyes; then
13574  echo "$as_me:$LINENO: checking for working fork" >&5
13575echo $ECHO_N "checking for working fork... $ECHO_C" >&6
13576if test "${ac_cv_func_fork_works+set}" = set; then
13577  echo $ECHO_N "(cached) $ECHO_C" >&6
13578else
13579  if test "$cross_compiling" = yes; then
13580  ac_cv_func_fork_works=cross
13581else
13582  cat >conftest.$ac_ext <<_ACEOF
13583/* By Ruediger Kuhlmann. */
13584      #include <sys/types.h>
13585      #if HAVE_UNISTD_H
13586      # include <unistd.h>
13587      #endif
13588      /* Some systems only have a dummy stub for fork() */
13589      int main ()
13590      {
13591        if (fork() < 0)
13592          exit (1);
13593        exit (0);
13594      }
13595_ACEOF
13596rm -f conftest$ac_exeext
13597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13598  (eval $ac_link) 2>&5
13599  ac_status=$?
13600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603  (eval $ac_try) 2>&5
13604  ac_status=$?
13605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606  (exit $ac_status); }; }; then
13607  ac_cv_func_fork_works=yes
13608else
13609  echo "$as_me: program exited with status $ac_status" >&5
13610echo "$as_me: failed program was:" >&5
13611cat conftest.$ac_ext >&5
13612( exit $ac_status )
13613ac_cv_func_fork_works=no
13614fi
13615rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13616fi
13617fi
13618echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
13619echo "${ECHO_T}$ac_cv_func_fork_works" >&6
13620
13621fi
13622if test "x$ac_cv_func_fork_works" = xcross; then
13623  case $host in
13624    *-*-amigaos* | *-*-msdosdjgpp*)
13625      # Override, as these systems have only a dummy fork() stub
13626      ac_cv_func_fork_works=no
13627      ;;
13628    *)
13629      ac_cv_func_fork_works=yes
13630      ;;
13631  esac
13632  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13633echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13634fi
13635ac_cv_func_vfork_works=$ac_cv_func_vfork
13636if test "x$ac_cv_func_vfork" = xyes; then
13637  echo "$as_me:$LINENO: checking for working vfork" >&5
13638echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
13639if test "${ac_cv_func_vfork_works+set}" = set; then
13640  echo $ECHO_N "(cached) $ECHO_C" >&6
13641else
13642  if test "$cross_compiling" = yes; then
13643  ac_cv_func_vfork_works=cross
13644else
13645  cat >conftest.$ac_ext <<_ACEOF
13646#line $LINENO "configure"
13647#include "confdefs.h"
13648/* Thanks to Paul Eggert for this test.  */
13649#include <stdio.h>
13650#include <sys/types.h>
13651#include <sys/stat.h>
13652#if HAVE_UNISTD_H
13653# include <unistd.h>
13654#endif
13655#if HAVE_VFORK_H
13656# include <vfork.h>
13657#endif
13658/* On some sparc systems, changes by the child to local and incoming
13659   argument registers are propagated back to the parent.  The compiler
13660   is told about this with #include <vfork.h>, but some compilers
13661   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
13662   static variable whose address is put into a register that is
13663   clobbered by the vfork.  */
13664static
13665#ifdef __cplusplus
13666sparc_address_test (int arg)
13667# else
13668sparc_address_test (arg) int arg;
13669#endif
13670{
13671  static pid_t child;
13672  if (!child) {
13673    child = vfork ();
13674    if (child < 0) {
13675      perror ("vfork");
13676      _exit(2);
13677    }
13678    if (!child) {
13679      arg = getpid();
13680      write(-1, "", 0);
13681      _exit (arg);
13682    }
13683  }
13684}
13685
13686int
13687main ()
13688{
13689  pid_t parent = getpid ();
13690  pid_t child;
13691
13692  sparc_address_test ();
13693
13694  child = vfork ();
13695
13696  if (child == 0) {
13697    /* Here is another test for sparc vfork register problems.  This
13698       test uses lots of local variables, at least as many local
13699       variables as main has allocated so far including compiler
13700       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
13701       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
13702       reuse the register of parent for one of the local variables,
13703       since it will think that parent can't possibly be used any more
13704       in this routine.  Assigning to the local variable will thus
13705       munge parent in the parent process.  */
13706    pid_t
13707      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13708      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13709    /* Convince the compiler that p..p7 are live; otherwise, it might
13710       use the same hardware register for all 8 local variables.  */
13711    if (p != p1 || p != p2 || p != p3 || p != p4
13712	|| p != p5 || p != p6 || p != p7)
13713      _exit(1);
13714
13715    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13716       from child file descriptors.  If the child closes a descriptor
13717       before it execs or exits, this munges the parent's descriptor
13718       as well.  Test for this by closing stdout in the child.  */
13719    _exit(close(fileno(stdout)) != 0);
13720  } else {
13721    int status;
13722    struct stat st;
13723
13724    while (wait(&status) != child)
13725      ;
13726    exit(
13727	 /* Was there some problem with vforking?  */
13728	 child < 0
13729
13730	 /* Did the child fail?  (This shouldn't happen.)  */
13731	 || status
13732
13733	 /* Did the vfork/compiler bug occur?  */
13734	 || parent != getpid()
13735
13736	 /* Did the file descriptor bug occur?  */
13737	 || fstat(fileno(stdout), &st) != 0
13738	 );
13739  }
13740}
13741_ACEOF
13742rm -f conftest$ac_exeext
13743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13744  (eval $ac_link) 2>&5
13745  ac_status=$?
13746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749  (eval $ac_try) 2>&5
13750  ac_status=$?
13751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752  (exit $ac_status); }; }; then
13753  ac_cv_func_vfork_works=yes
13754else
13755  echo "$as_me: program exited with status $ac_status" >&5
13756echo "$as_me: failed program was:" >&5
13757cat conftest.$ac_ext >&5
13758( exit $ac_status )
13759ac_cv_func_vfork_works=no
13760fi
13761rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13762fi
13763fi
13764echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
13765echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
13766
13767fi;
13768if test "x$ac_cv_func_fork_works" = xcross; then
13769  ac_cv_func_vfork_works=ac_cv_func_vfork
13770  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13771echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13772fi
13773
13774if test "x$ac_cv_func_vfork_works" = xyes; then
13775
13776cat >>confdefs.h <<\_ACEOF
13777#define HAVE_WORKING_VFORK 1
13778_ACEOF
13779
13780else
13781
13782cat >>confdefs.h <<\_ACEOF
13783#define vfork fork
13784_ACEOF
13785
13786fi
13787if test "x$ac_cv_func_fork_works" = xyes; then
13788
13789cat >>confdefs.h <<\_ACEOF
13790#define HAVE_WORKING_FORK 1
13791_ACEOF
13792
13793fi
13794
13795
13796for ac_func in vprintf
13797do
13798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13799echo "$as_me:$LINENO: checking for $ac_func" >&5
13800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13801if eval "test \"\${$as_ac_var+set}\" = set"; then
13802  echo $ECHO_N "(cached) $ECHO_C" >&6
13803else
13804  cat >conftest.$ac_ext <<_ACEOF
13805#line $LINENO "configure"
13806#include "confdefs.h"
13807/* System header to define __stub macros and hopefully few prototypes,
13808    which can conflict with char $ac_func (); below.  */
13809#include <assert.h>
13810/* Override any gcc2 internal prototype to avoid an error.  */
13811#ifdef __cplusplus
13812extern "C"
13813#endif
13814/* We use char because int might match the return type of a gcc2
13815   builtin and then its argument prototype would still apply.  */
13816char $ac_func ();
13817char (*f) ();
13818
13819#ifdef F77_DUMMY_MAIN
13820#  ifdef __cplusplus
13821     extern "C"
13822#  endif
13823   int F77_DUMMY_MAIN() { return 1; }
13824#endif
13825int
13826main ()
13827{
13828/* The GNU C library defines this for functions which it implements
13829    to always fail with ENOSYS.  Some functions are actually named
13830    something starting with __ and the normal name is an alias.  */
13831#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13832choke me
13833#else
13834f = $ac_func;
13835#endif
13836
13837  ;
13838  return 0;
13839}
13840_ACEOF
13841rm -f conftest.$ac_objext conftest$ac_exeext
13842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13843  (eval $ac_link) 2>&5
13844  ac_status=$?
13845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846  (exit $ac_status); } &&
13847         { ac_try='test -s conftest$ac_exeext'
13848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849  (eval $ac_try) 2>&5
13850  ac_status=$?
13851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852  (exit $ac_status); }; }; then
13853  eval "$as_ac_var=yes"
13854else
13855  echo "$as_me: failed program was:" >&5
13856cat conftest.$ac_ext >&5
13857eval "$as_ac_var=no"
13858fi
13859rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13860fi
13861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13862echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13863if test `eval echo '${'$as_ac_var'}'` = yes; then
13864  cat >>confdefs.h <<_ACEOF
13865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13866_ACEOF
13867
13868echo "$as_me:$LINENO: checking for _doprnt" >&5
13869echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13870if test "${ac_cv_func__doprnt+set}" = set; then
13871  echo $ECHO_N "(cached) $ECHO_C" >&6
13872else
13873  cat >conftest.$ac_ext <<_ACEOF
13874#line $LINENO "configure"
13875#include "confdefs.h"
13876/* System header to define __stub macros and hopefully few prototypes,
13877    which can conflict with char _doprnt (); below.  */
13878#include <assert.h>
13879/* Override any gcc2 internal prototype to avoid an error.  */
13880#ifdef __cplusplus
13881extern "C"
13882#endif
13883/* We use char because int might match the return type of a gcc2
13884   builtin and then its argument prototype would still apply.  */
13885char _doprnt ();
13886char (*f) ();
13887
13888#ifdef F77_DUMMY_MAIN
13889#  ifdef __cplusplus
13890     extern "C"
13891#  endif
13892   int F77_DUMMY_MAIN() { return 1; }
13893#endif
13894int
13895main ()
13896{
13897/* The GNU C library defines this for functions which it implements
13898    to always fail with ENOSYS.  Some functions are actually named
13899    something starting with __ and the normal name is an alias.  */
13900#if defined (__stub__doprnt) || defined (__stub____doprnt)
13901choke me
13902#else
13903f = _doprnt;
13904#endif
13905
13906  ;
13907  return 0;
13908}
13909_ACEOF
13910rm -f conftest.$ac_objext conftest$ac_exeext
13911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13912  (eval $ac_link) 2>&5
13913  ac_status=$?
13914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915  (exit $ac_status); } &&
13916         { ac_try='test -s conftest$ac_exeext'
13917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918  (eval $ac_try) 2>&5
13919  ac_status=$?
13920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921  (exit $ac_status); }; }; then
13922  ac_cv_func__doprnt=yes
13923else
13924  echo "$as_me: failed program was:" >&5
13925cat conftest.$ac_ext >&5
13926ac_cv_func__doprnt=no
13927fi
13928rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13929fi
13930echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13931echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13932if test $ac_cv_func__doprnt = yes; then
13933
13934cat >>confdefs.h <<\_ACEOF
13935#define HAVE_DOPRNT 1
13936_ACEOF
13937
13938fi
13939
13940fi
13941done
13942
13943
13944
13945
13946
13947echo "$as_me:$LINENO: checking how to manipulate tty attributes" >&5
13948echo $ECHO_N "checking how to manipulate tty attributes... $ECHO_C" >&6
13949if test "${ac_cv_struct_term+set}" = set; then
13950  echo $ECHO_N "(cached) $ECHO_C" >&6
13951else
13952
13953
13954if test "$ac_cv_header_termios_h" = yes; then
13955	ac_cv_struct_term=termios
13956fi
13957if test "$ac_cv_header_sys_termios_h" = yes; then
13958	ac_cv_struct_term=termios
13959fi
13960
13961if test -z "$ac_cv_struct_term" ; then
13962cat >conftest.$ac_ext <<_ACEOF
13963#line $LINENO "configure"
13964#include "confdefs.h"
13965
13966#ifdef HAVE_TERMIO_H
13967#include <termio.h>
13968#endif
13969#ifdef HAVE_SYS_TERMIO_H
13970#include <sys/termio.h>
13971#endif
13972#ifdef F77_DUMMY_MAIN
13973#  ifdef __cplusplus
13974     extern "C"
13975#  endif
13976   int F77_DUMMY_MAIN() { return 1; }
13977#endif
13978int
13979main ()
13980{
13981struct termio t;t.c_iflag = 0
13982  ;
13983  return 0;
13984}
13985_ACEOF
13986rm -f conftest.$ac_objext
13987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13988  (eval $ac_compile) 2>&5
13989  ac_status=$?
13990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991  (exit $ac_status); } &&
13992         { ac_try='test -s conftest.$ac_objext'
13993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994  (eval $ac_try) 2>&5
13995  ac_status=$?
13996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997  (exit $ac_status); }; }; then
13998  ac_cv_struct_term=termio
13999else
14000  echo "$as_me: failed program was:" >&5
14001cat conftest.$ac_ext >&5
14002fi
14003rm -f conftest.$ac_objext conftest.$ac_ext
14004fi
14005
14006if test -z "$ac_cv_struct_term" ; then
14007    cat >conftest.$ac_ext <<_ACEOF
14008#line $LINENO "configure"
14009#include "confdefs.h"
14010#include <sgtty.h>
14011#ifdef F77_DUMMY_MAIN
14012#  ifdef __cplusplus
14013     extern "C"
14014#  endif
14015   int F77_DUMMY_MAIN() { return 1; }
14016#endif
14017int
14018main ()
14019{
14020
14021    struct sgttyb s;s.sg_flags = 0
14022  ;
14023  return 0;
14024}
14025_ACEOF
14026rm -f conftest.$ac_objext
14027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14028  (eval $ac_compile) 2>&5
14029  ac_status=$?
14030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031  (exit $ac_status); } &&
14032         { ac_try='test -s conftest.$ac_objext'
14033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034  (eval $ac_try) 2>&5
14035  ac_status=$?
14036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037  (exit $ac_status); }; }; then
14038  ac_cv_struct_term=sgttyb
14039else
14040  echo "$as_me: failed program was:" >&5
14041cat conftest.$ac_ext >&5
14042fi
14043rm -f conftest.$ac_objext conftest.$ac_ext
14044fi
14045if test -z "$ac_cv_struct_term" ; then
14046	ac_cv_struct_term=UNDEFINED
14047fi
14048
14049fi
14050echo "$as_me:$LINENO: result: $ac_cv_struct_term" >&5
14051echo "${ECHO_T}$ac_cv_struct_term" >&6
14052if test "$ac_cv_struct_term" = "sgttyb"; then
14053
14054cat >>confdefs.h <<\_ACEOF
14055#define USE_SGTTYB 1
14056_ACEOF
14057
14058
14059cat >>confdefs.h <<\_ACEOF
14060#define USE_STTY SGTTYB
14061_ACEOF
14062
14063fi
14064if test "$ac_cv_struct_term" = "termio"; then
14065
14066cat >>confdefs.h <<\_ACEOF
14067#define USE_TERMIO 1
14068_ACEOF
14069
14070
14071cat >>confdefs.h <<\_ACEOF
14072#define USE_STTY TERMIO
14073_ACEOF
14074
14075fi
14076if test "$ac_cv_struct_term" = "termios"; then
14077
14078cat >>confdefs.h <<\_ACEOF
14079#define USE_TERMIOS 1
14080_ACEOF
14081
14082
14083cat >>confdefs.h <<\_ACEOF
14084#define USE_STTY TERMIOS
14085_ACEOF
14086
14087	if test "$ac_cv_header_sys_termiox_h" = yes; then
14088
14089cat >>confdefs.h <<\_ACEOF
14090#define USE_TERMIOX 1
14091_ACEOF
14092
14093	fi
14094fi
14095
14096
14097echo "$as_me:$LINENO: checking checking for struct exec" >&5
14098echo $ECHO_N "checking checking for struct exec... $ECHO_C" >&6
14099if test "${ac_cv_struct_exec+set}" = set; then
14100  echo $ECHO_N "(cached) $ECHO_C" >&6
14101else
14102
14103ac_cv_struct_exec=no
14104if test "$ac_cv_header_a_out_h" != no ; then
14105  cat >conftest.$ac_ext <<_ACEOF
14106#line $LINENO "configure"
14107#include "confdefs.h"
14108
14109#include <sys/types.h>
14110#include <a.out.h>
14111#ifdef F77_DUMMY_MAIN
14112#  ifdef __cplusplus
14113     extern "C"
14114#  endif
14115   int F77_DUMMY_MAIN() { return 1; }
14116#endif
14117int
14118main ()
14119{
14120struct exec b; b.a_text = 0
14121  ;
14122  return 0;
14123}
14124_ACEOF
14125rm -f conftest.$ac_objext
14126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14127  (eval $ac_compile) 2>&5
14128  ac_status=$?
14129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130  (exit $ac_status); } &&
14131         { ac_try='test -s conftest.$ac_objext'
14132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133  (eval $ac_try) 2>&5
14134  ac_status=$?
14135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136  (exit $ac_status); }; }; then
14137  ac_cv_struct_exec=yes
14138else
14139  echo "$as_me: failed program was:" >&5
14140cat conftest.$ac_ext >&5
14141ac_cv_struct_exec=no
14142fi
14143rm -f conftest.$ac_objext conftest.$ac_ext
14144fi
14145
14146fi
14147echo "$as_me:$LINENO: result: $ac_cv_struct_exec" >&5
14148echo "${ECHO_T}$ac_cv_struct_exec" >&6
14149if test "$ac_cv_struct_exec" = yes; then
14150
14151cat >>confdefs.h <<\_ACEOF
14152#define HAVE_STRUCT_EXEC 1
14153_ACEOF
14154
14155fi
14156
14157
14158
14159echo "$as_me:$LINENO: checking checking for long long" >&5
14160echo $ECHO_N "checking checking for long long... $ECHO_C" >&6
14161if test "${ac_cv_long_long+set}" = set; then
14162  echo $ECHO_N "(cached) $ECHO_C" >&6
14163else
14164
14165cat >conftest.$ac_ext <<_ACEOF
14166#line $LINENO "configure"
14167#include "confdefs.h"
14168
14169#include <sys/types.h>
14170
14171#ifdef F77_DUMMY_MAIN
14172#  ifdef __cplusplus
14173     extern "C"
14174#  endif
14175   int F77_DUMMY_MAIN() { return 1; }
14176#endif
14177int
14178main ()
14179{
14180long long x; x = 0
14181  ;
14182  return 0;
14183}
14184_ACEOF
14185rm -f conftest.$ac_objext
14186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14187  (eval $ac_compile) 2>&5
14188  ac_status=$?
14189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190  (exit $ac_status); } &&
14191         { ac_try='test -s conftest.$ac_objext'
14192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193  (eval $ac_try) 2>&5
14194  ac_status=$?
14195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196  (exit $ac_status); }; }; then
14197  ac_cv_long_long=yes
14198else
14199  echo "$as_me: failed program was:" >&5
14200cat conftest.$ac_ext >&5
14201ac_cv_long_long=no
14202fi
14203rm -f conftest.$ac_objext conftest.$ac_ext
14204
14205fi
14206echo "$as_me:$LINENO: result: $ac_cv_long_long" >&5
14207echo "${ECHO_T}$ac_cv_long_long" >&6
14208if test "$ac_cv_long_long" = yes; then
14209
14210cat >>confdefs.h <<\_ACEOF
14211#define HAVE_LONG_LONG 1
14212_ACEOF
14213
14214fi
14215
14216
14217
14218echo "$as_me:$LINENO: checking checking for lseek prototype" >&5
14219echo $ECHO_N "checking checking for lseek prototype... $ECHO_C" >&6
14220if test "${ac_cv_lseek_proto+set}" = set; then
14221  echo $ECHO_N "(cached) $ECHO_C" >&6
14222else
14223
14224cat >conftest.$ac_ext <<_ACEOF
14225#line $LINENO "configure"
14226#include "confdefs.h"
14227
14228#ifdef HAVE_CTYPES_H
14229#include <ctypes.h>
14230#endif
14231#ifdef HAVE_SYS_TYPES_H
14232#include <sys/types.h>
14233#endif
14234#ifdef HAVE_SYS_UNISTD_H
14235#include <sys/unistd.h>
14236#endif
14237
14238#ifdef F77_DUMMY_MAIN
14239#  ifdef __cplusplus
14240     extern "C"
14241#  endif
14242   int F77_DUMMY_MAIN() { return 1; }
14243#endif
14244int
14245main ()
14246{
14247off_t x; x = lseek(0,"test",SEEK_SET);
14248  ;
14249  return 0;
14250}
14251_ACEOF
14252rm -f conftest.$ac_objext
14253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14254  (eval $ac_compile) 2>&5
14255  ac_status=$?
14256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257  (exit $ac_status); } &&
14258         { ac_try='test -s conftest.$ac_objext'
14259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260  (eval $ac_try) 2>&5
14261  ac_status=$?
14262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263  (exit $ac_status); }; }; then
14264  ac_cv_lseek_proto=no
14265else
14266  echo "$as_me: failed program was:" >&5
14267cat conftest.$ac_ext >&5
14268ac_cv_lseek_proto=yes
14269fi
14270rm -f conftest.$ac_objext conftest.$ac_ext
14271
14272fi
14273echo "$as_me:$LINENO: result: $ac_cv_lseek_proto" >&5
14274echo "${ECHO_T}$ac_cv_lseek_proto" >&6
14275if test "$ac_cv_lseek_proto" = yes; then
14276
14277cat >>confdefs.h <<\_ACEOF
14278#define HAVE_LSEEK_PROTO 1
14279_ACEOF
14280
14281fi
14282
14283
14284echo "$as_me:$LINENO: checking how to get filesystem free space" >&5
14285echo $ECHO_N "checking how to get filesystem free space... $ECHO_C" >&6
14286if test "${ac_cv_struct_fstype+set}" = set; then
14287  echo $ECHO_N "(cached) $ECHO_C" >&6
14288else
14289
14290fstype=
14291
14292if test "$ac_cv_func_statvfs" != no ; then		#{
14293  cat >conftest.$ac_ext <<_ACEOF
14294#line $LINENO "configure"
14295#include "confdefs.h"
14296
14297#ifdef HAVE_CTYPES_H
14298#include <ctypes.h>
14299#endif
14300#include <sys/types.h>
14301#include <sys/param.h>
14302#ifdef HAVE_SYS_STATVFS_H
14303# include <sys/statvfs.h>
14304#endif
14305#ifdef HAVE_SYS_STATFS_H
14306# include <sys/statfs.h>
14307#endif
14308
14309#ifdef HAVE_SYS_MOUNT_H
14310# include <sys/mount.h>
14311#endif
14312#ifdef HAVE_SYS_VFS_H
14313# include <sys/vfs.h>
14314#endif
14315#ifdef F77_DUMMY_MAIN
14316#  ifdef __cplusplus
14317     extern "C"
14318#  endif
14319   int F77_DUMMY_MAIN() { return 1; }
14320#endif
14321int
14322main ()
14323{
14324struct statvfs s; statvfs ("/", &s); return(s.f_bavail+s.f_bsize)
14325  ;
14326  return 0;
14327}
14328_ACEOF
14329rm -f conftest.$ac_objext
14330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14331  (eval $ac_compile) 2>&5
14332  ac_status=$?
14333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334  (exit $ac_status); } &&
14335         { ac_try='test -s conftest.$ac_objext'
14336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337  (eval $ac_try) 2>&5
14338  ac_status=$?
14339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340  (exit $ac_status); }; }; then
14341  fstype=statvfs
14342else
14343  echo "$as_me: failed program was:" >&5
14344cat conftest.$ac_ext >&5
14345fi
14346rm -f conftest.$ac_objext conftest.$ac_ext
14347fi							#}
14348
14349
14350if test "$ac_cv_func_statfs" != no ; then		#{
14351  if test -z "$fstype" ; then				#{
14352    cat >conftest.$ac_ext <<_ACEOF
14353#line $LINENO "configure"
14354#include "confdefs.h"
14355
14356#ifdef HAVE_CTYPES_H
14357#include <ctypes.h>
14358#endif
14359#include <sys/types.h>
14360#include <sys/param.h>
14361#ifdef HAVE_SYS_STATFS_H
14362# include <sys/statfs.h>
14363#endif
14364
14365#ifdef HAVE_SYS_STATVFS_H
14366# include <sys/statvfs.h>
14367#endif
14368#ifdef HAVE_SYS_MOUNT_H
14369# include <sys/mount.h>
14370#endif
14371#ifdef HAVE_SYS_VFS_H
14372# include <sys/vfs.h>
14373#endif
14374#ifdef F77_DUMMY_MAIN
14375#  ifdef __cplusplus
14376     extern "C"
14377#  endif
14378   int F77_DUMMY_MAIN() { return 1; }
14379#endif
14380int
14381main ()
14382{
14383struct fs_data s; return(s.fd_bfree+s.fd_bsize)
14384  ;
14385  return 0;
14386}
14387_ACEOF
14388rm -f conftest.$ac_objext
14389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14390  (eval $ac_compile) 2>&5
14391  ac_status=$?
14392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393  (exit $ac_status); } &&
14394         { ac_try='test -s conftest.$ac_objext'
14395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396  (eval $ac_try) 2>&5
14397  ac_status=$?
14398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399  (exit $ac_status); }; }; then
14400  fstype=Ultrix-statfs
14401else
14402  echo "$as_me: failed program was:" >&5
14403cat conftest.$ac_ext >&5
14404fi
14405rm -f conftest.$ac_objext conftest.$ac_ext
14406  fi							#}
14407
14408  if test -z "$fstype" ; then				#{
14409    cat >conftest.$ac_ext <<_ACEOF
14410#line $LINENO "configure"
14411#include "confdefs.h"
14412
14413#ifdef HAVE_CTYPES_H
14414#include <ctypes.h>
14415#endif
14416#include <sys/types.h>
14417#include <sys/param.h>
14418#ifdef HAVE_SYS_STATFS_H
14419#include <sys/statfs.h>
14420#endif
14421#ifdef HAVE_SYS_MOUNT_H
14422#include <sys/mount.h>
14423#endif
14424#ifdef HAVE_SYS_VFS_H
14425#include <sys/vfs.h>
14426#endif
14427#ifdef F77_DUMMY_MAIN
14428#  ifdef __cplusplus
14429     extern "C"
14430#  endif
14431   int F77_DUMMY_MAIN() { return 1; }
14432#endif
14433int
14434main ()
14435{
14436struct statfs s; return(s.f_bavail+s.f_bsize)
14437  ;
14438  return 0;
14439}
14440_ACEOF
14441rm -f conftest.$ac_objext
14442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14443  (eval $ac_compile) 2>&5
14444  ac_status=$?
14445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446  (exit $ac_status); } &&
14447         { ac_try='test -s conftest.$ac_objext'
14448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449  (eval $ac_try) 2>&5
14450  ac_status=$?
14451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452  (exit $ac_status); }; }; then
14453  fstype=statfs
14454else
14455  echo "$as_me: failed program was:" >&5
14456cat conftest.$ac_ext >&5
14457fi
14458rm -f conftest.$ac_objext conftest.$ac_ext
14459  fi							# }
14460
14461  if test -z "$fstype" ; then				# {
14462    cat >conftest.$ac_ext <<_ACEOF
14463#line $LINENO "configure"
14464#include "confdefs.h"
14465
14466#ifdef HAVE_CTYPES_H
14467#include <ctypes.h>
14468#endif
14469#include <sys/types.h>
14470#include <sys/param.h>
14471#ifdef HAVE_SYS_STATFS_H
14472#include <sys/statfs.h>
14473#endif
14474#ifdef HAVE_SYS_MOUNT_H
14475#include <sys/mount.h>
14476#endif
14477#ifdef HAVE_SYS_VFS_H
14478#include <sys/vfs.h>
14479#endif
14480#ifdef F77_DUMMY_MAIN
14481#  ifdef __cplusplus
14482     extern "C"
14483#  endif
14484   int F77_DUMMY_MAIN() { return 1; }
14485#endif
14486int
14487main ()
14488{
14489struct statfs s; return(s.f_bfree+s.f_bsize)
14490  ;
14491  return 0;
14492}
14493_ACEOF
14494rm -f conftest.$ac_objext
14495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14496  (eval $ac_compile) 2>&5
14497  ac_status=$?
14498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499  (exit $ac_status); } &&
14500         { ac_try='test -s conftest.$ac_objext'
14501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502  (eval $ac_try) 2>&5
14503  ac_status=$?
14504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505  (exit $ac_status); }; }; then
14506  fstype=SVR3-statfs
14507else
14508  echo "$as_me: failed program was:" >&5
14509cat conftest.$ac_ext >&5
14510fi
14511rm -f conftest.$ac_objext conftest.$ac_ext
14512  fi							# }
14513fi							# }
14514
14515if test -z "$fstype" ; then
14516    echo "cannot find a valid statfs-like structure!"
14517	fstype=UNKNOWN
14518fi
14519
14520ac_cv_struct_fstype=$fstype
14521
14522
14523fi
14524echo "$as_me:$LINENO: result: $ac_cv_struct_fstype" >&5
14525echo "${ECHO_T}$ac_cv_struct_fstype" >&6
14526
14527if test "$ac_cv_struct_fstype" = SVR3-statfs; then
14528
14529cat >>confdefs.h <<\_ACEOF
14530#define USE_STATFS_TYPE SVR3_STATFS
14531_ACEOF
14532
14533fi
14534if test "$ac_cv_struct_fstype" = Ultrix-statfs; then
14535
14536cat >>confdefs.h <<\_ACEOF
14537#define USE_STATFS_TYPE ULTRIX_STATFS
14538_ACEOF
14539
14540fi
14541if test "$ac_cv_struct_fstype" = statfs; then
14542
14543cat >>confdefs.h <<\_ACEOF
14544#define USE_STATFS_TYPE STATFS
14545_ACEOF
14546
14547fi
14548if test "$ac_cv_struct_fstype" = statvfs; then
14549
14550cat >>confdefs.h <<\_ACEOF
14551#define USE_STATFS_TYPE STATVFS
14552_ACEOF
14553
14554fi
14555
14556
14557echo "$as_me:$LINENO: checking for errno" >&5
14558echo $ECHO_N "checking for errno... $ECHO_C" >&6
14559if test "${ac_cv_errno+set}" = set; then
14560  echo $ECHO_N "(cached) $ECHO_C" >&6
14561else
14562
14563cat >conftest.$ac_ext <<_ACEOF
14564#line $LINENO "configure"
14565#include "confdefs.h"
14566
14567#ifdef F77_DUMMY_MAIN
14568#  ifdef __cplusplus
14569     extern "C"
14570#  endif
14571   int F77_DUMMY_MAIN() { return 1; }
14572#endif
14573int
14574main ()
14575{
14576extern int errno; return (errno);
14577  ;
14578  return 0;
14579}
14580_ACEOF
14581rm -f conftest.$ac_objext conftest$ac_exeext
14582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14583  (eval $ac_link) 2>&5
14584  ac_status=$?
14585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586  (exit $ac_status); } &&
14587         { ac_try='test -s conftest$ac_exeext'
14588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14589  (eval $ac_try) 2>&5
14590  ac_status=$?
14591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592  (exit $ac_status); }; }; then
14593  ac_cv_errno=yes
14594else
14595  echo "$as_me: failed program was:" >&5
14596cat conftest.$ac_ext >&5
14597ac_cv_errno=no
14598fi
14599rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14600
14601fi
14602echo "$as_me:$LINENO: result: $ac_cv_errno" >&5
14603echo "${ECHO_T}$ac_cv_errno" >&6
14604if test "$ac_cv_errno" = yes; then
14605
14606cat >>confdefs.h <<\_ACEOF
14607#define HAVE_ERRNO 1
14608_ACEOF
14609
14610	echo "$as_me:$LINENO: checking for errno declaration" >&5
14611echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6
14612if test "${ac_cv_decl_errno+set}" = set; then
14613  echo $ECHO_N "(cached) $ECHO_C" >&6
14614else
14615
14616	cat >conftest.$ac_ext <<_ACEOF
14617#line $LINENO "configure"
14618#include "confdefs.h"
14619
14620	#include <stdio.h>
14621	#ifdef HAVE_STDLIB_H
14622	#include <stdlib.h>
14623	#endif
14624	#ifdef HAVE_UNISTD_H
14625	#include <unistd.h>
14626	#endif
14627	#ifdef HAVE_ERRNO_H
14628	#include <errno.h>
14629
14630#ifdef F77_DUMMY_MAIN
14631#  ifdef __cplusplus
14632     extern "C"
14633#  endif
14634   int F77_DUMMY_MAIN() { return 1; }
14635#endif
14636int
14637main ()
14638{
14639return(sys_nerr);
14640  ;
14641  return 0;
14642}
14643_ACEOF
14644rm -f conftest.$ac_objext
14645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14646  (eval $ac_compile) 2>&5
14647  ac_status=$?
14648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649  (exit $ac_status); } &&
14650         { ac_try='test -s conftest.$ac_objext'
14651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652  (eval $ac_try) 2>&5
14653  ac_status=$?
14654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655  (exit $ac_status); }; }; then
14656  ac_cv_decl_errno=yes
14657else
14658  echo "$as_me: failed program was:" >&5
14659cat conftest.$ac_ext >&5
14660ac_cv_decl_errno=no
14661fi
14662rm -f conftest.$ac_objext conftest.$ac_ext
14663
14664fi
14665echo "$as_me:$LINENO: result: $ac_cv_decl_errno" >&5
14666echo "${ECHO_T}$ac_cv_decl_errno" >&6
14667	if test "$ac_cv_decl_errno" = yes; then
14668
14669cat >>confdefs.h <<\_ACEOF
14670#define HAVE_DECL_ERRNO 1
14671_ACEOF
14672
14673	fi;
14674fi
14675
14676echo "$as_me:$LINENO: checking for sys_nerr" >&5
14677echo $ECHO_N "checking for sys_nerr... $ECHO_C" >&6
14678if test "${ac_cv_sys_nerr+set}" = set; then
14679  echo $ECHO_N "(cached) $ECHO_C" >&6
14680else
14681
14682cat >conftest.$ac_ext <<_ACEOF
14683#line $LINENO "configure"
14684#include "confdefs.h"
14685
14686#ifdef F77_DUMMY_MAIN
14687#  ifdef __cplusplus
14688     extern "C"
14689#  endif
14690   int F77_DUMMY_MAIN() { return 1; }
14691#endif
14692int
14693main ()
14694{
14695extern int sys_nerr; return (sys_nerr);
14696  ;
14697  return 0;
14698}
14699_ACEOF
14700rm -f conftest.$ac_objext conftest$ac_exeext
14701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14702  (eval $ac_link) 2>&5
14703  ac_status=$?
14704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705  (exit $ac_status); } &&
14706         { ac_try='test -s conftest$ac_exeext'
14707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708  (eval $ac_try) 2>&5
14709  ac_status=$?
14710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711  (exit $ac_status); }; }; then
14712  ac_cv_sys_nerr=yes
14713else
14714  echo "$as_me: failed program was:" >&5
14715cat conftest.$ac_ext >&5
14716ac_cv_sys_nerr=no
14717fi
14718rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14719
14720fi
14721echo "$as_me:$LINENO: result: $ac_cv_sys_nerr" >&5
14722echo "${ECHO_T}$ac_cv_sys_nerr" >&6
14723if test "$ac_cv_sys_nerr" = yes; then
14724
14725cat >>confdefs.h <<\_ACEOF
14726#define HAVE_SYS_NERR 1
14727_ACEOF
14728
14729	echo "$as_me:$LINENO: checking for sys_nerr declaration" >&5
14730echo $ECHO_N "checking for sys_nerr declaration... $ECHO_C" >&6
14731if test "${ac_cv_decl_sys_nerr+set}" = set; then
14732  echo $ECHO_N "(cached) $ECHO_C" >&6
14733else
14734
14735	cat >conftest.$ac_ext <<_ACEOF
14736#line $LINENO "configure"
14737#include "confdefs.h"
14738
14739	#include <stdio.h>
14740	#ifdef HAVE_STDLIB_H
14741	#include <stdlib.h>
14742	#endif
14743	#ifdef HAVE_UNISTD_H
14744	#include <unistd.h>
14745	#endif
14746#ifdef F77_DUMMY_MAIN
14747#  ifdef __cplusplus
14748     extern "C"
14749#  endif
14750   int F77_DUMMY_MAIN() { return 1; }
14751#endif
14752int
14753main ()
14754{
14755return(sys_nerr);
14756  ;
14757  return 0;
14758}
14759_ACEOF
14760rm -f conftest.$ac_objext
14761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14762  (eval $ac_compile) 2>&5
14763  ac_status=$?
14764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765  (exit $ac_status); } &&
14766         { ac_try='test -s conftest.$ac_objext'
14767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768  (eval $ac_try) 2>&5
14769  ac_status=$?
14770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771  (exit $ac_status); }; }; then
14772  ac_cv_decl_sys_nerr_def=yes
14773else
14774  echo "$as_me: failed program was:" >&5
14775cat conftest.$ac_ext >&5
14776ac_cv_decl_sys_nerr_def=no
14777fi
14778rm -f conftest.$ac_objext conftest.$ac_ext
14779
14780fi
14781echo "$as_me:$LINENO: result: $ac_cv_decl_sys_nerr" >&5
14782echo "${ECHO_T}$ac_cv_decl_sys_nerr" >&6
14783	if test "$ac_cv_decl_sys_nerr" = yes; then
14784
14785cat >>confdefs.h <<\_ACEOF
14786#define HAVE_DECL_SYS_NERR 1
14787_ACEOF
14788
14789	fi
14790fi
14791
14792echo "$as_me:$LINENO: checking for sys_errlist array" >&5
14793echo $ECHO_N "checking for sys_errlist array... $ECHO_C" >&6
14794if test "${ac_cv_sys_errlist+set}" = set; then
14795  echo $ECHO_N "(cached) $ECHO_C" >&6
14796else
14797  cat >conftest.$ac_ext <<_ACEOF
14798#line $LINENO "configure"
14799#include "confdefs.h"
14800
14801#ifdef F77_DUMMY_MAIN
14802#  ifdef __cplusplus
14803     extern "C"
14804#  endif
14805   int F77_DUMMY_MAIN() { return 1; }
14806#endif
14807int
14808main ()
14809{
14810extern char *sys_errlist[];
14811	sys_errlist[0];
14812  ;
14813  return 0;
14814}
14815_ACEOF
14816rm -f conftest.$ac_objext conftest$ac_exeext
14817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14818  (eval $ac_link) 2>&5
14819  ac_status=$?
14820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821  (exit $ac_status); } &&
14822         { ac_try='test -s conftest$ac_exeext'
14823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824  (eval $ac_try) 2>&5
14825  ac_status=$?
14826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827  (exit $ac_status); }; }; then
14828  ac_cv_sys_errlist=yes
14829else
14830  echo "$as_me: failed program was:" >&5
14831cat conftest.$ac_ext >&5
14832ac_cv_sys_errlist=no
14833fi
14834rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14835
14836fi
14837echo "$as_me:$LINENO: result: $ac_cv_sys_errlist" >&5
14838echo "${ECHO_T}$ac_cv_sys_errlist" >&6
14839if test "$ac_cv_sys_errlist" = yes; then
14840
14841cat >>confdefs.h <<\_ACEOF
14842#define HAVE_SYS_ERRLIST 1
14843_ACEOF
14844
14845	echo "$as_me:$LINENO: checking for sys_errlist declaration" >&5
14846echo $ECHO_N "checking for sys_errlist declaration... $ECHO_C" >&6
14847if test "${ac_cv_sys_errlist_def+set}" = set; then
14848  echo $ECHO_N "(cached) $ECHO_C" >&6
14849else
14850  cat >conftest.$ac_ext <<_ACEOF
14851#line $LINENO "configure"
14852#include "confdefs.h"
14853
14854	#include <stdio.h>
14855	#include <errno.h>
14856	#ifdef HAVE_STDLIB_H
14857	#include <stdlib.h>
14858	#endif
14859	#ifdef HAVE_UNISTD_H
14860	#include <unistd.h>
14861	#endif
14862#ifdef F77_DUMMY_MAIN
14863#  ifdef __cplusplus
14864     extern "C"
14865#  endif
14866   int F77_DUMMY_MAIN() { return 1; }
14867#endif
14868int
14869main ()
14870{
14871char *s = sys_errlist[0]; return(*s);
14872  ;
14873  return 0;
14874}
14875_ACEOF
14876rm -f conftest.$ac_objext
14877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14878  (eval $ac_compile) 2>&5
14879  ac_status=$?
14880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881  (exit $ac_status); } &&
14882         { ac_try='test -s conftest.$ac_objext'
14883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884  (eval $ac_try) 2>&5
14885  ac_status=$?
14886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887  (exit $ac_status); }; }; then
14888  ac_cv_decl_sys_errlist=yes
14889else
14890  echo "$as_me: failed program was:" >&5
14891cat conftest.$ac_ext >&5
14892ac_cv_decl_sys_errlist=no
14893fi
14894rm -f conftest.$ac_objext conftest.$ac_ext
14895
14896fi
14897echo "$as_me:$LINENO: result: $ac_cv_sys_errlist_def" >&5
14898echo "${ECHO_T}$ac_cv_sys_errlist_def" >&6
14899	if test "$ac_cv_decl_sys_errlist" = yes; then
14900
14901cat >>confdefs.h <<\_ACEOF
14902#define HAVE_DECL_SYS_ERRLIST 1
14903_ACEOF
14904
14905	fi
14906fi
14907
14908
14909echo "$as_me:$LINENO: checking for setproctitle declaration" >&5
14910echo $ECHO_N "checking for setproctitle declaration... $ECHO_C" >&6
14911if test "${ac_cv_decl_setproctitle_def+set}" = set; then
14912  echo $ECHO_N "(cached) $ECHO_C" >&6
14913else
14914  cat >conftest.$ac_ext <<_ACEOF
14915#line $LINENO "configure"
14916#include "confdefs.h"
14917
14918#include <stdio.h>
14919#ifdef HAVE_STDLIB_H
14920#include <stdlib.h>
14921#endif
14922#ifdef HAVE_UNISTD_H
14923#include <unistd.h>
14924#endif
14925#ifdef HAVE_ERRNO_H
14926#include <errno.h>
14927#endif
14928
14929#ifdef F77_DUMMY_MAIN
14930#  ifdef __cplusplus
14931     extern "C"
14932#  endif
14933   int F77_DUMMY_MAIN() { return 1; }
14934#endif
14935int
14936main ()
14937{
14938setproctitle(0);
14939  ;
14940  return 0;
14941}
14942_ACEOF
14943rm -f conftest.$ac_objext
14944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14945  (eval $ac_compile) 2>&5
14946  ac_status=$?
14947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948  (exit $ac_status); } &&
14949         { ac_try='test -s conftest.$ac_objext'
14950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951  (eval $ac_try) 2>&5
14952  ac_status=$?
14953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954  (exit $ac_status); }; }; then
14955  ac_cv_decl_setproctitle_def=no
14956else
14957  echo "$as_me: failed program was:" >&5
14958cat conftest.$ac_ext >&5
14959ac_cv_decl_setproctitle_def=yes
14960fi
14961rm -f conftest.$ac_objext conftest.$ac_ext
14962
14963fi
14964echo "$as_me:$LINENO: result: $ac_cv_decl_setproctitle_def" >&5
14965echo "${ECHO_T}$ac_cv_decl_setproctitle_def" >&6
14966if test "$ac_cv_decl_setproctitle_def" = yes; then
14967
14968cat >>confdefs.h <<\_ACEOF
14969#define HAVE_SETPROCTITLE_DEF 1
14970_ACEOF
14971
14972fi
14973
14974
14975
14976echo "$as_me:$LINENO: checking for sys_siglist declaration" >&5
14977echo $ECHO_N "checking for sys_siglist declaration... $ECHO_C" >&6
14978if test "${ac_cv_decl_sys_siglist_def+set}" = set; then
14979  echo $ECHO_N "(cached) $ECHO_C" >&6
14980else
14981  cat >conftest.$ac_ext <<_ACEOF
14982#line $LINENO "configure"
14983#include "confdefs.h"
14984
14985#include <stdio.h>
14986#include <sys/types.h>
14987#ifdef HAVE_STDLIB_H
14988#include <stdlib.h>
14989#endif
14990#ifdef HAVE_UNISTD_H
14991#include <unistd.h>
14992#endif
14993#include <signal.h>
14994#ifdef F77_DUMMY_MAIN
14995#  ifdef __cplusplus
14996     extern "C"
14997#  endif
14998   int F77_DUMMY_MAIN() { return 1; }
14999#endif
15000int
15001main ()
15002{
15003printf("%s",sys_siglist[0]);
15004  ;
15005  return 0;
15006}
15007_ACEOF
15008rm -f conftest.$ac_objext
15009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15010  (eval $ac_compile) 2>&5
15011  ac_status=$?
15012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013  (exit $ac_status); } &&
15014         { ac_try='test -s conftest.$ac_objext'
15015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016  (eval $ac_try) 2>&5
15017  ac_status=$?
15018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019  (exit $ac_status); }; }; then
15020  ac_cv_decl_sys_siglist_def=yes
15021else
15022  echo "$as_me: failed program was:" >&5
15023cat conftest.$ac_ext >&5
15024ac_cv_decl_sys_siglist_def=no
15025fi
15026rm -f conftest.$ac_objext conftest.$ac_ext
15027
15028fi
15029echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist_def" >&5
15030echo "${ECHO_T}$ac_cv_decl_sys_siglist_def" >&6
15031if test "$ac_cv_decl_sys_siglist_def" = yes; then
15032
15033cat >>confdefs.h <<\_ACEOF
15034#define HAVE_SYS_SIGLIST_DEF 1
15035_ACEOF
15036
15037	ac_cv_sys_siglist=yes
15038fi
15039
15040echo "$as_me:$LINENO: checking for _sys_siglist declaration" >&5
15041echo $ECHO_N "checking for _sys_siglist declaration... $ECHO_C" >&6
15042if test "${ac_cv_decl__sys_siglist_def+set}" = set; then
15043  echo $ECHO_N "(cached) $ECHO_C" >&6
15044else
15045  cat >conftest.$ac_ext <<_ACEOF
15046#line $LINENO "configure"
15047#include "confdefs.h"
15048
15049#include <stdio.h>
15050#include <sys/types.h>
15051#ifdef HAVE_STDLIB_H
15052#include <stdlib.h>
15053#endif
15054#ifdef HAVE_UNISTD_H
15055#include <unistd.h>
15056#endif
15057#include <signal.h>
15058#ifdef F77_DUMMY_MAIN
15059#  ifdef __cplusplus
15060     extern "C"
15061#  endif
15062   int F77_DUMMY_MAIN() { return 1; }
15063#endif
15064int
15065main ()
15066{
15067printf("%s",_sys_siglist[0]);
15068  ;
15069  return 0;
15070}
15071_ACEOF
15072rm -f conftest.$ac_objext
15073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15074  (eval $ac_compile) 2>&5
15075  ac_status=$?
15076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077  (exit $ac_status); } &&
15078         { ac_try='test -s conftest.$ac_objext'
15079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15080  (eval $ac_try) 2>&5
15081  ac_status=$?
15082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083  (exit $ac_status); }; }; then
15084  ac_cv_decl__sys_siglist_def=yes
15085else
15086  echo "$as_me: failed program was:" >&5
15087cat conftest.$ac_ext >&5
15088ac_cv_decl__sys_siglist_def=no
15089fi
15090rm -f conftest.$ac_objext conftest.$ac_ext
15091
15092fi
15093echo "$as_me:$LINENO: result: $ac_cv_decl__sys_siglist_def" >&5
15094echo "${ECHO_T}$ac_cv_decl__sys_siglist_def" >&6
15095if test "$ac_cv_decl__sys_siglist_def" = yes; then
15096
15097cat >>confdefs.h <<\_ACEOF
15098#define HAVE__SYS_SIGLIST_DEF 1
15099_ACEOF
15100
15101	ac_cv__sys_siglist=yes
15102fi
15103
15104echo "$as_me:$LINENO: checking for sys_siglist array" >&5
15105echo $ECHO_N "checking for sys_siglist array... $ECHO_C" >&6
15106if test "${ac_cv_sys_siglist+set}" = set; then
15107  echo $ECHO_N "(cached) $ECHO_C" >&6
15108else
15109  cat >conftest.$ac_ext <<_ACEOF
15110#line $LINENO "configure"
15111#include "confdefs.h"
15112
15113#include <stdio.h>
15114#ifdef F77_DUMMY_MAIN
15115#  ifdef __cplusplus
15116     extern "C"
15117#  endif
15118   int F77_DUMMY_MAIN() { return 1; }
15119#endif
15120int
15121main ()
15122{
15123extern int sys_siglist; printf("%d",sys_siglist);
15124  ;
15125  return 0;
15126}
15127_ACEOF
15128rm -f conftest.$ac_objext conftest$ac_exeext
15129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15130  (eval $ac_link) 2>&5
15131  ac_status=$?
15132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133  (exit $ac_status); } &&
15134         { ac_try='test -s conftest$ac_exeext'
15135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136  (eval $ac_try) 2>&5
15137  ac_status=$?
15138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139  (exit $ac_status); }; }; then
15140  ac_cv_sys_siglist=yes
15141else
15142  echo "$as_me: failed program was:" >&5
15143cat conftest.$ac_ext >&5
15144ac_cv_sys_siglist=no
15145fi
15146rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15147
15148fi
15149echo "$as_me:$LINENO: result: $ac_cv_sys_siglist" >&5
15150echo "${ECHO_T}$ac_cv_sys_siglist" >&6
15151if test "$ac_cv_sys_siglist" = yes; then
15152
15153cat >>confdefs.h <<\_ACEOF
15154#define HAVE_SYS_SIGLIST 1
15155_ACEOF
15156
15157fi
15158
15159echo "$as_me:$LINENO: checking for _sys_siglist array" >&5
15160echo $ECHO_N "checking for _sys_siglist array... $ECHO_C" >&6
15161if test "${ac_cv__sys_siglist+set}" = set; then
15162  echo $ECHO_N "(cached) $ECHO_C" >&6
15163else
15164  cat >conftest.$ac_ext <<_ACEOF
15165#line $LINENO "configure"
15166#include "confdefs.h"
15167
15168#include <stdio.h>
15169#ifdef F77_DUMMY_MAIN
15170#  ifdef __cplusplus
15171     extern "C"
15172#  endif
15173   int F77_DUMMY_MAIN() { return 1; }
15174#endif
15175int
15176main ()
15177{
15178extern int _sys_siglist; printf("%d",_sys_siglist);
15179  ;
15180  return 0;
15181}
15182_ACEOF
15183rm -f conftest.$ac_objext conftest$ac_exeext
15184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15185  (eval $ac_link) 2>&5
15186  ac_status=$?
15187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188  (exit $ac_status); } &&
15189         { ac_try='test -s conftest$ac_exeext'
15190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191  (eval $ac_try) 2>&5
15192  ac_status=$?
15193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194  (exit $ac_status); }; }; then
15195  ac_cv__sys_siglist=yes
15196else
15197  echo "$as_me: failed program was:" >&5
15198cat conftest.$ac_ext >&5
15199ac_cv__sys_siglist=no
15200fi
15201rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15202
15203fi
15204echo "$as_me:$LINENO: result: $ac_cv__sys_siglist" >&5
15205echo "${ECHO_T}$ac_cv__sys_siglist" >&6
15206if test "$ac_cv__sys_siglist" = yes; then
15207
15208cat >>confdefs.h <<\_ACEOF
15209#define HAVE__SYS_SIGLIST 1
15210_ACEOF
15211
15212fi
15213
15214
15215echo "$as_me:$LINENO: checking for obsolete union wait compatibility" >&5
15216echo $ECHO_N "checking for obsolete union wait compatibility... $ECHO_C" >&6
15217if test "${ac_cv_unionwait+set}" = set; then
15218  echo $ECHO_N "(cached) $ECHO_C" >&6
15219else
15220
15221cat >conftest.$ac_ext <<_ACEOF
15222#line $LINENO "configure"
15223#include "confdefs.h"
15224
15225#ifdef HAVE_CTYPES_H
15226#include <ctypes.h>
15227#endif
15228#include <sys/types.h>
15229#include <sys/wait.h>
15230#ifdef F77_DUMMY_MAIN
15231#  ifdef __cplusplus
15232     extern "C"
15233#  endif
15234   int F77_DUMMY_MAIN() { return 1; }
15235#endif
15236int
15237main ()
15238{
15239union wait x;WIFEXITED(x);
15240  ;
15241  return 0;
15242}
15243_ACEOF
15244rm -f conftest.$ac_objext
15245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15246  (eval $ac_compile) 2>&5
15247  ac_status=$?
15248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249  (exit $ac_status); } &&
15250         { ac_try='test -s conftest.$ac_objext'
15251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252  (eval $ac_try) 2>&5
15253  ac_status=$?
15254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255  (exit $ac_status); }; }; then
15256  ac_cv_unionwait=yes
15257else
15258  echo "$as_me: failed program was:" >&5
15259cat conftest.$ac_ext >&5
15260ac_cv_unionwait=no
15261fi
15262rm -f conftest.$ac_objext conftest.$ac_ext
15263
15264fi
15265echo "$as_me:$LINENO: result: $ac_cv_unionwait" >&5
15266echo "${ECHO_T}$ac_cv_unionwait" >&6
15267if test "$ac_cv_unionwait" = yes; then
15268
15269cat >>confdefs.h <<\_ACEOF
15270#define HAVE_UNION_WAIT 1
15271_ACEOF
15272
15273fi
15274
15275echo "$as_me:$LINENO: checking for gethostname declaration" >&5
15276echo $ECHO_N "checking for gethostname declaration... $ECHO_C" >&6
15277if test "${ac_cv_decl_gethostname_def+set}" = set; then
15278  echo $ECHO_N "(cached) $ECHO_C" >&6
15279else
15280  cat >conftest.$ac_ext <<_ACEOF
15281#line $LINENO "configure"
15282#include "confdefs.h"
15283
15284#ifdef HAVE_CTYPES_H
15285#include <ctypes.h>
15286#endif
15287#ifdef HAVE_STDIO_H
15288#include <stdio.h>
15289#endif
15290#ifdef HAVE_STDLIB_H
15291#include <stdlib.h>
15292#endif
15293#ifdef HAVE_UNISTD_H
15294#include <unistd.h>
15295#endif
15296#ifdef F77_DUMMY_MAIN
15297#  ifdef __cplusplus
15298     extern "C"
15299#  endif
15300   int F77_DUMMY_MAIN() { return 1; }
15301#endif
15302int
15303main ()
15304{
15305gethostname(1);
15306  ;
15307  return 0;
15308}
15309_ACEOF
15310rm -f conftest.$ac_objext
15311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15312  (eval $ac_compile) 2>&5
15313  ac_status=$?
15314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315  (exit $ac_status); } &&
15316         { ac_try='test -s conftest.$ac_objext'
15317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318  (eval $ac_try) 2>&5
15319  ac_status=$?
15320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321  (exit $ac_status); }; }; then
15322  ac_cv_decl_gethostname_def=no
15323else
15324  echo "$as_me: failed program was:" >&5
15325cat conftest.$ac_ext >&5
15326ac_cv_decl_gethostname_def=yes
15327fi
15328rm -f conftest.$ac_objext conftest.$ac_ext
15329
15330fi
15331echo "$as_me:$LINENO: result: $ac_cv_decl_gethostname_def" >&5
15332echo "${ECHO_T}$ac_cv_decl_gethostname_def" >&6
15333if test "$ac_cv_decl_gethostname_def" = yes; then
15334
15335cat >>confdefs.h <<\_ACEOF
15336#define HAVE_GETHOSTNAME_DEF 1
15337_ACEOF
15338
15339fi
15340
15341echo "$as_me:$LINENO: checking for innetgr declaration" >&5
15342echo $ECHO_N "checking for innetgr declaration... $ECHO_C" >&6
15343if test "${ac_cv_decl_innetgr_def+set}" = set; then
15344  echo $ECHO_N "(cached) $ECHO_C" >&6
15345else
15346
15347cat >conftest.$ac_ext <<_ACEOF
15348#line $LINENO "configure"
15349#include "confdefs.h"
15350
15351#ifdef HAVE_CTYPES_H
15352#include <ctypes.h>
15353#endif
15354#ifdef HAVE_STDIO_H
15355#include <stdio.h>
15356#endif
15357#ifdef HAVE_STDLIB_H
15358#include <stdlib.h>
15359#endif
15360#ifdef HAVE_UNISTD_H
15361#include <unistd.h>
15362#endif
15363#ifdef HAVE_NETDB_H
15364#include <netdb.h>
15365#endif
15366#ifdef F77_DUMMY_MAIN
15367#  ifdef __cplusplus
15368     extern "C"
15369#  endif
15370   int F77_DUMMY_MAIN() { return 1; }
15371#endif
15372int
15373main ()
15374{
15375printf("%d", innetgr(1));
15376  ;
15377  return 0;
15378}
15379_ACEOF
15380rm -f conftest.$ac_objext
15381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15382  (eval $ac_compile) 2>&5
15383  ac_status=$?
15384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385  (exit $ac_status); } &&
15386         { ac_try='test -s conftest.$ac_objext'
15387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388  (eval $ac_try) 2>&5
15389  ac_status=$?
15390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391  (exit $ac_status); }; }; then
15392  ac_cv_decl_innetgr_def=no
15393else
15394  echo "$as_me: failed program was:" >&5
15395cat conftest.$ac_ext >&5
15396ac_cv_decl_innetgr_def=yes
15397fi
15398rm -f conftest.$ac_objext conftest.$ac_ext
15399
15400
15401fi
15402echo "$as_me:$LINENO: result: $ac_cv_decl_innetgr_def" >&5
15403echo "${ECHO_T}$ac_cv_decl_innetgr_def" >&6
15404if test "$ac_cv_decl_innetgr_def" = yes; then
15405
15406cat >>confdefs.h <<\_ACEOF
15407#define HAVE_INNETGR_DEF 1
15408_ACEOF
15409
15410fi
15411
15412echo "$as_me:$LINENO: checking for openlog declaration" >&5
15413echo $ECHO_N "checking for openlog declaration... $ECHO_C" >&6
15414if test "${ac_cv_decl_openlog_def+set}" = set; then
15415  echo $ECHO_N "(cached) $ECHO_C" >&6
15416else
15417  cat >conftest.$ac_ext <<_ACEOF
15418#line $LINENO "configure"
15419#include "confdefs.h"
15420
15421#include <stdio.h>
15422#ifdef HAVE_CTYPES_H
15423#include <ctypes.h>
15424#endif
15425#ifdef HAVE_STDARG_H
15426#include <stdarg.h>
15427#endif
15428#ifdef HAVE_SYSLOG_H
15429#include <syslog.h>
15430#endif
15431#ifdef F77_DUMMY_MAIN
15432#  ifdef __cplusplus
15433     extern "C"
15434#  endif
15435   int F77_DUMMY_MAIN() { return 1; }
15436#endif
15437int
15438main ()
15439{
15440printf("%d",openlog);
15441  ;
15442  return 0;
15443}
15444_ACEOF
15445rm -f conftest.$ac_objext
15446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15447  (eval $ac_compile) 2>&5
15448  ac_status=$?
15449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450  (exit $ac_status); } &&
15451         { ac_try='test -s conftest.$ac_objext'
15452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453  (eval $ac_try) 2>&5
15454  ac_status=$?
15455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456  (exit $ac_status); }; }; then
15457  ac_cv_decl_openlog_def=yes
15458else
15459  echo "$as_me: failed program was:" >&5
15460cat conftest.$ac_ext >&5
15461ac_cv_decl_openlog_def=no
15462fi
15463rm -f conftest.$ac_objext conftest.$ac_ext
15464
15465fi
15466echo "$as_me:$LINENO: result: $ac_cv_decl_openlog_def" >&5
15467echo "${ECHO_T}$ac_cv_decl_openlog_def" >&6
15468if test "$ac_cv_decl_openlog_def" = yes; then
15469
15470cat >>confdefs.h <<\_ACEOF
15471#define HAVE_OPENLOG_DEF 1
15472_ACEOF
15473
15474fi
15475
15476
15477echo "$as_me:$LINENO: checking for syslog declaration" >&5
15478echo $ECHO_N "checking for syslog declaration... $ECHO_C" >&6
15479if test "${ac_cv_decl_syslog_def+set}" = set; then
15480  echo $ECHO_N "(cached) $ECHO_C" >&6
15481else
15482  cat >conftest.$ac_ext <<_ACEOF
15483#line $LINENO "configure"
15484#include "confdefs.h"
15485
15486#include <stdio.h>
15487#ifdef HAVE_STDARG_H
15488#include <stdarg.h>
15489#endif
15490#ifdef HAVE_SYSLOG_H
15491#include <syslog.h>
15492#endif
15493#ifdef F77_DUMMY_MAIN
15494#  ifdef __cplusplus
15495     extern "C"
15496#  endif
15497   int F77_DUMMY_MAIN() { return 1; }
15498#endif
15499int
15500main ()
15501{
15502printf("%d",syslog);
15503  ;
15504  return 0;
15505}
15506_ACEOF
15507rm -f conftest.$ac_objext
15508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15509  (eval $ac_compile) 2>&5
15510  ac_status=$?
15511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512  (exit $ac_status); } &&
15513         { ac_try='test -s conftest.$ac_objext'
15514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515  (eval $ac_try) 2>&5
15516  ac_status=$?
15517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518  (exit $ac_status); }; }; then
15519  ac_cv_decl_syslog_def=yes
15520else
15521  echo "$as_me: failed program was:" >&5
15522cat conftest.$ac_ext >&5
15523ac_cv_decl_syslog_def=no
15524fi
15525rm -f conftest.$ac_objext conftest.$ac_ext
15526
15527fi
15528echo "$as_me:$LINENO: result: $ac_cv_decl_syslog_def" >&5
15529echo "${ECHO_T}$ac_cv_decl_syslog_def" >&6
15530if test "$ac_cv_decl_syslog_def" = yes; then
15531
15532cat >>confdefs.h <<\_ACEOF
15533#define HAVE_SYSLOG_DEF 1
15534_ACEOF
15535
15536fi
15537
15538
15539echo "$as_me:$LINENO: checking for struct in6_addr declaration" >&5
15540echo $ECHO_N "checking for struct in6_addr declaration... $ECHO_C" >&6
15541if test "${ac_cv_decl_in6_addr_def+set}" = set; then
15542  echo $ECHO_N "(cached) $ECHO_C" >&6
15543else
15544  cat >conftest.$ac_ext <<_ACEOF
15545#line $LINENO "configure"
15546#include "confdefs.h"
15547
15548#ifdef HAVE_CTYPES_H
15549#include <ctypes.h>
15550#endif
15551#include <sys/types.h>
15552#include <sys/socket.h>
15553#include <netinet/in.h>
15554#ifdef F77_DUMMY_MAIN
15555#  ifdef __cplusplus
15556     extern "C"
15557#  endif
15558   int F77_DUMMY_MAIN() { return 1; }
15559#endif
15560int
15561main ()
15562{
15563struct in6_addr v;
15564  ;
15565  return 0;
15566}
15567_ACEOF
15568rm -f conftest.$ac_objext
15569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15570  (eval $ac_compile) 2>&5
15571  ac_status=$?
15572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573  (exit $ac_status); } &&
15574         { ac_try='test -s conftest.$ac_objext'
15575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576  (eval $ac_try) 2>&5
15577  ac_status=$?
15578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579  (exit $ac_status); }; }; then
15580  ac_cv_decl_in6_addr_def=yes
15581else
15582  echo "$as_me: failed program was:" >&5
15583cat conftest.$ac_ext >&5
15584ac_cv_decl_in6_addr_def=no
15585fi
15586rm -f conftest.$ac_objext conftest.$ac_ext
15587
15588fi
15589echo "$as_me:$LINENO: result: $ac_cv_decl_in6_addr_def" >&5
15590echo "${ECHO_T}$ac_cv_decl_in6_addr_def" >&6
15591if test "$ac_cv_decl_in6_addr_def" = yes; then
15592
15593cat >>confdefs.h <<\_ACEOF
15594#define IN6_ADDR 1
15595_ACEOF
15596
15597fi
15598
15599
15600echo "$as_me:$LINENO: checking for struct in_addr6 declaration (LINUX)" >&5
15601echo $ECHO_N "checking for struct in_addr6 declaration (LINUX)... $ECHO_C" >&6
15602if test "${ac_cv_decl_in_addr6_def+set}" = set; then
15603  echo $ECHO_N "(cached) $ECHO_C" >&6
15604else
15605  cat >conftest.$ac_ext <<_ACEOF
15606#line $LINENO "configure"
15607#include "confdefs.h"
15608
15609#ifdef HAVE_CTYPES_H
15610#include <ctypes.h>
15611#endif
15612#include <sys/types.h>
15613#include <sys/socket.h>
15614#include <netinet/in.h>
15615#ifdef F77_DUMMY_MAIN
15616#  ifdef __cplusplus
15617     extern "C"
15618#  endif
15619   int F77_DUMMY_MAIN() { return 1; }
15620#endif
15621int
15622main ()
15623{
15624struct in_addr6 v;
15625  ;
15626  return 0;
15627}
15628_ACEOF
15629rm -f conftest.$ac_objext
15630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15631  (eval $ac_compile) 2>&5
15632  ac_status=$?
15633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634  (exit $ac_status); } &&
15635         { ac_try='test -s conftest.$ac_objext'
15636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637  (eval $ac_try) 2>&5
15638  ac_status=$?
15639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640  (exit $ac_status); }; }; then
15641  ac_cv_decl_in_addr6_def=yes
15642else
15643  echo "$as_me: failed program was:" >&5
15644cat conftest.$ac_ext >&5
15645ac_cv_decl_in_addr6_def=no
15646fi
15647rm -f conftest.$ac_objext conftest.$ac_ext
15648
15649fi
15650echo "$as_me:$LINENO: result: $ac_cv_decl_in_addr6_def" >&5
15651echo "${ECHO_T}$ac_cv_decl_in_addr6_def" >&6
15652if test "$ac_cv_decl_in_addr6_def" = yes; then
15653
15654cat >>confdefs.h <<\_ACEOF
15655#define IN_ADDR6 1
15656_ACEOF
15657
15658fi
15659
15660
15661
15662echo "$as_me:$LINENO: checking for struct stat has st_mtimespec.tv_nsec" >&5
15663echo $ECHO_N "checking for struct stat has st_mtimespec.tv_nsec... $ECHO_C" >&6
15664if test "${ac_cv_decl_st_mtimespec_tv_nsec+set}" = set; then
15665  echo $ECHO_N "(cached) $ECHO_C" >&6
15666else
15667  cat >conftest.$ac_ext <<_ACEOF
15668#line $LINENO "configure"
15669#include "confdefs.h"
15670
15671#ifdef HAVE_CTYPES_H
15672#include <ctypes.h>
15673#endif
15674#include <sys/types.h>
15675#ifdef HAVE_SYS_TIME_H
15676#include <sys/time.h>
15677#endif
15678#include <sys/stat.h>
15679#ifdef F77_DUMMY_MAIN
15680#  ifdef __cplusplus
15681     extern "C"
15682#  endif
15683   int F77_DUMMY_MAIN() { return 1; }
15684#endif
15685int
15686main ()
15687{
15688struct stat statb; statb.st_mtimespec.tv_nsec;
15689  ;
15690  return 0;
15691}
15692_ACEOF
15693rm -f conftest.$ac_objext
15694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15695  (eval $ac_compile) 2>&5
15696  ac_status=$?
15697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698  (exit $ac_status); } &&
15699         { ac_try='test -s conftest.$ac_objext'
15700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701  (eval $ac_try) 2>&5
15702  ac_status=$?
15703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704  (exit $ac_status); }; }; then
15705  ac_cv_decl_st_mtimespec_tv_nsec=yes
15706else
15707  echo "$as_me: failed program was:" >&5
15708cat conftest.$ac_ext >&5
15709ac_cv_decl_st_mtimespec_tv_nsec=no
15710fi
15711rm -f conftest.$ac_objext conftest.$ac_ext
15712
15713fi
15714echo "$as_me:$LINENO: result: $ac_cv_decl_st_mtimespec_tv_nsec" >&5
15715echo "${ECHO_T}$ac_cv_decl_st_mtimespec_tv_nsec" >&6
15716if test "$ac_cv_decl_st_mtimespec_tv_nsec" = yes; then
15717
15718cat >>confdefs.h <<_ACEOF
15719#define ST_MTIMESPEC_TV_NSEC 1
15720_ACEOF
15721
15722fi
15723
15724echo "$as_me:$LINENO: checking for struct stat has st_mtimensec" >&5
15725echo $ECHO_N "checking for struct stat has st_mtimensec... $ECHO_C" >&6
15726if test "${ac_cv_decl_st_mtimensec+set}" = set; then
15727  echo $ECHO_N "(cached) $ECHO_C" >&6
15728else
15729  cat >conftest.$ac_ext <<_ACEOF
15730#line $LINENO "configure"
15731#include "confdefs.h"
15732
15733#ifdef HAVE_CTYPES_H
15734#include <ctypes.h>
15735#endif
15736#include <sys/types.h>
15737#if defined(HAVE_SYS_TIME_H)
15738#include <sys/time.h>
15739#endif
15740#include <sys/stat.h>
15741#ifdef F77_DUMMY_MAIN
15742#  ifdef __cplusplus
15743     extern "C"
15744#  endif
15745   int F77_DUMMY_MAIN() { return 1; }
15746#endif
15747int
15748main ()
15749{
15750struct stat statb; statb.st_mtimensec;
15751  ;
15752  return 0;
15753}
15754_ACEOF
15755rm -f conftest.$ac_objext
15756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15757  (eval $ac_compile) 2>&5
15758  ac_status=$?
15759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760  (exit $ac_status); } &&
15761         { ac_try='test -s conftest.$ac_objext'
15762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763  (eval $ac_try) 2>&5
15764  ac_status=$?
15765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766  (exit $ac_status); }; }; then
15767  ac_cv_decl_st_mtimensec=yes
15768else
15769  echo "$as_me: failed program was:" >&5
15770cat conftest.$ac_ext >&5
15771ac_cv_decl_st_mtimensec=no
15772fi
15773rm -f conftest.$ac_objext conftest.$ac_ext
15774
15775fi
15776echo "$as_me:$LINENO: result: $ac_cv_decl_st_mtimensec" >&5
15777echo "${ECHO_T}$ac_cv_decl_st_mtimensec" >&6
15778if test "$ac_cv_decl_st_mtimensec" = yes; then
15779
15780cat >>confdefs.h <<_ACEOF
15781#define ST_MTIMENSEC 1
15782_ACEOF
15783
15784fi
15785
15786
15787echo "$as_me:$LINENO: checking for strcasecmp definition" >&5
15788echo $ECHO_N "checking for strcasecmp definition... $ECHO_C" >&6
15789if test "${ac_cv_decl_strcasecmp+set}" = set; then
15790  echo $ECHO_N "(cached) $ECHO_C" >&6
15791else
15792  cat >conftest.$ac_ext <<_ACEOF
15793#line $LINENO "configure"
15794#include "confdefs.h"
15795
15796#ifdef HAVE_CTYPES_H
15797#include <ctypes.h>
15798#endif
15799#if defined(HAVE_STDLIB_H)
15800#include <stdlib.h>
15801#endif
15802#if defined(HAVE_STRING_H)
15803#include <string.h>
15804#endif
15805#if defined(HAVE_STRINGS_H)
15806#include <strings.h>
15807#endif
15808
15809#ifdef F77_DUMMY_MAIN
15810#  ifdef __cplusplus
15811     extern "C"
15812#  endif
15813   int F77_DUMMY_MAIN() { return 1; }
15814#endif
15815int
15816main ()
15817{
15818strcasecmp(1)
15819  ;
15820  return 0;
15821}
15822_ACEOF
15823rm -f conftest.$ac_objext
15824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15825  (eval $ac_compile) 2>&5
15826  ac_status=$?
15827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828  (exit $ac_status); } &&
15829         { ac_try='test -s conftest.$ac_objext'
15830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831  (eval $ac_try) 2>&5
15832  ac_status=$?
15833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834  (exit $ac_status); }; }; then
15835  ac_cv_decl_strcasecmp=no
15836else
15837  echo "$as_me: failed program was:" >&5
15838cat conftest.$ac_ext >&5
15839ac_cv_decl_strcasecmp=yes
15840fi
15841rm -f conftest.$ac_objext conftest.$ac_ext
15842
15843fi
15844echo "$as_me:$LINENO: result: $ac_cv_decl_strcasecmp" >&5
15845echo "${ECHO_T}$ac_cv_decl_strcasecmp" >&6
15846if test "$ac_cv_decl_strcasecmp" = yes; then
15847
15848cat >>confdefs.h <<_ACEOF
15849#define HAVE_STRCASECMP_DEF 1
15850_ACEOF
15851
15852fi
15853
15854
15855echo "$as_me:$LINENO: checking for flock definition" >&5
15856echo $ECHO_N "checking for flock definition... $ECHO_C" >&6
15857if test "${ac_cv_decl_flock+set}" = set; then
15858  echo $ECHO_N "(cached) $ECHO_C" >&6
15859else
15860  cat >conftest.$ac_ext <<_ACEOF
15861#line $LINENO "configure"
15862#include "confdefs.h"
15863
15864#ifdef HAVE_CTYPES_H
15865#include <ctypes.h>
15866#endif
15867#if defined(HAVE_STDLIB_H)
15868#include <stdlib.h>
15869#endif
15870#if defined(HAVE_SYS_FILE_H)
15871#include <sys/file.h>
15872#endif
15873#if defined(HAVE_FCNTL_H)
15874#include <fcntl.h>
15875#endif
15876
15877#ifdef F77_DUMMY_MAIN
15878#  ifdef __cplusplus
15879     extern "C"
15880#  endif
15881   int F77_DUMMY_MAIN() { return 1; }
15882#endif
15883int
15884main ()
15885{
15886flock(1)
15887  ;
15888  return 0;
15889}
15890_ACEOF
15891rm -f conftest.$ac_objext
15892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15893  (eval $ac_compile) 2>&5
15894  ac_status=$?
15895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896  (exit $ac_status); } &&
15897         { ac_try='test -s conftest.$ac_objext'
15898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899  (eval $ac_try) 2>&5
15900  ac_status=$?
15901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902  (exit $ac_status); }; }; then
15903  ac_cv_decl_flock=no
15904else
15905  echo "$as_me: failed program was:" >&5
15906cat conftest.$ac_ext >&5
15907ac_cv_decl_flock=yes
15908fi
15909rm -f conftest.$ac_objext conftest.$ac_ext
15910
15911fi
15912echo "$as_me:$LINENO: result: $ac_cv_decl_flock" >&5
15913echo "${ECHO_T}$ac_cv_decl_flock" >&6
15914if test "$ac_cv_decl_flock" = yes; then
15915
15916cat >>confdefs.h <<_ACEOF
15917#define HAVE_FLOCK_DEF 1
15918_ACEOF
15919
15920fi
15921
15922
15923# Find a good install program.  We prefer a C program (faster),
15924# so one script is as good as another.  But avoid the broken or
15925# incompatible versions:
15926# SysV /etc/install, /usr/sbin/install
15927# SunOS /usr/etc/install
15928# IRIX /sbin/install
15929# AIX /bin/install
15930# AmigaOS /C/install, which installs bootblocks on floppy discs
15931# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15932# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15933# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15934# ./install, which can be erroneously created by make from ./install.sh.
15935echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15936echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
15937if test -z "$INSTALL"; then
15938if test "${ac_cv_path_install+set}" = set; then
15939  echo $ECHO_N "(cached) $ECHO_C" >&6
15940else
15941  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15942for as_dir in $PATH
15943do
15944  IFS=$as_save_IFS
15945  test -z "$as_dir" && as_dir=.
15946  # Account for people who put trailing slashes in PATH elements.
15947case $as_dir/ in
15948  ./ | .// | /cC/* | \
15949  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15950  /usr/ucb/* ) ;;
15951  *)
15952    # OSF1 and SCO ODT 3.0 have their own names for install.
15953    # Don't use installbsd from OSF since it installs stuff as root
15954    # by default.
15955    for ac_prog in ginstall scoinst install; do
15956      for ac_exec_ext in '' $ac_executable_extensions; do
15957        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15958          if test $ac_prog = install &&
15959            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15960            # AIX install.  It has an incompatible calling convention.
15961            :
15962          elif test $ac_prog = install &&
15963            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15964            # program-specific install script used by HP pwplus--don't use.
15965            :
15966          else
15967            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15968            break 3
15969          fi
15970        fi
15971      done
15972    done
15973    ;;
15974esac
15975done
15976
15977
15978fi
15979  if test "${ac_cv_path_install+set}" = set; then
15980    INSTALL=$ac_cv_path_install
15981  else
15982    # As a last resort, use the slow shell script.  We don't cache a
15983    # path for INSTALL within a source directory, because that will
15984    # break other packages using the cache if that directory is
15985    # removed, or if the path is relative.
15986    INSTALL=$ac_install_sh
15987  fi
15988fi
15989echo "$as_me:$LINENO: result: $INSTALL" >&5
15990echo "${ECHO_T}$INSTALL" >&6
15991
15992# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15993# It thinks the first close brace ends the variable substitution.
15994test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15995
15996test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15997
15998test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15999
16000# Extract the first word of "auxman", so it can be a program name with args.
16001set dummy auxman; ac_word=$2
16002echo "$as_me:$LINENO: checking for $ac_word" >&5
16003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16004if test "${ac_cv_prog_INSTALL_MAN+set}" = set; then
16005  echo $ECHO_N "(cached) $ECHO_C" >&6
16006else
16007  if test -n "$INSTALL_MAN"; then
16008  ac_cv_prog_INSTALL_MAN="$INSTALL_MAN" # Let the user override the test.
16009else
16010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16011for as_dir in $PATH
16012do
16013  IFS=$as_save_IFS
16014  test -z "$as_dir" && as_dir=.
16015  for ac_exec_ext in '' $ac_executable_extensions; do
16016  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16017    ac_cv_prog_INSTALL_MAN="auxman"
16018    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16019    break 2
16020  fi
16021done
16022done
16023
16024  test -z "$ac_cv_prog_INSTALL_MAN" && ac_cv_prog_INSTALL_MAN="$INSTALL -m 644"
16025fi
16026fi
16027INSTALL_MAN=$ac_cv_prog_INSTALL_MAN
16028if test -n "$INSTALL_MAN"; then
16029  echo "$as_me:$LINENO: result: $INSTALL_MAN" >&5
16030echo "${ECHO_T}$INSTALL_MAN" >&6
16031else
16032  echo "$as_me:$LINENO: result: no" >&5
16033echo "${ECHO_T}no" >&6
16034fi
16035
16036
16037echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
16038echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
16039set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
16040if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
16041  echo $ECHO_N "(cached) $ECHO_C" >&6
16042else
16043  cat >conftest.make <<\_ACEOF
16044all:
16045	@echo 'ac_maketemp="${MAKE}"'
16046_ACEOF
16047# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16048eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
16049if test -n "$ac_maketemp"; then
16050  eval ac_cv_prog_make_${ac_make}_set=yes
16051else
16052  eval ac_cv_prog_make_${ac_make}_set=no
16053fi
16054rm -f conftest.make
16055fi
16056if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
16057  echo "$as_me:$LINENO: result: yes" >&5
16058echo "${ECHO_T}yes" >&6
16059  SET_MAKE=
16060else
16061  echo "$as_me:$LINENO: result: no" >&5
16062echo "${ECHO_T}no" >&6
16063  SET_MAKE="MAKE=${MAKE-make}"
16064fi
16065
16066
16067echo "$as_me:$LINENO: checking for shell" >&5
16068echo $ECHO_N "checking for shell... $ECHO_C" >&6
16069SHELL=/bin/sh
16070echo "$as_me:$LINENO: result: using $SHELL (FORCED)" >&5
16071echo "${ECHO_T}using $SHELL (FORCED)" >&6
16072
16073
16074        MKINSTALLDIRS=
16075  if test -n "$ac_aux_dir"; then
16076    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
16077  fi
16078  if test -z "$MKINSTALLDIRS"; then
16079    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16080  fi
16081
16082
16083
16084
16085
16086        # Extract the first word of "msgfmt", so it can be a program name with args.
16087set dummy msgfmt; ac_word=$2
16088echo "$as_me:$LINENO: checking for $ac_word" >&5
16089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16090if test "${ac_cv_path_MSGFMT+set}" = set; then
16091  echo $ECHO_N "(cached) $ECHO_C" >&6
16092else
16093  case "$MSGFMT" in
16094  /*)
16095  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16096  ;;
16097  *)
16098  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16099  for ac_dir in $PATH; do
16100    test -z "$ac_dir" && ac_dir=.
16101    if test -f $ac_dir/$ac_word; then
16102      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
16103     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16104	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
16105	break
16106      fi
16107    fi
16108  done
16109  IFS="$ac_save_ifs"
16110  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16111  ;;
16112esac
16113fi
16114MSGFMT="$ac_cv_path_MSGFMT"
16115if test "$MSGFMT" != ":"; then
16116  echo "$as_me:$LINENO: result: $MSGFMT" >&5
16117echo "${ECHO_T}$MSGFMT" >&6
16118else
16119  echo "$as_me:$LINENO: result: no" >&5
16120echo "${ECHO_T}no" >&6
16121fi
16122
16123  # Extract the first word of "gmsgfmt", so it can be a program name with args.
16124set dummy gmsgfmt; ac_word=$2
16125echo "$as_me:$LINENO: checking for $ac_word" >&5
16126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16127if test "${ac_cv_path_GMSGFMT+set}" = set; then
16128  echo $ECHO_N "(cached) $ECHO_C" >&6
16129else
16130  case $GMSGFMT in
16131  [\\/]* | ?:[\\/]*)
16132  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16133  ;;
16134  *)
16135  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16136for as_dir in $PATH
16137do
16138  IFS=$as_save_IFS
16139  test -z "$as_dir" && as_dir=.
16140  for ac_exec_ext in '' $ac_executable_extensions; do
16141  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16142    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16143    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16144    break 2
16145  fi
16146done
16147done
16148
16149  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16150  ;;
16151esac
16152fi
16153GMSGFMT=$ac_cv_path_GMSGFMT
16154
16155if test -n "$GMSGFMT"; then
16156  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16157echo "${ECHO_T}$GMSGFMT" >&6
16158else
16159  echo "$as_me:$LINENO: result: no" >&5
16160echo "${ECHO_T}no" >&6
16161fi
16162
16163
16164        # Extract the first word of "xgettext", so it can be a program name with args.
16165set dummy xgettext; ac_word=$2
16166echo "$as_me:$LINENO: checking for $ac_word" >&5
16167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16168if test "${ac_cv_path_XGETTEXT+set}" = set; then
16169  echo $ECHO_N "(cached) $ECHO_C" >&6
16170else
16171  case "$XGETTEXT" in
16172  /*)
16173  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16174  ;;
16175  *)
16176  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16177  for ac_dir in $PATH; do
16178    test -z "$ac_dir" && ac_dir=.
16179    if test -f $ac_dir/$ac_word; then
16180      if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
16181     (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16182	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
16183	break
16184      fi
16185    fi
16186  done
16187  IFS="$ac_save_ifs"
16188  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16189  ;;
16190esac
16191fi
16192XGETTEXT="$ac_cv_path_XGETTEXT"
16193if test "$XGETTEXT" != ":"; then
16194  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16195echo "${ECHO_T}$XGETTEXT" >&6
16196else
16197  echo "$as_me:$LINENO: result: no" >&5
16198echo "${ECHO_T}no" >&6
16199fi
16200
16201    rm -f messages.po
16202
16203    # Extract the first word of "msgmerge", so it can be a program name with args.
16204set dummy msgmerge; ac_word=$2
16205echo "$as_me:$LINENO: checking for $ac_word" >&5
16206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16207if test "${ac_cv_path_MSGMERGE+set}" = set; then
16208  echo $ECHO_N "(cached) $ECHO_C" >&6
16209else
16210  case "$MSGMERGE" in
16211  /*)
16212  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16213  ;;
16214  *)
16215  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16216  for ac_dir in $PATH; do
16217    test -z "$ac_dir" && ac_dir=.
16218    if test -f $ac_dir/$ac_word; then
16219      if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16220	ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
16221	break
16222      fi
16223    fi
16224  done
16225  IFS="$ac_save_ifs"
16226  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16227  ;;
16228esac
16229fi
16230MSGMERGE="$ac_cv_path_MSGMERGE"
16231if test "$MSGMERGE" != ":"; then
16232  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16233echo "${ECHO_T}$MSGMERGE" >&6
16234else
16235  echo "$as_me:$LINENO: result: no" >&5
16236echo "${ECHO_T}no" >&6
16237fi
16238
16239
16240      if test "$GMSGFMT" != ":"; then
16241            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16242       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16243      : ;
16244    else
16245      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16246      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16247echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
16248      GMSGFMT=":"
16249    fi
16250  fi
16251
16252      if test "$XGETTEXT" != ":"; then
16253            if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
16254       (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16255      : ;
16256    else
16257      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16258echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
16259      XGETTEXT=":"
16260    fi
16261        rm -f messages.po
16262  fi
16263
16264  ac_config_commands="$ac_config_commands default-1"
16265
16266
16267
16268      if test "X$prefix" = "XNONE"; then
16269    acl_final_prefix="$ac_default_prefix"
16270  else
16271    acl_final_prefix="$prefix"
16272  fi
16273  if test "X$exec_prefix" = "XNONE"; then
16274    acl_final_exec_prefix='${prefix}'
16275  else
16276    acl_final_exec_prefix="$exec_prefix"
16277  fi
16278  acl_save_prefix="$prefix"
16279  prefix="$acl_final_prefix"
16280  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16281  prefix="$acl_save_prefix"
16282
16283
16284# Check whether --with-gnu-ld or --without-gnu-ld was given.
16285if test "${with_gnu_ld+set}" = set; then
16286  withval="$with_gnu_ld"
16287  test "$withval" = no || with_gnu_ld=yes
16288else
16289  with_gnu_ld=no
16290fi;
16291ac_prog=ld
16292if test "$GCC" = yes; then
16293  # Check if gcc -print-prog-name=ld gives a path.
16294  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16295echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
16296  case $host in
16297  *-*-mingw*)
16298    # gcc leaves a trailing carriage return which upsets mingw
16299    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16300  *)
16301    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16302  esac
16303  case $ac_prog in
16304    # Accept absolute paths.
16305    [\\/]* | [A-Za-z]:[\\/]*)
16306      re_direlt='/[^/][^/]*/\.\./'
16307      # Canonicalize the path of ld
16308      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16309      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16310	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16311      done
16312      test -z "$LD" && LD="$ac_prog"
16313      ;;
16314  "")
16315    # If it fails, then pretend we aren't using GCC.
16316    ac_prog=ld
16317    ;;
16318  *)
16319    # If it is relative, then search for the first ld in PATH.
16320    with_gnu_ld=unknown
16321    ;;
16322  esac
16323elif test "$with_gnu_ld" = yes; then
16324  echo "$as_me:$LINENO: checking for GNU ld" >&5
16325echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16326else
16327  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16328echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16329fi
16330if test "${acl_cv_path_LD+set}" = set; then
16331  echo $ECHO_N "(cached) $ECHO_C" >&6
16332else
16333  if test -z "$LD"; then
16334  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16335  for ac_dir in $PATH; do
16336    test -z "$ac_dir" && ac_dir=.
16337    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16338      acl_cv_path_LD="$ac_dir/$ac_prog"
16339      # Check to see if the program is GNU ld.  I'd rather use --version,
16340      # but apparently some GNU ld's only accept -v.
16341      # Break only if it was the GNU/non-GNU ld that we prefer.
16342      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
16343	test "$with_gnu_ld" != no && break
16344      else
16345	test "$with_gnu_ld" != yes && break
16346      fi
16347    fi
16348  done
16349  IFS="$ac_save_ifs"
16350else
16351  acl_cv_path_LD="$LD" # Let the user override the test with a path.
16352fi
16353fi
16354
16355LD="$acl_cv_path_LD"
16356if test -n "$LD"; then
16357  echo "$as_me:$LINENO: result: $LD" >&5
16358echo "${ECHO_T}$LD" >&6
16359else
16360  echo "$as_me:$LINENO: result: no" >&5
16361echo "${ECHO_T}no" >&6
16362fi
16363test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16364echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16365   { (exit 1); exit 1; }; }
16366echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16367echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16368if test "${acl_cv_prog_gnu_ld+set}" = set; then
16369  echo $ECHO_N "(cached) $ECHO_C" >&6
16370else
16371  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16372if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
16373  acl_cv_prog_gnu_ld=yes
16374else
16375  acl_cv_prog_gnu_ld=no
16376fi
16377fi
16378echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16379echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
16380with_gnu_ld=$acl_cv_prog_gnu_ld
16381
16382
16383
16384                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16385echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
16386if test "${acl_cv_rpath+set}" = set; then
16387  echo $ECHO_N "(cached) $ECHO_C" >&6
16388else
16389
16390    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16391    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16392    . ./conftest.sh
16393    rm -f ./conftest.sh
16394    acl_cv_rpath=done
16395
16396fi
16397echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16398echo "${ECHO_T}$acl_cv_rpath" >&6
16399  wl="$acl_cv_wl"
16400  libext="$acl_cv_libext"
16401  shlibext="$acl_cv_shlibext"
16402  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16403  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16404  hardcode_direct="$acl_cv_hardcode_direct"
16405  hardcode_minus_L="$acl_cv_hardcode_minus_L"
16406  sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
16407  sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
16408    # Check whether --enable-rpath or --disable-rpath was given.
16409if test "${enable_rpath+set}" = set; then
16410  enableval="$enable_rpath"
16411  :
16412else
16413  enable_rpath=yes
16414fi;
16415
16416
16417
16418
16419
16420
16421
16422    use_additional=yes
16423
16424  acl_save_prefix="$prefix"
16425  prefix="$acl_final_prefix"
16426  acl_save_exec_prefix="$exec_prefix"
16427  exec_prefix="$acl_final_exec_prefix"
16428
16429    eval additional_includedir=\"$includedir\"
16430    eval additional_libdir=\"$libdir\"
16431
16432  exec_prefix="$acl_save_exec_prefix"
16433  prefix="$acl_save_prefix"
16434
16435
16436# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16437if test "${with_libiconv_prefix+set}" = set; then
16438  withval="$with_libiconv_prefix"
16439
16440    if test "X$withval" = "Xno"; then
16441      use_additional=no
16442    else
16443      if test "X$withval" = "X"; then
16444
16445  acl_save_prefix="$prefix"
16446  prefix="$acl_final_prefix"
16447  acl_save_exec_prefix="$exec_prefix"
16448  exec_prefix="$acl_final_exec_prefix"
16449
16450          eval additional_includedir=\"$includedir\"
16451          eval additional_libdir=\"$libdir\"
16452
16453  exec_prefix="$acl_save_exec_prefix"
16454  prefix="$acl_save_prefix"
16455
16456      else
16457        additional_includedir="$withval/include"
16458        additional_libdir="$withval/lib"
16459      fi
16460    fi
16461
16462fi;
16463      LIBICONV=
16464  LTLIBICONV=
16465  INCICONV=
16466  rpathdirs=
16467  ltrpathdirs=
16468  names_already_handled=
16469  names_next_round='iconv '
16470  while test -n "$names_next_round"; do
16471    names_this_round="$names_next_round"
16472    names_next_round=
16473    for name in $names_this_round; do
16474      already_handled=
16475      for n in $names_already_handled; do
16476        if test "$n" = "$name"; then
16477          already_handled=yes
16478          break
16479        fi
16480      done
16481      if test -z "$already_handled"; then
16482        names_already_handled="$names_already_handled $name"
16483                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16484        eval value=\"\$HAVE_LIB$uppername\"
16485        if test -n "$value"; then
16486          if test "$value" = yes; then
16487            eval value=\"\$LIB$uppername\"
16488            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16489            eval value=\"\$LTLIB$uppername\"
16490            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16491          else
16492                                    :
16493          fi
16494        else
16495                              found_dir=
16496          found_la=
16497          found_so=
16498          found_a=
16499          if test $use_additional = yes; then
16500            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16501              found_dir="$additional_libdir"
16502              found_so="$additional_libdir/lib$name.$shlibext"
16503              if test -f "$additional_libdir/lib$name.la"; then
16504                found_la="$additional_libdir/lib$name.la"
16505              fi
16506            else
16507              if test -f "$additional_libdir/lib$name.$libext"; then
16508                found_dir="$additional_libdir"
16509                found_a="$additional_libdir/lib$name.$libext"
16510                if test -f "$additional_libdir/lib$name.la"; then
16511                  found_la="$additional_libdir/lib$name.la"
16512                fi
16513              fi
16514            fi
16515          fi
16516          if test "X$found_dir" = "X"; then
16517            for x in $LDFLAGS $LTLIBICONV; do
16518
16519  acl_save_prefix="$prefix"
16520  prefix="$acl_final_prefix"
16521  acl_save_exec_prefix="$exec_prefix"
16522  exec_prefix="$acl_final_exec_prefix"
16523  eval x=\"$x\"
16524  exec_prefix="$acl_save_exec_prefix"
16525  prefix="$acl_save_prefix"
16526
16527              case "$x" in
16528                -L*)
16529                  dir=`echo "X$x" | sed -e 's/^X-L//'`
16530                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16531                    found_dir="$dir"
16532                    found_so="$dir/lib$name.$shlibext"
16533                    if test -f "$dir/lib$name.la"; then
16534                      found_la="$dir/lib$name.la"
16535                    fi
16536                  else
16537                    if test -f "$dir/lib$name.$libext"; then
16538                      found_dir="$dir"
16539                      found_a="$dir/lib$name.$libext"
16540                      if test -f "$dir/lib$name.la"; then
16541                        found_la="$dir/lib$name.la"
16542                      fi
16543                    fi
16544                  fi
16545                  ;;
16546              esac
16547              if test "X$found_dir" != "X"; then
16548                break
16549              fi
16550            done
16551          fi
16552          if test "X$found_dir" != "X"; then
16553                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16554            if test "X$found_so" != "X"; then
16555                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16556                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16557              else
16558                                                                                haveit=
16559                for x in $ltrpathdirs; do
16560                  if test "X$x" = "X$found_dir"; then
16561                    haveit=yes
16562                    break
16563                  fi
16564                done
16565                if test -z "$haveit"; then
16566                  ltrpathdirs="$ltrpathdirs $found_dir"
16567                fi
16568                                if test "$hardcode_direct" = yes; then
16569                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16570                else
16571                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16572                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16573                                                            haveit=
16574                    for x in $rpathdirs; do
16575                      if test "X$x" = "X$found_dir"; then
16576                        haveit=yes
16577                        break
16578                      fi
16579                    done
16580                    if test -z "$haveit"; then
16581                      rpathdirs="$rpathdirs $found_dir"
16582                    fi
16583                  else
16584                                                                                haveit=
16585                    for x in $LDFLAGS $LIBICONV; do
16586
16587  acl_save_prefix="$prefix"
16588  prefix="$acl_final_prefix"
16589  acl_save_exec_prefix="$exec_prefix"
16590  exec_prefix="$acl_final_exec_prefix"
16591  eval x=\"$x\"
16592  exec_prefix="$acl_save_exec_prefix"
16593  prefix="$acl_save_prefix"
16594
16595                      if test "X$x" = "X-L$found_dir"; then
16596                        haveit=yes
16597                        break
16598                      fi
16599                    done
16600                    if test -z "$haveit"; then
16601                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16602                    fi
16603                    if test "$hardcode_minus_L" != no; then
16604                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16605                    else
16606                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16607                    fi
16608                  fi
16609                fi
16610              fi
16611            else
16612              if test "X$found_a" != "X"; then
16613                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16614              else
16615                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16616              fi
16617            fi
16618                        additional_includedir=
16619            case "$found_dir" in
16620              */lib | */lib/)
16621                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16622                additional_includedir="$basedir/include"
16623                ;;
16624            esac
16625            if test "X$additional_includedir" != "X"; then
16626                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
16627                haveit=
16628                if test "X$additional_includedir" = "X/usr/local/include"; then
16629                  if test -n "$GCC"; then
16630                    case $host_os in
16631                      linux*) haveit=yes;;
16632                    esac
16633                  fi
16634                fi
16635                if test -z "$haveit"; then
16636                  for x in $CPPFLAGS $INCICONV; do
16637
16638  acl_save_prefix="$prefix"
16639  prefix="$acl_final_prefix"
16640  acl_save_exec_prefix="$exec_prefix"
16641  exec_prefix="$acl_final_exec_prefix"
16642  eval x=\"$x\"
16643  exec_prefix="$acl_save_exec_prefix"
16644  prefix="$acl_save_prefix"
16645
16646                    if test "X$x" = "X-I$additional_includedir"; then
16647                      haveit=yes
16648                      break
16649                    fi
16650                  done
16651                  if test -z "$haveit"; then
16652                    if test -d "$additional_includedir"; then
16653                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16654                    fi
16655                  fi
16656                fi
16657              fi
16658            fi
16659                        if test -n "$found_la"; then
16660                                                        save_libdir="$libdir"
16661              case "$found_la" in
16662                */* | *\\*) . "$found_la" ;;
16663                *) . "./$found_la" ;;
16664              esac
16665              libdir="$save_libdir"
16666                            for dep in $dependency_libs; do
16667                case "$dep" in
16668                  -L*)
16669                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16670                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
16671                      haveit=
16672                      if test "X$additional_libdir" = "X/usr/local/lib"; then
16673                        if test -n "$GCC"; then
16674                          case $host_os in
16675                            linux*) haveit=yes;;
16676                          esac
16677                        fi
16678                      fi
16679                      if test -z "$haveit"; then
16680                        haveit=
16681                        for x in $LDFLAGS $LIBICONV; do
16682
16683  acl_save_prefix="$prefix"
16684  prefix="$acl_final_prefix"
16685  acl_save_exec_prefix="$exec_prefix"
16686  exec_prefix="$acl_final_exec_prefix"
16687  eval x=\"$x\"
16688  exec_prefix="$acl_save_exec_prefix"
16689  prefix="$acl_save_prefix"
16690
16691                          if test "X$x" = "X-L$additional_libdir"; then
16692                            haveit=yes
16693                            break
16694                          fi
16695                        done
16696                        if test -z "$haveit"; then
16697                          if test -d "$additional_libdir"; then
16698                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16699                          fi
16700                        fi
16701                        haveit=
16702                        for x in $LDFLAGS $LTLIBICONV; do
16703
16704  acl_save_prefix="$prefix"
16705  prefix="$acl_final_prefix"
16706  acl_save_exec_prefix="$exec_prefix"
16707  exec_prefix="$acl_final_exec_prefix"
16708  eval x=\"$x\"
16709  exec_prefix="$acl_save_exec_prefix"
16710  prefix="$acl_save_prefix"
16711
16712                          if test "X$x" = "X-L$additional_libdir"; then
16713                            haveit=yes
16714                            break
16715                          fi
16716                        done
16717                        if test -z "$haveit"; then
16718                          if test -d "$additional_libdir"; then
16719                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16720                          fi
16721                        fi
16722                      fi
16723                    fi
16724                    ;;
16725                  -R*)
16726                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
16727                    if test "$enable_rpath" != no; then
16728                                                                  haveit=
16729                      for x in $rpathdirs; do
16730                        if test "X$x" = "X$dir"; then
16731                          haveit=yes
16732                          break
16733                        fi
16734                      done
16735                      if test -z "$haveit"; then
16736                        rpathdirs="$rpathdirs $dir"
16737                      fi
16738                                                                  haveit=
16739                      for x in $ltrpathdirs; do
16740                        if test "X$x" = "X$dir"; then
16741                          haveit=yes
16742                          break
16743                        fi
16744                      done
16745                      if test -z "$haveit"; then
16746                        ltrpathdirs="$ltrpathdirs $dir"
16747                      fi
16748                    fi
16749                    ;;
16750                  -l*)
16751                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16752                    ;;
16753                  *.la)
16754                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16755                    ;;
16756                  *)
16757                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16758                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16759                    ;;
16760                esac
16761              done
16762            fi
16763          else
16764                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16765            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16766          fi
16767        fi
16768      fi
16769    done
16770  done
16771  if test "X$rpathdirs" != "X"; then
16772    if test -n "$hardcode_libdir_separator"; then
16773                        alldirs=
16774      for found_dir in $rpathdirs; do
16775        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16776      done
16777            acl_save_libdir="$libdir"
16778      libdir="$alldirs"
16779      eval flag=\"$hardcode_libdir_flag_spec\"
16780      libdir="$acl_save_libdir"
16781      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16782    else
16783            for found_dir in $rpathdirs; do
16784        acl_save_libdir="$libdir"
16785        libdir="$found_dir"
16786        eval flag=\"$hardcode_libdir_flag_spec\"
16787        libdir="$acl_save_libdir"
16788        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16789      done
16790    fi
16791  fi
16792  if test "X$ltrpathdirs" != "X"; then
16793            for found_dir in $ltrpathdirs; do
16794      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16795    done
16796  fi
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16815echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
16816    # Check whether --enable-nls or --disable-nls was given.
16817if test "${enable_nls+set}" = set; then
16818  enableval="$enable_nls"
16819  USE_NLS=$enableval
16820else
16821  USE_NLS=no
16822fi;
16823  echo "$as_me:$LINENO: result: $USE_NLS" >&5
16824echo "${ECHO_T}$USE_NLS" >&6
16825
16826
16827
16828  LIBINTL=
16829  LTLIBINTL=
16830  POSUB=
16831
16832    if test "$USE_NLS" = "yes"; then
16833    gt_use_preinstalled_gnugettext=no
16834
16835
16836
16837
16838
16839
16840        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
16841echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
16842if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
16843  echo $ECHO_N "(cached) $ECHO_C" >&6
16844else
16845  cat >conftest.$ac_ext <<_ACEOF
16846#line $LINENO "configure"
16847#include "confdefs.h"
16848#include <libintl.h>
16849extern int _nl_msg_cat_cntr;
16850extern int *_nl_domain_bindings;
16851#ifdef F77_DUMMY_MAIN
16852#  ifdef __cplusplus
16853     extern "C"
16854#  endif
16855   int F77_DUMMY_MAIN() { return 1; }
16856#endif
16857int
16858main ()
16859{
16860bindtextdomain ("", "");
16861return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
16862  ;
16863  return 0;
16864}
16865_ACEOF
16866rm -f conftest.$ac_objext conftest$ac_exeext
16867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16868  (eval $ac_link) 2>&5
16869  ac_status=$?
16870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871  (exit $ac_status); } &&
16872         { ac_try='test -s conftest$ac_exeext'
16873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874  (eval $ac_try) 2>&5
16875  ac_status=$?
16876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877  (exit $ac_status); }; }; then
16878  gt_cv_func_gnugettext1_libc=yes
16879else
16880  echo "$as_me: failed program was:" >&5
16881cat conftest.$ac_ext >&5
16882gt_cv_func_gnugettext1_libc=no
16883fi
16884rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16885fi
16886echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
16887echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
16888
16889        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
16890
16891
16892
16893
16894
16895          am_save_CPPFLAGS="$CPPFLAGS"
16896
16897  for element in $INCICONV; do
16898    haveit=
16899    for x in $CPPFLAGS; do
16900
16901  acl_save_prefix="$prefix"
16902  prefix="$acl_final_prefix"
16903  acl_save_exec_prefix="$exec_prefix"
16904  exec_prefix="$acl_final_exec_prefix"
16905  eval x=\"$x\"
16906  exec_prefix="$acl_save_exec_prefix"
16907  prefix="$acl_save_prefix"
16908
16909      if test "X$x" = "X$element"; then
16910        haveit=yes
16911        break
16912      fi
16913    done
16914    if test -z "$haveit"; then
16915      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16916    fi
16917  done
16918
16919
16920  echo "$as_me:$LINENO: checking for iconv" >&5
16921echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16922if test "${am_cv_func_iconv+set}" = set; then
16923  echo $ECHO_N "(cached) $ECHO_C" >&6
16924else
16925
16926    am_cv_func_iconv="no, consider installing GNU libiconv"
16927    am_cv_lib_iconv=no
16928    cat >conftest.$ac_ext <<_ACEOF
16929#line $LINENO "configure"
16930#include "confdefs.h"
16931#include <stdlib.h>
16932#include <iconv.h>
16933#ifdef F77_DUMMY_MAIN
16934#  ifdef __cplusplus
16935     extern "C"
16936#  endif
16937   int F77_DUMMY_MAIN() { return 1; }
16938#endif
16939int
16940main ()
16941{
16942iconv_t cd = iconv_open("","");
16943       iconv(cd,NULL,NULL,NULL,NULL);
16944       iconv_close(cd);
16945  ;
16946  return 0;
16947}
16948_ACEOF
16949rm -f conftest.$ac_objext conftest$ac_exeext
16950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16951  (eval $ac_link) 2>&5
16952  ac_status=$?
16953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954  (exit $ac_status); } &&
16955         { ac_try='test -s conftest$ac_exeext'
16956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957  (eval $ac_try) 2>&5
16958  ac_status=$?
16959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960  (exit $ac_status); }; }; then
16961  am_cv_func_iconv=yes
16962else
16963  echo "$as_me: failed program was:" >&5
16964cat conftest.$ac_ext >&5
16965fi
16966rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16967    if test "$am_cv_func_iconv" != yes; then
16968      am_save_LIBS="$LIBS"
16969      LIBS="$LIBS $LIBICONV"
16970      cat >conftest.$ac_ext <<_ACEOF
16971#line $LINENO "configure"
16972#include "confdefs.h"
16973#include <stdlib.h>
16974#include <iconv.h>
16975#ifdef F77_DUMMY_MAIN
16976#  ifdef __cplusplus
16977     extern "C"
16978#  endif
16979   int F77_DUMMY_MAIN() { return 1; }
16980#endif
16981int
16982main ()
16983{
16984iconv_t cd = iconv_open("","");
16985         iconv(cd,NULL,NULL,NULL,NULL);
16986         iconv_close(cd);
16987  ;
16988  return 0;
16989}
16990_ACEOF
16991rm -f conftest.$ac_objext conftest$ac_exeext
16992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16993  (eval $ac_link) 2>&5
16994  ac_status=$?
16995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996  (exit $ac_status); } &&
16997         { ac_try='test -s conftest$ac_exeext'
16998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999  (eval $ac_try) 2>&5
17000  ac_status=$?
17001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002  (exit $ac_status); }; }; then
17003  am_cv_lib_iconv=yes
17004        am_cv_func_iconv=yes
17005else
17006  echo "$as_me: failed program was:" >&5
17007cat conftest.$ac_ext >&5
17008fi
17009rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17010      LIBS="$am_save_LIBS"
17011    fi
17012
17013fi
17014echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17015echo "${ECHO_T}$am_cv_func_iconv" >&6
17016  if test "$am_cv_func_iconv" = yes; then
17017
17018cat >>confdefs.h <<\_ACEOF
17019#define HAVE_ICONV 1
17020_ACEOF
17021
17022  fi
17023  if test "$am_cv_lib_iconv" = yes; then
17024    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17025echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
17026    echo "$as_me:$LINENO: result: $LIBICONV" >&5
17027echo "${ECHO_T}$LIBICONV" >&6
17028  else
17029            CPPFLAGS="$am_save_CPPFLAGS"
17030    LIBICONV=
17031    LTLIBICONV=
17032  fi
17033
17034
17035
17036
17037
17038
17039    use_additional=yes
17040
17041  acl_save_prefix="$prefix"
17042  prefix="$acl_final_prefix"
17043  acl_save_exec_prefix="$exec_prefix"
17044  exec_prefix="$acl_final_exec_prefix"
17045
17046    eval additional_includedir=\"$includedir\"
17047    eval additional_libdir=\"$libdir\"
17048
17049  exec_prefix="$acl_save_exec_prefix"
17050  prefix="$acl_save_prefix"
17051
17052
17053# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
17054if test "${with_libintl_prefix+set}" = set; then
17055  withval="$with_libintl_prefix"
17056
17057    if test "X$withval" = "Xno"; then
17058      use_additional=no
17059    else
17060      if test "X$withval" = "X"; then
17061
17062  acl_save_prefix="$prefix"
17063  prefix="$acl_final_prefix"
17064  acl_save_exec_prefix="$exec_prefix"
17065  exec_prefix="$acl_final_exec_prefix"
17066
17067          eval additional_includedir=\"$includedir\"
17068          eval additional_libdir=\"$libdir\"
17069
17070  exec_prefix="$acl_save_exec_prefix"
17071  prefix="$acl_save_prefix"
17072
17073      else
17074        additional_includedir="$withval/include"
17075        additional_libdir="$withval/lib"
17076      fi
17077    fi
17078
17079fi;
17080      LIBINTL=
17081  LTLIBINTL=
17082  INCINTL=
17083  rpathdirs=
17084  ltrpathdirs=
17085  names_already_handled=
17086  names_next_round='intl '
17087  while test -n "$names_next_round"; do
17088    names_this_round="$names_next_round"
17089    names_next_round=
17090    for name in $names_this_round; do
17091      already_handled=
17092      for n in $names_already_handled; do
17093        if test "$n" = "$name"; then
17094          already_handled=yes
17095          break
17096        fi
17097      done
17098      if test -z "$already_handled"; then
17099        names_already_handled="$names_already_handled $name"
17100                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17101        eval value=\"\$HAVE_LIB$uppername\"
17102        if test -n "$value"; then
17103          if test "$value" = yes; then
17104            eval value=\"\$LIB$uppername\"
17105            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17106            eval value=\"\$LTLIB$uppername\"
17107            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17108          else
17109                                    :
17110          fi
17111        else
17112                              found_dir=
17113          found_la=
17114          found_so=
17115          found_a=
17116          if test $use_additional = yes; then
17117            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17118              found_dir="$additional_libdir"
17119              found_so="$additional_libdir/lib$name.$shlibext"
17120              if test -f "$additional_libdir/lib$name.la"; then
17121                found_la="$additional_libdir/lib$name.la"
17122              fi
17123            else
17124              if test -f "$additional_libdir/lib$name.$libext"; then
17125                found_dir="$additional_libdir"
17126                found_a="$additional_libdir/lib$name.$libext"
17127                if test -f "$additional_libdir/lib$name.la"; then
17128                  found_la="$additional_libdir/lib$name.la"
17129                fi
17130              fi
17131            fi
17132          fi
17133          if test "X$found_dir" = "X"; then
17134            for x in $LDFLAGS $LTLIBINTL; do
17135
17136  acl_save_prefix="$prefix"
17137  prefix="$acl_final_prefix"
17138  acl_save_exec_prefix="$exec_prefix"
17139  exec_prefix="$acl_final_exec_prefix"
17140  eval x=\"$x\"
17141  exec_prefix="$acl_save_exec_prefix"
17142  prefix="$acl_save_prefix"
17143
17144              case "$x" in
17145                -L*)
17146                  dir=`echo "X$x" | sed -e 's/^X-L//'`
17147                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17148                    found_dir="$dir"
17149                    found_so="$dir/lib$name.$shlibext"
17150                    if test -f "$dir/lib$name.la"; then
17151                      found_la="$dir/lib$name.la"
17152                    fi
17153                  else
17154                    if test -f "$dir/lib$name.$libext"; then
17155                      found_dir="$dir"
17156                      found_a="$dir/lib$name.$libext"
17157                      if test -f "$dir/lib$name.la"; then
17158                        found_la="$dir/lib$name.la"
17159                      fi
17160                    fi
17161                  fi
17162                  ;;
17163              esac
17164              if test "X$found_dir" != "X"; then
17165                break
17166              fi
17167            done
17168          fi
17169          if test "X$found_dir" != "X"; then
17170                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17171            if test "X$found_so" != "X"; then
17172                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17173                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17174              else
17175                                                                                haveit=
17176                for x in $ltrpathdirs; do
17177                  if test "X$x" = "X$found_dir"; then
17178                    haveit=yes
17179                    break
17180                  fi
17181                done
17182                if test -z "$haveit"; then
17183                  ltrpathdirs="$ltrpathdirs $found_dir"
17184                fi
17185                                if test "$hardcode_direct" = yes; then
17186                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17187                else
17188                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17189                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17190                                                            haveit=
17191                    for x in $rpathdirs; do
17192                      if test "X$x" = "X$found_dir"; then
17193                        haveit=yes
17194                        break
17195                      fi
17196                    done
17197                    if test -z "$haveit"; then
17198                      rpathdirs="$rpathdirs $found_dir"
17199                    fi
17200                  else
17201                                                                                haveit=
17202                    for x in $LDFLAGS $LIBINTL; do
17203
17204  acl_save_prefix="$prefix"
17205  prefix="$acl_final_prefix"
17206  acl_save_exec_prefix="$exec_prefix"
17207  exec_prefix="$acl_final_exec_prefix"
17208  eval x=\"$x\"
17209  exec_prefix="$acl_save_exec_prefix"
17210  prefix="$acl_save_prefix"
17211
17212                      if test "X$x" = "X-L$found_dir"; then
17213                        haveit=yes
17214                        break
17215                      fi
17216                    done
17217                    if test -z "$haveit"; then
17218                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17219                    fi
17220                    if test "$hardcode_minus_L" != no; then
17221                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17222                    else
17223                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17224                    fi
17225                  fi
17226                fi
17227              fi
17228            else
17229              if test "X$found_a" != "X"; then
17230                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17231              else
17232                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17233              fi
17234            fi
17235                        additional_includedir=
17236            case "$found_dir" in
17237              */lib | */lib/)
17238                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17239                additional_includedir="$basedir/include"
17240                ;;
17241            esac
17242            if test "X$additional_includedir" != "X"; then
17243                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
17244                haveit=
17245                if test "X$additional_includedir" = "X/usr/local/include"; then
17246                  if test -n "$GCC"; then
17247                    case $host_os in
17248                      linux*) haveit=yes;;
17249                    esac
17250                  fi
17251                fi
17252                if test -z "$haveit"; then
17253                  for x in $CPPFLAGS $INCINTL; do
17254
17255  acl_save_prefix="$prefix"
17256  prefix="$acl_final_prefix"
17257  acl_save_exec_prefix="$exec_prefix"
17258  exec_prefix="$acl_final_exec_prefix"
17259  eval x=\"$x\"
17260  exec_prefix="$acl_save_exec_prefix"
17261  prefix="$acl_save_prefix"
17262
17263                    if test "X$x" = "X-I$additional_includedir"; then
17264                      haveit=yes
17265                      break
17266                    fi
17267                  done
17268                  if test -z "$haveit"; then
17269                    if test -d "$additional_includedir"; then
17270                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17271                    fi
17272                  fi
17273                fi
17274              fi
17275            fi
17276                        if test -n "$found_la"; then
17277                                                        save_libdir="$libdir"
17278              case "$found_la" in
17279                */* | *\\*) . "$found_la" ;;
17280                *) . "./$found_la" ;;
17281              esac
17282              libdir="$save_libdir"
17283                            for dep in $dependency_libs; do
17284                case "$dep" in
17285                  -L*)
17286                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17287                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
17288                      haveit=
17289                      if test "X$additional_libdir" = "X/usr/local/lib"; then
17290                        if test -n "$GCC"; then
17291                          case $host_os in
17292                            linux*) haveit=yes;;
17293                          esac
17294                        fi
17295                      fi
17296                      if test -z "$haveit"; then
17297                        haveit=
17298                        for x in $LDFLAGS $LIBINTL; do
17299
17300  acl_save_prefix="$prefix"
17301  prefix="$acl_final_prefix"
17302  acl_save_exec_prefix="$exec_prefix"
17303  exec_prefix="$acl_final_exec_prefix"
17304  eval x=\"$x\"
17305  exec_prefix="$acl_save_exec_prefix"
17306  prefix="$acl_save_prefix"
17307
17308                          if test "X$x" = "X-L$additional_libdir"; then
17309                            haveit=yes
17310                            break
17311                          fi
17312                        done
17313                        if test -z "$haveit"; then
17314                          if test -d "$additional_libdir"; then
17315                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17316                          fi
17317                        fi
17318                        haveit=
17319                        for x in $LDFLAGS $LTLIBINTL; do
17320
17321  acl_save_prefix="$prefix"
17322  prefix="$acl_final_prefix"
17323  acl_save_exec_prefix="$exec_prefix"
17324  exec_prefix="$acl_final_exec_prefix"
17325  eval x=\"$x\"
17326  exec_prefix="$acl_save_exec_prefix"
17327  prefix="$acl_save_prefix"
17328
17329                          if test "X$x" = "X-L$additional_libdir"; then
17330                            haveit=yes
17331                            break
17332                          fi
17333                        done
17334                        if test -z "$haveit"; then
17335                          if test -d "$additional_libdir"; then
17336                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17337                          fi
17338                        fi
17339                      fi
17340                    fi
17341                    ;;
17342                  -R*)
17343                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
17344                    if test "$enable_rpath" != no; then
17345                                                                  haveit=
17346                      for x in $rpathdirs; do
17347                        if test "X$x" = "X$dir"; then
17348                          haveit=yes
17349                          break
17350                        fi
17351                      done
17352                      if test -z "$haveit"; then
17353                        rpathdirs="$rpathdirs $dir"
17354                      fi
17355                                                                  haveit=
17356                      for x in $ltrpathdirs; do
17357                        if test "X$x" = "X$dir"; then
17358                          haveit=yes
17359                          break
17360                        fi
17361                      done
17362                      if test -z "$haveit"; then
17363                        ltrpathdirs="$ltrpathdirs $dir"
17364                      fi
17365                    fi
17366                    ;;
17367                  -l*)
17368                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17369                    ;;
17370                  *.la)
17371                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17372                    ;;
17373                  *)
17374                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17375                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17376                    ;;
17377                esac
17378              done
17379            fi
17380          else
17381                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17382            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17383          fi
17384        fi
17385      fi
17386    done
17387  done
17388  if test "X$rpathdirs" != "X"; then
17389    if test -n "$hardcode_libdir_separator"; then
17390                        alldirs=
17391      for found_dir in $rpathdirs; do
17392        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17393      done
17394            acl_save_libdir="$libdir"
17395      libdir="$alldirs"
17396      eval flag=\"$hardcode_libdir_flag_spec\"
17397      libdir="$acl_save_libdir"
17398      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17399    else
17400            for found_dir in $rpathdirs; do
17401        acl_save_libdir="$libdir"
17402        libdir="$found_dir"
17403        eval flag=\"$hardcode_libdir_flag_spec\"
17404        libdir="$acl_save_libdir"
17405        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17406      done
17407    fi
17408  fi
17409  if test "X$ltrpathdirs" != "X"; then
17410            for found_dir in $ltrpathdirs; do
17411      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17412    done
17413  fi
17414
17415          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17416echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17417if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
17418  echo $ECHO_N "(cached) $ECHO_C" >&6
17419else
17420  gt_save_CPPFLAGS="$CPPFLAGS"
17421            CPPFLAGS="$CPPFLAGS $INCINTL"
17422            gt_save_LIBS="$LIBS"
17423            LIBS="$LIBS $LIBINTL"
17424                        cat >conftest.$ac_ext <<_ACEOF
17425#line $LINENO "configure"
17426#include "confdefs.h"
17427#include <libintl.h>
17428extern int _nl_msg_cat_cntr;
17429extern
17430#ifdef __cplusplus
17431"C"
17432#endif
17433const char *_nl_expand_alias ();
17434#ifdef F77_DUMMY_MAIN
17435#  ifdef __cplusplus
17436     extern "C"
17437#  endif
17438   int F77_DUMMY_MAIN() { return 1; }
17439#endif
17440int
17441main ()
17442{
17443bindtextdomain ("", "");
17444return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17445  ;
17446  return 0;
17447}
17448_ACEOF
17449rm -f conftest.$ac_objext conftest$ac_exeext
17450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17451  (eval $ac_link) 2>&5
17452  ac_status=$?
17453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454  (exit $ac_status); } &&
17455         { ac_try='test -s conftest$ac_exeext'
17456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457  (eval $ac_try) 2>&5
17458  ac_status=$?
17459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460  (exit $ac_status); }; }; then
17461  gt_cv_func_gnugettext1_libintl=yes
17462else
17463  echo "$as_me: failed program was:" >&5
17464cat conftest.$ac_ext >&5
17465gt_cv_func_gnugettext1_libintl=no
17466fi
17467rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17468                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17469              LIBS="$LIBS $LIBICONV"
17470              cat >conftest.$ac_ext <<_ACEOF
17471#line $LINENO "configure"
17472#include "confdefs.h"
17473#include <libintl.h>
17474extern int _nl_msg_cat_cntr;
17475extern
17476#ifdef __cplusplus
17477"C"
17478#endif
17479const char *_nl_expand_alias ();
17480#ifdef F77_DUMMY_MAIN
17481#  ifdef __cplusplus
17482     extern "C"
17483#  endif
17484   int F77_DUMMY_MAIN() { return 1; }
17485#endif
17486int
17487main ()
17488{
17489bindtextdomain ("", "");
17490return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17491  ;
17492  return 0;
17493}
17494_ACEOF
17495rm -f conftest.$ac_objext conftest$ac_exeext
17496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17497  (eval $ac_link) 2>&5
17498  ac_status=$?
17499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500  (exit $ac_status); } &&
17501         { ac_try='test -s conftest$ac_exeext'
17502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503  (eval $ac_try) 2>&5
17504  ac_status=$?
17505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506  (exit $ac_status); }; }; then
17507  LIBINTL="$LIBINTL $LIBICONV"
17508                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17509                gt_cv_func_gnugettext1_libintl=yes
17510
17511else
17512  echo "$as_me: failed program was:" >&5
17513cat conftest.$ac_ext >&5
17514fi
17515rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17516            fi
17517            CPPFLAGS="$gt_save_CPPFLAGS"
17518            LIBS="$gt_save_LIBS"
17519fi
17520echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
17521echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
17522        fi
17523
17524                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17525           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17526                && test "$PACKAGE" != gettext; }; then
17527          gt_use_preinstalled_gnugettext=yes
17528        else
17529                    LIBINTL=
17530          LTLIBINTL=
17531          INCINTL=
17532        fi
17533
17534
17535
17536    if test "$gt_use_preinstalled_gnugettext" = "yes" \
17537       || test "$nls_cv_use_gnu_gettext" = "yes"; then
17538
17539cat >>confdefs.h <<\_ACEOF
17540#define ENABLE_NLS 1
17541_ACEOF
17542
17543    else
17544      USE_NLS=no
17545    fi
17546  fi
17547
17548  if test "$USE_NLS" = "yes"; then
17549
17550    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17551      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17552        echo "$as_me:$LINENO: checking how to link with libintl" >&5
17553echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
17554        echo "$as_me:$LINENO: result: $LIBINTL" >&5
17555echo "${ECHO_T}$LIBINTL" >&6
17556
17557  for element in $INCINTL; do
17558    haveit=
17559    for x in $CPPFLAGS; do
17560
17561  acl_save_prefix="$prefix"
17562  prefix="$acl_final_prefix"
17563  acl_save_exec_prefix="$exec_prefix"
17564  exec_prefix="$acl_final_exec_prefix"
17565  eval x=\"$x\"
17566  exec_prefix="$acl_save_exec_prefix"
17567  prefix="$acl_save_prefix"
17568
17569      if test "X$x" = "X$element"; then
17570        haveit=yes
17571        break
17572      fi
17573    done
17574    if test -z "$haveit"; then
17575      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17576    fi
17577  done
17578
17579      fi
17580
17581
17582cat >>confdefs.h <<\_ACEOF
17583#define HAVE_GETTEXT 1
17584_ACEOF
17585
17586
17587cat >>confdefs.h <<\_ACEOF
17588#define HAVE_DCGETTEXT 1
17589_ACEOF
17590
17591    fi
17592
17593        POSUB=po
17594  fi
17595
17596
17597
17598    INTLLIBS="$LIBINTL"
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608if test "${enable_nls}" = yes -a "$nls_cv_force_use_gnu_gettext" != yes \
17609	-a "$gt_use_preinstalled_gnugettext" != "yes" ; then
17610	   { { echo "$as_me:$LINENO: error:
17611NLS enabled and requested system gettext support not available.
17612You may need to use:
17613configure 'CPPFLAGS=-I/usr/local/include' 'LDFLAGS=-L/usr/local/lib'
17614See ABOUT-NLS.LPRng in the LPRng distribution for details.
17615" >&5
17616echo "$as_me: error:
17617NLS enabled and requested system gettext support not available.
17618You may need to use:
17619configure 'CPPFLAGS=-I/usr/local/include' 'LDFLAGS=-L/usr/local/lib'
17620See ABOUT-NLS.LPRng in the LPRng distribution for details.
17621" >&2;}
17622   { (exit 1); exit 1; }; }
17623fi
17624echo "$as_me:$LINENO: result: LIBS $LIBS, INTLLIBS $INTLLIBS" >&5
17625echo "${ECHO_T}LIBS $LIBS, INTLLIBS $INTLLIBS" >&6
17626
17627
17628echo "$as_me:$LINENO: checking use tcp wrappers" >&5
17629echo $ECHO_N "checking use tcp wrappers... $ECHO_C" >&6
17630# Check whether --enable-tcpwrappers or --disable-tcpwrappers was given.
17631if test "${enable_tcpwrappers+set}" = set; then
17632  enableval="$enable_tcpwrappers"
17633
17634if test "$enableval" = "yes" ; then
17635 v=yes
17636
17637for ac_header in tcpd.h
17638do
17639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17640if eval "test \"\${$as_ac_Header+set}\" = set"; then
17641  echo "$as_me:$LINENO: checking for $ac_header" >&5
17642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17643if eval "test \"\${$as_ac_Header+set}\" = set"; then
17644  echo $ECHO_N "(cached) $ECHO_C" >&6
17645fi
17646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17648else
17649  # Is the header compilable?
17650echo "$as_me:$LINENO: checking $ac_header usability" >&5
17651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17652cat >conftest.$ac_ext <<_ACEOF
17653#line $LINENO "configure"
17654#include "confdefs.h"
17655$ac_includes_default
17656#include <$ac_header>
17657_ACEOF
17658rm -f conftest.$ac_objext
17659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17660  (eval $ac_compile) 2>&5
17661  ac_status=$?
17662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663  (exit $ac_status); } &&
17664         { ac_try='test -s conftest.$ac_objext'
17665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666  (eval $ac_try) 2>&5
17667  ac_status=$?
17668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669  (exit $ac_status); }; }; then
17670  ac_header_compiler=yes
17671else
17672  echo "$as_me: failed program was:" >&5
17673cat conftest.$ac_ext >&5
17674ac_header_compiler=no
17675fi
17676rm -f conftest.$ac_objext conftest.$ac_ext
17677echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17678echo "${ECHO_T}$ac_header_compiler" >&6
17679
17680# Is the header present?
17681echo "$as_me:$LINENO: checking $ac_header presence" >&5
17682echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17683cat >conftest.$ac_ext <<_ACEOF
17684#line $LINENO "configure"
17685#include "confdefs.h"
17686#include <$ac_header>
17687_ACEOF
17688if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17689  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17690  ac_status=$?
17691  egrep -v '^ *\+' conftest.er1 >conftest.err
17692  rm -f conftest.er1
17693  cat conftest.err >&5
17694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695  (exit $ac_status); } >/dev/null; then
17696  if test -s conftest.err; then
17697    ac_cpp_err=$ac_c_preproc_warn_flag
17698  else
17699    ac_cpp_err=
17700  fi
17701else
17702  ac_cpp_err=yes
17703fi
17704if test -z "$ac_cpp_err"; then
17705  ac_header_preproc=yes
17706else
17707  echo "$as_me: failed program was:" >&5
17708  cat conftest.$ac_ext >&5
17709  ac_header_preproc=no
17710fi
17711rm -f conftest.err conftest.$ac_ext
17712echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17713echo "${ECHO_T}$ac_header_preproc" >&6
17714
17715# So?  What about this header?
17716case $ac_header_compiler:$ac_header_preproc in
17717  yes:no )
17718    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17719echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17720    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17721echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
17722  no:yes )
17723    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17724echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17725    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17726echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17727    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17728echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
17729esac
17730echo "$as_me:$LINENO: checking for $ac_header" >&5
17731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17732if eval "test \"\${$as_ac_Header+set}\" = set"; then
17733  echo $ECHO_N "(cached) $ECHO_C" >&6
17734else
17735  eval "$as_ac_Header=$ac_header_preproc"
17736fi
17737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17739
17740fi
17741if test `eval echo '${'$as_ac_Header'}'` = yes; then
17742  cat >>confdefs.h <<_ACEOF
17743#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17744_ACEOF
17745
17746cat >>confdefs.h <<\_ACEOF
17747#define HAVE_TCPD_H 1
17748_ACEOF
17749
17750else
17751  { { echo "$as_me:$LINENO: error: tcpd.h not found" >&5
17752echo "$as_me: error: tcpd.h not found" >&2;}
17753   { (exit 1); exit 1; }; };
17754   v=no;
17755
17756
17757fi
17758
17759done
17760
17761 echo "$as_me:$LINENO: checking for request_init in -lwrap" >&5
17762echo $ECHO_N "checking for request_init in -lwrap... $ECHO_C" >&6
17763if test "${ac_cv_lib_wrap_request_init+set}" = set; then
17764  echo $ECHO_N "(cached) $ECHO_C" >&6
17765else
17766  ac_check_lib_save_LIBS=$LIBS
17767LIBS="-lwrap  $LIBS"
17768cat >conftest.$ac_ext <<_ACEOF
17769#line $LINENO "configure"
17770#include "confdefs.h"
17771
17772/* Override any gcc2 internal prototype to avoid an error.  */
17773#ifdef __cplusplus
17774extern "C"
17775#endif
17776/* We use char because int might match the return type of a gcc2
17777   builtin and then its argument prototype would still apply.  */
17778char request_init ();
17779#ifdef F77_DUMMY_MAIN
17780#  ifdef __cplusplus
17781     extern "C"
17782#  endif
17783   int F77_DUMMY_MAIN() { return 1; }
17784#endif
17785int
17786main ()
17787{
17788request_init ();
17789  ;
17790  return 0;
17791}
17792_ACEOF
17793rm -f conftest.$ac_objext conftest$ac_exeext
17794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17795  (eval $ac_link) 2>&5
17796  ac_status=$?
17797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798  (exit $ac_status); } &&
17799         { ac_try='test -s conftest$ac_exeext'
17800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801  (eval $ac_try) 2>&5
17802  ac_status=$?
17803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804  (exit $ac_status); }; }; then
17805  ac_cv_lib_wrap_request_init=yes
17806else
17807  echo "$as_me: failed program was:" >&5
17808cat conftest.$ac_ext >&5
17809ac_cv_lib_wrap_request_init=no
17810fi
17811rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17812LIBS=$ac_check_lib_save_LIBS
17813fi
17814echo "$as_me:$LINENO: result: $ac_cv_lib_wrap_request_init" >&5
17815echo "${ECHO_T}$ac_cv_lib_wrap_request_init" >&6
17816if test $ac_cv_lib_wrap_request_init = yes; then
17817  LIBS="-lwrap $LIBS"
17818else
17819  { { echo "$as_me:$LINENO: error: request_init not found in -wrap library" >&5
17820echo "$as_me: error: request_init not found in -wrap library" >&2;}
17821   { (exit 1); exit 1; }; };
17822   v=no;
17823
17824
17825fi
17826
17827else
17828 v=no;
17829fi
17830
17831else
17832
17833 v=no;
17834
17835
17836fi;
17837
17838if test "$v" = "yes" ; then
17839
17840cat >>confdefs.h <<\_ACEOF
17841#define TCPWRAPPERS 1
17842_ACEOF
17843
17844fi
17845echo "$as_me:$LINENO: result: $v" >&5
17846echo "${ECHO_T}$v" >&6;
17847echo "$as_me:$LINENO: checking if ssl authentication is disabled" >&5
17848echo $ECHO_N "checking if ssl authentication is disabled... $ECHO_C" >&6
17849# Check whether --enable-ssl or --disable-ssl was given.
17850if test "${enable_ssl+set}" = set; then
17851  enableval="$enable_ssl"
17852
17853if test "$enableval" = "yes" ; then
17854	v=enabled;  SSL_ENABLE=1;
17855else
17856	v=disabled; SSL_ENABLE=;
17857fi
17858
17859else
17860
17861	v=enabled;  SSL_ENABLE=1;
17862
17863fi;
17864echo "$as_me:$LINENO: result: $v" >&5
17865echo "${ECHO_T}$v" >&6;
17866ac_openssl_lib_dir=
17867ac_openssl_inc_dir=
17868if test "$SSL_ENABLE" != ""; then
17869
17870			ac_openssl_lib_dir="/usr/lib /usr/local /usr/local/ssl /usr/local/ssl/lib /usr/pkg"
17871	ac_openssl_inc_dir="/usr/include /usr/local /usr/local/ssl /usr/pkg /usr/local/ssl/include"
17872
17873
17874# Check whether --with-openssl or --without-openssl was given.
17875if test "${with_openssl+set}" = set; then
17876  withval="$with_openssl"
17877
17878		ac_openssl_lib_dir="$withval/lib $withval"
17879		ac_openssl_inc_dir="$withval/include $withval"
17880
17881
17882fi;
17883
17884
17885# Check whether --with-openssl-inc or --without-openssl-inc was given.
17886if test "${with_openssl_inc+set}" = set; then
17887  withval="$with_openssl_inc"
17888  ac_openssl_inc_dir=$withval
17889
17890fi;
17891
17892# Check whether --with-openssl-lib or --without-openssl-lib was given.
17893if test "${with_openssl_lib+set}" = set; then
17894  withval="$with_openssl_lib"
17895  ac_openssl_lib_dir=$withval
17896
17897fi;
17898
17899	ac_found_openssl_inc_dir="no"
17900	echo "$as_me:$LINENO: checking for OpenSSL include files" >&5
17901echo $ECHO_N "checking for OpenSSL include files... $ECHO_C" >&6
17902	for dir in $ac_openssl_inc_dir; do
17903		if test -f $dir/openssl/ssl.h; then
17904		   ac_found_openssl_inc_dir=$dir
17905		   break
17906		fi
17907        done
17908	if test "$ac_found_openssl_inc_dir" != "no"; then
17909	   	echo "found in $ac_found_openssl_inc_dir"
17910	else
17911		echo "not found."
17912		SSL_ENABLE=""
17913	fi
17914fi
17915
17916if test "$SSL_ENABLE" != ""; then
17917	ac_found_openssl_lib_dir="no"
17918	echo "$as_me:$LINENO: checking for OpenSSL libraries" >&5
17919echo $ECHO_N "checking for OpenSSL libraries... $ECHO_C" >&6
17920	for dir in $ac_openssl_lib_dir; do
17921		found_ssl="false"
17922		if test -f $dir/libssl.a -a -f $dir/libcrypto.a; then
17923		  found_ssl="true"
17924		fi
17925		if test -f $dir/libssl.so -a -f $dir/libcrypto.so; then
17926		  found_ssl="true"
17927		fi
17928		if $found_ssl != "false"; then
17929						save_LIBS=$LIBS
17930		save_LDFLAGS=$LDFLAGS
17931		LIBS="-lssl -lcrypto $LIBS"
17932		LDFLAGS="$LDFLAGS -L$dir "
17933		cat >conftest.$ac_ext <<_ACEOF
17934#line $LINENO "configure"
17935#include "confdefs.h"
17936
17937/* Override any gcc2 internal prototype to avoid an error.  */
17938#ifdef __cplusplus
17939extern "C"
17940#endif
17941/* We use char because int might match the return type of a gcc2
17942   builtin and then its argument prototype would still apply.  */
17943char SSL_load_error_strings ();
17944#ifdef F77_DUMMY_MAIN
17945#  ifdef __cplusplus
17946     extern "C"
17947#  endif
17948   int F77_DUMMY_MAIN() { return 1; }
17949#endif
17950int
17951main ()
17952{
17953SSL_load_error_strings ();
17954  ;
17955  return 0;
17956}
17957_ACEOF
17958rm -f conftest.$ac_objext conftest$ac_exeext
17959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17960  (eval $ac_link) 2>&5
17961  ac_status=$?
17962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963  (exit $ac_status); } &&
17964         { ac_try='test -s conftest$ac_exeext'
17965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966  (eval $ac_try) 2>&5
17967  ac_status=$?
17968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969  (exit $ac_status); }; }; then
17970  ac_linked_libssl="true"
17971else
17972  echo "$as_me: failed program was:" >&5
17973cat conftest.$ac_ext >&5
17974ac_linked_libssl="false"
17975fi
17976rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;
17977		cat >conftest.$ac_ext <<_ACEOF
17978#line $LINENO "configure"
17979#include "confdefs.h"
17980
17981/* Override any gcc2 internal prototype to avoid an error.  */
17982#ifdef __cplusplus
17983extern "C"
17984#endif
17985/* We use char because int might match the return type of a gcc2
17986   builtin and then its argument prototype would still apply.  */
17987char RC4_set_key ();
17988#ifdef F77_DUMMY_MAIN
17989#  ifdef __cplusplus
17990     extern "C"
17991#  endif
17992   int F77_DUMMY_MAIN() { return 1; }
17993#endif
17994int
17995main ()
17996{
17997RC4_set_key ();
17998  ;
17999  return 0;
18000}
18001_ACEOF
18002rm -f conftest.$ac_objext conftest$ac_exeext
18003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18004  (eval $ac_link) 2>&5
18005  ac_status=$?
18006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007  (exit $ac_status); } &&
18008         { ac_try='test -s conftest$ac_exeext'
18009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010  (eval $ac_try) 2>&5
18011  ac_status=$?
18012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013  (exit $ac_status); }; }; then
18014  ac_linked_libcrypto="true"
18015else
18016  echo "$as_me: failed program was:" >&5
18017cat conftest.$ac_ext >&5
18018ac_linked_libcrypto="false"
18019fi
18020rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;
18021		if test "$ac_linked_libssl" != "false" -a \
18022			"$ac_linked_libcrypto" != "false"; then
18023				ac_found_openssl_lib_dir=$dir
18024				break
18025		fi
18026		LIBS=$save_LIBS
18027		LDFLAGS=$save_LDFLAGS
18028		fi
18029	done
18030	if test "$ac_found_openssl_lib_dir" != "no"; then
18031	   	echo "found in $ac_found_openssl_lib_dir"
18032		CPPFLAGS="$CPPFLAGS -I$ac_found_openssl_inc_dir " ;
18033	else
18034		echo "not found."
18035		SSL_ENABLE=""
18036	fi
18037fi
18038
18039test "$SSL_ENABLE" != "" &&
18040cat >>confdefs.h <<\_ACEOF
18041#define SSL_ENABLE 1
18042_ACEOF
18043
18044
18045
18046echo "$as_me:$LINENO: checking ssl Certificate Authority CERT file" >&5
18047echo $ECHO_N "checking ssl Certificate Authority CERT file... $ECHO_C" >&6
18048
18049# Check whether --with-ssl_ca_file or --without-ssl_ca_file was given.
18050if test "${with_ssl_ca_file+set}" = set; then
18051  withval="$with_ssl_ca_file"
18052  SSL_CA_FILE=$withval
18053else
18054  SSL_CA_FILE=\${sysconfdir}/lpd/ssl.ca/ca.crt
18055fi;
18056echo "$as_me:$LINENO: result: $SSL_CA_FILE" >&5
18057echo "${ECHO_T}$SSL_CA_FILE" >&6
18058
18059
18060echo "$as_me:$LINENO: checking ssl Certificate Authority private key file" >&5
18061echo $ECHO_N "checking ssl Certificate Authority private key file... $ECHO_C" >&6
18062
18063# Check whether --with-ssl_ca_key or --without-ssl_ca_key was given.
18064if test "${with_ssl_ca_key+set}" = set; then
18065  withval="$with_ssl_ca_key"
18066  SSL_CA_KEY=$withval
18067else
18068  SSL_CA_KEY=\${sysconfdir}/lpd/ssl.ca/ca.key
18069fi;
18070echo "$as_me:$LINENO: result: $SSL_CA_KEY" >&5
18071echo "${ECHO_T}$SSL_CA_KEY" >&6
18072
18073
18074echo "$as_me:$LINENO: checking ssl Certificate Authority certs working directory" >&5
18075echo $ECHO_N "checking ssl Certificate Authority certs working directory... $ECHO_C" >&6
18076
18077# Check whether --with-ssl_certs_dir or --without-ssl_certs_dir was given.
18078if test "${with_ssl_certs_dir+set}" = set; then
18079  withval="$with_ssl_certs_dir"
18080  SSL_CERTS_DIR=$withval
18081else
18082  SSL_CERTS_DIR=\${sysconfdir}/lpd/ssl.certs
18083fi;
18084echo "$as_me:$LINENO: result: $SSL_CERTS_DIR" >&5
18085echo "${ECHO_T}$SSL_CERTS_DIR" >&6
18086
18087
18088echo "$as_me:$LINENO: checking ssl Certificate Revocation List (CRL) file" >&5
18089echo $ECHO_N "checking ssl Certificate Revocation List (CRL) file... $ECHO_C" >&6
18090
18091# Check whether --with-ssl_crl_file or --without-ssl_crl_file was given.
18092if test "${with_ssl_crl_file+set}" = set; then
18093  withval="$with_ssl_crl_file"
18094  SSL_CRL_FILE=$withval
18095else
18096  SSL_CRL_FILE=\${sysconfdir}/lpd/ssl.crl/ssl.crl
18097fi;
18098echo "$as_me:$LINENO: result: $SSL_CRL_FILE" >&5
18099echo "${ECHO_T}$SSL_CRL_FILE" >&6
18100
18101
18102echo "$as_me:$LINENO: checking ssl server certificate file" >&5
18103echo $ECHO_N "checking ssl server certificate file... $ECHO_C" >&6
18104
18105# Check whether --with-ssl_server_cert or --without-ssl_server_cert was given.
18106if test "${with_ssl_server_cert+set}" = set; then
18107  withval="$with_ssl_server_cert"
18108  SSL_SERVER_CERT=$withval
18109else
18110  SSL_SERVER_CERT=\${sysconfdir}/lpd/ssl.server/server.crt
18111fi;
18112echo "$as_me:$LINENO: result: $SSL_SERVER_CERT" >&5
18113echo "${ECHO_T}$SSL_SERVER_CERT" >&6
18114
18115
18116echo "$as_me:$LINENO: checking ssl server password file for private key file" >&5
18117echo $ECHO_N "checking ssl server password file for private key file... $ECHO_C" >&6
18118
18119# Check whether --with-ssl_server_password_file or --without-ssl_server_password_file was given.
18120if test "${with_ssl_server_password_file+set}" = set; then
18121  withval="$with_ssl_server_password_file"
18122  SSL_SERVER_PASSWORD_FILE=$withval
18123else
18124  SSL_SERVER_PASSWORD_FILE=\${sysconfdir}/lpd/ssl.server/server.pwd
18125fi;
18126echo "$as_me:$LINENO: result: $SSL_SERVER_PASSWORD_FILE" >&5
18127echo "${ECHO_T}$SSL_SERVER_PASSWORD_FILE" >&6
18128
18129
18130
18131
18132if test -n "$KERBEROS" ; then
18133	echo "Kerberos checks with CFLAGS '$CFLAGS', CPPFLAGS '$CPPFLAGS',  LDFLAGS '$LDFLAGS"
18134	if test -d /usr/kerberos/include; then
18135		CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
18136	fi
18137	if test -d /usr/kerberos/lib; then
18138		LDFLAGS="-L/usr/kerberos/lib $LDFLAGS"
18139	fi
18140		found=
18141
18142for ac_header in krb5.h
18143do
18144as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18145if eval "test \"\${$as_ac_Header+set}\" = set"; then
18146  echo "$as_me:$LINENO: checking for $ac_header" >&5
18147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18148if eval "test \"\${$as_ac_Header+set}\" = set"; then
18149  echo $ECHO_N "(cached) $ECHO_C" >&6
18150fi
18151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18153else
18154  # Is the header compilable?
18155echo "$as_me:$LINENO: checking $ac_header usability" >&5
18156echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18157cat >conftest.$ac_ext <<_ACEOF
18158#line $LINENO "configure"
18159#include "confdefs.h"
18160$ac_includes_default
18161#include <$ac_header>
18162_ACEOF
18163rm -f conftest.$ac_objext
18164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18165  (eval $ac_compile) 2>&5
18166  ac_status=$?
18167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168  (exit $ac_status); } &&
18169         { ac_try='test -s conftest.$ac_objext'
18170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171  (eval $ac_try) 2>&5
18172  ac_status=$?
18173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174  (exit $ac_status); }; }; then
18175  ac_header_compiler=yes
18176else
18177  echo "$as_me: failed program was:" >&5
18178cat conftest.$ac_ext >&5
18179ac_header_compiler=no
18180fi
18181rm -f conftest.$ac_objext conftest.$ac_ext
18182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18183echo "${ECHO_T}$ac_header_compiler" >&6
18184
18185# Is the header present?
18186echo "$as_me:$LINENO: checking $ac_header presence" >&5
18187echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18188cat >conftest.$ac_ext <<_ACEOF
18189#line $LINENO "configure"
18190#include "confdefs.h"
18191#include <$ac_header>
18192_ACEOF
18193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18194  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18195  ac_status=$?
18196  egrep -v '^ *\+' conftest.er1 >conftest.err
18197  rm -f conftest.er1
18198  cat conftest.err >&5
18199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200  (exit $ac_status); } >/dev/null; then
18201  if test -s conftest.err; then
18202    ac_cpp_err=$ac_c_preproc_warn_flag
18203  else
18204    ac_cpp_err=
18205  fi
18206else
18207  ac_cpp_err=yes
18208fi
18209if test -z "$ac_cpp_err"; then
18210  ac_header_preproc=yes
18211else
18212  echo "$as_me: failed program was:" >&5
18213  cat conftest.$ac_ext >&5
18214  ac_header_preproc=no
18215fi
18216rm -f conftest.err conftest.$ac_ext
18217echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18218echo "${ECHO_T}$ac_header_preproc" >&6
18219
18220# So?  What about this header?
18221case $ac_header_compiler:$ac_header_preproc in
18222  yes:no )
18223    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18224echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18225    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18226echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18227  no:yes )
18228    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18229echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18230    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18231echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18232    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18233echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18234esac
18235echo "$as_me:$LINENO: checking for $ac_header" >&5
18236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18237if eval "test \"\${$as_ac_Header+set}\" = set"; then
18238  echo $ECHO_N "(cached) $ECHO_C" >&6
18239else
18240  eval "$as_ac_Header=$ac_header_preproc"
18241fi
18242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18244
18245fi
18246if test `eval echo '${'$as_ac_Header'}'` = yes; then
18247  cat >>confdefs.h <<_ACEOF
18248#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18249_ACEOF
18250 found=yes
18251fi
18252
18253done
18254
18255    if test "$found" != "yes" ; then
18256		  { { echo "$as_me:$LINENO: error:
18257Kerberos 5 support wanted and cannot find krb5.h include file
18258use configure --disable-kerberos-checks or check your Kerberos 5 installation
18259If you have installed kerberos in /usr/local/{lib,include} then use
18260configure --enable-kerberos CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib
18261" >&5
18262echo "$as_me: error:
18263Kerberos 5 support wanted and cannot find krb5.h include file
18264use configure --disable-kerberos-checks or check your Kerberos 5 installation
18265If you have installed kerberos in /usr/local/{lib,include} then use
18266configure --enable-kerberos CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib
18267" >&2;}
18268   { (exit 1); exit 1; }; }
18269	fi
18270	if test "$MIT_KERBEROS4" != "" ; then
18271		found=
18272		if test "$found" != "yes" ; then
18273
18274for ac_header in krb.h
18275do
18276as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18277if eval "test \"\${$as_ac_Header+set}\" = set"; then
18278  echo "$as_me:$LINENO: checking for $ac_header" >&5
18279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18280if eval "test \"\${$as_ac_Header+set}\" = set"; then
18281  echo $ECHO_N "(cached) $ECHO_C" >&6
18282fi
18283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18284echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18285else
18286  # Is the header compilable?
18287echo "$as_me:$LINENO: checking $ac_header usability" >&5
18288echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18289cat >conftest.$ac_ext <<_ACEOF
18290#line $LINENO "configure"
18291#include "confdefs.h"
18292$ac_includes_default
18293#include <$ac_header>
18294_ACEOF
18295rm -f conftest.$ac_objext
18296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18297  (eval $ac_compile) 2>&5
18298  ac_status=$?
18299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300  (exit $ac_status); } &&
18301         { ac_try='test -s conftest.$ac_objext'
18302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303  (eval $ac_try) 2>&5
18304  ac_status=$?
18305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306  (exit $ac_status); }; }; then
18307  ac_header_compiler=yes
18308else
18309  echo "$as_me: failed program was:" >&5
18310cat conftest.$ac_ext >&5
18311ac_header_compiler=no
18312fi
18313rm -f conftest.$ac_objext conftest.$ac_ext
18314echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18315echo "${ECHO_T}$ac_header_compiler" >&6
18316
18317# Is the header present?
18318echo "$as_me:$LINENO: checking $ac_header presence" >&5
18319echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18320cat >conftest.$ac_ext <<_ACEOF
18321#line $LINENO "configure"
18322#include "confdefs.h"
18323#include <$ac_header>
18324_ACEOF
18325if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18326  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18327  ac_status=$?
18328  egrep -v '^ *\+' conftest.er1 >conftest.err
18329  rm -f conftest.er1
18330  cat conftest.err >&5
18331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332  (exit $ac_status); } >/dev/null; then
18333  if test -s conftest.err; then
18334    ac_cpp_err=$ac_c_preproc_warn_flag
18335  else
18336    ac_cpp_err=
18337  fi
18338else
18339  ac_cpp_err=yes
18340fi
18341if test -z "$ac_cpp_err"; then
18342  ac_header_preproc=yes
18343else
18344  echo "$as_me: failed program was:" >&5
18345  cat conftest.$ac_ext >&5
18346  ac_header_preproc=no
18347fi
18348rm -f conftest.err conftest.$ac_ext
18349echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18350echo "${ECHO_T}$ac_header_preproc" >&6
18351
18352# So?  What about this header?
18353case $ac_header_compiler:$ac_header_preproc in
18354  yes:no )
18355    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18356echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18357    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18359  no:yes )
18360    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18362    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18364    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18365echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18366esac
18367echo "$as_me:$LINENO: checking for $ac_header" >&5
18368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18369if eval "test \"\${$as_ac_Header+set}\" = set"; then
18370  echo $ECHO_N "(cached) $ECHO_C" >&6
18371else
18372  eval "$as_ac_Header=$ac_header_preproc"
18373fi
18374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18375echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18376
18377fi
18378if test `eval echo '${'$as_ac_Header'}'` = yes; then
18379  cat >>confdefs.h <<_ACEOF
18380#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18381_ACEOF
18382 found=yes
18383fi
18384
18385done
18386
18387		fi
18388		if test "$found" != "yes" ; then
18389
18390for ac_header in kerberosIV/krb.h
18391do
18392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18393if eval "test \"\${$as_ac_Header+set}\" = set"; then
18394  echo "$as_me:$LINENO: checking for $ac_header" >&5
18395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18396if eval "test \"\${$as_ac_Header+set}\" = set"; then
18397  echo $ECHO_N "(cached) $ECHO_C" >&6
18398fi
18399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18400echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18401else
18402  # Is the header compilable?
18403echo "$as_me:$LINENO: checking $ac_header usability" >&5
18404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18405cat >conftest.$ac_ext <<_ACEOF
18406#line $LINENO "configure"
18407#include "confdefs.h"
18408$ac_includes_default
18409#include <$ac_header>
18410_ACEOF
18411rm -f conftest.$ac_objext
18412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18413  (eval $ac_compile) 2>&5
18414  ac_status=$?
18415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416  (exit $ac_status); } &&
18417         { ac_try='test -s conftest.$ac_objext'
18418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419  (eval $ac_try) 2>&5
18420  ac_status=$?
18421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422  (exit $ac_status); }; }; then
18423  ac_header_compiler=yes
18424else
18425  echo "$as_me: failed program was:" >&5
18426cat conftest.$ac_ext >&5
18427ac_header_compiler=no
18428fi
18429rm -f conftest.$ac_objext conftest.$ac_ext
18430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18431echo "${ECHO_T}$ac_header_compiler" >&6
18432
18433# Is the header present?
18434echo "$as_me:$LINENO: checking $ac_header presence" >&5
18435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18436cat >conftest.$ac_ext <<_ACEOF
18437#line $LINENO "configure"
18438#include "confdefs.h"
18439#include <$ac_header>
18440_ACEOF
18441if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18442  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18443  ac_status=$?
18444  egrep -v '^ *\+' conftest.er1 >conftest.err
18445  rm -f conftest.er1
18446  cat conftest.err >&5
18447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448  (exit $ac_status); } >/dev/null; then
18449  if test -s conftest.err; then
18450    ac_cpp_err=$ac_c_preproc_warn_flag
18451  else
18452    ac_cpp_err=
18453  fi
18454else
18455  ac_cpp_err=yes
18456fi
18457if test -z "$ac_cpp_err"; then
18458  ac_header_preproc=yes
18459else
18460  echo "$as_me: failed program was:" >&5
18461  cat conftest.$ac_ext >&5
18462  ac_header_preproc=no
18463fi
18464rm -f conftest.err conftest.$ac_ext
18465echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18466echo "${ECHO_T}$ac_header_preproc" >&6
18467
18468# So?  What about this header?
18469case $ac_header_compiler:$ac_header_preproc in
18470  yes:no )
18471    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18472echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18473    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18474echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18475  no:yes )
18476    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18477echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18478    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18479echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18480    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18481echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18482esac
18483echo "$as_me:$LINENO: checking for $ac_header" >&5
18484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18485if eval "test \"\${$as_ac_Header+set}\" = set"; then
18486  echo $ECHO_N "(cached) $ECHO_C" >&6
18487else
18488  eval "$as_ac_Header=$ac_header_preproc"
18489fi
18490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18491echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18492
18493fi
18494if test `eval echo '${'$as_ac_Header'}'` = yes; then
18495  cat >>confdefs.h <<_ACEOF
18496#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18497_ACEOF
18498 found=yes
18499fi
18500
18501done
18502
18503		fi
18504		if test "$found" != "yes" ; then
18505		  { { echo "$as_me:$LINENO: error: MIT Kerberos 4 support wanted and cannot find krb.h or kerberosIV/krb.h" >&5
18506echo "$as_me: error: MIT Kerberos 4 support wanted and cannot find krb.h or kerberosIV/krb.h" >&2;}
18507   { (exit 1); exit 1; }; }
18508		fi
18509	fi
18510
18511	if test "$KERBEROS_CHECKS" = 1 ; then
18512				cat >conftest.$ac_ext <<_ACEOF
18513#line $LINENO "configure"
18514#include "confdefs.h"
18515
18516		#include <stdio.h>
18517		#include <krb5.h>
18518
18519#ifdef F77_DUMMY_MAIN
18520#  ifdef __cplusplus
18521     extern "C"
18522#  endif
18523   int F77_DUMMY_MAIN() { return 1; }
18524#endif
18525int
18526main ()
18527{
18528printf("%d",sizeof(HostAddress));
18529  ;
18530  return 0;
18531}
18532_ACEOF
18533rm -f conftest.$ac_objext
18534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18535  (eval $ac_compile) 2>&5
18536  ac_status=$?
18537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538  (exit $ac_status); } &&
18539         { ac_try='test -s conftest.$ac_objext'
18540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541  (eval $ac_try) 2>&5
18542  ac_status=$?
18543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544  (exit $ac_status); }; }; then
18545  heimdal=yes
18546else
18547  echo "$as_me: failed program was:" >&5
18548cat conftest.$ac_ext >&5
18549heimdal=no
18550fi
18551rm -f conftest.$ac_objext conftest.$ac_ext
18552		if test $heimdal = yes; then
18553		    { echo "$as_me:$LINENO: WARNING: compiling with CFLAGS $CFLAGS" >&5
18554echo "$as_me: WARNING: compiling with CFLAGS $CFLAGS" >&2;}
18555			{ { echo "$as_me:$LINENO: error: You appear to be using the Heimdal Kerberos krb5.h file. You must use MIT Kerberos with LPRng" >&5
18556echo "$as_me: error: You appear to be using the Heimdal Kerberos krb5.h file. You must use MIT Kerberos with LPRng" >&2;}
18557   { (exit 1); exit 1; }; }
18558		fi
18559
18560
18561		SAVELIBS=$LIBS
18562
18563		found=no
18564		if test "$found" "!=" "yes" ; then
18565			found=yes
18566			LIBS=" -lkrb5 -lcrypto -lcom_err $SAVELIBS"
18567			{ echo "$as_me:$LINENO: checking for krb5_init_context and krb5_read_message in $LIBS ..." >&5
18568echo "$as_me: checking for krb5_init_context and krb5_read_message in $LIBS ..." >&6;}
18569			cat >conftest.$ac_ext <<_ACEOF
18570#line $LINENO "configure"
18571#include "confdefs.h"
18572
18573/* Override any gcc2 internal prototype to avoid an error.  */
18574#ifdef __cplusplus
18575extern "C"
18576#endif
18577/* We use char because int might match the return type of a gcc2
18578   builtin and then its argument prototype would still apply.  */
18579char krb5_init_context ();
18580#ifdef F77_DUMMY_MAIN
18581#  ifdef __cplusplus
18582     extern "C"
18583#  endif
18584   int F77_DUMMY_MAIN() { return 1; }
18585#endif
18586int
18587main ()
18588{
18589krb5_init_context ();
18590  ;
18591  return 0;
18592}
18593_ACEOF
18594rm -f conftest.$ac_objext conftest$ac_exeext
18595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18596  (eval $ac_link) 2>&5
18597  ac_status=$?
18598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599  (exit $ac_status); } &&
18600         { ac_try='test -s conftest$ac_exeext'
18601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18602  (eval $ac_try) 2>&5
18603  ac_status=$?
18604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605  (exit $ac_status); }; }; then
18606  :
18607else
18608  echo "$as_me: failed program was:" >&5
18609cat conftest.$ac_ext >&5
18610found="no"
18611fi
18612rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18613			cat >conftest.$ac_ext <<_ACEOF
18614#line $LINENO "configure"
18615#include "confdefs.h"
18616
18617/* Override any gcc2 internal prototype to avoid an error.  */
18618#ifdef __cplusplus
18619extern "C"
18620#endif
18621/* We use char because int might match the return type of a gcc2
18622   builtin and then its argument prototype would still apply.  */
18623char krb5_read_message ();
18624#ifdef F77_DUMMY_MAIN
18625#  ifdef __cplusplus
18626     extern "C"
18627#  endif
18628   int F77_DUMMY_MAIN() { return 1; }
18629#endif
18630int
18631main ()
18632{
18633krb5_read_message ();
18634  ;
18635  return 0;
18636}
18637_ACEOF
18638rm -f conftest.$ac_objext conftest$ac_exeext
18639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18640  (eval $ac_link) 2>&5
18641  ac_status=$?
18642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643  (exit $ac_status); } &&
18644         { ac_try='test -s conftest$ac_exeext'
18645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646  (eval $ac_try) 2>&5
18647  ac_status=$?
18648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649  (exit $ac_status); }; }; then
18650  :
18651else
18652  echo "$as_me: failed program was:" >&5
18653cat conftest.$ac_ext >&5
18654found="no"
18655fi
18656rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18657		fi;
18658		if test "$found" "!=" "yes" ; then
18659			found=yes
18660			LIBS=" -lkrb5 -lk5crypto -lcom_err $SAVELIBS"
18661			{ echo "$as_me:$LINENO: checking for krb5_init_context and krb5_read_message in $LIBS ..." >&5
18662echo "$as_me: checking for krb5_init_context and krb5_read_message in $LIBS ..." >&6;}
18663			cat >conftest.$ac_ext <<_ACEOF
18664#line $LINENO "configure"
18665#include "confdefs.h"
18666
18667/* Override any gcc2 internal prototype to avoid an error.  */
18668#ifdef __cplusplus
18669extern "C"
18670#endif
18671/* We use char because int might match the return type of a gcc2
18672   builtin and then its argument prototype would still apply.  */
18673char krb5_init_context ();
18674#ifdef F77_DUMMY_MAIN
18675#  ifdef __cplusplus
18676     extern "C"
18677#  endif
18678   int F77_DUMMY_MAIN() { return 1; }
18679#endif
18680int
18681main ()
18682{
18683krb5_init_context ();
18684  ;
18685  return 0;
18686}
18687_ACEOF
18688rm -f conftest.$ac_objext conftest$ac_exeext
18689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18690  (eval $ac_link) 2>&5
18691  ac_status=$?
18692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693  (exit $ac_status); } &&
18694         { ac_try='test -s conftest$ac_exeext'
18695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696  (eval $ac_try) 2>&5
18697  ac_status=$?
18698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699  (exit $ac_status); }; }; then
18700  :
18701else
18702  echo "$as_me: failed program was:" >&5
18703cat conftest.$ac_ext >&5
18704found="no"
18705fi
18706rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18707			cat >conftest.$ac_ext <<_ACEOF
18708#line $LINENO "configure"
18709#include "confdefs.h"
18710
18711/* Override any gcc2 internal prototype to avoid an error.  */
18712#ifdef __cplusplus
18713extern "C"
18714#endif
18715/* We use char because int might match the return type of a gcc2
18716   builtin and then its argument prototype would still apply.  */
18717char krb5_read_message ();
18718#ifdef F77_DUMMY_MAIN
18719#  ifdef __cplusplus
18720     extern "C"
18721#  endif
18722   int F77_DUMMY_MAIN() { return 1; }
18723#endif
18724int
18725main ()
18726{
18727krb5_read_message ();
18728  ;
18729  return 0;
18730}
18731_ACEOF
18732rm -f conftest.$ac_objext conftest$ac_exeext
18733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18734  (eval $ac_link) 2>&5
18735  ac_status=$?
18736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737  (exit $ac_status); } &&
18738         { ac_try='test -s conftest$ac_exeext'
18739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740  (eval $ac_try) 2>&5
18741  ac_status=$?
18742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743  (exit $ac_status); }; }; then
18744  :
18745else
18746  echo "$as_me: failed program was:" >&5
18747cat conftest.$ac_ext >&5
18748found="no"
18749fi
18750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18751		fi;
18752		if test "$found" "!=" "yes" ; then
18753			  { echo "$as_me:$LINENO: WARNING: Kerberos 5 library does not have krb5_init_context or krb5_read_message " >&5
18754echo "$as_me: WARNING: Kerberos 5 library does not have krb5_init_context or krb5_read_message " >&2;}
18755			  { echo "$as_me:$LINENO: WARNING: use configure --disable-kerberos or check your Kerberos 5 installation" >&5
18756echo "$as_me: WARNING: use configure --disable-kerberos or check your Kerberos 5 installation" >&2;}
18757			  exit 1
18758        fi
18759		echo "$as_me:$LINENO: result: found in $LIBS" >&5
18760echo "${ECHO_T}found in $LIBS" >&6
18761
18762		if test "$MIT_KERBEROS4" != "" ; then
18763			SAVELIBS=$LIBS
18764			found=;
18765			if test "$found" = "" ; then
18766				LIBS=" -lkrb4 -ldes425 $SAVELIBS"
18767				{ echo "$as_me:$LINENO: checking for krb_recvauth in $LIBS..." >&5
18768echo "$as_me: checking for krb_recvauth in $LIBS..." >&6;}
18769				cat >conftest.$ac_ext <<_ACEOF
18770#line $LINENO "configure"
18771#include "confdefs.h"
18772
18773/* Override any gcc2 internal prototype to avoid an error.  */
18774#ifdef __cplusplus
18775extern "C"
18776#endif
18777/* We use char because int might match the return type of a gcc2
18778   builtin and then its argument prototype would still apply.  */
18779char krb_recvauth ();
18780#ifdef F77_DUMMY_MAIN
18781#  ifdef __cplusplus
18782     extern "C"
18783#  endif
18784   int F77_DUMMY_MAIN() { return 1; }
18785#endif
18786int
18787main ()
18788{
18789krb_recvauth ();
18790  ;
18791  return 0;
18792}
18793_ACEOF
18794rm -f conftest.$ac_objext conftest$ac_exeext
18795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18796  (eval $ac_link) 2>&5
18797  ac_status=$?
18798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799  (exit $ac_status); } &&
18800         { ac_try='test -s conftest$ac_exeext'
18801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802  (eval $ac_try) 2>&5
18803  ac_status=$?
18804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805  (exit $ac_status); }; }; then
18806  found="yes"
18807else
18808  echo "$as_me: failed program was:" >&5
18809cat conftest.$ac_ext >&5
18810fi
18811rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18812			fi;
18813			if test "$found" = "" ; then
18814				LIBS=" -lkrb4 -ldes $SAVELIBS"
18815				{ echo "$as_me:$LINENO: checking for krb_recvauth in $LIBS..." >&5
18816echo "$as_me: checking for krb_recvauth in $LIBS..." >&6;}
18817				cat >conftest.$ac_ext <<_ACEOF
18818#line $LINENO "configure"
18819#include "confdefs.h"
18820
18821/* Override any gcc2 internal prototype to avoid an error.  */
18822#ifdef __cplusplus
18823extern "C"
18824#endif
18825/* We use char because int might match the return type of a gcc2
18826   builtin and then its argument prototype would still apply.  */
18827char krb_recvauth ();
18828#ifdef F77_DUMMY_MAIN
18829#  ifdef __cplusplus
18830     extern "C"
18831#  endif
18832   int F77_DUMMY_MAIN() { return 1; }
18833#endif
18834int
18835main ()
18836{
18837krb_recvauth ();
18838  ;
18839  return 0;
18840}
18841_ACEOF
18842rm -f conftest.$ac_objext conftest$ac_exeext
18843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18844  (eval $ac_link) 2>&5
18845  ac_status=$?
18846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847  (exit $ac_status); } &&
18848         { ac_try='test -s conftest$ac_exeext'
18849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18850  (eval $ac_try) 2>&5
18851  ac_status=$?
18852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853  (exit $ac_status); }; }; then
18854  found="yes"
18855else
18856  echo "$as_me: failed program was:" >&5
18857cat conftest.$ac_ext >&5
18858fi
18859rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18860			fi;
18861			if test "$found" = "" ; then
18862			  { echo "$as_me:$LINENO: WARNING: MIT Kerberos 4 support wanted and cannot find krb_recvauth in Kerberos 4 libraries" >&5
18863echo "$as_me: WARNING: MIT Kerberos 4 support wanted and cannot find krb_recvauth in Kerberos 4 libraries" >&2;}
18864			  exit 1
18865            fi
18866		fi;
18867	fi
18868
18869
18870for ac_func in krb5_free_data_contents
18871do
18872as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18873echo "$as_me:$LINENO: checking for $ac_func" >&5
18874echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18875if eval "test \"\${$as_ac_var+set}\" = set"; then
18876  echo $ECHO_N "(cached) $ECHO_C" >&6
18877else
18878  cat >conftest.$ac_ext <<_ACEOF
18879#line $LINENO "configure"
18880#include "confdefs.h"
18881/* System header to define __stub macros and hopefully few prototypes,
18882    which can conflict with char $ac_func (); below.  */
18883#include <assert.h>
18884/* Override any gcc2 internal prototype to avoid an error.  */
18885#ifdef __cplusplus
18886extern "C"
18887#endif
18888/* We use char because int might match the return type of a gcc2
18889   builtin and then its argument prototype would still apply.  */
18890char $ac_func ();
18891char (*f) ();
18892
18893#ifdef F77_DUMMY_MAIN
18894#  ifdef __cplusplus
18895     extern "C"
18896#  endif
18897   int F77_DUMMY_MAIN() { return 1; }
18898#endif
18899int
18900main ()
18901{
18902/* The GNU C library defines this for functions which it implements
18903    to always fail with ENOSYS.  Some functions are actually named
18904    something starting with __ and the normal name is an alias.  */
18905#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18906choke me
18907#else
18908f = $ac_func;
18909#endif
18910
18911  ;
18912  return 0;
18913}
18914_ACEOF
18915rm -f conftest.$ac_objext conftest$ac_exeext
18916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18917  (eval $ac_link) 2>&5
18918  ac_status=$?
18919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920  (exit $ac_status); } &&
18921         { ac_try='test -s conftest$ac_exeext'
18922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18923  (eval $ac_try) 2>&5
18924  ac_status=$?
18925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926  (exit $ac_status); }; }; then
18927  eval "$as_ac_var=yes"
18928else
18929  echo "$as_me: failed program was:" >&5
18930cat conftest.$ac_ext >&5
18931eval "$as_ac_var=no"
18932fi
18933rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18934fi
18935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18936echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18937if test `eval echo '${'$as_ac_var'}'` = yes; then
18938  cat >>confdefs.h <<_ACEOF
18939#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18940_ACEOF
18941
18942fi
18943done
18944
18945
18946	echo "$as_me:$LINENO: checking for krb5_xfree" >&5
18947echo $ECHO_N "checking for krb5_xfree... $ECHO_C" >&6
18948if test "${ac_cv_krb5_xfree+set}" = set; then
18949  echo $ECHO_N "(cached) $ECHO_C" >&6
18950else
18951  cat >conftest.$ac_ext <<_ACEOF
18952#line $LINENO "configure"
18953#include "confdefs.h"
18954
18955	# define KRB5_DEPRECATED 1
18956	#if defined(HAVE_KRB5_H)
18957	#include <krb5.h>
18958	#endif
18959
18960#ifdef F77_DUMMY_MAIN
18961#  ifdef __cplusplus
18962     extern "C"
18963#  endif
18964   int F77_DUMMY_MAIN() { return 1; }
18965#endif
18966int
18967main ()
18968{
18969krb5_xfree((void *)0);
18970  ;
18971  return 0;
18972}
18973_ACEOF
18974rm -f conftest.$ac_objext conftest$ac_exeext
18975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18976  (eval $ac_link) 2>&5
18977  ac_status=$?
18978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979  (exit $ac_status); } &&
18980         { ac_try='test -s conftest$ac_exeext'
18981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982  (eval $ac_try) 2>&5
18983  ac_status=$?
18984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985  (exit $ac_status); }; }; then
18986  ac_cv_krb5_xfree=yes
18987else
18988  echo "$as_me: failed program was:" >&5
18989cat conftest.$ac_ext >&5
18990ac_cv_krb5_xfree=no
18991fi
18992rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18993
18994fi
18995echo "$as_me:$LINENO: result: $ac_cv_krb5_xfree" >&5
18996echo "${ECHO_T}$ac_cv_krb5_xfree" >&6
18997	if test "$ac_cv_krb5_xfree" = yes; then
18998
18999cat >>confdefs.h <<_ACEOF
19000#define HAVE_KRB5_XFREE 1
19001_ACEOF
19002
19003	fi
19004
19005	echo "$as_me:$LINENO: checking for krb_xfree" >&5
19006echo $ECHO_N "checking for krb_xfree... $ECHO_C" >&6
19007if test "${ac_cv_krb_xfree+set}" = set; then
19008  echo $ECHO_N "(cached) $ECHO_C" >&6
19009else
19010  cat >conftest.$ac_ext <<_ACEOF
19011#line $LINENO "configure"
19012#include "confdefs.h"
19013
19014	# define KRB5_DEPRECATED 1
19015	#if defined(HAVE_KRB5_H)
19016	#include <krb5.h>
19017	#endif
19018
19019#ifdef F77_DUMMY_MAIN
19020#  ifdef __cplusplus
19021     extern "C"
19022#  endif
19023   int F77_DUMMY_MAIN() { return 1; }
19024#endif
19025int
19026main ()
19027{
19028krb_xfree((void *)0);
19029  ;
19030  return 0;
19031}
19032_ACEOF
19033rm -f conftest.$ac_objext conftest$ac_exeext
19034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19035  (eval $ac_link) 2>&5
19036  ac_status=$?
19037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038  (exit $ac_status); } &&
19039         { ac_try='test -s conftest$ac_exeext'
19040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041  (eval $ac_try) 2>&5
19042  ac_status=$?
19043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044  (exit $ac_status); }; }; then
19045  ac_cv_krb_xfree=yes
19046else
19047  echo "$as_me: failed program was:" >&5
19048cat conftest.$ac_ext >&5
19049ac_cv_krb_xfree=no
19050fi
19051rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19052
19053fi
19054echo "$as_me:$LINENO: result: $ac_cv_krb_xfree" >&5
19055echo "${ECHO_T}$ac_cv_krb_xfree" >&6
19056	if test "$ac_cv_krb_xfree" = yes; then
19057
19058cat >>confdefs.h <<_ACEOF
19059#define HAVE_KRB_XFREE 1
19060_ACEOF
19061
19062	fi
19063
19064	echo "$as_me:$LINENO: checking for kerberos 4 krb_sendauth definition" >&5
19065echo $ECHO_N "checking for kerberos 4 krb_sendauth definition... $ECHO_C" >&6
19066if test "${ac_cv_decl_krb_sendauth_def+set}" = set; then
19067  echo $ECHO_N "(cached) $ECHO_C" >&6
19068else
19069  cat >conftest.$ac_ext <<_ACEOF
19070#line $LINENO "configure"
19071#include "confdefs.h"
19072
19073	# define KRB5_DEPRECATED 1
19074	#if defined(HAVE_KRB5_H)
19075	#include <krb5.h>
19076	#endif
19077	#if defined(HAVE_KRB_H)
19078	#include <krb.h>
19079	#include <des.h>
19080	#endif
19081	#if defined(HAVE_KERBEROSIV_KRB_H)
19082	#include <kerberosIV/krb.h>
19083	#include <kerberosIV/des.h>
19084	#endif
19085
19086#ifdef F77_DUMMY_MAIN
19087#  ifdef __cplusplus
19088     extern "C"
19089#  endif
19090   int F77_DUMMY_MAIN() { return 1; }
19091#endif
19092int
19093main ()
19094{
19095printf("%d",krb_sendauth(1));
19096  ;
19097  return 0;
19098}
19099_ACEOF
19100rm -f conftest.$ac_objext
19101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19102  (eval $ac_compile) 2>&5
19103  ac_status=$?
19104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105  (exit $ac_status); } &&
19106         { ac_try='test -s conftest.$ac_objext'
19107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108  (eval $ac_try) 2>&5
19109  ac_status=$?
19110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111  (exit $ac_status); }; }; then
19112  ac_cv_decl_krb_sendauth_def=no
19113else
19114  echo "$as_me: failed program was:" >&5
19115cat conftest.$ac_ext >&5
19116ac_cv_decl_krb_sendauth_def=yes
19117fi
19118rm -f conftest.$ac_objext conftest.$ac_ext
19119
19120fi
19121echo "$as_me:$LINENO: result: $ac_cv_decl_krb_sendauth_def" >&5
19122echo "${ECHO_T}$ac_cv_decl_krb_sendauth_def" >&6
19123	if test "$ac_cv_decl_krb_sendauth_def" = yes; then
19124
19125cat >>confdefs.h <<_ACEOF
19126#define HAVE_KRB_AUTH_DEF 1
19127_ACEOF
19128
19129	fi
19130
19131fi;
19132
19133
19134
19135
19136
19137if test "$ac_cv_c_compiler_gnu" = yes; then
19138	CFLAGS="$CFLAGS -g -W -Wall $werror -Wno-unused "
19139	CPPFLAGS="$CPPFLAGS -g -W -Wall $werror -Wno-unused "
19140fi;
19141
19142ac_config_files="$ac_config_files po/Makefile.in Makefile DOCS/Makefile TESTSUPPORT/Makefile DISTRIBUTIONS/Makefile UTILS/LPRng.pm UTILS/Makefile UTILS/accounting.pl UTILS/decode_args_with_perl UTILS/decode_args_with_sh UTILS/fixid UTILS/fixupdate UTILS/lpq_in_perl UTILS/lpr_in_perl UTILS/lprm_in_perl UTILS/make_lpd_conf UTILS/make_printcap_use UTILS/makeinc UTILS/read_conf UTILS/remote_active UTILS/test_read UTILS/update_z.pl lpd.perms man/Makefile src/Makefile src/pclbanner src/psbanner po/Makefile.in"
19143ac_config_commands="$ac_config_commands default"
19144cat >confcache <<\_ACEOF
19145# This file is a shell script that caches the results of configure
19146# tests run on this system so they can be shared between configure
19147# scripts and configure runs, see configure's option --config-cache.
19148# It is not useful on other systems.  If it contains results you don't
19149# want to keep, you may remove or edit it.
19150#
19151# config.status only pays attention to the cache file if you give it
19152# the --recheck option to rerun configure.
19153#
19154# `ac_cv_env_foo' variables (set or unset) will be overriden when
19155# loading this file, other *unset* `ac_cv_foo' will be assigned the
19156# following values.
19157
19158_ACEOF
19159
19160# The following way of writing the cache mishandles newlines in values,
19161# but we know of no workaround that is simple, portable, and efficient.
19162# So, don't put newlines in cache variables' values.
19163# Ultrix sh set writes to stderr and can't be redirected directly,
19164# and sets the high bit in the cache file unless we assign to the vars.
19165{
19166  (set) 2>&1 |
19167    case `(ac_space=' '; set | grep ac_space) 2>&1` in
19168    *ac_space=\ *)
19169      # `set' does not quote correctly, so add quotes (double-quote
19170      # substitution turns \\\\ into \\, and sed turns \\ into \).
19171      sed -n \
19172        "s/'/'\\\\''/g;
19173    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19174      ;;
19175    *)
19176      # `set' quotes correctly as required by POSIX, so do not add quotes.
19177      sed -n \
19178        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19179      ;;
19180    esac;
19181} |
19182  sed '
19183     t clear
19184     : clear
19185     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19186     t end
19187     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19188     : end' >>confcache
19189if cmp -s $cache_file confcache; then :; else
19190  if test -w $cache_file; then
19191    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19192    cat confcache >$cache_file
19193  else
19194    echo "not updating unwritable cache $cache_file"
19195  fi
19196fi
19197rm -f confcache
19198
19199test "x$prefix" = xNONE && prefix=$ac_default_prefix
19200# Let make expand exec_prefix.
19201test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19202
19203# VPATH may cause trouble with some makes, so we remove $(srcdir),
19204# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19205# trailing colons and then remove the whole line if VPATH becomes empty
19206# (actually we leave an empty line to preserve line numbers).
19207if test "x$srcdir" = x.; then
19208  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
19209s/:*\$(srcdir):*/:/;
19210s/:*\${srcdir}:*/:/;
19211s/:*@srcdir@:*/:/;
19212s/^\([^=]*=[ 	]*\):*/\1/;
19213s/:*$//;
19214s/^[^=]*=[ 	]*$//;
19215}'
19216fi
19217
19218DEFS=-DHAVE_CONFIG_H
19219
19220
19221: ${CONFIG_STATUS=./config.status}
19222ac_clean_files_save=$ac_clean_files
19223ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19224{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19225echo "$as_me: creating $CONFIG_STATUS" >&6;}
19226cat >$CONFIG_STATUS <<_ACEOF
19227#! $SHELL
19228# Generated by $as_me.
19229# Run this file to recreate the current configuration.
19230# Compiler output produced by configure, useful for debugging
19231# configure, is in config.log if it exists.
19232
19233debug=false
19234SHELL=\${CONFIG_SHELL-$SHELL}
19235_ACEOF
19236
19237cat >>$CONFIG_STATUS <<\_ACEOF
19238
19239## --------------------- ##
19240## M4sh Initialization.  ##
19241## --------------------- ##
19242
19243# Be Bourne compatible
19244if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19245  emulate sh
19246  NULLCMD=:
19247elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19248  set -o posix
19249fi
19250
19251# NLS nuisances.
19252# Support unset when possible.
19253if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19254  as_unset=unset
19255else
19256  as_unset=false
19257fi
19258
19259(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
19260    { $as_unset LANG || test "${LANG+set}" != set; } ||
19261      { LANG=C; export LANG; }
19262(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
19263    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
19264      { LC_ALL=C; export LC_ALL; }
19265(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
19266    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
19267      { LC_TIME=C; export LC_TIME; }
19268(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
19269    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
19270      { LC_CTYPE=C; export LC_CTYPE; }
19271(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
19272    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
19273      { LANGUAGE=C; export LANGUAGE; }
19274(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
19275    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
19276      { LC_COLLATE=C; export LC_COLLATE; }
19277(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
19278    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
19279      { LC_NUMERIC=C; export LC_NUMERIC; }
19280(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
19281    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
19282      { LC_MESSAGES=C; export LC_MESSAGES; }
19283
19284
19285# Name of the executable.
19286as_me=`(basename "$0") 2>/dev/null ||
19287$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19288	 X"$0" : 'X\(//\)$' \| \
19289	 X"$0" : 'X\(/\)$' \| \
19290	 .     : '\(.\)' 2>/dev/null ||
19291echo X/"$0" |
19292    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19293  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
19294  	  /^X\/\(\/\).*/{ s//\1/; q; }
19295  	  s/.*/./; q'`
19296
19297# PATH needs CR, and LINENO needs CR and PATH.
19298# Avoid depending upon Character Ranges.
19299as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19300as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19301as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19302as_cr_digits='0123456789'
19303as_cr_alnum=$as_cr_Letters$as_cr_digits
19304
19305# The user is always right.
19306if test "${PATH_SEPARATOR+set}" != set; then
19307  echo "#! /bin/sh" >conftest.sh
19308  echo  "exit 0"   >>conftest.sh
19309  chmod +x conftest.sh
19310  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
19311    PATH_SEPARATOR=';'
19312  else
19313    PATH_SEPARATOR=:
19314  fi
19315  rm -f conftest.sh
19316fi
19317
19318
19319  as_lineno_1=$LINENO
19320  as_lineno_2=$LINENO
19321  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19322  test "x$as_lineno_1" != "x$as_lineno_2" &&
19323  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19324  # Find who we are.  Look in the path if we contain no path at all
19325  # relative or not.
19326  case $0 in
19327    *[\\/]* ) as_myself=$0 ;;
19328    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19329for as_dir in $PATH
19330do
19331  IFS=$as_save_IFS
19332  test -z "$as_dir" && as_dir=.
19333  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19334done
19335
19336       ;;
19337  esac
19338  # We did not find ourselves, most probably we were run as `sh COMMAND'
19339  # in which case we are not to be found in the path.
19340  if test "x$as_myself" = x; then
19341    as_myself=$0
19342  fi
19343  if test ! -f "$as_myself"; then
19344    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19345echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19346   { (exit 1); exit 1; }; }
19347  fi
19348  case $CONFIG_SHELL in
19349  '')
19350    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19351for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19352do
19353  IFS=$as_save_IFS
19354  test -z "$as_dir" && as_dir=.
19355  for as_base in sh bash ksh sh5; do
19356	 case $as_dir in
19357	 /*)
19358	   if ("$as_dir/$as_base" -c '
19359  as_lineno_1=$LINENO
19360  as_lineno_2=$LINENO
19361  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19362  test "x$as_lineno_1" != "x$as_lineno_2" &&
19363  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19364	     CONFIG_SHELL=$as_dir/$as_base
19365	     export CONFIG_SHELL
19366	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19367	   fi;;
19368	 esac
19369       done
19370done
19371;;
19372  esac
19373
19374  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19375  # uniformly replaced by the line number.  The first 'sed' inserts a
19376  # line-number line before each line; the second 'sed' does the real
19377  # work.  The second script uses 'N' to pair each line-number line
19378  # with the numbered line, and appends trailing '-' during
19379  # substitution so that $LINENO is not a special case at line end.
19380  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19381  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19382  sed '=' <$as_myself |
19383    sed '
19384      N
19385      s,$,-,
19386      : loop
19387      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19388      t loop
19389      s,-$,,
19390      s,^['$as_cr_digits']*\n,,
19391    ' >$as_me.lineno &&
19392  chmod +x $as_me.lineno ||
19393    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19394echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19395   { (exit 1); exit 1; }; }
19396
19397  # Don't try to exec as it changes $[0], causing all sort of problems
19398  # (the dirname of $[0] is not the place where we might find the
19399  # original and so on.  Autoconf is especially sensible to this).
19400  . ./$as_me.lineno
19401  # Exit status is that of the last command.
19402  exit
19403}
19404
19405
19406case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19407  *c*,-n*) ECHO_N= ECHO_C='
19408' ECHO_T='	' ;;
19409  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19410  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19411esac
19412
19413if expr a : '\(a\)' >/dev/null 2>&1; then
19414  as_expr=expr
19415else
19416  as_expr=false
19417fi
19418
19419rm -f conf$$ conf$$.exe conf$$.file
19420echo >conf$$.file
19421if ln -s conf$$.file conf$$ 2>/dev/null; then
19422  # We could just check for DJGPP; but this test a) works b) is more generic
19423  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19424  if test -f conf$$.exe; then
19425    # Don't use ln at all; we don't have any links
19426    as_ln_s='cp -p'
19427  else
19428    as_ln_s='ln -s'
19429  fi
19430elif ln conf$$.file conf$$ 2>/dev/null; then
19431  as_ln_s=ln
19432else
19433  as_ln_s='cp -p'
19434fi
19435rm -f conf$$ conf$$.exe conf$$.file
19436
19437as_executable_p="test -f"
19438
19439# Sed expression to map a string onto a valid CPP name.
19440as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19441
19442# Sed expression to map a string onto a valid variable name.
19443as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19444
19445
19446# IFS
19447# We need space, tab and new line, in precisely that order.
19448as_nl='
19449'
19450IFS=" 	$as_nl"
19451
19452# CDPATH.
19453$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
19454
19455exec 6>&1
19456
19457# Open the log real soon, to keep \$[0] and so on meaningful, and to
19458# report actual input values of CONFIG_FILES etc. instead of their
19459# values after options handling.  Logging --version etc. is OK.
19460exec 5>>config.log
19461{
19462  echo
19463  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19464## Running $as_me. ##
19465_ASBOX
19466} >&5
19467cat >&5 <<_CSEOF
19468
19469This file was extended by $as_me, which was
19470generated by GNU Autoconf 2.53.  Invocation command line was
19471
19472  CONFIG_FILES    = $CONFIG_FILES
19473  CONFIG_HEADERS  = $CONFIG_HEADERS
19474  CONFIG_LINKS    = $CONFIG_LINKS
19475  CONFIG_COMMANDS = $CONFIG_COMMANDS
19476  $ $0 $@
19477
19478_CSEOF
19479echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19480echo >&5
19481_ACEOF
19482
19483# Files that config.status was made for.
19484if test -n "$ac_config_files"; then
19485  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19486fi
19487
19488if test -n "$ac_config_headers"; then
19489  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19490fi
19491
19492if test -n "$ac_config_links"; then
19493  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19494fi
19495
19496if test -n "$ac_config_commands"; then
19497  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19498fi
19499
19500cat >>$CONFIG_STATUS <<\_ACEOF
19501
19502ac_cs_usage="\
19503\`$as_me' instantiates files from templates according to the
19504current configuration.
19505
19506Usage: $0 [OPTIONS] [FILE]...
19507
19508  -h, --help       print this help, then exit
19509  -V, --version    print version number, then exit
19510  -d, --debug      don't remove temporary files
19511      --recheck    update $as_me by reconfiguring in the same conditions
19512  --file=FILE[:TEMPLATE]
19513                   instantiate the configuration file FILE
19514  --header=FILE[:TEMPLATE]
19515                   instantiate the configuration header FILE
19516
19517Configuration files:
19518$config_files
19519
19520Configuration headers:
19521$config_headers
19522
19523Configuration commands:
19524$config_commands
19525
19526Report bugs to <bug-autoconf@gnu.org>."
19527_ACEOF
19528
19529cat >>$CONFIG_STATUS <<_ACEOF
19530ac_cs_version="\\
19531config.status
19532configured by $0, generated by GNU Autoconf 2.53,
19533  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19534
19535Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19536Free Software Foundation, Inc.
19537This config.status script is free software; the Free Software Foundation
19538gives unlimited permission to copy, distribute and modify it."
19539srcdir=$srcdir
19540INSTALL="$INSTALL"
19541_ACEOF
19542
19543cat >>$CONFIG_STATUS <<\_ACEOF
19544# If no file are specified by the user, then we need to provide default
19545# value.  By we need to know if files were specified by the user.
19546ac_need_defaults=:
19547while test $# != 0
19548do
19549  case $1 in
19550  --*=*)
19551    ac_option=`expr "x$1" : 'x\([^=]*\)='`
19552    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19553    shift
19554    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
19555    shift
19556    ;;
19557  -*);;
19558  *) # This is not an option, so the user has probably given explicit
19559     # arguments.
19560     ac_need_defaults=false;;
19561  esac
19562
19563  case $1 in
19564  # Handling of the options.
19565_ACEOF
19566cat >>$CONFIG_STATUS <<_ACEOF
19567  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19568    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19569    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19570_ACEOF
19571cat >>$CONFIG_STATUS <<\_ACEOF
19572  --version | --vers* | -V )
19573    echo "$ac_cs_version"; exit 0 ;;
19574  --he | --h)
19575    # Conflict between --help and --header
19576    { { echo "$as_me:$LINENO: error: ambiguous option: $1
19577Try \`$0 --help' for more information." >&5
19578echo "$as_me: error: ambiguous option: $1
19579Try \`$0 --help' for more information." >&2;}
19580   { (exit 1); exit 1; }; };;
19581  --help | --hel | -h )
19582    echo "$ac_cs_usage"; exit 0 ;;
19583  --debug | --d* | -d )
19584    debug=: ;;
19585  --file | --fil | --fi | --f )
19586    shift
19587    CONFIG_FILES="$CONFIG_FILES $1"
19588    ac_need_defaults=false;;
19589  --header | --heade | --head | --hea )
19590    shift
19591    CONFIG_HEADERS="$CONFIG_HEADERS $1"
19592    ac_need_defaults=false;;
19593
19594  # This is an error.
19595  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19596Try \`$0 --help' for more information." >&5
19597echo "$as_me: error: unrecognized option: $1
19598Try \`$0 --help' for more information." >&2;}
19599   { (exit 1); exit 1; }; } ;;
19600
19601  *) ac_config_targets="$ac_config_targets $1" ;;
19602
19603  esac
19604  shift
19605done
19606
19607_ACEOF
19608
19609cat >>$CONFIG_STATUS <<_ACEOF
19610#
19611# INIT-COMMANDS section.
19612#
19613
19614# Capture the value of obsolete ALL_LINGUAS because we need it to compute
19615    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
19616    # from automake.
19617    eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
19618    # Capture the value of LINGUAS because we need it to compute CATALOGS.
19619    LINGUAS="${LINGUAS-%UNSET%}"
19620
19621
19622_ACEOF
19623
19624
19625
19626cat >>$CONFIG_STATUS <<\_ACEOF
19627for ac_config_target in $ac_config_targets
19628do
19629  case "$ac_config_target" in
19630  # Handling of arguments.
19631  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19632  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19633  "DOCS/Makefile" ) CONFIG_FILES="$CONFIG_FILES DOCS/Makefile" ;;
19634  "TESTSUPPORT/Makefile" ) CONFIG_FILES="$CONFIG_FILES TESTSUPPORT/Makefile" ;;
19635  "DISTRIBUTIONS/Makefile" ) CONFIG_FILES="$CONFIG_FILES DISTRIBUTIONS/Makefile" ;;
19636  "UTILS/LPRng.pm" ) CONFIG_FILES="$CONFIG_FILES UTILS/LPRng.pm" ;;
19637  "UTILS/Makefile" ) CONFIG_FILES="$CONFIG_FILES UTILS/Makefile" ;;
19638  "UTILS/accounting.pl" ) CONFIG_FILES="$CONFIG_FILES UTILS/accounting.pl" ;;
19639  "UTILS/decode_args_with_perl" ) CONFIG_FILES="$CONFIG_FILES UTILS/decode_args_with_perl" ;;
19640  "UTILS/decode_args_with_sh" ) CONFIG_FILES="$CONFIG_FILES UTILS/decode_args_with_sh" ;;
19641  "UTILS/fixid" ) CONFIG_FILES="$CONFIG_FILES UTILS/fixid" ;;
19642  "UTILS/fixupdate" ) CONFIG_FILES="$CONFIG_FILES UTILS/fixupdate" ;;
19643  "UTILS/lpq_in_perl" ) CONFIG_FILES="$CONFIG_FILES UTILS/lpq_in_perl" ;;
19644  "UTILS/lpr_in_perl" ) CONFIG_FILES="$CONFIG_FILES UTILS/lpr_in_perl" ;;
19645  "UTILS/lprm_in_perl" ) CONFIG_FILES="$CONFIG_FILES UTILS/lprm_in_perl" ;;
19646  "UTILS/make_lpd_conf" ) CONFIG_FILES="$CONFIG_FILES UTILS/make_lpd_conf" ;;
19647  "UTILS/make_printcap_use" ) CONFIG_FILES="$CONFIG_FILES UTILS/make_printcap_use" ;;
19648  "UTILS/makeinc" ) CONFIG_FILES="$CONFIG_FILES UTILS/makeinc" ;;
19649  "UTILS/read_conf" ) CONFIG_FILES="$CONFIG_FILES UTILS/read_conf" ;;
19650  "UTILS/remote_active" ) CONFIG_FILES="$CONFIG_FILES UTILS/remote_active" ;;
19651  "UTILS/test_read" ) CONFIG_FILES="$CONFIG_FILES UTILS/test_read" ;;
19652  "UTILS/update_z.pl" ) CONFIG_FILES="$CONFIG_FILES UTILS/update_z.pl" ;;
19653  "lpd.perms" ) CONFIG_FILES="$CONFIG_FILES lpd.perms" ;;
19654  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19655  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19656  "src/pclbanner" ) CONFIG_FILES="$CONFIG_FILES src/pclbanner" ;;
19657  "src/psbanner" ) CONFIG_FILES="$CONFIG_FILES src/psbanner" ;;
19658  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19659  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19660  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19661  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19662  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19663echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19664   { (exit 1); exit 1; }; };;
19665  esac
19666done
19667
19668# If the user did not use the arguments to specify the items to instantiate,
19669# then the envvar interface is used.  Set only those that are not.
19670# We use the long form for the default assignment because of an extremely
19671# bizarre bug on SunOS 4.1.3.
19672if $ac_need_defaults; then
19673  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19674  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19675  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19676fi
19677
19678# Create a temporary directory, and hook for its removal unless debugging.
19679$debug ||
19680{
19681  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19682  trap '{ (exit 1); exit 1; }' 1 2 13 15
19683}
19684
19685# Create a (secure) tmp directory for tmp files.
19686: ${TMPDIR=/tmp}
19687{
19688  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
19689  test -n "$tmp" && test -d "$tmp"
19690}  ||
19691{
19692  tmp=$TMPDIR/cs$$-$RANDOM
19693  (umask 077 && mkdir $tmp)
19694} ||
19695{
19696   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
19697   { (exit 1); exit 1; }
19698}
19699
19700_ACEOF
19701
19702cat >>$CONFIG_STATUS <<_ACEOF
19703
19704#
19705# CONFIG_FILES section.
19706#
19707
19708# No need to generate the scripts if there are no CONFIG_FILES.
19709# This happens for instance when ./config.status config.h
19710if test -n "\$CONFIG_FILES"; then
19711  # Protect against being on the right side of a sed subst in config.status.
19712  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19713   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19714s,@SHELL@,$SHELL,;t t
19715s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19716s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19717s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19718s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19719s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19720s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19721s,@exec_prefix@,$exec_prefix,;t t
19722s,@prefix@,$prefix,;t t
19723s,@program_transform_name@,$program_transform_name,;t t
19724s,@bindir@,$bindir,;t t
19725s,@sbindir@,$sbindir,;t t
19726s,@libexecdir@,$libexecdir,;t t
19727s,@datadir@,$datadir,;t t
19728s,@sysconfdir@,$sysconfdir,;t t
19729s,@sharedstatedir@,$sharedstatedir,;t t
19730s,@localstatedir@,$localstatedir,;t t
19731s,@libdir@,$libdir,;t t
19732s,@includedir@,$includedir,;t t
19733s,@oldincludedir@,$oldincludedir,;t t
19734s,@infodir@,$infodir,;t t
19735s,@mandir@,$mandir,;t t
19736s,@build_alias@,$build_alias,;t t
19737s,@host_alias@,$host_alias,;t t
19738s,@target_alias@,$target_alias,;t t
19739s,@DEFS@,$DEFS,;t t
19740s,@ECHO_C@,$ECHO_C,;t t
19741s,@ECHO_N@,$ECHO_N,;t t
19742s,@ECHO_T@,$ECHO_T,;t t
19743s,@LIBS@,$LIBS,;t t
19744s,@build@,$build,;t t
19745s,@build_cpu@,$build_cpu,;t t
19746s,@build_vendor@,$build_vendor,;t t
19747s,@build_os@,$build_os,;t t
19748s,@host@,$host,;t t
19749s,@host_cpu@,$host_cpu,;t t
19750s,@host_vendor@,$host_vendor,;t t
19751s,@host_os@,$host_os,;t t
19752s,@target@,$target,;t t
19753s,@target_cpu@,$target_cpu,;t t
19754s,@target_vendor@,$target_vendor,;t t
19755s,@target_os@,$target_os,;t t
19756s,@PACKAGE@,$PACKAGE,;t t
19757s,@VERSION@,$VERSION,;t t
19758s,@LOCALEDIR@,$LOCALEDIR,;t t
19759s,@INSTALL@,$INSTALL,;t t
19760s,@INSTALL_MAN@,$INSTALL_MAN,;t t
19761s,@CPP@,$CPP,;t t
19762s,@CFLAGS@,$CFLAGS,;t t
19763s,@CPPFLAGS@,$CPPFLAGS,;t t
19764s,@LDFLAGS@,$LDFLAGS,;t t
19765s,@LDCC@,$LDCC,;t t
19766s,@AWK@,$AWK,;t t
19767s,@SED@,$SED,;t t
19768s,@PERL@,$PERL,;t t
19769s,@CHOWN@,$CHOWN,;t t
19770s,@CHGRP@,$CHGRP,;t t
19771s,@PRUTIL@,$PRUTIL,;t t
19772s,@OPENSSL@,$OPENSSL,;t t
19773s,@PGP_PATH@,$PGP_PATH,;t t
19774s,@UNIXSOCKETPATH@,$UNIXSOCKETPATH,;t t
19775s,@PERMS@,$PERMS,;t t
19776s,@PRIV_PORTS@,$PRIV_PORTS,;t t
19777s,@REQUIRE_CONFIGFILES@,$REQUIRE_CONFIGFILES,;t t
19778s,@KERBEROS@,$KERBEROS,;t t
19779s,@MIT_KERBEROS4@,$MIT_KERBEROS4,;t t
19780s,@LPD_DIR@,$LPD_DIR,;t t
19781s,@LPD_CONF_PATH@,$LPD_CONF_PATH,;t t
19782s,@LPD_PERMS_PATH@,$LPD_PERMS_PATH,;t t
19783s,@PRINTCAP_PATH@,$PRINTCAP_PATH,;t t
19784s,@LPD_PRINTCAP_PATH@,$LPD_PRINTCAP_PATH,;t t
19785s,@INIT@,$INIT,;t t
19786s,@LOCKFILE@,$LOCKFILE,;t t
19787s,@LD_LIBRARY_PATH@,$LD_LIBRARY_PATH,;t t
19788s,@FILTER_PATH@,$FILTER_PATH,;t t
19789s,@USERID@,$USERID,;t t
19790s,@GROUPID@,$GROUPID,;t t
19791s,@DONE_JOBS@,$DONE_JOBS,;t t
19792s,@DONE_JOBS_MAX_AGE@,$DONE_JOBS_MAX_AGE,;t t
19793s,@USER_OBJS@,$USER_OBJS,;t t
19794s,@CLEAR@,$CLEAR,;t t
19795s,@PSHOWALL@,$PSHOWALL,;t t
19796s,@FILTER_DIR@,$FILTER_DIR,;t t
19797s,@STRIP_OPTION@,$STRIP_OPTION,;t t
19798s,@OSNAME@,$OSNAME,;t t
19799s,@OSVERSION@,$OSVERSION,;t t
19800s,@CC@,$CC,;t t
19801s,@ac_ct_CC@,$ac_ct_CC,;t t
19802s,@EXEEXT@,$EXEEXT,;t t
19803s,@OBJEXT@,$OBJEXT,;t t
19804s,@LN_S@,$LN_S,;t t
19805s,@ECHO@,$ECHO,;t t
19806s,@RANLIB@,$RANLIB,;t t
19807s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19808s,@STRIP@,$STRIP,;t t
19809s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19810s,@LIBTOOL@,$LIBTOOL,;t t
19811s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19812s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19813s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19814s,@SET_MAKE@,$SET_MAKE,;t t
19815s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
19816s,@MSGFMT@,$MSGFMT,;t t
19817s,@GMSGFMT@,$GMSGFMT,;t t
19818s,@XGETTEXT@,$XGETTEXT,;t t
19819s,@MSGMERGE@,$MSGMERGE,;t t
19820s,@USE_NLS@,$USE_NLS,;t t
19821s,@LIBICONV@,$LIBICONV,;t t
19822s,@LTLIBICONV@,$LTLIBICONV,;t t
19823s,@INTLLIBS@,$INTLLIBS,;t t
19824s,@LIBINTL@,$LIBINTL,;t t
19825s,@LTLIBINTL@,$LTLIBINTL,;t t
19826s,@POSUB@,$POSUB,;t t
19827s,@SSL_CA_FILE@,$SSL_CA_FILE,;t t
19828s,@SSL_CA_KEY@,$SSL_CA_KEY,;t t
19829s,@SSL_CERTS_DIR@,$SSL_CERTS_DIR,;t t
19830s,@SSL_CRL_FILE@,$SSL_CRL_FILE,;t t
19831s,@SSL_SERVER_CERT@,$SSL_SERVER_CERT,;t t
19832s,@SSL_SERVER_PASSWORD_FILE@,$SSL_SERVER_PASSWORD_FILE,;t t
19833CEOF
19834
19835_ACEOF
19836
19837  cat >>$CONFIG_STATUS <<\_ACEOF
19838  # Split the substitutions into bite-sized pieces for seds with
19839  # small command number limits, like on Digital OSF/1 and HP-UX.
19840  ac_max_sed_lines=48
19841  ac_sed_frag=1 # Number of current file.
19842  ac_beg=1 # First line for current file.
19843  ac_end=$ac_max_sed_lines # Line after last line for current file.
19844  ac_more_lines=:
19845  ac_sed_cmds=
19846  while $ac_more_lines; do
19847    if test $ac_beg -gt 1; then
19848      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19849    else
19850      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19851    fi
19852    if test ! -s $tmp/subs.frag; then
19853      ac_more_lines=false
19854    else
19855      # The purpose of the label and of the branching condition is to
19856      # speed up the sed processing (if there are no `@' at all, there
19857      # is no need to browse any of the substitutions).
19858      # These are the two extra sed commands mentioned above.
19859      (echo ':t
19860  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19861      if test -z "$ac_sed_cmds"; then
19862  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19863      else
19864  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19865      fi
19866      ac_sed_frag=`expr $ac_sed_frag + 1`
19867      ac_beg=$ac_end
19868      ac_end=`expr $ac_end + $ac_max_sed_lines`
19869    fi
19870  done
19871  if test -z "$ac_sed_cmds"; then
19872    ac_sed_cmds=cat
19873  fi
19874fi # test -n "$CONFIG_FILES"
19875
19876_ACEOF
19877cat >>$CONFIG_STATUS <<\_ACEOF
19878for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19879  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19880  case $ac_file in
19881  - | *:- | *:-:* ) # input from stdin
19882        cat >$tmp/stdin
19883        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19884        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19885  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19886        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19887  * )   ac_file_in=$ac_file.in ;;
19888  esac
19889
19890  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19891  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19892$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19893         X"$ac_file" : 'X\(//\)[^/]' \| \
19894         X"$ac_file" : 'X\(//\)$' \| \
19895         X"$ac_file" : 'X\(/\)' \| \
19896         .     : '\(.\)' 2>/dev/null ||
19897echo X"$ac_file" |
19898    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19899  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19900  	  /^X\(\/\/\)$/{ s//\1/; q; }
19901  	  /^X\(\/\).*/{ s//\1/; q; }
19902  	  s/.*/./; q'`
19903  { case "$ac_dir" in
19904  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19905  *)                      as_incr_dir=.;;
19906esac
19907as_dummy="$ac_dir"
19908for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19909  case $as_mkdir_dir in
19910    # Skip DOS drivespec
19911    ?:) as_incr_dir=$as_mkdir_dir ;;
19912    *)
19913      as_incr_dir=$as_incr_dir/$as_mkdir_dir
19914      test -d "$as_incr_dir" ||
19915        mkdir "$as_incr_dir" ||
19916	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
19917echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19918   { (exit 1); exit 1; }; }
19919    ;;
19920  esac
19921done; }
19922
19923  ac_builddir=.
19924
19925if test "$ac_dir" != .; then
19926  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19927  # A "../" for each directory in $ac_dir_suffix.
19928  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19929else
19930  ac_dir_suffix= ac_top_builddir=
19931fi
19932
19933case $srcdir in
19934  .)  # No --srcdir option.  We are building in place.
19935    ac_srcdir=.
19936    if test -z "$ac_top_builddir"; then
19937       ac_top_srcdir=.
19938    else
19939       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19940    fi ;;
19941  [\\/]* | ?:[\\/]* )  # Absolute path.
19942    ac_srcdir=$srcdir$ac_dir_suffix;
19943    ac_top_srcdir=$srcdir ;;
19944  *) # Relative path.
19945    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19946    ac_top_srcdir=$ac_top_builddir$srcdir ;;
19947esac
19948# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19949# absolute.
19950ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19951ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
19952ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19953ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19954
19955
19956  case $INSTALL in
19957  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19958  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19959  esac
19960
19961  if test x"$ac_file" != x-; then
19962    { echo "$as_me:$LINENO: creating $ac_file" >&5
19963echo "$as_me: creating $ac_file" >&6;}
19964    rm -f "$ac_file"
19965  fi
19966  # Let's still pretend it is `configure' which instantiates (i.e., don't
19967  # use $as_me), people would be surprised to read:
19968  #    /* config.h.  Generated by config.status.  */
19969  if test x"$ac_file" = x-; then
19970    configure_input=
19971  else
19972    configure_input="$ac_file.  "
19973  fi
19974  configure_input=$configure_input"Generated from `echo $ac_file_in |
19975                                     sed 's,.*/,,'` by configure."
19976
19977  # First look for the input files in the build tree, otherwise in the
19978  # src tree.
19979  ac_file_inputs=`IFS=:
19980    for f in $ac_file_in; do
19981      case $f in
19982      -) echo $tmp/stdin ;;
19983      [\\/$]*)
19984         # Absolute (can't be DOS-style, as IFS=:)
19985         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19986echo "$as_me: error: cannot find input file: $f" >&2;}
19987   { (exit 1); exit 1; }; }
19988         echo $f;;
19989      *) # Relative
19990         if test -f "$f"; then
19991           # Build tree
19992           echo $f
19993         elif test -f "$srcdir/$f"; then
19994           # Source tree
19995           echo $srcdir/$f
19996         else
19997           # /dev/null tree
19998           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19999echo "$as_me: error: cannot find input file: $f" >&2;}
20000   { (exit 1); exit 1; }; }
20001         fi;;
20002      esac
20003    done` || { (exit 1); exit 1; }
20004_ACEOF
20005cat >>$CONFIG_STATUS <<_ACEOF
20006  sed "$ac_vpsub
20007$extrasub
20008_ACEOF
20009cat >>$CONFIG_STATUS <<\_ACEOF
20010:t
20011/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20012s,@configure_input@,$configure_input,;t t
20013s,@srcdir@,$ac_srcdir,;t t
20014s,@abs_srcdir@,$ac_abs_srcdir,;t t
20015s,@top_srcdir@,$ac_top_srcdir,;t t
20016s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20017s,@builddir@,$ac_builddir,;t t
20018s,@abs_builddir@,$ac_abs_builddir,;t t
20019s,@top_builddir@,$ac_top_builddir,;t t
20020s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20021s,@INSTALL@,$ac_INSTALL,;t t
20022" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20023  rm -f $tmp/stdin
20024  if test x"$ac_file" != x-; then
20025    mv $tmp/out $ac_file
20026  else
20027    cat $tmp/out
20028    rm -f $tmp/out
20029  fi
20030
20031done
20032_ACEOF
20033cat >>$CONFIG_STATUS <<\_ACEOF
20034
20035#
20036# CONFIG_HEADER section.
20037#
20038
20039# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20040# NAME is the cpp macro being defined and VALUE is the value it is being given.
20041#
20042# ac_d sets the value in "#define NAME VALUE" lines.
20043ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
20044ac_dB='[ 	].*$,\1#\2'
20045ac_dC=' '
20046ac_dD=',;t'
20047# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20048ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
20049ac_uB='$,\1#\2define\3'
20050ac_uC=' '
20051ac_uD=',;t'
20052
20053for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20054  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20055  case $ac_file in
20056  - | *:- | *:-:* ) # input from stdin
20057        cat >$tmp/stdin
20058        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20059        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20060  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20061        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20062  * )   ac_file_in=$ac_file.in ;;
20063  esac
20064
20065  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20066echo "$as_me: creating $ac_file" >&6;}
20067
20068  # First look for the input files in the build tree, otherwise in the
20069  # src tree.
20070  ac_file_inputs=`IFS=:
20071    for f in $ac_file_in; do
20072      case $f in
20073      -) echo $tmp/stdin ;;
20074      [\\/$]*)
20075         # Absolute (can't be DOS-style, as IFS=:)
20076         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20077echo "$as_me: error: cannot find input file: $f" >&2;}
20078   { (exit 1); exit 1; }; }
20079         echo $f;;
20080      *) # Relative
20081         if test -f "$f"; then
20082           # Build tree
20083           echo $f
20084         elif test -f "$srcdir/$f"; then
20085           # Source tree
20086           echo $srcdir/$f
20087         else
20088           # /dev/null tree
20089           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20090echo "$as_me: error: cannot find input file: $f" >&2;}
20091   { (exit 1); exit 1; }; }
20092         fi;;
20093      esac
20094    done` || { (exit 1); exit 1; }
20095  # Remove the trailing spaces.
20096  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
20097
20098_ACEOF
20099
20100# Transform confdefs.h into two sed scripts, `conftest.defines' and
20101# `conftest.undefs', that substitutes the proper values into
20102# config.h.in to produce config.h.  The first handles `#define'
20103# templates, and the second `#undef' templates.
20104# And first: Protect against being on the right side of a sed subst in
20105# config.status.  Protect against being in an unquoted here document
20106# in config.status.
20107rm -f conftest.defines conftest.undefs
20108# Using a here document instead of a string reduces the quoting nightmare.
20109# Putting comments in sed scripts is not portable.
20110#
20111# `end' is used to avoid that the second main sed command (meant for
20112# 0-ary CPP macros) applies to n-ary macro definitions.
20113# See the Autoconf documentation for `clear'.
20114cat >confdef2sed.sed <<\_ACEOF
20115s/[\\&,]/\\&/g
20116s,[\\$`],\\&,g
20117t clear
20118: clear
20119s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20120t end
20121s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20122: end
20123_ACEOF
20124# If some macros were called several times there might be several times
20125# the same #defines, which is useless.  Nevertheless, we may not want to
20126# sort them, since we want the *last* AC-DEFINE to be honored.
20127uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20128sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20129rm -f confdef2sed.sed
20130
20131# This sed command replaces #undef with comments.  This is necessary, for
20132# example, in the case of _POSIX_SOURCE, which is predefined and required
20133# on some systems where configure will not decide to define it.
20134cat >>conftest.undefs <<\_ACEOF
20135s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20136_ACEOF
20137
20138# Break up conftest.defines because some shells have a limit on the size
20139# of here documents, and old seds have small limits too (100 cmds).
20140echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20141echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20142echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20143echo '  :' >>$CONFIG_STATUS
20144rm -f conftest.tail
20145while grep . conftest.defines >/dev/null
20146do
20147  # Write a limited-size here document to $tmp/defines.sed.
20148  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20149  # Speed up: don't consider the non `#define' lines.
20150  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
20151  # Work around the forget-to-reset-the-flag bug.
20152  echo 't clr' >>$CONFIG_STATUS
20153  echo ': clr' >>$CONFIG_STATUS
20154  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20155  echo 'CEOF
20156  sed -f $tmp/defines.sed $tmp/in >$tmp/out
20157  rm -f $tmp/in
20158  mv $tmp/out $tmp/in
20159' >>$CONFIG_STATUS
20160  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20161  rm -f conftest.defines
20162  mv conftest.tail conftest.defines
20163done
20164rm -f conftest.defines
20165echo '  fi # egrep' >>$CONFIG_STATUS
20166echo >>$CONFIG_STATUS
20167
20168# Break up conftest.undefs because some shells have a limit on the size
20169# of here documents, and old seds have small limits too (100 cmds).
20170echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20171rm -f conftest.tail
20172while grep . conftest.undefs >/dev/null
20173do
20174  # Write a limited-size here document to $tmp/undefs.sed.
20175  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20176  # Speed up: don't consider the non `#undef'
20177  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
20178  # Work around the forget-to-reset-the-flag bug.
20179  echo 't clr' >>$CONFIG_STATUS
20180  echo ': clr' >>$CONFIG_STATUS
20181  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20182  echo 'CEOF
20183  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20184  rm -f $tmp/in
20185  mv $tmp/out $tmp/in
20186' >>$CONFIG_STATUS
20187  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20188  rm -f conftest.undefs
20189  mv conftest.tail conftest.undefs
20190done
20191rm -f conftest.undefs
20192
20193cat >>$CONFIG_STATUS <<\_ACEOF
20194  # Let's still pretend it is `configure' which instantiates (i.e., don't
20195  # use $as_me), people would be surprised to read:
20196  #    /* config.h.  Generated by config.status.  */
20197  if test x"$ac_file" = x-; then
20198    echo "/* Generated by configure.  */" >$tmp/config.h
20199  else
20200    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20201  fi
20202  cat $tmp/in >>$tmp/config.h
20203  rm -f $tmp/in
20204  if test x"$ac_file" != x-; then
20205    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
20206      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20207echo "$as_me: $ac_file is unchanged" >&6;}
20208    else
20209      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20210$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20211         X"$ac_file" : 'X\(//\)[^/]' \| \
20212         X"$ac_file" : 'X\(//\)$' \| \
20213         X"$ac_file" : 'X\(/\)' \| \
20214         .     : '\(.\)' 2>/dev/null ||
20215echo X"$ac_file" |
20216    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20217  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20218  	  /^X\(\/\/\)$/{ s//\1/; q; }
20219  	  /^X\(\/\).*/{ s//\1/; q; }
20220  	  s/.*/./; q'`
20221      { case "$ac_dir" in
20222  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
20223  *)                      as_incr_dir=.;;
20224esac
20225as_dummy="$ac_dir"
20226for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
20227  case $as_mkdir_dir in
20228    # Skip DOS drivespec
20229    ?:) as_incr_dir=$as_mkdir_dir ;;
20230    *)
20231      as_incr_dir=$as_incr_dir/$as_mkdir_dir
20232      test -d "$as_incr_dir" ||
20233        mkdir "$as_incr_dir" ||
20234	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
20235echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
20236   { (exit 1); exit 1; }; }
20237    ;;
20238  esac
20239done; }
20240
20241      rm -f $ac_file
20242      mv $tmp/config.h $ac_file
20243    fi
20244  else
20245    cat $tmp/config.h
20246    rm -f $tmp/config.h
20247  fi
20248done
20249_ACEOF
20250cat >>$CONFIG_STATUS <<\_ACEOF
20251
20252#
20253# CONFIG_COMMANDS section.
20254#
20255for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20256  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20257  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20258  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20259$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20260         X"$ac_dest" : 'X\(//\)[^/]' \| \
20261         X"$ac_dest" : 'X\(//\)$' \| \
20262         X"$ac_dest" : 'X\(/\)' \| \
20263         .     : '\(.\)' 2>/dev/null ||
20264echo X"$ac_dest" |
20265    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20266  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20267  	  /^X\(\/\/\)$/{ s//\1/; q; }
20268  	  /^X\(\/\).*/{ s//\1/; q; }
20269  	  s/.*/./; q'`
20270  ac_builddir=.
20271
20272if test "$ac_dir" != .; then
20273  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20274  # A "../" for each directory in $ac_dir_suffix.
20275  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20276else
20277  ac_dir_suffix= ac_top_builddir=
20278fi
20279
20280case $srcdir in
20281  .)  # No --srcdir option.  We are building in place.
20282    ac_srcdir=.
20283    if test -z "$ac_top_builddir"; then
20284       ac_top_srcdir=.
20285    else
20286       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20287    fi ;;
20288  [\\/]* | ?:[\\/]* )  # Absolute path.
20289    ac_srcdir=$srcdir$ac_dir_suffix;
20290    ac_top_srcdir=$srcdir ;;
20291  *) # Relative path.
20292    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20293    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20294esac
20295# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20296# absolute.
20297ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20298ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
20299ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20300ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20301
20302
20303  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20304echo "$as_me: executing $ac_dest commands" >&6;}
20305  case $ac_dest in
20306    default-1 )
20307    for ac_file in $CONFIG_FILES; do
20308      # Support "outfile[:infile[:infile...]]"
20309      case "$ac_file" in
20310        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20311      esac
20312      # PO directories have a Makefile.in generated from Makefile.in.in.
20313      case "$ac_file" in */Makefile.in)
20314        # Adjust a relative srcdir.
20315        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20316        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
20317        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20318        # In autoconf-2.13 it is called $ac_given_srcdir.
20319        # In autoconf-2.50 it is called $srcdir.
20320        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20321        case "$ac_given_srcdir" in
20322          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20323          /*) top_srcdir="$ac_given_srcdir" ;;
20324          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
20325        esac
20326        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20327          rm -f "$ac_dir/POTFILES"
20328          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20329          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20330          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20331          # on $ac_dir but don't depend on user-specified configuration
20332          # parameters.
20333          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20334            # The LINGUAS file contains the set of available languages.
20335            if test -n "$ALL_LINGUAS"; then
20336              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20337            fi
20338            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20339            # Hide the ALL_LINGUAS assigment from automake.
20340            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20341          fi
20342          case "$ac_given_srcdir" in
20343            .) srcdirpre= ;;
20344            *) srcdirpre='$(srcdir)/' ;;
20345          esac
20346          POFILES=
20347          GMOFILES=
20348          UPDATEPOFILES=
20349          DUMMYPOFILES=
20350          for lang in $ALL_LINGUAS; do
20351            POFILES="$POFILES $srcdirpre$lang.po"
20352            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20353            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20354            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20355          done
20356          # CATALOGS depends on both $ac_dir and the user's LINGUAS
20357          # environment variable.
20358          INST_LINGUAS=
20359          if test -n "$ALL_LINGUAS"; then
20360            for presentlang in $ALL_LINGUAS; do
20361              useit=no
20362              if test "%UNSET%" != "$LINGUAS"; then
20363                desiredlanguages="$LINGUAS"
20364              else
20365                desiredlanguages="$ALL_LINGUAS"
20366              fi
20367              for desiredlang in $desiredlanguages; do
20368                # Use the presentlang catalog if desiredlang is
20369                #   a. equal to presentlang, or
20370                #   b. a variant of presentlang (because in this case,
20371                #      presentlang can be used as a fallback for messages
20372                #      which are not translated in the desiredlang catalog).
20373                case "$desiredlang" in
20374                  "$presentlang"*) useit=yes;;
20375                esac
20376              done
20377              if test $useit = yes; then
20378                INST_LINGUAS="$INST_LINGUAS $presentlang"
20379              fi
20380            done
20381          fi
20382          CATALOGS=
20383          if test -n "$INST_LINGUAS"; then
20384            for lang in $INST_LINGUAS; do
20385              CATALOGS="$CATALOGS $lang.gmo"
20386            done
20387          fi
20388          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20389          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
20390          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20391            if test -f "$f"; then
20392              case "$f" in
20393                *.orig | *.bak | *~) ;;
20394                *) cat "$f" >> "$ac_dir/Makefile" ;;
20395              esac
20396            fi
20397          done
20398        fi
20399        ;;
20400      esac
20401    done ;;
20402    default )
20403for i in  \
20404UTILS/LPRng.pm \
20405UTILS/accounting.pl \
20406UTILS/decode_args_with_perl \
20407UTILS/decode_args_with_sh \
20408UTILS/fixid \
20409UTILS/fixupdate \
20410UTILS/lpq_in_perl \
20411UTILS/lpr_in_perl \
20412UTILS/lprm_in_perl \
20413UTILS/make_lpd_conf \
20414UTILS/make_printcap_use \
20415UTILS/makeinc \
20416UTILS/read_conf \
20417UTILS/remote_active \
20418UTILS/test_read \
20419UTILS/update_z.pl \
20420; do chmod +x $i ; done
20421
20422
20423 ;;
20424  esac
20425done
20426_ACEOF
20427
20428cat >>$CONFIG_STATUS <<\_ACEOF
20429
20430{ (exit 0); exit 0; }
20431_ACEOF
20432chmod +x $CONFIG_STATUS
20433ac_clean_files=$ac_clean_files_save
20434
20435
20436# configure is writing to config.log, and then calls config.status.
20437# config.status does its own redirection, appending to config.log.
20438# Unfortunately, on DOS this fails, as config.log is still kept open
20439# by configure, so config.status won't be able to write to it; its
20440# output is simply discarded.  So we exec the FD to /dev/null,
20441# effectively closing config.log, so it can be properly (re)opened and
20442# appended to by config.status.  When coming back to configure, we
20443# need to make the FD available again.
20444if test "$no_create" != yes; then
20445  ac_cs_success=:
20446  exec 5>/dev/null
20447  $SHELL $CONFIG_STATUS || ac_cs_success=false
20448  exec 5>>config.log
20449  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20450  # would make configure fail if this is the last instruction.
20451  $ac_cs_success || { (exit 1); exit 1; }
20452fi
20453
20454
20455