]> git.deb.at Git - pkg/abook.git/blob - configure
multibyte update
[pkg/abook.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
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 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="abook.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP U ANSI2KNR LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 Program names:
834   --program-prefix=PREFIX            prepend PREFIX to installed program names
835   --program-suffix=SUFFIX            append SUFFIX to installed program names
836   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838 System types:
839   --build=BUILD     configure for building on BUILD [guessed]
840   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841 _ACEOF
842 fi
843
844 if test -n "$ac_init_help"; then
845
846   cat <<\_ACEOF
847
848 Optional Features:
849   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
850   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
851   --disable-dependency-tracking Speeds up one-time builds
852   --enable-dependency-tracking  Do not reject slow dependency extractors
853   --enable-debug          Enable debugging support
854
855 Optional Packages:
856   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
857   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
858   --with-curses=DIR       Where ncurses is installed
859   --with-readline=DIR     Where readline is installed
860
861 Some influential environment variables:
862   CC          C compiler command
863   CFLAGS      C compiler flags
864   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
865               nonstandard directory <lib dir>
866   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
867               headers in a nonstandard directory <include dir>
868   CPP         C preprocessor
869
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
872
873 _ACEOF
874 fi
875
876 if test "$ac_init_help" = "recursive"; then
877   # If there are subdirs, report their specific --help.
878   ac_popdir=`pwd`
879   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880     test -d $ac_dir || continue
881     ac_builddir=.
882
883 if test "$ac_dir" != .; then
884   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885   # A "../" for each directory in $ac_dir_suffix.
886   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888   ac_dir_suffix= ac_top_builddir=
889 fi
890
891 case $srcdir in
892   .)  # No --srcdir option.  We are building in place.
893     ac_srcdir=.
894     if test -z "$ac_top_builddir"; then
895        ac_top_srcdir=.
896     else
897        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898     fi ;;
899   [\\/]* | ?:[\\/]* )  # Absolute path.
900     ac_srcdir=$srcdir$ac_dir_suffix;
901     ac_top_srcdir=$srcdir ;;
902   *) # Relative path.
903     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904     ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
906 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
907 # absolute.
908 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
909 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
910 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
911 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
912
913     cd $ac_dir
914     # Check for guested configure; otherwise get Cygnus style configure.
915     if test -f $ac_srcdir/configure.gnu; then
916       echo
917       $SHELL $ac_srcdir/configure.gnu  --help=recursive
918     elif test -f $ac_srcdir/configure; then
919       echo
920       $SHELL $ac_srcdir/configure  --help=recursive
921     elif test -f $ac_srcdir/configure.ac ||
922            test -f $ac_srcdir/configure.in; then
923       echo
924       $ac_configure --help
925     else
926       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
927     fi
928     cd $ac_popdir
929   done
930 fi
931
932 test -n "$ac_init_help" && exit 0
933 if $ac_init_version; then
934   cat <<\_ACEOF
935
936 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
937 Free Software Foundation, Inc.
938 This configure script is free software; the Free Software Foundation
939 gives unlimited permission to copy, distribute and modify it.
940 _ACEOF
941   exit 0
942 fi
943 exec 5>config.log
944 cat >&5 <<_ACEOF
945 This file contains any messages produced by compilers while
946 running configure, to aid debugging if configure makes a mistake.
947
948 It was created by $as_me, which was
949 generated by GNU Autoconf 2.57.  Invocation command line was
950
951   $ $0 $@
952
953 _ACEOF
954 {
955 cat <<_ASUNAME
956 ## --------- ##
957 ## Platform. ##
958 ## --------- ##
959
960 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
961 uname -m = `(uname -m) 2>/dev/null || echo unknown`
962 uname -r = `(uname -r) 2>/dev/null || echo unknown`
963 uname -s = `(uname -s) 2>/dev/null || echo unknown`
964 uname -v = `(uname -v) 2>/dev/null || echo unknown`
965
966 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
967 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
968
969 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
970 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
971 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
972 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
973 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
974 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
975 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
976
977 _ASUNAME
978
979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
980 for as_dir in $PATH
981 do
982   IFS=$as_save_IFS
983   test -z "$as_dir" && as_dir=.
984   echo "PATH: $as_dir"
985 done
986
987 } >&5
988
989 cat >&5 <<_ACEOF
990
991
992 ## ----------- ##
993 ## Core tests. ##
994 ## ----------- ##
995
996 _ACEOF
997
998
999 # Keep a trace of the command line.
1000 # Strip out --no-create and --no-recursion so they do not pile up.
1001 # Strip out --silent because we don't want to record it for future runs.
1002 # Also quote any args containing shell meta-characters.
1003 # Make two passes to allow for proper duplicate-argument suppression.
1004 ac_configure_args=
1005 ac_configure_args0=
1006 ac_configure_args1=
1007 ac_sep=
1008 ac_must_keep_next=false
1009 for ac_pass in 1 2
1010 do
1011   for ac_arg
1012   do
1013     case $ac_arg in
1014     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1015     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1016     | -silent | --silent | --silen | --sile | --sil)
1017       continue ;;
1018     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1019       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1020     esac
1021     case $ac_pass in
1022     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1023     2)
1024       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1025       if test $ac_must_keep_next = true; then
1026         ac_must_keep_next=false # Got value, back to normal.
1027       else
1028         case $ac_arg in
1029           *=* | --config-cache | -C | -disable-* | --disable-* \
1030           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1031           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1032           | -with-* | --with-* | -without-* | --without-* | --x)
1033             case "$ac_configure_args0 " in
1034               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1035             esac
1036             ;;
1037           -* ) ac_must_keep_next=true ;;
1038         esac
1039       fi
1040       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041       # Get rid of the leading space.
1042       ac_sep=" "
1043       ;;
1044     esac
1045   done
1046 done
1047 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1048 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1049
1050 # When interrupted or exit'd, cleanup temporary files, and complete
1051 # config.log.  We remove comments because anyway the quotes in there
1052 # would cause problems or look ugly.
1053 # WARNING: Be sure not to use single quotes in there, as some shells,
1054 # such as our DU 5.0 friend, will then `close' the trap.
1055 trap 'exit_status=$?
1056   # Save into config.log some information that might help in debugging.
1057   {
1058     echo
1059
1060     cat <<\_ASBOX
1061 ## ---------------- ##
1062 ## Cache variables. ##
1063 ## ---------------- ##
1064 _ASBOX
1065     echo
1066     # The following way of writing the cache mishandles newlines in values,
1067 {
1068   (set) 2>&1 |
1069     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1070     *ac_space=\ *)
1071       sed -n \
1072         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1073           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1074       ;;
1075     *)
1076       sed -n \
1077         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1078       ;;
1079     esac;
1080 }
1081     echo
1082
1083     cat <<\_ASBOX
1084 ## ----------------- ##
1085 ## Output variables. ##
1086 ## ----------------- ##
1087 _ASBOX
1088     echo
1089     for ac_var in $ac_subst_vars
1090     do
1091       eval ac_val=$`echo $ac_var`
1092       echo "$ac_var='"'"'$ac_val'"'"'"
1093     done | sort
1094     echo
1095
1096     if test -n "$ac_subst_files"; then
1097       cat <<\_ASBOX
1098 ## ------------- ##
1099 ## Output files. ##
1100 ## ------------- ##
1101 _ASBOX
1102       echo
1103       for ac_var in $ac_subst_files
1104       do
1105         eval ac_val=$`echo $ac_var`
1106         echo "$ac_var='"'"'$ac_val'"'"'"
1107       done | sort
1108       echo
1109     fi
1110
1111     if test -s confdefs.h; then
1112       cat <<\_ASBOX
1113 ## ----------- ##
1114 ## confdefs.h. ##
1115 ## ----------- ##
1116 _ASBOX
1117       echo
1118       sed "/^$/d" confdefs.h | sort
1119       echo
1120     fi
1121     test "$ac_signal" != 0 &&
1122       echo "$as_me: caught signal $ac_signal"
1123     echo "$as_me: exit $exit_status"
1124   } >&5
1125   rm -f core core.* *.core &&
1126   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1127     exit $exit_status
1128      ' 0
1129 for ac_signal in 1 2 13 15; do
1130   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1131 done
1132 ac_signal=0
1133
1134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1135 rm -rf conftest* confdefs.h
1136 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1137 echo >confdefs.h
1138
1139 # Predefined preprocessor variables.
1140
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_NAME "$PACKAGE_NAME"
1143 _ACEOF
1144
1145
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1148 _ACEOF
1149
1150
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1153 _ACEOF
1154
1155
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_STRING "$PACKAGE_STRING"
1158 _ACEOF
1159
1160
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1163 _ACEOF
1164
1165
1166 # Let the site file select an alternate cache file if it wants to.
1167 # Prefer explicitly selected file to automatically selected ones.
1168 if test -z "$CONFIG_SITE"; then
1169   if test "x$prefix" != xNONE; then
1170     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1171   else
1172     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1173   fi
1174 fi
1175 for ac_site_file in $CONFIG_SITE; do
1176   if test -r "$ac_site_file"; then
1177     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1178 echo "$as_me: loading site script $ac_site_file" >&6;}
1179     sed 's/^/| /' "$ac_site_file" >&5
1180     . "$ac_site_file"
1181   fi
1182 done
1183
1184 if test -r "$cache_file"; then
1185   # Some versions of bash will fail to source /dev/null (special
1186   # files actually), so we avoid doing that.
1187   if test -f "$cache_file"; then
1188     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1189 echo "$as_me: loading cache $cache_file" >&6;}
1190     case $cache_file in
1191       [\\/]* | ?:[\\/]* ) . $cache_file;;
1192       *)                      . ./$cache_file;;
1193     esac
1194   fi
1195 else
1196   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1197 echo "$as_me: creating cache $cache_file" >&6;}
1198   >$cache_file
1199 fi
1200
1201 # Check that the precious variables saved in the cache have kept the same
1202 # value.
1203 ac_cache_corrupted=false
1204 for ac_var in `(set) 2>&1 |
1205                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1206   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1207   eval ac_new_set=\$ac_env_${ac_var}_set
1208   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1209   eval ac_new_val="\$ac_env_${ac_var}_value"
1210   case $ac_old_set,$ac_new_set in
1211     set,)
1212       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1213 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1214       ac_cache_corrupted=: ;;
1215     ,set)
1216       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1217 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1218       ac_cache_corrupted=: ;;
1219     ,);;
1220     *)
1221       if test "x$ac_old_val" != "x$ac_new_val"; then
1222         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1223 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1224         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1225 echo "$as_me:   former value:  $ac_old_val" >&2;}
1226         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1227 echo "$as_me:   current value: $ac_new_val" >&2;}
1228         ac_cache_corrupted=:
1229       fi;;
1230   esac
1231   # Pass precious variables to config.status.
1232   if test "$ac_new_set" = set; then
1233     case $ac_new_val in
1234     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1235       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1236     *) ac_arg=$ac_var=$ac_new_val ;;
1237     esac
1238     case " $ac_configure_args " in
1239       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1240       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1241     esac
1242   fi
1243 done
1244 if $ac_cache_corrupted; then
1245   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1246 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1247   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1248 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1249    { (exit 1); exit 1; }; }
1250 fi
1251
1252 ac_ext=c
1253 ac_cpp='$CPP $CPPFLAGS'
1254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276 am__api_version="1.7"
1277 ac_aux_dir=
1278 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1279   if test -f $ac_dir/install-sh; then
1280     ac_aux_dir=$ac_dir
1281     ac_install_sh="$ac_aux_dir/install-sh -c"
1282     break
1283   elif test -f $ac_dir/install.sh; then
1284     ac_aux_dir=$ac_dir
1285     ac_install_sh="$ac_aux_dir/install.sh -c"
1286     break
1287   elif test -f $ac_dir/shtool; then
1288     ac_aux_dir=$ac_dir
1289     ac_install_sh="$ac_aux_dir/shtool install -c"
1290     break
1291   fi
1292 done
1293 if test -z "$ac_aux_dir"; then
1294   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1295 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1296    { (exit 1); exit 1; }; }
1297 fi
1298 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1299 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1300 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1301
1302 # Find a good install program.  We prefer a C program (faster),
1303 # so one script is as good as another.  But avoid the broken or
1304 # incompatible versions:
1305 # SysV /etc/install, /usr/sbin/install
1306 # SunOS /usr/etc/install
1307 # IRIX /sbin/install
1308 # AIX /bin/install
1309 # AmigaOS /C/install, which installs bootblocks on floppy discs
1310 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1311 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1312 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1313 # ./install, which can be erroneously created by make from ./install.sh.
1314 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1315 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1316 if test -z "$INSTALL"; then
1317 if test "${ac_cv_path_install+set}" = set; then
1318   echo $ECHO_N "(cached) $ECHO_C" >&6
1319 else
1320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1321 for as_dir in $PATH
1322 do
1323   IFS=$as_save_IFS
1324   test -z "$as_dir" && as_dir=.
1325   # Account for people who put trailing slashes in PATH elements.
1326 case $as_dir/ in
1327   ./ | .// | /cC/* | \
1328   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1329   /usr/ucb/* ) ;;
1330   *)
1331     # OSF1 and SCO ODT 3.0 have their own names for install.
1332     # Don't use installbsd from OSF since it installs stuff as root
1333     # by default.
1334     for ac_prog in ginstall scoinst install; do
1335       for ac_exec_ext in '' $ac_executable_extensions; do
1336         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1337           if test $ac_prog = install &&
1338             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1339             # AIX install.  It has an incompatible calling convention.
1340             :
1341           elif test $ac_prog = install &&
1342             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1343             # program-specific install script used by HP pwplus--don't use.
1344             :
1345           else
1346             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1347             break 3
1348           fi
1349         fi
1350       done
1351     done
1352     ;;
1353 esac
1354 done
1355
1356
1357 fi
1358   if test "${ac_cv_path_install+set}" = set; then
1359     INSTALL=$ac_cv_path_install
1360   else
1361     # As a last resort, use the slow shell script.  We don't cache a
1362     # path for INSTALL within a source directory, because that will
1363     # break other packages using the cache if that directory is
1364     # removed, or if the path is relative.
1365     INSTALL=$ac_install_sh
1366   fi
1367 fi
1368 echo "$as_me:$LINENO: result: $INSTALL" >&5
1369 echo "${ECHO_T}$INSTALL" >&6
1370
1371 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1372 # It thinks the first close brace ends the variable substitution.
1373 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1374
1375 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1376
1377 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1378
1379 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1380 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1381 # Just in case
1382 sleep 1
1383 echo timestamp > conftest.file
1384 # Do `set' in a subshell so we don't clobber the current shell's
1385 # arguments.  Must try -L first in case configure is actually a
1386 # symlink; some systems play weird games with the mod time of symlinks
1387 # (eg FreeBSD returns the mod time of the symlink's containing
1388 # directory).
1389 if (
1390    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1391    if test "$*" = "X"; then
1392       # -L didn't work.
1393       set X `ls -t $srcdir/configure conftest.file`
1394    fi
1395    rm -f conftest.file
1396    if test "$*" != "X $srcdir/configure conftest.file" \
1397       && test "$*" != "X conftest.file $srcdir/configure"; then
1398
1399       # If neither matched, then we have a broken ls.  This can happen
1400       # if, for instance, CONFIG_SHELL is bash and it inherits a
1401       # broken ls alias from the environment.  This has actually
1402       # happened.  Such a system could not be considered "sane".
1403       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1404 alias in your environment" >&5
1405 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1406 alias in your environment" >&2;}
1407    { (exit 1); exit 1; }; }
1408    fi
1409
1410    test "$2" = conftest.file
1411    )
1412 then
1413    # Ok.
1414    :
1415 else
1416    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1417 Check your system clock" >&5
1418 echo "$as_me: error: newly created file is older than distributed files!
1419 Check your system clock" >&2;}
1420    { (exit 1); exit 1; }; }
1421 fi
1422 echo "$as_me:$LINENO: result: yes" >&5
1423 echo "${ECHO_T}yes" >&6
1424 test "$program_prefix" != NONE &&
1425   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1426 # Use a double $ so make ignores it.
1427 test "$program_suffix" != NONE &&
1428   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1429 # Double any \ or $.  echo might interpret backslashes.
1430 # By default was `s,x,x', remove it if useless.
1431 cat <<\_ACEOF >conftest.sed
1432 s/[\\$]/&&/g;s/;s,x,x,$//
1433 _ACEOF
1434 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1435 rm conftest.sed
1436
1437
1438 # expand $ac_aux_dir to an absolute path
1439 am_aux_dir=`cd $ac_aux_dir && pwd`
1440
1441 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1442 # Use eval to expand $SHELL
1443 if eval "$MISSING --run true"; then
1444   am_missing_run="$MISSING --run "
1445 else
1446   am_missing_run=
1447   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1448 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1449 fi
1450
1451 for ac_prog in gawk mawk nawk awk
1452 do
1453   # Extract the first word of "$ac_prog", so it can be a program name with args.
1454 set dummy $ac_prog; ac_word=$2
1455 echo "$as_me:$LINENO: checking for $ac_word" >&5
1456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457 if test "${ac_cv_prog_AWK+set}" = set; then
1458   echo $ECHO_N "(cached) $ECHO_C" >&6
1459 else
1460   if test -n "$AWK"; then
1461   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1462 else
1463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1464 for as_dir in $PATH
1465 do
1466   IFS=$as_save_IFS
1467   test -z "$as_dir" && as_dir=.
1468   for ac_exec_ext in '' $ac_executable_extensions; do
1469   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1470     ac_cv_prog_AWK="$ac_prog"
1471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1472     break 2
1473   fi
1474 done
1475 done
1476
1477 fi
1478 fi
1479 AWK=$ac_cv_prog_AWK
1480 if test -n "$AWK"; then
1481   echo "$as_me:$LINENO: result: $AWK" >&5
1482 echo "${ECHO_T}$AWK" >&6
1483 else
1484   echo "$as_me:$LINENO: result: no" >&5
1485 echo "${ECHO_T}no" >&6
1486 fi
1487
1488   test -n "$AWK" && break
1489 done
1490
1491 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1492 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1493 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1494 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1495   echo $ECHO_N "(cached) $ECHO_C" >&6
1496 else
1497   cat >conftest.make <<\_ACEOF
1498 all:
1499         @echo 'ac_maketemp="$(MAKE)"'
1500 _ACEOF
1501 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1502 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1503 if test -n "$ac_maketemp"; then
1504   eval ac_cv_prog_make_${ac_make}_set=yes
1505 else
1506   eval ac_cv_prog_make_${ac_make}_set=no
1507 fi
1508 rm -f conftest.make
1509 fi
1510 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1511   echo "$as_me:$LINENO: result: yes" >&5
1512 echo "${ECHO_T}yes" >&6
1513   SET_MAKE=
1514 else
1515   echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1517   SET_MAKE="MAKE=${MAKE-make}"
1518 fi
1519
1520 rm -rf .tst 2>/dev/null
1521 mkdir .tst 2>/dev/null
1522 if test -d .tst; then
1523   am__leading_dot=.
1524 else
1525   am__leading_dot=_
1526 fi
1527 rmdir .tst 2>/dev/null
1528
1529  # test to see if srcdir already configured
1530 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1531    test -f $srcdir/config.status; then
1532   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1533 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1534    { (exit 1); exit 1; }; }
1535 fi
1536
1537 # test whether we have cygpath
1538 if test -z "$CYGPATH_W"; then
1539   if (cygpath --version) >/dev/null 2>/dev/null; then
1540     CYGPATH_W='cygpath -w'
1541   else
1542     CYGPATH_W=echo
1543   fi
1544 fi
1545
1546
1547 # Define the identity of the package.
1548  PACKAGE=abook
1549  VERSION=0.5.2pre
1550
1551
1552 cat >>confdefs.h <<_ACEOF
1553 #define PACKAGE "$PACKAGE"
1554 _ACEOF
1555
1556
1557 cat >>confdefs.h <<_ACEOF
1558 #define VERSION "$VERSION"
1559 _ACEOF
1560
1561 # Some tools Automake needs.
1562
1563 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1564
1565
1566 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1567
1568
1569 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1570
1571
1572 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1573
1574
1575 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1576
1577
1578 AMTAR=${AMTAR-"${am_missing_run}tar"}
1579
1580 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1581
1582 # Installed binaries are usually stripped using `strip' when the user
1583 # run `make install-strip'.  However `strip' might not be the right
1584 # tool to use in cross-compilation environments, therefore Automake
1585 # will honor the `STRIP' environment variable to overrule this program.
1586 if test "$cross_compiling" != no; then
1587   if test -n "$ac_tool_prefix"; then
1588   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1589 set dummy ${ac_tool_prefix}strip; ac_word=$2
1590 echo "$as_me:$LINENO: checking for $ac_word" >&5
1591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592 if test "${ac_cv_prog_STRIP+set}" = set; then
1593   echo $ECHO_N "(cached) $ECHO_C" >&6
1594 else
1595   if test -n "$STRIP"; then
1596   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1597 else
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 for as_dir in $PATH
1600 do
1601   IFS=$as_save_IFS
1602   test -z "$as_dir" && as_dir=.
1603   for ac_exec_ext in '' $ac_executable_extensions; do
1604   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607     break 2
1608   fi
1609 done
1610 done
1611
1612 fi
1613 fi
1614 STRIP=$ac_cv_prog_STRIP
1615 if test -n "$STRIP"; then
1616   echo "$as_me:$LINENO: result: $STRIP" >&5
1617 echo "${ECHO_T}$STRIP" >&6
1618 else
1619   echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1621 fi
1622
1623 fi
1624 if test -z "$ac_cv_prog_STRIP"; then
1625   ac_ct_STRIP=$STRIP
1626   # Extract the first word of "strip", so it can be a program name with args.
1627 set dummy strip; ac_word=$2
1628 echo "$as_me:$LINENO: checking for $ac_word" >&5
1629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1631   echo $ECHO_N "(cached) $ECHO_C" >&6
1632 else
1633   if test -n "$ac_ct_STRIP"; then
1634   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1635 else
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637 for as_dir in $PATH
1638 do
1639   IFS=$as_save_IFS
1640   test -z "$as_dir" && as_dir=.
1641   for ac_exec_ext in '' $ac_executable_extensions; do
1642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1643     ac_cv_prog_ac_ct_STRIP="strip"
1644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645     break 2
1646   fi
1647 done
1648 done
1649
1650   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1651 fi
1652 fi
1653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1654 if test -n "$ac_ct_STRIP"; then
1655   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1656 echo "${ECHO_T}$ac_ct_STRIP" >&6
1657 else
1658   echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1660 fi
1661
1662   STRIP=$ac_ct_STRIP
1663 else
1664   STRIP="$ac_cv_prog_STRIP"
1665 fi
1666
1667 fi
1668 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1669
1670 # We need awk for the "check" target.  The system "awk" is bad on
1671 # some platforms.
1672
1673
1674
1675           ac_config_headers="$ac_config_headers config.h"
1676
1677
1678
1679 # Make sure we can run config.sub.
1680 $ac_config_sub sun4 >/dev/null 2>&1 ||
1681   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1682 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1683    { (exit 1); exit 1; }; }
1684
1685 echo "$as_me:$LINENO: checking build system type" >&5
1686 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1687 if test "${ac_cv_build+set}" = set; then
1688   echo $ECHO_N "(cached) $ECHO_C" >&6
1689 else
1690   ac_cv_build_alias=$build_alias
1691 test -z "$ac_cv_build_alias" &&
1692   ac_cv_build_alias=`$ac_config_guess`
1693 test -z "$ac_cv_build_alias" &&
1694   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1695 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1696    { (exit 1); exit 1; }; }
1697 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1698   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1699 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1700    { (exit 1); exit 1; }; }
1701
1702 fi
1703 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1704 echo "${ECHO_T}$ac_cv_build" >&6
1705 build=$ac_cv_build
1706 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1707 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1708 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1709
1710
1711 echo "$as_me:$LINENO: checking host system type" >&5
1712 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1713 if test "${ac_cv_host+set}" = set; then
1714   echo $ECHO_N "(cached) $ECHO_C" >&6
1715 else
1716   ac_cv_host_alias=$host_alias
1717 test -z "$ac_cv_host_alias" &&
1718   ac_cv_host_alias=$ac_cv_build_alias
1719 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1720   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1721 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1722    { (exit 1); exit 1; }; }
1723
1724 fi
1725 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1726 echo "${ECHO_T}$ac_cv_host" >&6
1727 host=$ac_cv_host
1728 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1729 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1730 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1731
1732
1733
1734 ac_ext=c
1735 ac_cpp='$CPP $CPPFLAGS'
1736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1739 if test -n "$ac_tool_prefix"; then
1740   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1742 echo "$as_me:$LINENO: checking for $ac_word" >&5
1743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1744 if test "${ac_cv_prog_CC+set}" = set; then
1745   echo $ECHO_N "(cached) $ECHO_C" >&6
1746 else
1747   if test -n "$CC"; then
1748   ac_cv_prog_CC="$CC" # Let the user override the test.
1749 else
1750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 for as_dir in $PATH
1752 do
1753   IFS=$as_save_IFS
1754   test -z "$as_dir" && as_dir=.
1755   for ac_exec_ext in '' $ac_executable_extensions; do
1756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1757     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759     break 2
1760   fi
1761 done
1762 done
1763
1764 fi
1765 fi
1766 CC=$ac_cv_prog_CC
1767 if test -n "$CC"; then
1768   echo "$as_me:$LINENO: result: $CC" >&5
1769 echo "${ECHO_T}$CC" >&6
1770 else
1771   echo "$as_me:$LINENO: result: no" >&5
1772 echo "${ECHO_T}no" >&6
1773 fi
1774
1775 fi
1776 if test -z "$ac_cv_prog_CC"; then
1777   ac_ct_CC=$CC
1778   # Extract the first word of "gcc", so it can be a program name with args.
1779 set dummy gcc; ac_word=$2
1780 echo "$as_me:$LINENO: checking for $ac_word" >&5
1781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1782 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1783   echo $ECHO_N "(cached) $ECHO_C" >&6
1784 else
1785   if test -n "$ac_ct_CC"; then
1786   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1787 else
1788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789 for as_dir in $PATH
1790 do
1791   IFS=$as_save_IFS
1792   test -z "$as_dir" && as_dir=.
1793   for ac_exec_ext in '' $ac_executable_extensions; do
1794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1795     ac_cv_prog_ac_ct_CC="gcc"
1796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1797     break 2
1798   fi
1799 done
1800 done
1801
1802 fi
1803 fi
1804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1805 if test -n "$ac_ct_CC"; then
1806   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1807 echo "${ECHO_T}$ac_ct_CC" >&6
1808 else
1809   echo "$as_me:$LINENO: result: no" >&5
1810 echo "${ECHO_T}no" >&6
1811 fi
1812
1813   CC=$ac_ct_CC
1814 else
1815   CC="$ac_cv_prog_CC"
1816 fi
1817
1818 if test -z "$CC"; then
1819   if test -n "$ac_tool_prefix"; then
1820   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1821 set dummy ${ac_tool_prefix}cc; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_CC+set}" = set; then
1825   echo $ECHO_N "(cached) $ECHO_C" >&6
1826 else
1827   if test -n "$CC"; then
1828   ac_cv_prog_CC="$CC" # Let the user override the test.
1829 else
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 for as_dir in $PATH
1832 do
1833   IFS=$as_save_IFS
1834   test -z "$as_dir" && as_dir=.
1835   for ac_exec_ext in '' $ac_executable_extensions; do
1836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837     ac_cv_prog_CC="${ac_tool_prefix}cc"
1838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1839     break 2
1840   fi
1841 done
1842 done
1843
1844 fi
1845 fi
1846 CC=$ac_cv_prog_CC
1847 if test -n "$CC"; then
1848   echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6
1850 else
1851   echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1853 fi
1854
1855 fi
1856 if test -z "$ac_cv_prog_CC"; then
1857   ac_ct_CC=$CC
1858   # Extract the first word of "cc", so it can be a program name with args.
1859 set dummy cc; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863   echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865   if test -n "$ac_ct_CC"; then
1866   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1870 do
1871   IFS=$as_save_IFS
1872   test -z "$as_dir" && as_dir=.
1873   for ac_exec_ext in '' $ac_executable_extensions; do
1874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875     ac_cv_prog_ac_ct_CC="cc"
1876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877     break 2
1878   fi
1879 done
1880 done
1881
1882 fi
1883 fi
1884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1888 else
1889   echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1891 fi
1892
1893   CC=$ac_ct_CC
1894 else
1895   CC="$ac_cv_prog_CC"
1896 fi
1897
1898 fi
1899 if test -z "$CC"; then
1900   # Extract the first word of "cc", so it can be a program name with args.
1901 set dummy cc; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_CC+set}" = set; then
1905   echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907   if test -n "$CC"; then
1908   ac_cv_prog_CC="$CC" # Let the user override the test.
1909 else
1910   ac_prog_rejected=no
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1913 do
1914   IFS=$as_save_IFS
1915   test -z "$as_dir" && as_dir=.
1916   for ac_exec_ext in '' $ac_executable_extensions; do
1917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1919        ac_prog_rejected=yes
1920        continue
1921      fi
1922     ac_cv_prog_CC="cc"
1923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924     break 2
1925   fi
1926 done
1927 done
1928
1929 if test $ac_prog_rejected = yes; then
1930   # We found a bogon in the path, so make sure we never use it.
1931   set dummy $ac_cv_prog_CC
1932   shift
1933   if test $# != 0; then
1934     # We chose a different compiler from the bogus one.
1935     # However, it has the same basename, so the bogon will be chosen
1936     # first if we set CC to just the basename; use the full file name.
1937     shift
1938     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1939   fi
1940 fi
1941 fi
1942 fi
1943 CC=$ac_cv_prog_CC
1944 if test -n "$CC"; then
1945   echo "$as_me:$LINENO: result: $CC" >&5
1946 echo "${ECHO_T}$CC" >&6
1947 else
1948   echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6
1950 fi
1951
1952 fi
1953 if test -z "$CC"; then
1954   if test -n "$ac_tool_prefix"; then
1955   for ac_prog in cl
1956   do
1957     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1959 echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961 if test "${ac_cv_prog_CC+set}" = set; then
1962   echo $ECHO_N "(cached) $ECHO_C" >&6
1963 else
1964   if test -n "$CC"; then
1965   ac_cv_prog_CC="$CC" # Let the user override the test.
1966 else
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 for as_dir in $PATH
1969 do
1970   IFS=$as_save_IFS
1971   test -z "$as_dir" && as_dir=.
1972   for ac_exec_ext in '' $ac_executable_extensions; do
1973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976     break 2
1977   fi
1978 done
1979 done
1980
1981 fi
1982 fi
1983 CC=$ac_cv_prog_CC
1984 if test -n "$CC"; then
1985   echo "$as_me:$LINENO: result: $CC" >&5
1986 echo "${ECHO_T}$CC" >&6
1987 else
1988   echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6
1990 fi
1991
1992     test -n "$CC" && break
1993   done
1994 fi
1995 if test -z "$CC"; then
1996   ac_ct_CC=$CC
1997   for ac_prog in cl
1998 do
1999   # Extract the first word of "$ac_prog", so it can be a program name with args.
2000 set dummy $ac_prog; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   if test -n "$ac_ct_CC"; then
2007   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2008 else
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2011 do
2012   IFS=$as_save_IFS
2013   test -z "$as_dir" && as_dir=.
2014   for ac_exec_ext in '' $ac_executable_extensions; do
2015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016     ac_cv_prog_ac_ct_CC="$ac_prog"
2017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018     break 2
2019   fi
2020 done
2021 done
2022
2023 fi
2024 fi
2025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2026 if test -n "$ac_ct_CC"; then
2027   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2028 echo "${ECHO_T}$ac_ct_CC" >&6
2029 else
2030   echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2032 fi
2033
2034   test -n "$ac_ct_CC" && break
2035 done
2036
2037   CC=$ac_ct_CC
2038 fi
2039
2040 fi
2041
2042
2043 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: no acceptable C compiler found in \$PATH
2046 See \`config.log' for more details." >&2;}
2047    { (exit 1); exit 1; }; }
2048
2049 # Provide some information about the compiler.
2050 echo "$as_me:$LINENO:" \
2051      "checking for C compiler version" >&5
2052 ac_compiler=`set X $ac_compile; echo $2`
2053 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2054   (eval $ac_compiler --version </dev/null >&5) 2>&5
2055   ac_status=$?
2056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057   (exit $ac_status); }
2058 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2059   (eval $ac_compiler -v </dev/null >&5) 2>&5
2060   ac_status=$?
2061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062   (exit $ac_status); }
2063 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2064   (eval $ac_compiler -V </dev/null >&5) 2>&5
2065   ac_status=$?
2066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067   (exit $ac_status); }
2068
2069 cat >conftest.$ac_ext <<_ACEOF
2070 #line $LINENO "configure"
2071 /* confdefs.h.  */
2072 _ACEOF
2073 cat confdefs.h >>conftest.$ac_ext
2074 cat >>conftest.$ac_ext <<_ACEOF
2075 /* end confdefs.h.  */
2076
2077 int
2078 main ()
2079 {
2080
2081   ;
2082   return 0;
2083 }
2084 _ACEOF
2085 ac_clean_files_save=$ac_clean_files
2086 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2087 # Try to create an executable without -o first, disregard a.out.
2088 # It will help us diagnose broken compilers, and finding out an intuition
2089 # of exeext.
2090 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2091 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2092 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2093 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2094   (eval $ac_link_default) 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }; then
2098   # Find the output, starting from the most likely.  This scheme is
2099 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2100 # resort.
2101
2102 # Be careful to initialize this variable, since it used to be cached.
2103 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2104 ac_cv_exeext=
2105 # b.out is created by i960 compilers.
2106 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2107 do
2108   test -f "$ac_file" || continue
2109   case $ac_file in
2110     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2111         ;;
2112     conftest.$ac_ext )
2113         # This is the source file.
2114         ;;
2115     [ab].out )
2116         # We found the default executable, but exeext='' is most
2117         # certainly right.
2118         break;;
2119     *.* )
2120         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2121         # FIXME: I believe we export ac_cv_exeext for Libtool,
2122         # but it would be cool to find out if it's true.  Does anybody
2123         # maintain Libtool? --akim.
2124         export ac_cv_exeext
2125         break;;
2126     * )
2127         break;;
2128   esac
2129 done
2130 else
2131   echo "$as_me: failed program was:" >&5
2132 sed 's/^/| /' conftest.$ac_ext >&5
2133
2134 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: C compiler cannot create executables
2137 See \`config.log' for more details." >&2;}
2138    { (exit 77); exit 77; }; }
2139 fi
2140
2141 ac_exeext=$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_file" >&5
2143 echo "${ECHO_T}$ac_file" >&6
2144
2145 # Check the compiler produces executables we can run.  If not, either
2146 # the compiler is broken, or we cross compile.
2147 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2148 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2149 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2150 # If not cross compiling, check that we can run a simple program.
2151 if test "$cross_compiling" != yes; then
2152   if { ac_try='./$ac_file'
2153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154   (eval $ac_try) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }; }; then
2158     cross_compiling=no
2159   else
2160     if test "$cross_compiling" = maybe; then
2161         cross_compiling=yes
2162     else
2163         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2164 If you meant to cross compile, use \`--host'.
2165 See \`config.log' for more details." >&5
2166 echo "$as_me: error: cannot run C compiled programs.
2167 If you meant to cross compile, use \`--host'.
2168 See \`config.log' for more details." >&2;}
2169    { (exit 1); exit 1; }; }
2170     fi
2171   fi
2172 fi
2173 echo "$as_me:$LINENO: result: yes" >&5
2174 echo "${ECHO_T}yes" >&6
2175
2176 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2177 ac_clean_files=$ac_clean_files_save
2178 # Check the compiler produces executables we can run.  If not, either
2179 # the compiler is broken, or we cross compile.
2180 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2181 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2182 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2183 echo "${ECHO_T}$cross_compiling" >&6
2184
2185 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2186 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2188   (eval $ac_link) 2>&5
2189   ac_status=$?
2190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191   (exit $ac_status); }; then
2192   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2193 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2194 # work properly (i.e., refer to `conftest.exe'), while it won't with
2195 # `rm'.
2196 for ac_file in conftest.exe conftest conftest.*; do
2197   test -f "$ac_file" || continue
2198   case $ac_file in
2199     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2200     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2201           export ac_cv_exeext
2202           break;;
2203     * ) break;;
2204   esac
2205 done
2206 else
2207   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2210 See \`config.log' for more details." >&2;}
2211    { (exit 1); exit 1; }; }
2212 fi
2213
2214 rm -f conftest$ac_cv_exeext
2215 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2216 echo "${ECHO_T}$ac_cv_exeext" >&6
2217
2218 rm -f conftest.$ac_ext
2219 EXEEXT=$ac_cv_exeext
2220 ac_exeext=$EXEEXT
2221 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2222 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2223 if test "${ac_cv_objext+set}" = set; then
2224   echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226   cat >conftest.$ac_ext <<_ACEOF
2227 #line $LINENO "configure"
2228 /* confdefs.h.  */
2229 _ACEOF
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h.  */
2233
2234 int
2235 main ()
2236 {
2237
2238   ;
2239   return 0;
2240 }
2241 _ACEOF
2242 rm -f conftest.o conftest.obj
2243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2244   (eval $ac_compile) 2>&5
2245   ac_status=$?
2246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247   (exit $ac_status); }; then
2248   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2249   case $ac_file in
2250     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2251     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2252        break;;
2253   esac
2254 done
2255 else
2256   echo "$as_me: failed program was:" >&5
2257 sed 's/^/| /' conftest.$ac_ext >&5
2258
2259 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2262 See \`config.log' for more details." >&2;}
2263    { (exit 1); exit 1; }; }
2264 fi
2265
2266 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2267 fi
2268 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2269 echo "${ECHO_T}$ac_cv_objext" >&6
2270 OBJEXT=$ac_cv_objext
2271 ac_objext=$OBJEXT
2272 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2273 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2274 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2275   echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277   cat >conftest.$ac_ext <<_ACEOF
2278 #line $LINENO "configure"
2279 /* confdefs.h.  */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h.  */
2284
2285 int
2286 main ()
2287 {
2288 #ifndef __GNUC__
2289        choke me
2290 #endif
2291
2292   ;
2293   return 0;
2294 }
2295 _ACEOF
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298   (eval $ac_compile) 2>&5
2299   ac_status=$?
2300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301   (exit $ac_status); } &&
2302          { ac_try='test -s conftest.$ac_objext'
2303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304   (eval $ac_try) 2>&5
2305   ac_status=$?
2306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307   (exit $ac_status); }; }; then
2308   ac_compiler_gnu=yes
2309 else
2310   echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2312
2313 ac_compiler_gnu=no
2314 fi
2315 rm -f conftest.$ac_objext conftest.$ac_ext
2316 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2317
2318 fi
2319 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2320 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2321 GCC=`test $ac_compiler_gnu = yes && echo yes`
2322 ac_test_CFLAGS=${CFLAGS+set}
2323 ac_save_CFLAGS=$CFLAGS
2324 CFLAGS="-g"
2325 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2326 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2327 if test "${ac_cv_prog_cc_g+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   cat >conftest.$ac_ext <<_ACEOF
2331 #line $LINENO "configure"
2332 /* confdefs.h.  */
2333 _ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h.  */
2337
2338 int
2339 main ()
2340 {
2341
2342   ;
2343   return 0;
2344 }
2345 _ACEOF
2346 rm -f conftest.$ac_objext
2347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348   (eval $ac_compile) 2>&5
2349   ac_status=$?
2350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351   (exit $ac_status); } &&
2352          { ac_try='test -s conftest.$ac_objext'
2353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354   (eval $ac_try) 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); }; }; then
2358   ac_cv_prog_cc_g=yes
2359 else
2360   echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2362
2363 ac_cv_prog_cc_g=no
2364 fi
2365 rm -f conftest.$ac_objext conftest.$ac_ext
2366 fi
2367 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2368 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2369 if test "$ac_test_CFLAGS" = set; then
2370   CFLAGS=$ac_save_CFLAGS
2371 elif test $ac_cv_prog_cc_g = yes; then
2372   if test "$GCC" = yes; then
2373     CFLAGS="-g -O2"
2374   else
2375     CFLAGS="-g"
2376   fi
2377 else
2378   if test "$GCC" = yes; then
2379     CFLAGS="-O2"
2380   else
2381     CFLAGS=
2382   fi
2383 fi
2384 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2385 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2386 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2387   echo $ECHO_N "(cached) $ECHO_C" >&6
2388 else
2389   ac_cv_prog_cc_stdc=no
2390 ac_save_CC=$CC
2391 cat >conftest.$ac_ext <<_ACEOF
2392 #line $LINENO "configure"
2393 /* confdefs.h.  */
2394 _ACEOF
2395 cat confdefs.h >>conftest.$ac_ext
2396 cat >>conftest.$ac_ext <<_ACEOF
2397 /* end confdefs.h.  */
2398 #include <stdarg.h>
2399 #include <stdio.h>
2400 #include <sys/types.h>
2401 #include <sys/stat.h>
2402 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2403 struct buf { int x; };
2404 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2405 static char *e (p, i)
2406      char **p;
2407      int i;
2408 {
2409   return p[i];
2410 }
2411 static char *f (char * (*g) (char **, int), char **p, ...)
2412 {
2413   char *s;
2414   va_list v;
2415   va_start (v,p);
2416   s = g (p, va_arg (v,int));
2417   va_end (v);
2418   return s;
2419 }
2420 int test (int i, double x);
2421 struct s1 {int (*f) (int a);};
2422 struct s2 {int (*f) (double a);};
2423 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2424 int argc;
2425 char **argv;
2426 int
2427 main ()
2428 {
2429 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2430   ;
2431   return 0;
2432 }
2433 _ACEOF
2434 # Don't try gcc -ansi; that turns off useful extensions and
2435 # breaks some systems' header files.
2436 # AIX                   -qlanglvl=ansi
2437 # Ultrix and OSF/1      -std1
2438 # HP-UX 10.20 and later -Ae
2439 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2440 # SVR4                  -Xc -D__EXTENSIONS__
2441 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2442 do
2443   CC="$ac_save_CC $ac_arg"
2444   rm -f conftest.$ac_objext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446   (eval $ac_compile) 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); } &&
2450          { ac_try='test -s conftest.$ac_objext'
2451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452   (eval $ac_try) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; }; then
2456   ac_cv_prog_cc_stdc=$ac_arg
2457 break
2458 else
2459   echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2461
2462 fi
2463 rm -f conftest.$ac_objext
2464 done
2465 rm -f conftest.$ac_ext conftest.$ac_objext
2466 CC=$ac_save_CC
2467
2468 fi
2469
2470 case "x$ac_cv_prog_cc_stdc" in
2471   x|xno)
2472     echo "$as_me:$LINENO: result: none needed" >&5
2473 echo "${ECHO_T}none needed" >&6 ;;
2474   *)
2475     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2476 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2477     CC="$CC $ac_cv_prog_cc_stdc" ;;
2478 esac
2479
2480 # Some people use a C++ compiler to compile C.  Since we use `exit',
2481 # in C++ we need to declare it.  In case someone uses the same compiler
2482 # for both compiling C and C++ we need to have the C++ compiler decide
2483 # the declaration of exit, since it's the most demanding environment.
2484 cat >conftest.$ac_ext <<_ACEOF
2485 #ifndef __cplusplus
2486   choke me
2487 #endif
2488 _ACEOF
2489 rm -f conftest.$ac_objext
2490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491   (eval $ac_compile) 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); } &&
2495          { ac_try='test -s conftest.$ac_objext'
2496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497   (eval $ac_try) 2>&5
2498   ac_status=$?
2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500   (exit $ac_status); }; }; then
2501   for ac_declaration in \
2502    ''\
2503    '#include <stdlib.h>' \
2504    'extern "C" void std::exit (int) throw (); using std::exit;' \
2505    'extern "C" void std::exit (int); using std::exit;' \
2506    'extern "C" void exit (int) throw ();' \
2507    'extern "C" void exit (int);' \
2508    'void exit (int);'
2509 do
2510   cat >conftest.$ac_ext <<_ACEOF
2511 #line $LINENO "configure"
2512 /* confdefs.h.  */
2513 _ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h.  */
2517 #include <stdlib.h>
2518 $ac_declaration
2519 int
2520 main ()
2521 {
2522 exit (42);
2523   ;
2524   return 0;
2525 }
2526 _ACEOF
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529   (eval $ac_compile) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); } &&
2533          { ac_try='test -s conftest.$ac_objext'
2534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535   (eval $ac_try) 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); }; }; then
2539   :
2540 else
2541   echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 continue
2545 fi
2546 rm -f conftest.$ac_objext conftest.$ac_ext
2547   cat >conftest.$ac_ext <<_ACEOF
2548 #line $LINENO "configure"
2549 /* confdefs.h.  */
2550 _ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h.  */
2554 $ac_declaration
2555 int
2556 main ()
2557 {
2558 exit (42);
2559   ;
2560   return 0;
2561 }
2562 _ACEOF
2563 rm -f conftest.$ac_objext
2564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2565   (eval $ac_compile) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); } &&
2569          { ac_try='test -s conftest.$ac_objext'
2570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571   (eval $ac_try) 2>&5
2572   ac_status=$?
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); }; }; then
2575   break
2576 else
2577   echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2579
2580 fi
2581 rm -f conftest.$ac_objext conftest.$ac_ext
2582 done
2583 rm -f conftest*
2584 if test -n "$ac_declaration"; then
2585   echo '#ifdef __cplusplus' >>confdefs.h
2586   echo $ac_declaration      >>confdefs.h
2587   echo '#endif'             >>confdefs.h
2588 fi
2589
2590 else
2591   echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593
2594 fi
2595 rm -f conftest.$ac_objext conftest.$ac_ext
2596 ac_ext=c
2597 ac_cpp='$CPP $CPPFLAGS'
2598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2601 DEPDIR="${am__leading_dot}deps"
2602
2603           ac_config_commands="$ac_config_commands depfiles"
2604
2605
2606 am_make=${MAKE-make}
2607 cat > confinc << 'END'
2608 am__doit:
2609         @echo done
2610 .PHONY: am__doit
2611 END
2612 # If we don't find an include directive, just comment out the code.
2613 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2614 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2615 am__include="#"
2616 am__quote=
2617 _am_result=none
2618 # First try GNU make style include.
2619 echo "include confinc" > confmf
2620 # We grep out `Entering directory' and `Leaving directory'
2621 # messages which can occur if `w' ends up in MAKEFLAGS.
2622 # In particular we don't look at `^make:' because GNU make might
2623 # be invoked under some other name (usually "gmake"), in which
2624 # case it prints its new name instead of `make'.
2625 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2626    am__include=include
2627    am__quote=
2628    _am_result=GNU
2629 fi
2630 # Now try BSD make style include.
2631 if test "$am__include" = "#"; then
2632    echo '.include "confinc"' > confmf
2633    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2634       am__include=.include
2635       am__quote="\""
2636       _am_result=BSD
2637    fi
2638 fi
2639
2640
2641 echo "$as_me:$LINENO: result: $_am_result" >&5
2642 echo "${ECHO_T}$_am_result" >&6
2643 rm -f confinc confmf
2644
2645 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2646 if test "${enable_dependency_tracking+set}" = set; then
2647   enableval="$enable_dependency_tracking"
2648
2649 fi;
2650 if test "x$enable_dependency_tracking" != xno; then
2651   am_depcomp="$ac_aux_dir/depcomp"
2652   AMDEPBACKSLASH='\'
2653 fi
2654
2655
2656 if test "x$enable_dependency_tracking" != xno; then
2657   AMDEP_TRUE=
2658   AMDEP_FALSE='#'
2659 else
2660   AMDEP_TRUE='#'
2661   AMDEP_FALSE=
2662 fi
2663
2664
2665
2666
2667 depcc="$CC"   am_compiler_list=
2668
2669 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2670 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2671 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2672   echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2675   # We make a subdir and do the tests there.  Otherwise we can end up
2676   # making bogus files that we don't know about and never remove.  For
2677   # instance it was reported that on HP-UX the gcc test will end up
2678   # making a dummy file named `D' -- because `-MD' means `put the output
2679   # in D'.
2680   mkdir conftest.dir
2681   # Copy depcomp to subdir because otherwise we won't find it if we're
2682   # using a relative directory.
2683   cp "$am_depcomp" conftest.dir
2684   cd conftest.dir
2685   # We will build objects and dependencies in a subdirectory because
2686   # it helps to detect inapplicable dependency modes.  For instance
2687   # both Tru64's cc and ICC support -MD to output dependencies as a
2688   # side effect of compilation, but ICC will put the dependencies in
2689   # the current directory while Tru64 will put them in the object
2690   # directory.
2691   mkdir sub
2692
2693   am_cv_CC_dependencies_compiler_type=none
2694   if test "$am_compiler_list" = ""; then
2695      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2696   fi
2697   for depmode in $am_compiler_list; do
2698     # Setup a source with many dependencies, because some compilers
2699     # like to wrap large dependency lists on column 80 (with \), and
2700     # we should not choose a depcomp mode which is confused by this.
2701     #
2702     # We need to recreate these files for each test, as the compiler may
2703     # overwrite some of them when testing with obscure command lines.
2704     # This happens at least with the AIX C compiler.
2705     : > sub/conftest.c
2706     for i in 1 2 3 4 5 6; do
2707       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2708       : > sub/conftst$i.h
2709     done
2710     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2711
2712     case $depmode in
2713     nosideeffect)
2714       # after this tag, mechanisms are not by side-effect, so they'll
2715       # only be used when explicitly requested
2716       if test "x$enable_dependency_tracking" = xyes; then
2717         continue
2718       else
2719         break
2720       fi
2721       ;;
2722     none) break ;;
2723     esac
2724     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2725     # mode.  It turns out that the SunPro C++ compiler does not properly
2726     # handle `-M -o', and we need to detect this.
2727     if depmode=$depmode \
2728        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2729        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2730        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2731          >/dev/null 2>conftest.err &&
2732        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2733        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2734        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2735       # icc doesn't choke on unknown options, it will just issue warnings
2736       # (even with -Werror).  So we grep stderr for any message
2737       # that says an option was ignored.
2738       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2739         am_cv_CC_dependencies_compiler_type=$depmode
2740         break
2741       fi
2742     fi
2743   done
2744
2745   cd ..
2746   rm -rf conftest.dir
2747 else
2748   am_cv_CC_dependencies_compiler_type=none
2749 fi
2750
2751 fi
2752 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2753 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2754 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2755
2756
2757
2758 if
2759   test "x$enable_dependency_tracking" != xno \
2760   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2761   am__fastdepCC_TRUE=
2762   am__fastdepCC_FALSE='#'
2763 else
2764   am__fastdepCC_TRUE='#'
2765   am__fastdepCC_FALSE=
2766 fi
2767
2768
2769
2770
2771         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2772 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2773 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2774   echo $ECHO_N "(cached) $ECHO_C" >&6
2775 else
2776   ac_check_lib_save_LIBS=$LIBS
2777 LIBS="-lcposix  $LIBS"
2778 cat >conftest.$ac_ext <<_ACEOF
2779 #line $LINENO "configure"
2780 /* confdefs.h.  */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h.  */
2785
2786 /* Override any gcc2 internal prototype to avoid an error.  */
2787 #ifdef __cplusplus
2788 extern "C"
2789 #endif
2790 /* We use char because int might match the return type of a gcc2
2791    builtin and then its argument prototype would still apply.  */
2792 char strerror ();
2793 int
2794 main ()
2795 {
2796 strerror ();
2797   ;
2798   return 0;
2799 }
2800 _ACEOF
2801 rm -f conftest.$ac_objext conftest$ac_exeext
2802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2803   (eval $ac_link) 2>&5
2804   ac_status=$?
2805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806   (exit $ac_status); } &&
2807          { ac_try='test -s conftest$ac_exeext'
2808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809   (eval $ac_try) 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); }; }; then
2813   ac_cv_lib_cposix_strerror=yes
2814 else
2815   echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2817
2818 ac_cv_lib_cposix_strerror=no
2819 fi
2820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2821 LIBS=$ac_check_lib_save_LIBS
2822 fi
2823 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2824 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2825 if test $ac_cv_lib_cposix_strerror = yes; then
2826   LIBS="$LIBS -lcposix"
2827 fi
2828
2829
2830
2831
2832
2833
2834 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2835 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2836 if test "${am_cv_prog_cc_stdc+set}" = set; then
2837   echo $ECHO_N "(cached) $ECHO_C" >&6
2838 else
2839   am_cv_prog_cc_stdc=no
2840 ac_save_CC="$CC"
2841 # Don't try gcc -ansi; that turns off useful extensions and
2842 # breaks some systems' header files.
2843 # AIX                   -qlanglvl=ansi
2844 # Ultrix and OSF/1      -std1
2845 # HP-UX 10.20 and later -Ae
2846 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2847 # SVR4                  -Xc -D__EXTENSIONS__
2848 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2849 do
2850   CC="$ac_save_CC $ac_arg"
2851   cat >conftest.$ac_ext <<_ACEOF
2852 #line $LINENO "configure"
2853 /* confdefs.h.  */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h.  */
2858 #include <stdarg.h>
2859 #include <stdio.h>
2860 #include <sys/types.h>
2861 #include <sys/stat.h>
2862 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2863 struct buf { int x; };
2864 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2865 static char *e (p, i)
2866      char **p;
2867      int i;
2868 {
2869   return p[i];
2870 }
2871 static char *f (char * (*g) (char **, int), char **p, ...)
2872 {
2873   char *s;
2874   va_list v;
2875   va_start (v,p);
2876   s = g (p, va_arg (v,int));
2877   va_end (v);
2878   return s;
2879 }
2880 int test (int i, double x);
2881 struct s1 {int (*f) (int a);};
2882 struct s2 {int (*f) (double a);};
2883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2884 int argc;
2885 char **argv;
2886
2887 int
2888 main ()
2889 {
2890
2891 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2892
2893   ;
2894   return 0;
2895 }
2896 _ACEOF
2897 rm -f conftest.$ac_objext
2898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899   (eval $ac_compile) 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } &&
2903          { ac_try='test -s conftest.$ac_objext'
2904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905   (eval $ac_try) 2>&5
2906   ac_status=$?
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); }; }; then
2909   am_cv_prog_cc_stdc="$ac_arg"; break
2910 else
2911   echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2913
2914 fi
2915 rm -f conftest.$ac_objext conftest.$ac_ext
2916 done
2917 CC="$ac_save_CC"
2918
2919 fi
2920
2921 if test -z "$am_cv_prog_cc_stdc"; then
2922   echo "$as_me:$LINENO: result: none needed" >&5
2923 echo "${ECHO_T}none needed" >&6
2924 else
2925   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2926 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2927 fi
2928 case "x$am_cv_prog_cc_stdc" in
2929   x|xno) ;;
2930   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2931 esac
2932
2933 ac_ext=c
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2939 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2940 # On Suns, sometimes $CPP names a directory.
2941 if test -n "$CPP" && test -d "$CPP"; then
2942   CPP=
2943 fi
2944 if test -z "$CPP"; then
2945   if test "${ac_cv_prog_CPP+set}" = set; then
2946   echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948       # Double quotes because CPP needs to be expanded
2949     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2950     do
2951       ac_preproc_ok=false
2952 for ac_c_preproc_warn_flag in '' yes
2953 do
2954   # Use a header file that comes with gcc, so configuring glibc
2955   # with a fresh cross-compiler works.
2956   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2957   # <limits.h> exists even on freestanding compilers.
2958   # On the NeXT, cc -E runs the code through the compiler's parser,
2959   # not just through cpp. "Syntax error" is here to catch this case.
2960   cat >conftest.$ac_ext <<_ACEOF
2961 #line $LINENO "configure"
2962 /* confdefs.h.  */
2963 _ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h.  */
2967 #ifdef __STDC__
2968 # include <limits.h>
2969 #else
2970 # include <assert.h>
2971 #endif
2972                      Syntax error
2973 _ACEOF
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976   ac_status=$?
2977   grep -v '^ *+' conftest.er1 >conftest.err
2978   rm -f conftest.er1
2979   cat conftest.err >&5
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } >/dev/null; then
2982   if test -s conftest.err; then
2983     ac_cpp_err=$ac_c_preproc_warn_flag
2984   else
2985     ac_cpp_err=
2986   fi
2987 else
2988   ac_cpp_err=yes
2989 fi
2990 if test -z "$ac_cpp_err"; then
2991   :
2992 else
2993   echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996   # Broken: fails on valid input.
2997 continue
2998 fi
2999 rm -f conftest.err conftest.$ac_ext
3000
3001   # OK, works on sane cases.  Now check whether non-existent headers
3002   # can be detected and how.
3003   cat >conftest.$ac_ext <<_ACEOF
3004 #line $LINENO "configure"
3005 /* confdefs.h.  */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h.  */
3010 #include <ac_nonexistent.h>
3011 _ACEOF
3012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3013   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3014   ac_status=$?
3015   grep -v '^ *+' conftest.er1 >conftest.err
3016   rm -f conftest.er1
3017   cat conftest.err >&5
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); } >/dev/null; then
3020   if test -s conftest.err; then
3021     ac_cpp_err=$ac_c_preproc_warn_flag
3022   else
3023     ac_cpp_err=
3024   fi
3025 else
3026   ac_cpp_err=yes
3027 fi
3028 if test -z "$ac_cpp_err"; then
3029   # Broken: success on invalid input.
3030 continue
3031 else
3032   echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035   # Passes both tests.
3036 ac_preproc_ok=:
3037 break
3038 fi
3039 rm -f conftest.err conftest.$ac_ext
3040
3041 done
3042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3043 rm -f conftest.err conftest.$ac_ext
3044 if $ac_preproc_ok; then
3045   break
3046 fi
3047
3048     done
3049     ac_cv_prog_CPP=$CPP
3050
3051 fi
3052   CPP=$ac_cv_prog_CPP
3053 else
3054   ac_cv_prog_CPP=$CPP
3055 fi
3056 echo "$as_me:$LINENO: result: $CPP" >&5
3057 echo "${ECHO_T}$CPP" >&6
3058 ac_preproc_ok=false
3059 for ac_c_preproc_warn_flag in '' yes
3060 do
3061   # Use a header file that comes with gcc, so configuring glibc
3062   # with a fresh cross-compiler works.
3063   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3064   # <limits.h> exists even on freestanding compilers.
3065   # On the NeXT, cc -E runs the code through the compiler's parser,
3066   # not just through cpp. "Syntax error" is here to catch this case.
3067   cat >conftest.$ac_ext <<_ACEOF
3068 #line $LINENO "configure"
3069 /* confdefs.h.  */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h.  */
3074 #ifdef __STDC__
3075 # include <limits.h>
3076 #else
3077 # include <assert.h>
3078 #endif
3079                      Syntax error
3080 _ACEOF
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083   ac_status=$?
3084   grep -v '^ *+' conftest.er1 >conftest.err
3085   rm -f conftest.er1
3086   cat conftest.err >&5
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); } >/dev/null; then
3089   if test -s conftest.err; then
3090     ac_cpp_err=$ac_c_preproc_warn_flag
3091   else
3092     ac_cpp_err=
3093   fi
3094 else
3095   ac_cpp_err=yes
3096 fi
3097 if test -z "$ac_cpp_err"; then
3098   :
3099 else
3100   echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103   # Broken: fails on valid input.
3104 continue
3105 fi
3106 rm -f conftest.err conftest.$ac_ext
3107
3108   # OK, works on sane cases.  Now check whether non-existent headers
3109   # can be detected and how.
3110   cat >conftest.$ac_ext <<_ACEOF
3111 #line $LINENO "configure"
3112 /* confdefs.h.  */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h.  */
3117 #include <ac_nonexistent.h>
3118 _ACEOF
3119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3121   ac_status=$?
3122   grep -v '^ *+' conftest.er1 >conftest.err
3123   rm -f conftest.er1
3124   cat conftest.err >&5
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); } >/dev/null; then
3127   if test -s conftest.err; then
3128     ac_cpp_err=$ac_c_preproc_warn_flag
3129   else
3130     ac_cpp_err=
3131   fi
3132 else
3133   ac_cpp_err=yes
3134 fi
3135 if test -z "$ac_cpp_err"; then
3136   # Broken: success on invalid input.
3137 continue
3138 else
3139   echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3141
3142   # Passes both tests.
3143 ac_preproc_ok=:
3144 break
3145 fi
3146 rm -f conftest.err conftest.$ac_ext
3147
3148 done
3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3150 rm -f conftest.err conftest.$ac_ext
3151 if $ac_preproc_ok; then
3152   :
3153 else
3154   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3155 See \`config.log' for more details." >&5
3156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3157 See \`config.log' for more details." >&2;}
3158    { (exit 1); exit 1; }; }
3159 fi
3160
3161 ac_ext=c
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166
3167
3168 echo "$as_me:$LINENO: checking for egrep" >&5
3169 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3170 if test "${ac_cv_prog_egrep+set}" = set; then
3171   echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3174     then ac_cv_prog_egrep='grep -E'
3175     else ac_cv_prog_egrep='egrep'
3176     fi
3177 fi
3178 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3179 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3180  EGREP=$ac_cv_prog_egrep
3181
3182
3183 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3194                   inttypes.h stdint.h unistd.h
3195 do
3196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3197 echo "$as_me:$LINENO: checking for $ac_header" >&5
3198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3200   echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202   cat >conftest.$ac_ext <<_ACEOF
3203 #line $LINENO "configure"
3204 /* confdefs.h.  */
3205 _ACEOF
3206 cat confdefs.h >>conftest.$ac_ext
3207 cat >>conftest.$ac_ext <<_ACEOF
3208 /* end confdefs.h.  */
3209 $ac_includes_default
3210
3211 #include <$ac_header>
3212 _ACEOF
3213 rm -f conftest.$ac_objext
3214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3215   (eval $ac_compile) 2>&5
3216   ac_status=$?
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); } &&
3219          { ac_try='test -s conftest.$ac_objext'
3220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221   (eval $ac_try) 2>&5
3222   ac_status=$?
3223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224   (exit $ac_status); }; }; then
3225   eval "$as_ac_Header=yes"
3226 else
3227   echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3229
3230 eval "$as_ac_Header=no"
3231 fi
3232 rm -f conftest.$ac_objext conftest.$ac_ext
3233 fi
3234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3237   cat >>confdefs.h <<_ACEOF
3238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3239 _ACEOF
3240
3241 fi
3242
3243 done
3244
3245
3246
3247
3248 echo "$as_me:$LINENO: checking for function prototypes" >&5
3249 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3250 if test "$am_cv_prog_cc_stdc" != no; then
3251   echo "$as_me:$LINENO: result: yes" >&5
3252 echo "${ECHO_T}yes" >&6
3253
3254 cat >>confdefs.h <<\_ACEOF
3255 #define PROTOTYPES 1
3256 _ACEOF
3257
3258   U= ANSI2KNR=
3259 else
3260   echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3262   U=_ ANSI2KNR=./ansi2knr
3263 fi
3264 # Ensure some checks needed by ansi2knr itself.
3265 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3266 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3267 if test "${ac_cv_header_stdc+set}" = set; then
3268   echo $ECHO_N "(cached) $ECHO_C" >&6
3269 else
3270   cat >conftest.$ac_ext <<_ACEOF
3271 #line $LINENO "configure"
3272 /* confdefs.h.  */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h.  */
3277 #include <stdlib.h>
3278 #include <stdarg.h>
3279 #include <string.h>
3280 #include <float.h>
3281
3282 int
3283 main ()
3284 {
3285
3286   ;
3287   return 0;
3288 }
3289 _ACEOF
3290 rm -f conftest.$ac_objext
3291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3292   (eval $ac_compile) 2>&5
3293   ac_status=$?
3294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295   (exit $ac_status); } &&
3296          { ac_try='test -s conftest.$ac_objext'
3297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298   (eval $ac_try) 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); }; }; then
3302   ac_cv_header_stdc=yes
3303 else
3304   echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3306
3307 ac_cv_header_stdc=no
3308 fi
3309 rm -f conftest.$ac_objext conftest.$ac_ext
3310
3311 if test $ac_cv_header_stdc = yes; then
3312   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3313   cat >conftest.$ac_ext <<_ACEOF
3314 #line $LINENO "configure"
3315 /* confdefs.h.  */
3316 _ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h.  */
3320 #include <string.h>
3321
3322 _ACEOF
3323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3324   $EGREP "memchr" >/dev/null 2>&1; then
3325   :
3326 else
3327   ac_cv_header_stdc=no
3328 fi
3329 rm -f conftest*
3330
3331 fi
3332
3333 if test $ac_cv_header_stdc = yes; then
3334   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3335   cat >conftest.$ac_ext <<_ACEOF
3336 #line $LINENO "configure"
3337 /* confdefs.h.  */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h.  */
3342 #include <stdlib.h>
3343
3344 _ACEOF
3345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3346   $EGREP "free" >/dev/null 2>&1; then
3347   :
3348 else
3349   ac_cv_header_stdc=no
3350 fi
3351 rm -f conftest*
3352
3353 fi
3354
3355 if test $ac_cv_header_stdc = yes; then
3356   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3357   if test "$cross_compiling" = yes; then
3358   :
3359 else
3360   cat >conftest.$ac_ext <<_ACEOF
3361 #line $LINENO "configure"
3362 /* confdefs.h.  */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h.  */
3367 #include <ctype.h>
3368 #if ((' ' & 0x0FF) == 0x020)
3369 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3370 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3371 #else
3372 # define ISLOWER(c) \
3373                    (('a' <= (c) && (c) <= 'i') \
3374                      || ('j' <= (c) && (c) <= 'r') \
3375                      || ('s' <= (c) && (c) <= 'z'))
3376 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3377 #endif
3378
3379 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3380 int
3381 main ()
3382 {
3383   int i;
3384   for (i = 0; i < 256; i++)
3385     if (XOR (islower (i), ISLOWER (i))
3386         || toupper (i) != TOUPPER (i))
3387       exit(2);
3388   exit (0);
3389 }
3390 _ACEOF
3391 rm -f conftest$ac_exeext
3392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3393   (eval $ac_link) 2>&5
3394   ac_status=$?
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398   (eval $ac_try) 2>&5
3399   ac_status=$?
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); }; }; then
3402   :
3403 else
3404   echo "$as_me: program exited with status $ac_status" >&5
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408 ( exit $ac_status )
3409 ac_cv_header_stdc=no
3410 fi
3411 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3412 fi
3413 fi
3414 fi
3415 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3416 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3417 if test $ac_cv_header_stdc = yes; then
3418
3419 cat >>confdefs.h <<\_ACEOF
3420 #define STDC_HEADERS 1
3421 _ACEOF
3422
3423 fi
3424
3425
3426 for ac_header in string.h
3427 do
3428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3430   echo "$as_me:$LINENO: checking for $ac_header" >&5
3431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3433   echo $ECHO_N "(cached) $ECHO_C" >&6
3434 fi
3435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3437 else
3438   # Is the header compilable?
3439 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3441 cat >conftest.$ac_ext <<_ACEOF
3442 #line $LINENO "configure"
3443 /* confdefs.h.  */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h.  */
3448 $ac_includes_default
3449 #include <$ac_header>
3450 _ACEOF
3451 rm -f conftest.$ac_objext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453   (eval $ac_compile) 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); } &&
3457          { ac_try='test -s conftest.$ac_objext'
3458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459   (eval $ac_try) 2>&5
3460   ac_status=$?
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); }; }; then
3463   ac_header_compiler=yes
3464 else
3465   echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 ac_header_compiler=no
3469 fi
3470 rm -f conftest.$ac_objext conftest.$ac_ext
3471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3472 echo "${ECHO_T}$ac_header_compiler" >&6
3473
3474 # Is the header present?
3475 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3477 cat >conftest.$ac_ext <<_ACEOF
3478 #line $LINENO "configure"
3479 /* confdefs.h.  */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h.  */
3484 #include <$ac_header>
3485 _ACEOF
3486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3487   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3488   ac_status=$?
3489   grep -v '^ *+' conftest.er1 >conftest.err
3490   rm -f conftest.er1
3491   cat conftest.err >&5
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); } >/dev/null; then
3494   if test -s conftest.err; then
3495     ac_cpp_err=$ac_c_preproc_warn_flag
3496   else
3497     ac_cpp_err=
3498   fi
3499 else
3500   ac_cpp_err=yes
3501 fi
3502 if test -z "$ac_cpp_err"; then
3503   ac_header_preproc=yes
3504 else
3505   echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3507
3508   ac_header_preproc=no
3509 fi
3510 rm -f conftest.err conftest.$ac_ext
3511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3512 echo "${ECHO_T}$ac_header_preproc" >&6
3513
3514 # So?  What about this header?
3515 case $ac_header_compiler:$ac_header_preproc in
3516   yes:no )
3517     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3521     (
3522       cat <<\_ASBOX
3523 ## ------------------------------------ ##
3524 ## Report this to bug-autoconf@gnu.org. ##
3525 ## ------------------------------------ ##
3526 _ASBOX
3527     ) |
3528       sed "s/^/$as_me: WARNING:     /" >&2
3529     ;;
3530   no:yes )
3531     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3533     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3537     (
3538       cat <<\_ASBOX
3539 ## ------------------------------------ ##
3540 ## Report this to bug-autoconf@gnu.org. ##
3541 ## ------------------------------------ ##
3542 _ASBOX
3543     ) |
3544       sed "s/^/$as_me: WARNING:     /" >&2
3545     ;;
3546 esac
3547 echo "$as_me:$LINENO: checking for $ac_header" >&5
3548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   eval "$as_ac_Header=$ac_header_preproc"
3553 fi
3554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3556
3557 fi
3558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3559   cat >>confdefs.h <<_ACEOF
3560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3561 _ACEOF
3562
3563 fi
3564
3565 done
3566
3567
3568 if test "x$U" != "x"; then
3569         { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3570 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3571    { (exit 1); exit 1; }; }
3572 fi
3573 echo "$as_me:$LINENO: checking for inline" >&5
3574 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3575 if test "${ac_cv_c_inline+set}" = set; then
3576   echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578   ac_cv_c_inline=no
3579 for ac_kw in inline __inline__ __inline; do
3580   cat >conftest.$ac_ext <<_ACEOF
3581 #line $LINENO "configure"
3582 /* confdefs.h.  */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h.  */
3587 #ifndef __cplusplus
3588 typedef int foo_t;
3589 static $ac_kw foo_t static_foo () {return 0; }
3590 $ac_kw foo_t foo () {return 0; }
3591 #endif
3592
3593 _ACEOF
3594 rm -f conftest.$ac_objext
3595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3596   (eval $ac_compile) 2>&5
3597   ac_status=$?
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); } &&
3600          { ac_try='test -s conftest.$ac_objext'
3601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602   (eval $ac_try) 2>&5
3603   ac_status=$?
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); }; }; then
3606   ac_cv_c_inline=$ac_kw; break
3607 else
3608   echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611 fi
3612 rm -f conftest.$ac_objext conftest.$ac_ext
3613 done
3614
3615 fi
3616 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3617 echo "${ECHO_T}$ac_cv_c_inline" >&6
3618 case $ac_cv_c_inline in
3619   inline | yes) ;;
3620   no)
3621 cat >>confdefs.h <<\_ACEOF
3622 #define inline
3623 _ACEOF
3624  ;;
3625   *)  cat >>confdefs.h <<_ACEOF
3626 #define inline $ac_cv_c_inline
3627 _ACEOF
3628  ;;
3629 esac
3630
3631 # Find a good install program.  We prefer a C program (faster),
3632 # so one script is as good as another.  But avoid the broken or
3633 # incompatible versions:
3634 # SysV /etc/install, /usr/sbin/install
3635 # SunOS /usr/etc/install
3636 # IRIX /sbin/install
3637 # AIX /bin/install
3638 # AmigaOS /C/install, which installs bootblocks on floppy discs
3639 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3640 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3641 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3642 # ./install, which can be erroneously created by make from ./install.sh.
3643 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3644 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3645 if test -z "$INSTALL"; then
3646 if test "${ac_cv_path_install+set}" = set; then
3647   echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $PATH
3651 do
3652   IFS=$as_save_IFS
3653   test -z "$as_dir" && as_dir=.
3654   # Account for people who put trailing slashes in PATH elements.
3655 case $as_dir/ in
3656   ./ | .// | /cC/* | \
3657   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3658   /usr/ucb/* ) ;;
3659   *)
3660     # OSF1 and SCO ODT 3.0 have their own names for install.
3661     # Don't use installbsd from OSF since it installs stuff as root
3662     # by default.
3663     for ac_prog in ginstall scoinst install; do
3664       for ac_exec_ext in '' $ac_executable_extensions; do
3665         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3666           if test $ac_prog = install &&
3667             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3668             # AIX install.  It has an incompatible calling convention.
3669             :
3670           elif test $ac_prog = install &&
3671             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3672             # program-specific install script used by HP pwplus--don't use.
3673             :
3674           else
3675             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3676             break 3
3677           fi
3678         fi
3679       done
3680     done
3681     ;;
3682 esac
3683 done
3684
3685
3686 fi
3687   if test "${ac_cv_path_install+set}" = set; then
3688     INSTALL=$ac_cv_path_install
3689   else
3690     # As a last resort, use the slow shell script.  We don't cache a
3691     # path for INSTALL within a source directory, because that will
3692     # break other packages using the cache if that directory is
3693     # removed, or if the path is relative.
3694     INSTALL=$ac_install_sh
3695   fi
3696 fi
3697 echo "$as_me:$LINENO: result: $INSTALL" >&5
3698 echo "${ECHO_T}$INSTALL" >&6
3699
3700 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3701 # It thinks the first close brace ends the variable substitution.
3702 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3703
3704 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3705
3706 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3707
3708 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3709 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3710 if test "${ac_cv_header_stdc+set}" = set; then
3711   echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713   cat >conftest.$ac_ext <<_ACEOF
3714 #line $LINENO "configure"
3715 /* confdefs.h.  */
3716 _ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h.  */
3720 #include <stdlib.h>
3721 #include <stdarg.h>
3722 #include <string.h>
3723 #include <float.h>
3724
3725 int
3726 main ()
3727 {
3728
3729   ;
3730   return 0;
3731 }
3732 _ACEOF
3733 rm -f conftest.$ac_objext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735   (eval $ac_compile) 2>&5
3736   ac_status=$?
3737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738   (exit $ac_status); } &&
3739          { ac_try='test -s conftest.$ac_objext'
3740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741   (eval $ac_try) 2>&5
3742   ac_status=$?
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); }; }; then
3745   ac_cv_header_stdc=yes
3746 else
3747   echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3749
3750 ac_cv_header_stdc=no
3751 fi
3752 rm -f conftest.$ac_objext conftest.$ac_ext
3753
3754 if test $ac_cv_header_stdc = yes; then
3755   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3756   cat >conftest.$ac_ext <<_ACEOF
3757 #line $LINENO "configure"
3758 /* confdefs.h.  */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h.  */
3763 #include <string.h>
3764
3765 _ACEOF
3766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3767   $EGREP "memchr" >/dev/null 2>&1; then
3768   :
3769 else
3770   ac_cv_header_stdc=no
3771 fi
3772 rm -f conftest*
3773
3774 fi
3775
3776 if test $ac_cv_header_stdc = yes; then
3777   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3778   cat >conftest.$ac_ext <<_ACEOF
3779 #line $LINENO "configure"
3780 /* confdefs.h.  */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h.  */
3785 #include <stdlib.h>
3786
3787 _ACEOF
3788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3789   $EGREP "free" >/dev/null 2>&1; then
3790   :
3791 else
3792   ac_cv_header_stdc=no
3793 fi
3794 rm -f conftest*
3795
3796 fi
3797
3798 if test $ac_cv_header_stdc = yes; then
3799   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3800   if test "$cross_compiling" = yes; then
3801   :
3802 else
3803   cat >conftest.$ac_ext <<_ACEOF
3804 #line $LINENO "configure"
3805 /* confdefs.h.  */
3806 _ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h.  */
3810 #include <ctype.h>
3811 #if ((' ' & 0x0FF) == 0x020)
3812 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3813 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3814 #else
3815 # define ISLOWER(c) \
3816                    (('a' <= (c) && (c) <= 'i') \
3817                      || ('j' <= (c) && (c) <= 'r') \
3818                      || ('s' <= (c) && (c) <= 'z'))
3819 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3820 #endif
3821
3822 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3823 int
3824 main ()
3825 {
3826   int i;
3827   for (i = 0; i < 256; i++)
3828     if (XOR (islower (i), ISLOWER (i))
3829         || toupper (i) != TOUPPER (i))
3830       exit(2);
3831   exit (0);
3832 }
3833 _ACEOF
3834 rm -f conftest$ac_exeext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3836   (eval $ac_link) 2>&5
3837   ac_status=$?
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841   (eval $ac_try) 2>&5
3842   ac_status=$?
3843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844   (exit $ac_status); }; }; then
3845   :
3846 else
3847   echo "$as_me: program exited with status $ac_status" >&5
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3850
3851 ( exit $ac_status )
3852 ac_cv_header_stdc=no
3853 fi
3854 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3855 fi
3856 fi
3857 fi
3858 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3859 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3860 if test $ac_cv_header_stdc = yes; then
3861
3862 cat >>confdefs.h <<\_ACEOF
3863 #define STDC_HEADERS 1
3864 _ACEOF
3865
3866 fi
3867
3868
3869
3870
3871
3872
3873 for ac_header in unistd.h locale.h termios.h linux/termios.h sys/ioctl.h
3874 do
3875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3877   echo "$as_me:$LINENO: checking for $ac_header" >&5
3878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3880   echo $ECHO_N "(cached) $ECHO_C" >&6
3881 fi
3882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3884 else
3885   # Is the header compilable?
3886 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3888 cat >conftest.$ac_ext <<_ACEOF
3889 #line $LINENO "configure"
3890 /* confdefs.h.  */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h.  */
3895 $ac_includes_default
3896 #include <$ac_header>
3897 _ACEOF
3898 rm -f conftest.$ac_objext
3899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3900   (eval $ac_compile) 2>&5
3901   ac_status=$?
3902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); } &&
3904          { ac_try='test -s conftest.$ac_objext'
3905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906   (eval $ac_try) 2>&5
3907   ac_status=$?
3908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909   (exit $ac_status); }; }; then
3910   ac_header_compiler=yes
3911 else
3912   echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3914
3915 ac_header_compiler=no
3916 fi
3917 rm -f conftest.$ac_objext conftest.$ac_ext
3918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3919 echo "${ECHO_T}$ac_header_compiler" >&6
3920
3921 # Is the header present?
3922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3924 cat >conftest.$ac_ext <<_ACEOF
3925 #line $LINENO "configure"
3926 /* confdefs.h.  */
3927 _ACEOF
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h.  */
3931 #include <$ac_header>
3932 _ACEOF
3933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3935   ac_status=$?
3936   grep -v '^ *+' conftest.er1 >conftest.err
3937   rm -f conftest.er1
3938   cat conftest.err >&5
3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940   (exit $ac_status); } >/dev/null; then
3941   if test -s conftest.err; then
3942     ac_cpp_err=$ac_c_preproc_warn_flag
3943   else
3944     ac_cpp_err=
3945   fi
3946 else
3947   ac_cpp_err=yes
3948 fi
3949 if test -z "$ac_cpp_err"; then
3950   ac_header_preproc=yes
3951 else
3952   echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3954
3955   ac_header_preproc=no
3956 fi
3957 rm -f conftest.err conftest.$ac_ext
3958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3959 echo "${ECHO_T}$ac_header_preproc" >&6
3960
3961 # So?  What about this header?
3962 case $ac_header_compiler:$ac_header_preproc in
3963   yes:no )
3964     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3968     (
3969       cat <<\_ASBOX
3970 ## ------------------------------------ ##
3971 ## Report this to bug-autoconf@gnu.org. ##
3972 ## ------------------------------------ ##
3973 _ASBOX
3974     ) |
3975       sed "s/^/$as_me: WARNING:     /" >&2
3976     ;;
3977   no:yes )
3978     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3980     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3984     (
3985       cat <<\_ASBOX
3986 ## ------------------------------------ ##
3987 ## Report this to bug-autoconf@gnu.org. ##
3988 ## ------------------------------------ ##
3989 _ASBOX
3990     ) |
3991       sed "s/^/$as_me: WARNING:     /" >&2
3992     ;;
3993 esac
3994 echo "$as_me:$LINENO: checking for $ac_header" >&5
3995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3997   echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999   eval "$as_ac_Header=$ac_header_preproc"
4000 fi
4001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4003
4004 fi
4005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4006   cat >>confdefs.h <<_ACEOF
4007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4008 _ACEOF
4009
4010 fi
4011
4012 done
4013
4014 if test "${ac_cv_header_stdarg_h+set}" = set; then
4015   echo "$as_me:$LINENO: checking for stdarg.h" >&5
4016 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
4017 if test "${ac_cv_header_stdarg_h+set}" = set; then
4018   echo $ECHO_N "(cached) $ECHO_C" >&6
4019 fi
4020 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
4021 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
4022 else
4023   # Is the header compilable?
4024 echo "$as_me:$LINENO: checking stdarg.h usability" >&5
4025 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
4026 cat >conftest.$ac_ext <<_ACEOF
4027 #line $LINENO "configure"
4028 /* confdefs.h.  */
4029 _ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h.  */
4033 $ac_includes_default
4034 #include <stdarg.h>
4035 _ACEOF
4036 rm -f conftest.$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038   (eval $ac_compile) 2>&5
4039   ac_status=$?
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); } &&
4042          { ac_try='test -s conftest.$ac_objext'
4043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044   (eval $ac_try) 2>&5
4045   ac_status=$?
4046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047   (exit $ac_status); }; }; then
4048   ac_header_compiler=yes
4049 else
4050   echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4052
4053 ac_header_compiler=no
4054 fi
4055 rm -f conftest.$ac_objext conftest.$ac_ext
4056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4057 echo "${ECHO_T}$ac_header_compiler" >&6
4058
4059 # Is the header present?
4060 echo "$as_me:$LINENO: checking stdarg.h presence" >&5
4061 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
4062 cat >conftest.$ac_ext <<_ACEOF
4063 #line $LINENO "configure"
4064 /* confdefs.h.  */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h.  */
4069 #include <stdarg.h>
4070 _ACEOF
4071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4072   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4073   ac_status=$?
4074   grep -v '^ *+' conftest.er1 >conftest.err
4075   rm -f conftest.er1
4076   cat conftest.err >&5
4077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078   (exit $ac_status); } >/dev/null; then
4079   if test -s conftest.err; then
4080     ac_cpp_err=$ac_c_preproc_warn_flag
4081   else
4082     ac_cpp_err=
4083   fi
4084 else
4085   ac_cpp_err=yes
4086 fi
4087 if test -z "$ac_cpp_err"; then
4088   ac_header_preproc=yes
4089 else
4090   echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4092
4093   ac_header_preproc=no
4094 fi
4095 rm -f conftest.err conftest.$ac_ext
4096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4097 echo "${ECHO_T}$ac_header_preproc" >&6
4098
4099 # So?  What about this header?
4100 case $ac_header_compiler:$ac_header_preproc in
4101   yes:no )
4102     { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
4103 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4104     { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
4105 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
4106     (
4107       cat <<\_ASBOX
4108 ## ------------------------------------ ##
4109 ## Report this to bug-autoconf@gnu.org. ##
4110 ## ------------------------------------ ##
4111 _ASBOX
4112     ) |
4113       sed "s/^/$as_me: WARNING:     /" >&2
4114     ;;
4115   no:yes )
4116     { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
4117 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
4118     { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
4119 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
4120     { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
4121 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
4122     (
4123       cat <<\_ASBOX
4124 ## ------------------------------------ ##
4125 ## Report this to bug-autoconf@gnu.org. ##
4126 ## ------------------------------------ ##
4127 _ASBOX
4128     ) |
4129       sed "s/^/$as_me: WARNING:     /" >&2
4130     ;;
4131 esac
4132 echo "$as_me:$LINENO: checking for stdarg.h" >&5
4133 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
4134 if test "${ac_cv_header_stdarg_h+set}" = set; then
4135   echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137   ac_cv_header_stdarg_h=$ac_header_preproc
4138 fi
4139 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
4140 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
4141
4142 fi
4143 if test $ac_cv_header_stdarg_h = yes; then
4144
4145 cat >>confdefs.h <<\_ACEOF
4146 #define HAVE_STDARG_H 1
4147 _ACEOF
4148
4149 else
4150   { { echo "$as_me:$LINENO: error: *** stdarg.h is missing on your system ***" >&5
4151 echo "$as_me: error: *** stdarg.h is missing on your system ***" >&2;}
4152    { (exit 1); exit 1; }; }
4153 fi
4154
4155
4156 echo "$as_me:$LINENO: checking for working strcoll" >&5
4157 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4158 if test "${ac_cv_func_strcoll_works+set}" = set; then
4159   echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161   if test "$cross_compiling" = yes; then
4162   ac_cv_func_strcoll_works=no
4163 else
4164   cat >conftest.$ac_ext <<_ACEOF
4165 #line $LINENO "configure"
4166 /* confdefs.h.  */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h.  */
4171 $ac_includes_default
4172 int
4173 main ()
4174 {
4175 exit (strcoll ("abc", "def") >= 0 ||
4176          strcoll ("ABC", "DEF") >= 0 ||
4177          strcoll ("123", "456") >= 0)
4178   ;
4179   return 0;
4180 }
4181 _ACEOF
4182 rm -f conftest$ac_exeext
4183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4184   (eval $ac_link) 2>&5
4185   ac_status=$?
4186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189   (eval $ac_try) 2>&5
4190   ac_status=$?
4191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192   (exit $ac_status); }; }; then
4193   ac_cv_func_strcoll_works=yes
4194 else
4195   echo "$as_me: program exited with status $ac_status" >&5
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4198
4199 ( exit $ac_status )
4200 ac_cv_func_strcoll_works=no
4201 fi
4202 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4203 fi
4204 fi
4205 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4206 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4207 if test $ac_cv_func_strcoll_works = yes; then
4208
4209 cat >>confdefs.h <<\_ACEOF
4210 #define HAVE_STRCOLL 1
4211 _ACEOF
4212
4213 fi
4214
4215
4216 for ac_func in setlocale
4217 do
4218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4219 echo "$as_me:$LINENO: checking for $ac_func" >&5
4220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4221 if eval "test \"\${$as_ac_var+set}\" = set"; then
4222   echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224   cat >conftest.$ac_ext <<_ACEOF
4225 #line $LINENO "configure"
4226 /* confdefs.h.  */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h.  */
4231 /* System header to define __stub macros and hopefully few prototypes,
4232     which can conflict with char $ac_func (); below.
4233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4234     <limits.h> exists even on freestanding compilers.  */
4235 #ifdef __STDC__
4236 # include <limits.h>
4237 #else
4238 # include <assert.h>
4239 #endif
4240 /* Override any gcc2 internal prototype to avoid an error.  */
4241 #ifdef __cplusplus
4242 extern "C"
4243 {
4244 #endif
4245 /* We use char because int might match the return type of a gcc2
4246    builtin and then its argument prototype would still apply.  */
4247 char $ac_func ();
4248 /* The GNU C library defines this for functions which it implements
4249     to always fail with ENOSYS.  Some functions are actually named
4250     something starting with __ and the normal name is an alias.  */
4251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4252 choke me
4253 #else
4254 char (*f) () = $ac_func;
4255 #endif
4256 #ifdef __cplusplus
4257 }
4258 #endif
4259
4260 int
4261 main ()
4262 {
4263 return f != $ac_func;
4264   ;
4265   return 0;
4266 }
4267 _ACEOF
4268 rm -f conftest.$ac_objext conftest$ac_exeext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4270   (eval $ac_link) 2>&5
4271   ac_status=$?
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); } &&
4274          { ac_try='test -s conftest$ac_exeext'
4275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276   (eval $ac_try) 2>&5
4277   ac_status=$?
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); }; }; then
4280   eval "$as_ac_var=yes"
4281 else
4282   echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4284
4285 eval "$as_ac_var=no"
4286 fi
4287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4288 fi
4289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4291 if test `eval echo '${'$as_ac_var'}'` = yes; then
4292   cat >>confdefs.h <<_ACEOF
4293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4294 _ACEOF
4295
4296 fi
4297 done
4298
4299
4300 ac_widec_funcs=yes
4301 if test "${ac_cv_header_wchar_h+set}" = set; then
4302   echo "$as_me:$LINENO: checking for wchar.h" >&5
4303 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
4304 if test "${ac_cv_header_wchar_h+set}" = set; then
4305   echo $ECHO_N "(cached) $ECHO_C" >&6
4306 fi
4307 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
4308 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
4309 else
4310   # Is the header compilable?
4311 echo "$as_me:$LINENO: checking wchar.h usability" >&5
4312 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
4313 cat >conftest.$ac_ext <<_ACEOF
4314 #line $LINENO "configure"
4315 /* confdefs.h.  */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h.  */
4320 $ac_includes_default
4321 #include <wchar.h>
4322 _ACEOF
4323 rm -f conftest.$ac_objext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4325   (eval $ac_compile) 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); } &&
4329          { ac_try='test -s conftest.$ac_objext'
4330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331   (eval $ac_try) 2>&5
4332   ac_status=$?
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); }; }; then
4335   ac_header_compiler=yes
4336 else
4337   echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4339
4340 ac_header_compiler=no
4341 fi
4342 rm -f conftest.$ac_objext conftest.$ac_ext
4343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4344 echo "${ECHO_T}$ac_header_compiler" >&6
4345
4346 # Is the header present?
4347 echo "$as_me:$LINENO: checking wchar.h presence" >&5
4348 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
4349 cat >conftest.$ac_ext <<_ACEOF
4350 #line $LINENO "configure"
4351 /* confdefs.h.  */
4352 _ACEOF
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h.  */
4356 #include <wchar.h>
4357 _ACEOF
4358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4360   ac_status=$?
4361   grep -v '^ *+' conftest.er1 >conftest.err
4362   rm -f conftest.er1
4363   cat conftest.err >&5
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); } >/dev/null; then
4366   if test -s conftest.err; then
4367     ac_cpp_err=$ac_c_preproc_warn_flag
4368   else
4369     ac_cpp_err=
4370   fi
4371 else
4372   ac_cpp_err=yes
4373 fi
4374 if test -z "$ac_cpp_err"; then
4375   ac_header_preproc=yes
4376 else
4377   echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4379
4380   ac_header_preproc=no
4381 fi
4382 rm -f conftest.err conftest.$ac_ext
4383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4384 echo "${ECHO_T}$ac_header_preproc" >&6
4385
4386 # So?  What about this header?
4387 case $ac_header_compiler:$ac_header_preproc in
4388   yes:no )
4389     { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
4390 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4391     { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
4392 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
4393     (
4394       cat <<\_ASBOX
4395 ## ------------------------------------ ##
4396 ## Report this to bug-autoconf@gnu.org. ##
4397 ## ------------------------------------ ##
4398 _ASBOX
4399     ) |
4400       sed "s/^/$as_me: WARNING:     /" >&2
4401     ;;
4402   no:yes )
4403     { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
4404 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
4405     { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
4406 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
4407     { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
4408 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
4409     (
4410       cat <<\_ASBOX
4411 ## ------------------------------------ ##
4412 ## Report this to bug-autoconf@gnu.org. ##
4413 ## ------------------------------------ ##
4414 _ASBOX
4415     ) |
4416       sed "s/^/$as_me: WARNING:     /" >&2
4417     ;;
4418 esac
4419 echo "$as_me:$LINENO: checking for wchar.h" >&5
4420 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
4421 if test "${ac_cv_header_wchar_h+set}" = set; then
4422   echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424   ac_cv_header_wchar_h=$ac_header_preproc
4425 fi
4426 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
4427 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
4428
4429 fi
4430 if test $ac_cv_header_wchar_h = yes; then
4431
4432         ac_have_wchar_h=yes
4433
4434 cat >>confdefs.h <<\_ACEOF
4435 #define HAVE_WCHAR_H 1
4436 _ACEOF
4437
4438 else
4439   ac_have_wchar_h=no
4440 fi
4441
4442
4443
4444
4445
4446
4447 for ac_func in mbtowc wcwidth mbrtowc mbsinit
4448 do
4449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4450 echo "$as_me:$LINENO: checking for $ac_func" >&5
4451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4452 if eval "test \"\${$as_ac_var+set}\" = set"; then
4453   echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455   cat >conftest.$ac_ext <<_ACEOF
4456 #line $LINENO "configure"
4457 /* confdefs.h.  */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h.  */
4462 /* System header to define __stub macros and hopefully few prototypes,
4463     which can conflict with char $ac_func (); below.
4464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4465     <limits.h> exists even on freestanding compilers.  */
4466 #ifdef __STDC__
4467 # include <limits.h>
4468 #else
4469 # include <assert.h>
4470 #endif
4471 /* Override any gcc2 internal prototype to avoid an error.  */
4472 #ifdef __cplusplus
4473 extern "C"
4474 {
4475 #endif
4476 /* We use char because int might match the return type of a gcc2
4477    builtin and then its argument prototype would still apply.  */
4478 char $ac_func ();
4479 /* The GNU C library defines this for functions which it implements
4480     to always fail with ENOSYS.  Some functions are actually named
4481     something starting with __ and the normal name is an alias.  */
4482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4483 choke me
4484 #else
4485 char (*f) () = $ac_func;
4486 #endif
4487 #ifdef __cplusplus
4488 }
4489 #endif
4490
4491 int
4492 main ()
4493 {
4494 return f != $ac_func;
4495   ;
4496   return 0;
4497 }
4498 _ACEOF
4499 rm -f conftest.$ac_objext conftest$ac_exeext
4500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4501   (eval $ac_link) 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); } &&
4505          { ac_try='test -s conftest$ac_exeext'
4506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507   (eval $ac_try) 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); }; }; then
4511   eval "$as_ac_var=yes"
4512 else
4513   echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4515
4516 eval "$as_ac_var=no"
4517 fi
4518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4519 fi
4520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4522 if test `eval echo '${'$as_ac_var'}'` = yes; then
4523   cat >>confdefs.h <<_ACEOF
4524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4525 _ACEOF
4526
4527 else
4528   ac_widec_funcs=no
4529 fi
4530 done
4531
4532 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
4533 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
4534 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
4535   echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537   cat >conftest.$ac_ext <<_ACEOF
4538 #line $LINENO "configure"
4539 /* confdefs.h.  */
4540 _ACEOF
4541 cat confdefs.h >>conftest.$ac_ext
4542 cat >>conftest.$ac_ext <<_ACEOF
4543 /* end confdefs.h.  */
4544 $ac_includes_default
4545 int
4546 main ()
4547 {
4548 #ifndef wcwidth
4549   char *p = (char *) wcwidth;
4550 #endif
4551
4552   ;
4553   return 0;
4554 }
4555 _ACEOF
4556 rm -f conftest.$ac_objext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558   (eval $ac_compile) 2>&5
4559   ac_status=$?
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); } &&
4562          { ac_try='test -s conftest.$ac_objext'
4563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564   (eval $ac_try) 2>&5
4565   ac_status=$?
4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); }; }; then
4568   ac_cv_have_decl_wcwidth=yes
4569 else
4570   echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4572
4573 ac_cv_have_decl_wcwidth=no
4574 fi
4575 rm -f conftest.$ac_objext conftest.$ac_ext
4576 fi
4577 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
4578 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
4579 if test $ac_cv_have_decl_wcwidth = yes; then
4580
4581 cat >>confdefs.h <<_ACEOF
4582 #define HAVE_DECL_WCWIDTH 1
4583 _ACEOF
4584
4585
4586 else
4587   cat >>confdefs.h <<_ACEOF
4588 #define HAVE_DECL_WCWIDTH 0
4589 _ACEOF
4590
4591
4592 fi
4593
4594
4595 echo "$as_me:$LINENO: checking for wchar_t" >&5
4596 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4597 if test "${ac_cv_type_wchar_t+set}" = set; then
4598   echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600   cat >conftest.$ac_ext <<_ACEOF
4601 #line $LINENO "configure"
4602 /* confdefs.h.  */
4603 _ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h.  */
4607 $ac_includes_default
4608 int
4609 main ()
4610 {
4611 if ((wchar_t *) 0)
4612   return 0;
4613 if (sizeof (wchar_t))
4614   return 0;
4615   ;
4616   return 0;
4617 }
4618 _ACEOF
4619 rm -f conftest.$ac_objext
4620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4621   (eval $ac_compile) 2>&5
4622   ac_status=$?
4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624   (exit $ac_status); } &&
4625          { ac_try='test -s conftest.$ac_objext'
4626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627   (eval $ac_try) 2>&5
4628   ac_status=$?
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); }; }; then
4631   ac_cv_type_wchar_t=yes
4632 else
4633   echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4635
4636 ac_cv_type_wchar_t=no
4637 fi
4638 rm -f conftest.$ac_objext conftest.$ac_ext
4639 fi
4640 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
4641 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
4642 if test $ac_cv_type_wchar_t = yes; then
4643   :
4644 else
4645   ac_widec_funcs=no
4646 fi
4647
4648
4649 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
4650         ac_widec_possible=yes
4651 else
4652         ac_widec_possible=no
4653 fi
4654
4655
4656 abook_cv_curses=/usr
4657
4658 # Check whether --with-curses or --without-curses was given.
4659 if test "${with_curses+set}" = set; then
4660   withval="$with_curses"
4661   if test $withval != yes; then
4662                 abook_cv_curses=$withval
4663         fi
4664         if test x$abook_cv_curses != x/usr; then
4665                 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
4666                 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
4667         fi
4668 fi;
4669
4670 echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5
4671 echo $ECHO_N "checking for initscr in -lncursesw... $ECHO_C" >&6
4672 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then
4673   echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675   ac_check_lib_save_LIBS=$LIBS
4676 LIBS="-lncursesw  $LIBS"
4677 cat >conftest.$ac_ext <<_ACEOF
4678 #line $LINENO "configure"
4679 /* confdefs.h.  */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h.  */
4684
4685 /* Override any gcc2 internal prototype to avoid an error.  */
4686 #ifdef __cplusplus
4687 extern "C"
4688 #endif
4689 /* We use char because int might match the return type of a gcc2
4690    builtin and then its argument prototype would still apply.  */
4691 char initscr ();
4692 int
4693 main ()
4694 {
4695 initscr ();
4696   ;
4697   return 0;
4698 }
4699 _ACEOF
4700 rm -f conftest.$ac_objext conftest$ac_exeext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4702   (eval $ac_link) 2>&5
4703   ac_status=$?
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); } &&
4706          { ac_try='test -s conftest$ac_exeext'
4707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708   (eval $ac_try) 2>&5
4709   ac_status=$?
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); }; }; then
4712   ac_cv_lib_ncursesw_initscr=yes
4713 else
4714   echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4716
4717 ac_cv_lib_ncursesw_initscr=no
4718 fi
4719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4720 LIBS=$ac_check_lib_save_LIBS
4721 fi
4722 echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5
4723 echo "${ECHO_T}$ac_cv_lib_ncursesw_initscr" >&6
4724 if test $ac_cv_lib_ncursesw_initscr = yes; then
4725   LIBS="$LIBS -lncursesw"
4726         if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
4727                 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
4728         fi
4729
4730 for ac_header in ncurses.h
4731 do
4732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4734   echo "$as_me:$LINENO: checking for $ac_header" >&5
4735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4737   echo $ECHO_N "(cached) $ECHO_C" >&6
4738 fi
4739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4741 else
4742   # Is the header compilable?
4743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4745 cat >conftest.$ac_ext <<_ACEOF
4746 #line $LINENO "configure"
4747 /* confdefs.h.  */
4748 _ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h.  */
4752 $ac_includes_default
4753 #include <$ac_header>
4754 _ACEOF
4755 rm -f conftest.$ac_objext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4757   (eval $ac_compile) 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); } &&
4761          { ac_try='test -s conftest.$ac_objext'
4762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763   (eval $ac_try) 2>&5
4764   ac_status=$?
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); }; }; then
4767   ac_header_compiler=yes
4768 else
4769   echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 ac_header_compiler=no
4773 fi
4774 rm -f conftest.$ac_objext conftest.$ac_ext
4775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4776 echo "${ECHO_T}$ac_header_compiler" >&6
4777
4778 # Is the header present?
4779 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4781 cat >conftest.$ac_ext <<_ACEOF
4782 #line $LINENO "configure"
4783 /* confdefs.h.  */
4784 _ACEOF
4785 cat confdefs.h >>conftest.$ac_ext
4786 cat >>conftest.$ac_ext <<_ACEOF
4787 /* end confdefs.h.  */
4788 #include <$ac_header>
4789 _ACEOF
4790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4791   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4792   ac_status=$?
4793   grep -v '^ *+' conftest.er1 >conftest.err
4794   rm -f conftest.er1
4795   cat conftest.err >&5
4796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797   (exit $ac_status); } >/dev/null; then
4798   if test -s conftest.err; then
4799     ac_cpp_err=$ac_c_preproc_warn_flag
4800   else
4801     ac_cpp_err=
4802   fi
4803 else
4804   ac_cpp_err=yes
4805 fi
4806 if test -z "$ac_cpp_err"; then
4807   ac_header_preproc=yes
4808 else
4809   echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4811
4812   ac_header_preproc=no
4813 fi
4814 rm -f conftest.err conftest.$ac_ext
4815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4816 echo "${ECHO_T}$ac_header_preproc" >&6
4817
4818 # So?  What about this header?
4819 case $ac_header_compiler:$ac_header_preproc in
4820   yes:no )
4821     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4825     (
4826       cat <<\_ASBOX
4827 ## ------------------------------------ ##
4828 ## Report this to bug-autoconf@gnu.org. ##
4829 ## ------------------------------------ ##
4830 _ASBOX
4831     ) |
4832       sed "s/^/$as_me: WARNING:     /" >&2
4833     ;;
4834   no:yes )
4835     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4837     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4839     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4841     (
4842       cat <<\_ASBOX
4843 ## ------------------------------------ ##
4844 ## Report this to bug-autoconf@gnu.org. ##
4845 ## ------------------------------------ ##
4846 _ASBOX
4847     ) |
4848       sed "s/^/$as_me: WARNING:     /" >&2
4849     ;;
4850 esac
4851 echo "$as_me:$LINENO: checking for $ac_header" >&5
4852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   eval "$as_ac_Header=$ac_header_preproc"
4857 fi
4858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4860
4861 fi
4862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4863   cat >>confdefs.h <<_ACEOF
4864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4865 _ACEOF
4866
4867 fi
4868
4869 done
4870
4871 else
4872
4873         ac_widec_possible=no
4874         echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
4875 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
4876 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
4877   echo $ECHO_N "(cached) $ECHO_C" >&6
4878 else
4879   ac_check_lib_save_LIBS=$LIBS
4880 LIBS="-lncurses  $LIBS"
4881 cat >conftest.$ac_ext <<_ACEOF
4882 #line $LINENO "configure"
4883 /* confdefs.h.  */
4884 _ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h.  */
4888
4889 /* Override any gcc2 internal prototype to avoid an error.  */
4890 #ifdef __cplusplus
4891 extern "C"
4892 #endif
4893 /* We use char because int might match the return type of a gcc2
4894    builtin and then its argument prototype would still apply.  */
4895 char initscr ();
4896 int
4897 main ()
4898 {
4899 initscr ();
4900   ;
4901   return 0;
4902 }
4903 _ACEOF
4904 rm -f conftest.$ac_objext conftest$ac_exeext
4905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4906   (eval $ac_link) 2>&5
4907   ac_status=$?
4908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); } &&
4910          { ac_try='test -s conftest$ac_exeext'
4911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912   (eval $ac_try) 2>&5
4913   ac_status=$?
4914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); }; }; then
4916   ac_cv_lib_ncurses_initscr=yes
4917 else
4918   echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4920
4921 ac_cv_lib_ncurses_initscr=no
4922 fi
4923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4924 LIBS=$ac_check_lib_save_LIBS
4925 fi
4926 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
4927 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
4928 if test $ac_cv_lib_ncurses_initscr = yes; then
4929   LIBS="$LIBS -lncurses"
4930                 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
4931                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
4932                 fi
4933
4934 for ac_header in ncurses.h
4935 do
4936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4938   echo "$as_me:$LINENO: checking for $ac_header" >&5
4939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 fi
4943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4945 else
4946   # Is the header compilable?
4947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4949 cat >conftest.$ac_ext <<_ACEOF
4950 #line $LINENO "configure"
4951 /* confdefs.h.  */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h.  */
4956 $ac_includes_default
4957 #include <$ac_header>
4958 _ACEOF
4959 rm -f conftest.$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961   (eval $ac_compile) 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); } &&
4965          { ac_try='test -s conftest.$ac_objext'
4966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967   (eval $ac_try) 2>&5
4968   ac_status=$?
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); }; }; then
4971   ac_header_compiler=yes
4972 else
4973   echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 ac_header_compiler=no
4977 fi
4978 rm -f conftest.$ac_objext conftest.$ac_ext
4979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4980 echo "${ECHO_T}$ac_header_compiler" >&6
4981
4982 # Is the header present?
4983 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4985 cat >conftest.$ac_ext <<_ACEOF
4986 #line $LINENO "configure"
4987 /* confdefs.h.  */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h.  */
4992 #include <$ac_header>
4993 _ACEOF
4994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4996   ac_status=$?
4997   grep -v '^ *+' conftest.er1 >conftest.err
4998   rm -f conftest.er1
4999   cat conftest.err >&5
5000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001   (exit $ac_status); } >/dev/null; then
5002   if test -s conftest.err; then
5003     ac_cpp_err=$ac_c_preproc_warn_flag
5004   else
5005     ac_cpp_err=
5006   fi
5007 else
5008   ac_cpp_err=yes
5009 fi
5010 if test -z "$ac_cpp_err"; then
5011   ac_header_preproc=yes
5012 else
5013   echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5015
5016   ac_header_preproc=no
5017 fi
5018 rm -f conftest.err conftest.$ac_ext
5019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5020 echo "${ECHO_T}$ac_header_preproc" >&6
5021
5022 # So?  What about this header?
5023 case $ac_header_compiler:$ac_header_preproc in
5024   yes:no )
5025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5029     (
5030       cat <<\_ASBOX
5031 ## ------------------------------------ ##
5032 ## Report this to bug-autoconf@gnu.org. ##
5033 ## ------------------------------------ ##
5034 _ASBOX
5035     ) |
5036       sed "s/^/$as_me: WARNING:     /" >&2
5037     ;;
5038   no:yes )
5039     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5041     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5045     (
5046       cat <<\_ASBOX
5047 ## ------------------------------------ ##
5048 ## Report this to bug-autoconf@gnu.org. ##
5049 ## ------------------------------------ ##
5050 _ASBOX
5051     ) |
5052       sed "s/^/$as_me: WARNING:     /" >&2
5053     ;;
5054 esac
5055 echo "$as_me:$LINENO: checking for $ac_header" >&5
5056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5058   echo $ECHO_N "(cached) $ECHO_C" >&6
5059 else
5060   eval "$as_ac_Header=$ac_header_preproc"
5061 fi
5062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5064
5065 fi
5066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5067   cat >>confdefs.h <<_ACEOF
5068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5069 _ACEOF
5070
5071 fi
5072
5073 done
5074
5075 else
5076
5077 echo "$as_me:$LINENO: checking for initscr" >&5
5078 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5079 if test "${ac_cv_func_initscr+set}" = set; then
5080   echo $ECHO_N "(cached) $ECHO_C" >&6
5081 else
5082   cat >conftest.$ac_ext <<_ACEOF
5083 #line $LINENO "configure"
5084 /* confdefs.h.  */
5085 _ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h.  */
5089 /* System header to define __stub macros and hopefully few prototypes,
5090     which can conflict with char initscr (); below.
5091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5092     <limits.h> exists even on freestanding compilers.  */
5093 #ifdef __STDC__
5094 # include <limits.h>
5095 #else
5096 # include <assert.h>
5097 #endif
5098 /* Override any gcc2 internal prototype to avoid an error.  */
5099 #ifdef __cplusplus
5100 extern "C"
5101 {
5102 #endif
5103 /* We use char because int might match the return type of a gcc2
5104    builtin and then its argument prototype would still apply.  */
5105 char initscr ();
5106 /* The GNU C library defines this for functions which it implements
5107     to always fail with ENOSYS.  Some functions are actually named
5108     something starting with __ and the normal name is an alias.  */
5109 #if defined (__stub_initscr) || defined (__stub___initscr)
5110 choke me
5111 #else
5112 char (*f) () = initscr;
5113 #endif
5114 #ifdef __cplusplus
5115 }
5116 #endif
5117
5118 int
5119 main ()
5120 {
5121 return f != initscr;
5122   ;
5123   return 0;
5124 }
5125 _ACEOF
5126 rm -f conftest.$ac_objext conftest$ac_exeext
5127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5128   (eval $ac_link) 2>&5
5129   ac_status=$?
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); } &&
5132          { ac_try='test -s conftest$ac_exeext'
5133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134   (eval $ac_try) 2>&5
5135   ac_status=$?
5136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137   (exit $ac_status); }; }; then
5138   ac_cv_func_initscr=yes
5139 else
5140   echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5142
5143 ac_cv_func_initscr=no
5144 fi
5145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5146 fi
5147 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5148 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5149 if test $ac_cv_func_initscr = yes; then
5150   :
5151 else
5152
5153 case $host_os in #(vi
5154 freebsd*) #(vi
5155         echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
5156 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5157 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5158   echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160   ac_check_lib_save_LIBS=$LIBS
5161 LIBS="-lmytinfo  $LIBS"
5162 cat >conftest.$ac_ext <<_ACEOF
5163 #line $LINENO "configure"
5164 /* confdefs.h.  */
5165 _ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h.  */
5169
5170 /* Override any gcc2 internal prototype to avoid an error.  */
5171 #ifdef __cplusplus
5172 extern "C"
5173 #endif
5174 /* We use char because int might match the return type of a gcc2
5175    builtin and then its argument prototype would still apply.  */
5176 char tgoto ();
5177 int
5178 main ()
5179 {
5180 tgoto ();
5181   ;
5182   return 0;
5183 }
5184 _ACEOF
5185 rm -f conftest.$ac_objext conftest$ac_exeext
5186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5187   (eval $ac_link) 2>&5
5188   ac_status=$?
5189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190   (exit $ac_status); } &&
5191          { ac_try='test -s conftest$ac_exeext'
5192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193   (eval $ac_try) 2>&5
5194   ac_status=$?
5195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196   (exit $ac_status); }; }; then
5197   ac_cv_lib_mytinfo_tgoto=yes
5198 else
5199   echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5201
5202 ac_cv_lib_mytinfo_tgoto=no
5203 fi
5204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5205 LIBS=$ac_check_lib_save_LIBS
5206 fi
5207 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
5208 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5209 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5210   LIBS="-lmytinfo $LIBS"
5211 fi
5212
5213         ;;
5214 hpux10.*|hpux11.*)
5215         echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
5216 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5217 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5218   echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220   ac_check_lib_save_LIBS=$LIBS
5221 LIBS="-lcur_colr  $LIBS"
5222 cat >conftest.$ac_ext <<_ACEOF
5223 #line $LINENO "configure"
5224 /* confdefs.h.  */
5225 _ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h.  */
5229
5230 /* Override any gcc2 internal prototype to avoid an error.  */
5231 #ifdef __cplusplus
5232 extern "C"
5233 #endif
5234 /* We use char because int might match the return type of a gcc2
5235    builtin and then its argument prototype would still apply.  */
5236 char initscr ();
5237 int
5238 main ()
5239 {
5240 initscr ();
5241   ;
5242   return 0;
5243 }
5244 _ACEOF
5245 rm -f conftest.$ac_objext conftest$ac_exeext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5247   (eval $ac_link) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); } &&
5251          { ac_try='test -s conftest$ac_exeext'
5252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253   (eval $ac_try) 2>&5
5254   ac_status=$?
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); }; }; then
5257   ac_cv_lib_cur_colr_initscr=yes
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 ac_cv_lib_cur_colr_initscr=no
5263 fi
5264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5265 LIBS=$ac_check_lib_save_LIBS
5266 fi
5267 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
5268 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5269 if test $ac_cv_lib_cur_colr_initscr = yes; then
5270
5271                 LIBS="-lcur_colr $LIBS"
5272                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
5273                 ac_cv_func_initscr=yes
5274
5275 else
5276
5277         echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
5278 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5279 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282   ac_check_lib_save_LIBS=$LIBS
5283 LIBS="-lHcurses  $LIBS"
5284 cat >conftest.$ac_ext <<_ACEOF
5285 #line $LINENO "configure"
5286 /* confdefs.h.  */
5287 _ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h.  */
5291
5292 /* Override any gcc2 internal prototype to avoid an error.  */
5293 #ifdef __cplusplus
5294 extern "C"
5295 #endif
5296 /* We use char because int might match the return type of a gcc2
5297    builtin and then its argument prototype would still apply.  */
5298 char initscr ();
5299 int
5300 main ()
5301 {
5302 initscr ();
5303   ;
5304   return 0;
5305 }
5306 _ACEOF
5307 rm -f conftest.$ac_objext conftest$ac_exeext
5308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5309   (eval $ac_link) 2>&5
5310   ac_status=$?
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); } &&
5313          { ac_try='test -s conftest$ac_exeext'
5314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315   (eval $ac_try) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }; }; then
5319   ac_cv_lib_Hcurses_initscr=yes
5320 else
5321   echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5323
5324 ac_cv_lib_Hcurses_initscr=no
5325 fi
5326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5327 LIBS=$ac_check_lib_save_LIBS
5328 fi
5329 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
5330 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5331 if test $ac_cv_lib_Hcurses_initscr = yes; then
5332
5333                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5334                 LIBS="-lHcurses $LIBS"
5335                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
5336                 ac_cv_func_initscr=yes
5337
5338 fi
5339
5340 fi
5341
5342         ;;
5343 linux*) # Suse Linux does not follow /usr/lib convention
5344         LIBS="$LIBS -L/lib"
5345         ;;
5346 esac
5347
5348 if test ".$With5lib" != ".no" ; then
5349 if test -d /usr/5lib ; then
5350         # SunOS 3.x or 4.x
5351         CPPFLAGS="$CPPFLAGS -I/usr/5include"
5352         LIBS="$LIBS -L/usr/5lib"
5353 fi
5354 fi
5355
5356 if test ".$ac_cv_func_initscr" != .yes ; then
5357         cf_save_LIBS="$LIBS"
5358         cf_term_lib=""
5359         cf_curs_lib=""
5360
5361         # Check for library containing tgoto.  Do this before curses library
5362         # because it may be needed to link the test-case for initscr.
5363         echo "$as_me:$LINENO: checking for tgoto" >&5
5364 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5365 if test "${ac_cv_func_tgoto+set}" = set; then
5366   echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368   cat >conftest.$ac_ext <<_ACEOF
5369 #line $LINENO "configure"
5370 /* confdefs.h.  */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h.  */
5375 /* System header to define __stub macros and hopefully few prototypes,
5376     which can conflict with char tgoto (); below.
5377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5378     <limits.h> exists even on freestanding compilers.  */
5379 #ifdef __STDC__
5380 # include <limits.h>
5381 #else
5382 # include <assert.h>
5383 #endif
5384 /* Override any gcc2 internal prototype to avoid an error.  */
5385 #ifdef __cplusplus
5386 extern "C"
5387 {
5388 #endif
5389 /* We use char because int might match the return type of a gcc2
5390    builtin and then its argument prototype would still apply.  */
5391 char tgoto ();
5392 /* The GNU C library defines this for functions which it implements
5393     to always fail with ENOSYS.  Some functions are actually named
5394     something starting with __ and the normal name is an alias.  */
5395 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5396 choke me
5397 #else
5398 char (*f) () = tgoto;
5399 #endif
5400 #ifdef __cplusplus
5401 }
5402 #endif
5403
5404 int
5405 main ()
5406 {
5407 return f != tgoto;
5408   ;
5409   return 0;
5410 }
5411 _ACEOF
5412 rm -f conftest.$ac_objext conftest$ac_exeext
5413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5414   (eval $ac_link) 2>&5
5415   ac_status=$?
5416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417   (exit $ac_status); } &&
5418          { ac_try='test -s conftest$ac_exeext'
5419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420   (eval $ac_try) 2>&5
5421   ac_status=$?
5422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423   (exit $ac_status); }; }; then
5424   ac_cv_func_tgoto=yes
5425 else
5426   echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5428
5429 ac_cv_func_tgoto=no
5430 fi
5431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5432 fi
5433 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
5434 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5435 if test $ac_cv_func_tgoto = yes; then
5436   cf_term_lib=predefined
5437 else
5438
5439                 for cf_term_lib in termcap termlib unknown
5440                 do
5441                         as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5442 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
5443 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5444 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5445   echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447   ac_check_lib_save_LIBS=$LIBS
5448 LIBS="-l$cf_term_lib  $LIBS"
5449 cat >conftest.$ac_ext <<_ACEOF
5450 #line $LINENO "configure"
5451 /* confdefs.h.  */
5452 _ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h.  */
5456
5457 /* Override any gcc2 internal prototype to avoid an error.  */
5458 #ifdef __cplusplus
5459 extern "C"
5460 #endif
5461 /* We use char because int might match the return type of a gcc2
5462    builtin and then its argument prototype would still apply.  */
5463 char tgoto ();
5464 int
5465 main ()
5466 {
5467 tgoto ();
5468   ;
5469   return 0;
5470 }
5471 _ACEOF
5472 rm -f conftest.$ac_objext conftest$ac_exeext
5473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5474   (eval $ac_link) 2>&5
5475   ac_status=$?
5476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477   (exit $ac_status); } &&
5478          { ac_try='test -s conftest$ac_exeext'
5479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480   (eval $ac_try) 2>&5
5481   ac_status=$?
5482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483   (exit $ac_status); }; }; then
5484   eval "$as_ac_Lib=yes"
5485 else
5486   echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5488
5489 eval "$as_ac_Lib=no"
5490 fi
5491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5492 LIBS=$ac_check_lib_save_LIBS
5493 fi
5494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5495 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5496 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5497   break
5498 fi
5499
5500                 done
5501
5502 fi
5503
5504
5505         # Check for library containing initscr
5506         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5507         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
5508         do
5509                 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5510 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
5511 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5512 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5513   echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515   ac_check_lib_save_LIBS=$LIBS
5516 LIBS="-l$cf_curs_lib  $LIBS"
5517 cat >conftest.$ac_ext <<_ACEOF
5518 #line $LINENO "configure"
5519 /* confdefs.h.  */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h.  */
5524
5525 /* Override any gcc2 internal prototype to avoid an error.  */
5526 #ifdef __cplusplus
5527 extern "C"
5528 #endif
5529 /* We use char because int might match the return type of a gcc2
5530    builtin and then its argument prototype would still apply.  */
5531 char initscr ();
5532 int
5533 main ()
5534 {
5535 initscr ();
5536   ;
5537   return 0;
5538 }
5539 _ACEOF
5540 rm -f conftest.$ac_objext conftest$ac_exeext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5542   (eval $ac_link) 2>&5
5543   ac_status=$?
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); } &&
5546          { ac_try='test -s conftest$ac_exeext'
5547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548   (eval $ac_try) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); }; }; then
5552   eval "$as_ac_Lib=yes"
5553 else
5554   echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5556
5557 eval "$as_ac_Lib=no"
5558 fi
5559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5560 LIBS=$ac_check_lib_save_LIBS
5561 fi
5562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5563 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5564 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5565   break
5566 fi
5567
5568         done
5569         test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
5570 echo "$as_me: error: no curses library found" >&2;}
5571    { (exit 1); exit 1; }; }
5572
5573         LIBS="-l$cf_curs_lib $cf_save_LIBS"
5574         if test "$cf_term_lib" = unknown ; then
5575                 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
5576 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5577                 cat >conftest.$ac_ext <<_ACEOF
5578 #line $LINENO "configure"
5579 /* confdefs.h.  */
5580 _ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h.  */
5584 #include <${cf_cv_ncurses_header-curses.h}>
5585 int
5586 main ()
5587 {
5588 initscr()
5589   ;
5590   return 0;
5591 }
5592 _ACEOF
5593 rm -f conftest.$ac_objext conftest$ac_exeext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5595   (eval $ac_link) 2>&5
5596   ac_status=$?
5597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598   (exit $ac_status); } &&
5599          { ac_try='test -s conftest$ac_exeext'
5600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601   (eval $ac_try) 2>&5
5602   ac_status=$?
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); }; }; then
5605   cf_result=yes
5606 else
5607   echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5609
5610 cf_result=no
5611 fi
5612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5613                 echo "$as_me:$LINENO: result: $cf_result" >&5
5614 echo "${ECHO_T}$cf_result" >&6
5615                 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
5616 echo "$as_me: error: Cannot link curses library" >&2;}
5617    { (exit 1); exit 1; }; }
5618         elif test "$cf_term_lib" != predefined ; then
5619                 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5620 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5621                 cat >conftest.$ac_ext <<_ACEOF
5622 #line $LINENO "configure"
5623 /* confdefs.h.  */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h.  */
5628 #include <${cf_cv_ncurses_header-curses.h}>
5629 int
5630 main ()
5631 {
5632 initscr(); tgoto((char *)0, 0, 0);
5633   ;
5634   return 0;
5635 }
5636 _ACEOF
5637 rm -f conftest.$ac_objext conftest$ac_exeext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5639   (eval $ac_link) 2>&5
5640   ac_status=$?
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); } &&
5643          { ac_try='test -s conftest$ac_exeext'
5644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645   (eval $ac_try) 2>&5
5646   ac_status=$?
5647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648   (exit $ac_status); }; }; then
5649   cf_result=no
5650 else
5651   echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5653
5654
5655                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5656                         cat >conftest.$ac_ext <<_ACEOF
5657 #line $LINENO "configure"
5658 /* confdefs.h.  */
5659 _ACEOF
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h.  */
5663 #include <${cf_cv_ncurses_header-curses.h}>
5664 int
5665 main ()
5666 {
5667 initscr()
5668   ;
5669   return 0;
5670 }
5671 _ACEOF
5672 rm -f conftest.$ac_objext conftest$ac_exeext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5674   (eval $ac_link) 2>&5
5675   ac_status=$?
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); } &&
5678          { ac_try='test -s conftest$ac_exeext'
5679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680   (eval $ac_try) 2>&5
5681   ac_status=$?
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); }; }; then
5684   cf_result=yes
5685 else
5686   echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5688
5689 cf_result=error
5690 fi
5691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5692
5693 fi
5694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5695                 echo "$as_me:$LINENO: result: $cf_result" >&5
5696 echo "${ECHO_T}$cf_result" >&6
5697         fi
5698 fi
5699
5700
5701 fi
5702
5703 fi
5704
5705
5706 fi
5707
5708
5709
5710
5711 abook_cv_readline=/usr
5712
5713 # Check whether --with-readline or --without-readline was given.
5714 if test "${with_readline+set}" = set; then
5715   withval="$with_readline"
5716   if test $withval != yes; then
5717                 abook_cv_readline=$withval
5718         fi
5719         if test x$abook_cv_readline != x/usr; then
5720                 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
5721                 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
5722         fi
5723 fi;
5724
5725
5726   echo "$as_me:$LINENO: checking for a readline compatible library" >&5
5727 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
5728 if test "${ac_cv_lib_readline+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731
5732     ORIG_LIBS="$LIBS"
5733     for readline_lib in readline edit editline; do
5734       for termcap_lib in "" termcap curses ncurses; do
5735         if test -z "$termcap_lib"; then
5736           TRY_LIB="-l$readline_lib"
5737         else
5738           TRY_LIB="-l$readline_lib -l$termcap_lib"
5739         fi
5740         LIBS="$ORIG_LIBS $TRY_LIB"
5741         cat >conftest.$ac_ext <<_ACEOF
5742 #line $LINENO "configure"
5743 /* confdefs.h.  */
5744 _ACEOF
5745 cat confdefs.h >>conftest.$ac_ext
5746 cat >>conftest.$ac_ext <<_ACEOF
5747 /* end confdefs.h.  */
5748
5749 /* Override any gcc2 internal prototype to avoid an error.  */
5750 #ifdef __cplusplus
5751 extern "C"
5752 #endif
5753 /* We use char because int might match the return type of a gcc2
5754    builtin and then its argument prototype would still apply.  */
5755 char readline ();
5756 int
5757 main ()
5758 {
5759 readline ();
5760   ;
5761   return 0;
5762 }
5763 _ACEOF
5764 rm -f conftest.$ac_objext conftest$ac_exeext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5766   (eval $ac_link) 2>&5
5767   ac_status=$?
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); } &&
5770          { ac_try='test -s conftest$ac_exeext'
5771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772   (eval $ac_try) 2>&5
5773   ac_status=$?
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); }; }; then
5776   ac_cv_lib_readline="$TRY_LIB"
5777 else
5778   echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.$ac_ext >&5
5780
5781 fi
5782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5783         if test -n "$ac_cv_lib_readline"; then
5784           break
5785         fi
5786       done
5787       if test -n "$ac_cv_lib_readline"; then
5788         break
5789       fi
5790     done
5791     if test -z "$ac_cv_lib_readline"; then
5792       ac_cv_lib_readline="no"
5793     fi
5794     LIBS="$ORIG_LIBS"
5795
5796 fi
5797 echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
5798 echo "${ECHO_T}$ac_cv_lib_readline" >&6
5799
5800   if test "$ac_cv_lib_readline" != "no"; then
5801     LIBS="$LIBS $ac_cv_lib_readline"
5802
5803 cat >>confdefs.h <<\_ACEOF
5804 #define HAVE_LIBREADLINE 1
5805 _ACEOF
5806
5807
5808
5809 for ac_header in readline.h readline/readline.h
5810 do
5811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5813   echo "$as_me:$LINENO: checking for $ac_header" >&5
5814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 fi
5818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5820 else
5821   # Is the header compilable?
5822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5824 cat >conftest.$ac_ext <<_ACEOF
5825 #line $LINENO "configure"
5826 /* confdefs.h.  */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h.  */
5831 $ac_includes_default
5832 #include <$ac_header>
5833 _ACEOF
5834 rm -f conftest.$ac_objext
5835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5836   (eval $ac_compile) 2>&5
5837   ac_status=$?
5838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); } &&
5840          { ac_try='test -s conftest.$ac_objext'
5841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842   (eval $ac_try) 2>&5
5843   ac_status=$?
5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); }; }; then
5846   ac_header_compiler=yes
5847 else
5848   echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5850
5851 ac_header_compiler=no
5852 fi
5853 rm -f conftest.$ac_objext conftest.$ac_ext
5854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5855 echo "${ECHO_T}$ac_header_compiler" >&6
5856
5857 # Is the header present?
5858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5860 cat >conftest.$ac_ext <<_ACEOF
5861 #line $LINENO "configure"
5862 /* confdefs.h.  */
5863 _ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h.  */
5867 #include <$ac_header>
5868 _ACEOF
5869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5870   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5871   ac_status=$?
5872   grep -v '^ *+' conftest.er1 >conftest.err
5873   rm -f conftest.er1
5874   cat conftest.err >&5
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); } >/dev/null; then
5877   if test -s conftest.err; then
5878     ac_cpp_err=$ac_c_preproc_warn_flag
5879   else
5880     ac_cpp_err=
5881   fi
5882 else
5883   ac_cpp_err=yes
5884 fi
5885 if test -z "$ac_cpp_err"; then
5886   ac_header_preproc=yes
5887 else
5888   echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5890
5891   ac_header_preproc=no
5892 fi
5893 rm -f conftest.err conftest.$ac_ext
5894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5895 echo "${ECHO_T}$ac_header_preproc" >&6
5896
5897 # So?  What about this header?
5898 case $ac_header_compiler:$ac_header_preproc in
5899   yes:no )
5900     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5904     (
5905       cat <<\_ASBOX
5906 ## ------------------------------------ ##
5907 ## Report this to bug-autoconf@gnu.org. ##
5908 ## ------------------------------------ ##
5909 _ASBOX
5910     ) |
5911       sed "s/^/$as_me: WARNING:     /" >&2
5912     ;;
5913   no:yes )
5914     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5916     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5920     (
5921       cat <<\_ASBOX
5922 ## ------------------------------------ ##
5923 ## Report this to bug-autoconf@gnu.org. ##
5924 ## ------------------------------------ ##
5925 _ASBOX
5926     ) |
5927       sed "s/^/$as_me: WARNING:     /" >&2
5928     ;;
5929 esac
5930 echo "$as_me:$LINENO: checking for $ac_header" >&5
5931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5933   echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935   eval "$as_ac_Header=$ac_header_preproc"
5936 fi
5937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5939
5940 fi
5941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5942   cat >>confdefs.h <<_ACEOF
5943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5944 _ACEOF
5945
5946 fi
5947
5948 done
5949
5950     echo "$as_me:$LINENO: checking whether readline supports history" >&5
5951 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
5952 if test "${ac_cv_lib_readline_history+set}" = set; then
5953   echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955
5956       ac_cv_lib_readline_history="no"
5957       cat >conftest.$ac_ext <<_ACEOF
5958 #line $LINENO "configure"
5959 /* confdefs.h.  */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h.  */
5964
5965 /* Override any gcc2 internal prototype to avoid an error.  */
5966 #ifdef __cplusplus
5967 extern "C"
5968 #endif
5969 /* We use char because int might match the return type of a gcc2
5970    builtin and then its argument prototype would still apply.  */
5971 char add_history ();
5972 int
5973 main ()
5974 {
5975 add_history ();
5976   ;
5977   return 0;
5978 }
5979 _ACEOF
5980 rm -f conftest.$ac_objext conftest$ac_exeext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5982   (eval $ac_link) 2>&5
5983   ac_status=$?
5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985   (exit $ac_status); } &&
5986          { ac_try='test -s conftest$ac_exeext'
5987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988   (eval $ac_try) 2>&5
5989   ac_status=$?
5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); }; }; then
5992   ac_cv_lib_readline_history="yes"
5993 else
5994   echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5996
5997 fi
5998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5999
6000 fi
6001 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
6002 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6
6003     if test "$ac_cv_lib_readline_history" = "yes"; then
6004
6005 cat >>confdefs.h <<\_ACEOF
6006 #define HAVE_READLINE_HISTORY 1
6007 _ACEOF
6008
6009
6010
6011 for ac_header in history.h readline/history.h
6012 do
6013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6015   echo "$as_me:$LINENO: checking for $ac_header" >&5
6016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6018   echo $ECHO_N "(cached) $ECHO_C" >&6
6019 fi
6020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6022 else
6023   # Is the header compilable?
6024 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6026 cat >conftest.$ac_ext <<_ACEOF
6027 #line $LINENO "configure"
6028 /* confdefs.h.  */
6029 _ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h.  */
6033 $ac_includes_default
6034 #include <$ac_header>
6035 _ACEOF
6036 rm -f conftest.$ac_objext
6037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6038   (eval $ac_compile) 2>&5
6039   ac_status=$?
6040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041   (exit $ac_status); } &&
6042          { ac_try='test -s conftest.$ac_objext'
6043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044   (eval $ac_try) 2>&5
6045   ac_status=$?
6046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047   (exit $ac_status); }; }; then
6048   ac_header_compiler=yes
6049 else
6050   echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6052
6053 ac_header_compiler=no
6054 fi
6055 rm -f conftest.$ac_objext conftest.$ac_ext
6056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6057 echo "${ECHO_T}$ac_header_compiler" >&6
6058
6059 # Is the header present?
6060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6062 cat >conftest.$ac_ext <<_ACEOF
6063 #line $LINENO "configure"
6064 /* confdefs.h.  */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h.  */
6069 #include <$ac_header>
6070 _ACEOF
6071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6072   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6073   ac_status=$?
6074   grep -v '^ *+' conftest.er1 >conftest.err
6075   rm -f conftest.er1
6076   cat conftest.err >&5
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); } >/dev/null; then
6079   if test -s conftest.err; then
6080     ac_cpp_err=$ac_c_preproc_warn_flag
6081   else
6082     ac_cpp_err=
6083   fi
6084 else
6085   ac_cpp_err=yes
6086 fi
6087 if test -z "$ac_cpp_err"; then
6088   ac_header_preproc=yes
6089 else
6090   echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6092
6093   ac_header_preproc=no
6094 fi
6095 rm -f conftest.err conftest.$ac_ext
6096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6097 echo "${ECHO_T}$ac_header_preproc" >&6
6098
6099 # So?  What about this header?
6100 case $ac_header_compiler:$ac_header_preproc in
6101   yes:no )
6102     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6104     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6106     (
6107       cat <<\_ASBOX
6108 ## ------------------------------------ ##
6109 ## Report this to bug-autoconf@gnu.org. ##
6110 ## ------------------------------------ ##
6111 _ASBOX
6112     ) |
6113       sed "s/^/$as_me: WARNING:     /" >&2
6114     ;;
6115   no:yes )
6116     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6118     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6120     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6122     (
6123       cat <<\_ASBOX
6124 ## ------------------------------------ ##
6125 ## Report this to bug-autoconf@gnu.org. ##
6126 ## ------------------------------------ ##
6127 _ASBOX
6128     ) |
6129       sed "s/^/$as_me: WARNING:     /" >&2
6130     ;;
6131 esac
6132 echo "$as_me:$LINENO: checking for $ac_header" >&5
6133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6135   echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137   eval "$as_ac_Header=$ac_header_preproc"
6138 fi
6139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6141
6142 fi
6143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6144   cat >>confdefs.h <<_ACEOF
6145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6146 _ACEOF
6147
6148 fi
6149
6150 done
6151
6152     fi
6153   fi
6154
6155
6156
6157 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
6158         { { echo "$as_me:$LINENO: error: *** readline library not found or it doesn't support history ***" >&5
6159 echo "$as_me: error: *** readline library not found or it doesn't support history ***" >&2;}
6160    { (exit 1); exit 1; }; }
6161 fi
6162
6163
6164 if test x$ac_widec_possible = xyes; then
6165
6166 cat >>confdefs.h <<\_ACEOF
6167 #define HANDLE_MULTIBYTE 1
6168 _ACEOF
6169
6170 fi
6171
6172
6173 for ac_func in resizeterm
6174 do
6175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6176 echo "$as_me:$LINENO: checking for $ac_func" >&5
6177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6178 if eval "test \"\${$as_ac_var+set}\" = set"; then
6179   echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181   cat >conftest.$ac_ext <<_ACEOF
6182 #line $LINENO "configure"
6183 /* confdefs.h.  */
6184 _ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h.  */
6188 /* System header to define __stub macros and hopefully few prototypes,
6189     which can conflict with char $ac_func (); below.
6190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6191     <limits.h> exists even on freestanding compilers.  */
6192 #ifdef __STDC__
6193 # include <limits.h>
6194 #else
6195 # include <assert.h>
6196 #endif
6197 /* Override any gcc2 internal prototype to avoid an error.  */
6198 #ifdef __cplusplus
6199 extern "C"
6200 {
6201 #endif
6202 /* We use char because int might match the return type of a gcc2
6203    builtin and then its argument prototype would still apply.  */
6204 char $ac_func ();
6205 /* The GNU C library defines this for functions which it implements
6206     to always fail with ENOSYS.  Some functions are actually named
6207     something starting with __ and the normal name is an alias.  */
6208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6209 choke me
6210 #else
6211 char (*f) () = $ac_func;
6212 #endif
6213 #ifdef __cplusplus
6214 }
6215 #endif
6216
6217 int
6218 main ()
6219 {
6220 return f != $ac_func;
6221   ;
6222   return 0;
6223 }
6224 _ACEOF
6225 rm -f conftest.$ac_objext conftest$ac_exeext
6226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6227   (eval $ac_link) 2>&5
6228   ac_status=$?
6229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230   (exit $ac_status); } &&
6231          { ac_try='test -s conftest$ac_exeext'
6232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233   (eval $ac_try) 2>&5
6234   ac_status=$?
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); }; }; then
6237   eval "$as_ac_var=yes"
6238 else
6239   echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6241
6242 eval "$as_ac_var=no"
6243 fi
6244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6245 fi
6246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6248 if test `eval echo '${'$as_ac_var'}'` = yes; then
6249   cat >>confdefs.h <<_ACEOF
6250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6251 _ACEOF
6252
6253 fi
6254 done
6255
6256
6257
6258
6259 for ac_func in snprintf vsnprintf
6260 do
6261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6262 echo "$as_me:$LINENO: checking for $ac_func" >&5
6263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6264 if eval "test \"\${$as_ac_var+set}\" = set"; then
6265   echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267   cat >conftest.$ac_ext <<_ACEOF
6268 #line $LINENO "configure"
6269 /* confdefs.h.  */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h.  */
6274 /* System header to define __stub macros and hopefully few prototypes,
6275     which can conflict with char $ac_func (); below.
6276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6277     <limits.h> exists even on freestanding compilers.  */
6278 #ifdef __STDC__
6279 # include <limits.h>
6280 #else
6281 # include <assert.h>
6282 #endif
6283 /* Override any gcc2 internal prototype to avoid an error.  */
6284 #ifdef __cplusplus
6285 extern "C"
6286 {
6287 #endif
6288 /* We use char because int might match the return type of a gcc2
6289    builtin and then its argument prototype would still apply.  */
6290 char $ac_func ();
6291 /* The GNU C library defines this for functions which it implements
6292     to always fail with ENOSYS.  Some functions are actually named
6293     something starting with __ and the normal name is an alias.  */
6294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6295 choke me
6296 #else
6297 char (*f) () = $ac_func;
6298 #endif
6299 #ifdef __cplusplus
6300 }
6301 #endif
6302
6303 int
6304 main ()
6305 {
6306 return f != $ac_func;
6307   ;
6308   return 0;
6309 }
6310 _ACEOF
6311 rm -f conftest.$ac_objext conftest$ac_exeext
6312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6313   (eval $ac_link) 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); } &&
6317          { ac_try='test -s conftest$ac_exeext'
6318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319   (eval $ac_try) 2>&5
6320   ac_status=$?
6321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322   (exit $ac_status); }; }; then
6323   eval "$as_ac_var=yes"
6324 else
6325   echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6327
6328 eval "$as_ac_var=no"
6329 fi
6330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6331 fi
6332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6333 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6334 if test `eval echo '${'$as_ac_var'}'` = yes; then
6335   cat >>confdefs.h <<_ACEOF
6336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6337 _ACEOF
6338
6339 fi
6340 done
6341
6342
6343 # Check whether --enable-debug or --disable-debug was given.
6344 if test "${enable_debug+set}" = set; then
6345   enableval="$enable_debug"
6346   case "${enableval}" in
6347         yes) debug=true ;;
6348         no) debug=false ;;
6349         *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
6350 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
6351    { (exit 1); exit 1; }; } ;;
6352         esac
6353 else
6354   debug=false
6355 fi;
6356
6357 if test x$debug = xtrue; then
6358         CPPFLAGS="-DDEBUG $CPPFLAGS"
6359         CFLAGS="-g $CFLAGS"
6360 fi
6361
6362 if test x$GCC = xyes; then
6363         CFLAGS="-Wall $CFLAGS"
6364 fi
6365
6366                     ac_config_files="$ac_config_files Makefile abook.spec"
6367 cat >confcache <<\_ACEOF
6368 # This file is a shell script that caches the results of configure
6369 # tests run on this system so they can be shared between configure
6370 # scripts and configure runs, see configure's option --config-cache.
6371 # It is not useful on other systems.  If it contains results you don't
6372 # want to keep, you may remove or edit it.
6373 #
6374 # config.status only pays attention to the cache file if you give it
6375 # the --recheck option to rerun configure.
6376 #
6377 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6378 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6379 # following values.
6380
6381 _ACEOF
6382
6383 # The following way of writing the cache mishandles newlines in values,
6384 # but we know of no workaround that is simple, portable, and efficient.
6385 # So, don't put newlines in cache variables' values.
6386 # Ultrix sh set writes to stderr and can't be redirected directly,
6387 # and sets the high bit in the cache file unless we assign to the vars.
6388 {
6389   (set) 2>&1 |
6390     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6391     *ac_space=\ *)
6392       # `set' does not quote correctly, so add quotes (double-quote
6393       # substitution turns \\\\ into \\, and sed turns \\ into \).
6394       sed -n \
6395         "s/'/'\\\\''/g;
6396           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6397       ;;
6398     *)
6399       # `set' quotes correctly as required by POSIX, so do not add quotes.
6400       sed -n \
6401         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6402       ;;
6403     esac;
6404 } |
6405   sed '
6406      t clear
6407      : clear
6408      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6409      t end
6410      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6411      : end' >>confcache
6412 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6413   if test -w $cache_file; then
6414     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6415     cat confcache >$cache_file
6416   else
6417     echo "not updating unwritable cache $cache_file"
6418   fi
6419 fi
6420 rm -f confcache
6421
6422 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6423 # Let make expand exec_prefix.
6424 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6425
6426 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6427 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6428 # trailing colons and then remove the whole line if VPATH becomes empty
6429 # (actually we leave an empty line to preserve line numbers).
6430 if test "x$srcdir" = x.; then
6431   ac_vpsub='/^[         ]*VPATH[        ]*=/{
6432 s/:*\$(srcdir):*/:/;
6433 s/:*\${srcdir}:*/:/;
6434 s/:*@srcdir@:*/:/;
6435 s/^\([^=]*=[    ]*\):*/\1/;
6436 s/:*$//;
6437 s/^[^=]*=[      ]*$//;
6438 }'
6439 fi
6440
6441 DEFS=-DHAVE_CONFIG_H
6442
6443 ac_libobjs=
6444 ac_ltlibobjs=
6445 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6446   # 1. Remove the extension, and $U if already installed.
6447   ac_i=`echo "$ac_i" |
6448          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6449   # 2. Add them.
6450   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6451   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6452 done
6453 LIBOBJS=$ac_libobjs
6454
6455 LTLIBOBJS=$ac_ltlibobjs
6456
6457
6458 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6459   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6460 Usually this means the macro was only invoked conditionally." >&5
6461 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6462 Usually this means the macro was only invoked conditionally." >&2;}
6463    { (exit 1); exit 1; }; }
6464 fi
6465 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6466   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6467 Usually this means the macro was only invoked conditionally." >&5
6468 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6469 Usually this means the macro was only invoked conditionally." >&2;}
6470    { (exit 1); exit 1; }; }
6471 fi
6472
6473 : ${CONFIG_STATUS=./config.status}
6474 ac_clean_files_save=$ac_clean_files
6475 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6476 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6477 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6478 cat >$CONFIG_STATUS <<_ACEOF
6479 #! $SHELL
6480 # Generated by $as_me.
6481 # Run this file to recreate the current configuration.
6482 # Compiler output produced by configure, useful for debugging
6483 # configure, is in config.log if it exists.
6484
6485 debug=false
6486 ac_cs_recheck=false
6487 ac_cs_silent=false
6488 SHELL=\${CONFIG_SHELL-$SHELL}
6489 _ACEOF
6490
6491 cat >>$CONFIG_STATUS <<\_ACEOF
6492 ## --------------------- ##
6493 ## M4sh Initialization.  ##
6494 ## --------------------- ##
6495
6496 # Be Bourne compatible
6497 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6498   emulate sh
6499   NULLCMD=:
6500   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6501   # is contrary to our usage.  Disable this feature.
6502   alias -g '${1+"$@"}'='"$@"'
6503 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6504   set -o posix
6505 fi
6506
6507 # Support unset when possible.
6508 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6509   as_unset=unset
6510 else
6511   as_unset=false
6512 fi
6513
6514
6515 # Work around bugs in pre-3.0 UWIN ksh.
6516 $as_unset ENV MAIL MAILPATH
6517 PS1='$ '
6518 PS2='> '
6519 PS4='+ '
6520
6521 # NLS nuisances.
6522 for as_var in \
6523   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6524   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6525   LC_TELEPHONE LC_TIME
6526 do
6527   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6528     eval $as_var=C; export $as_var
6529   else
6530     $as_unset $as_var
6531   fi
6532 done
6533
6534 # Required to use basename.
6535 if expr a : '\(a\)' >/dev/null 2>&1; then
6536   as_expr=expr
6537 else
6538   as_expr=false
6539 fi
6540
6541 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6542   as_basename=basename
6543 else
6544   as_basename=false
6545 fi
6546
6547
6548 # Name of the executable.
6549 as_me=`$as_basename "$0" ||
6550 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6551          X"$0" : 'X\(//\)$' \| \
6552          X"$0" : 'X\(/\)$' \| \
6553          .     : '\(.\)' 2>/dev/null ||
6554 echo X/"$0" |
6555     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6556           /^X\/\(\/\/\)$/{ s//\1/; q; }
6557           /^X\/\(\/\).*/{ s//\1/; q; }
6558           s/.*/./; q'`
6559
6560
6561 # PATH needs CR, and LINENO needs CR and PATH.
6562 # Avoid depending upon Character Ranges.
6563 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6564 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6565 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6566 as_cr_digits='0123456789'
6567 as_cr_alnum=$as_cr_Letters$as_cr_digits
6568
6569 # The user is always right.
6570 if test "${PATH_SEPARATOR+set}" != set; then
6571   echo "#! /bin/sh" >conf$$.sh
6572   echo  "exit 0"   >>conf$$.sh
6573   chmod +x conf$$.sh
6574   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6575     PATH_SEPARATOR=';'
6576   else
6577     PATH_SEPARATOR=:
6578   fi
6579   rm -f conf$$.sh
6580 fi
6581
6582
6583   as_lineno_1=$LINENO
6584   as_lineno_2=$LINENO
6585   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6586   test "x$as_lineno_1" != "x$as_lineno_2" &&
6587   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6588   # Find who we are.  Look in the path if we contain no path at all
6589   # relative or not.
6590   case $0 in
6591     *[\\/]* ) as_myself=$0 ;;
6592     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6594 do
6595   IFS=$as_save_IFS
6596   test -z "$as_dir" && as_dir=.
6597   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6598 done
6599
6600        ;;
6601   esac
6602   # We did not find ourselves, most probably we were run as `sh COMMAND'
6603   # in which case we are not to be found in the path.
6604   if test "x$as_myself" = x; then
6605     as_myself=$0
6606   fi
6607   if test ! -f "$as_myself"; then
6608     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6609 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6610    { (exit 1); exit 1; }; }
6611   fi
6612   case $CONFIG_SHELL in
6613   '')
6614     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6616 do
6617   IFS=$as_save_IFS
6618   test -z "$as_dir" && as_dir=.
6619   for as_base in sh bash ksh sh5; do
6620          case $as_dir in
6621          /*)
6622            if ("$as_dir/$as_base" -c '
6623   as_lineno_1=$LINENO
6624   as_lineno_2=$LINENO
6625   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6626   test "x$as_lineno_1" != "x$as_lineno_2" &&
6627   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6628              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6629              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6630              CONFIG_SHELL=$as_dir/$as_base
6631              export CONFIG_SHELL
6632              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6633            fi;;
6634          esac
6635        done
6636 done
6637 ;;
6638   esac
6639
6640   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6641   # uniformly replaced by the line number.  The first 'sed' inserts a
6642   # line-number line before each line; the second 'sed' does the real
6643   # work.  The second script uses 'N' to pair each line-number line
6644   # with the numbered line, and appends trailing '-' during
6645   # substitution so that $LINENO is not a special case at line end.
6646   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6647   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6648   sed '=' <$as_myself |
6649     sed '
6650       N
6651       s,$,-,
6652       : loop
6653       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6654       t loop
6655       s,-$,,
6656       s,^['$as_cr_digits']*\n,,
6657     ' >$as_me.lineno &&
6658   chmod +x $as_me.lineno ||
6659     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6660 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6661    { (exit 1); exit 1; }; }
6662
6663   # Don't try to exec as it changes $[0], causing all sort of problems
6664   # (the dirname of $[0] is not the place where we might find the
6665   # original and so on.  Autoconf is especially sensible to this).
6666   . ./$as_me.lineno
6667   # Exit status is that of the last command.
6668   exit
6669 }
6670
6671
6672 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6673   *c*,-n*) ECHO_N= ECHO_C='
6674 ' ECHO_T='      ' ;;
6675   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6676   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6677 esac
6678
6679 if expr a : '\(a\)' >/dev/null 2>&1; then
6680   as_expr=expr
6681 else
6682   as_expr=false
6683 fi
6684
6685 rm -f conf$$ conf$$.exe conf$$.file
6686 echo >conf$$.file
6687 if ln -s conf$$.file conf$$ 2>/dev/null; then
6688   # We could just check for DJGPP; but this test a) works b) is more generic
6689   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6690   if test -f conf$$.exe; then
6691     # Don't use ln at all; we don't have any links
6692     as_ln_s='cp -p'
6693   else
6694     as_ln_s='ln -s'
6695   fi
6696 elif ln conf$$.file conf$$ 2>/dev/null; then
6697   as_ln_s=ln
6698 else
6699   as_ln_s='cp -p'
6700 fi
6701 rm -f conf$$ conf$$.exe conf$$.file
6702
6703 if mkdir -p . 2>/dev/null; then
6704   as_mkdir_p=:
6705 else
6706   as_mkdir_p=false
6707 fi
6708
6709 as_executable_p="test -f"
6710
6711 # Sed expression to map a string onto a valid CPP name.
6712 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6713
6714 # Sed expression to map a string onto a valid variable name.
6715 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6716
6717
6718 # IFS
6719 # We need space, tab and new line, in precisely that order.
6720 as_nl='
6721 '
6722 IFS="   $as_nl"
6723
6724 # CDPATH.
6725 $as_unset CDPATH
6726
6727 exec 6>&1
6728
6729 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6730 # report actual input values of CONFIG_FILES etc. instead of their
6731 # values after options handling.  Logging --version etc. is OK.
6732 exec 5>>config.log
6733 {
6734   echo
6735   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6736 ## Running $as_me. ##
6737 _ASBOX
6738 } >&5
6739 cat >&5 <<_CSEOF
6740
6741 This file was extended by $as_me, which was
6742 generated by GNU Autoconf 2.57.  Invocation command line was
6743
6744   CONFIG_FILES    = $CONFIG_FILES
6745   CONFIG_HEADERS  = $CONFIG_HEADERS
6746   CONFIG_LINKS    = $CONFIG_LINKS
6747   CONFIG_COMMANDS = $CONFIG_COMMANDS
6748   $ $0 $@
6749
6750 _CSEOF
6751 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6752 echo >&5
6753 _ACEOF
6754
6755 # Files that config.status was made for.
6756 if test -n "$ac_config_files"; then
6757   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6758 fi
6759
6760 if test -n "$ac_config_headers"; then
6761   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6762 fi
6763
6764 if test -n "$ac_config_links"; then
6765   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6766 fi
6767
6768 if test -n "$ac_config_commands"; then
6769   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6770 fi
6771
6772 cat >>$CONFIG_STATUS <<\_ACEOF
6773
6774 ac_cs_usage="\
6775 \`$as_me' instantiates files from templates according to the
6776 current configuration.
6777
6778 Usage: $0 [OPTIONS] [FILE]...
6779
6780   -h, --help       print this help, then exit
6781   -V, --version    print version number, then exit
6782   -q, --quiet      do not print progress messages
6783   -d, --debug      don't remove temporary files
6784       --recheck    update $as_me by reconfiguring in the same conditions
6785   --file=FILE[:TEMPLATE]
6786                    instantiate the configuration file FILE
6787   --header=FILE[:TEMPLATE]
6788                    instantiate the configuration header FILE
6789
6790 Configuration files:
6791 $config_files
6792
6793 Configuration headers:
6794 $config_headers
6795
6796 Configuration commands:
6797 $config_commands
6798
6799 Report bugs to <bug-autoconf@gnu.org>."
6800 _ACEOF
6801
6802 cat >>$CONFIG_STATUS <<_ACEOF
6803 ac_cs_version="\\
6804 config.status
6805 configured by $0, generated by GNU Autoconf 2.57,
6806   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6807
6808 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6809 Free Software Foundation, Inc.
6810 This config.status script is free software; the Free Software Foundation
6811 gives unlimited permission to copy, distribute and modify it."
6812 srcdir=$srcdir
6813 INSTALL="$INSTALL"
6814 _ACEOF
6815
6816 cat >>$CONFIG_STATUS <<\_ACEOF
6817 # If no file are specified by the user, then we need to provide default
6818 # value.  By we need to know if files were specified by the user.
6819 ac_need_defaults=:
6820 while test $# != 0
6821 do
6822   case $1 in
6823   --*=*)
6824     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6825     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6826     ac_shift=:
6827     ;;
6828   -*)
6829     ac_option=$1
6830     ac_optarg=$2
6831     ac_shift=shift
6832     ;;
6833   *) # This is not an option, so the user has probably given explicit
6834      # arguments.
6835      ac_option=$1
6836      ac_need_defaults=false;;
6837   esac
6838
6839   case $ac_option in
6840   # Handling of the options.
6841 _ACEOF
6842 cat >>$CONFIG_STATUS <<\_ACEOF
6843   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6844     ac_cs_recheck=: ;;
6845   --version | --vers* | -V )
6846     echo "$ac_cs_version"; exit 0 ;;
6847   --he | --h)
6848     # Conflict between --help and --header
6849     { { echo "$as_me:$LINENO: error: ambiguous option: $1
6850 Try \`$0 --help' for more information." >&5
6851 echo "$as_me: error: ambiguous option: $1
6852 Try \`$0 --help' for more information." >&2;}
6853    { (exit 1); exit 1; }; };;
6854   --help | --hel | -h )
6855     echo "$ac_cs_usage"; exit 0 ;;
6856   --debug | --d* | -d )
6857     debug=: ;;
6858   --file | --fil | --fi | --f )
6859     $ac_shift
6860     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6861     ac_need_defaults=false;;
6862   --header | --heade | --head | --hea )
6863     $ac_shift
6864     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6865     ac_need_defaults=false;;
6866   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6867   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6868     ac_cs_silent=: ;;
6869
6870   # This is an error.
6871   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6872 Try \`$0 --help' for more information." >&5
6873 echo "$as_me: error: unrecognized option: $1
6874 Try \`$0 --help' for more information." >&2;}
6875    { (exit 1); exit 1; }; } ;;
6876
6877   *) ac_config_targets="$ac_config_targets $1" ;;
6878
6879   esac
6880   shift
6881 done
6882
6883 ac_configure_extra_args=
6884
6885 if $ac_cs_silent; then
6886   exec 6>/dev/null
6887   ac_configure_extra_args="$ac_configure_extra_args --silent"
6888 fi
6889
6890 _ACEOF
6891 cat >>$CONFIG_STATUS <<_ACEOF
6892 if \$ac_cs_recheck; then
6893   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6894   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6895 fi
6896
6897 _ACEOF
6898
6899 cat >>$CONFIG_STATUS <<_ACEOF
6900 #
6901 # INIT-COMMANDS section.
6902 #
6903
6904 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6905
6906 _ACEOF
6907
6908
6909
6910 cat >>$CONFIG_STATUS <<\_ACEOF
6911 for ac_config_target in $ac_config_targets
6912 do
6913   case "$ac_config_target" in
6914   # Handling of arguments.
6915   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6916   "abook.spec" ) CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
6917   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6918   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6919   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6920 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6921    { (exit 1); exit 1; }; };;
6922   esac
6923 done
6924
6925 # If the user did not use the arguments to specify the items to instantiate,
6926 # then the envvar interface is used.  Set only those that are not.
6927 # We use the long form for the default assignment because of an extremely
6928 # bizarre bug on SunOS 4.1.3.
6929 if $ac_need_defaults; then
6930   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6931   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6932   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6933 fi
6934
6935 # Have a temporary directory for convenience.  Make it in the build tree
6936 # simply because there is no reason to put it here, and in addition,
6937 # creating and moving files from /tmp can sometimes cause problems.
6938 # Create a temporary directory, and hook for its removal unless debugging.
6939 $debug ||
6940 {
6941   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6942   trap '{ (exit 1); exit 1; }' 1 2 13 15
6943 }
6944
6945 # Create a (secure) tmp directory for tmp files.
6946
6947 {
6948   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6949   test -n "$tmp" && test -d "$tmp"
6950 }  ||
6951 {
6952   tmp=./confstat$$-$RANDOM
6953   (umask 077 && mkdir $tmp)
6954 } ||
6955 {
6956    echo "$me: cannot create a temporary directory in ." >&2
6957    { (exit 1); exit 1; }
6958 }
6959
6960 _ACEOF
6961
6962 cat >>$CONFIG_STATUS <<_ACEOF
6963
6964 #
6965 # CONFIG_FILES section.
6966 #
6967
6968 # No need to generate the scripts if there are no CONFIG_FILES.
6969 # This happens for instance when ./config.status config.h
6970 if test -n "\$CONFIG_FILES"; then
6971   # Protect against being on the right side of a sed subst in config.status.
6972   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6973    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6974 s,@SHELL@,$SHELL,;t t
6975 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6976 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6977 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6978 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6979 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6980 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6981 s,@exec_prefix@,$exec_prefix,;t t
6982 s,@prefix@,$prefix,;t t
6983 s,@program_transform_name@,$program_transform_name,;t t
6984 s,@bindir@,$bindir,;t t
6985 s,@sbindir@,$sbindir,;t t
6986 s,@libexecdir@,$libexecdir,;t t
6987 s,@datadir@,$datadir,;t t
6988 s,@sysconfdir@,$sysconfdir,;t t
6989 s,@sharedstatedir@,$sharedstatedir,;t t
6990 s,@localstatedir@,$localstatedir,;t t
6991 s,@libdir@,$libdir,;t t
6992 s,@includedir@,$includedir,;t t
6993 s,@oldincludedir@,$oldincludedir,;t t
6994 s,@infodir@,$infodir,;t t
6995 s,@mandir@,$mandir,;t t
6996 s,@build_alias@,$build_alias,;t t
6997 s,@host_alias@,$host_alias,;t t
6998 s,@target_alias@,$target_alias,;t t
6999 s,@DEFS@,$DEFS,;t t
7000 s,@ECHO_C@,$ECHO_C,;t t
7001 s,@ECHO_N@,$ECHO_N,;t t
7002 s,@ECHO_T@,$ECHO_T,;t t
7003 s,@LIBS@,$LIBS,;t t
7004 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7005 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7006 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7007 s,@CYGPATH_W@,$CYGPATH_W,;t t
7008 s,@PACKAGE@,$PACKAGE,;t t
7009 s,@VERSION@,$VERSION,;t t
7010 s,@ACLOCAL@,$ACLOCAL,;t t
7011 s,@AUTOCONF@,$AUTOCONF,;t t
7012 s,@AUTOMAKE@,$AUTOMAKE,;t t
7013 s,@AUTOHEADER@,$AUTOHEADER,;t t
7014 s,@MAKEINFO@,$MAKEINFO,;t t
7015 s,@AMTAR@,$AMTAR,;t t
7016 s,@install_sh@,$install_sh,;t t
7017 s,@STRIP@,$STRIP,;t t
7018 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7019 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7020 s,@AWK@,$AWK,;t t
7021 s,@SET_MAKE@,$SET_MAKE,;t t
7022 s,@am__leading_dot@,$am__leading_dot,;t t
7023 s,@build@,$build,;t t
7024 s,@build_cpu@,$build_cpu,;t t
7025 s,@build_vendor@,$build_vendor,;t t
7026 s,@build_os@,$build_os,;t t
7027 s,@host@,$host,;t t
7028 s,@host_cpu@,$host_cpu,;t t
7029 s,@host_vendor@,$host_vendor,;t t
7030 s,@host_os@,$host_os,;t t
7031 s,@CC@,$CC,;t t
7032 s,@CFLAGS@,$CFLAGS,;t t
7033 s,@LDFLAGS@,$LDFLAGS,;t t
7034 s,@CPPFLAGS@,$CPPFLAGS,;t t
7035 s,@ac_ct_CC@,$ac_ct_CC,;t t
7036 s,@EXEEXT@,$EXEEXT,;t t
7037 s,@OBJEXT@,$OBJEXT,;t t
7038 s,@DEPDIR@,$DEPDIR,;t t
7039 s,@am__include@,$am__include,;t t
7040 s,@am__quote@,$am__quote,;t t
7041 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7042 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7043 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7044 s,@CCDEPMODE@,$CCDEPMODE,;t t
7045 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7046 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7047 s,@CPP@,$CPP,;t t
7048 s,@EGREP@,$EGREP,;t t
7049 s,@U@,$U,;t t
7050 s,@ANSI2KNR@,$ANSI2KNR,;t t
7051 s,@LIBOBJS@,$LIBOBJS,;t t
7052 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7053 CEOF
7054
7055 _ACEOF
7056
7057   cat >>$CONFIG_STATUS <<\_ACEOF
7058   # Split the substitutions into bite-sized pieces for seds with
7059   # small command number limits, like on Digital OSF/1 and HP-UX.
7060   ac_max_sed_lines=48
7061   ac_sed_frag=1 # Number of current file.
7062   ac_beg=1 # First line for current file.
7063   ac_end=$ac_max_sed_lines # Line after last line for current file.
7064   ac_more_lines=:
7065   ac_sed_cmds=
7066   while $ac_more_lines; do
7067     if test $ac_beg -gt 1; then
7068       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7069     else
7070       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7071     fi
7072     if test ! -s $tmp/subs.frag; then
7073       ac_more_lines=false
7074     else
7075       # The purpose of the label and of the branching condition is to
7076       # speed up the sed processing (if there are no `@' at all, there
7077       # is no need to browse any of the substitutions).
7078       # These are the two extra sed commands mentioned above.
7079       (echo ':t
7080   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7081       if test -z "$ac_sed_cmds"; then
7082         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7083       else
7084         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7085       fi
7086       ac_sed_frag=`expr $ac_sed_frag + 1`
7087       ac_beg=$ac_end
7088       ac_end=`expr $ac_end + $ac_max_sed_lines`
7089     fi
7090   done
7091   if test -z "$ac_sed_cmds"; then
7092     ac_sed_cmds=cat
7093   fi
7094 fi # test -n "$CONFIG_FILES"
7095
7096 _ACEOF
7097 cat >>$CONFIG_STATUS <<\_ACEOF
7098 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7099   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7100   case $ac_file in
7101   - | *:- | *:-:* ) # input from stdin
7102         cat >$tmp/stdin
7103         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7104         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7105   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7106         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7107   * )   ac_file_in=$ac_file.in ;;
7108   esac
7109
7110   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7111   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7112 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7113          X"$ac_file" : 'X\(//\)[^/]' \| \
7114          X"$ac_file" : 'X\(//\)$' \| \
7115          X"$ac_file" : 'X\(/\)' \| \
7116          .     : '\(.\)' 2>/dev/null ||
7117 echo X"$ac_file" |
7118     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7119           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7120           /^X\(\/\/\)$/{ s//\1/; q; }
7121           /^X\(\/\).*/{ s//\1/; q; }
7122           s/.*/./; q'`
7123   { if $as_mkdir_p; then
7124     mkdir -p "$ac_dir"
7125   else
7126     as_dir="$ac_dir"
7127     as_dirs=
7128     while test ! -d "$as_dir"; do
7129       as_dirs="$as_dir $as_dirs"
7130       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7132          X"$as_dir" : 'X\(//\)[^/]' \| \
7133          X"$as_dir" : 'X\(//\)$' \| \
7134          X"$as_dir" : 'X\(/\)' \| \
7135          .     : '\(.\)' 2>/dev/null ||
7136 echo X"$as_dir" |
7137     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7138           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7139           /^X\(\/\/\)$/{ s//\1/; q; }
7140           /^X\(\/\).*/{ s//\1/; q; }
7141           s/.*/./; q'`
7142     done
7143     test ! -n "$as_dirs" || mkdir $as_dirs
7144   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7145 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7146    { (exit 1); exit 1; }; }; }
7147
7148   ac_builddir=.
7149
7150 if test "$ac_dir" != .; then
7151   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7152   # A "../" for each directory in $ac_dir_suffix.
7153   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7154 else
7155   ac_dir_suffix= ac_top_builddir=
7156 fi
7157
7158 case $srcdir in
7159   .)  # No --srcdir option.  We are building in place.
7160     ac_srcdir=.
7161     if test -z "$ac_top_builddir"; then
7162        ac_top_srcdir=.
7163     else
7164        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7165     fi ;;
7166   [\\/]* | ?:[\\/]* )  # Absolute path.
7167     ac_srcdir=$srcdir$ac_dir_suffix;
7168     ac_top_srcdir=$srcdir ;;
7169   *) # Relative path.
7170     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7171     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7172 esac
7173 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7174 # absolute.
7175 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7176 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7177 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7178 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7179
7180
7181   case $INSTALL in
7182   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7183   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7184   esac
7185
7186   if test x"$ac_file" != x-; then
7187     { echo "$as_me:$LINENO: creating $ac_file" >&5
7188 echo "$as_me: creating $ac_file" >&6;}
7189     rm -f "$ac_file"
7190   fi
7191   # Let's still pretend it is `configure' which instantiates (i.e., don't
7192   # use $as_me), people would be surprised to read:
7193   #    /* config.h.  Generated by config.status.  */
7194   if test x"$ac_file" = x-; then
7195     configure_input=
7196   else
7197     configure_input="$ac_file.  "
7198   fi
7199   configure_input=$configure_input"Generated from `echo $ac_file_in |
7200                                      sed 's,.*/,,'` by configure."
7201
7202   # First look for the input files in the build tree, otherwise in the
7203   # src tree.
7204   ac_file_inputs=`IFS=:
7205     for f in $ac_file_in; do
7206       case $f in
7207       -) echo $tmp/stdin ;;
7208       [\\/$]*)
7209          # Absolute (can't be DOS-style, as IFS=:)
7210          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7211 echo "$as_me: error: cannot find input file: $f" >&2;}
7212    { (exit 1); exit 1; }; }
7213          echo $f;;
7214       *) # Relative
7215          if test -f "$f"; then
7216            # Build tree
7217            echo $f
7218          elif test -f "$srcdir/$f"; then
7219            # Source tree
7220            echo $srcdir/$f
7221          else
7222            # /dev/null tree
7223            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7224 echo "$as_me: error: cannot find input file: $f" >&2;}
7225    { (exit 1); exit 1; }; }
7226          fi;;
7227       esac
7228     done` || { (exit 1); exit 1; }
7229 _ACEOF
7230 cat >>$CONFIG_STATUS <<_ACEOF
7231   sed "$ac_vpsub
7232 $extrasub
7233 _ACEOF
7234 cat >>$CONFIG_STATUS <<\_ACEOF
7235 :t
7236 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7237 s,@configure_input@,$configure_input,;t t
7238 s,@srcdir@,$ac_srcdir,;t t
7239 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7240 s,@top_srcdir@,$ac_top_srcdir,;t t
7241 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7242 s,@builddir@,$ac_builddir,;t t
7243 s,@abs_builddir@,$ac_abs_builddir,;t t
7244 s,@top_builddir@,$ac_top_builddir,;t t
7245 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7246 s,@INSTALL@,$ac_INSTALL,;t t
7247 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7248   rm -f $tmp/stdin
7249   if test x"$ac_file" != x-; then
7250     mv $tmp/out $ac_file
7251   else
7252     cat $tmp/out
7253     rm -f $tmp/out
7254   fi
7255
7256 done
7257 _ACEOF
7258 cat >>$CONFIG_STATUS <<\_ACEOF
7259
7260 #
7261 # CONFIG_HEADER section.
7262 #
7263
7264 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7265 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7266 #
7267 # ac_d sets the value in "#define NAME VALUE" lines.
7268 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
7269 ac_dB='[        ].*$,\1#\2'
7270 ac_dC=' '
7271 ac_dD=',;t'
7272 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7273 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7274 ac_uB='$,\1#\2define\3'
7275 ac_uC=' '
7276 ac_uD=',;t'
7277
7278 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7279   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7280   case $ac_file in
7281   - | *:- | *:-:* ) # input from stdin
7282         cat >$tmp/stdin
7283         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7284         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7285   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7286         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7287   * )   ac_file_in=$ac_file.in ;;
7288   esac
7289
7290   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7291 echo "$as_me: creating $ac_file" >&6;}
7292
7293   # First look for the input files in the build tree, otherwise in the
7294   # src tree.
7295   ac_file_inputs=`IFS=:
7296     for f in $ac_file_in; do
7297       case $f in
7298       -) echo $tmp/stdin ;;
7299       [\\/$]*)
7300          # Absolute (can't be DOS-style, as IFS=:)
7301          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7302 echo "$as_me: error: cannot find input file: $f" >&2;}
7303    { (exit 1); exit 1; }; }
7304          echo $f;;
7305       *) # Relative
7306          if test -f "$f"; then
7307            # Build tree
7308            echo $f
7309          elif test -f "$srcdir/$f"; then
7310            # Source tree
7311            echo $srcdir/$f
7312          else
7313            # /dev/null tree
7314            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7315 echo "$as_me: error: cannot find input file: $f" >&2;}
7316    { (exit 1); exit 1; }; }
7317          fi;;
7318       esac
7319     done` || { (exit 1); exit 1; }
7320   # Remove the trailing spaces.
7321   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
7322
7323 _ACEOF
7324
7325 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7326 # `conftest.undefs', that substitutes the proper values into
7327 # config.h.in to produce config.h.  The first handles `#define'
7328 # templates, and the second `#undef' templates.
7329 # And first: Protect against being on the right side of a sed subst in
7330 # config.status.  Protect against being in an unquoted here document
7331 # in config.status.
7332 rm -f conftest.defines conftest.undefs
7333 # Using a here document instead of a string reduces the quoting nightmare.
7334 # Putting comments in sed scripts is not portable.
7335 #
7336 # `end' is used to avoid that the second main sed command (meant for
7337 # 0-ary CPP macros) applies to n-ary macro definitions.
7338 # See the Autoconf documentation for `clear'.
7339 cat >confdef2sed.sed <<\_ACEOF
7340 s/[\\&,]/\\&/g
7341 s,[\\$`],\\&,g
7342 t clear
7343 : clear
7344 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7345 t end
7346 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7347 : end
7348 _ACEOF
7349 # If some macros were called several times there might be several times
7350 # the same #defines, which is useless.  Nevertheless, we may not want to
7351 # sort them, since we want the *last* AC-DEFINE to be honored.
7352 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7353 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7354 rm -f confdef2sed.sed
7355
7356 # This sed command replaces #undef with comments.  This is necessary, for
7357 # example, in the case of _POSIX_SOURCE, which is predefined and required
7358 # on some systems where configure will not decide to define it.
7359 cat >>conftest.undefs <<\_ACEOF
7360 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7361 _ACEOF
7362
7363 # Break up conftest.defines because some shells have a limit on the size
7364 # of here documents, and old seds have small limits too (100 cmds).
7365 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7366 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7367 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7368 echo '  :' >>$CONFIG_STATUS
7369 rm -f conftest.tail
7370 while grep . conftest.defines >/dev/null
7371 do
7372   # Write a limited-size here document to $tmp/defines.sed.
7373   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7374   # Speed up: don't consider the non `#define' lines.
7375   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
7376   # Work around the forget-to-reset-the-flag bug.
7377   echo 't clr' >>$CONFIG_STATUS
7378   echo ': clr' >>$CONFIG_STATUS
7379   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7380   echo 'CEOF
7381   sed -f $tmp/defines.sed $tmp/in >$tmp/out
7382   rm -f $tmp/in
7383   mv $tmp/out $tmp/in
7384 ' >>$CONFIG_STATUS
7385   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7386   rm -f conftest.defines
7387   mv conftest.tail conftest.defines
7388 done
7389 rm -f conftest.defines
7390 echo '  fi # grep' >>$CONFIG_STATUS
7391 echo >>$CONFIG_STATUS
7392
7393 # Break up conftest.undefs because some shells have a limit on the size
7394 # of here documents, and old seds have small limits too (100 cmds).
7395 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7396 rm -f conftest.tail
7397 while grep . conftest.undefs >/dev/null
7398 do
7399   # Write a limited-size here document to $tmp/undefs.sed.
7400   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7401   # Speed up: don't consider the non `#undef'
7402   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7403   # Work around the forget-to-reset-the-flag bug.
7404   echo 't clr' >>$CONFIG_STATUS
7405   echo ': clr' >>$CONFIG_STATUS
7406   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7407   echo 'CEOF
7408   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7409   rm -f $tmp/in
7410   mv $tmp/out $tmp/in
7411 ' >>$CONFIG_STATUS
7412   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7413   rm -f conftest.undefs
7414   mv conftest.tail conftest.undefs
7415 done
7416 rm -f conftest.undefs
7417
7418 cat >>$CONFIG_STATUS <<\_ACEOF
7419   # Let's still pretend it is `configure' which instantiates (i.e., don't
7420   # use $as_me), people would be surprised to read:
7421   #    /* config.h.  Generated by config.status.  */
7422   if test x"$ac_file" = x-; then
7423     echo "/* Generated by configure.  */" >$tmp/config.h
7424   else
7425     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7426   fi
7427   cat $tmp/in >>$tmp/config.h
7428   rm -f $tmp/in
7429   if test x"$ac_file" != x-; then
7430     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7431       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7432 echo "$as_me: $ac_file is unchanged" >&6;}
7433     else
7434       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7435 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7436          X"$ac_file" : 'X\(//\)[^/]' \| \
7437          X"$ac_file" : 'X\(//\)$' \| \
7438          X"$ac_file" : 'X\(/\)' \| \
7439          .     : '\(.\)' 2>/dev/null ||
7440 echo X"$ac_file" |
7441     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7442           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7443           /^X\(\/\/\)$/{ s//\1/; q; }
7444           /^X\(\/\).*/{ s//\1/; q; }
7445           s/.*/./; q'`
7446       { if $as_mkdir_p; then
7447     mkdir -p "$ac_dir"
7448   else
7449     as_dir="$ac_dir"
7450     as_dirs=
7451     while test ! -d "$as_dir"; do
7452       as_dirs="$as_dir $as_dirs"
7453       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7455          X"$as_dir" : 'X\(//\)[^/]' \| \
7456          X"$as_dir" : 'X\(//\)$' \| \
7457          X"$as_dir" : 'X\(/\)' \| \
7458          .     : '\(.\)' 2>/dev/null ||
7459 echo X"$as_dir" |
7460     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7461           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7462           /^X\(\/\/\)$/{ s//\1/; q; }
7463           /^X\(\/\).*/{ s//\1/; q; }
7464           s/.*/./; q'`
7465     done
7466     test ! -n "$as_dirs" || mkdir $as_dirs
7467   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7468 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7469    { (exit 1); exit 1; }; }; }
7470
7471       rm -f $ac_file
7472       mv $tmp/config.h $ac_file
7473     fi
7474   else
7475     cat $tmp/config.h
7476     rm -f $tmp/config.h
7477   fi
7478 # Compute $ac_file's index in $config_headers.
7479 _am_stamp_count=1
7480 for _am_header in $config_headers :; do
7481   case $_am_header in
7482     $ac_file | $ac_file:* )
7483       break ;;
7484     * )
7485       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7486   esac
7487 done
7488 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7489 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7490          X$ac_file : 'X\(//\)[^/]' \| \
7491          X$ac_file : 'X\(//\)$' \| \
7492          X$ac_file : 'X\(/\)' \| \
7493          .     : '\(.\)' 2>/dev/null ||
7494 echo X$ac_file |
7495     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7496           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7497           /^X\(\/\/\)$/{ s//\1/; q; }
7498           /^X\(\/\).*/{ s//\1/; q; }
7499           s/.*/./; q'`/stamp-h$_am_stamp_count
7500 done
7501 _ACEOF
7502 cat >>$CONFIG_STATUS <<\_ACEOF
7503
7504 #
7505 # CONFIG_COMMANDS section.
7506 #
7507 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7508   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7509   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7510   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7511 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7512          X"$ac_dest" : 'X\(//\)[^/]' \| \
7513          X"$ac_dest" : 'X\(//\)$' \| \
7514          X"$ac_dest" : 'X\(/\)' \| \
7515          .     : '\(.\)' 2>/dev/null ||
7516 echo X"$ac_dest" |
7517     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7518           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7519           /^X\(\/\/\)$/{ s//\1/; q; }
7520           /^X\(\/\).*/{ s//\1/; q; }
7521           s/.*/./; q'`
7522   ac_builddir=.
7523
7524 if test "$ac_dir" != .; then
7525   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7526   # A "../" for each directory in $ac_dir_suffix.
7527   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7528 else
7529   ac_dir_suffix= ac_top_builddir=
7530 fi
7531
7532 case $srcdir in
7533   .)  # No --srcdir option.  We are building in place.
7534     ac_srcdir=.
7535     if test -z "$ac_top_builddir"; then
7536        ac_top_srcdir=.
7537     else
7538        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7539     fi ;;
7540   [\\/]* | ?:[\\/]* )  # Absolute path.
7541     ac_srcdir=$srcdir$ac_dir_suffix;
7542     ac_top_srcdir=$srcdir ;;
7543   *) # Relative path.
7544     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7545     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7546 esac
7547 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7548 # absolute.
7549 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7550 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7551 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7552 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7553
7554
7555   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7556 echo "$as_me: executing $ac_dest commands" >&6;}
7557   case $ac_dest in
7558     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7559   # Strip MF so we end up with the name of the file.
7560   mf=`echo "$mf" | sed -e 's/:.*$//'`
7561   # Check whether this is an Automake generated Makefile or not.
7562   # We used to match only the files named `Makefile.in', but
7563   # some people rename them; so instead we look at the file content.
7564   # Grep'ing the first line is not enough: some people post-process
7565   # each Makefile.in and add a new line on top of each file to say so.
7566   # So let's grep whole file.
7567   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7568     dirpart=`(dirname "$mf") 2>/dev/null ||
7569 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7570          X"$mf" : 'X\(//\)[^/]' \| \
7571          X"$mf" : 'X\(//\)$' \| \
7572          X"$mf" : 'X\(/\)' \| \
7573          .     : '\(.\)' 2>/dev/null ||
7574 echo X"$mf" |
7575     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7576           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7577           /^X\(\/\/\)$/{ s//\1/; q; }
7578           /^X\(\/\).*/{ s//\1/; q; }
7579           s/.*/./; q'`
7580   else
7581     continue
7582   fi
7583   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7584   # Extract the definition of DEP_FILES from the Makefile without
7585   # running `make'.
7586   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7587   test -z "$DEPDIR" && continue
7588   # When using ansi2knr, U may be empty or an underscore; expand it
7589   U=`sed -n -e '/^U = / s///p' < "$mf"`
7590   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7591   # We invoke sed twice because it is the simplest approach to
7592   # changing $(DEPDIR) to its actual value in the expansion.
7593   for file in `sed -n -e '
7594     /^DEP_FILES = .*\\\\$/ {
7595       s/^DEP_FILES = //
7596       :loop
7597         s/\\\\$//
7598         p
7599         n
7600         /\\\\$/ b loop
7601       p
7602     }
7603     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7604        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7605     # Make sure the directory exists.
7606     test -f "$dirpart/$file" && continue
7607     fdir=`(dirname "$file") 2>/dev/null ||
7608 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7609          X"$file" : 'X\(//\)[^/]' \| \
7610          X"$file" : 'X\(//\)$' \| \
7611          X"$file" : 'X\(/\)' \| \
7612          .     : '\(.\)' 2>/dev/null ||
7613 echo X"$file" |
7614     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7615           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7616           /^X\(\/\/\)$/{ s//\1/; q; }
7617           /^X\(\/\).*/{ s//\1/; q; }
7618           s/.*/./; q'`
7619     { if $as_mkdir_p; then
7620     mkdir -p $dirpart/$fdir
7621   else
7622     as_dir=$dirpart/$fdir
7623     as_dirs=
7624     while test ! -d "$as_dir"; do
7625       as_dirs="$as_dir $as_dirs"
7626       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7627 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7628          X"$as_dir" : 'X\(//\)[^/]' \| \
7629          X"$as_dir" : 'X\(//\)$' \| \
7630          X"$as_dir" : 'X\(/\)' \| \
7631          .     : '\(.\)' 2>/dev/null ||
7632 echo X"$as_dir" |
7633     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7634           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7635           /^X\(\/\/\)$/{ s//\1/; q; }
7636           /^X\(\/\).*/{ s//\1/; q; }
7637           s/.*/./; q'`
7638     done
7639     test ! -n "$as_dirs" || mkdir $as_dirs
7640   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7641 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7642    { (exit 1); exit 1; }; }; }
7643
7644     # echo "creating $dirpart/$file"
7645     echo '# dummy' > "$dirpart/$file"
7646   done
7647 done
7648  ;;
7649   esac
7650 done
7651 _ACEOF
7652
7653 cat >>$CONFIG_STATUS <<\_ACEOF
7654
7655 { (exit 0); exit 0; }
7656 _ACEOF
7657 chmod +x $CONFIG_STATUS
7658 ac_clean_files=$ac_clean_files_save
7659
7660
7661 # configure is writing to config.log, and then calls config.status.
7662 # config.status does its own redirection, appending to config.log.
7663 # Unfortunately, on DOS this fails, as config.log is still kept open
7664 # by configure, so config.status won't be able to write to it; its
7665 # output is simply discarded.  So we exec the FD to /dev/null,
7666 # effectively closing config.log, so it can be properly (re)opened and
7667 # appended to by config.status.  When coming back to configure, we
7668 # need to make the FD available again.
7669 if test "$no_create" != yes; then
7670   ac_cs_success=:
7671   ac_config_status_args=
7672   test "$silent" = yes &&
7673     ac_config_status_args="$ac_config_status_args --quiet"
7674   exec 5>/dev/null
7675   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7676   exec 5>>config.log
7677   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7678   # would make configure fail if this is the last instruction.
7679   $ac_cs_success || { (exit 1); exit 1; }
7680 fi
7681
7682