:pserver:anonymous@cvs.middle-man.sourceforge.net:/cvsroot/middle-man middleman
[middleman.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54 for middleman 1.0.
4 #
5 # Report bugs to <jasonmc@sympatico.ca>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
42 do
43   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
44     eval $as_var=C; export $as_var
45   else
46     $as_unset $as_var
47   fi
48 done
49
50 # Required to use basename.
51 if expr a : '\(a\)' >/dev/null 2>&1; then
52   as_expr=expr
53 else
54   as_expr=false
55 fi
56
57 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
58   as_basename=basename
59 else
60   as_basename=false
61 fi
62
63
64 # Name of the executable.
65 as_me=`$as_basename "$0" ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67          X"$0" : 'X\(//\)$' \| \
68          X"$0" : 'X\(/\)$' \| \
69          .     : '\(.\)' 2>/dev/null ||
70 echo X/"$0" |
71     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72           /^X\/\(\/\/\)$/{ s//\1/; q; }
73           /^X\/\(\/\).*/{ s//\1/; q; }
74           s/.*/./; q'`
75
76
77 # PATH needs CR, and LINENO needs CR and PATH.
78 # Avoid depending upon Character Ranges.
79 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82 as_cr_digits='0123456789'
83 as_cr_alnum=$as_cr_Letters$as_cr_digits
84
85 # The user is always right.
86 if test "${PATH_SEPARATOR+set}" != set; then
87   echo "#! /bin/sh" >conftest.sh
88   echo  "exit 0"   >>conftest.sh
89   chmod +x conftest.sh
90   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
91     PATH_SEPARATOR=';'
92   else
93     PATH_SEPARATOR=:
94   fi
95   rm -f conftest.sh
96 fi
97
98
99   as_lineno_1=$LINENO
100   as_lineno_2=$LINENO
101   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102   test "x$as_lineno_1" != "x$as_lineno_2" &&
103   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
104   # Find who we are.  Look in the path if we contain no path at all
105   # relative or not.
106   case $0 in
107     *[\\/]* ) as_myself=$0 ;;
108     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
109 for as_dir in $PATH
110 do
111   IFS=$as_save_IFS
112   test -z "$as_dir" && as_dir=.
113   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 done
115
116        ;;
117   esac
118   # We did not find ourselves, most probably we were run as `sh COMMAND'
119   # in which case we are not to be found in the path.
120   if test "x$as_myself" = x; then
121     as_myself=$0
122   fi
123   if test ! -f "$as_myself"; then
124     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125    { (exit 1); exit 1; }; }
126   fi
127   case $CONFIG_SHELL in
128   '')
129     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 do
132   IFS=$as_save_IFS
133   test -z "$as_dir" && as_dir=.
134   for as_base in sh bash ksh sh5; do
135          case $as_dir in
136          /*)
137            if ("$as_dir/$as_base" -c '
138   as_lineno_1=$LINENO
139   as_lineno_2=$LINENO
140   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141   test "x$as_lineno_1" != "x$as_lineno_2" &&
142   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
143              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
144              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
145              CONFIG_SHELL=$as_dir/$as_base
146              export CONFIG_SHELL
147              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148            fi;;
149          esac
150        done
151 done
152 ;;
153   esac
154
155   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156   # uniformly replaced by the line number.  The first 'sed' inserts a
157   # line-number line before each line; the second 'sed' does the real
158   # work.  The second script uses 'N' to pair each line-number line
159   # with the numbered line, and appends trailing '-' during
160   # substitution so that $LINENO is not a special case at line end.
161   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
163   sed '=' <$as_myself |
164     sed '
165       N
166       s,$,-,
167       : loop
168       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169       t loop
170       s,-$,,
171       s,^['$as_cr_digits']*\n,,
172     ' >$as_me.lineno &&
173   chmod +x $as_me.lineno ||
174     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175    { (exit 1); exit 1; }; }
176
177   # Don't try to exec as it changes $[0], causing all sort of problems
178   # (the dirname of $[0] is not the place where we might find the
179   # original and so on.  Autoconf is especially sensible to this).
180   . ./$as_me.lineno
181   # Exit status is that of the last command.
182   exit
183 }
184
185
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187   *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T='      ' ;;
189   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
192
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194   as_expr=expr
195 else
196   as_expr=false
197 fi
198
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202   # We could just check for DJGPP; but this test a) works b) is more generic
203   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204   if test -f conf$$.exe; then
205     # Don't use ln at all; we don't have any links
206     as_ln_s='cp -p'
207   else
208     as_ln_s='ln -s'
209   fi
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211   as_ln_s=ln
212 else
213   as_ln_s='cp -p'
214 fi
215 rm -f conf$$ conf$$.exe conf$$.file
216
217 if mkdir -p . 2>/dev/null; then
218   as_mkdir_p=:
219 else
220   as_mkdir_p=false
221 fi
222
223 as_executable_p="test -f"
224
225 # Sed expression to map a string onto a valid CPP name.
226 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
227
228 # Sed expression to map a string onto a valid variable name.
229 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
230
231
232 # IFS
233 # We need space, tab and new line, in precisely that order.
234 as_nl='
235 '
236 IFS="   $as_nl"
237
238 # CDPATH.
239 $as_unset CDPATH
240
241
242 # Name of the host.
243 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
244 # so uname gets run too.
245 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246
247 exec 6>&1
248
249 #
250 # Initializations.
251 #
252 ac_default_prefix=/usr/local
253 ac_config_libobj_dir=.
254 cross_compiling=no
255 subdirs=
256 MFLAGS=
257 MAKEFLAGS=
258 SHELL=${CONFIG_SHELL-/bin/sh}
259
260 # Maximum number of lines to put in a shell here document.
261 # This variable seems obsolete.  It should probably be removed, and
262 # only ac_max_sed_lines should be used.
263 : ${ac_max_here_lines=38}
264
265 # Identity of this package.
266 PACKAGE_NAME='middleman'
267 PACKAGE_TARNAME='middleman'
268 PACKAGE_VERSION='1.0'
269 PACKAGE_STRING='middleman 1.0'
270 PACKAGE_BUGREPORT='jasonmc@sympatico.ca'
271
272 ac_unique_file="src/mem.c"
273 # Factoring default headers for most tests.
274 ac_includes_default="\
275 #include <stdio.h>
276 #if HAVE_SYS_TYPES_H
277 # include <sys/types.h>
278 #endif
279 #if HAVE_SYS_STAT_H
280 # include <sys/stat.h>
281 #endif
282 #if STDC_HEADERS
283 # include <stdlib.h>
284 # include <stddef.h>
285 #else
286 # if HAVE_STDLIB_H
287 #  include <stdlib.h>
288 # endif
289 #endif
290 #if HAVE_STRING_H
291 # if !STDC_HEADERS && HAVE_MEMORY_H
292 #  include <memory.h>
293 # endif
294 # include <string.h>
295 #endif
296 #if HAVE_STRINGS_H
297 # include <strings.h>
298 #endif
299 #if HAVE_INTTYPES_H
300 # include <inttypes.h>
301 #else
302 # if HAVE_STDINT_H
303 #  include <stdint.h>
304 # endif
305 #endif
306 #if HAVE_UNISTD_H
307 # include <unistd.h>
308 #endif"
309
310 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 STRIP CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS LTLIBOBJS'
311 ac_subst_files=''
312
313 # Initialize some variables set by options.
314 ac_init_help=
315 ac_init_version=false
316 # The variables have the same names as the options, with
317 # dashes changed to underlines.
318 cache_file=/dev/null
319 exec_prefix=NONE
320 no_create=
321 no_recursion=
322 prefix=NONE
323 program_prefix=NONE
324 program_suffix=NONE
325 program_transform_name=s,x,x,
326 silent=
327 site=
328 srcdir=
329 verbose=
330 x_includes=NONE
331 x_libraries=NONE
332
333 # Installation directory options.
334 # These are left unexpanded so users can "make install exec_prefix=/foo"
335 # and all the variables that are supposed to be based on exec_prefix
336 # by default will actually change.
337 # Use braces instead of parens because sh, perl, etc. also accept them.
338 bindir='${exec_prefix}/bin'
339 sbindir='${exec_prefix}/sbin'
340 libexecdir='${exec_prefix}/libexec'
341 datadir='${prefix}/share'
342 sysconfdir='${prefix}/etc'
343 sharedstatedir='${prefix}/com'
344 localstatedir='${prefix}/var'
345 libdir='${exec_prefix}/lib'
346 includedir='${prefix}/include'
347 oldincludedir='/usr/include'
348 infodir='${prefix}/info'
349 mandir='${prefix}/man'
350
351 ac_prev=
352 for ac_option
353 do
354   # If the previous option needs an argument, assign it.
355   if test -n "$ac_prev"; then
356     eval "$ac_prev=\$ac_option"
357     ac_prev=
358     continue
359   fi
360
361   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
362
363   # Accept the important Cygnus configure options, so we can diagnose typos.
364
365   case $ac_option in
366
367   -bindir | --bindir | --bindi | --bind | --bin | --bi)
368     ac_prev=bindir ;;
369   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
370     bindir=$ac_optarg ;;
371
372   -build | --build | --buil | --bui | --bu)
373     ac_prev=build_alias ;;
374   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
375     build_alias=$ac_optarg ;;
376
377   -cache-file | --cache-file | --cache-fil | --cache-fi \
378   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
379     ac_prev=cache_file ;;
380   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
381   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
382     cache_file=$ac_optarg ;;
383
384   --config-cache | -C)
385     cache_file=config.cache ;;
386
387   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
388     ac_prev=datadir ;;
389   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
390   | --da=*)
391     datadir=$ac_optarg ;;
392
393   -disable-* | --disable-*)
394     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
395     # Reject names that are not valid shell variable names.
396     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
397       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
398    { (exit 1); exit 1; }; }
399     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
400     eval "enable_$ac_feature=no" ;;
401
402   -enable-* | --enable-*)
403     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
404     # Reject names that are not valid shell variable names.
405     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
406       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
407    { (exit 1); exit 1; }; }
408     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
409     case $ac_option in
410       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
411       *) ac_optarg=yes ;;
412     esac
413     eval "enable_$ac_feature='$ac_optarg'" ;;
414
415   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
416   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
417   | --exec | --exe | --ex)
418     ac_prev=exec_prefix ;;
419   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
420   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
421   | --exec=* | --exe=* | --ex=*)
422     exec_prefix=$ac_optarg ;;
423
424   -gas | --gas | --ga | --g)
425     # Obsolete; use --with-gas.
426     with_gas=yes ;;
427
428   -help | --help | --hel | --he | -h)
429     ac_init_help=long ;;
430   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
431     ac_init_help=recursive ;;
432   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
433     ac_init_help=short ;;
434
435   -host | --host | --hos | --ho)
436     ac_prev=host_alias ;;
437   -host=* | --host=* | --hos=* | --ho=*)
438     host_alias=$ac_optarg ;;
439
440   -includedir | --includedir | --includedi | --included | --include \
441   | --includ | --inclu | --incl | --inc)
442     ac_prev=includedir ;;
443   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
444   | --includ=* | --inclu=* | --incl=* | --inc=*)
445     includedir=$ac_optarg ;;
446
447   -infodir | --infodir | --infodi | --infod | --info | --inf)
448     ac_prev=infodir ;;
449   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
450     infodir=$ac_optarg ;;
451
452   -libdir | --libdir | --libdi | --libd)
453     ac_prev=libdir ;;
454   -libdir=* | --libdir=* | --libdi=* | --libd=*)
455     libdir=$ac_optarg ;;
456
457   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
458   | --libexe | --libex | --libe)
459     ac_prev=libexecdir ;;
460   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
461   | --libexe=* | --libex=* | --libe=*)
462     libexecdir=$ac_optarg ;;
463
464   -localstatedir | --localstatedir | --localstatedi | --localstated \
465   | --localstate | --localstat | --localsta | --localst \
466   | --locals | --local | --loca | --loc | --lo)
467     ac_prev=localstatedir ;;
468   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
469   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
470   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
471     localstatedir=$ac_optarg ;;
472
473   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
474     ac_prev=mandir ;;
475   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
476     mandir=$ac_optarg ;;
477
478   -nfp | --nfp | --nf)
479     # Obsolete; use --without-fp.
480     with_fp=no ;;
481
482   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
483   | --no-cr | --no-c | -n)
484     no_create=yes ;;
485
486   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
488     no_recursion=yes ;;
489
490   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
491   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
492   | --oldin | --oldi | --old | --ol | --o)
493     ac_prev=oldincludedir ;;
494   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
495   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
496   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
497     oldincludedir=$ac_optarg ;;
498
499   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
500     ac_prev=prefix ;;
501   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
502     prefix=$ac_optarg ;;
503
504   -program-prefix | --program-prefix | --program-prefi | --program-pref \
505   | --program-pre | --program-pr | --program-p)
506     ac_prev=program_prefix ;;
507   -program-prefix=* | --program-prefix=* | --program-prefi=* \
508   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
509     program_prefix=$ac_optarg ;;
510
511   -program-suffix | --program-suffix | --program-suffi | --program-suff \
512   | --program-suf | --program-su | --program-s)
513     ac_prev=program_suffix ;;
514   -program-suffix=* | --program-suffix=* | --program-suffi=* \
515   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
516     program_suffix=$ac_optarg ;;
517
518   -program-transform-name | --program-transform-name \
519   | --program-transform-nam | --program-transform-na \
520   | --program-transform-n | --program-transform- \
521   | --program-transform | --program-transfor \
522   | --program-transfo | --program-transf \
523   | --program-trans | --program-tran \
524   | --progr-tra | --program-tr | --program-t)
525     ac_prev=program_transform_name ;;
526   -program-transform-name=* | --program-transform-name=* \
527   | --program-transform-nam=* | --program-transform-na=* \
528   | --program-transform-n=* | --program-transform-=* \
529   | --program-transform=* | --program-transfor=* \
530   | --program-transfo=* | --program-transf=* \
531   | --program-trans=* | --program-tran=* \
532   | --progr-tra=* | --program-tr=* | --program-t=*)
533     program_transform_name=$ac_optarg ;;
534
535   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
536   | -silent | --silent | --silen | --sile | --sil)
537     silent=yes ;;
538
539   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
540     ac_prev=sbindir ;;
541   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
542   | --sbi=* | --sb=*)
543     sbindir=$ac_optarg ;;
544
545   -sharedstatedir | --sharedstatedir | --sharedstatedi \
546   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
547   | --sharedst | --shareds | --shared | --share | --shar \
548   | --sha | --sh)
549     ac_prev=sharedstatedir ;;
550   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
551   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
552   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
553   | --sha=* | --sh=*)
554     sharedstatedir=$ac_optarg ;;
555
556   -site | --site | --sit)
557     ac_prev=site ;;
558   -site=* | --site=* | --sit=*)
559     site=$ac_optarg ;;
560
561   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
562     ac_prev=srcdir ;;
563   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
564     srcdir=$ac_optarg ;;
565
566   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
567   | --syscon | --sysco | --sysc | --sys | --sy)
568     ac_prev=sysconfdir ;;
569   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
570   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
571     sysconfdir=$ac_optarg ;;
572
573   -target | --target | --targe | --targ | --tar | --ta | --t)
574     ac_prev=target_alias ;;
575   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
576     target_alias=$ac_optarg ;;
577
578   -v | -verbose | --verbose | --verbos | --verbo | --verb)
579     verbose=yes ;;
580
581   -version | --version | --versio | --versi | --vers | -V)
582     ac_init_version=: ;;
583
584   -with-* | --with-*)
585     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
586     # Reject names that are not valid shell variable names.
587     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588       { echo "$as_me: error: invalid package name: $ac_package" >&2
589    { (exit 1); exit 1; }; }
590     ac_package=`echo $ac_package| sed 's/-/_/g'`
591     case $ac_option in
592       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
593       *) ac_optarg=yes ;;
594     esac
595     eval "with_$ac_package='$ac_optarg'" ;;
596
597   -without-* | --without-*)
598     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
599     # Reject names that are not valid shell variable names.
600     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
601       { echo "$as_me: error: invalid package name: $ac_package" >&2
602    { (exit 1); exit 1; }; }
603     ac_package=`echo $ac_package | sed 's/-/_/g'`
604     eval "with_$ac_package=no" ;;
605
606   --x)
607     # Obsolete; use --with-x.
608     with_x=yes ;;
609
610   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
611   | --x-incl | --x-inc | --x-in | --x-i)
612     ac_prev=x_includes ;;
613   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
614   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
615     x_includes=$ac_optarg ;;
616
617   -x-libraries | --x-libraries | --x-librarie | --x-librari \
618   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
619     ac_prev=x_libraries ;;
620   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
621   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
622     x_libraries=$ac_optarg ;;
623
624   -*) { echo "$as_me: error: unrecognized option: $ac_option
625 Try \`$0 --help' for more information." >&2
626    { (exit 1); exit 1; }; }
627     ;;
628
629   *=*)
630     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
631     # Reject names that are not valid shell variable names.
632     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
633       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
634    { (exit 1); exit 1; }; }
635     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
636     eval "$ac_envvar='$ac_optarg'"
637     export $ac_envvar ;;
638
639   *)
640     # FIXME: should be removed in autoconf 3.0.
641     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
642     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
643       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
644     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
645     ;;
646
647   esac
648 done
649
650 if test -n "$ac_prev"; then
651   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
652   { echo "$as_me: error: missing argument to $ac_option" >&2
653    { (exit 1); exit 1; }; }
654 fi
655
656 # Be sure to have absolute paths.
657 for ac_var in exec_prefix prefix
658 do
659   eval ac_val=$`echo $ac_var`
660   case $ac_val in
661     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
662     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
663    { (exit 1); exit 1; }; };;
664   esac
665 done
666
667 # Be sure to have absolute paths.
668 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
669               localstatedir libdir includedir oldincludedir infodir mandir
670 do
671   eval ac_val=$`echo $ac_var`
672   case $ac_val in
673     [\\/$]* | ?:[\\/]* ) ;;
674     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
675    { (exit 1); exit 1; }; };;
676   esac
677 done
678
679 # There might be people who depend on the old broken behavior: `$host'
680 # used to hold the argument of --host etc.
681 # FIXME: To remove some day.
682 build=$build_alias
683 host=$host_alias
684 target=$target_alias
685
686 # FIXME: To remove some day.
687 if test "x$host_alias" != x; then
688   if test "x$build_alias" = x; then
689     cross_compiling=maybe
690     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
691     If a cross compiler is detected then cross compile mode will be used." >&2
692   elif test "x$build_alias" != "x$host_alias"; then
693     cross_compiling=yes
694   fi
695 fi
696
697 ac_tool_prefix=
698 test -n "$host_alias" && ac_tool_prefix=$host_alias-
699
700 test "$silent" = yes && exec 6>/dev/null
701
702
703 # Find the source files, if location was not specified.
704 if test -z "$srcdir"; then
705   ac_srcdir_defaulted=yes
706   # Try the directory containing this script, then its parent.
707   ac_confdir=`(dirname "$0") 2>/dev/null ||
708 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
709          X"$0" : 'X\(//\)[^/]' \| \
710          X"$0" : 'X\(//\)$' \| \
711          X"$0" : 'X\(/\)' \| \
712          .     : '\(.\)' 2>/dev/null ||
713 echo X"$0" |
714     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
715           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
716           /^X\(\/\/\)$/{ s//\1/; q; }
717           /^X\(\/\).*/{ s//\1/; q; }
718           s/.*/./; q'`
719   srcdir=$ac_confdir
720   if test ! -r $srcdir/$ac_unique_file; then
721     srcdir=..
722   fi
723 else
724   ac_srcdir_defaulted=no
725 fi
726 if test ! -r $srcdir/$ac_unique_file; then
727   if test "$ac_srcdir_defaulted" = yes; then
728     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
729    { (exit 1); exit 1; }; }
730   else
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
732    { (exit 1); exit 1; }; }
733   fi
734 fi
735 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
736   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
737    { (exit 1); exit 1; }; }
738 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
739 ac_env_build_alias_set=${build_alias+set}
740 ac_env_build_alias_value=$build_alias
741 ac_cv_env_build_alias_set=${build_alias+set}
742 ac_cv_env_build_alias_value=$build_alias
743 ac_env_host_alias_set=${host_alias+set}
744 ac_env_host_alias_value=$host_alias
745 ac_cv_env_host_alias_set=${host_alias+set}
746 ac_cv_env_host_alias_value=$host_alias
747 ac_env_target_alias_set=${target_alias+set}
748 ac_env_target_alias_value=$target_alias
749 ac_cv_env_target_alias_set=${target_alias+set}
750 ac_cv_env_target_alias_value=$target_alias
751 ac_env_CC_set=${CC+set}
752 ac_env_CC_value=$CC
753 ac_cv_env_CC_set=${CC+set}
754 ac_cv_env_CC_value=$CC
755 ac_env_CFLAGS_set=${CFLAGS+set}
756 ac_env_CFLAGS_value=$CFLAGS
757 ac_cv_env_CFLAGS_set=${CFLAGS+set}
758 ac_cv_env_CFLAGS_value=$CFLAGS
759 ac_env_LDFLAGS_set=${LDFLAGS+set}
760 ac_env_LDFLAGS_value=$LDFLAGS
761 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_cv_env_LDFLAGS_value=$LDFLAGS
763 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
764 ac_env_CPPFLAGS_value=$CPPFLAGS
765 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
767 ac_env_CPP_set=${CPP+set}
768 ac_env_CPP_value=$CPP
769 ac_cv_env_CPP_set=${CPP+set}
770 ac_cv_env_CPP_value=$CPP
771
772 #
773 # Report the --help message.
774 #
775 if test "$ac_init_help" = "long"; then
776   # Omit some internal or obsolete options to make the list less imposing.
777   # This message is too long to be a string in the A/UX 3.1 sh.
778   cat <<_ACEOF
779 \`configure' configures middleman 1.0 to adapt to many kinds of systems.
780
781 Usage: $0 [OPTION]... [VAR=VALUE]...
782
783 To assign environment variables (e.g., CC, CFLAGS...), specify them as
784 VAR=VALUE.  See below for descriptions of some of the useful variables.
785
786 Defaults for the options are specified in brackets.
787
788 Configuration:
789   -h, --help              display this help and exit
790       --help=short        display options specific to this package
791       --help=recursive    display the short help of all the included packages
792   -V, --version           display version information and exit
793   -q, --quiet, --silent   do not print \`checking...' messages
794       --cache-file=FILE   cache test results in FILE [disabled]
795   -C, --config-cache      alias for \`--cache-file=config.cache'
796   -n, --no-create         do not create output files
797       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
798
799 _ACEOF
800
801   cat <<_ACEOF
802 Installation directories:
803   --prefix=PREFIX         install architecture-independent files in PREFIX
804                           [$ac_default_prefix]
805   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
806                           [PREFIX]
807
808 By default, \`make install' will install all the files in
809 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
810 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
811 for instance \`--prefix=\$HOME'.
812
813 For better control, use the options below.
814
815 Fine tuning of the installation directories:
816   --bindir=DIR           user executables [EPREFIX/bin]
817   --sbindir=DIR          system admin executables [EPREFIX/sbin]
818   --libexecdir=DIR       program executables [EPREFIX/libexec]
819   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
820   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
821   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
822   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
823   --libdir=DIR           object code libraries [EPREFIX/lib]
824   --includedir=DIR       C header files [PREFIX/include]
825   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
826   --infodir=DIR          info documentation [PREFIX/info]
827   --mandir=DIR           man documentation [PREFIX/man]
828 _ACEOF
829
830   cat <<\_ACEOF
831 _ACEOF
832 fi
833
834 if test -n "$ac_init_help"; then
835   case $ac_init_help in
836      short | recursive ) echo "Configuration of middleman 1.0:";;
837    esac
838   cat <<\_ACEOF
839
840 Optional Features:
841   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
842   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
843   --enable-syslog         use syslog for logging
844   --enable-debug          compile with debugging symbols
845
846 Some influential environment variables:
847   CC          C compiler command
848   CFLAGS      C compiler flags
849   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
850               nonstandard directory <lib dir>
851   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
852               headers in a nonstandard directory <include dir>
853   CPP         C preprocessor
854
855 Use these variables to override the choices made by `configure' or to help
856 it to find libraries and programs with nonstandard names/locations.
857
858 Report bugs to <jasonmc@sympatico.ca>.
859 _ACEOF
860 fi
861
862 if test "$ac_init_help" = "recursive"; then
863   # If there are subdirs, report their specific --help.
864   ac_popdir=`pwd`
865   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
866     test -d $ac_dir || continue
867     ac_builddir=.
868
869 if test "$ac_dir" != .; then
870   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
871   # A "../" for each directory in $ac_dir_suffix.
872   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
873 else
874   ac_dir_suffix= ac_top_builddir=
875 fi
876
877 case $srcdir in
878   .)  # No --srcdir option.  We are building in place.
879     ac_srcdir=.
880     if test -z "$ac_top_builddir"; then
881        ac_top_srcdir=.
882     else
883        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
884     fi ;;
885   [\\/]* | ?:[\\/]* )  # Absolute path.
886     ac_srcdir=$srcdir$ac_dir_suffix;
887     ac_top_srcdir=$srcdir ;;
888   *) # Relative path.
889     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
890     ac_top_srcdir=$ac_top_builddir$srcdir ;;
891 esac
892 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
893 # absolute.
894 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
895 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
896 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
897 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
898
899     cd $ac_dir
900     # Check for guested configure; otherwise get Cygnus style configure.
901     if test -f $ac_srcdir/configure.gnu; then
902       echo
903       $SHELL $ac_srcdir/configure.gnu  --help=recursive
904     elif test -f $ac_srcdir/configure; then
905       echo
906       $SHELL $ac_srcdir/configure  --help=recursive
907     elif test -f $ac_srcdir/configure.ac ||
908            test -f $ac_srcdir/configure.in; then
909       echo
910       $ac_configure --help
911     else
912       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
913     fi
914     cd $ac_popdir
915   done
916 fi
917
918 test -n "$ac_init_help" && exit 0
919 if $ac_init_version; then
920   cat <<\_ACEOF
921 middleman configure 1.0
922 generated by GNU Autoconf 2.54
923
924 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
925 Free Software Foundation, Inc.
926 This configure script is free software; the Free Software Foundation
927 gives unlimited permission to copy, distribute and modify it.
928 _ACEOF
929   exit 0
930 fi
931 exec 5>config.log
932 cat >&5 <<_ACEOF
933 This file contains any messages produced by compilers while
934 running configure, to aid debugging if configure makes a mistake.
935
936 It was created by middleman $as_me 1.0, which was
937 generated by GNU Autoconf 2.54.  Invocation command line was
938
939   $ $0 $@
940
941 _ACEOF
942 {
943 cat <<_ASUNAME
944 ## --------- ##
945 ## Platform. ##
946 ## --------- ##
947
948 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
949 uname -m = `(uname -m) 2>/dev/null || echo unknown`
950 uname -r = `(uname -r) 2>/dev/null || echo unknown`
951 uname -s = `(uname -s) 2>/dev/null || echo unknown`
952 uname -v = `(uname -v) 2>/dev/null || echo unknown`
953
954 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
955 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
956
957 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
958 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
959 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
960 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
961 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
962 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
963 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
964
965 _ASUNAME
966
967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
968 for as_dir in $PATH
969 do
970   IFS=$as_save_IFS
971   test -z "$as_dir" && as_dir=.
972   echo "PATH: $as_dir"
973 done
974
975 } >&5
976
977 cat >&5 <<_ACEOF
978
979
980 ## ----------- ##
981 ## Core tests. ##
982 ## ----------- ##
983
984 _ACEOF
985
986
987 # Keep a trace of the command line.
988 # Strip out --no-create and --no-recursion so they do not pile up.
989 # Also quote any args containing shell meta-characters.
990 ac_configure_args=
991 ac_sep=
992 for ac_arg
993 do
994   case $ac_arg in
995   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996   | --no-cr | --no-c | -n ) continue ;;
997   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999     continue ;;
1000   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1001     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1002   esac
1003   ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1004   # Get rid of the leading space.
1005   ac_sep=" "
1006 done
1007
1008 # When interrupted or exit'd, cleanup temporary files, and complete
1009 # config.log.  We remove comments because anyway the quotes in there
1010 # would cause problems or look ugly.
1011 # WARNING: Be sure not to use single quotes in there, as some shells,
1012 # such as our DU 5.0 friend, will then `close' the trap.
1013 trap 'exit_status=$?
1014   # Save into config.log some information that might help in debugging.
1015   {
1016     echo
1017
1018     cat <<\_ASBOX
1019 ## ---------------- ##
1020 ## Cache variables. ##
1021 ## ---------------- ##
1022 _ASBOX
1023     echo
1024     # The following way of writing the cache mishandles newlines in values,
1025 {
1026   (set) 2>&1 |
1027     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1028     *ac_space=\ *)
1029       sed -n \
1030         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1031           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1032       ;;
1033     *)
1034       sed -n \
1035         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1036       ;;
1037     esac;
1038 }
1039     echo
1040
1041     cat <<\_ASBOX
1042 ## ----------------- ##
1043 ## Output variables. ##
1044 ## ----------------- ##
1045 _ASBOX
1046     echo
1047     for ac_var in $ac_subst_vars
1048     do
1049       eval ac_val=$`echo $ac_var`
1050       echo "$ac_var='"'"'$ac_val'"'"'"
1051     done | sort
1052     echo
1053
1054     if test -n "$ac_subst_files"; then
1055       cat <<\_ASBOX
1056 ## ------------- ##
1057 ## Output files. ##
1058 ## ------------- ##
1059 _ASBOX
1060       echo
1061       for ac_var in $ac_subst_files
1062       do
1063         eval ac_val=$`echo $ac_var`
1064         echo "$ac_var='"'"'$ac_val'"'"'"
1065       done | sort
1066       echo
1067     fi
1068
1069     if test -s confdefs.h; then
1070       cat <<\_ASBOX
1071 ## ----------- ##
1072 ## confdefs.h. ##
1073 ## ----------- ##
1074 _ASBOX
1075       echo
1076       sed "/^$/d" confdefs.h | sort
1077       echo
1078     fi
1079     test "$ac_signal" != 0 &&
1080       echo "$as_me: caught signal $ac_signal"
1081     echo "$as_me: exit $exit_status"
1082   } >&5
1083   rm -f core core.* *.core &&
1084   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1085     exit $exit_status
1086      ' 0
1087 for ac_signal in 1 2 13 15; do
1088   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1089 done
1090 ac_signal=0
1091
1092 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1093 rm -rf conftest* confdefs.h
1094 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1095 echo >confdefs.h
1096
1097 # Predefined preprocessor variables.
1098
1099 cat >>confdefs.h <<_ACEOF
1100 #define PACKAGE_NAME "$PACKAGE_NAME"
1101 _ACEOF
1102
1103
1104 cat >>confdefs.h <<_ACEOF
1105 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1106 _ACEOF
1107
1108
1109 cat >>confdefs.h <<_ACEOF
1110 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1111 _ACEOF
1112
1113
1114 cat >>confdefs.h <<_ACEOF
1115 #define PACKAGE_STRING "$PACKAGE_STRING"
1116 _ACEOF
1117
1118
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1121 _ACEOF
1122
1123
1124 # Let the site file select an alternate cache file if it wants to.
1125 # Prefer explicitly selected file to automatically selected ones.
1126 if test -z "$CONFIG_SITE"; then
1127   if test "x$prefix" != xNONE; then
1128     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1129   else
1130     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1131   fi
1132 fi
1133 for ac_site_file in $CONFIG_SITE; do
1134   if test -r "$ac_site_file"; then
1135     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1136 echo "$as_me: loading site script $ac_site_file" >&6;}
1137     sed 's/^/| /' "$ac_site_file" >&5
1138     . "$ac_site_file"
1139   fi
1140 done
1141
1142 if test -r "$cache_file"; then
1143   # Some versions of bash will fail to source /dev/null (special
1144   # files actually), so we avoid doing that.
1145   if test -f "$cache_file"; then
1146     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1147 echo "$as_me: loading cache $cache_file" >&6;}
1148     case $cache_file in
1149       [\\/]* | ?:[\\/]* ) . $cache_file;;
1150       *)                      . ./$cache_file;;
1151     esac
1152   fi
1153 else
1154   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1155 echo "$as_me: creating cache $cache_file" >&6;}
1156   >$cache_file
1157 fi
1158
1159 # Check that the precious variables saved in the cache have kept the same
1160 # value.
1161 ac_cache_corrupted=false
1162 for ac_var in `(set) 2>&1 |
1163                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1164   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1165   eval ac_new_set=\$ac_env_${ac_var}_set
1166   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1167   eval ac_new_val="\$ac_env_${ac_var}_value"
1168   case $ac_old_set,$ac_new_set in
1169     set,)
1170       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1171 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1172       ac_cache_corrupted=: ;;
1173     ,set)
1174       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1175 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1176       ac_cache_corrupted=: ;;
1177     ,);;
1178     *)
1179       if test "x$ac_old_val" != "x$ac_new_val"; then
1180         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1181 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1182         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1183 echo "$as_me:   former value:  $ac_old_val" >&2;}
1184         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1185 echo "$as_me:   current value: $ac_new_val" >&2;}
1186         ac_cache_corrupted=:
1187       fi;;
1188   esac
1189   # Pass precious variables to config.status.
1190   if test "$ac_new_set" = set; then
1191     case $ac_new_val in
1192     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1193       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1194     *) ac_arg=$ac_var=$ac_new_val ;;
1195     esac
1196     case " $ac_configure_args " in
1197       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1198       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1199     esac
1200   fi
1201 done
1202 if $ac_cache_corrupted; then
1203   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1204 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1205   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1206 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1207    { (exit 1); exit 1; }; }
1208 fi
1209
1210 ac_ext=c
1211 ac_cpp='$CPP $CPPFLAGS'
1212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243           ac_config_headers="$ac_config_headers config.h"
1244
1245
1246
1247
1248 # Deal with compile-time options
1249 # Check whether --enable-syslog or --disable-syslog was given.
1250 if test "${enable_syslog+set}" = set; then
1251   enableval="$enable_syslog"
1252   CFLAGS="$CFLAGS -DUSE_SYSLOG"
1253 fi;
1254 ac_ext=c
1255 ac_cpp='$CPP $CPPFLAGS'
1256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1259 if test -n "$ac_tool_prefix"; then
1260   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1261 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1262 echo "$as_me:$LINENO: checking for $ac_word" >&5
1263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1264 if test "${ac_cv_prog_CC+set}" = set; then
1265   echo $ECHO_N "(cached) $ECHO_C" >&6
1266 else
1267   if test -n "$CC"; then
1268   ac_cv_prog_CC="$CC" # Let the user override the test.
1269 else
1270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1271 for as_dir in $PATH
1272 do
1273   IFS=$as_save_IFS
1274   test -z "$as_dir" && as_dir=.
1275   for ac_exec_ext in '' $ac_executable_extensions; do
1276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1277     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1279     break 2
1280   fi
1281 done
1282 done
1283
1284 fi
1285 fi
1286 CC=$ac_cv_prog_CC
1287 if test -n "$CC"; then
1288   echo "$as_me:$LINENO: result: $CC" >&5
1289 echo "${ECHO_T}$CC" >&6
1290 else
1291   echo "$as_me:$LINENO: result: no" >&5
1292 echo "${ECHO_T}no" >&6
1293 fi
1294
1295 fi
1296 if test -z "$ac_cv_prog_CC"; then
1297   ac_ct_CC=$CC
1298   # Extract the first word of "gcc", so it can be a program name with args.
1299 set dummy gcc; ac_word=$2
1300 echo "$as_me:$LINENO: checking for $ac_word" >&5
1301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1302 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1303   echo $ECHO_N "(cached) $ECHO_C" >&6
1304 else
1305   if test -n "$ac_ct_CC"; then
1306   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1307 else
1308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1309 for as_dir in $PATH
1310 do
1311   IFS=$as_save_IFS
1312   test -z "$as_dir" && as_dir=.
1313   for ac_exec_ext in '' $ac_executable_extensions; do
1314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1315     ac_cv_prog_ac_ct_CC="gcc"
1316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1317     break 2
1318   fi
1319 done
1320 done
1321
1322 fi
1323 fi
1324 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1325 if test -n "$ac_ct_CC"; then
1326   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1327 echo "${ECHO_T}$ac_ct_CC" >&6
1328 else
1329   echo "$as_me:$LINENO: result: no" >&5
1330 echo "${ECHO_T}no" >&6
1331 fi
1332
1333   CC=$ac_ct_CC
1334 else
1335   CC="$ac_cv_prog_CC"
1336 fi
1337
1338 if test -z "$CC"; then
1339   if test -n "$ac_tool_prefix"; then
1340   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1341 set dummy ${ac_tool_prefix}cc; ac_word=$2
1342 echo "$as_me:$LINENO: checking for $ac_word" >&5
1343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1344 if test "${ac_cv_prog_CC+set}" = set; then
1345   echo $ECHO_N "(cached) $ECHO_C" >&6
1346 else
1347   if test -n "$CC"; then
1348   ac_cv_prog_CC="$CC" # Let the user override the test.
1349 else
1350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1351 for as_dir in $PATH
1352 do
1353   IFS=$as_save_IFS
1354   test -z "$as_dir" && as_dir=.
1355   for ac_exec_ext in '' $ac_executable_extensions; do
1356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1357     ac_cv_prog_CC="${ac_tool_prefix}cc"
1358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1359     break 2
1360   fi
1361 done
1362 done
1363
1364 fi
1365 fi
1366 CC=$ac_cv_prog_CC
1367 if test -n "$CC"; then
1368   echo "$as_me:$LINENO: result: $CC" >&5
1369 echo "${ECHO_T}$CC" >&6
1370 else
1371   echo "$as_me:$LINENO: result: no" >&5
1372 echo "${ECHO_T}no" >&6
1373 fi
1374
1375 fi
1376 if test -z "$ac_cv_prog_CC"; then
1377   ac_ct_CC=$CC
1378   # Extract the first word of "cc", so it can be a program name with args.
1379 set dummy cc; ac_word=$2
1380 echo "$as_me:$LINENO: checking for $ac_word" >&5
1381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1383   echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385   if test -n "$ac_ct_CC"; then
1386   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1387 else
1388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389 for as_dir in $PATH
1390 do
1391   IFS=$as_save_IFS
1392   test -z "$as_dir" && as_dir=.
1393   for ac_exec_ext in '' $ac_executable_extensions; do
1394   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1395     ac_cv_prog_ac_ct_CC="cc"
1396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1397     break 2
1398   fi
1399 done
1400 done
1401
1402 fi
1403 fi
1404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1405 if test -n "$ac_ct_CC"; then
1406   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1407 echo "${ECHO_T}$ac_ct_CC" >&6
1408 else
1409   echo "$as_me:$LINENO: result: no" >&5
1410 echo "${ECHO_T}no" >&6
1411 fi
1412
1413   CC=$ac_ct_CC
1414 else
1415   CC="$ac_cv_prog_CC"
1416 fi
1417
1418 fi
1419 if test -z "$CC"; then
1420   # Extract the first word of "cc", so it can be a program name with args.
1421 set dummy cc; ac_word=$2
1422 echo "$as_me:$LINENO: checking for $ac_word" >&5
1423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1424 if test "${ac_cv_prog_CC+set}" = set; then
1425   echo $ECHO_N "(cached) $ECHO_C" >&6
1426 else
1427   if test -n "$CC"; then
1428   ac_cv_prog_CC="$CC" # Let the user override the test.
1429 else
1430   ac_prog_rejected=no
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 for as_dir in $PATH
1433 do
1434   IFS=$as_save_IFS
1435   test -z "$as_dir" && as_dir=.
1436   for ac_exec_ext in '' $ac_executable_extensions; do
1437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1439        ac_prog_rejected=yes
1440        continue
1441      fi
1442     ac_cv_prog_CC="cc"
1443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1444     break 2
1445   fi
1446 done
1447 done
1448
1449 if test $ac_prog_rejected = yes; then
1450   # We found a bogon in the path, so make sure we never use it.
1451   set dummy $ac_cv_prog_CC
1452   shift
1453   if test $# != 0; then
1454     # We chose a different compiler from the bogus one.
1455     # However, it has the same basename, so the bogon will be chosen
1456     # first if we set CC to just the basename; use the full file name.
1457     shift
1458     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1459   fi
1460 fi
1461 fi
1462 fi
1463 CC=$ac_cv_prog_CC
1464 if test -n "$CC"; then
1465   echo "$as_me:$LINENO: result: $CC" >&5
1466 echo "${ECHO_T}$CC" >&6
1467 else
1468   echo "$as_me:$LINENO: result: no" >&5
1469 echo "${ECHO_T}no" >&6
1470 fi
1471
1472 fi
1473 if test -z "$CC"; then
1474   if test -n "$ac_tool_prefix"; then
1475   for ac_prog in cl
1476   do
1477     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1478 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_prog_CC+set}" = set; then
1482   echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484   if test -n "$CC"; then
1485   ac_cv_prog_CC="$CC" # Let the user override the test.
1486 else
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 for as_dir in $PATH
1489 do
1490   IFS=$as_save_IFS
1491   test -z "$as_dir" && as_dir=.
1492   for ac_exec_ext in '' $ac_executable_extensions; do
1493   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496     break 2
1497   fi
1498 done
1499 done
1500
1501 fi
1502 fi
1503 CC=$ac_cv_prog_CC
1504 if test -n "$CC"; then
1505   echo "$as_me:$LINENO: result: $CC" >&5
1506 echo "${ECHO_T}$CC" >&6
1507 else
1508   echo "$as_me:$LINENO: result: no" >&5
1509 echo "${ECHO_T}no" >&6
1510 fi
1511
1512     test -n "$CC" && break
1513   done
1514 fi
1515 if test -z "$CC"; then
1516   ac_ct_CC=$CC
1517   for ac_prog in cl
1518 do
1519   # Extract the first word of "$ac_prog", so it can be a program name with args.
1520 set dummy $ac_prog; ac_word=$2
1521 echo "$as_me:$LINENO: checking for $ac_word" >&5
1522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1524   echo $ECHO_N "(cached) $ECHO_C" >&6
1525 else
1526   if test -n "$ac_ct_CC"; then
1527   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1528 else
1529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 for as_dir in $PATH
1531 do
1532   IFS=$as_save_IFS
1533   test -z "$as_dir" && as_dir=.
1534   for ac_exec_ext in '' $ac_executable_extensions; do
1535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536     ac_cv_prog_ac_ct_CC="$ac_prog"
1537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538     break 2
1539   fi
1540 done
1541 done
1542
1543 fi
1544 fi
1545 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1546 if test -n "$ac_ct_CC"; then
1547   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1548 echo "${ECHO_T}$ac_ct_CC" >&6
1549 else
1550   echo "$as_me:$LINENO: result: no" >&5
1551 echo "${ECHO_T}no" >&6
1552 fi
1553
1554   test -n "$ac_ct_CC" && break
1555 done
1556
1557   CC=$ac_ct_CC
1558 fi
1559
1560 fi
1561
1562
1563 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1564 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1565    { (exit 1); exit 1; }; }
1566
1567 # Provide some information about the compiler.
1568 echo "$as_me:$LINENO:" \
1569      "checking for C compiler version" >&5
1570 ac_compiler=`set X $ac_compile; echo $2`
1571 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1572   (eval $ac_compiler --version </dev/null >&5) 2>&5
1573   ac_status=$?
1574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1575   (exit $ac_status); }
1576 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1577   (eval $ac_compiler -v </dev/null >&5) 2>&5
1578   ac_status=$?
1579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1580   (exit $ac_status); }
1581 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1582   (eval $ac_compiler -V </dev/null >&5) 2>&5
1583   ac_status=$?
1584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1585   (exit $ac_status); }
1586
1587 cat >conftest.$ac_ext <<_ACEOF
1588 #line $LINENO "configure"
1589 #include "confdefs.h"
1590
1591 int
1592 main ()
1593 {
1594
1595   ;
1596   return 0;
1597 }
1598 _ACEOF
1599 ac_clean_files_save=$ac_clean_files
1600 ac_clean_files="$ac_clean_files a.out a.exe"
1601 # Try to create an executable without -o first, disregard a.out.
1602 # It will help us diagnose broken compilers, and finding out an intuition
1603 # of exeext.
1604 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1605 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1606 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1607 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1608   (eval $ac_link_default) 2>&5
1609   ac_status=$?
1610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1611   (exit $ac_status); }; then
1612   # Find the output, starting from the most likely.  This scheme is
1613 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1614 # resort.
1615
1616 # Be careful to initialize this variable, since it used to be cached.
1617 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1618 ac_cv_exeext=
1619 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1620   test -f "$ac_file" || continue
1621   case $ac_file in
1622     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1623     a.out ) # We found the default executable, but exeext='' is most
1624             # certainly right.
1625             break;;
1626     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1627           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1628           export ac_cv_exeext
1629           break;;
1630     * ) break;;
1631   esac
1632 done
1633 else
1634   echo "$as_me: failed program was:" >&5
1635 cat conftest.$ac_ext >&5
1636 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1637 check \`config.log' for details." >&5
1638 echo "$as_me: error: C compiler cannot create executables
1639 check \`config.log' for details." >&2;}
1640    { (exit 77); exit 77; }; }
1641 fi
1642
1643 ac_exeext=$ac_cv_exeext
1644 echo "$as_me:$LINENO: result: $ac_file" >&5
1645 echo "${ECHO_T}$ac_file" >&6
1646
1647 # Check the compiler produces executables we can run.  If not, either
1648 # the compiler is broken, or we cross compile.
1649 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1650 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1651 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1652 # If not cross compiling, check that we can run a simple program.
1653 if test "$cross_compiling" != yes; then
1654   if { ac_try='./$ac_file'
1655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1656   (eval $ac_try) 2>&5
1657   ac_status=$?
1658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1659   (exit $ac_status); }; }; then
1660     cross_compiling=no
1661   else
1662     if test "$cross_compiling" = maybe; then
1663         cross_compiling=yes
1664     else
1665         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1666 If you meant to cross compile, use \`--host'." >&5
1667 echo "$as_me: error: cannot run C compiled programs.
1668 If you meant to cross compile, use \`--host'." >&2;}
1669    { (exit 1); exit 1; }; }
1670     fi
1671   fi
1672 fi
1673 echo "$as_me:$LINENO: result: yes" >&5
1674 echo "${ECHO_T}yes" >&6
1675
1676 rm -f a.out a.exe conftest$ac_cv_exeext
1677 ac_clean_files=$ac_clean_files_save
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 we are cross compiling" >&5
1681 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1682 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1683 echo "${ECHO_T}$cross_compiling" >&6
1684
1685 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1686 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1688   (eval $ac_link) 2>&5
1689   ac_status=$?
1690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1691   (exit $ac_status); }; then
1692   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1693 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1694 # work properly (i.e., refer to `conftest.exe'), while it won't with
1695 # `rm'.
1696 for ac_file in conftest.exe conftest conftest.*; do
1697   test -f "$ac_file" || continue
1698   case $ac_file in
1699     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1700     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1701           export ac_cv_exeext
1702           break;;
1703     * ) break;;
1704   esac
1705 done
1706 else
1707   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1708 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1709    { (exit 1); exit 1; }; }
1710 fi
1711
1712 rm -f conftest$ac_cv_exeext
1713 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1714 echo "${ECHO_T}$ac_cv_exeext" >&6
1715
1716 rm -f conftest.$ac_ext
1717 EXEEXT=$ac_cv_exeext
1718 ac_exeext=$EXEEXT
1719 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1720 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1721 if test "${ac_cv_objext+set}" = set; then
1722   echo $ECHO_N "(cached) $ECHO_C" >&6
1723 else
1724   cat >conftest.$ac_ext <<_ACEOF
1725 #line $LINENO "configure"
1726 #include "confdefs.h"
1727
1728 int
1729 main ()
1730 {
1731
1732   ;
1733   return 0;
1734 }
1735 _ACEOF
1736 rm -f conftest.o conftest.obj
1737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1738   (eval $ac_compile) 2>&5
1739   ac_status=$?
1740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741   (exit $ac_status); }; then
1742   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1743   case $ac_file in
1744     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1745     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1746        break;;
1747   esac
1748 done
1749 else
1750   echo "$as_me: failed program was:" >&5
1751 cat conftest.$ac_ext >&5
1752 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1753 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1754    { (exit 1); exit 1; }; }
1755 fi
1756
1757 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1758 fi
1759 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1760 echo "${ECHO_T}$ac_cv_objext" >&6
1761 OBJEXT=$ac_cv_objext
1762 ac_objext=$OBJEXT
1763 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1764 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1765 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1766   echo $ECHO_N "(cached) $ECHO_C" >&6
1767 else
1768   cat >conftest.$ac_ext <<_ACEOF
1769 #line $LINENO "configure"
1770 #include "confdefs.h"
1771
1772 int
1773 main ()
1774 {
1775 #ifndef __GNUC__
1776        choke me
1777 #endif
1778
1779   ;
1780   return 0;
1781 }
1782 _ACEOF
1783 rm -f conftest.$ac_objext
1784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1785   (eval $ac_compile) 2>&5
1786   ac_status=$?
1787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788   (exit $ac_status); } &&
1789          { ac_try='test -s conftest.$ac_objext'
1790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1791   (eval $ac_try) 2>&5
1792   ac_status=$?
1793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794   (exit $ac_status); }; }; then
1795   ac_compiler_gnu=yes
1796 else
1797   echo "$as_me: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1799 ac_compiler_gnu=no
1800 fi
1801 rm -f conftest.$ac_objext conftest.$ac_ext
1802 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1803
1804 fi
1805 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1806 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1807 GCC=`test $ac_compiler_gnu = yes && echo yes`
1808 ac_test_CFLAGS=${CFLAGS+set}
1809 ac_save_CFLAGS=$CFLAGS
1810 CFLAGS="-g"
1811 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1812 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1813 if test "${ac_cv_prog_cc_g+set}" = set; then
1814   echo $ECHO_N "(cached) $ECHO_C" >&6
1815 else
1816   cat >conftest.$ac_ext <<_ACEOF
1817 #line $LINENO "configure"
1818 #include "confdefs.h"
1819
1820 int
1821 main ()
1822 {
1823
1824   ;
1825   return 0;
1826 }
1827 _ACEOF
1828 rm -f conftest.$ac_objext
1829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1830   (eval $ac_compile) 2>&5
1831   ac_status=$?
1832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833   (exit $ac_status); } &&
1834          { ac_try='test -s conftest.$ac_objext'
1835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1836   (eval $ac_try) 2>&5
1837   ac_status=$?
1838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839   (exit $ac_status); }; }; then
1840   ac_cv_prog_cc_g=yes
1841 else
1842   echo "$as_me: failed program was:" >&5
1843 cat conftest.$ac_ext >&5
1844 ac_cv_prog_cc_g=no
1845 fi
1846 rm -f conftest.$ac_objext conftest.$ac_ext
1847 fi
1848 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1849 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1850 if test "$ac_test_CFLAGS" = set; then
1851   CFLAGS=$ac_save_CFLAGS
1852 elif test $ac_cv_prog_cc_g = yes; then
1853   if test "$GCC" = yes; then
1854     CFLAGS="-g -O2"
1855   else
1856     CFLAGS="-g"
1857   fi
1858 else
1859   if test "$GCC" = yes; then
1860     CFLAGS="-O2"
1861   else
1862     CFLAGS=
1863   fi
1864 fi
1865 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1866 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1867 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1868   echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870   ac_cv_prog_cc_stdc=no
1871 ac_save_CC=$CC
1872 cat >conftest.$ac_ext <<_ACEOF
1873 #line $LINENO "configure"
1874 #include "confdefs.h"
1875 #include <stdarg.h>
1876 #include <stdio.h>
1877 #include <sys/types.h>
1878 #include <sys/stat.h>
1879 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1880 struct buf { int x; };
1881 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1882 static char *e (p, i)
1883      char **p;
1884      int i;
1885 {
1886   return p[i];
1887 }
1888 static char *f (char * (*g) (char **, int), char **p, ...)
1889 {
1890   char *s;
1891   va_list v;
1892   va_start (v,p);
1893   s = g (p, va_arg (v,int));
1894   va_end (v);
1895   return s;
1896 }
1897 int test (int i, double x);
1898 struct s1 {int (*f) (int a);};
1899 struct s2 {int (*f) (double a);};
1900 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1901 int argc;
1902 char **argv;
1903 int
1904 main ()
1905 {
1906 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1907   ;
1908   return 0;
1909 }
1910 _ACEOF
1911 # Don't try gcc -ansi; that turns off useful extensions and
1912 # breaks some systems' header files.
1913 # AIX                   -qlanglvl=ansi
1914 # Ultrix and OSF/1      -std1
1915 # HP-UX 10.20 and later -Ae
1916 # HP-UX older versions  -Aa -D_HPUX_SOURCE
1917 # SVR4                  -Xc -D__EXTENSIONS__
1918 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1919 do
1920   CC="$ac_save_CC $ac_arg"
1921   rm -f conftest.$ac_objext
1922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1923   (eval $ac_compile) 2>&5
1924   ac_status=$?
1925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926   (exit $ac_status); } &&
1927          { ac_try='test -s conftest.$ac_objext'
1928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1929   (eval $ac_try) 2>&5
1930   ac_status=$?
1931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932   (exit $ac_status); }; }; then
1933   ac_cv_prog_cc_stdc=$ac_arg
1934 break
1935 else
1936   echo "$as_me: failed program was:" >&5
1937 cat conftest.$ac_ext >&5
1938 fi
1939 rm -f conftest.$ac_objext
1940 done
1941 rm -f conftest.$ac_ext conftest.$ac_objext
1942 CC=$ac_save_CC
1943
1944 fi
1945
1946 case "x$ac_cv_prog_cc_stdc" in
1947   x|xno)
1948     echo "$as_me:$LINENO: result: none needed" >&5
1949 echo "${ECHO_T}none needed" >&6 ;;
1950   *)
1951     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
1952 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1953     CC="$CC $ac_cv_prog_cc_stdc" ;;
1954 esac
1955
1956 # Some people use a C++ compiler to compile C.  Since we use `exit',
1957 # in C++ we need to declare it.  In case someone uses the same compiler
1958 # for both compiling C and C++ we need to have the C++ compiler decide
1959 # the declaration of exit, since it's the most demanding environment.
1960 cat >conftest.$ac_ext <<_ACEOF
1961 #ifndef __cplusplus
1962   choke me
1963 #endif
1964 _ACEOF
1965 rm -f conftest.$ac_objext
1966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1967   (eval $ac_compile) 2>&5
1968   ac_status=$?
1969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970   (exit $ac_status); } &&
1971          { ac_try='test -s conftest.$ac_objext'
1972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1973   (eval $ac_try) 2>&5
1974   ac_status=$?
1975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976   (exit $ac_status); }; }; then
1977   for ac_declaration in \
1978    ''\
1979    '#include <stdlib.h>' \
1980    'extern "C" void std::exit (int) throw (); using std::exit;' \
1981    'extern "C" void std::exit (int); using std::exit;' \
1982    'extern "C" void exit (int) throw ();' \
1983    'extern "C" void exit (int);' \
1984    'void exit (int);'
1985 do
1986   cat >conftest.$ac_ext <<_ACEOF
1987 #line $LINENO "configure"
1988 #include "confdefs.h"
1989 #include <stdlib.h>
1990 $ac_declaration
1991 int
1992 main ()
1993 {
1994 exit (42);
1995   ;
1996   return 0;
1997 }
1998 _ACEOF
1999 rm -f conftest.$ac_objext
2000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2001   (eval $ac_compile) 2>&5
2002   ac_status=$?
2003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004   (exit $ac_status); } &&
2005          { ac_try='test -s conftest.$ac_objext'
2006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007   (eval $ac_try) 2>&5
2008   ac_status=$?
2009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010   (exit $ac_status); }; }; then
2011   :
2012 else
2013   echo "$as_me: failed program was:" >&5
2014 cat conftest.$ac_ext >&5
2015 continue
2016 fi
2017 rm -f conftest.$ac_objext conftest.$ac_ext
2018   cat >conftest.$ac_ext <<_ACEOF
2019 #line $LINENO "configure"
2020 #include "confdefs.h"
2021 $ac_declaration
2022 int
2023 main ()
2024 {
2025 exit (42);
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 rm -f conftest.$ac_objext
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032   (eval $ac_compile) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); } &&
2036          { ac_try='test -s conftest.$ac_objext'
2037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038   (eval $ac_try) 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); }; }; then
2042   break
2043 else
2044   echo "$as_me: failed program was:" >&5
2045 cat conftest.$ac_ext >&5
2046 fi
2047 rm -f conftest.$ac_objext conftest.$ac_ext
2048 done
2049 rm -f conftest*
2050 if test -n "$ac_declaration"; then
2051   echo '#ifdef __cplusplus' >>confdefs.h
2052   echo $ac_declaration      >>confdefs.h
2053   echo '#endif'             >>confdefs.h
2054 fi
2055
2056 else
2057   echo "$as_me: failed program was:" >&5
2058 cat conftest.$ac_ext >&5
2059 fi
2060 rm -f conftest.$ac_objext conftest.$ac_ext
2061 ac_ext=c
2062 ac_cpp='$CPP $CPPFLAGS'
2063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2066
2067
2068 # Check whether --enable-debug or --disable-debug was given.
2069 if test "${enable_debug+set}" = set; then
2070   enableval="$enable_debug"
2071   CFLAGS="$CFLAGS -g"
2072 echo "$as_me:$LINENO: checking for malloc in -lefence" >&5
2073 echo $ECHO_N "checking for malloc in -lefence... $ECHO_C" >&6
2074 if test "${ac_cv_lib_efence_malloc+set}" = set; then
2075   echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077   ac_check_lib_save_LIBS=$LIBS
2078 LIBS="-lefence  $LIBS"
2079 cat >conftest.$ac_ext <<_ACEOF
2080 #line $LINENO "configure"
2081 #include "confdefs.h"
2082
2083 /* Override any gcc2 internal prototype to avoid an error.  */
2084 #ifdef __cplusplus
2085 extern "C"
2086 #endif
2087 /* We use char because int might match the return type of a gcc2
2088    builtin and then its argument prototype would still apply.  */
2089 char malloc ();
2090 int
2091 main ()
2092 {
2093 malloc ();
2094   ;
2095   return 0;
2096 }
2097 _ACEOF
2098 rm -f conftest.$ac_objext conftest$ac_exeext
2099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2100   (eval $ac_link) 2>&5
2101   ac_status=$?
2102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103   (exit $ac_status); } &&
2104          { ac_try='test -s conftest$ac_exeext'
2105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106   (eval $ac_try) 2>&5
2107   ac_status=$?
2108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109   (exit $ac_status); }; }; then
2110   ac_cv_lib_efence_malloc=yes
2111 else
2112   echo "$as_me: failed program was:" >&5
2113 cat conftest.$ac_ext >&5
2114 ac_cv_lib_efence_malloc=no
2115 fi
2116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2117 LIBS=$ac_check_lib_save_LIBS
2118 fi
2119 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_malloc" >&5
2120 echo "${ECHO_T}$ac_cv_lib_efence_malloc" >&6
2121 if test $ac_cv_lib_efence_malloc = yes; then
2122   cat >>confdefs.h <<_ACEOF
2123 #define HAVE_LIBEFENCE 1
2124 _ACEOF
2125
2126   LIBS="-lefence $LIBS"
2127
2128 fi
2129  STRIP="touch"
2130 else
2131   STRIP="strip"
2132 fi;
2133
2134 # Checks for programs.
2135 ac_ext=c
2136 ac_cpp='$CPP $CPPFLAGS'
2137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140 if test -n "$ac_tool_prefix"; then
2141   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2143 echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2145 if test "${ac_cv_prog_CC+set}" = set; then
2146   echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148   if test -n "$CC"; then
2149   ac_cv_prog_CC="$CC" # Let the user override the test.
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2153 do
2154   IFS=$as_save_IFS
2155   test -z "$as_dir" && as_dir=.
2156   for ac_exec_ext in '' $ac_executable_extensions; do
2157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2158     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160     break 2
2161   fi
2162 done
2163 done
2164
2165 fi
2166 fi
2167 CC=$ac_cv_prog_CC
2168 if test -n "$CC"; then
2169   echo "$as_me:$LINENO: result: $CC" >&5
2170 echo "${ECHO_T}$CC" >&6
2171 else
2172   echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6
2174 fi
2175
2176 fi
2177 if test -z "$ac_cv_prog_CC"; then
2178   ac_ct_CC=$CC
2179   # Extract the first word of "gcc", so it can be a program name with args.
2180 set dummy gcc; ac_word=$2
2181 echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2183 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2184   echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186   if test -n "$ac_ct_CC"; then
2187   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2188 else
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2191 do
2192   IFS=$as_save_IFS
2193   test -z "$as_dir" && as_dir=.
2194   for ac_exec_ext in '' $ac_executable_extensions; do
2195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2196     ac_cv_prog_ac_ct_CC="gcc"
2197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198     break 2
2199   fi
2200 done
2201 done
2202
2203 fi
2204 fi
2205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2206 if test -n "$ac_ct_CC"; then
2207   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2208 echo "${ECHO_T}$ac_ct_CC" >&6
2209 else
2210   echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2212 fi
2213
2214   CC=$ac_ct_CC
2215 else
2216   CC="$ac_cv_prog_CC"
2217 fi
2218
2219 if test -z "$CC"; then
2220   if test -n "$ac_tool_prefix"; then
2221   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2222 set dummy ${ac_tool_prefix}cc; ac_word=$2
2223 echo "$as_me:$LINENO: checking for $ac_word" >&5
2224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2225 if test "${ac_cv_prog_CC+set}" = set; then
2226   echo $ECHO_N "(cached) $ECHO_C" >&6
2227 else
2228   if test -n "$CC"; then
2229   ac_cv_prog_CC="$CC" # Let the user override the test.
2230 else
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 for as_dir in $PATH
2233 do
2234   IFS=$as_save_IFS
2235   test -z "$as_dir" && as_dir=.
2236   for ac_exec_ext in '' $ac_executable_extensions; do
2237   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2238     ac_cv_prog_CC="${ac_tool_prefix}cc"
2239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240     break 2
2241   fi
2242 done
2243 done
2244
2245 fi
2246 fi
2247 CC=$ac_cv_prog_CC
2248 if test -n "$CC"; then
2249   echo "$as_me:$LINENO: result: $CC" >&5
2250 echo "${ECHO_T}$CC" >&6
2251 else
2252   echo "$as_me:$LINENO: result: no" >&5
2253 echo "${ECHO_T}no" >&6
2254 fi
2255
2256 fi
2257 if test -z "$ac_cv_prog_CC"; then
2258   ac_ct_CC=$CC
2259   # Extract the first word of "cc", so it can be a program name with args.
2260 set dummy cc; ac_word=$2
2261 echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2264   echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266   if test -n "$ac_ct_CC"; then
2267   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2268 else
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 for as_dir in $PATH
2271 do
2272   IFS=$as_save_IFS
2273   test -z "$as_dir" && as_dir=.
2274   for ac_exec_ext in '' $ac_executable_extensions; do
2275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276     ac_cv_prog_ac_ct_CC="cc"
2277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278     break 2
2279   fi
2280 done
2281 done
2282
2283 fi
2284 fi
2285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2286 if test -n "$ac_ct_CC"; then
2287   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2288 echo "${ECHO_T}$ac_ct_CC" >&6
2289 else
2290   echo "$as_me:$LINENO: result: no" >&5
2291 echo "${ECHO_T}no" >&6
2292 fi
2293
2294   CC=$ac_ct_CC
2295 else
2296   CC="$ac_cv_prog_CC"
2297 fi
2298
2299 fi
2300 if test -z "$CC"; then
2301   # Extract the first word of "cc", so it can be a program name with args.
2302 set dummy cc; ac_word=$2
2303 echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305 if test "${ac_cv_prog_CC+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   if test -n "$CC"; then
2309   ac_cv_prog_CC="$CC" # Let the user override the test.
2310 else
2311   ac_prog_rejected=no
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315   IFS=$as_save_IFS
2316   test -z "$as_dir" && as_dir=.
2317   for ac_exec_ext in '' $ac_executable_extensions; do
2318   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2319     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2320        ac_prog_rejected=yes
2321        continue
2322      fi
2323     ac_cv_prog_CC="cc"
2324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325     break 2
2326   fi
2327 done
2328 done
2329
2330 if test $ac_prog_rejected = yes; then
2331   # We found a bogon in the path, so make sure we never use it.
2332   set dummy $ac_cv_prog_CC
2333   shift
2334   if test $# != 0; then
2335     # We chose a different compiler from the bogus one.
2336     # However, it has the same basename, so the bogon will be chosen
2337     # first if we set CC to just the basename; use the full file name.
2338     shift
2339     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2340   fi
2341 fi
2342 fi
2343 fi
2344 CC=$ac_cv_prog_CC
2345 if test -n "$CC"; then
2346   echo "$as_me:$LINENO: result: $CC" >&5
2347 echo "${ECHO_T}$CC" >&6
2348 else
2349   echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6
2351 fi
2352
2353 fi
2354 if test -z "$CC"; then
2355   if test -n "$ac_tool_prefix"; then
2356   for ac_prog in cl
2357   do
2358     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_CC+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   if test -n "$CC"; then
2366   ac_cv_prog_CC="$CC" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371   IFS=$as_save_IFS
2372   test -z "$as_dir" && as_dir=.
2373   for ac_exec_ext in '' $ac_executable_extensions; do
2374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377     break 2
2378   fi
2379 done
2380 done
2381
2382 fi
2383 fi
2384 CC=$ac_cv_prog_CC
2385 if test -n "$CC"; then
2386   echo "$as_me:$LINENO: result: $CC" >&5
2387 echo "${ECHO_T}$CC" >&6
2388 else
2389   echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6
2391 fi
2392
2393     test -n "$CC" && break
2394   done
2395 fi
2396 if test -z "$CC"; then
2397   ac_ct_CC=$CC
2398   for ac_prog in cl
2399 do
2400   # Extract the first word of "$ac_prog", so it can be a program name with args.
2401 set dummy $ac_prog; ac_word=$2
2402 echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   if test -n "$ac_ct_CC"; then
2408   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2409 else
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH
2412 do
2413   IFS=$as_save_IFS
2414   test -z "$as_dir" && as_dir=.
2415   for ac_exec_ext in '' $ac_executable_extensions; do
2416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417     ac_cv_prog_ac_ct_CC="$ac_prog"
2418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419     break 2
2420   fi
2421 done
2422 done
2423
2424 fi
2425 fi
2426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2427 if test -n "$ac_ct_CC"; then
2428   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2429 echo "${ECHO_T}$ac_ct_CC" >&6
2430 else
2431   echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6
2433 fi
2434
2435   test -n "$ac_ct_CC" && break
2436 done
2437
2438   CC=$ac_ct_CC
2439 fi
2440
2441 fi
2442
2443
2444 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2445 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2446    { (exit 1); exit 1; }; }
2447
2448 # Provide some information about the compiler.
2449 echo "$as_me:$LINENO:" \
2450      "checking for C compiler version" >&5
2451 ac_compiler=`set X $ac_compile; echo $2`
2452 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2453   (eval $ac_compiler --version </dev/null >&5) 2>&5
2454   ac_status=$?
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); }
2457 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2458   (eval $ac_compiler -v </dev/null >&5) 2>&5
2459   ac_status=$?
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); }
2462 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2463   (eval $ac_compiler -V </dev/null >&5) 2>&5
2464   ac_status=$?
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); }
2467
2468 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2469 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2470 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2471   echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473   cat >conftest.$ac_ext <<_ACEOF
2474 #line $LINENO "configure"
2475 #include "confdefs.h"
2476
2477 int
2478 main ()
2479 {
2480 #ifndef __GNUC__
2481        choke me
2482 #endif
2483
2484   ;
2485   return 0;
2486 }
2487 _ACEOF
2488 rm -f conftest.$ac_objext
2489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490   (eval $ac_compile) 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); } &&
2494          { ac_try='test -s conftest.$ac_objext'
2495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496   (eval $ac_try) 2>&5
2497   ac_status=$?
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); }; }; then
2500   ac_compiler_gnu=yes
2501 else
2502   echo "$as_me: failed program was:" >&5
2503 cat conftest.$ac_ext >&5
2504 ac_compiler_gnu=no
2505 fi
2506 rm -f conftest.$ac_objext conftest.$ac_ext
2507 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2508
2509 fi
2510 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2511 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2512 GCC=`test $ac_compiler_gnu = yes && echo yes`
2513 ac_test_CFLAGS=${CFLAGS+set}
2514 ac_save_CFLAGS=$CFLAGS
2515 CFLAGS="-g"
2516 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2517 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2518 if test "${ac_cv_prog_cc_g+set}" = set; then
2519   echo $ECHO_N "(cached) $ECHO_C" >&6
2520 else
2521   cat >conftest.$ac_ext <<_ACEOF
2522 #line $LINENO "configure"
2523 #include "confdefs.h"
2524
2525 int
2526 main ()
2527 {
2528
2529   ;
2530   return 0;
2531 }
2532 _ACEOF
2533 rm -f conftest.$ac_objext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535   (eval $ac_compile) 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); } &&
2539          { ac_try='test -s conftest.$ac_objext'
2540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541   (eval $ac_try) 2>&5
2542   ac_status=$?
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); }; }; then
2545   ac_cv_prog_cc_g=yes
2546 else
2547   echo "$as_me: failed program was:" >&5
2548 cat conftest.$ac_ext >&5
2549 ac_cv_prog_cc_g=no
2550 fi
2551 rm -f conftest.$ac_objext conftest.$ac_ext
2552 fi
2553 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2554 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2555 if test "$ac_test_CFLAGS" = set; then
2556   CFLAGS=$ac_save_CFLAGS
2557 elif test $ac_cv_prog_cc_g = yes; then
2558   if test "$GCC" = yes; then
2559     CFLAGS="-g -O2"
2560   else
2561     CFLAGS="-g"
2562   fi
2563 else
2564   if test "$GCC" = yes; then
2565     CFLAGS="-O2"
2566   else
2567     CFLAGS=
2568   fi
2569 fi
2570 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2571 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2572 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2573   echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575   ac_cv_prog_cc_stdc=no
2576 ac_save_CC=$CC
2577 cat >conftest.$ac_ext <<_ACEOF
2578 #line $LINENO "configure"
2579 #include "confdefs.h"
2580 #include <stdarg.h>
2581 #include <stdio.h>
2582 #include <sys/types.h>
2583 #include <sys/stat.h>
2584 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2585 struct buf { int x; };
2586 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2587 static char *e (p, i)
2588      char **p;
2589      int i;
2590 {
2591   return p[i];
2592 }
2593 static char *f (char * (*g) (char **, int), char **p, ...)
2594 {
2595   char *s;
2596   va_list v;
2597   va_start (v,p);
2598   s = g (p, va_arg (v,int));
2599   va_end (v);
2600   return s;
2601 }
2602 int test (int i, double x);
2603 struct s1 {int (*f) (int a);};
2604 struct s2 {int (*f) (double a);};
2605 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2606 int argc;
2607 char **argv;
2608 int
2609 main ()
2610 {
2611 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2612   ;
2613   return 0;
2614 }
2615 _ACEOF
2616 # Don't try gcc -ansi; that turns off useful extensions and
2617 # breaks some systems' header files.
2618 # AIX                   -qlanglvl=ansi
2619 # Ultrix and OSF/1      -std1
2620 # HP-UX 10.20 and later -Ae
2621 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2622 # SVR4                  -Xc -D__EXTENSIONS__
2623 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2624 do
2625   CC="$ac_save_CC $ac_arg"
2626   rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628   (eval $ac_compile) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); } &&
2632          { ac_try='test -s conftest.$ac_objext'
2633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634   (eval $ac_try) 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); }; }; then
2638   ac_cv_prog_cc_stdc=$ac_arg
2639 break
2640 else
2641   echo "$as_me: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2643 fi
2644 rm -f conftest.$ac_objext
2645 done
2646 rm -f conftest.$ac_ext conftest.$ac_objext
2647 CC=$ac_save_CC
2648
2649 fi
2650
2651 case "x$ac_cv_prog_cc_stdc" in
2652   x|xno)
2653     echo "$as_me:$LINENO: result: none needed" >&5
2654 echo "${ECHO_T}none needed" >&6 ;;
2655   *)
2656     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2657 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2658     CC="$CC $ac_cv_prog_cc_stdc" ;;
2659 esac
2660
2661 # Some people use a C++ compiler to compile C.  Since we use `exit',
2662 # in C++ we need to declare it.  In case someone uses the same compiler
2663 # for both compiling C and C++ we need to have the C++ compiler decide
2664 # the declaration of exit, since it's the most demanding environment.
2665 cat >conftest.$ac_ext <<_ACEOF
2666 #ifndef __cplusplus
2667   choke me
2668 #endif
2669 _ACEOF
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672   (eval $ac_compile) 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); } &&
2676          { ac_try='test -s conftest.$ac_objext'
2677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678   (eval $ac_try) 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }; }; then
2682   for ac_declaration in \
2683    ''\
2684    '#include <stdlib.h>' \
2685    'extern "C" void std::exit (int) throw (); using std::exit;' \
2686    'extern "C" void std::exit (int); using std::exit;' \
2687    'extern "C" void exit (int) throw ();' \
2688    'extern "C" void exit (int);' \
2689    'void exit (int);'
2690 do
2691   cat >conftest.$ac_ext <<_ACEOF
2692 #line $LINENO "configure"
2693 #include "confdefs.h"
2694 #include <stdlib.h>
2695 $ac_declaration
2696 int
2697 main ()
2698 {
2699 exit (42);
2700   ;
2701   return 0;
2702 }
2703 _ACEOF
2704 rm -f conftest.$ac_objext
2705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2706   (eval $ac_compile) 2>&5
2707   ac_status=$?
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } &&
2710          { ac_try='test -s conftest.$ac_objext'
2711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712   (eval $ac_try) 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }; }; then
2716   :
2717 else
2718   echo "$as_me: failed program was:" >&5
2719 cat conftest.$ac_ext >&5
2720 continue
2721 fi
2722 rm -f conftest.$ac_objext conftest.$ac_ext
2723   cat >conftest.$ac_ext <<_ACEOF
2724 #line $LINENO "configure"
2725 #include "confdefs.h"
2726 $ac_declaration
2727 int
2728 main ()
2729 {
2730 exit (42);
2731   ;
2732   return 0;
2733 }
2734 _ACEOF
2735 rm -f conftest.$ac_objext
2736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2737   (eval $ac_compile) 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); } &&
2741          { ac_try='test -s conftest.$ac_objext'
2742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743   (eval $ac_try) 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }; }; then
2747   break
2748 else
2749   echo "$as_me: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2751 fi
2752 rm -f conftest.$ac_objext conftest.$ac_ext
2753 done
2754 rm -f conftest*
2755 if test -n "$ac_declaration"; then
2756   echo '#ifdef __cplusplus' >>confdefs.h
2757   echo $ac_declaration      >>confdefs.h
2758   echo '#endif'             >>confdefs.h
2759 fi
2760
2761 else
2762   echo "$as_me: failed program was:" >&5
2763 cat conftest.$ac_ext >&5
2764 fi
2765 rm -f conftest.$ac_objext conftest.$ac_ext
2766 ac_ext=c
2767 ac_cpp='$CPP $CPPFLAGS'
2768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771
2772
2773 # Checks for libraries.
2774 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2775 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2776 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2777   echo $ECHO_N "(cached) $ECHO_C" >&6
2778 else
2779   ac_check_lib_save_LIBS=$LIBS
2780 LIBS="-lpthread  $LIBS"
2781 cat >conftest.$ac_ext <<_ACEOF
2782 #line $LINENO "configure"
2783 #include "confdefs.h"
2784
2785 /* Override any gcc2 internal prototype to avoid an error.  */
2786 #ifdef __cplusplus
2787 extern "C"
2788 #endif
2789 /* We use char because int might match the return type of a gcc2
2790    builtin and then its argument prototype would still apply.  */
2791 char pthread_create ();
2792 int
2793 main ()
2794 {
2795 pthread_create ();
2796   ;
2797   return 0;
2798 }
2799 _ACEOF
2800 rm -f conftest.$ac_objext conftest$ac_exeext
2801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2802   (eval $ac_link) 2>&5
2803   ac_status=$?
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); } &&
2806          { ac_try='test -s conftest$ac_exeext'
2807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808   (eval $ac_try) 2>&5
2809   ac_status=$?
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); }; }; then
2812   ac_cv_lib_pthread_pthread_create=yes
2813 else
2814   echo "$as_me: failed program was:" >&5
2815 cat conftest.$ac_ext >&5
2816 ac_cv_lib_pthread_pthread_create=no
2817 fi
2818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2819 LIBS=$ac_check_lib_save_LIBS
2820 fi
2821 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2822 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2823 if test $ac_cv_lib_pthread_pthread_create = yes; then
2824   LIBS="$LIBS -lpthread"
2825 else
2826
2827 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
2828 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
2829 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
2830   echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832   ac_check_lib_save_LIBS=$LIBS
2833 LIBS="-lc_r  $LIBS"
2834 cat >conftest.$ac_ext <<_ACEOF
2835 #line $LINENO "configure"
2836 #include "confdefs.h"
2837
2838 /* Override any gcc2 internal prototype to avoid an error.  */
2839 #ifdef __cplusplus
2840 extern "C"
2841 #endif
2842 /* We use char because int might match the return type of a gcc2
2843    builtin and then its argument prototype would still apply.  */
2844 char pthread_create ();
2845 int
2846 main ()
2847 {
2848 pthread_create ();
2849   ;
2850   return 0;
2851 }
2852 _ACEOF
2853 rm -f conftest.$ac_objext conftest$ac_exeext
2854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2855   (eval $ac_link) 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); } &&
2859          { ac_try='test -s conftest$ac_exeext'
2860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861   (eval $ac_try) 2>&5
2862   ac_status=$?
2863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); }; }; then
2865   ac_cv_lib_c_r_pthread_create=yes
2866 else
2867   echo "$as_me: failed program was:" >&5
2868 cat conftest.$ac_ext >&5
2869 ac_cv_lib_c_r_pthread_create=no
2870 fi
2871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2872 LIBS=$ac_check_lib_save_LIBS
2873 fi
2874 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
2875 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
2876 if test $ac_cv_lib_c_r_pthread_create = yes; then
2877   cat >>confdefs.h <<_ACEOF
2878 #define HAVE_LIBC_R 1
2879 _ACEOF
2880
2881   LIBS="-lc_r $LIBS"
2882
2883 else
2884   CFLAGS="$CFLAGS -pthread"
2885 fi
2886
2887 fi
2888
2889
2890 # Check for zlib
2891
2892 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
2893 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
2894 if test "${ac_cv_lib_z_gzopen+set}" = set; then
2895   echo $ECHO_N "(cached) $ECHO_C" >&6
2896 else
2897   ac_check_lib_save_LIBS=$LIBS
2898 LIBS="-lz  $LIBS"
2899 cat >conftest.$ac_ext <<_ACEOF
2900 #line $LINENO "configure"
2901 #include "confdefs.h"
2902
2903 /* Override any gcc2 internal prototype to avoid an error.  */
2904 #ifdef __cplusplus
2905 extern "C"
2906 #endif
2907 /* We use char because int might match the return type of a gcc2
2908    builtin and then its argument prototype would still apply.  */
2909 char gzopen ();
2910 int
2911 main ()
2912 {
2913 gzopen ();
2914   ;
2915   return 0;
2916 }
2917 _ACEOF
2918 rm -f conftest.$ac_objext conftest$ac_exeext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2920   (eval $ac_link) 2>&5
2921   ac_status=$?
2922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923   (exit $ac_status); } &&
2924          { ac_try='test -s conftest$ac_exeext'
2925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926   (eval $ac_try) 2>&5
2927   ac_status=$?
2928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929   (exit $ac_status); }; }; then
2930   ac_cv_lib_z_gzopen=yes
2931 else
2932   echo "$as_me: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2934 ac_cv_lib_z_gzopen=no
2935 fi
2936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2937 LIBS=$ac_check_lib_save_LIBS
2938 fi
2939 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
2940 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
2941 if test $ac_cv_lib_z_gzopen = yes; then
2942   cat >>confdefs.h <<_ACEOF
2943 #define HAVE_LIBZ 1
2944 _ACEOF
2945
2946   LIBS="-lz $LIBS"
2947
2948 fi
2949
2950
2951 for ac_func in gzopen
2952 do
2953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2954 echo "$as_me:$LINENO: checking for $ac_func" >&5
2955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2956 if eval "test \"\${$as_ac_var+set}\" = set"; then
2957   echo $ECHO_N "(cached) $ECHO_C" >&6
2958 else
2959   cat >conftest.$ac_ext <<_ACEOF
2960 #line $LINENO "configure"
2961 #include "confdefs.h"
2962 /* System header to define __stub macros and hopefully few prototypes,
2963     which can conflict with char $ac_func (); below.  */
2964 #include <assert.h>
2965 /* Override any gcc2 internal prototype to avoid an error.  */
2966 #ifdef __cplusplus
2967 extern "C"
2968 #endif
2969 /* We use char because int might match the return type of a gcc2
2970    builtin and then its argument prototype would still apply.  */
2971 char $ac_func ();
2972 char (*f) ();
2973
2974 int
2975 main ()
2976 {
2977 /* The GNU C library defines this for functions which it implements
2978     to always fail with ENOSYS.  Some functions are actually named
2979     something starting with __ and the normal name is an alias.  */
2980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2981 choke me
2982 #else
2983 f = $ac_func;
2984 #endif
2985
2986   ;
2987   return 0;
2988 }
2989 _ACEOF
2990 rm -f conftest.$ac_objext conftest$ac_exeext
2991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2992   (eval $ac_link) 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); } &&
2996          { ac_try='test -s conftest$ac_exeext'
2997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998   (eval $ac_try) 2>&5
2999   ac_status=$?
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); }; }; then
3002   eval "$as_ac_var=yes"
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3006 eval "$as_ac_var=no"
3007 fi
3008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3009 fi
3010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3012 if test `eval echo '${'$as_ac_var'}'` = yes; then
3013   cat >>confdefs.h <<_ACEOF
3014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3015 _ACEOF
3016
3017 fi
3018 done
3019
3020
3021 # Checks for header files.
3022 ac_ext=c
3023 ac_cpp='$CPP $CPPFLAGS'
3024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3028 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3029 # On Suns, sometimes $CPP names a directory.
3030 if test -n "$CPP" && test -d "$CPP"; then
3031   CPP=
3032 fi
3033 if test -z "$CPP"; then
3034   if test "${ac_cv_prog_CPP+set}" = set; then
3035   echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037       # Double quotes because CPP needs to be expanded
3038     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3039     do
3040       ac_preproc_ok=false
3041 for ac_c_preproc_warn_flag in '' yes
3042 do
3043   # Use a header file that comes with gcc, so configuring glibc
3044   # with a fresh cross-compiler works.
3045   # On the NeXT, cc -E runs the code through the compiler's parser,
3046   # not just through cpp. "Syntax error" is here to catch this case.
3047   cat >conftest.$ac_ext <<_ACEOF
3048 #line $LINENO "configure"
3049 #include "confdefs.h"
3050 #include <assert.h>
3051                      Syntax error
3052 _ACEOF
3053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3054   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3055   ac_status=$?
3056   grep -v '^ *+' conftest.er1 >conftest.err
3057   rm -f conftest.er1
3058   cat conftest.err >&5
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); } >/dev/null; then
3061   if test -s conftest.err; then
3062     ac_cpp_err=$ac_c_preproc_warn_flag
3063   else
3064     ac_cpp_err=
3065   fi
3066 else
3067   ac_cpp_err=yes
3068 fi
3069 if test -z "$ac_cpp_err"; then
3070   :
3071 else
3072   echo "$as_me: failed program was:" >&5
3073   cat conftest.$ac_ext >&5
3074   # Broken: fails on valid input.
3075 continue
3076 fi
3077 rm -f conftest.err conftest.$ac_ext
3078
3079   # OK, works on sane cases.  Now check whether non-existent headers
3080   # can be detected and how.
3081   cat >conftest.$ac_ext <<_ACEOF
3082 #line $LINENO "configure"
3083 #include "confdefs.h"
3084 #include <ac_nonexistent.h>
3085 _ACEOF
3086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } >/dev/null; then
3094   if test -s conftest.err; then
3095     ac_cpp_err=$ac_c_preproc_warn_flag
3096   else
3097     ac_cpp_err=
3098   fi
3099 else
3100   ac_cpp_err=yes
3101 fi
3102 if test -z "$ac_cpp_err"; then
3103   # Broken: success on invalid input.
3104 continue
3105 else
3106   echo "$as_me: failed program was:" >&5
3107   cat conftest.$ac_ext >&5
3108   # Passes both tests.
3109 ac_preproc_ok=:
3110 break
3111 fi
3112 rm -f conftest.err conftest.$ac_ext
3113
3114 done
3115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3116 rm -f conftest.err conftest.$ac_ext
3117 if $ac_preproc_ok; then
3118   break
3119 fi
3120
3121     done
3122     ac_cv_prog_CPP=$CPP
3123
3124 fi
3125   CPP=$ac_cv_prog_CPP
3126 else
3127   ac_cv_prog_CPP=$CPP
3128 fi
3129 echo "$as_me:$LINENO: result: $CPP" >&5
3130 echo "${ECHO_T}$CPP" >&6
3131 ac_preproc_ok=false
3132 for ac_c_preproc_warn_flag in '' yes
3133 do
3134   # Use a header file that comes with gcc, so configuring glibc
3135   # with a fresh cross-compiler works.
3136   # On the NeXT, cc -E runs the code through the compiler's parser,
3137   # not just through cpp. "Syntax error" is here to catch this case.
3138   cat >conftest.$ac_ext <<_ACEOF
3139 #line $LINENO "configure"
3140 #include "confdefs.h"
3141 #include <assert.h>
3142                      Syntax error
3143 _ACEOF
3144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3146   ac_status=$?
3147   grep -v '^ *+' conftest.er1 >conftest.err
3148   rm -f conftest.er1
3149   cat conftest.err >&5
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); } >/dev/null; then
3152   if test -s conftest.err; then
3153     ac_cpp_err=$ac_c_preproc_warn_flag
3154   else
3155     ac_cpp_err=
3156   fi
3157 else
3158   ac_cpp_err=yes
3159 fi
3160 if test -z "$ac_cpp_err"; then
3161   :
3162 else
3163   echo "$as_me: failed program was:" >&5
3164   cat conftest.$ac_ext >&5
3165   # Broken: fails on valid input.
3166 continue
3167 fi
3168 rm -f conftest.err conftest.$ac_ext
3169
3170   # OK, works on sane cases.  Now check whether non-existent headers
3171   # can be detected and how.
3172   cat >conftest.$ac_ext <<_ACEOF
3173 #line $LINENO "configure"
3174 #include "confdefs.h"
3175 #include <ac_nonexistent.h>
3176 _ACEOF
3177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3178   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3179   ac_status=$?
3180   grep -v '^ *+' conftest.er1 >conftest.err
3181   rm -f conftest.er1
3182   cat conftest.err >&5
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); } >/dev/null; then
3185   if test -s conftest.err; then
3186     ac_cpp_err=$ac_c_preproc_warn_flag
3187   else
3188     ac_cpp_err=
3189   fi
3190 else
3191   ac_cpp_err=yes
3192 fi
3193 if test -z "$ac_cpp_err"; then
3194   # Broken: success on invalid input.
3195 continue
3196 else
3197   echo "$as_me: failed program was:" >&5
3198   cat conftest.$ac_ext >&5
3199   # Passes both tests.
3200 ac_preproc_ok=:
3201 break
3202 fi
3203 rm -f conftest.err conftest.$ac_ext
3204
3205 done
3206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3207 rm -f conftest.err conftest.$ac_ext
3208 if $ac_preproc_ok; then
3209   :
3210 else
3211   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3212 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3213    { (exit 1); exit 1; }; }
3214 fi
3215
3216 ac_ext=c
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221
3222
3223 echo "$as_me:$LINENO: checking for egrep" >&5
3224 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3225 if test "${ac_cv_prog_egrep+set}" = set; then
3226   echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3229     then ac_cv_prog_egrep='grep -E'
3230     else ac_cv_prog_egrep='egrep'
3231     fi
3232 fi
3233 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3234 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3235  EGREP=$ac_cv_prog_egrep
3236
3237
3238 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3239 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3240 if test "${ac_cv_header_stdc+set}" = set; then
3241   echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243   cat >conftest.$ac_ext <<_ACEOF
3244 #line $LINENO "configure"
3245 #include "confdefs.h"
3246 #include <stdlib.h>
3247 #include <stdarg.h>
3248 #include <string.h>
3249 #include <float.h>
3250
3251 _ACEOF
3252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3253   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3254   ac_status=$?
3255   grep -v '^ *+' conftest.er1 >conftest.err
3256   rm -f conftest.er1
3257   cat conftest.err >&5
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); } >/dev/null; then
3260   if test -s conftest.err; then
3261     ac_cpp_err=$ac_c_preproc_warn_flag
3262   else
3263     ac_cpp_err=
3264   fi
3265 else
3266   ac_cpp_err=yes
3267 fi
3268 if test -z "$ac_cpp_err"; then
3269   ac_cv_header_stdc=yes
3270 else
3271   echo "$as_me: failed program was:" >&5
3272   cat conftest.$ac_ext >&5
3273   ac_cv_header_stdc=no
3274 fi
3275 rm -f conftest.err conftest.$ac_ext
3276
3277 if test $ac_cv_header_stdc = yes; then
3278   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3279   cat >conftest.$ac_ext <<_ACEOF
3280 #line $LINENO "configure"
3281 #include "confdefs.h"
3282 #include <string.h>
3283
3284 _ACEOF
3285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3286   $EGREP "memchr" >/dev/null 2>&1; then
3287   :
3288 else
3289   ac_cv_header_stdc=no
3290 fi
3291 rm -f conftest*
3292
3293 fi
3294
3295 if test $ac_cv_header_stdc = yes; then
3296   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3297   cat >conftest.$ac_ext <<_ACEOF
3298 #line $LINENO "configure"
3299 #include "confdefs.h"
3300 #include <stdlib.h>
3301
3302 _ACEOF
3303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3304   $EGREP "free" >/dev/null 2>&1; then
3305   :
3306 else
3307   ac_cv_header_stdc=no
3308 fi
3309 rm -f conftest*
3310
3311 fi
3312
3313 if test $ac_cv_header_stdc = yes; then
3314   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3315   if test "$cross_compiling" = yes; then
3316   :
3317 else
3318   cat >conftest.$ac_ext <<_ACEOF
3319 #line $LINENO "configure"
3320 #include "confdefs.h"
3321 #include <ctype.h>
3322 #if ((' ' & 0x0FF) == 0x020)
3323 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3324 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3325 #else
3326 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3327                      || ('j' <= (c) && (c) <= 'r') \
3328                      || ('s' <= (c) && (c) <= 'z'))
3329 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3330 #endif
3331
3332 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3333 int
3334 main ()
3335 {
3336   int i;
3337   for (i = 0; i < 256; i++)
3338     if (XOR (islower (i), ISLOWER (i))
3339         || toupper (i) != TOUPPER (i))
3340       exit(2);
3341   exit (0);
3342 }
3343 _ACEOF
3344 rm -f conftest$ac_exeext
3345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3346   (eval $ac_link) 2>&5
3347   ac_status=$?
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351   (eval $ac_try) 2>&5
3352   ac_status=$?
3353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354   (exit $ac_status); }; }; then
3355   :
3356 else
3357   echo "$as_me: program exited with status $ac_status" >&5
3358 echo "$as_me: failed program was:" >&5
3359 cat conftest.$ac_ext >&5
3360 ( exit $ac_status )
3361 ac_cv_header_stdc=no
3362 fi
3363 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3364 fi
3365 fi
3366 fi
3367 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3368 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3369 if test $ac_cv_header_stdc = yes; then
3370
3371 cat >>confdefs.h <<\_ACEOF
3372 #define STDC_HEADERS 1
3373 _ACEOF
3374
3375 fi
3376
3377 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3378 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3379 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3380   echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382   cat >conftest.$ac_ext <<_ACEOF
3383 #line $LINENO "configure"
3384 #include "confdefs.h"
3385 #include <sys/types.h>
3386 #include <sys/wait.h>
3387 #ifndef WEXITSTATUS
3388 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3389 #endif
3390 #ifndef WIFEXITED
3391 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3392 #endif
3393
3394 int
3395 main ()
3396 {
3397   int s;
3398   wait (&s);
3399   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3400   ;
3401   return 0;
3402 }
3403 _ACEOF
3404 rm -f conftest.$ac_objext
3405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3406   (eval $ac_compile) 2>&5
3407   ac_status=$?
3408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409   (exit $ac_status); } &&
3410          { ac_try='test -s conftest.$ac_objext'
3411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412   (eval $ac_try) 2>&5
3413   ac_status=$?
3414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415   (exit $ac_status); }; }; then
3416   ac_cv_header_sys_wait_h=yes
3417 else
3418   echo "$as_me: failed program was:" >&5
3419 cat conftest.$ac_ext >&5
3420 ac_cv_header_sys_wait_h=no
3421 fi
3422 rm -f conftest.$ac_objext conftest.$ac_ext
3423 fi
3424 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3425 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3426 if test $ac_cv_header_sys_wait_h = yes; then
3427
3428 cat >>confdefs.h <<\_ACEOF
3429 #define HAVE_SYS_WAIT_H 1
3430 _ACEOF
3431
3432 fi
3433
3434 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3445                   inttypes.h stdint.h unistd.h
3446 do
3447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3448 echo "$as_me:$LINENO: checking for $ac_header" >&5
3449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3451   echo $ECHO_N "(cached) $ECHO_C" >&6
3452 else
3453   cat >conftest.$ac_ext <<_ACEOF
3454 #line $LINENO "configure"
3455 #include "confdefs.h"
3456 $ac_includes_default
3457
3458 #include <$ac_header>
3459 _ACEOF
3460 rm -f conftest.$ac_objext
3461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3462   (eval $ac_compile) 2>&5
3463   ac_status=$?
3464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465   (exit $ac_status); } &&
3466          { ac_try='test -s conftest.$ac_objext'
3467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468   (eval $ac_try) 2>&5
3469   ac_status=$?
3470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471   (exit $ac_status); }; }; then
3472   eval "$as_ac_Header=yes"
3473 else
3474   echo "$as_me: failed program was:" >&5
3475 cat conftest.$ac_ext >&5
3476 eval "$as_ac_Header=no"
3477 fi
3478 rm -f conftest.$ac_objext conftest.$ac_ext
3479 fi
3480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3483   cat >>confdefs.h <<_ACEOF
3484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3485 _ACEOF
3486
3487 fi
3488
3489 done
3490
3491
3492
3493
3494
3495
3496
3497 for ac_header in arpa/inet.h fcntl.h netdb.h sys/socket.h sys/time.h
3498 do
3499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3501   echo "$as_me:$LINENO: checking for $ac_header" >&5
3502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3504   echo $ECHO_N "(cached) $ECHO_C" >&6
3505 fi
3506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3508 else
3509   # Is the header compilable?
3510 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3512 cat >conftest.$ac_ext <<_ACEOF
3513 #line $LINENO "configure"
3514 #include "confdefs.h"
3515 $ac_includes_default
3516 #include <$ac_header>
3517 _ACEOF
3518 rm -f conftest.$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520   (eval $ac_compile) 2>&5
3521   ac_status=$?
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); } &&
3524          { ac_try='test -s conftest.$ac_objext'
3525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526   (eval $ac_try) 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }; }; then
3530   ac_header_compiler=yes
3531 else
3532   echo "$as_me: failed program was:" >&5
3533 cat conftest.$ac_ext >&5
3534 ac_header_compiler=no
3535 fi
3536 rm -f conftest.$ac_objext conftest.$ac_ext
3537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3538 echo "${ECHO_T}$ac_header_compiler" >&6
3539
3540 # Is the header present?
3541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3543 cat >conftest.$ac_ext <<_ACEOF
3544 #line $LINENO "configure"
3545 #include "confdefs.h"
3546 #include <$ac_header>
3547 _ACEOF
3548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3549   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3550   ac_status=$?
3551   grep -v '^ *+' conftest.er1 >conftest.err
3552   rm -f conftest.er1
3553   cat conftest.err >&5
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); } >/dev/null; then
3556   if test -s conftest.err; then
3557     ac_cpp_err=$ac_c_preproc_warn_flag
3558   else
3559     ac_cpp_err=
3560   fi
3561 else
3562   ac_cpp_err=yes
3563 fi
3564 if test -z "$ac_cpp_err"; then
3565   ac_header_preproc=yes
3566 else
3567   echo "$as_me: failed program was:" >&5
3568   cat conftest.$ac_ext >&5
3569   ac_header_preproc=no
3570 fi
3571 rm -f conftest.err conftest.$ac_ext
3572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3573 echo "${ECHO_T}$ac_header_preproc" >&6
3574
3575 # So?  What about this header?
3576 case $ac_header_compiler:$ac_header_preproc in
3577   yes:no )
3578     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3580     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3582   no:yes )
3583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3585     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3589 esac
3590 echo "$as_me:$LINENO: checking for $ac_header" >&5
3591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3593   echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595   eval "$as_ac_Header=$ac_header_preproc"
3596 fi
3597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3599
3600 fi
3601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3602   cat >>confdefs.h <<_ACEOF
3603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3604 _ACEOF
3605
3606 else
3607   echo "Some header files required to build this program are not present"; exit
3608 fi
3609
3610 done
3611
3612
3613 for ac_header in zlib.h
3614 do
3615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3617   echo "$as_me:$LINENO: checking for $ac_header" >&5
3618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3620   echo $ECHO_N "(cached) $ECHO_C" >&6
3621 fi
3622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3624 else
3625   # Is the header compilable?
3626 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3627 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3628 cat >conftest.$ac_ext <<_ACEOF
3629 #line $LINENO "configure"
3630 #include "confdefs.h"
3631 $ac_includes_default
3632 #include <$ac_header>
3633 _ACEOF
3634 rm -f conftest.$ac_objext
3635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3636   (eval $ac_compile) 2>&5
3637   ac_status=$?
3638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639   (exit $ac_status); } &&
3640          { ac_try='test -s conftest.$ac_objext'
3641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642   (eval $ac_try) 2>&5
3643   ac_status=$?
3644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645   (exit $ac_status); }; }; then
3646   ac_header_compiler=yes
3647 else
3648   echo "$as_me: failed program was:" >&5
3649 cat conftest.$ac_ext >&5
3650 ac_header_compiler=no
3651 fi
3652 rm -f conftest.$ac_objext conftest.$ac_ext
3653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3654 echo "${ECHO_T}$ac_header_compiler" >&6
3655
3656 # Is the header present?
3657 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3659 cat >conftest.$ac_ext <<_ACEOF
3660 #line $LINENO "configure"
3661 #include "confdefs.h"
3662 #include <$ac_header>
3663 _ACEOF
3664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3665   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3666   ac_status=$?
3667   grep -v '^ *+' conftest.er1 >conftest.err
3668   rm -f conftest.er1
3669   cat conftest.err >&5
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); } >/dev/null; then
3672   if test -s conftest.err; then
3673     ac_cpp_err=$ac_c_preproc_warn_flag
3674   else
3675     ac_cpp_err=
3676   fi
3677 else
3678   ac_cpp_err=yes
3679 fi
3680 if test -z "$ac_cpp_err"; then
3681   ac_header_preproc=yes
3682 else
3683   echo "$as_me: failed program was:" >&5
3684   cat conftest.$ac_ext >&5
3685   ac_header_preproc=no
3686 fi
3687 rm -f conftest.err conftest.$ac_ext
3688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3689 echo "${ECHO_T}$ac_header_preproc" >&6
3690
3691 # So?  What about this header?
3692 case $ac_header_compiler:$ac_header_preproc in
3693   yes:no )
3694     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3698   no:yes )
3699     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3701     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3703     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3705 esac
3706 echo "$as_me:$LINENO: checking for $ac_header" >&5
3707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3709   echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711   eval "$as_ac_Header=$ac_header_preproc"
3712 fi
3713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3715
3716 fi
3717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3718   cat >>confdefs.h <<_ACEOF
3719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3720 _ACEOF
3721
3722 fi
3723
3724 done
3725
3726
3727 # Checks for typedefs, structures, and compiler characteristics.
3728 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3729 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3730 if test "${ac_cv_header_time+set}" = set; then
3731   echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733   cat >conftest.$ac_ext <<_ACEOF
3734 #line $LINENO "configure"
3735 #include "confdefs.h"
3736 #include <sys/types.h>
3737 #include <sys/time.h>
3738 #include <time.h>
3739
3740 int
3741 main ()
3742 {
3743 if ((struct tm *) 0)
3744 return 0;
3745   ;
3746   return 0;
3747 }
3748 _ACEOF
3749 rm -f conftest.$ac_objext
3750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751   (eval $ac_compile) 2>&5
3752   ac_status=$?
3753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754   (exit $ac_status); } &&
3755          { ac_try='test -s conftest.$ac_objext'
3756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757   (eval $ac_try) 2>&5
3758   ac_status=$?
3759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760   (exit $ac_status); }; }; then
3761   ac_cv_header_time=yes
3762 else
3763   echo "$as_me: failed program was:" >&5
3764 cat conftest.$ac_ext >&5
3765 ac_cv_header_time=no
3766 fi
3767 rm -f conftest.$ac_objext conftest.$ac_ext
3768 fi
3769 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3770 echo "${ECHO_T}$ac_cv_header_time" >&6
3771 if test $ac_cv_header_time = yes; then
3772
3773 cat >>confdefs.h <<\_ACEOF
3774 #define TIME_WITH_SYS_TIME 1
3775 _ACEOF
3776
3777 fi
3778
3779 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3780 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3781 if test "${ac_cv_struct_tm+set}" = set; then
3782   echo $ECHO_N "(cached) $ECHO_C" >&6
3783 else
3784   cat >conftest.$ac_ext <<_ACEOF
3785 #line $LINENO "configure"
3786 #include "confdefs.h"
3787 #include <sys/types.h>
3788 #include <time.h>
3789
3790 int
3791 main ()
3792 {
3793 struct tm *tp; tp->tm_sec;
3794   ;
3795   return 0;
3796 }
3797 _ACEOF
3798 rm -f conftest.$ac_objext
3799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3800   (eval $ac_compile) 2>&5
3801   ac_status=$?
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); } &&
3804          { ac_try='test -s conftest.$ac_objext'
3805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806   (eval $ac_try) 2>&5
3807   ac_status=$?
3808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809   (exit $ac_status); }; }; then
3810   ac_cv_struct_tm=time.h
3811 else
3812   echo "$as_me: failed program was:" >&5
3813 cat conftest.$ac_ext >&5
3814 ac_cv_struct_tm=sys/time.h
3815 fi
3816 rm -f conftest.$ac_objext conftest.$ac_ext
3817 fi
3818 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3819 echo "${ECHO_T}$ac_cv_struct_tm" >&6
3820 if test $ac_cv_struct_tm = sys/time.h; then
3821
3822 cat >>confdefs.h <<\_ACEOF
3823 #define TM_IN_SYS_TIME 1
3824 _ACEOF
3825
3826 fi
3827
3828
3829 # Check for proper networking libraries
3830
3831 for ac_func in gethostbyname_r
3832 do
3833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3834 echo "$as_me:$LINENO: checking for $ac_func" >&5
3835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3836 if eval "test \"\${$as_ac_var+set}\" = set"; then
3837   echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839   cat >conftest.$ac_ext <<_ACEOF
3840 #line $LINENO "configure"
3841 #include "confdefs.h"
3842 /* System header to define __stub macros and hopefully few prototypes,
3843     which can conflict with char $ac_func (); below.  */
3844 #include <assert.h>
3845 /* Override any gcc2 internal prototype to avoid an error.  */
3846 #ifdef __cplusplus
3847 extern "C"
3848 #endif
3849 /* We use char because int might match the return type of a gcc2
3850    builtin and then its argument prototype would still apply.  */
3851 char $ac_func ();
3852 char (*f) ();
3853
3854 int
3855 main ()
3856 {
3857 /* The GNU C library defines this for functions which it implements
3858     to always fail with ENOSYS.  Some functions are actually named
3859     something starting with __ and the normal name is an alias.  */
3860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3861 choke me
3862 #else
3863 f = $ac_func;
3864 #endif
3865
3866   ;
3867   return 0;
3868 }
3869 _ACEOF
3870 rm -f conftest.$ac_objext conftest$ac_exeext
3871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3872   (eval $ac_link) 2>&5
3873   ac_status=$?
3874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875   (exit $ac_status); } &&
3876          { ac_try='test -s conftest$ac_exeext'
3877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878   (eval $ac_try) 2>&5
3879   ac_status=$?
3880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881   (exit $ac_status); }; }; then
3882   eval "$as_ac_var=yes"
3883 else
3884   echo "$as_me: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3886 eval "$as_ac_var=no"
3887 fi
3888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3889 fi
3890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3891 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3892 if test `eval echo '${'$as_ac_var'}'` = yes; then
3893   cat >>confdefs.h <<_ACEOF
3894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3895 _ACEOF
3896
3897 else
3898
3899 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
3900 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
3901 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
3902   echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904   ac_check_lib_save_LIBS=$LIBS
3905 LIBS="-lnsl  $LIBS"
3906 cat >conftest.$ac_ext <<_ACEOF
3907 #line $LINENO "configure"
3908 #include "confdefs.h"
3909
3910 /* Override any gcc2 internal prototype to avoid an error.  */
3911 #ifdef __cplusplus
3912 extern "C"
3913 #endif
3914 /* We use char because int might match the return type of a gcc2
3915    builtin and then its argument prototype would still apply.  */
3916 char gethostbyname_r ();
3917 int
3918 main ()
3919 {
3920 gethostbyname_r ();
3921   ;
3922   return 0;
3923 }
3924 _ACEOF
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927   (eval $ac_link) 2>&5
3928   ac_status=$?
3929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930   (exit $ac_status); } &&
3931          { ac_try='test -s conftest$ac_exeext'
3932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933   (eval $ac_try) 2>&5
3934   ac_status=$?
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); }; }; then
3937   ac_cv_lib_nsl_gethostbyname_r=yes
3938 else
3939   echo "$as_me: failed program was:" >&5
3940 cat conftest.$ac_ext >&5
3941 ac_cv_lib_nsl_gethostbyname_r=no
3942 fi
3943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3944 LIBS=$ac_check_lib_save_LIBS
3945 fi
3946 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
3947 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
3948 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
3949   cat >>confdefs.h <<_ACEOF
3950 #define HAVE_LIBNSL 1
3951 _ACEOF
3952
3953   LIBS="-lnsl $LIBS"
3954
3955 else
3956
3957 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
3958 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
3959 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962   ac_check_lib_save_LIBS=$LIBS
3963 LIBS="-lresolv  $LIBS"
3964 cat >conftest.$ac_ext <<_ACEOF
3965 #line $LINENO "configure"
3966 #include "confdefs.h"
3967
3968 /* Override any gcc2 internal prototype to avoid an error.  */
3969 #ifdef __cplusplus
3970 extern "C"
3971 #endif
3972 /* We use char because int might match the return type of a gcc2
3973    builtin and then its argument prototype would still apply.  */
3974 char gethostbyname_r ();
3975 int
3976 main ()
3977 {
3978 gethostbyname_r ();
3979   ;
3980   return 0;
3981 }
3982 _ACEOF
3983 rm -f conftest.$ac_objext conftest$ac_exeext
3984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3985   (eval $ac_link) 2>&5
3986   ac_status=$?
3987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988   (exit $ac_status); } &&
3989          { ac_try='test -s conftest$ac_exeext'
3990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991   (eval $ac_try) 2>&5
3992   ac_status=$?
3993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994   (exit $ac_status); }; }; then
3995   ac_cv_lib_resolv_gethostbyname_r=yes
3996 else
3997   echo "$as_me: failed program was:" >&5
3998 cat conftest.$ac_ext >&5
3999 ac_cv_lib_resolv_gethostbyname_r=no
4000 fi
4001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4002 LIBS=$ac_check_lib_save_LIBS
4003 fi
4004 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
4005 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
4006 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
4007   cat >>confdefs.h <<_ACEOF
4008 #define HAVE_LIBRESOLV 1
4009 _ACEOF
4010
4011   LIBS="-lresolv $LIBS"
4012
4013 fi
4014
4015 fi
4016
4017 fi
4018 done
4019
4020
4021 for ac_func in inet_aton
4022 do
4023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4024 echo "$as_me:$LINENO: checking for $ac_func" >&5
4025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4026 if eval "test \"\${$as_ac_var+set}\" = set"; then
4027   echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029   cat >conftest.$ac_ext <<_ACEOF
4030 #line $LINENO "configure"
4031 #include "confdefs.h"
4032 /* System header to define __stub macros and hopefully few prototypes,
4033     which can conflict with char $ac_func (); below.  */
4034 #include <assert.h>
4035 /* Override any gcc2 internal prototype to avoid an error.  */
4036 #ifdef __cplusplus
4037 extern "C"
4038 #endif
4039 /* We use char because int might match the return type of a gcc2
4040    builtin and then its argument prototype would still apply.  */
4041 char $ac_func ();
4042 char (*f) ();
4043
4044 int
4045 main ()
4046 {
4047 /* The GNU C library defines this for functions which it implements
4048     to always fail with ENOSYS.  Some functions are actually named
4049     something starting with __ and the normal name is an alias.  */
4050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4051 choke me
4052 #else
4053 f = $ac_func;
4054 #endif
4055
4056   ;
4057   return 0;
4058 }
4059 _ACEOF
4060 rm -f conftest.$ac_objext conftest$ac_exeext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4062   (eval $ac_link) 2>&5
4063   ac_status=$?
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); } &&
4066          { ac_try='test -s conftest$ac_exeext'
4067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068   (eval $ac_try) 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); }; }; then
4072   eval "$as_ac_var=yes"
4073 else
4074   echo "$as_me: failed program was:" >&5
4075 cat conftest.$ac_ext >&5
4076 eval "$as_ac_var=no"
4077 fi
4078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4079 fi
4080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4082 if test `eval echo '${'$as_ac_var'}'` = yes; then
4083   cat >>confdefs.h <<_ACEOF
4084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4085 _ACEOF
4086
4087 else
4088
4089 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
4090 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
4091 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
4092   echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094   ac_check_lib_save_LIBS=$LIBS
4095 LIBS="-lresolv  $LIBS"
4096 cat >conftest.$ac_ext <<_ACEOF
4097 #line $LINENO "configure"
4098 #include "confdefs.h"
4099
4100 /* Override any gcc2 internal prototype to avoid an error.  */
4101 #ifdef __cplusplus
4102 extern "C"
4103 #endif
4104 /* We use char because int might match the return type of a gcc2
4105    builtin and then its argument prototype would still apply.  */
4106 char inet_aton ();
4107 int
4108 main ()
4109 {
4110 inet_aton ();
4111   ;
4112   return 0;
4113 }
4114 _ACEOF
4115 rm -f conftest.$ac_objext conftest$ac_exeext
4116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4117   (eval $ac_link) 2>&5
4118   ac_status=$?
4119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120   (exit $ac_status); } &&
4121          { ac_try='test -s conftest$ac_exeext'
4122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123   (eval $ac_try) 2>&5
4124   ac_status=$?
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); }; }; then
4127   ac_cv_lib_resolv_inet_aton=yes
4128 else
4129   echo "$as_me: failed program was:" >&5
4130 cat conftest.$ac_ext >&5
4131 ac_cv_lib_resolv_inet_aton=no
4132 fi
4133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4134 LIBS=$ac_check_lib_save_LIBS
4135 fi
4136 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
4137 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
4138 if test $ac_cv_lib_resolv_inet_aton = yes; then
4139   cat >>confdefs.h <<_ACEOF
4140 #define HAVE_LIBRESOLV 1
4141 _ACEOF
4142
4143   LIBS="-lresolv $LIBS"
4144
4145 fi
4146
4147 fi
4148 done
4149
4150
4151 for ac_func in socket
4152 do
4153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4154 echo "$as_me:$LINENO: checking for $ac_func" >&5
4155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4156 if eval "test \"\${$as_ac_var+set}\" = set"; then
4157   echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159   cat >conftest.$ac_ext <<_ACEOF
4160 #line $LINENO "configure"
4161 #include "confdefs.h"
4162 /* System header to define __stub macros and hopefully few prototypes,
4163     which can conflict with char $ac_func (); below.  */
4164 #include <assert.h>
4165 /* Override any gcc2 internal prototype to avoid an error.  */
4166 #ifdef __cplusplus
4167 extern "C"
4168 #endif
4169 /* We use char because int might match the return type of a gcc2
4170    builtin and then its argument prototype would still apply.  */
4171 char $ac_func ();
4172 char (*f) ();
4173
4174 int
4175 main ()
4176 {
4177 /* The GNU C library defines this for functions which it implements
4178     to always fail with ENOSYS.  Some functions are actually named
4179     something starting with __ and the normal name is an alias.  */
4180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4181 choke me
4182 #else
4183 f = $ac_func;
4184 #endif
4185
4186   ;
4187   return 0;
4188 }
4189 _ACEOF
4190 rm -f conftest.$ac_objext conftest$ac_exeext
4191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4192   (eval $ac_link) 2>&5
4193   ac_status=$?
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); } &&
4196          { ac_try='test -s conftest$ac_exeext'
4197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198   (eval $ac_try) 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); }; }; then
4202   eval "$as_ac_var=yes"
4203 else
4204   echo "$as_me: failed program was:" >&5
4205 cat conftest.$ac_ext >&5
4206 eval "$as_ac_var=no"
4207 fi
4208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4209 fi
4210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4212 if test `eval echo '${'$as_ac_var'}'` = yes; then
4213   cat >>confdefs.h <<_ACEOF
4214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4215 _ACEOF
4216
4217 else
4218
4219 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4220 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4221 if test "${ac_cv_lib_socket_socket+set}" = set; then
4222   echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224   ac_check_lib_save_LIBS=$LIBS
4225 LIBS="-lsocket  $LIBS"
4226 cat >conftest.$ac_ext <<_ACEOF
4227 #line $LINENO "configure"
4228 #include "confdefs.h"
4229
4230 /* Override any gcc2 internal prototype to avoid an error.  */
4231 #ifdef __cplusplus
4232 extern "C"
4233 #endif
4234 /* We use char because int might match the return type of a gcc2
4235    builtin and then its argument prototype would still apply.  */
4236 char socket ();
4237 int
4238 main ()
4239 {
4240 socket ();
4241   ;
4242   return 0;
4243 }
4244 _ACEOF
4245 rm -f conftest.$ac_objext conftest$ac_exeext
4246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4247   (eval $ac_link) 2>&5
4248   ac_status=$?
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); } &&
4251          { ac_try='test -s conftest$ac_exeext'
4252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253   (eval $ac_try) 2>&5
4254   ac_status=$?
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); }; }; then
4257   ac_cv_lib_socket_socket=yes
4258 else
4259   echo "$as_me: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4261 ac_cv_lib_socket_socket=no
4262 fi
4263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4264 LIBS=$ac_check_lib_save_LIBS
4265 fi
4266 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4267 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4268 if test $ac_cv_lib_socket_socket = yes; then
4269   cat >>confdefs.h <<_ACEOF
4270 #define HAVE_LIBSOCKET 1
4271 _ACEOF
4272
4273   LIBS="-lsocket $LIBS"
4274
4275 fi
4276
4277 fi
4278 done
4279
4280
4281 # Checks for library functions.
4282
4283
4284
4285
4286
4287
4288 for ac_func in vsnprintf strncasecmp poll setenv clearenv pthread_rwlock_init
4289 do
4290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4291 echo "$as_me:$LINENO: checking for $ac_func" >&5
4292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4293 if eval "test \"\${$as_ac_var+set}\" = set"; then
4294   echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296   cat >conftest.$ac_ext <<_ACEOF
4297 #line $LINENO "configure"
4298 #include "confdefs.h"
4299 /* System header to define __stub macros and hopefully few prototypes,
4300     which can conflict with char $ac_func (); below.  */
4301 #include <assert.h>
4302 /* Override any gcc2 internal prototype to avoid an error.  */
4303 #ifdef __cplusplus
4304 extern "C"
4305 #endif
4306 /* We use char because int might match the return type of a gcc2
4307    builtin and then its argument prototype would still apply.  */
4308 char $ac_func ();
4309 char (*f) ();
4310
4311 int
4312 main ()
4313 {
4314 /* The GNU C library defines this for functions which it implements
4315     to always fail with ENOSYS.  Some functions are actually named
4316     something starting with __ and the normal name is an alias.  */
4317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4318 choke me
4319 #else
4320 f = $ac_func;
4321 #endif
4322
4323   ;
4324   return 0;
4325 }
4326 _ACEOF
4327 rm -f conftest.$ac_objext conftest$ac_exeext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4329   (eval $ac_link) 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); } &&
4333          { ac_try='test -s conftest$ac_exeext'
4334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335   (eval $ac_try) 2>&5
4336   ac_status=$?
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); }; }; then
4339   eval "$as_ac_var=yes"
4340 else
4341   echo "$as_me: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4343 eval "$as_ac_var=no"
4344 fi
4345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4346 fi
4347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4348 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4349 if test `eval echo '${'$as_ac_var'}'` = yes; then
4350   cat >>confdefs.h <<_ACEOF
4351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4352 _ACEOF
4353
4354 fi
4355 done
4356
4357
4358 # for pcre
4359
4360
4361
4362 for ac_func in bcopy memmove strerror
4363 do
4364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4365 echo "$as_me:$LINENO: checking for $ac_func" >&5
4366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4367 if eval "test \"\${$as_ac_var+set}\" = set"; then
4368   echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370   cat >conftest.$ac_ext <<_ACEOF
4371 #line $LINENO "configure"
4372 #include "confdefs.h"
4373 /* System header to define __stub macros and hopefully few prototypes,
4374     which can conflict with char $ac_func (); below.  */
4375 #include <assert.h>
4376 /* Override any gcc2 internal prototype to avoid an error.  */
4377 #ifdef __cplusplus
4378 extern "C"
4379 #endif
4380 /* We use char because int might match the return type of a gcc2
4381    builtin and then its argument prototype would still apply.  */
4382 char $ac_func ();
4383 char (*f) ();
4384
4385 int
4386 main ()
4387 {
4388 /* The GNU C library defines this for functions which it implements
4389     to always fail with ENOSYS.  Some functions are actually named
4390     something starting with __ and the normal name is an alias.  */
4391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4392 choke me
4393 #else
4394 f = $ac_func;
4395 #endif
4396
4397   ;
4398   return 0;
4399 }
4400 _ACEOF
4401 rm -f conftest.$ac_objext conftest$ac_exeext
4402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4403   (eval $ac_link) 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); } &&
4407          { ac_try='test -s conftest$ac_exeext'
4408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409   (eval $ac_try) 2>&5
4410   ac_status=$?
4411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412   (exit $ac_status); }; }; then
4413   eval "$as_ac_var=yes"
4414 else
4415   echo "$as_me: failed program was:" >&5
4416 cat conftest.$ac_ext >&5
4417 eval "$as_ac_var=no"
4418 fi
4419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4420 fi
4421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4423 if test `eval echo '${'$as_ac_var'}'` = yes; then
4424   cat >>confdefs.h <<_ACEOF
4425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4426 _ACEOF
4427
4428 fi
4429 done
4430
4431
4432 # for libntlm
4433
4434
4435
4436 for ac_func in memset strchr strdup
4437 do
4438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4439 echo "$as_me:$LINENO: checking for $ac_func" >&5
4440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4441 if eval "test \"\${$as_ac_var+set}\" = set"; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444   cat >conftest.$ac_ext <<_ACEOF
4445 #line $LINENO "configure"
4446 #include "confdefs.h"
4447 /* System header to define __stub macros and hopefully few prototypes,
4448     which can conflict with char $ac_func (); below.  */
4449 #include <assert.h>
4450 /* Override any gcc2 internal prototype to avoid an error.  */
4451 #ifdef __cplusplus
4452 extern "C"
4453 #endif
4454 /* We use char because int might match the return type of a gcc2
4455    builtin and then its argument prototype would still apply.  */
4456 char $ac_func ();
4457 char (*f) ();
4458
4459 int
4460 main ()
4461 {
4462 /* The GNU C library defines this for functions which it implements
4463     to always fail with ENOSYS.  Some functions are actually named
4464     something starting with __ and the normal name is an alias.  */
4465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4466 choke me
4467 #else
4468 f = $ac_func;
4469 #endif
4470
4471   ;
4472   return 0;
4473 }
4474 _ACEOF
4475 rm -f conftest.$ac_objext conftest$ac_exeext
4476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4477   (eval $ac_link) 2>&5
4478   ac_status=$?
4479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); } &&
4481          { ac_try='test -s conftest$ac_exeext'
4482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483   (eval $ac_try) 2>&5
4484   ac_status=$?
4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); }; }; then
4487   eval "$as_ac_var=yes"
4488 else
4489   echo "$as_me: failed program was:" >&5
4490 cat conftest.$ac_ext >&5
4491 eval "$as_ac_var=no"
4492 fi
4493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4494 fi
4495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4497 if test `eval echo '${'$as_ac_var'}'` = yes; then
4498   cat >>confdefs.h <<_ACEOF
4499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4500 _ACEOF
4501
4502 fi
4503 done
4504
4505
4506 ac_config_files="$ac_config_files "
4507
4508           ac_config_files="$ac_config_files Makefile"
4509 cat >confcache <<\_ACEOF
4510 # This file is a shell script that caches the results of configure
4511 # tests run on this system so they can be shared between configure
4512 # scripts and configure runs, see configure's option --config-cache.
4513 # It is not useful on other systems.  If it contains results you don't
4514 # want to keep, you may remove or edit it.
4515 #
4516 # config.status only pays attention to the cache file if you give it
4517 # the --recheck option to rerun configure.
4518 #
4519 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4520 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4521 # following values.
4522
4523 _ACEOF
4524
4525 # The following way of writing the cache mishandles newlines in values,
4526 # but we know of no workaround that is simple, portable, and efficient.
4527 # So, don't put newlines in cache variables' values.
4528 # Ultrix sh set writes to stderr and can't be redirected directly,
4529 # and sets the high bit in the cache file unless we assign to the vars.
4530 {
4531   (set) 2>&1 |
4532     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4533     *ac_space=\ *)
4534       # `set' does not quote correctly, so add quotes (double-quote
4535       # substitution turns \\\\ into \\, and sed turns \\ into \).
4536       sed -n \
4537         "s/'/'\\\\''/g;
4538           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4539       ;;
4540     *)
4541       # `set' quotes correctly as required by POSIX, so do not add quotes.
4542       sed -n \
4543         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4544       ;;
4545     esac;
4546 } |
4547   sed '
4548      t clear
4549      : clear
4550      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4551      t end
4552      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4553      : end' >>confcache
4554 if cmp -s $cache_file confcache; then :; else
4555   if test -w $cache_file; then
4556     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4557     cat confcache >$cache_file
4558   else
4559     echo "not updating unwritable cache $cache_file"
4560   fi
4561 fi
4562 rm -f confcache
4563
4564 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4565 # Let make expand exec_prefix.
4566 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4567
4568 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4569 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4570 # trailing colons and then remove the whole line if VPATH becomes empty
4571 # (actually we leave an empty line to preserve line numbers).
4572 if test "x$srcdir" = x.; then
4573   ac_vpsub='/^[         ]*VPATH[        ]*=/{
4574 s/:*\$(srcdir):*/:/;
4575 s/:*\${srcdir}:*/:/;
4576 s/:*@srcdir@:*/:/;
4577 s/^\([^=]*=[    ]*\):*/\1/;
4578 s/:*$//;
4579 s/^[^=]*=[      ]*$//;
4580 }'
4581 fi
4582
4583 DEFS=-DHAVE_CONFIG_H
4584
4585 ac_libobjs=
4586 ac_ltlibobjs=
4587 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4588   # 1. Remove the extension, and $U if already installed.
4589   ac_i=`echo "$ac_i" |
4590          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4591   # 2. Add them.
4592   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4593   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4594 done
4595 LIBOBJS=$ac_libobjs
4596
4597 LTLIBOBJS=$ac_ltlibobjs
4598
4599
4600
4601 : ${CONFIG_STATUS=./config.status}
4602 ac_clean_files_save=$ac_clean_files
4603 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4604 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4605 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4606 cat >$CONFIG_STATUS <<_ACEOF
4607 #! $SHELL
4608 # Generated by $as_me.
4609 # Run this file to recreate the current configuration.
4610 # Compiler output produced by configure, useful for debugging
4611 # configure, is in config.log if it exists.
4612
4613 debug=false
4614 SHELL=\${CONFIG_SHELL-$SHELL}
4615 _ACEOF
4616
4617 cat >>$CONFIG_STATUS <<\_ACEOF
4618 ## --------------------- ##
4619 ## M4sh Initialization.  ##
4620 ## --------------------- ##
4621
4622 # Be Bourne compatible
4623 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4624   emulate sh
4625   NULLCMD=:
4626   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4627   # is contrary to our usage.  Disable this feature.
4628   alias -g '${1+"$@"}'='"$@"'
4629 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4630   set -o posix
4631 fi
4632
4633 # Support unset when possible.
4634 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4635   as_unset=unset
4636 else
4637   as_unset=false
4638 fi
4639
4640
4641 # Work around bugs in pre-3.0 UWIN ksh.
4642 $as_unset ENV MAIL MAILPATH
4643 PS1='$ '
4644 PS2='> '
4645 PS4='+ '
4646
4647 # NLS nuisances.
4648 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
4649 do
4650   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4651     eval $as_var=C; export $as_var
4652   else
4653     $as_unset $as_var
4654   fi
4655 done
4656
4657 # Required to use basename.
4658 if expr a : '\(a\)' >/dev/null 2>&1; then
4659   as_expr=expr
4660 else
4661   as_expr=false
4662 fi
4663
4664 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4665   as_basename=basename
4666 else
4667   as_basename=false
4668 fi
4669
4670
4671 # Name of the executable.
4672 as_me=`$as_basename "$0" ||
4673 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4674          X"$0" : 'X\(//\)$' \| \
4675          X"$0" : 'X\(/\)$' \| \
4676          .     : '\(.\)' 2>/dev/null ||
4677 echo X/"$0" |
4678     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4679           /^X\/\(\/\/\)$/{ s//\1/; q; }
4680           /^X\/\(\/\).*/{ s//\1/; q; }
4681           s/.*/./; q'`
4682
4683
4684 # PATH needs CR, and LINENO needs CR and PATH.
4685 # Avoid depending upon Character Ranges.
4686 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4687 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4688 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4689 as_cr_digits='0123456789'
4690 as_cr_alnum=$as_cr_Letters$as_cr_digits
4691
4692 # The user is always right.
4693 if test "${PATH_SEPARATOR+set}" != set; then
4694   echo "#! /bin/sh" >conftest.sh
4695   echo  "exit 0"   >>conftest.sh
4696   chmod +x conftest.sh
4697   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
4698     PATH_SEPARATOR=';'
4699   else
4700     PATH_SEPARATOR=:
4701   fi
4702   rm -f conftest.sh
4703 fi
4704
4705
4706   as_lineno_1=$LINENO
4707   as_lineno_2=$LINENO
4708   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4709   test "x$as_lineno_1" != "x$as_lineno_2" &&
4710   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4711   # Find who we are.  Look in the path if we contain no path at all
4712   # relative or not.
4713   case $0 in
4714     *[\\/]* ) as_myself=$0 ;;
4715     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH
4717 do
4718   IFS=$as_save_IFS
4719   test -z "$as_dir" && as_dir=.
4720   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4721 done
4722
4723        ;;
4724   esac
4725   # We did not find ourselves, most probably we were run as `sh COMMAND'
4726   # in which case we are not to be found in the path.
4727   if test "x$as_myself" = x; then
4728     as_myself=$0
4729   fi
4730   if test ! -f "$as_myself"; then
4731     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4732 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4733    { (exit 1); exit 1; }; }
4734   fi
4735   case $CONFIG_SHELL in
4736   '')
4737     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4739 do
4740   IFS=$as_save_IFS
4741   test -z "$as_dir" && as_dir=.
4742   for as_base in sh bash ksh sh5; do
4743          case $as_dir in
4744          /*)
4745            if ("$as_dir/$as_base" -c '
4746   as_lineno_1=$LINENO
4747   as_lineno_2=$LINENO
4748   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4749   test "x$as_lineno_1" != "x$as_lineno_2" &&
4750   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4751              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4752              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4753              CONFIG_SHELL=$as_dir/$as_base
4754              export CONFIG_SHELL
4755              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4756            fi;;
4757          esac
4758        done
4759 done
4760 ;;
4761   esac
4762
4763   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4764   # uniformly replaced by the line number.  The first 'sed' inserts a
4765   # line-number line before each line; the second 'sed' does the real
4766   # work.  The second script uses 'N' to pair each line-number line
4767   # with the numbered line, and appends trailing '-' during
4768   # substitution so that $LINENO is not a special case at line end.
4769   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4770   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4771   sed '=' <$as_myself |
4772     sed '
4773       N
4774       s,$,-,
4775       : loop
4776       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4777       t loop
4778       s,-$,,
4779       s,^['$as_cr_digits']*\n,,
4780     ' >$as_me.lineno &&
4781   chmod +x $as_me.lineno ||
4782     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4783 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4784    { (exit 1); exit 1; }; }
4785
4786   # Don't try to exec as it changes $[0], causing all sort of problems
4787   # (the dirname of $[0] is not the place where we might find the
4788   # original and so on.  Autoconf is especially sensible to this).
4789   . ./$as_me.lineno
4790   # Exit status is that of the last command.
4791   exit
4792 }
4793
4794
4795 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4796   *c*,-n*) ECHO_N= ECHO_C='
4797 ' ECHO_T='      ' ;;
4798   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4799   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4800 esac
4801
4802 if expr a : '\(a\)' >/dev/null 2>&1; then
4803   as_expr=expr
4804 else
4805   as_expr=false
4806 fi
4807
4808 rm -f conf$$ conf$$.exe conf$$.file
4809 echo >conf$$.file
4810 if ln -s conf$$.file conf$$ 2>/dev/null; then
4811   # We could just check for DJGPP; but this test a) works b) is more generic
4812   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4813   if test -f conf$$.exe; then
4814     # Don't use ln at all; we don't have any links
4815     as_ln_s='cp -p'
4816   else
4817     as_ln_s='ln -s'
4818   fi
4819 elif ln conf$$.file conf$$ 2>/dev/null; then
4820   as_ln_s=ln
4821 else
4822   as_ln_s='cp -p'
4823 fi
4824 rm -f conf$$ conf$$.exe conf$$.file
4825
4826 if mkdir -p . 2>/dev/null; then
4827   as_mkdir_p=:
4828 else
4829   as_mkdir_p=false
4830 fi
4831
4832 as_executable_p="test -f"
4833
4834 # Sed expression to map a string onto a valid CPP name.
4835 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4836
4837 # Sed expression to map a string onto a valid variable name.
4838 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4839
4840
4841 # IFS
4842 # We need space, tab and new line, in precisely that order.
4843 as_nl='
4844 '
4845 IFS="   $as_nl"
4846
4847 # CDPATH.
4848 $as_unset CDPATH
4849
4850 exec 6>&1
4851
4852 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4853 # report actual input values of CONFIG_FILES etc. instead of their
4854 # values after options handling.  Logging --version etc. is OK.
4855 exec 5>>config.log
4856 {
4857   echo
4858   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4859 ## Running $as_me. ##
4860 _ASBOX
4861 } >&5
4862 cat >&5 <<_CSEOF
4863
4864 This file was extended by middleman $as_me 1.0, which was
4865 generated by GNU Autoconf 2.54.  Invocation command line was
4866
4867   CONFIG_FILES    = $CONFIG_FILES
4868   CONFIG_HEADERS  = $CONFIG_HEADERS
4869   CONFIG_LINKS    = $CONFIG_LINKS
4870   CONFIG_COMMANDS = $CONFIG_COMMANDS
4871   $ $0 $@
4872
4873 _CSEOF
4874 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4875 echo >&5
4876 _ACEOF
4877
4878 # Files that config.status was made for.
4879 if test -n "$ac_config_files"; then
4880   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4881 fi
4882
4883 if test -n "$ac_config_headers"; then
4884   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4885 fi
4886
4887 if test -n "$ac_config_links"; then
4888   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4889 fi
4890
4891 if test -n "$ac_config_commands"; then
4892   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4893 fi
4894
4895 cat >>$CONFIG_STATUS <<\_ACEOF
4896
4897 ac_cs_usage="\
4898 \`$as_me' instantiates files from templates according to the
4899 current configuration.
4900
4901 Usage: $0 [OPTIONS] [FILE]...
4902
4903   -h, --help       print this help, then exit
4904   -V, --version    print version number, then exit
4905   -d, --debug      don't remove temporary files
4906       --recheck    update $as_me by reconfiguring in the same conditions
4907   --file=FILE[:TEMPLATE]
4908                    instantiate the configuration file FILE
4909   --header=FILE[:TEMPLATE]
4910                    instantiate the configuration header FILE
4911
4912 Configuration files:
4913 $config_files
4914
4915 Configuration headers:
4916 $config_headers
4917
4918 Report bugs to <bug-autoconf@gnu.org>."
4919 _ACEOF
4920
4921 cat >>$CONFIG_STATUS <<_ACEOF
4922 ac_cs_version="\\
4923 middleman config.status 1.0
4924 configured by $0, generated by GNU Autoconf 2.54,
4925   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4926
4927 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4928 Free Software Foundation, Inc.
4929 This config.status script is free software; the Free Software Foundation
4930 gives unlimited permission to copy, distribute and modify it."
4931 srcdir=$srcdir
4932 _ACEOF
4933
4934 cat >>$CONFIG_STATUS <<\_ACEOF
4935 # If no file are specified by the user, then we need to provide default
4936 # value.  By we need to know if files were specified by the user.
4937 ac_need_defaults=:
4938 while test $# != 0
4939 do
4940   case $1 in
4941   --*=*)
4942     ac_option=`expr "x$1" : 'x\([^=]*\)='`
4943     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4944     ac_shift=:
4945     ;;
4946   -*)
4947     ac_option=$1
4948     ac_optarg=$2
4949     ac_shift=shift
4950     ;;
4951   *) # This is not an option, so the user has probably given explicit
4952      # arguments.
4953      ac_option=$1
4954      ac_need_defaults=false;;
4955   esac
4956
4957   case $ac_option in
4958   # Handling of the options.
4959 _ACEOF
4960 cat >>$CONFIG_STATUS <<_ACEOF
4961   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4962     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4963     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4964 _ACEOF
4965 cat >>$CONFIG_STATUS <<\_ACEOF
4966   --version | --vers* | -V )
4967     echo "$ac_cs_version"; exit 0 ;;
4968   --he | --h)
4969     # Conflict between --help and --header
4970     { { echo "$as_me:$LINENO: error: ambiguous option: $1
4971 Try \`$0 --help' for more information." >&5
4972 echo "$as_me: error: ambiguous option: $1
4973 Try \`$0 --help' for more information." >&2;}
4974    { (exit 1); exit 1; }; };;
4975   --help | --hel | -h )
4976     echo "$ac_cs_usage"; exit 0 ;;
4977   --debug | --d* | -d )
4978     debug=: ;;
4979   --file | --fil | --fi | --f )
4980     $ac_shift
4981     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4982     ac_need_defaults=false;;
4983   --header | --heade | --head | --hea )
4984     $ac_shift
4985     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4986     ac_need_defaults=false;;
4987
4988   # This is an error.
4989   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4990 Try \`$0 --help' for more information." >&5
4991 echo "$as_me: error: unrecognized option: $1
4992 Try \`$0 --help' for more information." >&2;}
4993    { (exit 1); exit 1; }; } ;;
4994
4995   *) ac_config_targets="$ac_config_targets $1" ;;
4996
4997   esac
4998   shift
4999 done
5000
5001 _ACEOF
5002
5003
5004
5005
5006
5007 cat >>$CONFIG_STATUS <<\_ACEOF
5008 for ac_config_target in $ac_config_targets
5009 do
5010   case "$ac_config_target" in
5011   # Handling of arguments.
5012   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5013   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5014   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5015 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5016    { (exit 1); exit 1; }; };;
5017   esac
5018 done
5019
5020 # If the user did not use the arguments to specify the items to instantiate,
5021 # then the envvar interface is used.  Set only those that are not.
5022 # We use the long form for the default assignment because of an extremely
5023 # bizarre bug on SunOS 4.1.3.
5024 if $ac_need_defaults; then
5025   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5026   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5027 fi
5028
5029 # Create a temporary directory, and hook for its removal unless debugging.
5030 $debug ||
5031 {
5032   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5033   trap '{ (exit 1); exit 1; }' 1 2 13 15
5034 }
5035
5036 # Create a (secure) tmp directory for tmp files.
5037 : ${TMPDIR=/tmp}
5038 {
5039   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5040   test -n "$tmp" && test -d "$tmp"
5041 }  ||
5042 {
5043   tmp=$TMPDIR/cs$$-$RANDOM
5044   (umask 077 && mkdir $tmp)
5045 } ||
5046 {
5047    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5048    { (exit 1); exit 1; }
5049 }
5050
5051 _ACEOF
5052
5053 cat >>$CONFIG_STATUS <<_ACEOF
5054
5055 #
5056 # CONFIG_FILES section.
5057 #
5058
5059 # No need to generate the scripts if there are no CONFIG_FILES.
5060 # This happens for instance when ./config.status config.h
5061 if test -n "\$CONFIG_FILES"; then
5062   # Protect against being on the right side of a sed subst in config.status.
5063   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5064    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5065 s,@SHELL@,$SHELL,;t t
5066 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5067 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5068 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5069 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5070 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5071 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5072 s,@exec_prefix@,$exec_prefix,;t t
5073 s,@prefix@,$prefix,;t t
5074 s,@program_transform_name@,$program_transform_name,;t t
5075 s,@bindir@,$bindir,;t t
5076 s,@sbindir@,$sbindir,;t t
5077 s,@libexecdir@,$libexecdir,;t t
5078 s,@datadir@,$datadir,;t t
5079 s,@sysconfdir@,$sysconfdir,;t t
5080 s,@sharedstatedir@,$sharedstatedir,;t t
5081 s,@localstatedir@,$localstatedir,;t t
5082 s,@libdir@,$libdir,;t t
5083 s,@includedir@,$includedir,;t t
5084 s,@oldincludedir@,$oldincludedir,;t t
5085 s,@infodir@,$infodir,;t t
5086 s,@mandir@,$mandir,;t t
5087 s,@build_alias@,$build_alias,;t t
5088 s,@host_alias@,$host_alias,;t t
5089 s,@target_alias@,$target_alias,;t t
5090 s,@DEFS@,$DEFS,;t t
5091 s,@ECHO_C@,$ECHO_C,;t t
5092 s,@ECHO_N@,$ECHO_N,;t t
5093 s,@ECHO_T@,$ECHO_T,;t t
5094 s,@LIBS@,$LIBS,;t t
5095 s,@STRIP@,$STRIP,;t t
5096 s,@CC@,$CC,;t t
5097 s,@CFLAGS@,$CFLAGS,;t t
5098 s,@LDFLAGS@,$LDFLAGS,;t t
5099 s,@CPPFLAGS@,$CPPFLAGS,;t t
5100 s,@ac_ct_CC@,$ac_ct_CC,;t t
5101 s,@EXEEXT@,$EXEEXT,;t t
5102 s,@OBJEXT@,$OBJEXT,;t t
5103 s,@CPP@,$CPP,;t t
5104 s,@EGREP@,$EGREP,;t t
5105 s,@LIBOBJS@,$LIBOBJS,;t t
5106 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5107 CEOF
5108
5109 _ACEOF
5110
5111   cat >>$CONFIG_STATUS <<\_ACEOF
5112   # Split the substitutions into bite-sized pieces for seds with
5113   # small command number limits, like on Digital OSF/1 and HP-UX.
5114   ac_max_sed_lines=48
5115   ac_sed_frag=1 # Number of current file.
5116   ac_beg=1 # First line for current file.
5117   ac_end=$ac_max_sed_lines # Line after last line for current file.
5118   ac_more_lines=:
5119   ac_sed_cmds=
5120   while $ac_more_lines; do
5121     if test $ac_beg -gt 1; then
5122       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5123     else
5124       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5125     fi
5126     if test ! -s $tmp/subs.frag; then
5127       ac_more_lines=false
5128     else
5129       # The purpose of the label and of the branching condition is to
5130       # speed up the sed processing (if there are no `@' at all, there
5131       # is no need to browse any of the substitutions).
5132       # These are the two extra sed commands mentioned above.
5133       (echo ':t
5134   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5135       if test -z "$ac_sed_cmds"; then
5136         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5137       else
5138         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5139       fi
5140       ac_sed_frag=`expr $ac_sed_frag + 1`
5141       ac_beg=$ac_end
5142       ac_end=`expr $ac_end + $ac_max_sed_lines`
5143     fi
5144   done
5145   if test -z "$ac_sed_cmds"; then
5146     ac_sed_cmds=cat
5147   fi
5148 fi # test -n "$CONFIG_FILES"
5149
5150 _ACEOF
5151 cat >>$CONFIG_STATUS <<\_ACEOF
5152 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5153   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5154   case $ac_file in
5155   - | *:- | *:-:* ) # input from stdin
5156         cat >$tmp/stdin
5157         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5158         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5159   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5160         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5161   * )   ac_file_in=$ac_file.in ;;
5162   esac
5163
5164   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5165   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5166 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5167          X"$ac_file" : 'X\(//\)[^/]' \| \
5168          X"$ac_file" : 'X\(//\)$' \| \
5169          X"$ac_file" : 'X\(/\)' \| \
5170          .     : '\(.\)' 2>/dev/null ||
5171 echo X"$ac_file" |
5172     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5173           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5174           /^X\(\/\/\)$/{ s//\1/; q; }
5175           /^X\(\/\).*/{ s//\1/; q; }
5176           s/.*/./; q'`
5177   { if $as_mkdir_p; then
5178     mkdir -p "$ac_dir"
5179   else
5180     as_dir="$ac_dir"
5181     as_dirs=
5182     while test ! -d "$as_dir"; do
5183       as_dirs="$as_dir $as_dirs"
5184       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5185 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5186          X"$as_dir" : 'X\(//\)[^/]' \| \
5187          X"$as_dir" : 'X\(//\)$' \| \
5188          X"$as_dir" : 'X\(/\)' \| \
5189          .     : '\(.\)' 2>/dev/null ||
5190 echo X"$as_dir" |
5191     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5192           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5193           /^X\(\/\/\)$/{ s//\1/; q; }
5194           /^X\(\/\).*/{ s//\1/; q; }
5195           s/.*/./; q'`
5196     done
5197     test ! -n "$as_dirs" || mkdir $as_dirs
5198   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5199 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5200    { (exit 1); exit 1; }; }; }
5201
5202   ac_builddir=.
5203
5204 if test "$ac_dir" != .; then
5205   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5206   # A "../" for each directory in $ac_dir_suffix.
5207   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5208 else
5209   ac_dir_suffix= ac_top_builddir=
5210 fi
5211
5212 case $srcdir in
5213   .)  # No --srcdir option.  We are building in place.
5214     ac_srcdir=.
5215     if test -z "$ac_top_builddir"; then
5216        ac_top_srcdir=.
5217     else
5218        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5219     fi ;;
5220   [\\/]* | ?:[\\/]* )  # Absolute path.
5221     ac_srcdir=$srcdir$ac_dir_suffix;
5222     ac_top_srcdir=$srcdir ;;
5223   *) # Relative path.
5224     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5225     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5226 esac
5227 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5228 # absolute.
5229 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5230 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5231 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5232 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5233
5234
5235
5236   if test x"$ac_file" != x-; then
5237     { echo "$as_me:$LINENO: creating $ac_file" >&5
5238 echo "$as_me: creating $ac_file" >&6;}
5239     rm -f "$ac_file"
5240   fi
5241   # Let's still pretend it is `configure' which instantiates (i.e., don't
5242   # use $as_me), people would be surprised to read:
5243   #    /* config.h.  Generated by config.status.  */
5244   if test x"$ac_file" = x-; then
5245     configure_input=
5246   else
5247     configure_input="$ac_file.  "
5248   fi
5249   configure_input=$configure_input"Generated from `echo $ac_file_in |
5250                                      sed 's,.*/,,'` by configure."
5251
5252   # First look for the input files in the build tree, otherwise in the
5253   # src tree.
5254   ac_file_inputs=`IFS=:
5255     for f in $ac_file_in; do
5256       case $f in
5257       -) echo $tmp/stdin ;;
5258       [\\/$]*)
5259          # Absolute (can't be DOS-style, as IFS=:)
5260          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5261 echo "$as_me: error: cannot find input file: $f" >&2;}
5262    { (exit 1); exit 1; }; }
5263          echo $f;;
5264       *) # Relative
5265          if test -f "$f"; then
5266            # Build tree
5267            echo $f
5268          elif test -f "$srcdir/$f"; then
5269            # Source tree
5270            echo $srcdir/$f
5271          else
5272            # /dev/null tree
5273            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5274 echo "$as_me: error: cannot find input file: $f" >&2;}
5275    { (exit 1); exit 1; }; }
5276          fi;;
5277       esac
5278     done` || { (exit 1); exit 1; }
5279 _ACEOF
5280 cat >>$CONFIG_STATUS <<_ACEOF
5281   sed "$ac_vpsub
5282 $extrasub
5283 _ACEOF
5284 cat >>$CONFIG_STATUS <<\_ACEOF
5285 :t
5286 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5287 s,@configure_input@,$configure_input,;t t
5288 s,@srcdir@,$ac_srcdir,;t t
5289 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5290 s,@top_srcdir@,$ac_top_srcdir,;t t
5291 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5292 s,@builddir@,$ac_builddir,;t t
5293 s,@abs_builddir@,$ac_abs_builddir,;t t
5294 s,@top_builddir@,$ac_top_builddir,;t t
5295 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5296 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5297   rm -f $tmp/stdin
5298   if test x"$ac_file" != x-; then
5299     mv $tmp/out $ac_file
5300   else
5301     cat $tmp/out
5302     rm -f $tmp/out
5303   fi
5304
5305 done
5306 _ACEOF
5307 cat >>$CONFIG_STATUS <<\_ACEOF
5308
5309 #
5310 # CONFIG_HEADER section.
5311 #
5312
5313 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5314 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5315 #
5316 # ac_d sets the value in "#define NAME VALUE" lines.
5317 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
5318 ac_dB='[        ].*$,\1#\2'
5319 ac_dC=' '
5320 ac_dD=',;t'
5321 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5322 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5323 ac_uB='$,\1#\2define\3'
5324 ac_uC=' '
5325 ac_uD=',;t'
5326
5327 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5328   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5329   case $ac_file in
5330   - | *:- | *:-:* ) # input from stdin
5331         cat >$tmp/stdin
5332         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5333         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5334   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5335         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5336   * )   ac_file_in=$ac_file.in ;;
5337   esac
5338
5339   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5340 echo "$as_me: creating $ac_file" >&6;}
5341
5342   # First look for the input files in the build tree, otherwise in the
5343   # src tree.
5344   ac_file_inputs=`IFS=:
5345     for f in $ac_file_in; do
5346       case $f in
5347       -) echo $tmp/stdin ;;
5348       [\\/$]*)
5349          # Absolute (can't be DOS-style, as IFS=:)
5350          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5351 echo "$as_me: error: cannot find input file: $f" >&2;}
5352    { (exit 1); exit 1; }; }
5353          echo $f;;
5354       *) # Relative
5355          if test -f "$f"; then
5356            # Build tree
5357            echo $f
5358          elif test -f "$srcdir/$f"; then
5359            # Source tree
5360            echo $srcdir/$f
5361          else
5362            # /dev/null tree
5363            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5364 echo "$as_me: error: cannot find input file: $f" >&2;}
5365    { (exit 1); exit 1; }; }
5366          fi;;
5367       esac
5368     done` || { (exit 1); exit 1; }
5369   # Remove the trailing spaces.
5370   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
5371
5372 _ACEOF
5373
5374 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5375 # `conftest.undefs', that substitutes the proper values into
5376 # config.h.in to produce config.h.  The first handles `#define'
5377 # templates, and the second `#undef' templates.
5378 # And first: Protect against being on the right side of a sed subst in
5379 # config.status.  Protect against being in an unquoted here document
5380 # in config.status.
5381 rm -f conftest.defines conftest.undefs
5382 # Using a here document instead of a string reduces the quoting nightmare.
5383 # Putting comments in sed scripts is not portable.
5384 #
5385 # `end' is used to avoid that the second main sed command (meant for
5386 # 0-ary CPP macros) applies to n-ary macro definitions.
5387 # See the Autoconf documentation for `clear'.
5388 cat >confdef2sed.sed <<\_ACEOF
5389 s/[\\&,]/\\&/g
5390 s,[\\$`],\\&,g
5391 t clear
5392 : clear
5393 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5394 t end
5395 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5396 : end
5397 _ACEOF
5398 # If some macros were called several times there might be several times
5399 # the same #defines, which is useless.  Nevertheless, we may not want to
5400 # sort them, since we want the *last* AC-DEFINE to be honored.
5401 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5402 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5403 rm -f confdef2sed.sed
5404
5405 # This sed command replaces #undef with comments.  This is necessary, for
5406 # example, in the case of _POSIX_SOURCE, which is predefined and required
5407 # on some systems where configure will not decide to define it.
5408 cat >>conftest.undefs <<\_ACEOF
5409 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5410 _ACEOF
5411
5412 # Break up conftest.defines because some shells have a limit on the size
5413 # of here documents, and old seds have small limits too (100 cmds).
5414 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5415 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5416 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5417 echo '  :' >>$CONFIG_STATUS
5418 rm -f conftest.tail
5419 while grep . conftest.defines >/dev/null
5420 do
5421   # Write a limited-size here document to $tmp/defines.sed.
5422   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5423   # Speed up: don't consider the non `#define' lines.
5424   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
5425   # Work around the forget-to-reset-the-flag bug.
5426   echo 't clr' >>$CONFIG_STATUS
5427   echo ': clr' >>$CONFIG_STATUS
5428   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5429   echo 'CEOF
5430   sed -f $tmp/defines.sed $tmp/in >$tmp/out
5431   rm -f $tmp/in
5432   mv $tmp/out $tmp/in
5433 ' >>$CONFIG_STATUS
5434   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5435   rm -f conftest.defines
5436   mv conftest.tail conftest.defines
5437 done
5438 rm -f conftest.defines
5439 echo '  fi # grep' >>$CONFIG_STATUS
5440 echo >>$CONFIG_STATUS
5441
5442 # Break up conftest.undefs because some shells have a limit on the size
5443 # of here documents, and old seds have small limits too (100 cmds).
5444 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5445 rm -f conftest.tail
5446 while grep . conftest.undefs >/dev/null
5447 do
5448   # Write a limited-size here document to $tmp/undefs.sed.
5449   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5450   # Speed up: don't consider the non `#undef'
5451   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
5452   # Work around the forget-to-reset-the-flag bug.
5453   echo 't clr' >>$CONFIG_STATUS
5454   echo ': clr' >>$CONFIG_STATUS
5455   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5456   echo 'CEOF
5457   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5458   rm -f $tmp/in
5459   mv $tmp/out $tmp/in
5460 ' >>$CONFIG_STATUS
5461   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5462   rm -f conftest.undefs
5463   mv conftest.tail conftest.undefs
5464 done
5465 rm -f conftest.undefs
5466
5467 cat >>$CONFIG_STATUS <<\_ACEOF
5468   # Let's still pretend it is `configure' which instantiates (i.e., don't
5469   # use $as_me), people would be surprised to read:
5470   #    /* config.h.  Generated by config.status.  */
5471   if test x"$ac_file" = x-; then
5472     echo "/* Generated by configure.  */" >$tmp/config.h
5473   else
5474     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5475   fi
5476   cat $tmp/in >>$tmp/config.h
5477   rm -f $tmp/in
5478   if test x"$ac_file" != x-; then
5479     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5480       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5481 echo "$as_me: $ac_file is unchanged" >&6;}
5482     else
5483       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5484 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5485          X"$ac_file" : 'X\(//\)[^/]' \| \
5486          X"$ac_file" : 'X\(//\)$' \| \
5487          X"$ac_file" : 'X\(/\)' \| \
5488          .     : '\(.\)' 2>/dev/null ||
5489 echo X"$ac_file" |
5490     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5491           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5492           /^X\(\/\/\)$/{ s//\1/; q; }
5493           /^X\(\/\).*/{ s//\1/; q; }
5494           s/.*/./; q'`
5495       { if $as_mkdir_p; then
5496     mkdir -p "$ac_dir"
5497   else
5498     as_dir="$ac_dir"
5499     as_dirs=
5500     while test ! -d "$as_dir"; do
5501       as_dirs="$as_dir $as_dirs"
5502       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5503 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5504          X"$as_dir" : 'X\(//\)[^/]' \| \
5505          X"$as_dir" : 'X\(//\)$' \| \
5506          X"$as_dir" : 'X\(/\)' \| \
5507          .     : '\(.\)' 2>/dev/null ||
5508 echo X"$as_dir" |
5509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5510           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5511           /^X\(\/\/\)$/{ s//\1/; q; }
5512           /^X\(\/\).*/{ s//\1/; q; }
5513           s/.*/./; q'`
5514     done
5515     test ! -n "$as_dirs" || mkdir $as_dirs
5516   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5517 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5518    { (exit 1); exit 1; }; }; }
5519
5520       rm -f $ac_file
5521       mv $tmp/config.h $ac_file
5522     fi
5523   else
5524     cat $tmp/config.h
5525     rm -f $tmp/config.h
5526   fi
5527 done
5528 _ACEOF
5529
5530 cat >>$CONFIG_STATUS <<\_ACEOF
5531
5532 { (exit 0); exit 0; }
5533 _ACEOF
5534 chmod +x $CONFIG_STATUS
5535 ac_clean_files=$ac_clean_files_save
5536
5537
5538 # configure is writing to config.log, and then calls config.status.
5539 # config.status does its own redirection, appending to config.log.
5540 # Unfortunately, on DOS this fails, as config.log is still kept open
5541 # by configure, so config.status won't be able to write to it; its
5542 # output is simply discarded.  So we exec the FD to /dev/null,
5543 # effectively closing config.log, so it can be properly (re)opened and
5544 # appended to by config.status.  When coming back to configure, we
5545 # need to make the FD available again.
5546 if test "$no_create" != yes; then
5547   ac_cs_success=:
5548   exec 5>/dev/null
5549   $SHELL $CONFIG_STATUS || ac_cs_success=false
5550   exec 5>>config.log
5551   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5552   # would make configure fail if this is the last instruction.
5553   $ac_cs_success || { (exit 1); exit 1; }
5554 fi
5555