]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - hesiod/configure
b1e6fd579b86f523b98da04921f1d614cdb36e1e
[1ts-debian.git] / hesiod / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for hesiod 3.0.2.
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='hesiod'
269 PACKAGE_TARNAME='hesiod'
270 PACKAGE_VERSION='3.0.2'
271 PACKAGE_STRING='hesiod 3.0.2'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="hesiod.c"
275 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 lbindir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB CPP EGREP LIBOBJS LTLIBOBJS'
276 ac_subst_files=''
277
278 # Initialize some variables set by options.
279 ac_init_help=
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
283 cache_file=/dev/null
284 exec_prefix=NONE
285 no_create=
286 no_recursion=
287 prefix=NONE
288 program_prefix=NONE
289 program_suffix=NONE
290 program_transform_name=s,x,x,
291 silent=
292 site=
293 srcdir=
294 verbose=
295 x_includes=NONE
296 x_libraries=NONE
297
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
315
316 ac_prev=
317 for ac_option
318 do
319   # If the previous option needs an argument, assign it.
320   if test -n "$ac_prev"; then
321     eval "$ac_prev=\$ac_option"
322     ac_prev=
323     continue
324   fi
325
326   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327
328   # Accept the important Cygnus configure options, so we can diagnose typos.
329
330   case $ac_option in
331
332   -bindir | --bindir | --bindi | --bind | --bin | --bi)
333     ac_prev=bindir ;;
334   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335     bindir=$ac_optarg ;;
336
337   -build | --build | --buil | --bui | --bu)
338     ac_prev=build_alias ;;
339   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340     build_alias=$ac_optarg ;;
341
342   -cache-file | --cache-file | --cache-fil | --cache-fi \
343   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344     ac_prev=cache_file ;;
345   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347     cache_file=$ac_optarg ;;
348
349   --config-cache | -C)
350     cache_file=config.cache ;;
351
352   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353     ac_prev=datadir ;;
354   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355   | --da=*)
356     datadir=$ac_optarg ;;
357
358   -disable-* | --disable-*)
359     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360     # Reject names that are not valid shell variable names.
361     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363    { (exit 1); exit 1; }; }
364     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365     eval "enable_$ac_feature=no" ;;
366
367   -enable-* | --enable-*)
368     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369     # Reject names that are not valid shell variable names.
370     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372    { (exit 1); exit 1; }; }
373     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374     case $ac_option in
375       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376       *) ac_optarg=yes ;;
377     esac
378     eval "enable_$ac_feature='$ac_optarg'" ;;
379
380   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382   | --exec | --exe | --ex)
383     ac_prev=exec_prefix ;;
384   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386   | --exec=* | --exe=* | --ex=*)
387     exec_prefix=$ac_optarg ;;
388
389   -gas | --gas | --ga | --g)
390     # Obsolete; use --with-gas.
391     with_gas=yes ;;
392
393   -help | --help | --hel | --he | -h)
394     ac_init_help=long ;;
395   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396     ac_init_help=recursive ;;
397   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398     ac_init_help=short ;;
399
400   -host | --host | --hos | --ho)
401     ac_prev=host_alias ;;
402   -host=* | --host=* | --hos=* | --ho=*)
403     host_alias=$ac_optarg ;;
404
405   -includedir | --includedir | --includedi | --included | --include \
406   | --includ | --inclu | --incl | --inc)
407     ac_prev=includedir ;;
408   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409   | --includ=* | --inclu=* | --incl=* | --inc=*)
410     includedir=$ac_optarg ;;
411
412   -infodir | --infodir | --infodi | --infod | --info | --inf)
413     ac_prev=infodir ;;
414   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415     infodir=$ac_optarg ;;
416
417   -libdir | --libdir | --libdi | --libd)
418     ac_prev=libdir ;;
419   -libdir=* | --libdir=* | --libdi=* | --libd=*)
420     libdir=$ac_optarg ;;
421
422   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423   | --libexe | --libex | --libe)
424     ac_prev=libexecdir ;;
425   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426   | --libexe=* | --libex=* | --libe=*)
427     libexecdir=$ac_optarg ;;
428
429   -localstatedir | --localstatedir | --localstatedi | --localstated \
430   | --localstate | --localstat | --localsta | --localst \
431   | --locals | --local | --loca | --loc | --lo)
432     ac_prev=localstatedir ;;
433   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436     localstatedir=$ac_optarg ;;
437
438   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439     ac_prev=mandir ;;
440   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441     mandir=$ac_optarg ;;
442
443   -nfp | --nfp | --nf)
444     # Obsolete; use --without-fp.
445     with_fp=no ;;
446
447   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448   | --no-cr | --no-c | -n)
449     no_create=yes ;;
450
451   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453     no_recursion=yes ;;
454
455   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457   | --oldin | --oldi | --old | --ol | --o)
458     ac_prev=oldincludedir ;;
459   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462     oldincludedir=$ac_optarg ;;
463
464   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465     ac_prev=prefix ;;
466   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467     prefix=$ac_optarg ;;
468
469   -program-prefix | --program-prefix | --program-prefi | --program-pref \
470   | --program-pre | --program-pr | --program-p)
471     ac_prev=program_prefix ;;
472   -program-prefix=* | --program-prefix=* | --program-prefi=* \
473   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474     program_prefix=$ac_optarg ;;
475
476   -program-suffix | --program-suffix | --program-suffi | --program-suff \
477   | --program-suf | --program-su | --program-s)
478     ac_prev=program_suffix ;;
479   -program-suffix=* | --program-suffix=* | --program-suffi=* \
480   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481     program_suffix=$ac_optarg ;;
482
483   -program-transform-name | --program-transform-name \
484   | --program-transform-nam | --program-transform-na \
485   | --program-transform-n | --program-transform- \
486   | --program-transform | --program-transfor \
487   | --program-transfo | --program-transf \
488   | --program-trans | --program-tran \
489   | --progr-tra | --program-tr | --program-t)
490     ac_prev=program_transform_name ;;
491   -program-transform-name=* | --program-transform-name=* \
492   | --program-transform-nam=* | --program-transform-na=* \
493   | --program-transform-n=* | --program-transform-=* \
494   | --program-transform=* | --program-transfor=* \
495   | --program-transfo=* | --program-transf=* \
496   | --program-trans=* | --program-tran=* \
497   | --progr-tra=* | --program-tr=* | --program-t=*)
498     program_transform_name=$ac_optarg ;;
499
500   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501   | -silent | --silent | --silen | --sile | --sil)
502     silent=yes ;;
503
504   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505     ac_prev=sbindir ;;
506   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507   | --sbi=* | --sb=*)
508     sbindir=$ac_optarg ;;
509
510   -sharedstatedir | --sharedstatedir | --sharedstatedi \
511   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512   | --sharedst | --shareds | --shared | --share | --shar \
513   | --sha | --sh)
514     ac_prev=sharedstatedir ;;
515   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518   | --sha=* | --sh=*)
519     sharedstatedir=$ac_optarg ;;
520
521   -site | --site | --sit)
522     ac_prev=site ;;
523   -site=* | --site=* | --sit=*)
524     site=$ac_optarg ;;
525
526   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527     ac_prev=srcdir ;;
528   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529     srcdir=$ac_optarg ;;
530
531   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532   | --syscon | --sysco | --sysc | --sys | --sy)
533     ac_prev=sysconfdir ;;
534   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536     sysconfdir=$ac_optarg ;;
537
538   -target | --target | --targe | --targ | --tar | --ta | --t)
539     ac_prev=target_alias ;;
540   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541     target_alias=$ac_optarg ;;
542
543   -v | -verbose | --verbose | --verbos | --verbo | --verb)
544     verbose=yes ;;
545
546   -version | --version | --versio | --versi | --vers | -V)
547     ac_init_version=: ;;
548
549   -with-* | --with-*)
550     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid package name: $ac_package" >&2
554    { (exit 1); exit 1; }; }
555     ac_package=`echo $ac_package| sed 's/-/_/g'`
556     case $ac_option in
557       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558       *) ac_optarg=yes ;;
559     esac
560     eval "with_$ac_package='$ac_optarg'" ;;
561
562   -without-* | --without-*)
563     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid package name: $ac_package" >&2
567    { (exit 1); exit 1; }; }
568     ac_package=`echo $ac_package | sed 's/-/_/g'`
569     eval "with_$ac_package=no" ;;
570
571   --x)
572     # Obsolete; use --with-x.
573     with_x=yes ;;
574
575   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576   | --x-incl | --x-inc | --x-in | --x-i)
577     ac_prev=x_includes ;;
578   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580     x_includes=$ac_optarg ;;
581
582   -x-libraries | --x-libraries | --x-librarie | --x-librari \
583   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584     ac_prev=x_libraries ;;
585   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587     x_libraries=$ac_optarg ;;
588
589   -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591    { (exit 1); exit 1; }; }
592     ;;
593
594   *=*)
595     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596     # Reject names that are not valid shell variable names.
597     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599    { (exit 1); exit 1; }; }
600     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601     eval "$ac_envvar='$ac_optarg'"
602     export $ac_envvar ;;
603
604   *)
605     # FIXME: should be removed in autoconf 3.0.
606     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
610     ;;
611
612   esac
613 done
614
615 if test -n "$ac_prev"; then
616   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617   { echo "$as_me: error: missing argument to $ac_option" >&2
618    { (exit 1); exit 1; }; }
619 fi
620
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
623 do
624   eval ac_val=$`echo $ac_var`
625   case $ac_val in
626     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628    { (exit 1); exit 1; }; };;
629   esac
630 done
631
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634               localstatedir libdir includedir oldincludedir infodir mandir
635 do
636   eval ac_val=$`echo $ac_var`
637   case $ac_val in
638     [\\/$]* | ?:[\\/]* ) ;;
639     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640    { (exit 1); exit 1; }; };;
641   esac
642 done
643
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
647 build=$build_alias
648 host=$host_alias
649 target=$target_alias
650
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653   if test "x$build_alias" = x; then
654     cross_compiling=maybe
655     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656     If a cross compiler is detected then cross compile mode will be used." >&2
657   elif test "x$build_alias" != "x$host_alias"; then
658     cross_compiling=yes
659   fi
660 fi
661
662 ac_tool_prefix=
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665 test "$silent" = yes && exec 6>/dev/null
666
667
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670   ac_srcdir_defaulted=yes
671   # Try the directory containing this script, then its parent.
672   ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674          X"$0" : 'X\(//\)[^/]' \| \
675          X"$0" : 'X\(//\)$' \| \
676          X"$0" : 'X\(/\)' \| \
677          .     : '\(.\)' 2>/dev/null ||
678 echo X"$0" |
679     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681           /^X\(\/\/\)$/{ s//\1/; q; }
682           /^X\(\/\).*/{ s//\1/; q; }
683           s/.*/./; q'`
684   srcdir=$ac_confdir
685   if test ! -r $srcdir/$ac_unique_file; then
686     srcdir=..
687   fi
688 else
689   ac_srcdir_defaulted=no
690 fi
691 if test ! -r $srcdir/$ac_unique_file; then
692   if test "$ac_srcdir_defaulted" = yes; then
693     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694    { (exit 1); exit 1; }; }
695   else
696     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697    { (exit 1); exit 1; }; }
698   fi
699 fi
700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702    { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
717 ac_env_CC_value=$CC
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732 ac_env_CPP_set=${CPP+set}
733 ac_env_CPP_value=$CPP
734 ac_cv_env_CPP_set=${CPP+set}
735 ac_cv_env_CPP_value=$CPP
736
737 #
738 # Report the --help message.
739 #
740 if test "$ac_init_help" = "long"; then
741   # Omit some internal or obsolete options to make the list less imposing.
742   # This message is too long to be a string in the A/UX 3.1 sh.
743   cat <<_ACEOF
744 \`configure' configures hesiod 3.0.2 to adapt to many kinds of systems.
745
746 Usage: $0 [OPTION]... [VAR=VALUE]...
747
748 To assign environment variables (e.g., CC, CFLAGS...), specify them as
749 VAR=VALUE.  See below for descriptions of some of the useful variables.
750
751 Defaults for the options are specified in brackets.
752
753 Configuration:
754   -h, --help              display this help and exit
755       --help=short        display options specific to this package
756       --help=recursive    display the short help of all the included packages
757   -V, --version           display version information and exit
758   -q, --quiet, --silent   do not print \`checking...' messages
759       --cache-file=FILE   cache test results in FILE [disabled]
760   -C, --config-cache      alias for \`--cache-file=config.cache'
761   -n, --no-create         do not create output files
762       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
763
764 _ACEOF
765
766   cat <<_ACEOF
767 Installation directories:
768   --prefix=PREFIX         install architecture-independent files in PREFIX
769                           [$ac_default_prefix]
770   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
771                           [PREFIX]
772
773 By default, \`make install' will install all the files in
774 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
775 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
776 for instance \`--prefix=\$HOME'.
777
778 For better control, use the options below.
779
780 Fine tuning of the installation directories:
781   --bindir=DIR           user executables [EPREFIX/bin]
782   --sbindir=DIR          system admin executables [EPREFIX/sbin]
783   --libexecdir=DIR       program executables [EPREFIX/libexec]
784   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
785   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
786   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
787   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
788   --libdir=DIR           object code libraries [EPREFIX/lib]
789   --includedir=DIR       C header files [PREFIX/include]
790   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
791   --infodir=DIR          info documentation [PREFIX/info]
792   --mandir=DIR           man documentation [PREFIX/man]
793 _ACEOF
794
795   cat <<\_ACEOF
796 _ACEOF
797 fi
798
799 if test -n "$ac_init_help"; then
800   case $ac_init_help in
801      short | recursive ) echo "Configuration of hesiod 3.0.2:";;
802    esac
803   cat <<\_ACEOF
804
805 Some influential environment variables:
806   CC          C compiler command
807   CFLAGS      C compiler flags
808   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
809               nonstandard directory <lib dir>
810   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
811               headers in a nonstandard directory <include dir>
812   CPP         C preprocessor
813
814 Use these variables to override the choices made by `configure' or to help
815 it to find libraries and programs with nonstandard names/locations.
816
817 _ACEOF
818 fi
819
820 if test "$ac_init_help" = "recursive"; then
821   # If there are subdirs, report their specific --help.
822   ac_popdir=`pwd`
823   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
824     test -d $ac_dir || continue
825     ac_builddir=.
826
827 if test "$ac_dir" != .; then
828   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
829   # A "../" for each directory in $ac_dir_suffix.
830   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
831 else
832   ac_dir_suffix= ac_top_builddir=
833 fi
834
835 case $srcdir in
836   .)  # No --srcdir option.  We are building in place.
837     ac_srcdir=.
838     if test -z "$ac_top_builddir"; then
839        ac_top_srcdir=.
840     else
841        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
842     fi ;;
843   [\\/]* | ?:[\\/]* )  # Absolute path.
844     ac_srcdir=$srcdir$ac_dir_suffix;
845     ac_top_srcdir=$srcdir ;;
846   *) # Relative path.
847     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
848     ac_top_srcdir=$ac_top_builddir$srcdir ;;
849 esac
850
851 # Do not use `cd foo && pwd` to compute absolute paths, because
852 # the directories may not exist.
853 case `pwd` in
854 .) ac_abs_builddir="$ac_dir";;
855 *)
856   case "$ac_dir" in
857   .) ac_abs_builddir=`pwd`;;
858   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
859   *) ac_abs_builddir=`pwd`/"$ac_dir";;
860   esac;;
861 esac
862 case $ac_abs_builddir in
863 .) ac_abs_top_builddir=${ac_top_builddir}.;;
864 *)
865   case ${ac_top_builddir}. in
866   .) ac_abs_top_builddir=$ac_abs_builddir;;
867   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
868   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
869   esac;;
870 esac
871 case $ac_abs_builddir in
872 .) ac_abs_srcdir=$ac_srcdir;;
873 *)
874   case $ac_srcdir in
875   .) ac_abs_srcdir=$ac_abs_builddir;;
876   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
877   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
878   esac;;
879 esac
880 case $ac_abs_builddir in
881 .) ac_abs_top_srcdir=$ac_top_srcdir;;
882 *)
883   case $ac_top_srcdir in
884   .) ac_abs_top_srcdir=$ac_abs_builddir;;
885   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
886   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
887   esac;;
888 esac
889
890     cd $ac_dir
891     # Check for guested configure; otherwise get Cygnus style configure.
892     if test -f $ac_srcdir/configure.gnu; then
893       echo
894       $SHELL $ac_srcdir/configure.gnu  --help=recursive
895     elif test -f $ac_srcdir/configure; then
896       echo
897       $SHELL $ac_srcdir/configure  --help=recursive
898     elif test -f $ac_srcdir/configure.ac ||
899            test -f $ac_srcdir/configure.in; then
900       echo
901       $ac_configure --help
902     else
903       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
904     fi
905     cd "$ac_popdir"
906   done
907 fi
908
909 test -n "$ac_init_help" && exit 0
910 if $ac_init_version; then
911   cat <<\_ACEOF
912 hesiod configure 3.0.2
913 generated by GNU Autoconf 2.59
914
915 Copyright (C) 2003 Free Software Foundation, Inc.
916 This configure script is free software; the Free Software Foundation
917 gives unlimited permission to copy, distribute and modify it.
918 _ACEOF
919   exit 0
920 fi
921 exec 5>config.log
922 cat >&5 <<_ACEOF
923 This file contains any messages produced by compilers while
924 running configure, to aid debugging if configure makes a mistake.
925
926 It was created by hesiod $as_me 3.0.2, which was
927 generated by GNU Autoconf 2.59.  Invocation command line was
928
929   $ $0 $@
930
931 _ACEOF
932 {
933 cat <<_ASUNAME
934 ## --------- ##
935 ## Platform. ##
936 ## --------- ##
937
938 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
939 uname -m = `(uname -m) 2>/dev/null || echo unknown`
940 uname -r = `(uname -r) 2>/dev/null || echo unknown`
941 uname -s = `(uname -s) 2>/dev/null || echo unknown`
942 uname -v = `(uname -v) 2>/dev/null || echo unknown`
943
944 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
945 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
946
947 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
948 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
949 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
950 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
951 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
952 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
953 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
954
955 _ASUNAME
956
957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
958 for as_dir in $PATH
959 do
960   IFS=$as_save_IFS
961   test -z "$as_dir" && as_dir=.
962   echo "PATH: $as_dir"
963 done
964
965 } >&5
966
967 cat >&5 <<_ACEOF
968
969
970 ## ----------- ##
971 ## Core tests. ##
972 ## ----------- ##
973
974 _ACEOF
975
976
977 # Keep a trace of the command line.
978 # Strip out --no-create and --no-recursion so they do not pile up.
979 # Strip out --silent because we don't want to record it for future runs.
980 # Also quote any args containing shell meta-characters.
981 # Make two passes to allow for proper duplicate-argument suppression.
982 ac_configure_args=
983 ac_configure_args0=
984 ac_configure_args1=
985 ac_sep=
986 ac_must_keep_next=false
987 for ac_pass in 1 2
988 do
989   for ac_arg
990   do
991     case $ac_arg in
992     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
993     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
994     | -silent | --silent | --silen | --sile | --sil)
995       continue ;;
996     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
997       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
998     esac
999     case $ac_pass in
1000     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1001     2)
1002       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1003       if test $ac_must_keep_next = true; then
1004         ac_must_keep_next=false # Got value, back to normal.
1005       else
1006         case $ac_arg in
1007           *=* | --config-cache | -C | -disable-* | --disable-* \
1008           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1009           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1010           | -with-* | --with-* | -without-* | --without-* | --x)
1011             case "$ac_configure_args0 " in
1012               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1013             esac
1014             ;;
1015           -* ) ac_must_keep_next=true ;;
1016         esac
1017       fi
1018       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1019       # Get rid of the leading space.
1020       ac_sep=" "
1021       ;;
1022     esac
1023   done
1024 done
1025 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1026 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1027
1028 # When interrupted or exit'd, cleanup temporary files, and complete
1029 # config.log.  We remove comments because anyway the quotes in there
1030 # would cause problems or look ugly.
1031 # WARNING: Be sure not to use single quotes in there, as some shells,
1032 # such as our DU 5.0 friend, will then `close' the trap.
1033 trap 'exit_status=$?
1034   # Save into config.log some information that might help in debugging.
1035   {
1036     echo
1037
1038     cat <<\_ASBOX
1039 ## ---------------- ##
1040 ## Cache variables. ##
1041 ## ---------------- ##
1042 _ASBOX
1043     echo
1044     # The following way of writing the cache mishandles newlines in values,
1045 {
1046   (set) 2>&1 |
1047     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1048     *ac_space=\ *)
1049       sed -n \
1050         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1051           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1052       ;;
1053     *)
1054       sed -n \
1055         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1056       ;;
1057     esac;
1058 }
1059     echo
1060
1061     cat <<\_ASBOX
1062 ## ----------------- ##
1063 ## Output variables. ##
1064 ## ----------------- ##
1065 _ASBOX
1066     echo
1067     for ac_var in $ac_subst_vars
1068     do
1069       eval ac_val=$`echo $ac_var`
1070       echo "$ac_var='"'"'$ac_val'"'"'"
1071     done | sort
1072     echo
1073
1074     if test -n "$ac_subst_files"; then
1075       cat <<\_ASBOX
1076 ## ------------- ##
1077 ## Output files. ##
1078 ## ------------- ##
1079 _ASBOX
1080       echo
1081       for ac_var in $ac_subst_files
1082       do
1083         eval ac_val=$`echo $ac_var`
1084         echo "$ac_var='"'"'$ac_val'"'"'"
1085       done | sort
1086       echo
1087     fi
1088
1089     if test -s confdefs.h; then
1090       cat <<\_ASBOX
1091 ## ----------- ##
1092 ## confdefs.h. ##
1093 ## ----------- ##
1094 _ASBOX
1095       echo
1096       sed "/^$/d" confdefs.h | sort
1097       echo
1098     fi
1099     test "$ac_signal" != 0 &&
1100       echo "$as_me: caught signal $ac_signal"
1101     echo "$as_me: exit $exit_status"
1102   } >&5
1103   rm -f core *.core &&
1104   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1105     exit $exit_status
1106      ' 0
1107 for ac_signal in 1 2 13 15; do
1108   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1109 done
1110 ac_signal=0
1111
1112 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1113 rm -rf conftest* confdefs.h
1114 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1115 echo >confdefs.h
1116
1117 # Predefined preprocessor variables.
1118
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_NAME "$PACKAGE_NAME"
1121 _ACEOF
1122
1123
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1126 _ACEOF
1127
1128
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1131 _ACEOF
1132
1133
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_STRING "$PACKAGE_STRING"
1136 _ACEOF
1137
1138
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1141 _ACEOF
1142
1143
1144 # Let the site file select an alternate cache file if it wants to.
1145 # Prefer explicitly selected file to automatically selected ones.
1146 if test -z "$CONFIG_SITE"; then
1147   if test "x$prefix" != xNONE; then
1148     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1149   else
1150     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1151   fi
1152 fi
1153 for ac_site_file in $CONFIG_SITE; do
1154   if test -r "$ac_site_file"; then
1155     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1156 echo "$as_me: loading site script $ac_site_file" >&6;}
1157     sed 's/^/| /' "$ac_site_file" >&5
1158     . "$ac_site_file"
1159   fi
1160 done
1161
1162 if test -r "$cache_file"; then
1163   # Some versions of bash will fail to source /dev/null (special
1164   # files actually), so we avoid doing that.
1165   if test -f "$cache_file"; then
1166     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1167 echo "$as_me: loading cache $cache_file" >&6;}
1168     case $cache_file in
1169       [\\/]* | ?:[\\/]* ) . $cache_file;;
1170       *)                      . ./$cache_file;;
1171     esac
1172   fi
1173 else
1174   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1175 echo "$as_me: creating cache $cache_file" >&6;}
1176   >$cache_file
1177 fi
1178
1179 # Check that the precious variables saved in the cache have kept the same
1180 # value.
1181 ac_cache_corrupted=false
1182 for ac_var in `(set) 2>&1 |
1183                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1184   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1185   eval ac_new_set=\$ac_env_${ac_var}_set
1186   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1187   eval ac_new_val="\$ac_env_${ac_var}_value"
1188   case $ac_old_set,$ac_new_set in
1189     set,)
1190       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1191 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1192       ac_cache_corrupted=: ;;
1193     ,set)
1194       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1195 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1196       ac_cache_corrupted=: ;;
1197     ,);;
1198     *)
1199       if test "x$ac_old_val" != "x$ac_new_val"; then
1200         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1201 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1202         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1203 echo "$as_me:   former value:  $ac_old_val" >&2;}
1204         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1205 echo "$as_me:   current value: $ac_new_val" >&2;}
1206         ac_cache_corrupted=:
1207       fi;;
1208   esac
1209   # Pass precious variables to config.status.
1210   if test "$ac_new_set" = set; then
1211     case $ac_new_val in
1212     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1213       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1214     *) ac_arg=$ac_var=$ac_new_val ;;
1215     esac
1216     case " $ac_configure_args " in
1217       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1218       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1219     esac
1220   fi
1221 done
1222 if $ac_cache_corrupted; then
1223   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1224 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1225   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1226 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1227    { (exit 1); exit 1; }; }
1228 fi
1229
1230 ac_ext=c
1231 ac_cpp='$CPP $CPPFLAGS'
1232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265 test -z "$lbindir" && lbindir='${bindir}'
1266
1267
1268 ac_ext=c
1269 ac_cpp='$CPP $CPPFLAGS'
1270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1273 if test -n "$ac_tool_prefix"; then
1274   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1275 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1276 echo "$as_me:$LINENO: checking for $ac_word" >&5
1277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1278 if test "${ac_cv_prog_CC+set}" = set; then
1279   echo $ECHO_N "(cached) $ECHO_C" >&6
1280 else
1281   if test -n "$CC"; then
1282   ac_cv_prog_CC="$CC" # Let the user override the test.
1283 else
1284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1285 for as_dir in $PATH
1286 do
1287   IFS=$as_save_IFS
1288   test -z "$as_dir" && as_dir=.
1289   for ac_exec_ext in '' $ac_executable_extensions; do
1290   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1291     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1293     break 2
1294   fi
1295 done
1296 done
1297
1298 fi
1299 fi
1300 CC=$ac_cv_prog_CC
1301 if test -n "$CC"; then
1302   echo "$as_me:$LINENO: result: $CC" >&5
1303 echo "${ECHO_T}$CC" >&6
1304 else
1305   echo "$as_me:$LINENO: result: no" >&5
1306 echo "${ECHO_T}no" >&6
1307 fi
1308
1309 fi
1310 if test -z "$ac_cv_prog_CC"; then
1311   ac_ct_CC=$CC
1312   # Extract the first word of "gcc", so it can be a program name with args.
1313 set dummy gcc; ac_word=$2
1314 echo "$as_me:$LINENO: checking for $ac_word" >&5
1315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1316 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1317   echo $ECHO_N "(cached) $ECHO_C" >&6
1318 else
1319   if test -n "$ac_ct_CC"; then
1320   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1321 else
1322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1323 for as_dir in $PATH
1324 do
1325   IFS=$as_save_IFS
1326   test -z "$as_dir" && as_dir=.
1327   for ac_exec_ext in '' $ac_executable_extensions; do
1328   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1329     ac_cv_prog_ac_ct_CC="gcc"
1330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1331     break 2
1332   fi
1333 done
1334 done
1335
1336 fi
1337 fi
1338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1339 if test -n "$ac_ct_CC"; then
1340   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1341 echo "${ECHO_T}$ac_ct_CC" >&6
1342 else
1343   echo "$as_me:$LINENO: result: no" >&5
1344 echo "${ECHO_T}no" >&6
1345 fi
1346
1347   CC=$ac_ct_CC
1348 else
1349   CC="$ac_cv_prog_CC"
1350 fi
1351
1352 if test -z "$CC"; then
1353   if test -n "$ac_tool_prefix"; then
1354   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1355 set dummy ${ac_tool_prefix}cc; ac_word=$2
1356 echo "$as_me:$LINENO: checking for $ac_word" >&5
1357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1358 if test "${ac_cv_prog_CC+set}" = set; then
1359   echo $ECHO_N "(cached) $ECHO_C" >&6
1360 else
1361   if test -n "$CC"; then
1362   ac_cv_prog_CC="$CC" # Let the user override the test.
1363 else
1364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1365 for as_dir in $PATH
1366 do
1367   IFS=$as_save_IFS
1368   test -z "$as_dir" && as_dir=.
1369   for ac_exec_ext in '' $ac_executable_extensions; do
1370   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1371     ac_cv_prog_CC="${ac_tool_prefix}cc"
1372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1373     break 2
1374   fi
1375 done
1376 done
1377
1378 fi
1379 fi
1380 CC=$ac_cv_prog_CC
1381 if test -n "$CC"; then
1382   echo "$as_me:$LINENO: result: $CC" >&5
1383 echo "${ECHO_T}$CC" >&6
1384 else
1385   echo "$as_me:$LINENO: result: no" >&5
1386 echo "${ECHO_T}no" >&6
1387 fi
1388
1389 fi
1390 if test -z "$ac_cv_prog_CC"; then
1391   ac_ct_CC=$CC
1392   # Extract the first word of "cc", so it can be a program name with args.
1393 set dummy cc; ac_word=$2
1394 echo "$as_me:$LINENO: checking for $ac_word" >&5
1395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1396 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1397   echo $ECHO_N "(cached) $ECHO_C" >&6
1398 else
1399   if test -n "$ac_ct_CC"; then
1400   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1401 else
1402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1403 for as_dir in $PATH
1404 do
1405   IFS=$as_save_IFS
1406   test -z "$as_dir" && as_dir=.
1407   for ac_exec_ext in '' $ac_executable_extensions; do
1408   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1409     ac_cv_prog_ac_ct_CC="cc"
1410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1411     break 2
1412   fi
1413 done
1414 done
1415
1416 fi
1417 fi
1418 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1419 if test -n "$ac_ct_CC"; then
1420   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1421 echo "${ECHO_T}$ac_ct_CC" >&6
1422 else
1423   echo "$as_me:$LINENO: result: no" >&5
1424 echo "${ECHO_T}no" >&6
1425 fi
1426
1427   CC=$ac_ct_CC
1428 else
1429   CC="$ac_cv_prog_CC"
1430 fi
1431
1432 fi
1433 if test -z "$CC"; then
1434   # Extract the first word of "cc", so it can be a program name with args.
1435 set dummy cc; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_prog_CC+set}" = set; then
1439   echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441   if test -n "$CC"; then
1442   ac_cv_prog_CC="$CC" # Let the user override the test.
1443 else
1444   ac_prog_rejected=no
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446 for as_dir in $PATH
1447 do
1448   IFS=$as_save_IFS
1449   test -z "$as_dir" && as_dir=.
1450   for ac_exec_ext in '' $ac_executable_extensions; do
1451   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1453        ac_prog_rejected=yes
1454        continue
1455      fi
1456     ac_cv_prog_CC="cc"
1457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458     break 2
1459   fi
1460 done
1461 done
1462
1463 if test $ac_prog_rejected = yes; then
1464   # We found a bogon in the path, so make sure we never use it.
1465   set dummy $ac_cv_prog_CC
1466   shift
1467   if test $# != 0; then
1468     # We chose a different compiler from the bogus one.
1469     # However, it has the same basename, so the bogon will be chosen
1470     # first if we set CC to just the basename; use the full file name.
1471     shift
1472     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1473   fi
1474 fi
1475 fi
1476 fi
1477 CC=$ac_cv_prog_CC
1478 if test -n "$CC"; then
1479   echo "$as_me:$LINENO: result: $CC" >&5
1480 echo "${ECHO_T}$CC" >&6
1481 else
1482   echo "$as_me:$LINENO: result: no" >&5
1483 echo "${ECHO_T}no" >&6
1484 fi
1485
1486 fi
1487 if test -z "$CC"; then
1488   if test -n "$ac_tool_prefix"; then
1489   for ac_prog in cl
1490   do
1491     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1493 echo "$as_me:$LINENO: checking for $ac_word" >&5
1494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495 if test "${ac_cv_prog_CC+set}" = set; then
1496   echo $ECHO_N "(cached) $ECHO_C" >&6
1497 else
1498   if test -n "$CC"; then
1499   ac_cv_prog_CC="$CC" # Let the user override the test.
1500 else
1501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502 for as_dir in $PATH
1503 do
1504   IFS=$as_save_IFS
1505   test -z "$as_dir" && as_dir=.
1506   for ac_exec_ext in '' $ac_executable_extensions; do
1507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1508     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510     break 2
1511   fi
1512 done
1513 done
1514
1515 fi
1516 fi
1517 CC=$ac_cv_prog_CC
1518 if test -n "$CC"; then
1519   echo "$as_me:$LINENO: result: $CC" >&5
1520 echo "${ECHO_T}$CC" >&6
1521 else
1522   echo "$as_me:$LINENO: result: no" >&5
1523 echo "${ECHO_T}no" >&6
1524 fi
1525
1526     test -n "$CC" && break
1527   done
1528 fi
1529 if test -z "$CC"; then
1530   ac_ct_CC=$CC
1531   for ac_prog in cl
1532 do
1533   # Extract the first word of "$ac_prog", so it can be a program name with args.
1534 set dummy $ac_prog; ac_word=$2
1535 echo "$as_me:$LINENO: checking for $ac_word" >&5
1536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1538   echo $ECHO_N "(cached) $ECHO_C" >&6
1539 else
1540   if test -n "$ac_ct_CC"; then
1541   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1542 else
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 for as_dir in $PATH
1545 do
1546   IFS=$as_save_IFS
1547   test -z "$as_dir" && as_dir=.
1548   for ac_exec_ext in '' $ac_executable_extensions; do
1549   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550     ac_cv_prog_ac_ct_CC="$ac_prog"
1551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552     break 2
1553   fi
1554 done
1555 done
1556
1557 fi
1558 fi
1559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1560 if test -n "$ac_ct_CC"; then
1561   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1562 echo "${ECHO_T}$ac_ct_CC" >&6
1563 else
1564   echo "$as_me:$LINENO: result: no" >&5
1565 echo "${ECHO_T}no" >&6
1566 fi
1567
1568   test -n "$ac_ct_CC" && break
1569 done
1570
1571   CC=$ac_ct_CC
1572 fi
1573
1574 fi
1575
1576
1577 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1578 See \`config.log' for more details." >&5
1579 echo "$as_me: error: no acceptable C compiler found in \$PATH
1580 See \`config.log' for more details." >&2;}
1581    { (exit 1); exit 1; }; }
1582
1583 # Provide some information about the compiler.
1584 echo "$as_me:$LINENO:" \
1585      "checking for C compiler version" >&5
1586 ac_compiler=`set X $ac_compile; echo $2`
1587 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1588   (eval $ac_compiler --version </dev/null >&5) 2>&5
1589   ac_status=$?
1590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1591   (exit $ac_status); }
1592 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1593   (eval $ac_compiler -v </dev/null >&5) 2>&5
1594   ac_status=$?
1595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1596   (exit $ac_status); }
1597 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1598   (eval $ac_compiler -V </dev/null >&5) 2>&5
1599   ac_status=$?
1600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1601   (exit $ac_status); }
1602
1603 cat >conftest.$ac_ext <<_ACEOF
1604 /* confdefs.h.  */
1605 _ACEOF
1606 cat confdefs.h >>conftest.$ac_ext
1607 cat >>conftest.$ac_ext <<_ACEOF
1608 /* end confdefs.h.  */
1609
1610 int
1611 main ()
1612 {
1613
1614   ;
1615   return 0;
1616 }
1617 _ACEOF
1618 ac_clean_files_save=$ac_clean_files
1619 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1620 # Try to create an executable without -o first, disregard a.out.
1621 # It will help us diagnose broken compilers, and finding out an intuition
1622 # of exeext.
1623 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1624 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1625 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1626 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1627   (eval $ac_link_default) 2>&5
1628   ac_status=$?
1629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1630   (exit $ac_status); }; then
1631   # Find the output, starting from the most likely.  This scheme is
1632 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1633 # resort.
1634
1635 # Be careful to initialize this variable, since it used to be cached.
1636 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1637 ac_cv_exeext=
1638 # b.out is created by i960 compilers.
1639 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1640 do
1641   test -f "$ac_file" || continue
1642   case $ac_file in
1643     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1644         ;;
1645     conftest.$ac_ext )
1646         # This is the source file.
1647         ;;
1648     [ab].out )
1649         # We found the default executable, but exeext='' is most
1650         # certainly right.
1651         break;;
1652     *.* )
1653         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1654         # FIXME: I believe we export ac_cv_exeext for Libtool,
1655         # but it would be cool to find out if it's true.  Does anybody
1656         # maintain Libtool? --akim.
1657         export ac_cv_exeext
1658         break;;
1659     * )
1660         break;;
1661   esac
1662 done
1663 else
1664   echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1668 See \`config.log' for more details." >&5
1669 echo "$as_me: error: C compiler cannot create executables
1670 See \`config.log' for more details." >&2;}
1671    { (exit 77); exit 77; }; }
1672 fi
1673
1674 ac_exeext=$ac_cv_exeext
1675 echo "$as_me:$LINENO: result: $ac_file" >&5
1676 echo "${ECHO_T}$ac_file" >&6
1677
1678 # Check the compiler produces executables we can run.  If not, either
1679 # the compiler is broken, or we cross compile.
1680 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1681 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1682 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1683 # If not cross compiling, check that we can run a simple program.
1684 if test "$cross_compiling" != yes; then
1685   if { ac_try='./$ac_file'
1686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1687   (eval $ac_try) 2>&5
1688   ac_status=$?
1689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1690   (exit $ac_status); }; }; then
1691     cross_compiling=no
1692   else
1693     if test "$cross_compiling" = maybe; then
1694         cross_compiling=yes
1695     else
1696         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1697 If you meant to cross compile, use \`--host'.
1698 See \`config.log' for more details." >&5
1699 echo "$as_me: error: cannot run C compiled programs.
1700 If you meant to cross compile, use \`--host'.
1701 See \`config.log' for more details." >&2;}
1702    { (exit 1); exit 1; }; }
1703     fi
1704   fi
1705 fi
1706 echo "$as_me:$LINENO: result: yes" >&5
1707 echo "${ECHO_T}yes" >&6
1708
1709 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1710 ac_clean_files=$ac_clean_files_save
1711 # Check the compiler produces executables we can run.  If not, either
1712 # the compiler is broken, or we cross compile.
1713 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1714 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1715 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1716 echo "${ECHO_T}$cross_compiling" >&6
1717
1718 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1719 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1721   (eval $ac_link) 2>&5
1722   ac_status=$?
1723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724   (exit $ac_status); }; then
1725   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1726 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1727 # work properly (i.e., refer to `conftest.exe'), while it won't with
1728 # `rm'.
1729 for ac_file in conftest.exe conftest conftest.*; do
1730   test -f "$ac_file" || continue
1731   case $ac_file in
1732     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1733     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1734           export ac_cv_exeext
1735           break;;
1736     * ) break;;
1737   esac
1738 done
1739 else
1740   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1741 See \`config.log' for more details." >&5
1742 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1743 See \`config.log' for more details." >&2;}
1744    { (exit 1); exit 1; }; }
1745 fi
1746
1747 rm -f conftest$ac_cv_exeext
1748 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1749 echo "${ECHO_T}$ac_cv_exeext" >&6
1750
1751 rm -f conftest.$ac_ext
1752 EXEEXT=$ac_cv_exeext
1753 ac_exeext=$EXEEXT
1754 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1755 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1756 if test "${ac_cv_objext+set}" = set; then
1757   echo $ECHO_N "(cached) $ECHO_C" >&6
1758 else
1759   cat >conftest.$ac_ext <<_ACEOF
1760 /* confdefs.h.  */
1761 _ACEOF
1762 cat confdefs.h >>conftest.$ac_ext
1763 cat >>conftest.$ac_ext <<_ACEOF
1764 /* end confdefs.h.  */
1765
1766 int
1767 main ()
1768 {
1769
1770   ;
1771   return 0;
1772 }
1773 _ACEOF
1774 rm -f conftest.o conftest.obj
1775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1776   (eval $ac_compile) 2>&5
1777   ac_status=$?
1778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1779   (exit $ac_status); }; then
1780   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1781   case $ac_file in
1782     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1783     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1784        break;;
1785   esac
1786 done
1787 else
1788   echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1792 See \`config.log' for more details." >&5
1793 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1794 See \`config.log' for more details." >&2;}
1795    { (exit 1); exit 1; }; }
1796 fi
1797
1798 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1799 fi
1800 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1801 echo "${ECHO_T}$ac_cv_objext" >&6
1802 OBJEXT=$ac_cv_objext
1803 ac_objext=$OBJEXT
1804 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1805 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1806 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1807   echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809   cat >conftest.$ac_ext <<_ACEOF
1810 /* confdefs.h.  */
1811 _ACEOF
1812 cat confdefs.h >>conftest.$ac_ext
1813 cat >>conftest.$ac_ext <<_ACEOF
1814 /* end confdefs.h.  */
1815
1816 int
1817 main ()
1818 {
1819 #ifndef __GNUC__
1820        choke me
1821 #endif
1822
1823   ;
1824   return 0;
1825 }
1826 _ACEOF
1827 rm -f conftest.$ac_objext
1828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1829   (eval $ac_compile) 2>conftest.er1
1830   ac_status=$?
1831   grep -v '^ *+' conftest.er1 >conftest.err
1832   rm -f conftest.er1
1833   cat conftest.err >&5
1834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835   (exit $ac_status); } &&
1836          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1838   (eval $ac_try) 2>&5
1839   ac_status=$?
1840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841   (exit $ac_status); }; } &&
1842          { ac_try='test -s conftest.$ac_objext'
1843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1844   (eval $ac_try) 2>&5
1845   ac_status=$?
1846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847   (exit $ac_status); }; }; then
1848   ac_compiler_gnu=yes
1849 else
1850   echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 ac_compiler_gnu=no
1854 fi
1855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1856 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1857
1858 fi
1859 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1860 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1861 GCC=`test $ac_compiler_gnu = yes && echo yes`
1862 ac_test_CFLAGS=${CFLAGS+set}
1863 ac_save_CFLAGS=$CFLAGS
1864 CFLAGS="-g"
1865 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1866 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1867 if test "${ac_cv_prog_cc_g+set}" = set; then
1868   echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870   cat >conftest.$ac_ext <<_ACEOF
1871 /* confdefs.h.  */
1872 _ACEOF
1873 cat confdefs.h >>conftest.$ac_ext
1874 cat >>conftest.$ac_ext <<_ACEOF
1875 /* end confdefs.h.  */
1876
1877 int
1878 main ()
1879 {
1880
1881   ;
1882   return 0;
1883 }
1884 _ACEOF
1885 rm -f conftest.$ac_objext
1886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1887   (eval $ac_compile) 2>conftest.er1
1888   ac_status=$?
1889   grep -v '^ *+' conftest.er1 >conftest.err
1890   rm -f conftest.er1
1891   cat conftest.err >&5
1892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1893   (exit $ac_status); } &&
1894          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1896   (eval $ac_try) 2>&5
1897   ac_status=$?
1898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1899   (exit $ac_status); }; } &&
1900          { ac_try='test -s conftest.$ac_objext'
1901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1902   (eval $ac_try) 2>&5
1903   ac_status=$?
1904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905   (exit $ac_status); }; }; then
1906   ac_cv_prog_cc_g=yes
1907 else
1908   echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1910
1911 ac_cv_prog_cc_g=no
1912 fi
1913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1914 fi
1915 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1916 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1917 if test "$ac_test_CFLAGS" = set; then
1918   CFLAGS=$ac_save_CFLAGS
1919 elif test $ac_cv_prog_cc_g = yes; then
1920   if test "$GCC" = yes; then
1921     CFLAGS="-g -O2"
1922   else
1923     CFLAGS="-g"
1924   fi
1925 else
1926   if test "$GCC" = yes; then
1927     CFLAGS="-O2"
1928   else
1929     CFLAGS=
1930   fi
1931 fi
1932 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1933 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1934 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1935   echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937   ac_cv_prog_cc_stdc=no
1938 ac_save_CC=$CC
1939 cat >conftest.$ac_ext <<_ACEOF
1940 /* confdefs.h.  */
1941 _ACEOF
1942 cat confdefs.h >>conftest.$ac_ext
1943 cat >>conftest.$ac_ext <<_ACEOF
1944 /* end confdefs.h.  */
1945 #include <stdarg.h>
1946 #include <stdio.h>
1947 #include <sys/types.h>
1948 #include <sys/stat.h>
1949 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1950 struct buf { int x; };
1951 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1952 static char *e (p, i)
1953      char **p;
1954      int i;
1955 {
1956   return p[i];
1957 }
1958 static char *f (char * (*g) (char **, int), char **p, ...)
1959 {
1960   char *s;
1961   va_list v;
1962   va_start (v,p);
1963   s = g (p, va_arg (v,int));
1964   va_end (v);
1965   return s;
1966 }
1967
1968 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
1969    function prototypes and stuff, but not '\xHH' hex character constants.
1970    These don't provoke an error unfortunately, instead are silently treated
1971    as 'x'.  The following induces an error, until -std1 is added to get
1972    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
1973    array size at least.  It's necessary to write '\x00'==0 to get something
1974    that's true only with -std1.  */
1975 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1976
1977 int test (int i, double x);
1978 struct s1 {int (*f) (int a);};
1979 struct s2 {int (*f) (double a);};
1980 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1981 int argc;
1982 char **argv;
1983 int
1984 main ()
1985 {
1986 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1987   ;
1988   return 0;
1989 }
1990 _ACEOF
1991 # Don't try gcc -ansi; that turns off useful extensions and
1992 # breaks some systems' header files.
1993 # AIX                   -qlanglvl=ansi
1994 # Ultrix and OSF/1      -std1
1995 # HP-UX 10.20 and later -Ae
1996 # HP-UX older versions  -Aa -D_HPUX_SOURCE
1997 # SVR4                  -Xc -D__EXTENSIONS__
1998 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1999 do
2000   CC="$ac_save_CC $ac_arg"
2001   rm -f conftest.$ac_objext
2002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2003   (eval $ac_compile) 2>conftest.er1
2004   ac_status=$?
2005   grep -v '^ *+' conftest.er1 >conftest.err
2006   rm -f conftest.er1
2007   cat conftest.err >&5
2008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009   (exit $ac_status); } &&
2010          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012   (eval $ac_try) 2>&5
2013   ac_status=$?
2014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015   (exit $ac_status); }; } &&
2016          { ac_try='test -s conftest.$ac_objext'
2017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2018   (eval $ac_try) 2>&5
2019   ac_status=$?
2020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021   (exit $ac_status); }; }; then
2022   ac_cv_prog_cc_stdc=$ac_arg
2023 break
2024 else
2025   echo "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2027
2028 fi
2029 rm -f conftest.err conftest.$ac_objext
2030 done
2031 rm -f conftest.$ac_ext conftest.$ac_objext
2032 CC=$ac_save_CC
2033
2034 fi
2035
2036 case "x$ac_cv_prog_cc_stdc" in
2037   x|xno)
2038     echo "$as_me:$LINENO: result: none needed" >&5
2039 echo "${ECHO_T}none needed" >&6 ;;
2040   *)
2041     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2042 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2043     CC="$CC $ac_cv_prog_cc_stdc" ;;
2044 esac
2045
2046 # Some people use a C++ compiler to compile C.  Since we use `exit',
2047 # in C++ we need to declare it.  In case someone uses the same compiler
2048 # for both compiling C and C++ we need to have the C++ compiler decide
2049 # the declaration of exit, since it's the most demanding environment.
2050 cat >conftest.$ac_ext <<_ACEOF
2051 #ifndef __cplusplus
2052   choke me
2053 #endif
2054 _ACEOF
2055 rm -f conftest.$ac_objext
2056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2057   (eval $ac_compile) 2>conftest.er1
2058   ac_status=$?
2059   grep -v '^ *+' conftest.er1 >conftest.err
2060   rm -f conftest.er1
2061   cat conftest.err >&5
2062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063   (exit $ac_status); } &&
2064          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066   (eval $ac_try) 2>&5
2067   ac_status=$?
2068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069   (exit $ac_status); }; } &&
2070          { ac_try='test -s conftest.$ac_objext'
2071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072   (eval $ac_try) 2>&5
2073   ac_status=$?
2074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075   (exit $ac_status); }; }; then
2076   for ac_declaration in \
2077    '' \
2078    'extern "C" void std::exit (int) throw (); using std::exit;' \
2079    'extern "C" void std::exit (int); using std::exit;' \
2080    'extern "C" void exit (int) throw ();' \
2081    'extern "C" void exit (int);' \
2082    'void exit (int);'
2083 do
2084   cat >conftest.$ac_ext <<_ACEOF
2085 /* confdefs.h.  */
2086 _ACEOF
2087 cat confdefs.h >>conftest.$ac_ext
2088 cat >>conftest.$ac_ext <<_ACEOF
2089 /* end confdefs.h.  */
2090 $ac_declaration
2091 #include <stdlib.h>
2092 int
2093 main ()
2094 {
2095 exit (42);
2096   ;
2097   return 0;
2098 }
2099 _ACEOF
2100 rm -f conftest.$ac_objext
2101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2102   (eval $ac_compile) 2>conftest.er1
2103   ac_status=$?
2104   grep -v '^ *+' conftest.er1 >conftest.err
2105   rm -f conftest.er1
2106   cat conftest.err >&5
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); } &&
2109          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111   (eval $ac_try) 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }; } &&
2115          { ac_try='test -s conftest.$ac_objext'
2116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117   (eval $ac_try) 2>&5
2118   ac_status=$?
2119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120   (exit $ac_status); }; }; then
2121   :
2122 else
2123   echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2125
2126 continue
2127 fi
2128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2129   cat >conftest.$ac_ext <<_ACEOF
2130 /* confdefs.h.  */
2131 _ACEOF
2132 cat confdefs.h >>conftest.$ac_ext
2133 cat >>conftest.$ac_ext <<_ACEOF
2134 /* end confdefs.h.  */
2135 $ac_declaration
2136 int
2137 main ()
2138 {
2139 exit (42);
2140   ;
2141   return 0;
2142 }
2143 _ACEOF
2144 rm -f conftest.$ac_objext
2145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146   (eval $ac_compile) 2>conftest.er1
2147   ac_status=$?
2148   grep -v '^ *+' conftest.er1 >conftest.err
2149   rm -f conftest.er1
2150   cat conftest.err >&5
2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152   (exit $ac_status); } &&
2153          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155   (eval $ac_try) 2>&5
2156   ac_status=$?
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); }; } &&
2159          { ac_try='test -s conftest.$ac_objext'
2160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161   (eval $ac_try) 2>&5
2162   ac_status=$?
2163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164   (exit $ac_status); }; }; then
2165   break
2166 else
2167   echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2169
2170 fi
2171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2172 done
2173 rm -f conftest*
2174 if test -n "$ac_declaration"; then
2175   echo '#ifdef __cplusplus' >>confdefs.h
2176   echo $ac_declaration      >>confdefs.h
2177   echo '#endif'             >>confdefs.h
2178 fi
2179
2180 else
2181   echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2183
2184 fi
2185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2186 ac_ext=c
2187 ac_cpp='$CPP $CPPFLAGS'
2188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191
2192 ac_aux_dir=
2193 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2194   if test -f $ac_dir/install-sh; then
2195     ac_aux_dir=$ac_dir
2196     ac_install_sh="$ac_aux_dir/install-sh -c"
2197     break
2198   elif test -f $ac_dir/install.sh; then
2199     ac_aux_dir=$ac_dir
2200     ac_install_sh="$ac_aux_dir/install.sh -c"
2201     break
2202   elif test -f $ac_dir/shtool; then
2203     ac_aux_dir=$ac_dir
2204     ac_install_sh="$ac_aux_dir/shtool install -c"
2205     break
2206   fi
2207 done
2208 if test -z "$ac_aux_dir"; then
2209   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2210 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2211    { (exit 1); exit 1; }; }
2212 fi
2213 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2214 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2215 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2216
2217 # Find a good install program.  We prefer a C program (faster),
2218 # so one script is as good as another.  But avoid the broken or
2219 # incompatible versions:
2220 # SysV /etc/install, /usr/sbin/install
2221 # SunOS /usr/etc/install
2222 # IRIX /sbin/install
2223 # AIX /bin/install
2224 # AmigaOS /C/install, which installs bootblocks on floppy discs
2225 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2226 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2227 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2228 # OS/2's system install, which has a completely different semantic
2229 # ./install, which can be erroneously created by make from ./install.sh.
2230 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2231 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2232 if test -z "$INSTALL"; then
2233 if test "${ac_cv_path_install+set}" = set; then
2234   echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
2239   IFS=$as_save_IFS
2240   test -z "$as_dir" && as_dir=.
2241   # Account for people who put trailing slashes in PATH elements.
2242 case $as_dir/ in
2243   ./ | .// | /cC/* | \
2244   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2245   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2246   /usr/ucb/* ) ;;
2247   *)
2248     # OSF1 and SCO ODT 3.0 have their own names for install.
2249     # Don't use installbsd from OSF since it installs stuff as root
2250     # by default.
2251     for ac_prog in ginstall scoinst install; do
2252       for ac_exec_ext in '' $ac_executable_extensions; do
2253         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2254           if test $ac_prog = install &&
2255             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2256             # AIX install.  It has an incompatible calling convention.
2257             :
2258           elif test $ac_prog = install &&
2259             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2260             # program-specific install script used by HP pwplus--don't use.
2261             :
2262           else
2263             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2264             break 3
2265           fi
2266         fi
2267       done
2268     done
2269     ;;
2270 esac
2271 done
2272
2273
2274 fi
2275   if test "${ac_cv_path_install+set}" = set; then
2276     INSTALL=$ac_cv_path_install
2277   else
2278     # As a last resort, use the slow shell script.  We don't cache a
2279     # path for INSTALL within a source directory, because that will
2280     # break other packages using the cache if that directory is
2281     # removed, or if the path is relative.
2282     INSTALL=$ac_install_sh
2283   fi
2284 fi
2285 echo "$as_me:$LINENO: result: $INSTALL" >&5
2286 echo "${ECHO_T}$INSTALL" >&6
2287
2288 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2289 # It thinks the first close brace ends the variable substitution.
2290 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2291
2292 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2293
2294 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2295
2296 if test -n "$ac_tool_prefix"; then
2297   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2298 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2299 echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2301 if test "${ac_cv_prog_RANLIB+set}" = set; then
2302   echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304   if test -n "$RANLIB"; then
2305   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2306 else
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2309 do
2310   IFS=$as_save_IFS
2311   test -z "$as_dir" && as_dir=.
2312   for ac_exec_ext in '' $ac_executable_extensions; do
2313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2314     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316     break 2
2317   fi
2318 done
2319 done
2320
2321 fi
2322 fi
2323 RANLIB=$ac_cv_prog_RANLIB
2324 if test -n "$RANLIB"; then
2325   echo "$as_me:$LINENO: result: $RANLIB" >&5
2326 echo "${ECHO_T}$RANLIB" >&6
2327 else
2328   echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6
2330 fi
2331
2332 fi
2333 if test -z "$ac_cv_prog_RANLIB"; then
2334   ac_ct_RANLIB=$RANLIB
2335   # Extract the first word of "ranlib", so it can be a program name with args.
2336 set dummy ranlib; ac_word=$2
2337 echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2339 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2340   echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342   if test -n "$ac_ct_RANLIB"; then
2343   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348   IFS=$as_save_IFS
2349   test -z "$as_dir" && as_dir=.
2350   for ac_exec_ext in '' $ac_executable_extensions; do
2351   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2352     ac_cv_prog_ac_ct_RANLIB="ranlib"
2353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354     break 2
2355   fi
2356 done
2357 done
2358
2359   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2360 fi
2361 fi
2362 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2363 if test -n "$ac_ct_RANLIB"; then
2364   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2365 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2366 else
2367   echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6
2369 fi
2370
2371   RANLIB=$ac_ct_RANLIB
2372 else
2373   RANLIB="$ac_cv_prog_RANLIB"
2374 fi
2375
2376
2377
2378 ac_ext=c
2379 ac_cpp='$CPP $CPPFLAGS'
2380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2383 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2384 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2385 # On Suns, sometimes $CPP names a directory.
2386 if test -n "$CPP" && test -d "$CPP"; then
2387   CPP=
2388 fi
2389 if test -z "$CPP"; then
2390   if test "${ac_cv_prog_CPP+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393       # Double quotes because CPP needs to be expanded
2394     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2395     do
2396       ac_preproc_ok=false
2397 for ac_c_preproc_warn_flag in '' yes
2398 do
2399   # Use a header file that comes with gcc, so configuring glibc
2400   # with a fresh cross-compiler works.
2401   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2402   # <limits.h> exists even on freestanding compilers.
2403   # On the NeXT, cc -E runs the code through the compiler's parser,
2404   # not just through cpp. "Syntax error" is here to catch this case.
2405   cat >conftest.$ac_ext <<_ACEOF
2406 /* confdefs.h.  */
2407 _ACEOF
2408 cat confdefs.h >>conftest.$ac_ext
2409 cat >>conftest.$ac_ext <<_ACEOF
2410 /* end confdefs.h.  */
2411 #ifdef __STDC__
2412 # include <limits.h>
2413 #else
2414 # include <assert.h>
2415 #endif
2416                      Syntax error
2417 _ACEOF
2418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2419   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2420   ac_status=$?
2421   grep -v '^ *+' conftest.er1 >conftest.err
2422   rm -f conftest.er1
2423   cat conftest.err >&5
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); } >/dev/null; then
2426   if test -s conftest.err; then
2427     ac_cpp_err=$ac_c_preproc_warn_flag
2428     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2429   else
2430     ac_cpp_err=
2431   fi
2432 else
2433   ac_cpp_err=yes
2434 fi
2435 if test -z "$ac_cpp_err"; then
2436   :
2437 else
2438   echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2440
2441   # Broken: fails on valid input.
2442 continue
2443 fi
2444 rm -f conftest.err conftest.$ac_ext
2445
2446   # OK, works on sane cases.  Now check whether non-existent headers
2447   # can be detected and how.
2448   cat >conftest.$ac_ext <<_ACEOF
2449 /* confdefs.h.  */
2450 _ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h.  */
2454 #include <ac_nonexistent.h>
2455 _ACEOF
2456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2457   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2458   ac_status=$?
2459   grep -v '^ *+' conftest.er1 >conftest.err
2460   rm -f conftest.er1
2461   cat conftest.err >&5
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); } >/dev/null; then
2464   if test -s conftest.err; then
2465     ac_cpp_err=$ac_c_preproc_warn_flag
2466     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2467   else
2468     ac_cpp_err=
2469   fi
2470 else
2471   ac_cpp_err=yes
2472 fi
2473 if test -z "$ac_cpp_err"; then
2474   # Broken: success on invalid input.
2475 continue
2476 else
2477   echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2479
2480   # Passes both tests.
2481 ac_preproc_ok=:
2482 break
2483 fi
2484 rm -f conftest.err conftest.$ac_ext
2485
2486 done
2487 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2488 rm -f conftest.err conftest.$ac_ext
2489 if $ac_preproc_ok; then
2490   break
2491 fi
2492
2493     done
2494     ac_cv_prog_CPP=$CPP
2495
2496 fi
2497   CPP=$ac_cv_prog_CPP
2498 else
2499   ac_cv_prog_CPP=$CPP
2500 fi
2501 echo "$as_me:$LINENO: result: $CPP" >&5
2502 echo "${ECHO_T}$CPP" >&6
2503 ac_preproc_ok=false
2504 for ac_c_preproc_warn_flag in '' yes
2505 do
2506   # Use a header file that comes with gcc, so configuring glibc
2507   # with a fresh cross-compiler works.
2508   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2509   # <limits.h> exists even on freestanding compilers.
2510   # On the NeXT, cc -E runs the code through the compiler's parser,
2511   # not just through cpp. "Syntax error" is here to catch this case.
2512   cat >conftest.$ac_ext <<_ACEOF
2513 /* confdefs.h.  */
2514 _ACEOF
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h.  */
2518 #ifdef __STDC__
2519 # include <limits.h>
2520 #else
2521 # include <assert.h>
2522 #endif
2523                      Syntax error
2524 _ACEOF
2525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2526   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2527   ac_status=$?
2528   grep -v '^ *+' conftest.er1 >conftest.err
2529   rm -f conftest.er1
2530   cat conftest.err >&5
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); } >/dev/null; then
2533   if test -s conftest.err; then
2534     ac_cpp_err=$ac_c_preproc_warn_flag
2535     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2536   else
2537     ac_cpp_err=
2538   fi
2539 else
2540   ac_cpp_err=yes
2541 fi
2542 if test -z "$ac_cpp_err"; then
2543   :
2544 else
2545   echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2547
2548   # Broken: fails on valid input.
2549 continue
2550 fi
2551 rm -f conftest.err conftest.$ac_ext
2552
2553   # OK, works on sane cases.  Now check whether non-existent headers
2554   # can be detected and how.
2555   cat >conftest.$ac_ext <<_ACEOF
2556 /* confdefs.h.  */
2557 _ACEOF
2558 cat confdefs.h >>conftest.$ac_ext
2559 cat >>conftest.$ac_ext <<_ACEOF
2560 /* end confdefs.h.  */
2561 #include <ac_nonexistent.h>
2562 _ACEOF
2563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2565   ac_status=$?
2566   grep -v '^ *+' conftest.er1 >conftest.err
2567   rm -f conftest.er1
2568   cat conftest.err >&5
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); } >/dev/null; then
2571   if test -s conftest.err; then
2572     ac_cpp_err=$ac_c_preproc_warn_flag
2573     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2574   else
2575     ac_cpp_err=
2576   fi
2577 else
2578   ac_cpp_err=yes
2579 fi
2580 if test -z "$ac_cpp_err"; then
2581   # Broken: success on invalid input.
2582 continue
2583 else
2584   echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2586
2587   # Passes both tests.
2588 ac_preproc_ok=:
2589 break
2590 fi
2591 rm -f conftest.err conftest.$ac_ext
2592
2593 done
2594 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2595 rm -f conftest.err conftest.$ac_ext
2596 if $ac_preproc_ok; then
2597   :
2598 else
2599   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2600 See \`config.log' for more details." >&5
2601 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2602 See \`config.log' for more details." >&2;}
2603    { (exit 1); exit 1; }; }
2604 fi
2605
2606 ac_ext=c
2607 ac_cpp='$CPP $CPPFLAGS'
2608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2611
2612
2613 echo "$as_me:$LINENO: checking for egrep" >&5
2614 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2615 if test "${ac_cv_prog_egrep+set}" = set; then
2616   echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2619     then ac_cv_prog_egrep='grep -E'
2620     else ac_cv_prog_egrep='egrep'
2621     fi
2622 fi
2623 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2624 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2625  EGREP=$ac_cv_prog_egrep
2626
2627
2628 cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h.  */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h.  */
2634 #include <pwd.h>
2635
2636 _ACEOF
2637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2638   $EGREP "pw_quota" >/dev/null 2>&1; then
2639   cat >>confdefs.h <<\_ACEOF
2640 #define HAVE_PW_QUOTA 1
2641 _ACEOF
2642
2643 fi
2644 rm -f conftest*
2645
2646 cat >conftest.$ac_ext <<_ACEOF
2647 /* confdefs.h.  */
2648 _ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h.  */
2652 #include <pwd.h>
2653
2654 _ACEOF
2655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2656   $EGREP "pw_comment" >/dev/null 2>&1; then
2657   cat >>confdefs.h <<\_ACEOF
2658 #define HAVE_PW_COMMENT 1
2659 _ACEOF
2660
2661 fi
2662 rm -f conftest*
2663
2664 cat >conftest.$ac_ext <<_ACEOF
2665 /* confdefs.h.  */
2666 _ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h.  */
2670 #include <pwd.h>
2671
2672 _ACEOF
2673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2674   $EGREP "pw_class" >/dev/null 2>&1; then
2675   cat >>confdefs.h <<\_ACEOF
2676 #define HAVE_PW_CLASS 1
2677 _ACEOF
2678
2679 fi
2680 rm -f conftest*
2681
2682 cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h.  */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h.  */
2688 #include <pwd.h>
2689
2690 _ACEOF
2691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2692   $EGREP "pw_change" >/dev/null 2>&1; then
2693   cat >>confdefs.h <<\_ACEOF
2694 #define HAVE_PW_CHANGE 1
2695 _ACEOF
2696
2697 fi
2698 rm -f conftest*
2699
2700 cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h.  */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h.  */
2706 #include <pwd.h>
2707
2708 _ACEOF
2709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2710   $EGREP "pw_expire" >/dev/null 2>&1; then
2711   cat >>confdefs.h <<\_ACEOF
2712 #define HAVE_PW_EXPIRE 1
2713 _ACEOF
2714
2715 fi
2716 rm -f conftest*
2717
2718
2719 echo "$as_me:$LINENO: checking for res_ninit" >&5
2720 echo $ECHO_N "checking for res_ninit... $ECHO_C" >&6
2721 if test "${ac_cv_func_res_ninit+set}" = set; then
2722   echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724   cat >conftest.$ac_ext <<_ACEOF
2725 /* confdefs.h.  */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h.  */
2730 /* Define res_ninit to an innocuous variant, in case <limits.h> declares res_ninit.
2731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2732 #define res_ninit innocuous_res_ninit
2733
2734 /* System header to define __stub macros and hopefully few prototypes,
2735     which can conflict with char res_ninit (); below.
2736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2737     <limits.h> exists even on freestanding compilers.  */
2738
2739 #ifdef __STDC__
2740 # include <limits.h>
2741 #else
2742 # include <assert.h>
2743 #endif
2744
2745 #undef res_ninit
2746
2747 /* Override any gcc2 internal prototype to avoid an error.  */
2748 #ifdef __cplusplus
2749 extern "C"
2750 {
2751 #endif
2752 /* We use char because int might match the return type of a gcc2
2753    builtin and then its argument prototype would still apply.  */
2754 char res_ninit ();
2755 /* The GNU C library defines this for functions which it implements
2756     to always fail with ENOSYS.  Some functions are actually named
2757     something starting with __ and the normal name is an alias.  */
2758 #if defined (__stub_res_ninit) || defined (__stub___res_ninit)
2759 choke me
2760 #else
2761 char (*f) () = res_ninit;
2762 #endif
2763 #ifdef __cplusplus
2764 }
2765 #endif
2766
2767 int
2768 main ()
2769 {
2770 return f != res_ninit;
2771   ;
2772   return 0;
2773 }
2774 _ACEOF
2775 rm -f conftest.$ac_objext conftest$ac_exeext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2777   (eval $ac_link) 2>conftest.er1
2778   ac_status=$?
2779   grep -v '^ *+' conftest.er1 >conftest.err
2780   rm -f conftest.er1
2781   cat conftest.err >&5
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); } &&
2784          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786   (eval $ac_try) 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }; } &&
2790          { ac_try='test -s conftest$ac_exeext'
2791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792   (eval $ac_try) 2>&5
2793   ac_status=$?
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); }; }; then
2796   ac_cv_func_res_ninit=yes
2797 else
2798   echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2800
2801 ac_cv_func_res_ninit=no
2802 fi
2803 rm -f conftest.err conftest.$ac_objext \
2804       conftest$ac_exeext conftest.$ac_ext
2805 fi
2806 echo "$as_me:$LINENO: result: $ac_cv_func_res_ninit" >&5
2807 echo "${ECHO_T}$ac_cv_func_res_ninit" >&6
2808 if test $ac_cv_func_res_ninit = yes; then
2809   :
2810 else
2811   echo "$as_me:$LINENO: checking for standalone resolver library existence" >&5
2812 echo $ECHO_N "checking for standalone resolver library existence... $ECHO_C" >&6
2813          old_LIBS="$LIBS"
2814          LIBS="$LIBS -lresolv"
2815          cat >conftest.$ac_ext <<_ACEOF
2816 /* confdefs.h.  */
2817 _ACEOF
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h.  */
2821 #include <resolv.h>
2822 int
2823 main ()
2824 {
2825 res_ninit((void *)0);
2826   ;
2827   return 0;
2828 }
2829 _ACEOF
2830 rm -f conftest.$ac_objext conftest$ac_exeext
2831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2832   (eval $ac_link) 2>conftest.er1
2833   ac_status=$?
2834   grep -v '^ *+' conftest.er1 >conftest.err
2835   rm -f conftest.er1
2836   cat conftest.err >&5
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); } &&
2839          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841   (eval $ac_try) 2>&5
2842   ac_status=$?
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); }; } &&
2845          { ac_try='test -s conftest$ac_exeext'
2846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847   (eval $ac_try) 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; }; then
2851   echo "$as_me:$LINENO: result: found" >&5
2852 echo "${ECHO_T}found" >&6
2853 else
2854   echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2856
2857 LIBS="$old_LIBS"
2858                          { { echo "$as_me:$LINENO: error: not found
2859 See \`config.log' for more details." >&5
2860 echo "$as_me: error: not found
2861 See \`config.log' for more details." >&2;}
2862    { (exit 1); exit 1; }; }
2863 fi
2864 rm -f conftest.err conftest.$ac_objext \
2865       conftest$ac_exeext conftest.$ac_ext
2866 fi
2867
2868
2869
2870 for ac_func in strerror_r
2871 do
2872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2873 echo "$as_me:$LINENO: checking for $ac_func" >&5
2874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2875 if eval "test \"\${$as_ac_var+set}\" = set"; then
2876   echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878   cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h.  */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h.  */
2884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2886 #define $ac_func innocuous_$ac_func
2887
2888 /* System header to define __stub macros and hopefully few prototypes,
2889     which can conflict with char $ac_func (); below.
2890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2891     <limits.h> exists even on freestanding compilers.  */
2892
2893 #ifdef __STDC__
2894 # include <limits.h>
2895 #else
2896 # include <assert.h>
2897 #endif
2898
2899 #undef $ac_func
2900
2901 /* Override any gcc2 internal prototype to avoid an error.  */
2902 #ifdef __cplusplus
2903 extern "C"
2904 {
2905 #endif
2906 /* We use char because int might match the return type of a gcc2
2907    builtin and then its argument prototype would still apply.  */
2908 char $ac_func ();
2909 /* The GNU C library defines this for functions which it implements
2910     to always fail with ENOSYS.  Some functions are actually named
2911     something starting with __ and the normal name is an alias.  */
2912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2913 choke me
2914 #else
2915 char (*f) () = $ac_func;
2916 #endif
2917 #ifdef __cplusplus
2918 }
2919 #endif
2920
2921 int
2922 main ()
2923 {
2924 return f != $ac_func;
2925   ;
2926   return 0;
2927 }
2928 _ACEOF
2929 rm -f conftest.$ac_objext conftest$ac_exeext
2930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2931   (eval $ac_link) 2>conftest.er1
2932   ac_status=$?
2933   grep -v '^ *+' conftest.er1 >conftest.err
2934   rm -f conftest.er1
2935   cat conftest.err >&5
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); } &&
2938          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940   (eval $ac_try) 2>&5
2941   ac_status=$?
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); }; } &&
2944          { ac_try='test -s conftest$ac_exeext'
2945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946   (eval $ac_try) 2>&5
2947   ac_status=$?
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); }; }; then
2950   eval "$as_ac_var=yes"
2951 else
2952   echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2954
2955 eval "$as_ac_var=no"
2956 fi
2957 rm -f conftest.err conftest.$ac_objext \
2958       conftest$ac_exeext conftest.$ac_ext
2959 fi
2960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2962 if test `eval echo '${'$as_ac_var'}'` = yes; then
2963   cat >>confdefs.h <<_ACEOF
2964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2965 _ACEOF
2966
2967 fi
2968 done
2969
2970
2971           ac_config_headers="$ac_config_headers config.h"
2972
2973           ac_config_files="$ac_config_files Makefile"
2974
2975 cat >confcache <<\_ACEOF
2976 # This file is a shell script that caches the results of configure
2977 # tests run on this system so they can be shared between configure
2978 # scripts and configure runs, see configure's option --config-cache.
2979 # It is not useful on other systems.  If it contains results you don't
2980 # want to keep, you may remove or edit it.
2981 #
2982 # config.status only pays attention to the cache file if you give it
2983 # the --recheck option to rerun configure.
2984 #
2985 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2986 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2987 # following values.
2988
2989 _ACEOF
2990
2991 # The following way of writing the cache mishandles newlines in values,
2992 # but we know of no workaround that is simple, portable, and efficient.
2993 # So, don't put newlines in cache variables' values.
2994 # Ultrix sh set writes to stderr and can't be redirected directly,
2995 # and sets the high bit in the cache file unless we assign to the vars.
2996 {
2997   (set) 2>&1 |
2998     case `(ac_space=' '; set | grep ac_space) 2>&1` in
2999     *ac_space=\ *)
3000       # `set' does not quote correctly, so add quotes (double-quote
3001       # substitution turns \\\\ into \\, and sed turns \\ into \).
3002       sed -n \
3003         "s/'/'\\\\''/g;
3004           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3005       ;;
3006     *)
3007       # `set' quotes correctly as required by POSIX, so do not add quotes.
3008       sed -n \
3009         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3010       ;;
3011     esac;
3012 } |
3013   sed '
3014      t clear
3015      : clear
3016      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3017      t end
3018      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3019      : end' >>confcache
3020 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3021   if test -w $cache_file; then
3022     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3023     cat confcache >$cache_file
3024   else
3025     echo "not updating unwritable cache $cache_file"
3026   fi
3027 fi
3028 rm -f confcache
3029
3030 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3031 # Let make expand exec_prefix.
3032 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3033
3034 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3035 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3036 # trailing colons and then remove the whole line if VPATH becomes empty
3037 # (actually we leave an empty line to preserve line numbers).
3038 if test "x$srcdir" = x.; then
3039   ac_vpsub='/^[  ]*VPATH[        ]*=/{
3040 s/:*\$(srcdir):*/:/;
3041 s/:*\${srcdir}:*/:/;
3042 s/:*@srcdir@:*/:/;
3043 s/^\([^=]*=[     ]*\):*/\1/;
3044 s/:*$//;
3045 s/^[^=]*=[       ]*$//;
3046 }'
3047 fi
3048
3049 DEFS=-DHAVE_CONFIG_H
3050
3051 ac_libobjs=
3052 ac_ltlibobjs=
3053 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3054   # 1. Remove the extension, and $U if already installed.
3055   ac_i=`echo "$ac_i" |
3056          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3057   # 2. Add them.
3058   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3059   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3060 done
3061 LIBOBJS=$ac_libobjs
3062
3063 LTLIBOBJS=$ac_ltlibobjs
3064
3065
3066
3067 : ${CONFIG_STATUS=./config.status}
3068 ac_clean_files_save=$ac_clean_files
3069 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3070 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3071 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3072 cat >$CONFIG_STATUS <<_ACEOF
3073 #! $SHELL
3074 # Generated by $as_me.
3075 # Run this file to recreate the current configuration.
3076 # Compiler output produced by configure, useful for debugging
3077 # configure, is in config.log if it exists.
3078
3079 debug=false
3080 ac_cs_recheck=false
3081 ac_cs_silent=false
3082 SHELL=\${CONFIG_SHELL-$SHELL}
3083 _ACEOF
3084
3085 cat >>$CONFIG_STATUS <<\_ACEOF
3086 ## --------------------- ##
3087 ## M4sh Initialization.  ##
3088 ## --------------------- ##
3089
3090 # Be Bourne compatible
3091 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3092   emulate sh
3093   NULLCMD=:
3094   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3095   # is contrary to our usage.  Disable this feature.
3096   alias -g '${1+"$@"}'='"$@"'
3097 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3098   set -o posix
3099 fi
3100 DUALCASE=1; export DUALCASE # for MKS sh
3101
3102 # Support unset when possible.
3103 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3104   as_unset=unset
3105 else
3106   as_unset=false
3107 fi
3108
3109
3110 # Work around bugs in pre-3.0 UWIN ksh.
3111 $as_unset ENV MAIL MAILPATH
3112 PS1='$ '
3113 PS2='> '
3114 PS4='+ '
3115
3116 # NLS nuisances.
3117 for as_var in \
3118   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3119   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3120   LC_TELEPHONE LC_TIME
3121 do
3122   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3123     eval $as_var=C; export $as_var
3124   else
3125     $as_unset $as_var
3126   fi
3127 done
3128
3129 # Required to use basename.
3130 if expr a : '\(a\)' >/dev/null 2>&1; then
3131   as_expr=expr
3132 else
3133   as_expr=false
3134 fi
3135
3136 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3137   as_basename=basename
3138 else
3139   as_basename=false
3140 fi
3141
3142
3143 # Name of the executable.
3144 as_me=`$as_basename "$0" ||
3145 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3146          X"$0" : 'X\(//\)$' \| \
3147          X"$0" : 'X\(/\)$' \| \
3148          .     : '\(.\)' 2>/dev/null ||
3149 echo X/"$0" |
3150     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3151           /^X\/\(\/\/\)$/{ s//\1/; q; }
3152           /^X\/\(\/\).*/{ s//\1/; q; }
3153           s/.*/./; q'`
3154
3155
3156 # PATH needs CR, and LINENO needs CR and PATH.
3157 # Avoid depending upon Character Ranges.
3158 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3159 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3160 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3161 as_cr_digits='0123456789'
3162 as_cr_alnum=$as_cr_Letters$as_cr_digits
3163
3164 # The user is always right.
3165 if test "${PATH_SEPARATOR+set}" != set; then
3166   echo "#! /bin/sh" >conf$$.sh
3167   echo  "exit 0"   >>conf$$.sh
3168   chmod +x conf$$.sh
3169   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3170     PATH_SEPARATOR=';'
3171   else
3172     PATH_SEPARATOR=:
3173   fi
3174   rm -f conf$$.sh
3175 fi
3176
3177
3178   as_lineno_1=$LINENO
3179   as_lineno_2=$LINENO
3180   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3181   test "x$as_lineno_1" != "x$as_lineno_2" &&
3182   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3183   # Find who we are.  Look in the path if we contain no path at all
3184   # relative or not.
3185   case $0 in
3186     *[\\/]* ) as_myself=$0 ;;
3187     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3193 done
3194
3195        ;;
3196   esac
3197   # We did not find ourselves, most probably we were run as `sh COMMAND'
3198   # in which case we are not to be found in the path.
3199   if test "x$as_myself" = x; then
3200     as_myself=$0
3201   fi
3202   if test ! -f "$as_myself"; then
3203     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3204 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3205    { (exit 1); exit 1; }; }
3206   fi
3207   case $CONFIG_SHELL in
3208   '')
3209     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3211 do
3212   IFS=$as_save_IFS
3213   test -z "$as_dir" && as_dir=.
3214   for as_base in sh bash ksh sh5; do
3215          case $as_dir in
3216          /*)
3217            if ("$as_dir/$as_base" -c '
3218   as_lineno_1=$LINENO
3219   as_lineno_2=$LINENO
3220   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3221   test "x$as_lineno_1" != "x$as_lineno_2" &&
3222   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3223              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3224              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3225              CONFIG_SHELL=$as_dir/$as_base
3226              export CONFIG_SHELL
3227              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3228            fi;;
3229          esac
3230        done
3231 done
3232 ;;
3233   esac
3234
3235   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3236   # uniformly replaced by the line number.  The first 'sed' inserts a
3237   # line-number line before each line; the second 'sed' does the real
3238   # work.  The second script uses 'N' to pair each line-number line
3239   # with the numbered line, and appends trailing '-' during
3240   # substitution so that $LINENO is not a special case at line end.
3241   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3242   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3243   sed '=' <$as_myself |
3244     sed '
3245       N
3246       s,$,-,
3247       : loop
3248       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3249       t loop
3250       s,-$,,
3251       s,^['$as_cr_digits']*\n,,
3252     ' >$as_me.lineno &&
3253   chmod +x $as_me.lineno ||
3254     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3255 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3256    { (exit 1); exit 1; }; }
3257
3258   # Don't try to exec as it changes $[0], causing all sort of problems
3259   # (the dirname of $[0] is not the place where we might find the
3260   # original and so on.  Autoconf is especially sensible to this).
3261   . ./$as_me.lineno
3262   # Exit status is that of the last command.
3263   exit
3264 }
3265
3266
3267 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3268   *c*,-n*) ECHO_N= ECHO_C='
3269 ' ECHO_T='      ' ;;
3270   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3271   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3272 esac
3273
3274 if expr a : '\(a\)' >/dev/null 2>&1; then
3275   as_expr=expr
3276 else
3277   as_expr=false
3278 fi
3279
3280 rm -f conf$$ conf$$.exe conf$$.file
3281 echo >conf$$.file
3282 if ln -s conf$$.file conf$$ 2>/dev/null; then
3283   # We could just check for DJGPP; but this test a) works b) is more generic
3284   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3285   if test -f conf$$.exe; then
3286     # Don't use ln at all; we don't have any links
3287     as_ln_s='cp -p'
3288   else
3289     as_ln_s='ln -s'
3290   fi
3291 elif ln conf$$.file conf$$ 2>/dev/null; then
3292   as_ln_s=ln
3293 else
3294   as_ln_s='cp -p'
3295 fi
3296 rm -f conf$$ conf$$.exe conf$$.file
3297
3298 if mkdir -p . 2>/dev/null; then
3299   as_mkdir_p=:
3300 else
3301   test -d ./-p && rmdir ./-p
3302   as_mkdir_p=false
3303 fi
3304
3305 as_executable_p="test -f"
3306
3307 # Sed expression to map a string onto a valid CPP name.
3308 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3309
3310 # Sed expression to map a string onto a valid variable name.
3311 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3312
3313
3314 # IFS
3315 # We need space, tab and new line, in precisely that order.
3316 as_nl='
3317 '
3318 IFS="   $as_nl"
3319
3320 # CDPATH.
3321 $as_unset CDPATH
3322
3323 exec 6>&1
3324
3325 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3326 # report actual input values of CONFIG_FILES etc. instead of their
3327 # values after options handling.  Logging --version etc. is OK.
3328 exec 5>>config.log
3329 {
3330   echo
3331   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3332 ## Running $as_me. ##
3333 _ASBOX
3334 } >&5
3335 cat >&5 <<_CSEOF
3336
3337 This file was extended by hesiod $as_me 3.0.2, which was
3338 generated by GNU Autoconf 2.59.  Invocation command line was
3339
3340   CONFIG_FILES    = $CONFIG_FILES
3341   CONFIG_HEADERS  = $CONFIG_HEADERS
3342   CONFIG_LINKS    = $CONFIG_LINKS
3343   CONFIG_COMMANDS = $CONFIG_COMMANDS
3344   $ $0 $@
3345
3346 _CSEOF
3347 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3348 echo >&5
3349 _ACEOF
3350
3351 # Files that config.status was made for.
3352 if test -n "$ac_config_files"; then
3353   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3354 fi
3355
3356 if test -n "$ac_config_headers"; then
3357   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3358 fi
3359
3360 if test -n "$ac_config_links"; then
3361   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3362 fi
3363
3364 if test -n "$ac_config_commands"; then
3365   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3366 fi
3367
3368 cat >>$CONFIG_STATUS <<\_ACEOF
3369
3370 ac_cs_usage="\
3371 \`$as_me' instantiates files from templates according to the
3372 current configuration.
3373
3374 Usage: $0 [OPTIONS] [FILE]...
3375
3376   -h, --help       print this help, then exit
3377   -V, --version    print version number, then exit
3378   -q, --quiet      do not print progress messages
3379   -d, --debug      don't remove temporary files
3380       --recheck    update $as_me by reconfiguring in the same conditions
3381   --file=FILE[:TEMPLATE]
3382                    instantiate the configuration file FILE
3383   --header=FILE[:TEMPLATE]
3384                    instantiate the configuration header FILE
3385
3386 Configuration files:
3387 $config_files
3388
3389 Configuration headers:
3390 $config_headers
3391
3392 Report bugs to <bug-autoconf@gnu.org>."
3393 _ACEOF
3394
3395 cat >>$CONFIG_STATUS <<_ACEOF
3396 ac_cs_version="\\
3397 hesiod config.status 3.0.2
3398 configured by $0, generated by GNU Autoconf 2.59,
3399   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3400
3401 Copyright (C) 2003 Free Software Foundation, Inc.
3402 This config.status script is free software; the Free Software Foundation
3403 gives unlimited permission to copy, distribute and modify it."
3404 srcdir=$srcdir
3405 INSTALL="$INSTALL"
3406 _ACEOF
3407
3408 cat >>$CONFIG_STATUS <<\_ACEOF
3409 # If no file are specified by the user, then we need to provide default
3410 # value.  By we need to know if files were specified by the user.
3411 ac_need_defaults=:
3412 while test $# != 0
3413 do
3414   case $1 in
3415   --*=*)
3416     ac_option=`expr "x$1" : 'x\([^=]*\)='`
3417     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3418     ac_shift=:
3419     ;;
3420   -*)
3421     ac_option=$1
3422     ac_optarg=$2
3423     ac_shift=shift
3424     ;;
3425   *) # This is not an option, so the user has probably given explicit
3426      # arguments.
3427      ac_option=$1
3428      ac_need_defaults=false;;
3429   esac
3430
3431   case $ac_option in
3432   # Handling of the options.
3433 _ACEOF
3434 cat >>$CONFIG_STATUS <<\_ACEOF
3435   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3436     ac_cs_recheck=: ;;
3437   --version | --vers* | -V )
3438     echo "$ac_cs_version"; exit 0 ;;
3439   --he | --h)
3440     # Conflict between --help and --header
3441     { { echo "$as_me:$LINENO: error: ambiguous option: $1
3442 Try \`$0 --help' for more information." >&5
3443 echo "$as_me: error: ambiguous option: $1
3444 Try \`$0 --help' for more information." >&2;}
3445    { (exit 1); exit 1; }; };;
3446   --help | --hel | -h )
3447     echo "$ac_cs_usage"; exit 0 ;;
3448   --debug | --d* | -d )
3449     debug=: ;;
3450   --file | --fil | --fi | --f )
3451     $ac_shift
3452     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3453     ac_need_defaults=false;;
3454   --header | --heade | --head | --hea )
3455     $ac_shift
3456     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3457     ac_need_defaults=false;;
3458   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3459   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3460     ac_cs_silent=: ;;
3461
3462   # This is an error.
3463   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3464 Try \`$0 --help' for more information." >&5
3465 echo "$as_me: error: unrecognized option: $1
3466 Try \`$0 --help' for more information." >&2;}
3467    { (exit 1); exit 1; }; } ;;
3468
3469   *) ac_config_targets="$ac_config_targets $1" ;;
3470
3471   esac
3472   shift
3473 done
3474
3475 ac_configure_extra_args=
3476
3477 if $ac_cs_silent; then
3478   exec 6>/dev/null
3479   ac_configure_extra_args="$ac_configure_extra_args --silent"
3480 fi
3481
3482 _ACEOF
3483 cat >>$CONFIG_STATUS <<_ACEOF
3484 if \$ac_cs_recheck; then
3485   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3486   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3487 fi
3488
3489 _ACEOF
3490
3491
3492
3493
3494
3495 cat >>$CONFIG_STATUS <<\_ACEOF
3496 for ac_config_target in $ac_config_targets
3497 do
3498   case "$ac_config_target" in
3499   # Handling of arguments.
3500   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3501   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3502   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3503 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3504    { (exit 1); exit 1; }; };;
3505   esac
3506 done
3507
3508 # If the user did not use the arguments to specify the items to instantiate,
3509 # then the envvar interface is used.  Set only those that are not.
3510 # We use the long form for the default assignment because of an extremely
3511 # bizarre bug on SunOS 4.1.3.
3512 if $ac_need_defaults; then
3513   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3514   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3515 fi
3516
3517 # Have a temporary directory for convenience.  Make it in the build tree
3518 # simply because there is no reason to put it here, and in addition,
3519 # creating and moving files from /tmp can sometimes cause problems.
3520 # Create a temporary directory, and hook for its removal unless debugging.
3521 $debug ||
3522 {
3523   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3524   trap '{ (exit 1); exit 1; }' 1 2 13 15
3525 }
3526
3527 # Create a (secure) tmp directory for tmp files.
3528
3529 {
3530   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3531   test -n "$tmp" && test -d "$tmp"
3532 }  ||
3533 {
3534   tmp=./confstat$$-$RANDOM
3535   (umask 077 && mkdir $tmp)
3536 } ||
3537 {
3538    echo "$me: cannot create a temporary directory in ." >&2
3539    { (exit 1); exit 1; }
3540 }
3541
3542 _ACEOF
3543
3544 cat >>$CONFIG_STATUS <<_ACEOF
3545
3546 #
3547 # CONFIG_FILES section.
3548 #
3549
3550 # No need to generate the scripts if there are no CONFIG_FILES.
3551 # This happens for instance when ./config.status config.h
3552 if test -n "\$CONFIG_FILES"; then
3553   # Protect against being on the right side of a sed subst in config.status.
3554   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3555    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3556 s,@SHELL@,$SHELL,;t t
3557 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3558 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3559 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3560 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3561 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3562 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3563 s,@exec_prefix@,$exec_prefix,;t t
3564 s,@prefix@,$prefix,;t t
3565 s,@program_transform_name@,$program_transform_name,;t t
3566 s,@bindir@,$bindir,;t t
3567 s,@sbindir@,$sbindir,;t t
3568 s,@libexecdir@,$libexecdir,;t t
3569 s,@datadir@,$datadir,;t t
3570 s,@sysconfdir@,$sysconfdir,;t t
3571 s,@sharedstatedir@,$sharedstatedir,;t t
3572 s,@localstatedir@,$localstatedir,;t t
3573 s,@libdir@,$libdir,;t t
3574 s,@includedir@,$includedir,;t t
3575 s,@oldincludedir@,$oldincludedir,;t t
3576 s,@infodir@,$infodir,;t t
3577 s,@mandir@,$mandir,;t t
3578 s,@build_alias@,$build_alias,;t t
3579 s,@host_alias@,$host_alias,;t t
3580 s,@target_alias@,$target_alias,;t t
3581 s,@DEFS@,$DEFS,;t t
3582 s,@ECHO_C@,$ECHO_C,;t t
3583 s,@ECHO_N@,$ECHO_N,;t t
3584 s,@ECHO_T@,$ECHO_T,;t t
3585 s,@LIBS@,$LIBS,;t t
3586 s,@lbindir@,$lbindir,;t t
3587 s,@CC@,$CC,;t t
3588 s,@CFLAGS@,$CFLAGS,;t t
3589 s,@LDFLAGS@,$LDFLAGS,;t t
3590 s,@CPPFLAGS@,$CPPFLAGS,;t t
3591 s,@ac_ct_CC@,$ac_ct_CC,;t t
3592 s,@EXEEXT@,$EXEEXT,;t t
3593 s,@OBJEXT@,$OBJEXT,;t t
3594 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3595 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3596 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3597 s,@RANLIB@,$RANLIB,;t t
3598 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
3599 s,@CPP@,$CPP,;t t
3600 s,@EGREP@,$EGREP,;t t
3601 s,@LIBOBJS@,$LIBOBJS,;t t
3602 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3603 CEOF
3604
3605 _ACEOF
3606
3607   cat >>$CONFIG_STATUS <<\_ACEOF
3608   # Split the substitutions into bite-sized pieces for seds with
3609   # small command number limits, like on Digital OSF/1 and HP-UX.
3610   ac_max_sed_lines=48
3611   ac_sed_frag=1 # Number of current file.
3612   ac_beg=1 # First line for current file.
3613   ac_end=$ac_max_sed_lines # Line after last line for current file.
3614   ac_more_lines=:
3615   ac_sed_cmds=
3616   while $ac_more_lines; do
3617     if test $ac_beg -gt 1; then
3618       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3619     else
3620       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3621     fi
3622     if test ! -s $tmp/subs.frag; then
3623       ac_more_lines=false
3624     else
3625       # The purpose of the label and of the branching condition is to
3626       # speed up the sed processing (if there are no `@' at all, there
3627       # is no need to browse any of the substitutions).
3628       # These are the two extra sed commands mentioned above.
3629       (echo ':t
3630   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3631       if test -z "$ac_sed_cmds"; then
3632         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3633       else
3634         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3635       fi
3636       ac_sed_frag=`expr $ac_sed_frag + 1`
3637       ac_beg=$ac_end
3638       ac_end=`expr $ac_end + $ac_max_sed_lines`
3639     fi
3640   done
3641   if test -z "$ac_sed_cmds"; then
3642     ac_sed_cmds=cat
3643   fi
3644 fi # test -n "$CONFIG_FILES"
3645
3646 _ACEOF
3647 cat >>$CONFIG_STATUS <<\_ACEOF
3648 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3649   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3650   case $ac_file in
3651   - | *:- | *:-:* ) # input from stdin
3652         cat >$tmp/stdin
3653         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3654         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3655   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3656         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3657   * )   ac_file_in=$ac_file.in ;;
3658   esac
3659
3660   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3661   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3662 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3663          X"$ac_file" : 'X\(//\)[^/]' \| \
3664          X"$ac_file" : 'X\(//\)$' \| \
3665          X"$ac_file" : 'X\(/\)' \| \
3666          .     : '\(.\)' 2>/dev/null ||
3667 echo X"$ac_file" |
3668     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3669           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3670           /^X\(\/\/\)$/{ s//\1/; q; }
3671           /^X\(\/\).*/{ s//\1/; q; }
3672           s/.*/./; q'`
3673   { if $as_mkdir_p; then
3674     mkdir -p "$ac_dir"
3675   else
3676     as_dir="$ac_dir"
3677     as_dirs=
3678     while test ! -d "$as_dir"; do
3679       as_dirs="$as_dir $as_dirs"
3680       as_dir=`(dirname "$as_dir") 2>/dev/null ||
3681 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3682          X"$as_dir" : 'X\(//\)[^/]' \| \
3683          X"$as_dir" : 'X\(//\)$' \| \
3684          X"$as_dir" : 'X\(/\)' \| \
3685          .     : '\(.\)' 2>/dev/null ||
3686 echo X"$as_dir" |
3687     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3688           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3689           /^X\(\/\/\)$/{ s//\1/; q; }
3690           /^X\(\/\).*/{ s//\1/; q; }
3691           s/.*/./; q'`
3692     done
3693     test ! -n "$as_dirs" || mkdir $as_dirs
3694   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3695 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3696    { (exit 1); exit 1; }; }; }
3697
3698   ac_builddir=.
3699
3700 if test "$ac_dir" != .; then
3701   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3702   # A "../" for each directory in $ac_dir_suffix.
3703   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3704 else
3705   ac_dir_suffix= ac_top_builddir=
3706 fi
3707
3708 case $srcdir in
3709   .)  # No --srcdir option.  We are building in place.
3710     ac_srcdir=.
3711     if test -z "$ac_top_builddir"; then
3712        ac_top_srcdir=.
3713     else
3714        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3715     fi ;;
3716   [\\/]* | ?:[\\/]* )  # Absolute path.
3717     ac_srcdir=$srcdir$ac_dir_suffix;
3718     ac_top_srcdir=$srcdir ;;
3719   *) # Relative path.
3720     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3721     ac_top_srcdir=$ac_top_builddir$srcdir ;;
3722 esac
3723
3724 # Do not use `cd foo && pwd` to compute absolute paths, because
3725 # the directories may not exist.
3726 case `pwd` in
3727 .) ac_abs_builddir="$ac_dir";;
3728 *)
3729   case "$ac_dir" in
3730   .) ac_abs_builddir=`pwd`;;
3731   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3732   *) ac_abs_builddir=`pwd`/"$ac_dir";;
3733   esac;;
3734 esac
3735 case $ac_abs_builddir in
3736 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3737 *)
3738   case ${ac_top_builddir}. in
3739   .) ac_abs_top_builddir=$ac_abs_builddir;;
3740   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3741   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3742   esac;;
3743 esac
3744 case $ac_abs_builddir in
3745 .) ac_abs_srcdir=$ac_srcdir;;
3746 *)
3747   case $ac_srcdir in
3748   .) ac_abs_srcdir=$ac_abs_builddir;;
3749   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3750   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3751   esac;;
3752 esac
3753 case $ac_abs_builddir in
3754 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3755 *)
3756   case $ac_top_srcdir in
3757   .) ac_abs_top_srcdir=$ac_abs_builddir;;
3758   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3759   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3760   esac;;
3761 esac
3762
3763
3764   case $INSTALL in
3765   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3766   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3767   esac
3768
3769   # Let's still pretend it is `configure' which instantiates (i.e., don't
3770   # use $as_me), people would be surprised to read:
3771   #    /* config.h.  Generated by config.status.  */
3772   if test x"$ac_file" = x-; then
3773     configure_input=
3774   else
3775     configure_input="$ac_file.  "
3776   fi
3777   configure_input=$configure_input"Generated from `echo $ac_file_in |
3778                                      sed 's,.*/,,'` by configure."
3779
3780   # First look for the input files in the build tree, otherwise in the
3781   # src tree.
3782   ac_file_inputs=`IFS=:
3783     for f in $ac_file_in; do
3784       case $f in
3785       -) echo $tmp/stdin ;;
3786       [\\/$]*)
3787          # Absolute (can't be DOS-style, as IFS=:)
3788          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3789 echo "$as_me: error: cannot find input file: $f" >&2;}
3790    { (exit 1); exit 1; }; }
3791          echo "$f";;
3792       *) # Relative
3793          if test -f "$f"; then
3794            # Build tree
3795            echo "$f"
3796          elif test -f "$srcdir/$f"; then
3797            # Source tree
3798            echo "$srcdir/$f"
3799          else
3800            # /dev/null tree
3801            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3802 echo "$as_me: error: cannot find input file: $f" >&2;}
3803    { (exit 1); exit 1; }; }
3804          fi;;
3805       esac
3806     done` || { (exit 1); exit 1; }
3807
3808   if test x"$ac_file" != x-; then
3809     { echo "$as_me:$LINENO: creating $ac_file" >&5
3810 echo "$as_me: creating $ac_file" >&6;}
3811     rm -f "$ac_file"
3812   fi
3813 _ACEOF
3814 cat >>$CONFIG_STATUS <<_ACEOF
3815   sed "$ac_vpsub
3816 $extrasub
3817 _ACEOF
3818 cat >>$CONFIG_STATUS <<\_ACEOF
3819 :t
3820 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3821 s,@configure_input@,$configure_input,;t t
3822 s,@srcdir@,$ac_srcdir,;t t
3823 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3824 s,@top_srcdir@,$ac_top_srcdir,;t t
3825 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3826 s,@builddir@,$ac_builddir,;t t
3827 s,@abs_builddir@,$ac_abs_builddir,;t t
3828 s,@top_builddir@,$ac_top_builddir,;t t
3829 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3830 s,@INSTALL@,$ac_INSTALL,;t t
3831 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3832   rm -f $tmp/stdin
3833   if test x"$ac_file" != x-; then
3834     mv $tmp/out $ac_file
3835   else
3836     cat $tmp/out
3837     rm -f $tmp/out
3838   fi
3839
3840 done
3841 _ACEOF
3842 cat >>$CONFIG_STATUS <<\_ACEOF
3843
3844 #
3845 # CONFIG_HEADER section.
3846 #
3847
3848 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3849 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3850 #
3851 # ac_d sets the value in "#define NAME VALUE" lines.
3852 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
3853 ac_dB='[         ].*$,\1#\2'
3854 ac_dC=' '
3855 ac_dD=',;t'
3856 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3857 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3858 ac_uB='$,\1#\2define\3'
3859 ac_uC=' '
3860 ac_uD=',;t'
3861
3862 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3863   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3864   case $ac_file in
3865   - | *:- | *:-:* ) # input from stdin
3866         cat >$tmp/stdin
3867         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3868         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3869   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3870         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3871   * )   ac_file_in=$ac_file.in ;;
3872   esac
3873
3874   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
3875 echo "$as_me: creating $ac_file" >&6;}
3876
3877   # First look for the input files in the build tree, otherwise in the
3878   # src tree.
3879   ac_file_inputs=`IFS=:
3880     for f in $ac_file_in; do
3881       case $f in
3882       -) echo $tmp/stdin ;;
3883       [\\/$]*)
3884          # Absolute (can't be DOS-style, as IFS=:)
3885          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3886 echo "$as_me: error: cannot find input file: $f" >&2;}
3887    { (exit 1); exit 1; }; }
3888          # Do quote $f, to prevent DOS paths from being IFS'd.
3889          echo "$f";;
3890       *) # Relative
3891          if test -f "$f"; then
3892            # Build tree
3893            echo "$f"
3894          elif test -f "$srcdir/$f"; then
3895            # Source tree
3896            echo "$srcdir/$f"
3897          else
3898            # /dev/null tree
3899            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3900 echo "$as_me: error: cannot find input file: $f" >&2;}
3901    { (exit 1); exit 1; }; }
3902          fi;;
3903       esac
3904     done` || { (exit 1); exit 1; }
3905   # Remove the trailing spaces.
3906   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
3907
3908 _ACEOF
3909
3910 # Transform confdefs.h into two sed scripts, `conftest.defines' and
3911 # `conftest.undefs', that substitutes the proper values into
3912 # config.h.in to produce config.h.  The first handles `#define'
3913 # templates, and the second `#undef' templates.
3914 # And first: Protect against being on the right side of a sed subst in
3915 # config.status.  Protect against being in an unquoted here document
3916 # in config.status.
3917 rm -f conftest.defines conftest.undefs
3918 # Using a here document instead of a string reduces the quoting nightmare.
3919 # Putting comments in sed scripts is not portable.
3920 #
3921 # `end' is used to avoid that the second main sed command (meant for
3922 # 0-ary CPP macros) applies to n-ary macro definitions.
3923 # See the Autoconf documentation for `clear'.
3924 cat >confdef2sed.sed <<\_ACEOF
3925 s/[\\&,]/\\&/g
3926 s,[\\$`],\\&,g
3927 t clear
3928 : clear
3929 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
3930 t end
3931 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3932 : end
3933 _ACEOF
3934 # If some macros were called several times there might be several times
3935 # the same #defines, which is useless.  Nevertheless, we may not want to
3936 # sort them, since we want the *last* AC-DEFINE to be honored.
3937 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3938 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3939 rm -f confdef2sed.sed
3940
3941 # This sed command replaces #undef with comments.  This is necessary, for
3942 # example, in the case of _POSIX_SOURCE, which is predefined and required
3943 # on some systems where configure will not decide to define it.
3944 cat >>conftest.undefs <<\_ACEOF
3945 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3946 _ACEOF
3947
3948 # Break up conftest.defines because some shells have a limit on the size
3949 # of here documents, and old seds have small limits too (100 cmds).
3950 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3951 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3952 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3953 echo '  :' >>$CONFIG_STATUS
3954 rm -f conftest.tail
3955 while grep . conftest.defines >/dev/null
3956 do
3957   # Write a limited-size here document to $tmp/defines.sed.
3958   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3959   # Speed up: don't consider the non `#define' lines.
3960   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
3961   # Work around the forget-to-reset-the-flag bug.
3962   echo 't clr' >>$CONFIG_STATUS
3963   echo ': clr' >>$CONFIG_STATUS
3964   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3965   echo 'CEOF
3966   sed -f $tmp/defines.sed $tmp/in >$tmp/out
3967   rm -f $tmp/in
3968   mv $tmp/out $tmp/in
3969 ' >>$CONFIG_STATUS
3970   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
3971   rm -f conftest.defines
3972   mv conftest.tail conftest.defines
3973 done
3974 rm -f conftest.defines
3975 echo '  fi # grep' >>$CONFIG_STATUS
3976 echo >>$CONFIG_STATUS
3977
3978 # Break up conftest.undefs because some shells have a limit on the size
3979 # of here documents, and old seds have small limits too (100 cmds).
3980 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
3981 rm -f conftest.tail
3982 while grep . conftest.undefs >/dev/null
3983 do
3984   # Write a limited-size here document to $tmp/undefs.sed.
3985   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
3986   # Speed up: don't consider the non `#undef'
3987   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
3988   # Work around the forget-to-reset-the-flag bug.
3989   echo 't clr' >>$CONFIG_STATUS
3990   echo ': clr' >>$CONFIG_STATUS
3991   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
3992   echo 'CEOF
3993   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
3994   rm -f $tmp/in
3995   mv $tmp/out $tmp/in
3996 ' >>$CONFIG_STATUS
3997   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
3998   rm -f conftest.undefs
3999   mv conftest.tail conftest.undefs
4000 done
4001 rm -f conftest.undefs
4002
4003 cat >>$CONFIG_STATUS <<\_ACEOF
4004   # Let's still pretend it is `configure' which instantiates (i.e., don't
4005   # use $as_me), people would be surprised to read:
4006   #    /* config.h.  Generated by config.status.  */
4007   if test x"$ac_file" = x-; then
4008     echo "/* Generated by configure.  */" >$tmp/config.h
4009   else
4010     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
4011   fi
4012   cat $tmp/in >>$tmp/config.h
4013   rm -f $tmp/in
4014   if test x"$ac_file" != x-; then
4015     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4016       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4017 echo "$as_me: $ac_file is unchanged" >&6;}
4018     else
4019       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4020 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4021          X"$ac_file" : 'X\(//\)[^/]' \| \
4022          X"$ac_file" : 'X\(//\)$' \| \
4023          X"$ac_file" : 'X\(/\)' \| \
4024          .     : '\(.\)' 2>/dev/null ||
4025 echo X"$ac_file" |
4026     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4027           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4028           /^X\(\/\/\)$/{ s//\1/; q; }
4029           /^X\(\/\).*/{ s//\1/; q; }
4030           s/.*/./; q'`
4031       { if $as_mkdir_p; then
4032     mkdir -p "$ac_dir"
4033   else
4034     as_dir="$ac_dir"
4035     as_dirs=
4036     while test ! -d "$as_dir"; do
4037       as_dirs="$as_dir $as_dirs"
4038       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4039 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4040          X"$as_dir" : 'X\(//\)[^/]' \| \
4041          X"$as_dir" : 'X\(//\)$' \| \
4042          X"$as_dir" : 'X\(/\)' \| \
4043          .     : '\(.\)' 2>/dev/null ||
4044 echo X"$as_dir" |
4045     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4046           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4047           /^X\(\/\/\)$/{ s//\1/; q; }
4048           /^X\(\/\).*/{ s//\1/; q; }
4049           s/.*/./; q'`
4050     done
4051     test ! -n "$as_dirs" || mkdir $as_dirs
4052   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4053 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4054    { (exit 1); exit 1; }; }; }
4055
4056       rm -f $ac_file
4057       mv $tmp/config.h $ac_file
4058     fi
4059   else
4060     cat $tmp/config.h
4061     rm -f $tmp/config.h
4062   fi
4063 done
4064 _ACEOF
4065
4066 cat >>$CONFIG_STATUS <<\_ACEOF
4067
4068 { (exit 0); exit 0; }
4069 _ACEOF
4070 chmod +x $CONFIG_STATUS
4071 ac_clean_files=$ac_clean_files_save
4072
4073
4074 # configure is writing to config.log, and then calls config.status.
4075 # config.status does its own redirection, appending to config.log.
4076 # Unfortunately, on DOS this fails, as config.log is still kept open
4077 # by configure, so config.status won't be able to write to it; its
4078 # output is simply discarded.  So we exec the FD to /dev/null,
4079 # effectively closing config.log, so it can be properly (re)opened and
4080 # appended to by config.status.  When coming back to configure, we
4081 # need to make the FD available again.
4082 if test "$no_create" != yes; then
4083   ac_cs_success=:
4084   ac_config_status_args=
4085   test "$silent" = yes &&
4086     ac_config_status_args="$ac_config_status_args --quiet"
4087   exec 5>/dev/null
4088   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4089   exec 5>>config.log
4090   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4091   # would make configure fail if this is the last instruction.
4092   $ac_cs_success || { (exit 1); exit 1; }
4093 fi
4094
4095