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