Strip off version numbers from dir name
[dockapps.git] / wmwifi / autom4te.cache / output.0
blob1f808af76b81bca986d8ce3f775146fb18227381
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.59.
4 @%:@ 
5 @%:@ Copyright (C) 2003 Free Software Foundation, Inc.
6 @%:@ This configure script is free software; the Free Software Foundation
7 @%:@ gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
154   esac
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS="   $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="src/wmwifi.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS EGREP LIB@&t@OBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365   # Accept the important Cygnus configure options, so we can diagnose typos.
367   case $ac_option in
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
386   --config-cache | -C)
387     cache_file=config.cache ;;
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
649   esac
650 done
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801 _ACEOF
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
832   cat <<\_ACEOF
834 Program names:
835   --program-prefix=PREFIX            prepend PREFIX to installed program names
836   --program-suffix=SUFFIX            append SUFFIX to installed program names
837   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
839 X features:
840   --x-includes=DIR    X include files are in DIR
841   --x-libraries=DIR   X library files are in DIR
842 _ACEOF
845 if test -n "$ac_init_help"; then
847   cat <<\_ACEOF
849 Optional Packages:
850   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
851   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
852   --with-x                use the X Window System
854 Some influential environment variables:
855   CC          C compiler command
856   CFLAGS      C compiler flags
857   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
858               nonstandard directory <lib dir>
859   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
860               headers in a nonstandard directory <include dir>
861   CPP         C preprocessor
863 Use these variables to override the choices made by `configure' or to help
864 it to find libraries and programs with nonstandard names/locations.
866 _ACEOF
869 if test "$ac_init_help" = "recursive"; then
870   # If there are subdirs, report their specific --help.
871   ac_popdir=`pwd`
872   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
873     test -d $ac_dir || continue
874     ac_builddir=.
876 if test "$ac_dir" != .; then
877   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
878   # A "../" for each directory in $ac_dir_suffix.
879   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
880 else
881   ac_dir_suffix= ac_top_builddir=
884 case $srcdir in
885   .)  # No --srcdir option.  We are building in place.
886     ac_srcdir=.
887     if test -z "$ac_top_builddir"; then
888        ac_top_srcdir=.
889     else
890        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
891     fi ;;
892   [\\/]* | ?:[\\/]* )  # Absolute path.
893     ac_srcdir=$srcdir$ac_dir_suffix;
894     ac_top_srcdir=$srcdir ;;
895   *) # Relative path.
896     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
897     ac_top_srcdir=$ac_top_builddir$srcdir ;;
898 esac
900 # Do not use `cd foo && pwd` to compute absolute paths, because
901 # the directories may not exist.
902 case `pwd` in
903 .) ac_abs_builddir="$ac_dir";;
905   case "$ac_dir" in
906   .) ac_abs_builddir=`pwd`;;
907   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
908   *) ac_abs_builddir=`pwd`/"$ac_dir";;
909   esac;;
910 esac
911 case $ac_abs_builddir in
912 .) ac_abs_top_builddir=${ac_top_builddir}.;;
914   case ${ac_top_builddir}. in
915   .) ac_abs_top_builddir=$ac_abs_builddir;;
916   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
917   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
918   esac;;
919 esac
920 case $ac_abs_builddir in
921 .) ac_abs_srcdir=$ac_srcdir;;
923   case $ac_srcdir in
924   .) ac_abs_srcdir=$ac_abs_builddir;;
925   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
926   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
927   esac;;
928 esac
929 case $ac_abs_builddir in
930 .) ac_abs_top_srcdir=$ac_top_srcdir;;
932   case $ac_top_srcdir in
933   .) ac_abs_top_srcdir=$ac_abs_builddir;;
934   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
935   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
936   esac;;
937 esac
939     cd $ac_dir
940     # Check for guested configure; otherwise get Cygnus style configure.
941     if test -f $ac_srcdir/configure.gnu; then
942       echo
943       $SHELL $ac_srcdir/configure.gnu  --help=recursive
944     elif test -f $ac_srcdir/configure; then
945       echo
946       $SHELL $ac_srcdir/configure  --help=recursive
947     elif test -f $ac_srcdir/configure.ac ||
948            test -f $ac_srcdir/configure.in; then
949       echo
950       $ac_configure --help
951     else
952       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
953     fi
954     cd "$ac_popdir"
955   done
958 test -n "$ac_init_help" && exit 0
959 if $ac_init_version; then
960   cat <<\_ACEOF
962 Copyright (C) 2003 Free Software Foundation, Inc.
963 This configure script is free software; the Free Software Foundation
964 gives unlimited permission to copy, distribute and modify it.
965 _ACEOF
966   exit 0
968 exec 5>config.log
969 cat >&5 <<_ACEOF
970 This file contains any messages produced by compilers while
971 running configure, to aid debugging if configure makes a mistake.
973 It was created by $as_me, which was
974 generated by GNU Autoconf 2.59.  Invocation command line was
976   $ $0 $@
978 _ACEOF
980 cat <<_ASUNAME
981 @%:@@%:@ --------- @%:@@%:@
982 @%:@@%:@ Platform. @%:@@%:@
983 @%:@@%:@ --------- @%:@@%:@
985 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
986 uname -m = `(uname -m) 2>/dev/null || echo unknown`
987 uname -r = `(uname -r) 2>/dev/null || echo unknown`
988 uname -s = `(uname -s) 2>/dev/null || echo unknown`
989 uname -v = `(uname -v) 2>/dev/null || echo unknown`
991 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
992 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
994 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
995 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
996 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
997 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
998 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
999 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1000 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1002 _ASUNAME
1004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 for as_dir in $PATH
1007   IFS=$as_save_IFS
1008   test -z "$as_dir" && as_dir=.
1009   echo "PATH: $as_dir"
1010 done
1012 } >&5
1014 cat >&5 <<_ACEOF
1017 @%:@@%:@ ----------- @%:@@%:@
1018 @%:@@%:@ Core tests. @%:@@%:@
1019 @%:@@%:@ ----------- @%:@@%:@
1021 _ACEOF
1024 # Keep a trace of the command line.
1025 # Strip out --no-create and --no-recursion so they do not pile up.
1026 # Strip out --silent because we don't want to record it for future runs.
1027 # Also quote any args containing shell meta-characters.
1028 # Make two passes to allow for proper duplicate-argument suppression.
1029 ac_configure_args=
1030 ac_configure_args0=
1031 ac_configure_args1=
1032 ac_sep=
1033 ac_must_keep_next=false
1034 for ac_pass in 1 2
1036   for ac_arg
1037   do
1038     case $ac_arg in
1039     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1040     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041     | -silent | --silent | --silen | --sile | --sil)
1042       continue ;;
1043     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1044       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1045     esac
1046     case $ac_pass in
1047     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1048     2)
1049       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1050       if test $ac_must_keep_next = true; then
1051         ac_must_keep_next=false # Got value, back to normal.
1052       else
1053         case $ac_arg in
1054           *=* | --config-cache | -C | -disable-* | --disable-* \
1055           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1056           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1057           | -with-* | --with-* | -without-* | --without-* | --x)
1058             case "$ac_configure_args0 " in
1059               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1060             esac
1061             ;;
1062           -* ) ac_must_keep_next=true ;;
1063         esac
1064       fi
1065       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1066       # Get rid of the leading space.
1067       ac_sep=" "
1068       ;;
1069     esac
1070   done
1071 done
1072 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1073 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1075 # When interrupted or exit'd, cleanup temporary files, and complete
1076 # config.log.  We remove comments because anyway the quotes in there
1077 # would cause problems or look ugly.
1078 # WARNING: Be sure not to use single quotes in there, as some shells,
1079 # such as our DU 5.0 friend, will then `close' the trap.
1080 trap 'exit_status=$?
1081   # Save into config.log some information that might help in debugging.
1082   {
1083     echo
1085     cat <<\_ASBOX
1086 @%:@@%:@ ---------------- @%:@@%:@
1087 @%:@@%:@ Cache variables. @%:@@%:@
1088 @%:@@%:@ ---------------- @%:@@%:@
1089 _ASBOX
1090     echo
1091     # The following way of writing the cache mishandles newlines in values,
1093   (set) 2>&1 |
1094     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1095     *ac_space=\ *)
1096       sed -n \
1097         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1098           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1099       ;;
1100     *)
1101       sed -n \
1102         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1103       ;;
1104     esac;
1106     echo
1108     cat <<\_ASBOX
1109 @%:@@%:@ ----------------- @%:@@%:@
1110 @%:@@%:@ Output variables. @%:@@%:@
1111 @%:@@%:@ ----------------- @%:@@%:@
1112 _ASBOX
1113     echo
1114     for ac_var in $ac_subst_vars
1115     do
1116       eval ac_val=$`echo $ac_var`
1117       echo "$ac_var='"'"'$ac_val'"'"'"
1118     done | sort
1119     echo
1121     if test -n "$ac_subst_files"; then
1122       cat <<\_ASBOX
1123 @%:@@%:@ ------------- @%:@@%:@
1124 @%:@@%:@ Output files. @%:@@%:@
1125 @%:@@%:@ ------------- @%:@@%:@
1126 _ASBOX
1127       echo
1128       for ac_var in $ac_subst_files
1129       do
1130         eval ac_val=$`echo $ac_var`
1131         echo "$ac_var='"'"'$ac_val'"'"'"
1132       done | sort
1133       echo
1134     fi
1136     if test -s confdefs.h; then
1137       cat <<\_ASBOX
1138 @%:@@%:@ ----------- @%:@@%:@
1139 @%:@@%:@ confdefs.h. @%:@@%:@
1140 @%:@@%:@ ----------- @%:@@%:@
1141 _ASBOX
1142       echo
1143       sed "/^$/d" confdefs.h | sort
1144       echo
1145     fi
1146     test "$ac_signal" != 0 &&
1147       echo "$as_me: caught signal $ac_signal"
1148     echo "$as_me: exit $exit_status"
1149   } >&5
1150   rm -f core *.core &&
1151   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1152     exit $exit_status
1153      ' 0
1154 for ac_signal in 1 2 13 15; do
1155   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1156 done
1157 ac_signal=0
1159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1160 rm -rf conftest* confdefs.h
1161 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1162 echo >confdefs.h
1164 # Predefined preprocessor variables.
1166 cat >>confdefs.h <<_ACEOF
1167 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1168 _ACEOF
1171 cat >>confdefs.h <<_ACEOF
1172 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1173 _ACEOF
1176 cat >>confdefs.h <<_ACEOF
1177 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1178 _ACEOF
1181 cat >>confdefs.h <<_ACEOF
1182 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1183 _ACEOF
1186 cat >>confdefs.h <<_ACEOF
1187 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1188 _ACEOF
1191 # Let the site file select an alternate cache file if it wants to.
1192 # Prefer explicitly selected file to automatically selected ones.
1193 if test -z "$CONFIG_SITE"; then
1194   if test "x$prefix" != xNONE; then
1195     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1196   else
1197     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1198   fi
1200 for ac_site_file in $CONFIG_SITE; do
1201   if test -r "$ac_site_file"; then
1202     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1203 echo "$as_me: loading site script $ac_site_file" >&6;}
1204     sed 's/^/| /' "$ac_site_file" >&5
1205     . "$ac_site_file"
1206   fi
1207 done
1209 if test -r "$cache_file"; then
1210   # Some versions of bash will fail to source /dev/null (special
1211   # files actually), so we avoid doing that.
1212   if test -f "$cache_file"; then
1213     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1214 echo "$as_me: loading cache $cache_file" >&6;}
1215     case $cache_file in
1216       [\\/]* | ?:[\\/]* ) . $cache_file;;
1217       *)                      . ./$cache_file;;
1218     esac
1219   fi
1220 else
1221   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1222 echo "$as_me: creating cache $cache_file" >&6;}
1223   >$cache_file
1226 # Check that the precious variables saved in the cache have kept the same
1227 # value.
1228 ac_cache_corrupted=false
1229 for ac_var in `(set) 2>&1 |
1230                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1231   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1232   eval ac_new_set=\$ac_env_${ac_var}_set
1233   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1234   eval ac_new_val="\$ac_env_${ac_var}_value"
1235   case $ac_old_set,$ac_new_set in
1236     set,)
1237       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1239       ac_cache_corrupted=: ;;
1240     ,set)
1241       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1243       ac_cache_corrupted=: ;;
1244     ,);;
1245     *)
1246       if test "x$ac_old_val" != "x$ac_new_val"; then
1247         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1248 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1249         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1250 echo "$as_me:   former value:  $ac_old_val" >&2;}
1251         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1252 echo "$as_me:   current value: $ac_new_val" >&2;}
1253         ac_cache_corrupted=:
1254       fi;;
1255   esac
1256   # Pass precious variables to config.status.
1257   if test "$ac_new_set" = set; then
1258     case $ac_new_val in
1259     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1261     *) ac_arg=$ac_var=$ac_new_val ;;
1262     esac
1263     case " $ac_configure_args " in
1264       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1265       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1266     esac
1267   fi
1268 done
1269 if $ac_cache_corrupted; then
1270   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1271 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1272   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1273 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1274    { (exit 1); exit 1; }; }
1277 ac_ext=c
1278 ac_cpp='$CPP $CPPFLAGS'
1279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301 am__api_version="1.4"
1302 ac_aux_dir=
1303 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1304   if test -f $ac_dir/install-sh; then
1305     ac_aux_dir=$ac_dir
1306     ac_install_sh="$ac_aux_dir/install-sh -c"
1307     break
1308   elif test -f $ac_dir/install.sh; then
1309     ac_aux_dir=$ac_dir
1310     ac_install_sh="$ac_aux_dir/install.sh -c"
1311     break
1312   elif test -f $ac_dir/shtool; then
1313     ac_aux_dir=$ac_dir
1314     ac_install_sh="$ac_aux_dir/shtool install -c"
1315     break
1316   fi
1317 done
1318 if test -z "$ac_aux_dir"; then
1319   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1320 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1321    { (exit 1); exit 1; }; }
1323 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1324 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1325 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1327 # Find a good install program.  We prefer a C program (faster),
1328 # so one script is as good as another.  But avoid the broken or
1329 # incompatible versions:
1330 # SysV /etc/install, /usr/sbin/install
1331 # SunOS /usr/etc/install
1332 # IRIX /sbin/install
1333 # AIX /bin/install
1334 # AmigaOS /C/install, which installs bootblocks on floppy discs
1335 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1336 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1337 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1338 # OS/2's system install, which has a completely different semantic
1339 # ./install, which can be erroneously created by make from ./install.sh.
1340 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1341 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1342 if test -z "$INSTALL"; then
1343 if test "${ac_cv_path_install+set}" = set; then
1344   echo $ECHO_N "(cached) $ECHO_C" >&6
1345 else
1346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1347 for as_dir in $PATH
1349   IFS=$as_save_IFS
1350   test -z "$as_dir" && as_dir=.
1351   # Account for people who put trailing slashes in PATH elements.
1352 case $as_dir/ in
1353   ./ | .// | /cC/* | \
1354   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1355   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1356   /usr/ucb/* ) ;;
1357   *)
1358     # OSF1 and SCO ODT 3.0 have their own names for install.
1359     # Don't use installbsd from OSF since it installs stuff as root
1360     # by default.
1361     for ac_prog in ginstall scoinst install; do
1362       for ac_exec_ext in '' $ac_executable_extensions; do
1363         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1364           if test $ac_prog = install &&
1365             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1366             # AIX install.  It has an incompatible calling convention.
1367             :
1368           elif test $ac_prog = install &&
1369             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1370             # program-specific install script used by HP pwplus--don't use.
1371             :
1372           else
1373             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1374             break 3
1375           fi
1376         fi
1377       done
1378     done
1379     ;;
1380 esac
1381 done
1385   if test "${ac_cv_path_install+set}" = set; then
1386     INSTALL=$ac_cv_path_install
1387   else
1388     # As a last resort, use the slow shell script.  We don't cache a
1389     # path for INSTALL within a source directory, because that will
1390     # break other packages using the cache if that directory is
1391     # removed, or if the path is relative.
1392     INSTALL=$ac_install_sh
1393   fi
1395 echo "$as_me:$LINENO: result: $INSTALL" >&5
1396 echo "${ECHO_T}$INSTALL" >&6
1398 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1399 # It thinks the first close brace ends the variable substitution.
1400 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1402 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1404 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1406 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1407 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1408 # Just in case
1409 sleep 1
1410 echo timestamp > conftestfile
1411 # Do `set' in a subshell so we don't clobber the current shell's
1412 # arguments.  Must try -L first in case configure is actually a
1413 # symlink; some systems play weird games with the mod time of symlinks
1414 # (eg FreeBSD returns the mod time of the symlink's containing
1415 # directory).
1416 if (
1417    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1418    if test "$*" = "X"; then
1419       # -L didn't work.
1420       set X `ls -t $srcdir/configure conftestfile`
1421    fi
1422    if test "$*" != "X $srcdir/configure conftestfile" \
1423       && test "$*" != "X conftestfile $srcdir/configure"; then
1425       # If neither matched, then we have a broken ls.  This can happen
1426       # if, for instance, CONFIG_SHELL is bash and it inherits a
1427       # broken ls alias from the environment.  This has actually
1428       # happened.  Such a system could not be considered "sane".
1429       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1430 alias in your environment" >&5
1431 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1432 alias in your environment" >&2;}
1433    { (exit 1); exit 1; }; }
1434    fi
1436    test "$2" = conftestfile
1437    )
1438 then
1439    # Ok.
1440    :
1441 else
1442    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1443 Check your system clock" >&5
1444 echo "$as_me: error: newly created file is older than distributed files!
1445 Check your system clock" >&2;}
1446    { (exit 1); exit 1; }; }
1448 rm -f conftest*
1449 echo "$as_me:$LINENO: result: yes" >&5
1450 echo "${ECHO_T}yes" >&6
1451 test "$program_prefix" != NONE &&
1452   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1453 # Use a double $ so make ignores it.
1454 test "$program_suffix" != NONE &&
1455   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1456 # Double any \ or $.  echo might interpret backslashes.
1457 # By default was `s,x,x', remove it if useless.
1458 cat <<\_ACEOF >conftest.sed
1459 s/[\\$]/&&/g;s/;s,x,x,$//
1460 _ACEOF
1461 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1462 rm conftest.sed
1464 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1465 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1466 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1467 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1468   echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470   cat >conftest.make <<\_ACEOF
1471 all:
1472         @echo 'ac_maketemp="$(MAKE)"'
1473 _ACEOF
1474 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1475 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1476 if test -n "$ac_maketemp"; then
1477   eval ac_cv_prog_make_${ac_make}_set=yes
1478 else
1479   eval ac_cv_prog_make_${ac_make}_set=no
1481 rm -f conftest.make
1483 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1484   echo "$as_me:$LINENO: result: yes" >&5
1485 echo "${ECHO_T}yes" >&6
1486   SET_MAKE=
1487 else
1488   echo "$as_me:$LINENO: result: no" >&5
1489 echo "${ECHO_T}no" >&6
1490   SET_MAKE="MAKE=${MAKE-make}"
1494 PACKAGE=wmwifi
1496 VERSION=0.6
1498 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1499   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1500 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1501    { (exit 1); exit 1; }; }
1504 cat >>confdefs.h <<_ACEOF
1505 @%:@define PACKAGE "$PACKAGE"
1506 _ACEOF
1509 cat >>confdefs.h <<_ACEOF
1510 @%:@define VERSION "$VERSION"
1511 _ACEOF
1515 missing_dir=`cd $ac_aux_dir && pwd`
1516 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1517 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1518 # Run test in a subshell; some versions of sh will print an error if
1519 # an executable is not found, even if stderr is redirected.
1520 # Redirect stdin to placate older versions of autoconf.  Sigh.
1521 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1522    ACLOCAL=aclocal-${am__api_version}
1523    echo "$as_me:$LINENO: result: found" >&5
1524 echo "${ECHO_T}found" >&6
1525 else
1526    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1527    echo "$as_me:$LINENO: result: missing" >&5
1528 echo "${ECHO_T}missing" >&6
1531 echo "$as_me:$LINENO: checking for working autoconf" >&5
1532 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1533 # Run test in a subshell; some versions of sh will print an error if
1534 # an executable is not found, even if stderr is redirected.
1535 # Redirect stdin to placate older versions of autoconf.  Sigh.
1536 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1537    AUTOCONF=autoconf
1538    echo "$as_me:$LINENO: result: found" >&5
1539 echo "${ECHO_T}found" >&6
1540 else
1541    AUTOCONF="$missing_dir/missing autoconf"
1542    echo "$as_me:$LINENO: result: missing" >&5
1543 echo "${ECHO_T}missing" >&6
1546 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1547 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1548 # Run test in a subshell; some versions of sh will print an error if
1549 # an executable is not found, even if stderr is redirected.
1550 # Redirect stdin to placate older versions of autoconf.  Sigh.
1551 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1552    AUTOMAKE=automake-${am__api_version}
1553    echo "$as_me:$LINENO: result: found" >&5
1554 echo "${ECHO_T}found" >&6
1555 else
1556    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1557    echo "$as_me:$LINENO: result: missing" >&5
1558 echo "${ECHO_T}missing" >&6
1561 echo "$as_me:$LINENO: checking for working autoheader" >&5
1562 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1563 # Run test in a subshell; some versions of sh will print an error if
1564 # an executable is not found, even if stderr is redirected.
1565 # Redirect stdin to placate older versions of autoconf.  Sigh.
1566 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1567    AUTOHEADER=autoheader
1568    echo "$as_me:$LINENO: result: found" >&5
1569 echo "${ECHO_T}found" >&6
1570 else
1571    AUTOHEADER="$missing_dir/missing autoheader"
1572    echo "$as_me:$LINENO: result: missing" >&5
1573 echo "${ECHO_T}missing" >&6
1576 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1577 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1578 # Run test in a subshell; some versions of sh will print an error if
1579 # an executable is not found, even if stderr is redirected.
1580 # Redirect stdin to placate older versions of autoconf.  Sigh.
1581 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1582    MAKEINFO=makeinfo
1583    echo "$as_me:$LINENO: result: found" >&5
1584 echo "${ECHO_T}found" >&6
1585 else
1586    MAKEINFO="$missing_dir/missing makeinfo"
1587    echo "$as_me:$LINENO: result: missing" >&5
1588 echo "${ECHO_T}missing" >&6
1592 # Find a good install program.  We prefer a C program (faster),
1593 # so one script is as good as another.  But avoid the broken or
1594 # incompatible versions:
1595 # SysV /etc/install, /usr/sbin/install
1596 # SunOS /usr/etc/install
1597 # IRIX /sbin/install
1598 # AIX /bin/install
1599 # AmigaOS /C/install, which installs bootblocks on floppy discs
1600 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1601 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1602 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1603 # OS/2's system install, which has a completely different semantic
1604 # ./install, which can be erroneously created by make from ./install.sh.
1605 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1606 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1607 if test -z "$INSTALL"; then
1608 if test "${ac_cv_path_install+set}" = set; then
1609   echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1614   IFS=$as_save_IFS
1615   test -z "$as_dir" && as_dir=.
1616   # Account for people who put trailing slashes in PATH elements.
1617 case $as_dir/ in
1618   ./ | .// | /cC/* | \
1619   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1620   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1621   /usr/ucb/* ) ;;
1622   *)
1623     # OSF1 and SCO ODT 3.0 have their own names for install.
1624     # Don't use installbsd from OSF since it installs stuff as root
1625     # by default.
1626     for ac_prog in ginstall scoinst install; do
1627       for ac_exec_ext in '' $ac_executable_extensions; do
1628         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1629           if test $ac_prog = install &&
1630             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1631             # AIX install.  It has an incompatible calling convention.
1632             :
1633           elif test $ac_prog = install &&
1634             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1635             # program-specific install script used by HP pwplus--don't use.
1636             :
1637           else
1638             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1639             break 3
1640           fi
1641         fi
1642       done
1643     done
1644     ;;
1645 esac
1646 done
1650   if test "${ac_cv_path_install+set}" = set; then
1651     INSTALL=$ac_cv_path_install
1652   else
1653     # As a last resort, use the slow shell script.  We don't cache a
1654     # path for INSTALL within a source directory, because that will
1655     # break other packages using the cache if that directory is
1656     # removed, or if the path is relative.
1657     INSTALL=$ac_install_sh
1658   fi
1660 echo "$as_me:$LINENO: result: $INSTALL" >&5
1661 echo "${ECHO_T}$INSTALL" >&6
1663 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1664 # It thinks the first close brace ends the variable substitution.
1665 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1667 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1669 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1671 ac_ext=c
1672 ac_cpp='$CPP $CPPFLAGS'
1673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1676 if test -n "$ac_tool_prefix"; then
1677   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1678 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_CC+set}" = set; then
1682   echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684   if test -n "$CC"; then
1685   ac_cv_prog_CC="$CC" # Let the user override the test.
1686 else
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1690   IFS=$as_save_IFS
1691   test -z "$as_dir" && as_dir=.
1692   for ac_exec_ext in '' $ac_executable_extensions; do
1693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696     break 2
1697   fi
1698 done
1699 done
1703 CC=$ac_cv_prog_CC
1704 if test -n "$CC"; then
1705   echo "$as_me:$LINENO: result: $CC" >&5
1706 echo "${ECHO_T}$CC" >&6
1707 else
1708   echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1713 if test -z "$ac_cv_prog_CC"; then
1714   ac_ct_CC=$CC
1715   # Extract the first word of "gcc", so it can be a program name with args.
1716 set dummy gcc; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1720   echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722   if test -n "$ac_ct_CC"; then
1723   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1724 else
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1728   IFS=$as_save_IFS
1729   test -z "$as_dir" && as_dir=.
1730   for ac_exec_ext in '' $ac_executable_extensions; do
1731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732     ac_cv_prog_ac_ct_CC="gcc"
1733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734     break 2
1735   fi
1736 done
1737 done
1741 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1742 if test -n "$ac_ct_CC"; then
1743   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1744 echo "${ECHO_T}$ac_ct_CC" >&6
1745 else
1746   echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1750   CC=$ac_ct_CC
1751 else
1752   CC="$ac_cv_prog_CC"
1755 if test -z "$CC"; then
1756   if test -n "$ac_tool_prefix"; then
1757   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1758 set dummy ${ac_tool_prefix}cc; ac_word=$2
1759 echo "$as_me:$LINENO: checking for $ac_word" >&5
1760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1761 if test "${ac_cv_prog_CC+set}" = set; then
1762   echo $ECHO_N "(cached) $ECHO_C" >&6
1763 else
1764   if test -n "$CC"; then
1765   ac_cv_prog_CC="$CC" # Let the user override the test.
1766 else
1767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 for as_dir in $PATH
1770   IFS=$as_save_IFS
1771   test -z "$as_dir" && as_dir=.
1772   for ac_exec_ext in '' $ac_executable_extensions; do
1773   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1774     ac_cv_prog_CC="${ac_tool_prefix}cc"
1775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1776     break 2
1777   fi
1778 done
1779 done
1783 CC=$ac_cv_prog_CC
1784 if test -n "$CC"; then
1785   echo "$as_me:$LINENO: result: $CC" >&5
1786 echo "${ECHO_T}$CC" >&6
1787 else
1788   echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6
1793 if test -z "$ac_cv_prog_CC"; then
1794   ac_ct_CC=$CC
1795   # Extract the first word of "cc", so it can be a program name with args.
1796 set dummy cc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1800   echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802   if test -n "$ac_ct_CC"; then
1803   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1804 else
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806 for as_dir in $PATH
1808   IFS=$as_save_IFS
1809   test -z "$as_dir" && as_dir=.
1810   for ac_exec_ext in '' $ac_executable_extensions; do
1811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812     ac_cv_prog_ac_ct_CC="cc"
1813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814     break 2
1815   fi
1816 done
1817 done
1821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1822 if test -n "$ac_ct_CC"; then
1823   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1824 echo "${ECHO_T}$ac_ct_CC" >&6
1825 else
1826   echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1830   CC=$ac_ct_CC
1831 else
1832   CC="$ac_cv_prog_CC"
1836 if test -z "$CC"; then
1837   # Extract the first word of "cc", so it can be a program name with args.
1838 set dummy cc; ac_word=$2
1839 echo "$as_me:$LINENO: checking for $ac_word" >&5
1840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1841 if test "${ac_cv_prog_CC+set}" = set; then
1842   echo $ECHO_N "(cached) $ECHO_C" >&6
1843 else
1844   if test -n "$CC"; then
1845   ac_cv_prog_CC="$CC" # Let the user override the test.
1846 else
1847   ac_prog_rejected=no
1848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 for as_dir in $PATH
1851   IFS=$as_save_IFS
1852   test -z "$as_dir" && as_dir=.
1853   for ac_exec_ext in '' $ac_executable_extensions; do
1854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1856        ac_prog_rejected=yes
1857        continue
1858      fi
1859     ac_cv_prog_CC="cc"
1860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861     break 2
1862   fi
1863 done
1864 done
1866 if test $ac_prog_rejected = yes; then
1867   # We found a bogon in the path, so make sure we never use it.
1868   set dummy $ac_cv_prog_CC
1869   shift
1870   if test $@%:@ != 0; then
1871     # We chose a different compiler from the bogus one.
1872     # However, it has the same basename, so the bogon will be chosen
1873     # first if we set CC to just the basename; use the full file name.
1874     shift
1875     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1876   fi
1880 CC=$ac_cv_prog_CC
1881 if test -n "$CC"; then
1882   echo "$as_me:$LINENO: result: $CC" >&5
1883 echo "${ECHO_T}$CC" >&6
1884 else
1885   echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1890 if test -z "$CC"; then
1891   if test -n "$ac_tool_prefix"; then
1892   for ac_prog in cl
1893   do
1894     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_CC+set}" = set; then
1899   echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901   if test -n "$CC"; then
1902   ac_cv_prog_CC="$CC" # Let the user override the test.
1903 else
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1907   IFS=$as_save_IFS
1908   test -z "$as_dir" && as_dir=.
1909   for ac_exec_ext in '' $ac_executable_extensions; do
1910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913     break 2
1914   fi
1915 done
1916 done
1920 CC=$ac_cv_prog_CC
1921 if test -n "$CC"; then
1922   echo "$as_me:$LINENO: result: $CC" >&5
1923 echo "${ECHO_T}$CC" >&6
1924 else
1925   echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1929     test -n "$CC" && break
1930   done
1932 if test -z "$CC"; then
1933   ac_ct_CC=$CC
1934   for ac_prog in cl
1936   # Extract the first word of "$ac_prog", so it can be a program name with args.
1937 set dummy $ac_prog; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1941   echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943   if test -n "$ac_ct_CC"; then
1944   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1945 else
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1949   IFS=$as_save_IFS
1950   test -z "$as_dir" && as_dir=.
1951   for ac_exec_ext in '' $ac_executable_extensions; do
1952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953     ac_cv_prog_ac_ct_CC="$ac_prog"
1954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955     break 2
1956   fi
1957 done
1958 done
1962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1963 if test -n "$ac_ct_CC"; then
1964   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1965 echo "${ECHO_T}$ac_ct_CC" >&6
1966 else
1967   echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1971   test -n "$ac_ct_CC" && break
1972 done
1974   CC=$ac_ct_CC
1980 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1981 See \`config.log' for more details." >&5
1982 echo "$as_me: error: no acceptable C compiler found in \$PATH
1983 See \`config.log' for more details." >&2;}
1984    { (exit 1); exit 1; }; }
1986 # Provide some information about the compiler.
1987 echo "$as_me:$LINENO:" \
1988      "checking for C compiler version" >&5
1989 ac_compiler=`set X $ac_compile; echo $2`
1990 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1991   (eval $ac_compiler --version </dev/null >&5) 2>&5
1992   ac_status=$?
1993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994   (exit $ac_status); }
1995 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1996   (eval $ac_compiler -v </dev/null >&5) 2>&5
1997   ac_status=$?
1998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999   (exit $ac_status); }
2000 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2001   (eval $ac_compiler -V </dev/null >&5) 2>&5
2002   ac_status=$?
2003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004   (exit $ac_status); }
2006 cat >conftest.$ac_ext <<_ACEOF
2007 /* confdefs.h.  */
2008 _ACEOF
2009 cat confdefs.h >>conftest.$ac_ext
2010 cat >>conftest.$ac_ext <<_ACEOF
2011 /* end confdefs.h.  */
2014 main ()
2017   ;
2018   return 0;
2020 _ACEOF
2021 ac_clean_files_save=$ac_clean_files
2022 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2023 # Try to create an executable without -o first, disregard a.out.
2024 # It will help us diagnose broken compilers, and finding out an intuition
2025 # of exeext.
2026 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2027 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2028 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2029 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2030   (eval $ac_link_default) 2>&5
2031   ac_status=$?
2032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033   (exit $ac_status); }; then
2034   # Find the output, starting from the most likely.  This scheme is
2035 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2036 # resort.
2038 # Be careful to initialize this variable, since it used to be cached.
2039 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2040 ac_cv_exeext=
2041 # b.out is created by i960 compilers.
2042 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2044   test -f "$ac_file" || continue
2045   case $ac_file in
2046     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2047         ;;
2048     conftest.$ac_ext )
2049         # This is the source file.
2050         ;;
2051     [ab].out )
2052         # We found the default executable, but exeext='' is most
2053         # certainly right.
2054         break;;
2055     *.* )
2056         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2057         # FIXME: I believe we export ac_cv_exeext for Libtool,
2058         # but it would be cool to find out if it's true.  Does anybody
2059         # maintain Libtool? --akim.
2060         export ac_cv_exeext
2061         break;;
2062     * )
2063         break;;
2064   esac
2065 done
2066 else
2067   echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2070 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2071 See \`config.log' for more details." >&5
2072 echo "$as_me: error: C compiler cannot create executables
2073 See \`config.log' for more details." >&2;}
2074    { (exit 77); exit 77; }; }
2077 ac_exeext=$ac_cv_exeext
2078 echo "$as_me:$LINENO: result: $ac_file" >&5
2079 echo "${ECHO_T}$ac_file" >&6
2081 # Check the compiler produces executables we can run.  If not, either
2082 # the compiler is broken, or we cross compile.
2083 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2084 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2085 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2086 # If not cross compiling, check that we can run a simple program.
2087 if test "$cross_compiling" != yes; then
2088   if { ac_try='./$ac_file'
2089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090   (eval $ac_try) 2>&5
2091   ac_status=$?
2092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093   (exit $ac_status); }; }; then
2094     cross_compiling=no
2095   else
2096     if test "$cross_compiling" = maybe; then
2097         cross_compiling=yes
2098     else
2099         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2100 If you meant to cross compile, use \`--host'.
2101 See \`config.log' for more details." >&5
2102 echo "$as_me: error: cannot run C compiled programs.
2103 If you meant to cross compile, use \`--host'.
2104 See \`config.log' for more details." >&2;}
2105    { (exit 1); exit 1; }; }
2106     fi
2107   fi
2109 echo "$as_me:$LINENO: result: yes" >&5
2110 echo "${ECHO_T}yes" >&6
2112 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2113 ac_clean_files=$ac_clean_files_save
2114 # Check the compiler produces executables we can run.  If not, either
2115 # the compiler is broken, or we cross compile.
2116 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2117 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2118 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2119 echo "${ECHO_T}$cross_compiling" >&6
2121 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2122 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2124   (eval $ac_link) 2>&5
2125   ac_status=$?
2126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127   (exit $ac_status); }; then
2128   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2129 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2130 # work properly (i.e., refer to `conftest.exe'), while it won't with
2131 # `rm'.
2132 for ac_file in conftest.exe conftest conftest.*; do
2133   test -f "$ac_file" || continue
2134   case $ac_file in
2135     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2136     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2137           export ac_cv_exeext
2138           break;;
2139     * ) break;;
2140   esac
2141 done
2142 else
2143   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2144 See \`config.log' for more details." >&5
2145 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2146 See \`config.log' for more details." >&2;}
2147    { (exit 1); exit 1; }; }
2150 rm -f conftest$ac_cv_exeext
2151 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2152 echo "${ECHO_T}$ac_cv_exeext" >&6
2154 rm -f conftest.$ac_ext
2155 EXEEXT=$ac_cv_exeext
2156 ac_exeext=$EXEEXT
2157 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2158 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2159 if test "${ac_cv_objext+set}" = set; then
2160   echo $ECHO_N "(cached) $ECHO_C" >&6
2161 else
2162   cat >conftest.$ac_ext <<_ACEOF
2163 /* confdefs.h.  */
2164 _ACEOF
2165 cat confdefs.h >>conftest.$ac_ext
2166 cat >>conftest.$ac_ext <<_ACEOF
2167 /* end confdefs.h.  */
2170 main ()
2173   ;
2174   return 0;
2176 _ACEOF
2177 rm -f conftest.o conftest.obj
2178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179   (eval $ac_compile) 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }; then
2183   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2184   case $ac_file in
2185     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2186     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2187        break;;
2188   esac
2189 done
2190 else
2191   echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2194 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2195 See \`config.log' for more details." >&5
2196 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2197 See \`config.log' for more details." >&2;}
2198    { (exit 1); exit 1; }; }
2201 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2203 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2204 echo "${ECHO_T}$ac_cv_objext" >&6
2205 OBJEXT=$ac_cv_objext
2206 ac_objext=$OBJEXT
2207 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2208 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2209 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2210   echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212   cat >conftest.$ac_ext <<_ACEOF
2213 /* confdefs.h.  */
2214 _ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h.  */
2220 main ()
2222 #ifndef __GNUC__
2223        choke me
2224 #endif
2226   ;
2227   return 0;
2229 _ACEOF
2230 rm -f conftest.$ac_objext
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232   (eval $ac_compile) 2>conftest.er1
2233   ac_status=$?
2234   grep -v '^ *+' conftest.er1 >conftest.err
2235   rm -f conftest.er1
2236   cat conftest.err >&5
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); } &&
2239          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241   (eval $ac_try) 2>&5
2242   ac_status=$?
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); }; } &&
2245          { ac_try='test -s conftest.$ac_objext'
2246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247   (eval $ac_try) 2>&5
2248   ac_status=$?
2249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250   (exit $ac_status); }; }; then
2251   ac_compiler_gnu=yes
2252 else
2253   echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2256 ac_compiler_gnu=no
2258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2259 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2262 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2263 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2264 GCC=`test $ac_compiler_gnu = yes && echo yes`
2265 ac_test_CFLAGS=${CFLAGS+set}
2266 ac_save_CFLAGS=$CFLAGS
2267 CFLAGS="-g"
2268 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2269 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2270 if test "${ac_cv_prog_cc_g+set}" = set; then
2271   echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273   cat >conftest.$ac_ext <<_ACEOF
2274 /* confdefs.h.  */
2275 _ACEOF
2276 cat confdefs.h >>conftest.$ac_ext
2277 cat >>conftest.$ac_ext <<_ACEOF
2278 /* end confdefs.h.  */
2281 main ()
2284   ;
2285   return 0;
2287 _ACEOF
2288 rm -f conftest.$ac_objext
2289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290   (eval $ac_compile) 2>conftest.er1
2291   ac_status=$?
2292   grep -v '^ *+' conftest.er1 >conftest.err
2293   rm -f conftest.er1
2294   cat conftest.err >&5
2295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296   (exit $ac_status); } &&
2297          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299   (eval $ac_try) 2>&5
2300   ac_status=$?
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); }; } &&
2303          { ac_try='test -s conftest.$ac_objext'
2304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305   (eval $ac_try) 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }; }; then
2309   ac_cv_prog_cc_g=yes
2310 else
2311   echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2314 ac_cv_prog_cc_g=no
2316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2318 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2319 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2320 if test "$ac_test_CFLAGS" = set; then
2321   CFLAGS=$ac_save_CFLAGS
2322 elif test $ac_cv_prog_cc_g = yes; then
2323   if test "$GCC" = yes; then
2324     CFLAGS="-g -O2"
2325   else
2326     CFLAGS="-g"
2327   fi
2328 else
2329   if test "$GCC" = yes; then
2330     CFLAGS="-O2"
2331   else
2332     CFLAGS=
2333   fi
2335 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2336 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2337 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2338   echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340   ac_cv_prog_cc_stdc=no
2341 ac_save_CC=$CC
2342 cat >conftest.$ac_ext <<_ACEOF
2343 /* confdefs.h.  */
2344 _ACEOF
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h.  */
2348 #include <stdarg.h>
2349 #include <stdio.h>
2350 #include <sys/types.h>
2351 #include <sys/stat.h>
2352 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2353 struct buf { int x; };
2354 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2355 static char *e (p, i)
2356      char **p;
2357      int i;
2359   return p[i];
2361 static char *f (char * (*g) (char **, int), char **p, ...)
2363   char *s;
2364   va_list v;
2365   va_start (v,p);
2366   s = g (p, va_arg (v,int));
2367   va_end (v);
2368   return s;
2371 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2372    function prototypes and stuff, but not '\xHH' hex character constants.
2373    These don't provoke an error unfortunately, instead are silently treated
2374    as 'x'.  The following induces an error, until -std1 is added to get
2375    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2376    array size at least.  It's necessary to write '\x00'==0 to get something
2377    that's true only with -std1.  */
2378 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2380 int test (int i, double x);
2381 struct s1 {int (*f) (int a);};
2382 struct s2 {int (*f) (double a);};
2383 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2384 int argc;
2385 char **argv;
2387 main ()
2389 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2390   ;
2391   return 0;
2393 _ACEOF
2394 # Don't try gcc -ansi; that turns off useful extensions and
2395 # breaks some systems' header files.
2396 # AIX                   -qlanglvl=ansi
2397 # Ultrix and OSF/1      -std1
2398 # HP-UX 10.20 and later -Ae
2399 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2400 # SVR4                  -Xc -D__EXTENSIONS__
2401 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2403   CC="$ac_save_CC $ac_arg"
2404   rm -f conftest.$ac_objext
2405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406   (eval $ac_compile) 2>conftest.er1
2407   ac_status=$?
2408   grep -v '^ *+' conftest.er1 >conftest.err
2409   rm -f conftest.er1
2410   cat conftest.err >&5
2411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412   (exit $ac_status); } &&
2413          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415   (eval $ac_try) 2>&5
2416   ac_status=$?
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); }; } &&
2419          { ac_try='test -s conftest.$ac_objext'
2420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421   (eval $ac_try) 2>&5
2422   ac_status=$?
2423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424   (exit $ac_status); }; }; then
2425   ac_cv_prog_cc_stdc=$ac_arg
2426 break
2427 else
2428   echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.$ac_ext >&5
2432 rm -f conftest.err conftest.$ac_objext 
2433 done
2434 rm -f conftest.$ac_ext conftest.$ac_objext
2435 CC=$ac_save_CC
2439 case "x$ac_cv_prog_cc_stdc" in
2440   x|xno)
2441     echo "$as_me:$LINENO: result: none needed" >&5
2442 echo "${ECHO_T}none needed" >&6 ;;
2443   *)
2444     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2445 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2446     CC="$CC $ac_cv_prog_cc_stdc" ;;
2447 esac
2449 # Some people use a C++ compiler to compile C.  Since we use `exit',
2450 # in C++ we need to declare it.  In case someone uses the same compiler
2451 # for both compiling C and C++ we need to have the C++ compiler decide
2452 # the declaration of exit, since it's the most demanding environment.
2453 cat >conftest.$ac_ext <<_ACEOF
2454 @%:@ifndef __cplusplus
2455   choke me
2456 @%:@endif
2457 _ACEOF
2458 rm -f conftest.$ac_objext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460   (eval $ac_compile) 2>conftest.er1
2461   ac_status=$?
2462   grep -v '^ *+' conftest.er1 >conftest.err
2463   rm -f conftest.er1
2464   cat conftest.err >&5
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); } &&
2467          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469   (eval $ac_try) 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); }; } &&
2473          { ac_try='test -s conftest.$ac_objext'
2474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475   (eval $ac_try) 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); }; }; then
2479   for ac_declaration in \
2480    '' \
2481    'extern "C" void std::exit (int) throw (); using std::exit;' \
2482    'extern "C" void std::exit (int); using std::exit;' \
2483    'extern "C" void exit (int) throw ();' \
2484    'extern "C" void exit (int);' \
2485    'void exit (int);'
2487   cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493 $ac_declaration
2494 @%:@include <stdlib.h>
2496 main ()
2498 exit (42);
2499   ;
2500   return 0;
2502 _ACEOF
2503 rm -f conftest.$ac_objext
2504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505   (eval $ac_compile) 2>conftest.er1
2506   ac_status=$?
2507   grep -v '^ *+' conftest.er1 >conftest.err
2508   rm -f conftest.er1
2509   cat conftest.err >&5
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); } &&
2512          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514   (eval $ac_try) 2>&5
2515   ac_status=$?
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); }; } &&
2518          { ac_try='test -s conftest.$ac_objext'
2519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520   (eval $ac_try) 2>&5
2521   ac_status=$?
2522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523   (exit $ac_status); }; }; then
2524   :
2525 else
2526   echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2529 continue
2531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2532   cat >conftest.$ac_ext <<_ACEOF
2533 /* confdefs.h.  */
2534 _ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h.  */
2538 $ac_declaration
2540 main ()
2542 exit (42);
2543   ;
2544   return 0;
2546 _ACEOF
2547 rm -f conftest.$ac_objext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549   (eval $ac_compile) 2>conftest.er1
2550   ac_status=$?
2551   grep -v '^ *+' conftest.er1 >conftest.err
2552   rm -f conftest.er1
2553   cat conftest.err >&5
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); } &&
2556          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558   (eval $ac_try) 2>&5
2559   ac_status=$?
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); }; } &&
2562          { ac_try='test -s conftest.$ac_objext'
2563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564   (eval $ac_try) 2>&5
2565   ac_status=$?
2566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567   (exit $ac_status); }; }; then
2568   break
2569 else
2570   echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2575 done
2576 rm -f conftest*
2577 if test -n "$ac_declaration"; then
2578   echo '#ifdef __cplusplus' >>confdefs.h
2579   echo $ac_declaration      >>confdefs.h
2580   echo '#endif'             >>confdefs.h
2583 else
2584   echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2589 ac_ext=c
2590 ac_cpp='$CPP $CPPFLAGS'
2591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2597 echo "$as_me:$LINENO: checking for main in -le" >&5
2598 echo $ECHO_N "checking for main in -le... $ECHO_C" >&6
2599 if test "${ac_cv_lib_e_main+set}" = set; then
2600   echo $ECHO_N "(cached) $ECHO_C" >&6
2601 else
2602   ac_check_lib_save_LIBS=$LIBS
2603 LIBS="-le  $LIBS"
2604 cat >conftest.$ac_ext <<_ACEOF
2605 /* confdefs.h.  */
2606 _ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h.  */
2613 main ()
2615 main ();
2616   ;
2617   return 0;
2619 _ACEOF
2620 rm -f conftest.$ac_objext conftest$ac_exeext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2622   (eval $ac_link) 2>conftest.er1
2623   ac_status=$?
2624   grep -v '^ *+' conftest.er1 >conftest.err
2625   rm -f conftest.er1
2626   cat conftest.err >&5
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } &&
2629          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631   (eval $ac_try) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; } &&
2635          { ac_try='test -s conftest$ac_exeext'
2636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637   (eval $ac_try) 2>&5
2638   ac_status=$?
2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640   (exit $ac_status); }; }; then
2641   ac_cv_lib_e_main=yes
2642 else
2643   echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2646 ac_cv_lib_e_main=no
2648 rm -f conftest.err conftest.$ac_objext \
2649       conftest$ac_exeext conftest.$ac_ext
2650 LIBS=$ac_check_lib_save_LIBS
2652 echo "$as_me:$LINENO: result: $ac_cv_lib_e_main" >&5
2653 echo "${ECHO_T}$ac_cv_lib_e_main" >&6
2654 if test $ac_cv_lib_e_main = yes; then
2655   cat >>confdefs.h <<_ACEOF
2656 @%:@define HAVE_LIBE 1
2657 _ACEOF
2659   LIBS="-le $LIBS"
2663 ac_ext=c
2664 ac_cpp='$CPP $CPPFLAGS'
2665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2668 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2669 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2670 # On Suns, sometimes $CPP names a directory.
2671 if test -n "$CPP" && test -d "$CPP"; then
2672   CPP=
2674 if test -z "$CPP"; then
2675   if test "${ac_cv_prog_CPP+set}" = set; then
2676   echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678       # Double quotes because CPP needs to be expanded
2679     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2680     do
2681       ac_preproc_ok=false
2682 for ac_c_preproc_warn_flag in '' yes
2684   # Use a header file that comes with gcc, so configuring glibc
2685   # with a fresh cross-compiler works.
2686   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2687   # <limits.h> exists even on freestanding compilers.
2688   # On the NeXT, cc -E runs the code through the compiler's parser,
2689   # not just through cpp. "Syntax error" is here to catch this case.
2690   cat >conftest.$ac_ext <<_ACEOF
2691 /* confdefs.h.  */
2692 _ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h.  */
2696 @%:@ifdef __STDC__
2697 @%:@ include <limits.h>
2698 @%:@else
2699 @%:@ include <assert.h>
2700 @%:@endif
2701                      Syntax error
2702 _ACEOF
2703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2704   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2705   ac_status=$?
2706   grep -v '^ *+' conftest.er1 >conftest.err
2707   rm -f conftest.er1
2708   cat conftest.err >&5
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); } >/dev/null; then
2711   if test -s conftest.err; then
2712     ac_cpp_err=$ac_c_preproc_warn_flag
2713     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2714   else
2715     ac_cpp_err=
2716   fi
2717 else
2718   ac_cpp_err=yes
2720 if test -z "$ac_cpp_err"; then
2721   :
2722 else
2723   echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2726   # Broken: fails on valid input.
2727 continue
2729 rm -f conftest.err conftest.$ac_ext
2731   # OK, works on sane cases.  Now check whether non-existent headers
2732   # can be detected and how.
2733   cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h.  */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h.  */
2739 @%:@include <ac_nonexistent.h>
2740 _ACEOF
2741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2742   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2743   ac_status=$?
2744   grep -v '^ *+' conftest.er1 >conftest.err
2745   rm -f conftest.er1
2746   cat conftest.err >&5
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); } >/dev/null; then
2749   if test -s conftest.err; then
2750     ac_cpp_err=$ac_c_preproc_warn_flag
2751     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2752   else
2753     ac_cpp_err=
2754   fi
2755 else
2756   ac_cpp_err=yes
2758 if test -z "$ac_cpp_err"; then
2759   # Broken: success on invalid input.
2760 continue
2761 else
2762   echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2765   # Passes both tests.
2766 ac_preproc_ok=:
2767 break
2769 rm -f conftest.err conftest.$ac_ext
2771 done
2772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2773 rm -f conftest.err conftest.$ac_ext
2774 if $ac_preproc_ok; then
2775   break
2778     done
2779     ac_cv_prog_CPP=$CPP
2780   
2782   CPP=$ac_cv_prog_CPP
2783 else
2784   ac_cv_prog_CPP=$CPP
2786 echo "$as_me:$LINENO: result: $CPP" >&5
2787 echo "${ECHO_T}$CPP" >&6
2788 ac_preproc_ok=false
2789 for ac_c_preproc_warn_flag in '' yes
2791   # Use a header file that comes with gcc, so configuring glibc
2792   # with a fresh cross-compiler works.
2793   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2794   # <limits.h> exists even on freestanding compilers.
2795   # On the NeXT, cc -E runs the code through the compiler's parser,
2796   # not just through cpp. "Syntax error" is here to catch this case.
2797   cat >conftest.$ac_ext <<_ACEOF
2798 /* confdefs.h.  */
2799 _ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h.  */
2803 @%:@ifdef __STDC__
2804 @%:@ include <limits.h>
2805 @%:@else
2806 @%:@ include <assert.h>
2807 @%:@endif
2808                      Syntax error
2809 _ACEOF
2810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2811   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2812   ac_status=$?
2813   grep -v '^ *+' conftest.er1 >conftest.err
2814   rm -f conftest.er1
2815   cat conftest.err >&5
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); } >/dev/null; then
2818   if test -s conftest.err; then
2819     ac_cpp_err=$ac_c_preproc_warn_flag
2820     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2821   else
2822     ac_cpp_err=
2823   fi
2824 else
2825   ac_cpp_err=yes
2827 if test -z "$ac_cpp_err"; then
2828   :
2829 else
2830   echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2833   # Broken: fails on valid input.
2834 continue
2836 rm -f conftest.err conftest.$ac_ext
2838   # OK, works on sane cases.  Now check whether non-existent headers
2839   # can be detected and how.
2840   cat >conftest.$ac_ext <<_ACEOF
2841 /* confdefs.h.  */
2842 _ACEOF
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h.  */
2846 @%:@include <ac_nonexistent.h>
2847 _ACEOF
2848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2849   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2850   ac_status=$?
2851   grep -v '^ *+' conftest.er1 >conftest.err
2852   rm -f conftest.er1
2853   cat conftest.err >&5
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); } >/dev/null; then
2856   if test -s conftest.err; then
2857     ac_cpp_err=$ac_c_preproc_warn_flag
2858     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2859   else
2860     ac_cpp_err=
2861   fi
2862 else
2863   ac_cpp_err=yes
2865 if test -z "$ac_cpp_err"; then
2866   # Broken: success on invalid input.
2867 continue
2868 else
2869   echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2872   # Passes both tests.
2873 ac_preproc_ok=:
2874 break
2876 rm -f conftest.err conftest.$ac_ext
2878 done
2879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2880 rm -f conftest.err conftest.$ac_ext
2881 if $ac_preproc_ok; then
2882   :
2883 else
2884   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2885 See \`config.log' for more details." >&5
2886 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2887 See \`config.log' for more details." >&2;}
2888    { (exit 1); exit 1; }; }
2891 ac_ext=c
2892 ac_cpp='$CPP $CPPFLAGS'
2893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2899 if test "x$ac_path_x_has_been_run" != xyes; then
2900   echo "$as_me:$LINENO: checking for X" >&5
2901 echo $ECHO_N "checking for X... $ECHO_C" >&6
2903 ac_path_x_has_been_run=yes
2905 # Check whether --with-x or --without-x was given.
2906 if test "${with_x+set}" = set; then
2907   withval="$with_x"
2908   
2909 fi; 
2910 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2911 if test "x$with_x" = xno; then
2912   # The user explicitly disabled X.
2913   have_x=disabled
2914 else
2915   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2916     # Both variables are already set.
2917     have_x=yes
2918   else
2919     if test "${ac_cv_have_x+set}" = set; then
2920   echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922   # One or both of the vars are not set, and there is no cached value.
2923 ac_x_includes=no ac_x_libraries=no
2924 rm -fr conftest.dir
2925 if mkdir conftest.dir; then
2926   cd conftest.dir
2927   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2928   cat >Imakefile <<'_ACEOF'
2929 acfindx:
2930         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2931 _ACEOF
2932   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2933     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2934     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2935     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2936     for ac_extension in a so sl; do
2937       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2938          test -f $ac_im_libdir/libX11.$ac_extension; then
2939         ac_im_usrlibdir=$ac_im_libdir; break
2940       fi
2941     done
2942     # Screen out bogus values from the imake configuration.  They are
2943     # bogus both because they are the default anyway, and because
2944     # using them would break gcc on systems where it needs fixed includes.
2945     case $ac_im_incroot in
2946         /usr/include) ;;
2947         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2948     esac
2949     case $ac_im_usrlibdir in
2950         /usr/lib | /lib) ;;
2951         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2952     esac
2953   fi
2954   cd ..
2955   rm -fr conftest.dir
2958 # Standard set of common directories for X headers.
2959 # Check X11 before X11Rn because it is often a symlink to the current release.
2960 ac_x_header_dirs='
2961 /usr/X11/include
2962 /usr/X11R6/include
2963 /usr/X11R5/include
2964 /usr/X11R4/include
2966 /usr/include/X11
2967 /usr/include/X11R6
2968 /usr/include/X11R5
2969 /usr/include/X11R4
2971 /usr/local/X11/include
2972 /usr/local/X11R6/include
2973 /usr/local/X11R5/include
2974 /usr/local/X11R4/include
2976 /usr/local/include/X11
2977 /usr/local/include/X11R6
2978 /usr/local/include/X11R5
2979 /usr/local/include/X11R4
2981 /usr/X386/include
2982 /usr/x386/include
2983 /usr/XFree86/include/X11
2985 /usr/include
2986 /usr/local/include
2987 /usr/unsupported/include
2988 /usr/athena/include
2989 /usr/local/x11r5/include
2990 /usr/lpp/Xamples/include
2992 /usr/openwin/include
2993 /usr/openwin/share/include'
2995 if test "$ac_x_includes" = no; then
2996   # Guess where to find include files, by looking for a specified header file.
2997   # First, try using that file with no special directory specified.
2998   cat >conftest.$ac_ext <<_ACEOF
2999 /* confdefs.h.  */
3000 _ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h.  */
3004 @%:@include <X11/Xlib.h>
3005 _ACEOF
3006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3008   ac_status=$?
3009   grep -v '^ *+' conftest.er1 >conftest.err
3010   rm -f conftest.er1
3011   cat conftest.err >&5
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); } >/dev/null; then
3014   if test -s conftest.err; then
3015     ac_cpp_err=$ac_c_preproc_warn_flag
3016     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3017   else
3018     ac_cpp_err=
3019   fi
3020 else
3021   ac_cpp_err=yes
3023 if test -z "$ac_cpp_err"; then
3024   # We can compile using X headers with no special include directory.
3025 ac_x_includes=
3026 else
3027   echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3030   for ac_dir in $ac_x_header_dirs; do
3031   if test -r "$ac_dir/X11/Xlib.h"; then
3032     ac_x_includes=$ac_dir
3033     break
3034   fi
3035 done
3037 rm -f conftest.err conftest.$ac_ext
3038 fi # $ac_x_includes = no
3040 if test "$ac_x_libraries" = no; then
3041   # Check for the libraries.
3042   # See if we find them without any special options.
3043   # Don't add to $LIBS permanently.
3044   ac_save_LIBS=$LIBS
3045   LIBS="-lX11 $LIBS"
3046   cat >conftest.$ac_ext <<_ACEOF
3047 /* confdefs.h.  */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h.  */
3052 @%:@include <X11/Xlib.h>
3054 main ()
3056 XrmInitialize ()
3057   ;
3058   return 0;
3060 _ACEOF
3061 rm -f conftest.$ac_objext conftest$ac_exeext
3062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3063   (eval $ac_link) 2>conftest.er1
3064   ac_status=$?
3065   grep -v '^ *+' conftest.er1 >conftest.err
3066   rm -f conftest.er1
3067   cat conftest.err >&5
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } &&
3070          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072   (eval $ac_try) 2>&5
3073   ac_status=$?
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); }; } &&
3076          { ac_try='test -s conftest$ac_exeext'
3077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078   (eval $ac_try) 2>&5
3079   ac_status=$?
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); }; }; then
3082   LIBS=$ac_save_LIBS
3083 # We can link X programs with no special library path.
3084 ac_x_libraries=
3085 else
3086   echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3089 LIBS=$ac_save_LIBS
3090 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3092   # Don't even attempt the hair of trying to link an X program!
3093   for ac_extension in a so sl; do
3094     if test -r $ac_dir/libX11.$ac_extension; then
3095       ac_x_libraries=$ac_dir
3096       break 2
3097     fi
3098   done
3099 done
3101 rm -f conftest.err conftest.$ac_objext \
3102       conftest$ac_exeext conftest.$ac_ext
3103 fi # $ac_x_libraries = no
3105 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3106   # Didn't find X anywhere.  Cache the known absence of X.
3107   ac_cv_have_x="have_x=no"
3108 else
3109   # Record where we found X for the cache.
3110   ac_cv_have_x="have_x=yes \
3111                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3115   fi
3116   eval "$ac_cv_have_x"
3117 fi # $with_x != no
3119 if test "$have_x" != yes; then
3120   echo "$as_me:$LINENO: result: $have_x" >&5
3121 echo "${ECHO_T}$have_x" >&6
3122   no_x=yes
3123 else
3124   # If each of the values was on the command line, it overrides each guess.
3125   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3126   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3127   # Update the cache value to reflect the command line values.
3128   ac_cv_have_x="have_x=yes \
3129                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3130   # It might be that x_includes is empty (headers are found in the
3131   # standard search path. Then output the corresponding message
3132   ac_out_x_includes=$x_includes
3133   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3134   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3135 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3139 if test "$no_x" = yes; then
3140   # Not all programs may use this symbol, but it does not hurt to define it.
3141   
3142 cat >>confdefs.h <<\_ACEOF
3143 @%:@define X_DISPLAY_MISSING 1
3144 _ACEOF
3146   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3147 else
3148   if test -n "$x_includes"; then
3149     X_CFLAGS="$X_CFLAGS -I$x_includes"
3150   fi
3152   # It would also be nice to do this for all -L options, not just this one.
3153   if test -n "$x_libraries"; then
3154     X_LIBS="$X_LIBS -L$x_libraries"
3155     # For Solaris; some versions of Sun CC require a space after -R and
3156     # others require no space.  Words are not sufficient . . . .
3157     case `(uname -sr) 2>/dev/null` in
3158     "SunOS 5"*)
3159       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3160 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3161       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3162       cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h.  */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h.  */
3170 main ()
3173   ;
3174   return 0;
3176 _ACEOF
3177 rm -f conftest.$ac_objext conftest$ac_exeext
3178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3179   (eval $ac_link) 2>conftest.er1
3180   ac_status=$?
3181   grep -v '^ *+' conftest.er1 >conftest.err
3182   rm -f conftest.er1
3183   cat conftest.err >&5
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); } &&
3186          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188   (eval $ac_try) 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); }; } &&
3192          { ac_try='test -s conftest$ac_exeext'
3193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194   (eval $ac_try) 2>&5
3195   ac_status=$?
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); }; }; then
3198   ac_R_nospace=yes
3199 else
3200   echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3203 ac_R_nospace=no
3205 rm -f conftest.err conftest.$ac_objext \
3206       conftest$ac_exeext conftest.$ac_ext
3207       if test $ac_R_nospace = yes; then
3208         echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6
3210         X_LIBS="$X_LIBS -R$x_libraries"
3211       else
3212         LIBS="$ac_xsave_LIBS -R $x_libraries"
3213         cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h.  */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h.  */
3221 main ()
3224   ;
3225   return 0;
3227 _ACEOF
3228 rm -f conftest.$ac_objext conftest$ac_exeext
3229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3230   (eval $ac_link) 2>conftest.er1
3231   ac_status=$?
3232   grep -v '^ *+' conftest.er1 >conftest.err
3233   rm -f conftest.er1
3234   cat conftest.err >&5
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); } &&
3237          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239   (eval $ac_try) 2>&5
3240   ac_status=$?
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); }; } &&
3243          { ac_try='test -s conftest$ac_exeext'
3244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245   (eval $ac_try) 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); }; }; then
3249   ac_R_space=yes
3250 else
3251   echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3254 ac_R_space=no
3256 rm -f conftest.err conftest.$ac_objext \
3257       conftest$ac_exeext conftest.$ac_ext
3258         if test $ac_R_space = yes; then
3259           echo "$as_me:$LINENO: result: yes" >&5
3260 echo "${ECHO_T}yes" >&6
3261           X_LIBS="$X_LIBS -R $x_libraries"
3262         else
3263           echo "$as_me:$LINENO: result: neither works" >&5
3264 echo "${ECHO_T}neither works" >&6
3265         fi
3266       fi
3267       LIBS=$ac_xsave_LIBS
3268     esac
3269   fi
3271   # Check for system-dependent libraries X programs must link with.
3272   # Do this before checking for the system-independent R6 libraries
3273   # (-lICE), since we may need -lsocket or whatever for X linking.
3275   if test "$ISC" = yes; then
3276     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3277   else
3278     # Martyn Johnson says this is needed for Ultrix, if the X
3279     # libraries were built with DECnet support.  And Karl Berry says
3280     # the Alpha needs dnet_stub (dnet does not exist).
3281     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3282     cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h.  */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h.  */
3289 /* Override any gcc2 internal prototype to avoid an error.  */
3290 #ifdef __cplusplus
3291 extern "C"
3292 #endif
3293 /* We use char because int might match the return type of a gcc2
3294    builtin and then its argument prototype would still apply.  */
3295 char XOpenDisplay ();
3297 main ()
3299 XOpenDisplay ();
3300   ;
3301   return 0;
3303 _ACEOF
3304 rm -f conftest.$ac_objext conftest$ac_exeext
3305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3306   (eval $ac_link) 2>conftest.er1
3307   ac_status=$?
3308   grep -v '^ *+' conftest.er1 >conftest.err
3309   rm -f conftest.er1
3310   cat conftest.err >&5
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); } &&
3313          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315   (eval $ac_try) 2>&5
3316   ac_status=$?
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); }; } &&
3319          { ac_try='test -s conftest$ac_exeext'
3320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321   (eval $ac_try) 2>&5
3322   ac_status=$?
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); }; }; then
3325   :
3326 else
3327   echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3331 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3332 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3333   echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335   ac_check_lib_save_LIBS=$LIBS
3336 LIBS="-ldnet  $LIBS"
3337 cat >conftest.$ac_ext <<_ACEOF
3338 /* confdefs.h.  */
3339 _ACEOF
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h.  */
3344 /* Override any gcc2 internal prototype to avoid an error.  */
3345 #ifdef __cplusplus
3346 extern "C"
3347 #endif
3348 /* We use char because int might match the return type of a gcc2
3349    builtin and then its argument prototype would still apply.  */
3350 char dnet_ntoa ();
3352 main ()
3354 dnet_ntoa ();
3355   ;
3356   return 0;
3358 _ACEOF
3359 rm -f conftest.$ac_objext conftest$ac_exeext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3361   (eval $ac_link) 2>conftest.er1
3362   ac_status=$?
3363   grep -v '^ *+' conftest.er1 >conftest.err
3364   rm -f conftest.er1
3365   cat conftest.err >&5
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); } &&
3368          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370   (eval $ac_try) 2>&5
3371   ac_status=$?
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); }; } &&
3374          { ac_try='test -s conftest$ac_exeext'
3375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376   (eval $ac_try) 2>&5
3377   ac_status=$?
3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379   (exit $ac_status); }; }; then
3380   ac_cv_lib_dnet_dnet_ntoa=yes
3381 else
3382   echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3385 ac_cv_lib_dnet_dnet_ntoa=no
3387 rm -f conftest.err conftest.$ac_objext \
3388       conftest$ac_exeext conftest.$ac_ext
3389 LIBS=$ac_check_lib_save_LIBS
3391 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3392 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3393 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3394   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3397     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3398       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3399 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3400 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403   ac_check_lib_save_LIBS=$LIBS
3404 LIBS="-ldnet_stub  $LIBS"
3405 cat >conftest.$ac_ext <<_ACEOF
3406 /* confdefs.h.  */
3407 _ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h.  */
3412 /* Override any gcc2 internal prototype to avoid an error.  */
3413 #ifdef __cplusplus
3414 extern "C"
3415 #endif
3416 /* We use char because int might match the return type of a gcc2
3417    builtin and then its argument prototype would still apply.  */
3418 char dnet_ntoa ();
3420 main ()
3422 dnet_ntoa ();
3423   ;
3424   return 0;
3426 _ACEOF
3427 rm -f conftest.$ac_objext conftest$ac_exeext
3428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3429   (eval $ac_link) 2>conftest.er1
3430   ac_status=$?
3431   grep -v '^ *+' conftest.er1 >conftest.err
3432   rm -f conftest.er1
3433   cat conftest.err >&5
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); } &&
3436          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438   (eval $ac_try) 2>&5
3439   ac_status=$?
3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); }; } &&
3442          { ac_try='test -s conftest$ac_exeext'
3443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444   (eval $ac_try) 2>&5
3445   ac_status=$?
3446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447   (exit $ac_status); }; }; then
3448   ac_cv_lib_dnet_stub_dnet_ntoa=yes
3449 else
3450   echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3453 ac_cv_lib_dnet_stub_dnet_ntoa=no
3455 rm -f conftest.err conftest.$ac_objext \
3456       conftest$ac_exeext conftest.$ac_ext
3457 LIBS=$ac_check_lib_save_LIBS
3459 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3460 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3461 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3462   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3465     fi
3467 rm -f conftest.err conftest.$ac_objext \
3468       conftest$ac_exeext conftest.$ac_ext
3469     LIBS="$ac_xsave_LIBS"
3471     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3472     # to get the SysV transport functions.
3473     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3474     # needs -lnsl.
3475     # The nsl library prevents programs from opening the X display
3476     # on Irix 5.2, according to T.E. Dickey.
3477     # The functions gethostbyname, getservbyname, and inet_addr are
3478     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3479     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3480 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3481 if test "${ac_cv_func_gethostbyname+set}" = set; then
3482   echo $ECHO_N "(cached) $ECHO_C" >&6
3483 else
3484   cat >conftest.$ac_ext <<_ACEOF
3485 /* confdefs.h.  */
3486 _ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h.  */
3490 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3491    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3492 #define gethostbyname innocuous_gethostbyname
3494 /* System header to define __stub macros and hopefully few prototypes,
3495     which can conflict with char gethostbyname (); below.
3496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3497     <limits.h> exists even on freestanding compilers.  */
3499 #ifdef __STDC__
3500 # include <limits.h>
3501 #else
3502 # include <assert.h>
3503 #endif
3505 #undef gethostbyname
3507 /* Override any gcc2 internal prototype to avoid an error.  */
3508 #ifdef __cplusplus
3509 extern "C"
3511 #endif
3512 /* We use char because int might match the return type of a gcc2
3513    builtin and then its argument prototype would still apply.  */
3514 char gethostbyname ();
3515 /* The GNU C library defines this for functions which it implements
3516     to always fail with ENOSYS.  Some functions are actually named
3517     something starting with __ and the normal name is an alias.  */
3518 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3519 choke me
3520 #else
3521 char (*f) () = gethostbyname;
3522 #endif
3523 #ifdef __cplusplus
3525 #endif
3528 main ()
3530 return f != gethostbyname;
3531   ;
3532   return 0;
3534 _ACEOF
3535 rm -f conftest.$ac_objext conftest$ac_exeext
3536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3537   (eval $ac_link) 2>conftest.er1
3538   ac_status=$?
3539   grep -v '^ *+' conftest.er1 >conftest.err
3540   rm -f conftest.er1
3541   cat conftest.err >&5
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); } &&
3544          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546   (eval $ac_try) 2>&5
3547   ac_status=$?
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); }; } &&
3550          { ac_try='test -s conftest$ac_exeext'
3551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552   (eval $ac_try) 2>&5
3553   ac_status=$?
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); }; }; then
3556   ac_cv_func_gethostbyname=yes
3557 else
3558   echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3561 ac_cv_func_gethostbyname=no
3563 rm -f conftest.err conftest.$ac_objext \
3564       conftest$ac_exeext conftest.$ac_ext
3566 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3567 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3569     if test $ac_cv_func_gethostbyname = no; then
3570       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3571 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3572 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3573   echo $ECHO_N "(cached) $ECHO_C" >&6
3574 else
3575   ac_check_lib_save_LIBS=$LIBS
3576 LIBS="-lnsl  $LIBS"
3577 cat >conftest.$ac_ext <<_ACEOF
3578 /* confdefs.h.  */
3579 _ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h.  */
3584 /* Override any gcc2 internal prototype to avoid an error.  */
3585 #ifdef __cplusplus
3586 extern "C"
3587 #endif
3588 /* We use char because int might match the return type of a gcc2
3589    builtin and then its argument prototype would still apply.  */
3590 char gethostbyname ();
3592 main ()
3594 gethostbyname ();
3595   ;
3596   return 0;
3598 _ACEOF
3599 rm -f conftest.$ac_objext conftest$ac_exeext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3601   (eval $ac_link) 2>conftest.er1
3602   ac_status=$?
3603   grep -v '^ *+' conftest.er1 >conftest.err
3604   rm -f conftest.er1
3605   cat conftest.err >&5
3606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607   (exit $ac_status); } &&
3608          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610   (eval $ac_try) 2>&5
3611   ac_status=$?
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); }; } &&
3614          { ac_try='test -s conftest$ac_exeext'
3615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616   (eval $ac_try) 2>&5
3617   ac_status=$?
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); }; }; then
3620   ac_cv_lib_nsl_gethostbyname=yes
3621 else
3622   echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3625 ac_cv_lib_nsl_gethostbyname=no
3627 rm -f conftest.err conftest.$ac_objext \
3628       conftest$ac_exeext conftest.$ac_ext
3629 LIBS=$ac_check_lib_save_LIBS
3631 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3632 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3633 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3634   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3637       if test $ac_cv_lib_nsl_gethostbyname = no; then
3638         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3639 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3640 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3641   echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643   ac_check_lib_save_LIBS=$LIBS
3644 LIBS="-lbsd  $LIBS"
3645 cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h.  */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h.  */
3652 /* Override any gcc2 internal prototype to avoid an error.  */
3653 #ifdef __cplusplus
3654 extern "C"
3655 #endif
3656 /* We use char because int might match the return type of a gcc2
3657    builtin and then its argument prototype would still apply.  */
3658 char gethostbyname ();
3660 main ()
3662 gethostbyname ();
3663   ;
3664   return 0;
3666 _ACEOF
3667 rm -f conftest.$ac_objext conftest$ac_exeext
3668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3669   (eval $ac_link) 2>conftest.er1
3670   ac_status=$?
3671   grep -v '^ *+' conftest.er1 >conftest.err
3672   rm -f conftest.er1
3673   cat conftest.err >&5
3674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); } &&
3676          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678   (eval $ac_try) 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }; } &&
3682          { ac_try='test -s conftest$ac_exeext'
3683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684   (eval $ac_try) 2>&5
3685   ac_status=$?
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); }; }; then
3688   ac_cv_lib_bsd_gethostbyname=yes
3689 else
3690   echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3693 ac_cv_lib_bsd_gethostbyname=no
3695 rm -f conftest.err conftest.$ac_objext \
3696       conftest$ac_exeext conftest.$ac_ext
3697 LIBS=$ac_check_lib_save_LIBS
3699 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3700 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3701 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3702   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3705       fi
3706     fi
3708     # lieder@skyler.mavd.honeywell.com says without -lsocket,
3709     # socket/setsockopt and other routines are undefined under SCO ODT
3710     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
3711     # on later versions), says Simon Leinen: it contains gethostby*
3712     # variants that don't use the name server (or something).  -lsocket
3713     # must be given before -lnsl if both are needed.  We assume that
3714     # if connect needs -lnsl, so does gethostbyname.
3715     echo "$as_me:$LINENO: checking for connect" >&5
3716 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3717 if test "${ac_cv_func_connect+set}" = set; then
3718   echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720   cat >conftest.$ac_ext <<_ACEOF
3721 /* confdefs.h.  */
3722 _ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h.  */
3726 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3728 #define connect innocuous_connect
3730 /* System header to define __stub macros and hopefully few prototypes,
3731     which can conflict with char connect (); below.
3732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3733     <limits.h> exists even on freestanding compilers.  */
3735 #ifdef __STDC__
3736 # include <limits.h>
3737 #else
3738 # include <assert.h>
3739 #endif
3741 #undef connect
3743 /* Override any gcc2 internal prototype to avoid an error.  */
3744 #ifdef __cplusplus
3745 extern "C"
3747 #endif
3748 /* We use char because int might match the return type of a gcc2
3749    builtin and then its argument prototype would still apply.  */
3750 char connect ();
3751 /* The GNU C library defines this for functions which it implements
3752     to always fail with ENOSYS.  Some functions are actually named
3753     something starting with __ and the normal name is an alias.  */
3754 #if defined (__stub_connect) || defined (__stub___connect)
3755 choke me
3756 #else
3757 char (*f) () = connect;
3758 #endif
3759 #ifdef __cplusplus
3761 #endif
3764 main ()
3766 return f != connect;
3767   ;
3768   return 0;
3770 _ACEOF
3771 rm -f conftest.$ac_objext conftest$ac_exeext
3772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3773   (eval $ac_link) 2>conftest.er1
3774   ac_status=$?
3775   grep -v '^ *+' conftest.er1 >conftest.err
3776   rm -f conftest.er1
3777   cat conftest.err >&5
3778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779   (exit $ac_status); } &&
3780          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782   (eval $ac_try) 2>&5
3783   ac_status=$?
3784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785   (exit $ac_status); }; } &&
3786          { ac_try='test -s conftest$ac_exeext'
3787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788   (eval $ac_try) 2>&5
3789   ac_status=$?
3790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791   (exit $ac_status); }; }; then
3792   ac_cv_func_connect=yes
3793 else
3794   echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3797 ac_cv_func_connect=no
3799 rm -f conftest.err conftest.$ac_objext \
3800       conftest$ac_exeext conftest.$ac_ext
3802 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3803 echo "${ECHO_T}$ac_cv_func_connect" >&6
3805     if test $ac_cv_func_connect = no; then
3806       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3807 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3808 if test "${ac_cv_lib_socket_connect+set}" = set; then
3809   echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811   ac_check_lib_save_LIBS=$LIBS
3812 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3813 cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h.  */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h.  */
3820 /* Override any gcc2 internal prototype to avoid an error.  */
3821 #ifdef __cplusplus
3822 extern "C"
3823 #endif
3824 /* We use char because int might match the return type of a gcc2
3825    builtin and then its argument prototype would still apply.  */
3826 char connect ();
3828 main ()
3830 connect ();
3831   ;
3832   return 0;
3834 _ACEOF
3835 rm -f conftest.$ac_objext conftest$ac_exeext
3836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3837   (eval $ac_link) 2>conftest.er1
3838   ac_status=$?
3839   grep -v '^ *+' conftest.er1 >conftest.err
3840   rm -f conftest.er1
3841   cat conftest.err >&5
3842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843   (exit $ac_status); } &&
3844          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846   (eval $ac_try) 2>&5
3847   ac_status=$?
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); }; } &&
3850          { ac_try='test -s conftest$ac_exeext'
3851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852   (eval $ac_try) 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); }; }; then
3856   ac_cv_lib_socket_connect=yes
3857 else
3858   echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3861 ac_cv_lib_socket_connect=no
3863 rm -f conftest.err conftest.$ac_objext \
3864       conftest$ac_exeext conftest.$ac_ext
3865 LIBS=$ac_check_lib_save_LIBS
3867 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3868 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3869 if test $ac_cv_lib_socket_connect = yes; then
3870   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3873     fi
3875     # Guillermo Gomez says -lposix is necessary on A/UX.
3876     echo "$as_me:$LINENO: checking for remove" >&5
3877 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3878 if test "${ac_cv_func_remove+set}" = set; then
3879   echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881   cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h.  */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h.  */
3887 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
3888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3889 #define remove innocuous_remove
3891 /* System header to define __stub macros and hopefully few prototypes,
3892     which can conflict with char remove (); below.
3893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3894     <limits.h> exists even on freestanding compilers.  */
3896 #ifdef __STDC__
3897 # include <limits.h>
3898 #else
3899 # include <assert.h>
3900 #endif
3902 #undef remove
3904 /* Override any gcc2 internal prototype to avoid an error.  */
3905 #ifdef __cplusplus
3906 extern "C"
3908 #endif
3909 /* We use char because int might match the return type of a gcc2
3910    builtin and then its argument prototype would still apply.  */
3911 char remove ();
3912 /* The GNU C library defines this for functions which it implements
3913     to always fail with ENOSYS.  Some functions are actually named
3914     something starting with __ and the normal name is an alias.  */
3915 #if defined (__stub_remove) || defined (__stub___remove)
3916 choke me
3917 #else
3918 char (*f) () = remove;
3919 #endif
3920 #ifdef __cplusplus
3922 #endif
3925 main ()
3927 return f != remove;
3928   ;
3929   return 0;
3931 _ACEOF
3932 rm -f conftest.$ac_objext conftest$ac_exeext
3933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3934   (eval $ac_link) 2>conftest.er1
3935   ac_status=$?
3936   grep -v '^ *+' conftest.er1 >conftest.err
3937   rm -f conftest.er1
3938   cat conftest.err >&5
3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940   (exit $ac_status); } &&
3941          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943   (eval $ac_try) 2>&5
3944   ac_status=$?
3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); }; } &&
3947          { ac_try='test -s conftest$ac_exeext'
3948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949   (eval $ac_try) 2>&5
3950   ac_status=$?
3951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952   (exit $ac_status); }; }; then
3953   ac_cv_func_remove=yes
3954 else
3955   echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3958 ac_cv_func_remove=no
3960 rm -f conftest.err conftest.$ac_objext \
3961       conftest$ac_exeext conftest.$ac_ext
3963 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3964 echo "${ECHO_T}$ac_cv_func_remove" >&6
3966     if test $ac_cv_func_remove = no; then
3967       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3968 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3969 if test "${ac_cv_lib_posix_remove+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   ac_check_lib_save_LIBS=$LIBS
3973 LIBS="-lposix  $LIBS"
3974 cat >conftest.$ac_ext <<_ACEOF
3975 /* confdefs.h.  */
3976 _ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h.  */
3981 /* Override any gcc2 internal prototype to avoid an error.  */
3982 #ifdef __cplusplus
3983 extern "C"
3984 #endif
3985 /* We use char because int might match the return type of a gcc2
3986    builtin and then its argument prototype would still apply.  */
3987 char remove ();
3989 main ()
3991 remove ();
3992   ;
3993   return 0;
3995 _ACEOF
3996 rm -f conftest.$ac_objext conftest$ac_exeext
3997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3998   (eval $ac_link) 2>conftest.er1
3999   ac_status=$?
4000   grep -v '^ *+' conftest.er1 >conftest.err
4001   rm -f conftest.er1
4002   cat conftest.err >&5
4003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004   (exit $ac_status); } &&
4005          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007   (eval $ac_try) 2>&5
4008   ac_status=$?
4009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010   (exit $ac_status); }; } &&
4011          { ac_try='test -s conftest$ac_exeext'
4012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013   (eval $ac_try) 2>&5
4014   ac_status=$?
4015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016   (exit $ac_status); }; }; then
4017   ac_cv_lib_posix_remove=yes
4018 else
4019   echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4022 ac_cv_lib_posix_remove=no
4024 rm -f conftest.err conftest.$ac_objext \
4025       conftest$ac_exeext conftest.$ac_ext
4026 LIBS=$ac_check_lib_save_LIBS
4028 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4029 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4030 if test $ac_cv_lib_posix_remove = yes; then
4031   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4034     fi
4036     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4037     echo "$as_me:$LINENO: checking for shmat" >&5
4038 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4039 if test "${ac_cv_func_shmat+set}" = set; then
4040   echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042   cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h.  */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h.  */
4048 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4050 #define shmat innocuous_shmat
4052 /* System header to define __stub macros and hopefully few prototypes,
4053     which can conflict with char shmat (); below.
4054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4055     <limits.h> exists even on freestanding compilers.  */
4057 #ifdef __STDC__
4058 # include <limits.h>
4059 #else
4060 # include <assert.h>
4061 #endif
4063 #undef shmat
4065 /* Override any gcc2 internal prototype to avoid an error.  */
4066 #ifdef __cplusplus
4067 extern "C"
4069 #endif
4070 /* We use char because int might match the return type of a gcc2
4071    builtin and then its argument prototype would still apply.  */
4072 char shmat ();
4073 /* The GNU C library defines this for functions which it implements
4074     to always fail with ENOSYS.  Some functions are actually named
4075     something starting with __ and the normal name is an alias.  */
4076 #if defined (__stub_shmat) || defined (__stub___shmat)
4077 choke me
4078 #else
4079 char (*f) () = shmat;
4080 #endif
4081 #ifdef __cplusplus
4083 #endif
4086 main ()
4088 return f != shmat;
4089   ;
4090   return 0;
4092 _ACEOF
4093 rm -f conftest.$ac_objext conftest$ac_exeext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4095   (eval $ac_link) 2>conftest.er1
4096   ac_status=$?
4097   grep -v '^ *+' conftest.er1 >conftest.err
4098   rm -f conftest.er1
4099   cat conftest.err >&5
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); } &&
4102          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104   (eval $ac_try) 2>&5
4105   ac_status=$?
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); }; } &&
4108          { ac_try='test -s conftest$ac_exeext'
4109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110   (eval $ac_try) 2>&5
4111   ac_status=$?
4112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); }; }; then
4114   ac_cv_func_shmat=yes
4115 else
4116   echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4119 ac_cv_func_shmat=no
4121 rm -f conftest.err conftest.$ac_objext \
4122       conftest$ac_exeext conftest.$ac_ext
4124 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4125 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4127     if test $ac_cv_func_shmat = no; then
4128       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4129 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4130 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4131   echo $ECHO_N "(cached) $ECHO_C" >&6
4132 else
4133   ac_check_lib_save_LIBS=$LIBS
4134 LIBS="-lipc  $LIBS"
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h.  */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h.  */
4142 /* Override any gcc2 internal prototype to avoid an error.  */
4143 #ifdef __cplusplus
4144 extern "C"
4145 #endif
4146 /* We use char because int might match the return type of a gcc2
4147    builtin and then its argument prototype would still apply.  */
4148 char shmat ();
4150 main ()
4152 shmat ();
4153   ;
4154   return 0;
4156 _ACEOF
4157 rm -f conftest.$ac_objext conftest$ac_exeext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159   (eval $ac_link) 2>conftest.er1
4160   ac_status=$?
4161   grep -v '^ *+' conftest.er1 >conftest.err
4162   rm -f conftest.er1
4163   cat conftest.err >&5
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); } &&
4166          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168   (eval $ac_try) 2>&5
4169   ac_status=$?
4170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171   (exit $ac_status); }; } &&
4172          { ac_try='test -s conftest$ac_exeext'
4173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174   (eval $ac_try) 2>&5
4175   ac_status=$?
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); }; }; then
4178   ac_cv_lib_ipc_shmat=yes
4179 else
4180   echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 ac_cv_lib_ipc_shmat=no
4185 rm -f conftest.err conftest.$ac_objext \
4186       conftest$ac_exeext conftest.$ac_ext
4187 LIBS=$ac_check_lib_save_LIBS
4189 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4190 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4191 if test $ac_cv_lib_ipc_shmat = yes; then
4192   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4195     fi
4196   fi
4198   # Check for libraries that X11R6 Xt/Xaw programs need.
4199   ac_save_LDFLAGS=$LDFLAGS
4200   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4201   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4202   # check for ICE first), but we must link in the order -lSM -lICE or
4203   # we get undefined symbols.  So assume we have SM if we have ICE.
4204   # These have to be linked with before -lX11, unlike the other
4205   # libraries we check for below, so use a different variable.
4206   # John Interrante, Karl Berry
4207   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4208 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4209 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4210   echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212   ac_check_lib_save_LIBS=$LIBS
4213 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4214 cat >conftest.$ac_ext <<_ACEOF
4215 /* confdefs.h.  */
4216 _ACEOF
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h.  */
4221 /* Override any gcc2 internal prototype to avoid an error.  */
4222 #ifdef __cplusplus
4223 extern "C"
4224 #endif
4225 /* We use char because int might match the return type of a gcc2
4226    builtin and then its argument prototype would still apply.  */
4227 char IceConnectionNumber ();
4229 main ()
4231 IceConnectionNumber ();
4232   ;
4233   return 0;
4235 _ACEOF
4236 rm -f conftest.$ac_objext conftest$ac_exeext
4237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4238   (eval $ac_link) 2>conftest.er1
4239   ac_status=$?
4240   grep -v '^ *+' conftest.er1 >conftest.err
4241   rm -f conftest.er1
4242   cat conftest.err >&5
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); } &&
4245          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247   (eval $ac_try) 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_ICE_IceConnectionNumber=yes
4258 else
4259   echo "$as_me: failed program was:" >&5
4260 sed 's/^/| /' conftest.$ac_ext >&5
4262 ac_cv_lib_ICE_IceConnectionNumber=no
4264 rm -f conftest.err conftest.$ac_objext \
4265       conftest$ac_exeext conftest.$ac_ext
4266 LIBS=$ac_check_lib_save_LIBS
4268 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4269 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4270 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4271   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4274   LDFLAGS=$ac_save_LDFLAGS
4278 echo "$as_me:$LINENO: checking for X" >&5
4279 echo $ECHO_N "checking for X... $ECHO_C" >&6
4281 ac_path_x_has_been_run=yes
4283 # Check whether --with-x or --without-x was given.
4284 if test "${with_x+set}" = set; then
4285   withval="$with_x"
4286   
4287 fi; 
4288 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4289 if test "x$with_x" = xno; then
4290   # The user explicitly disabled X.
4291   have_x=disabled
4292 else
4293   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4294     # Both variables are already set.
4295     have_x=yes
4296   else
4297     if test "${ac_cv_have_x+set}" = set; then
4298   echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300   # One or both of the vars are not set, and there is no cached value.
4301 ac_x_includes=no ac_x_libraries=no
4302 rm -fr conftest.dir
4303 if mkdir conftest.dir; then
4304   cd conftest.dir
4305   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4306   cat >Imakefile <<'_ACEOF'
4307 acfindx:
4308         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4309 _ACEOF
4310   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4311     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4312     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4313     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4314     for ac_extension in a so sl; do
4315       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4316          test -f $ac_im_libdir/libX11.$ac_extension; then
4317         ac_im_usrlibdir=$ac_im_libdir; break
4318       fi
4319     done
4320     # Screen out bogus values from the imake configuration.  They are
4321     # bogus both because they are the default anyway, and because
4322     # using them would break gcc on systems where it needs fixed includes.
4323     case $ac_im_incroot in
4324         /usr/include) ;;
4325         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4326     esac
4327     case $ac_im_usrlibdir in
4328         /usr/lib | /lib) ;;
4329         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4330     esac
4331   fi
4332   cd ..
4333   rm -fr conftest.dir
4336 # Standard set of common directories for X headers.
4337 # Check X11 before X11Rn because it is often a symlink to the current release.
4338 ac_x_header_dirs='
4339 /usr/X11/include
4340 /usr/X11R6/include
4341 /usr/X11R5/include
4342 /usr/X11R4/include
4344 /usr/include/X11
4345 /usr/include/X11R6
4346 /usr/include/X11R5
4347 /usr/include/X11R4
4349 /usr/local/X11/include
4350 /usr/local/X11R6/include
4351 /usr/local/X11R5/include
4352 /usr/local/X11R4/include
4354 /usr/local/include/X11
4355 /usr/local/include/X11R6
4356 /usr/local/include/X11R5
4357 /usr/local/include/X11R4
4359 /usr/X386/include
4360 /usr/x386/include
4361 /usr/XFree86/include/X11
4363 /usr/include
4364 /usr/local/include
4365 /usr/unsupported/include
4366 /usr/athena/include
4367 /usr/local/x11r5/include
4368 /usr/lpp/Xamples/include
4370 /usr/openwin/include
4371 /usr/openwin/share/include'
4373 if test "$ac_x_includes" = no; then
4374   # Guess where to find include files, by looking for a specified header file.
4375   # First, try using that file with no special directory specified.
4376   cat >conftest.$ac_ext <<_ACEOF
4377 /* confdefs.h.  */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h.  */
4382 @%:@include <X11/Xlib.h>
4383 _ACEOF
4384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4385   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4386   ac_status=$?
4387   grep -v '^ *+' conftest.er1 >conftest.err
4388   rm -f conftest.er1
4389   cat conftest.err >&5
4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); } >/dev/null; then
4392   if test -s conftest.err; then
4393     ac_cpp_err=$ac_c_preproc_warn_flag
4394     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4395   else
4396     ac_cpp_err=
4397   fi
4398 else
4399   ac_cpp_err=yes
4401 if test -z "$ac_cpp_err"; then
4402   # We can compile using X headers with no special include directory.
4403 ac_x_includes=
4404 else
4405   echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4408   for ac_dir in $ac_x_header_dirs; do
4409   if test -r "$ac_dir/X11/Xlib.h"; then
4410     ac_x_includes=$ac_dir
4411     break
4412   fi
4413 done
4415 rm -f conftest.err conftest.$ac_ext
4416 fi # $ac_x_includes = no
4418 if test "$ac_x_libraries" = no; then
4419   # Check for the libraries.
4420   # See if we find them without any special options.
4421   # Don't add to $LIBS permanently.
4422   ac_save_LIBS=$LIBS
4423   LIBS="-lX11 $LIBS"
4424   cat >conftest.$ac_ext <<_ACEOF
4425 /* confdefs.h.  */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h.  */
4430 @%:@include <X11/Xlib.h>
4432 main ()
4434 XrmInitialize ()
4435   ;
4436   return 0;
4438 _ACEOF
4439 rm -f conftest.$ac_objext conftest$ac_exeext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4441   (eval $ac_link) 2>conftest.er1
4442   ac_status=$?
4443   grep -v '^ *+' conftest.er1 >conftest.err
4444   rm -f conftest.er1
4445   cat conftest.err >&5
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); } &&
4448          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450   (eval $ac_try) 2>&5
4451   ac_status=$?
4452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453   (exit $ac_status); }; } &&
4454          { ac_try='test -s conftest$ac_exeext'
4455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456   (eval $ac_try) 2>&5
4457   ac_status=$?
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); }; }; then
4460   LIBS=$ac_save_LIBS
4461 # We can link X programs with no special library path.
4462 ac_x_libraries=
4463 else
4464   echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 LIBS=$ac_save_LIBS
4468 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4470   # Don't even attempt the hair of trying to link an X program!
4471   for ac_extension in a so sl; do
4472     if test -r $ac_dir/libX11.$ac_extension; then
4473       ac_x_libraries=$ac_dir
4474       break 2
4475     fi
4476   done
4477 done
4479 rm -f conftest.err conftest.$ac_objext \
4480       conftest$ac_exeext conftest.$ac_ext
4481 fi # $ac_x_libraries = no
4483 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4484   # Didn't find X anywhere.  Cache the known absence of X.
4485   ac_cv_have_x="have_x=no"
4486 else
4487   # Record where we found X for the cache.
4488   ac_cv_have_x="have_x=yes \
4489                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4493   fi
4494   eval "$ac_cv_have_x"
4495 fi # $with_x != no
4497 if test "$have_x" != yes; then
4498   echo "$as_me:$LINENO: result: $have_x" >&5
4499 echo "${ECHO_T}$have_x" >&6
4500   no_x=yes
4501 else
4502   # If each of the values was on the command line, it overrides each guess.
4503   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4504   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4505   # Update the cache value to reflect the command line values.
4506   ac_cv_have_x="have_x=yes \
4507                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4508   # It might be that x_includes is empty (headers are found in the
4509   # standard search path. Then output the corresponding message
4510   ac_out_x_includes=$x_includes
4511   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
4512   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
4513 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
4516 CFLAGS="$X_CFLAGS $X_LIBS"
4518 echo "$as_me:$LINENO: checking for XCopyArea in -lX11" >&5
4519 echo $ECHO_N "checking for XCopyArea in -lX11... $ECHO_C" >&6
4520 if test "${ac_cv_lib_X11_XCopyArea+set}" = set; then
4521   echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523   ac_check_lib_save_LIBS=$LIBS
4524 LIBS="-lX11 $X_LIBS $LIBS"
4525 cat >conftest.$ac_ext <<_ACEOF
4526 /* confdefs.h.  */
4527 _ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h.  */
4532 /* Override any gcc2 internal prototype to avoid an error.  */
4533 #ifdef __cplusplus
4534 extern "C"
4535 #endif
4536 /* We use char because int might match the return type of a gcc2
4537    builtin and then its argument prototype would still apply.  */
4538 char XCopyArea ();
4540 main ()
4542 XCopyArea ();
4543   ;
4544   return 0;
4546 _ACEOF
4547 rm -f conftest.$ac_objext conftest$ac_exeext
4548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4549   (eval $ac_link) 2>conftest.er1
4550   ac_status=$?
4551   grep -v '^ *+' conftest.er1 >conftest.err
4552   rm -f conftest.er1
4553   cat conftest.err >&5
4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); } &&
4556          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558   (eval $ac_try) 2>&5
4559   ac_status=$?
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); }; } &&
4562          { ac_try='test -s conftest$ac_exeext'
4563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564   (eval $ac_try) 2>&5
4565   ac_status=$?
4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); }; }; then
4568   ac_cv_lib_X11_XCopyArea=yes
4569 else
4570   echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4573 ac_cv_lib_X11_XCopyArea=no
4575 rm -f conftest.err conftest.$ac_objext \
4576       conftest$ac_exeext conftest.$ac_ext
4577 LIBS=$ac_check_lib_save_LIBS
4579 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XCopyArea" >&5
4580 echo "${ECHO_T}$ac_cv_lib_X11_XCopyArea" >&6
4581 if test $ac_cv_lib_X11_XCopyArea = yes; then
4582   cat >>confdefs.h <<_ACEOF
4583 @%:@define HAVE_LIBX11 1
4584 _ACEOF
4586   LIBS="-lX11 $LIBS"
4591 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
4592 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
4593 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596   ac_check_lib_save_LIBS=$LIBS
4597 LIBS="-lXext $X_LIBS $LIBS"
4598 cat >conftest.$ac_ext <<_ACEOF
4599 /* confdefs.h.  */
4600 _ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h.  */
4605 /* Override any gcc2 internal prototype to avoid an error.  */
4606 #ifdef __cplusplus
4607 extern "C"
4608 #endif
4609 /* We use char because int might match the return type of a gcc2
4610    builtin and then its argument prototype would still apply.  */
4611 char XShapeCombineMask ();
4613 main ()
4615 XShapeCombineMask ();
4616   ;
4617   return 0;
4619 _ACEOF
4620 rm -f conftest.$ac_objext conftest$ac_exeext
4621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4622   (eval $ac_link) 2>conftest.er1
4623   ac_status=$?
4624   grep -v '^ *+' conftest.er1 >conftest.err
4625   rm -f conftest.er1
4626   cat conftest.err >&5
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); } &&
4629          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631   (eval $ac_try) 2>&5
4632   ac_status=$?
4633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634   (exit $ac_status); }; } &&
4635          { ac_try='test -s conftest$ac_exeext'
4636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637   (eval $ac_try) 2>&5
4638   ac_status=$?
4639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640   (exit $ac_status); }; }; then
4641   ac_cv_lib_Xext_XShapeCombineMask=yes
4642 else
4643   echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4646 ac_cv_lib_Xext_XShapeCombineMask=no
4648 rm -f conftest.err conftest.$ac_objext \
4649       conftest$ac_exeext conftest.$ac_ext
4650 LIBS=$ac_check_lib_save_LIBS
4652 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
4653 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
4654 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
4655   cat >>confdefs.h <<_ACEOF
4656 @%:@define HAVE_LIBXEXT 1
4657 _ACEOF
4659   LIBS="-lXext $LIBS"
4664 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
4665 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
4666 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
4667   echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669   ac_check_lib_save_LIBS=$LIBS
4670 LIBS="-lXpm $X_LIBS $LIBS"
4671 cat >conftest.$ac_ext <<_ACEOF
4672 /* confdefs.h.  */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h.  */
4678 /* Override any gcc2 internal prototype to avoid an error.  */
4679 #ifdef __cplusplus
4680 extern "C"
4681 #endif
4682 /* We use char because int might match the return type of a gcc2
4683    builtin and then its argument prototype would still apply.  */
4684 char XpmCreatePixmapFromData ();
4686 main ()
4688 XpmCreatePixmapFromData ();
4689   ;
4690   return 0;
4692 _ACEOF
4693 rm -f conftest.$ac_objext conftest$ac_exeext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4695   (eval $ac_link) 2>conftest.er1
4696   ac_status=$?
4697   grep -v '^ *+' conftest.er1 >conftest.err
4698   rm -f conftest.er1
4699   cat conftest.err >&5
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); } &&
4702          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704   (eval $ac_try) 2>&5
4705   ac_status=$?
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); }; } &&
4708          { ac_try='test -s conftest$ac_exeext'
4709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710   (eval $ac_try) 2>&5
4711   ac_status=$?
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); }; }; then
4714   ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
4715 else
4716   echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4719 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
4721 rm -f conftest.err conftest.$ac_objext \
4722       conftest$ac_exeext conftest.$ac_ext
4723 LIBS=$ac_check_lib_save_LIBS
4725 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
4726 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
4727 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
4728   cat >>confdefs.h <<_ACEOF
4729 @%:@define HAVE_LIBXPM 1
4730 _ACEOF
4732   LIBS="-lXpm $LIBS"
4736 echo "$as_me:$LINENO: checking for egrep" >&5
4737 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4738 if test "${ac_cv_prog_egrep+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4742     then ac_cv_prog_egrep='grep -E'
4743     else ac_cv_prog_egrep='egrep'
4744     fi
4746 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4747 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4748  EGREP=$ac_cv_prog_egrep
4751 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4752 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4753 if test "${ac_cv_header_stdc+set}" = set; then
4754   echo $ECHO_N "(cached) $ECHO_C" >&6
4755 else
4756   cat >conftest.$ac_ext <<_ACEOF
4757 /* confdefs.h.  */
4758 _ACEOF
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h.  */
4762 #include <stdlib.h>
4763 #include <stdarg.h>
4764 #include <string.h>
4765 #include <float.h>
4768 main ()
4771   ;
4772   return 0;
4774 _ACEOF
4775 rm -f conftest.$ac_objext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777   (eval $ac_compile) 2>conftest.er1
4778   ac_status=$?
4779   grep -v '^ *+' conftest.er1 >conftest.err
4780   rm -f conftest.er1
4781   cat conftest.err >&5
4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783   (exit $ac_status); } &&
4784          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786   (eval $ac_try) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); }; } &&
4790          { ac_try='test -s conftest.$ac_objext'
4791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792   (eval $ac_try) 2>&5
4793   ac_status=$?
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); }; }; then
4796   ac_cv_header_stdc=yes
4797 else
4798   echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4801 ac_cv_header_stdc=no
4803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4805 if test $ac_cv_header_stdc = yes; then
4806   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4807   cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h.  */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h.  */
4813 #include <string.h>
4815 _ACEOF
4816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4817   $EGREP "memchr" >/dev/null 2>&1; then
4818   :
4819 else
4820   ac_cv_header_stdc=no
4822 rm -f conftest*
4826 if test $ac_cv_header_stdc = yes; then
4827   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4828   cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h.  */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h.  */
4834 #include <stdlib.h>
4836 _ACEOF
4837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4838   $EGREP "free" >/dev/null 2>&1; then
4839   :
4840 else
4841   ac_cv_header_stdc=no
4843 rm -f conftest*
4847 if test $ac_cv_header_stdc = yes; then
4848   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4849   if test "$cross_compiling" = yes; then
4850   :
4851 else
4852   cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h.  */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h.  */
4858 #include <ctype.h>
4859 #if ((' ' & 0x0FF) == 0x020)
4860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4862 #else
4863 # define ISLOWER(c) \
4864                    (('a' <= (c) && (c) <= 'i') \
4865                      || ('j' <= (c) && (c) <= 'r') \
4866                      || ('s' <= (c) && (c) <= 'z'))
4867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4868 #endif
4870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4872 main ()
4874   int i;
4875   for (i = 0; i < 256; i++)
4876     if (XOR (islower (i), ISLOWER (i))
4877         || toupper (i) != TOUPPER (i))
4878       exit(2);
4879   exit (0);
4881 _ACEOF
4882 rm -f conftest$ac_exeext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4884   (eval $ac_link) 2>&5
4885   ac_status=$?
4886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889   (eval $ac_try) 2>&5
4890   ac_status=$?
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); }; }; then
4893   :
4894 else
4895   echo "$as_me: program exited with status $ac_status" >&5
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4899 ( exit $ac_status )
4900 ac_cv_header_stdc=no
4902 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4906 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4907 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4908 if test $ac_cv_header_stdc = yes; then
4909   
4910 cat >>confdefs.h <<\_ACEOF
4911 @%:@define STDC_HEADERS 1
4912 _ACEOF
4916 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4926 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4927                   inttypes.h stdint.h unistd.h
4929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4930 echo "$as_me:$LINENO: checking for $ac_header" >&5
4931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4933   echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935   cat >conftest.$ac_ext <<_ACEOF
4936 /* confdefs.h.  */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h.  */
4941 $ac_includes_default
4943 @%:@include <$ac_header>
4944 _ACEOF
4945 rm -f conftest.$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947   (eval $ac_compile) 2>conftest.er1
4948   ac_status=$?
4949   grep -v '^ *+' conftest.er1 >conftest.err
4950   rm -f conftest.er1
4951   cat conftest.err >&5
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); } &&
4954          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956   (eval $ac_try) 2>&5
4957   ac_status=$?
4958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959   (exit $ac_status); }; } &&
4960          { ac_try='test -s conftest.$ac_objext'
4961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962   (eval $ac_try) 2>&5
4963   ac_status=$?
4964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965   (exit $ac_status); }; }; then
4966   eval "$as_ac_Header=yes"
4967 else
4968   echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4971 eval "$as_ac_Header=no"
4973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4978   cat >>confdefs.h <<_ACEOF
4979 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4980 _ACEOF
4984 done
4987 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
4988   echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
4989 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
4990 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
4991   echo $ECHO_N "(cached) $ECHO_C" >&6
4993 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
4994 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
4995 else
4996   # Is the header compilable?
4997 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
4998 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
4999 cat >conftest.$ac_ext <<_ACEOF
5000 /* confdefs.h.  */
5001 _ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h.  */
5005 $ac_includes_default
5006 @%:@include <X11/xpm.h>
5007 _ACEOF
5008 rm -f conftest.$ac_objext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010   (eval $ac_compile) 2>conftest.er1
5011   ac_status=$?
5012   grep -v '^ *+' conftest.er1 >conftest.err
5013   rm -f conftest.er1
5014   cat conftest.err >&5
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); } &&
5017          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019   (eval $ac_try) 2>&5
5020   ac_status=$?
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); }; } &&
5023          { ac_try='test -s conftest.$ac_objext'
5024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025   (eval $ac_try) 2>&5
5026   ac_status=$?
5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); }; }; then
5029   ac_header_compiler=yes
5030 else
5031   echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5034 ac_header_compiler=no
5036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5038 echo "${ECHO_T}$ac_header_compiler" >&6
5040 # Is the header present?
5041 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
5042 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
5043 cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h.  */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h.  */
5049 @%:@include <X11/xpm.h>
5050 _ACEOF
5051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5053   ac_status=$?
5054   grep -v '^ *+' conftest.er1 >conftest.err
5055   rm -f conftest.er1
5056   cat conftest.err >&5
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); } >/dev/null; then
5059   if test -s conftest.err; then
5060     ac_cpp_err=$ac_c_preproc_warn_flag
5061     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5062   else
5063     ac_cpp_err=
5064   fi
5065 else
5066   ac_cpp_err=yes
5068 if test -z "$ac_cpp_err"; then
5069   ac_header_preproc=yes
5070 else
5071   echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5074   ac_header_preproc=no
5076 rm -f conftest.err conftest.$ac_ext
5077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5078 echo "${ECHO_T}$ac_header_preproc" >&6
5080 # So?  What about this header?
5081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5082   yes:no: )
5083     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
5084 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5085     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
5086 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
5087     ac_header_preproc=yes
5088     ;;
5089   no:yes:* )
5090     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
5091 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
5092     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&5
5093 echo "$as_me: WARNING: X11/xpm.h:     check for missing prerequisite headers?" >&2;}
5094     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
5095 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
5096     { echo "$as_me:$LINENO: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&5
5097 echo "$as_me: WARNING: X11/xpm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5098     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
5099 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
5100     { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
5101 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
5102     (
5103       cat <<\_ASBOX
5104 @%:@@%:@ ------------------------------------------ @%:@@%:@
5105 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
5106 @%:@@%:@ ------------------------------------------ @%:@@%:@
5107 _ASBOX
5108     ) |
5109       sed "s/^/$as_me: WARNING:     /" >&2
5110     ;;
5111 esac
5112 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
5113 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
5114 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
5115   echo $ECHO_N "(cached) $ECHO_C" >&6
5116 else
5117   ac_cv_header_X11_xpm_h=$ac_header_preproc
5119 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
5120 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
5125 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5126 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5127 if test "${ac_cv_header_stdc+set}" = set; then
5128   echo $ECHO_N "(cached) $ECHO_C" >&6
5129 else
5130   cat >conftest.$ac_ext <<_ACEOF
5131 /* confdefs.h.  */
5132 _ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h.  */
5136 #include <stdlib.h>
5137 #include <stdarg.h>
5138 #include <string.h>
5139 #include <float.h>
5142 main ()
5145   ;
5146   return 0;
5148 _ACEOF
5149 rm -f conftest.$ac_objext
5150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5151   (eval $ac_compile) 2>conftest.er1
5152   ac_status=$?
5153   grep -v '^ *+' conftest.er1 >conftest.err
5154   rm -f conftest.er1
5155   cat conftest.err >&5
5156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157   (exit $ac_status); } &&
5158          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160   (eval $ac_try) 2>&5
5161   ac_status=$?
5162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163   (exit $ac_status); }; } &&
5164          { ac_try='test -s conftest.$ac_objext'
5165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166   (eval $ac_try) 2>&5
5167   ac_status=$?
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); }; }; then
5170   ac_cv_header_stdc=yes
5171 else
5172   echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5175 ac_cv_header_stdc=no
5177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5179 if test $ac_cv_header_stdc = yes; then
5180   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5181   cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h.  */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h.  */
5187 #include <string.h>
5189 _ACEOF
5190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5191   $EGREP "memchr" >/dev/null 2>&1; then
5192   :
5193 else
5194   ac_cv_header_stdc=no
5196 rm -f conftest*
5200 if test $ac_cv_header_stdc = yes; then
5201   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5202   cat >conftest.$ac_ext <<_ACEOF
5203 /* confdefs.h.  */
5204 _ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h.  */
5208 #include <stdlib.h>
5210 _ACEOF
5211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5212   $EGREP "free" >/dev/null 2>&1; then
5213   :
5214 else
5215   ac_cv_header_stdc=no
5217 rm -f conftest*
5221 if test $ac_cv_header_stdc = yes; then
5222   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5223   if test "$cross_compiling" = yes; then
5224   :
5225 else
5226   cat >conftest.$ac_ext <<_ACEOF
5227 /* confdefs.h.  */
5228 _ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h.  */
5232 #include <ctype.h>
5233 #if ((' ' & 0x0FF) == 0x020)
5234 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5235 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5236 #else
5237 # define ISLOWER(c) \
5238                    (('a' <= (c) && (c) <= 'i') \
5239                      || ('j' <= (c) && (c) <= 'r') \
5240                      || ('s' <= (c) && (c) <= 'z'))
5241 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5242 #endif
5244 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5246 main ()
5248   int i;
5249   for (i = 0; i < 256; i++)
5250     if (XOR (islower (i), ISLOWER (i))
5251         || toupper (i) != TOUPPER (i))
5252       exit(2);
5253   exit (0);
5255 _ACEOF
5256 rm -f conftest$ac_exeext
5257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5258   (eval $ac_link) 2>&5
5259   ac_status=$?
5260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263   (eval $ac_try) 2>&5
5264   ac_status=$?
5265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266   (exit $ac_status); }; }; then
5267   :
5268 else
5269   echo "$as_me: program exited with status $ac_status" >&5
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5273 ( exit $ac_status )
5274 ac_cv_header_stdc=no
5276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5280 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5281 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5282 if test $ac_cv_header_stdc = yes; then
5283   
5284 cat >>confdefs.h <<\_ACEOF
5285 @%:@define STDC_HEADERS 1
5286 _ACEOF
5293 for ac_header in strings.h sys/time.h unistd.h
5295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5297   echo "$as_me:$LINENO: checking for $ac_header" >&5
5298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5300   echo $ECHO_N "(cached) $ECHO_C" >&6
5302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5304 else
5305   # Is the header compilable?
5306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5308 cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h.  */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h.  */
5314 $ac_includes_default
5315 @%:@include <$ac_header>
5316 _ACEOF
5317 rm -f conftest.$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319   (eval $ac_compile) 2>conftest.er1
5320   ac_status=$?
5321   grep -v '^ *+' conftest.er1 >conftest.err
5322   rm -f conftest.er1
5323   cat conftest.err >&5
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); } &&
5326          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328   (eval $ac_try) 2>&5
5329   ac_status=$?
5330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331   (exit $ac_status); }; } &&
5332          { ac_try='test -s conftest.$ac_objext'
5333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334   (eval $ac_try) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); }; }; then
5338   ac_header_compiler=yes
5339 else
5340   echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5343 ac_header_compiler=no
5345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5347 echo "${ECHO_T}$ac_header_compiler" >&6
5349 # Is the header present?
5350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5352 cat >conftest.$ac_ext <<_ACEOF
5353 /* confdefs.h.  */
5354 _ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h.  */
5358 @%:@include <$ac_header>
5359 _ACEOF
5360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5362   ac_status=$?
5363   grep -v '^ *+' conftest.er1 >conftest.err
5364   rm -f conftest.er1
5365   cat conftest.err >&5
5366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367   (exit $ac_status); } >/dev/null; then
5368   if test -s conftest.err; then
5369     ac_cpp_err=$ac_c_preproc_warn_flag
5370     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5371   else
5372     ac_cpp_err=
5373   fi
5374 else
5375   ac_cpp_err=yes
5377 if test -z "$ac_cpp_err"; then
5378   ac_header_preproc=yes
5379 else
5380   echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383   ac_header_preproc=no
5385 rm -f conftest.err conftest.$ac_ext
5386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5387 echo "${ECHO_T}$ac_header_preproc" >&6
5389 # So?  What about this header?
5390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5391   yes:no: )
5392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5396     ac_header_preproc=yes
5397     ;;
5398   no:yes:* )
5399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5401     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5402 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5403     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5405     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5406 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5409     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5411     (
5412       cat <<\_ASBOX
5413 @%:@@%:@ ------------------------------------------ @%:@@%:@
5414 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
5415 @%:@@%:@ ------------------------------------------ @%:@@%:@
5416 _ASBOX
5417     ) |
5418       sed "s/^/$as_me: WARNING:     /" >&2
5419     ;;
5420 esac
5421 echo "$as_me:$LINENO: checking for $ac_header" >&5
5422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5424   echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426   eval "$as_ac_Header=\$ac_header_preproc"
5428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5433   cat >>confdefs.h <<_ACEOF
5434 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5435 _ACEOF
5439 done
5442 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5443 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5444 if test "${ac_cv_header_time+set}" = set; then
5445   echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447   cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h.  */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h.  */
5453 #include <sys/types.h>
5454 #include <sys/time.h>
5455 #include <time.h>
5458 main ()
5460 if ((struct tm *) 0)
5461 return 0;
5462   ;
5463   return 0;
5465 _ACEOF
5466 rm -f conftest.$ac_objext
5467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5468   (eval $ac_compile) 2>conftest.er1
5469   ac_status=$?
5470   grep -v '^ *+' conftest.er1 >conftest.err
5471   rm -f conftest.er1
5472   cat conftest.err >&5
5473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474   (exit $ac_status); } &&
5475          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477   (eval $ac_try) 2>&5
5478   ac_status=$?
5479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480   (exit $ac_status); }; } &&
5481          { ac_try='test -s conftest.$ac_objext'
5482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483   (eval $ac_try) 2>&5
5484   ac_status=$?
5485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486   (exit $ac_status); }; }; then
5487   ac_cv_header_time=yes
5488 else
5489   echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5
5492 ac_cv_header_time=no
5494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5496 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5497 echo "${ECHO_T}$ac_cv_header_time" >&6
5498 if test $ac_cv_header_time = yes; then
5499   
5500 cat >>confdefs.h <<\_ACEOF
5501 @%:@define TIME_WITH_SYS_TIME 1
5502 _ACEOF
5508 for ac_func in select
5510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5511 echo "$as_me:$LINENO: checking for $ac_func" >&5
5512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5513 if eval "test \"\${$as_ac_var+set}\" = set"; then
5514   echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516   cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h.  */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h.  */
5522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5524 #define $ac_func innocuous_$ac_func
5526 /* System header to define __stub macros and hopefully few prototypes,
5527     which can conflict with char $ac_func (); below.
5528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5529     <limits.h> exists even on freestanding compilers.  */
5531 #ifdef __STDC__
5532 # include <limits.h>
5533 #else
5534 # include <assert.h>
5535 #endif
5537 #undef $ac_func
5539 /* Override any gcc2 internal prototype to avoid an error.  */
5540 #ifdef __cplusplus
5541 extern "C"
5543 #endif
5544 /* We use char because int might match the return type of a gcc2
5545    builtin and then its argument prototype would still apply.  */
5546 char $ac_func ();
5547 /* The GNU C library defines this for functions which it implements
5548     to always fail with ENOSYS.  Some functions are actually named
5549     something starting with __ and the normal name is an alias.  */
5550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5551 choke me
5552 #else
5553 char (*f) () = $ac_func;
5554 #endif
5555 #ifdef __cplusplus
5557 #endif
5560 main ()
5562 return f != $ac_func;
5563   ;
5564   return 0;
5566 _ACEOF
5567 rm -f conftest.$ac_objext conftest$ac_exeext
5568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5569   (eval $ac_link) 2>conftest.er1
5570   ac_status=$?
5571   grep -v '^ *+' conftest.er1 >conftest.err
5572   rm -f conftest.er1
5573   cat conftest.err >&5
5574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575   (exit $ac_status); } &&
5576          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578   (eval $ac_try) 2>&5
5579   ac_status=$?
5580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581   (exit $ac_status); }; } &&
5582          { ac_try='test -s conftest$ac_exeext'
5583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584   (eval $ac_try) 2>&5
5585   ac_status=$?
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); }; }; then
5588   eval "$as_ac_var=yes"
5589 else
5590   echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5593 eval "$as_ac_var=no"
5595 rm -f conftest.err conftest.$ac_objext \
5596       conftest$ac_exeext conftest.$ac_ext
5598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5600 if test `eval echo '${'$as_ac_var'}'` = yes; then
5601   cat >>confdefs.h <<_ACEOF
5602 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5603 _ACEOF
5606 done
5609                     ac_config_files="$ac_config_files Makefile src/Makefile"
5610 cat >confcache <<\_ACEOF
5611 # This file is a shell script that caches the results of configure
5612 # tests run on this system so they can be shared between configure
5613 # scripts and configure runs, see configure's option --config-cache.
5614 # It is not useful on other systems.  If it contains results you don't
5615 # want to keep, you may remove or edit it.
5617 # config.status only pays attention to the cache file if you give it
5618 # the --recheck option to rerun configure.
5620 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5621 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5622 # following values.
5624 _ACEOF
5626 # The following way of writing the cache mishandles newlines in values,
5627 # but we know of no workaround that is simple, portable, and efficient.
5628 # So, don't put newlines in cache variables' values.
5629 # Ultrix sh set writes to stderr and can't be redirected directly,
5630 # and sets the high bit in the cache file unless we assign to the vars.
5632   (set) 2>&1 |
5633     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5634     *ac_space=\ *)
5635       # `set' does not quote correctly, so add quotes (double-quote
5636       # substitution turns \\\\ into \\, and sed turns \\ into \).
5637       sed -n \
5638         "s/'/'\\\\''/g;
5639           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5640       ;;
5641     *)
5642       # `set' quotes correctly as required by POSIX, so do not add quotes.
5643       sed -n \
5644         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5645       ;;
5646     esac;
5647 } |
5648   sed '
5649      t clear
5650      : clear
5651      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5652      t end
5653      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5654      : end' >>confcache
5655 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5656   if test -w $cache_file; then
5657     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5658     cat confcache >$cache_file
5659   else
5660     echo "not updating unwritable cache $cache_file"
5661   fi
5663 rm -f confcache
5665 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5666 # Let make expand exec_prefix.
5667 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5669 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5670 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5671 # trailing colons and then remove the whole line if VPATH becomes empty
5672 # (actually we leave an empty line to preserve line numbers).
5673 if test "x$srcdir" = x.; then
5674   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5675 s/:*\$(srcdir):*/:/;
5676 s/:*\${srcdir}:*/:/;
5677 s/:*@srcdir@:*/:/;
5678 s/^\([^=]*=[     ]*\):*/\1/;
5679 s/:*$//;
5680 s/^[^=]*=[       ]*$//;
5684 # Transform confdefs.h into DEFS.
5685 # Protect against shell expansion while executing Makefile rules.
5686 # Protect against Makefile macro expansion.
5688 # If the first sed substitution is executed (which looks for macros that
5689 # take arguments), then we branch to the quote section.  Otherwise,
5690 # look for a macro that doesn't take arguments.
5691 cat >confdef2opt.sed <<\_ACEOF
5692 t clear
5693 : clear
5694 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
5695 t quote
5696 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
5697 t quote
5699 : quote
5700 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
5701 s,\[,\\&,g
5702 s,\],\\&,g
5703 s,\$,$$,g
5705 _ACEOF
5706 # We use echo to avoid assuming a particular line-breaking character.
5707 # The extra dot is to prevent the shell from consuming trailing
5708 # line-breaks from the sub-command output.  A line-break within
5709 # single-quotes doesn't work because, if this script is created in a
5710 # platform that uses two characters for line-breaks (e.g., DOS), tr
5711 # would break.
5712 ac_LF_and_DOT=`echo; echo .`
5713 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5714 rm -f confdef2opt.sed
5717 ac_libobjs=
5718 ac_ltlibobjs=
5719 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
5720   # 1. Remove the extension, and $U if already installed.
5721   ac_i=`echo "$ac_i" |
5722          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5723   # 2. Add them.
5724   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5725   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5726 done
5727 LIB@&t@OBJS=$ac_libobjs
5729 LTLIBOBJS=$ac_ltlibobjs
5733 : ${CONFIG_STATUS=./config.status}
5734 ac_clean_files_save=$ac_clean_files
5735 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5736 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5737 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5738 cat >$CONFIG_STATUS <<_ACEOF
5739 #! $SHELL
5740 # Generated by $as_me.
5741 # Run this file to recreate the current configuration.
5742 # Compiler output produced by configure, useful for debugging
5743 # configure, is in config.log if it exists.
5745 debug=false
5746 ac_cs_recheck=false
5747 ac_cs_silent=false
5748 SHELL=\${CONFIG_SHELL-$SHELL}
5749 _ACEOF
5751 cat >>$CONFIG_STATUS <<\_ACEOF
5752 ## --------------------- ##
5753 ## M4sh Initialization.  ##
5754 ## --------------------- ##
5756 # Be Bourne compatible
5757 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5758   emulate sh
5759   NULLCMD=:
5760   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5761   # is contrary to our usage.  Disable this feature.
5762   alias -g '${1+"$@"}'='"$@"'
5763 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5764   set -o posix
5766 DUALCASE=1; export DUALCASE # for MKS sh
5768 # Support unset when possible.
5769 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5770   as_unset=unset
5771 else
5772   as_unset=false
5776 # Work around bugs in pre-3.0 UWIN ksh.
5777 $as_unset ENV MAIL MAILPATH
5778 PS1='$ '
5779 PS2='> '
5780 PS4='+ '
5782 # NLS nuisances.
5783 for as_var in \
5784   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5785   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5786   LC_TELEPHONE LC_TIME
5788   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5789     eval $as_var=C; export $as_var
5790   else
5791     $as_unset $as_var
5792   fi
5793 done
5795 # Required to use basename.
5796 if expr a : '\(a\)' >/dev/null 2>&1; then
5797   as_expr=expr
5798 else
5799   as_expr=false
5802 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5803   as_basename=basename
5804 else
5805   as_basename=false
5809 # Name of the executable.
5810 as_me=`$as_basename "$0" ||
5811 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5812          X"$0" : 'X\(//\)$' \| \
5813          X"$0" : 'X\(/\)$' \| \
5814          .     : '\(.\)' 2>/dev/null ||
5815 echo X/"$0" |
5816     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5817           /^X\/\(\/\/\)$/{ s//\1/; q; }
5818           /^X\/\(\/\).*/{ s//\1/; q; }
5819           s/.*/./; q'`
5822 # PATH needs CR, and LINENO needs CR and PATH.
5823 # Avoid depending upon Character Ranges.
5824 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5825 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5826 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5827 as_cr_digits='0123456789'
5828 as_cr_alnum=$as_cr_Letters$as_cr_digits
5830 # The user is always right.
5831 if test "${PATH_SEPARATOR+set}" != set; then
5832   echo "#! /bin/sh" >conf$$.sh
5833   echo  "exit 0"   >>conf$$.sh
5834   chmod +x conf$$.sh
5835   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5836     PATH_SEPARATOR=';'
5837   else
5838     PATH_SEPARATOR=:
5839   fi
5840   rm -f conf$$.sh
5844   as_lineno_1=$LINENO
5845   as_lineno_2=$LINENO
5846   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5847   test "x$as_lineno_1" != "x$as_lineno_2" &&
5848   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5849   # Find who we are.  Look in the path if we contain no path at all
5850   # relative or not.
5851   case $0 in
5852     *[\\/]* ) as_myself=$0 ;;
5853     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5856   IFS=$as_save_IFS
5857   test -z "$as_dir" && as_dir=.
5858   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5859 done
5861        ;;
5862   esac
5863   # We did not find ourselves, most probably we were run as `sh COMMAND'
5864   # in which case we are not to be found in the path.
5865   if test "x$as_myself" = x; then
5866     as_myself=$0
5867   fi
5868   if test ! -f "$as_myself"; then
5869     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5870 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5871    { (exit 1); exit 1; }; }
5872   fi
5873   case $CONFIG_SHELL in
5874   '')
5875     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5878   IFS=$as_save_IFS
5879   test -z "$as_dir" && as_dir=.
5880   for as_base in sh bash ksh sh5; do
5881          case $as_dir in
5882          /*)
5883            if ("$as_dir/$as_base" -c '
5884   as_lineno_1=$LINENO
5885   as_lineno_2=$LINENO
5886   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5887   test "x$as_lineno_1" != "x$as_lineno_2" &&
5888   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5889              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5890              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5891              CONFIG_SHELL=$as_dir/$as_base
5892              export CONFIG_SHELL
5893              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5894            fi;;
5895          esac
5896        done
5897 done
5899   esac
5901   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5902   # uniformly replaced by the line number.  The first 'sed' inserts a
5903   # line-number line before each line; the second 'sed' does the real
5904   # work.  The second script uses 'N' to pair each line-number line
5905   # with the numbered line, and appends trailing '-' during
5906   # substitution so that $LINENO is not a special case at line end.
5907   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5908   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5909   sed '=' <$as_myself |
5910     sed '
5911       N
5912       s,$,-,
5913       : loop
5914       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5915       t loop
5916       s,-$,,
5917       s,^['$as_cr_digits']*\n,,
5918     ' >$as_me.lineno &&
5919   chmod +x $as_me.lineno ||
5920     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5921 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5922    { (exit 1); exit 1; }; }
5924   # Don't try to exec as it changes $[0], causing all sort of problems
5925   # (the dirname of $[0] is not the place where we might find the
5926   # original and so on.  Autoconf is especially sensible to this).
5927   . ./$as_me.lineno
5928   # Exit status is that of the last command.
5929   exit
5933 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5934   *c*,-n*) ECHO_N= ECHO_C='
5935 ' ECHO_T='      ' ;;
5936   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5937   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5938 esac
5940 if expr a : '\(a\)' >/dev/null 2>&1; then
5941   as_expr=expr
5942 else
5943   as_expr=false
5946 rm -f conf$$ conf$$.exe conf$$.file
5947 echo >conf$$.file
5948 if ln -s conf$$.file conf$$ 2>/dev/null; then
5949   # We could just check for DJGPP; but this test a) works b) is more generic
5950   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5951   if test -f conf$$.exe; then
5952     # Don't use ln at all; we don't have any links
5953     as_ln_s='cp -p'
5954   else
5955     as_ln_s='ln -s'
5956   fi
5957 elif ln conf$$.file conf$$ 2>/dev/null; then
5958   as_ln_s=ln
5959 else
5960   as_ln_s='cp -p'
5962 rm -f conf$$ conf$$.exe conf$$.file
5964 if mkdir -p . 2>/dev/null; then
5965   as_mkdir_p=:
5966 else
5967   test -d ./-p && rmdir ./-p
5968   as_mkdir_p=false
5971 as_executable_p="test -f"
5973 # Sed expression to map a string onto a valid CPP name.
5974 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5976 # Sed expression to map a string onto a valid variable name.
5977 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5980 # IFS
5981 # We need space, tab and new line, in precisely that order.
5982 as_nl='
5984 IFS="   $as_nl"
5986 # CDPATH.
5987 $as_unset CDPATH
5989 exec 6>&1
5991 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5992 # report actual input values of CONFIG_FILES etc. instead of their
5993 # values after options handling.  Logging --version etc. is OK.
5994 exec 5>>config.log
5996   echo
5997   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
5998 @%:@@%:@ Running $as_me. @%:@@%:@
5999 _ASBOX
6000 } >&5
6001 cat >&5 <<_CSEOF
6003 This file was extended by $as_me, which was
6004 generated by GNU Autoconf 2.59.  Invocation command line was
6006   CONFIG_FILES    = $CONFIG_FILES
6007   CONFIG_HEADERS  = $CONFIG_HEADERS
6008   CONFIG_LINKS    = $CONFIG_LINKS
6009   CONFIG_COMMANDS = $CONFIG_COMMANDS
6010   $ $0 $@
6012 _CSEOF
6013 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6014 echo >&5
6015 _ACEOF
6017 # Files that config.status was made for.
6018 if test -n "$ac_config_files"; then
6019   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6022 if test -n "$ac_config_headers"; then
6023   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6026 if test -n "$ac_config_links"; then
6027   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6030 if test -n "$ac_config_commands"; then
6031   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6034 cat >>$CONFIG_STATUS <<\_ACEOF
6036 ac_cs_usage="\
6037 \`$as_me' instantiates files from templates according to the
6038 current configuration.
6040 Usage: $0 [OPTIONS] [FILE]...
6042   -h, --help       print this help, then exit
6043   -V, --version    print version number, then exit
6044   -q, --quiet      do not print progress messages
6045   -d, --debug      don't remove temporary files
6046       --recheck    update $as_me by reconfiguring in the same conditions
6047   --file=FILE[:TEMPLATE]
6048                    instantiate the configuration file FILE
6050 Configuration files:
6051 $config_files
6053 Report bugs to <bug-autoconf@gnu.org>."
6054 _ACEOF
6056 cat >>$CONFIG_STATUS <<_ACEOF
6057 ac_cs_version="\\
6058 config.status
6059 configured by $0, generated by GNU Autoconf 2.59,
6060   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6062 Copyright (C) 2003 Free Software Foundation, Inc.
6063 This config.status script is free software; the Free Software Foundation
6064 gives unlimited permission to copy, distribute and modify it."
6065 srcdir=$srcdir
6066 INSTALL="$INSTALL"
6067 _ACEOF
6069 cat >>$CONFIG_STATUS <<\_ACEOF
6070 # If no file are specified by the user, then we need to provide default
6071 # value.  By we need to know if files were specified by the user.
6072 ac_need_defaults=:
6073 while test $# != 0
6075   case $1 in
6076   --*=*)
6077     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6078     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6079     ac_shift=:
6080     ;;
6081   -*)
6082     ac_option=$1
6083     ac_optarg=$2
6084     ac_shift=shift
6085     ;;
6086   *) # This is not an option, so the user has probably given explicit
6087      # arguments.
6088      ac_option=$1
6089      ac_need_defaults=false;;
6090   esac
6092   case $ac_option in
6093   # Handling of the options.
6094 _ACEOF
6095 cat >>$CONFIG_STATUS <<\_ACEOF
6096   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6097     ac_cs_recheck=: ;;
6098   --version | --vers* | -V )
6099     echo "$ac_cs_version"; exit 0 ;;
6100   --he | --h)
6101     # Conflict between --help and --header
6102     { { echo "$as_me:$LINENO: error: ambiguous option: $1
6103 Try \`$0 --help' for more information." >&5
6104 echo "$as_me: error: ambiguous option: $1
6105 Try \`$0 --help' for more information." >&2;}
6106    { (exit 1); exit 1; }; };;
6107   --help | --hel | -h )
6108     echo "$ac_cs_usage"; exit 0 ;;
6109   --debug | --d* | -d )
6110     debug=: ;;
6111   --file | --fil | --fi | --f )
6112     $ac_shift
6113     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6114     ac_need_defaults=false;;
6115   --header | --heade | --head | --hea )
6116     $ac_shift
6117     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6118     ac_need_defaults=false;;
6119   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6120   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6121     ac_cs_silent=: ;;
6123   # This is an error.
6124   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6125 Try \`$0 --help' for more information." >&5
6126 echo "$as_me: error: unrecognized option: $1
6127 Try \`$0 --help' for more information." >&2;}
6128    { (exit 1); exit 1; }; } ;;
6130   *) ac_config_targets="$ac_config_targets $1" ;;
6132   esac
6133   shift
6134 done
6136 ac_configure_extra_args=
6138 if $ac_cs_silent; then
6139   exec 6>/dev/null
6140   ac_configure_extra_args="$ac_configure_extra_args --silent"
6143 _ACEOF
6144 cat >>$CONFIG_STATUS <<_ACEOF
6145 if \$ac_cs_recheck; then
6146   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6147   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6150 _ACEOF
6156 cat >>$CONFIG_STATUS <<\_ACEOF
6157 for ac_config_target in $ac_config_targets
6159   case "$ac_config_target" in
6160   # Handling of arguments.
6161   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6162   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6163   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6164 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6165    { (exit 1); exit 1; }; };;
6166   esac
6167 done
6169 # If the user did not use the arguments to specify the items to instantiate,
6170 # then the envvar interface is used.  Set only those that are not.
6171 # We use the long form for the default assignment because of an extremely
6172 # bizarre bug on SunOS 4.1.3.
6173 if $ac_need_defaults; then
6174   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6177 # Have a temporary directory for convenience.  Make it in the build tree
6178 # simply because there is no reason to put it here, and in addition,
6179 # creating and moving files from /tmp can sometimes cause problems.
6180 # Create a temporary directory, and hook for its removal unless debugging.
6181 $debug ||
6183   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6184   trap '{ (exit 1); exit 1; }' 1 2 13 15
6187 # Create a (secure) tmp directory for tmp files.
6190   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6191   test -n "$tmp" && test -d "$tmp"
6192 }  ||
6194   tmp=./confstat$$-$RANDOM
6195   (umask 077 && mkdir $tmp)
6196 } ||
6198    echo "$me: cannot create a temporary directory in ." >&2
6199    { (exit 1); exit 1; }
6202 _ACEOF
6204 cat >>$CONFIG_STATUS <<_ACEOF
6207 # CONFIG_FILES section.
6210 # No need to generate the scripts if there are no CONFIG_FILES.
6211 # This happens for instance when ./config.status config.h
6212 if test -n "\$CONFIG_FILES"; then
6213   # Protect against being on the right side of a sed subst in config.status.
6214   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6215    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6216 s,@SHELL@,$SHELL,;t t
6217 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6218 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6219 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6220 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6221 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6222 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6223 s,@exec_prefix@,$exec_prefix,;t t
6224 s,@prefix@,$prefix,;t t
6225 s,@program_transform_name@,$program_transform_name,;t t
6226 s,@bindir@,$bindir,;t t
6227 s,@sbindir@,$sbindir,;t t
6228 s,@libexecdir@,$libexecdir,;t t
6229 s,@datadir@,$datadir,;t t
6230 s,@sysconfdir@,$sysconfdir,;t t
6231 s,@sharedstatedir@,$sharedstatedir,;t t
6232 s,@localstatedir@,$localstatedir,;t t
6233 s,@libdir@,$libdir,;t t
6234 s,@includedir@,$includedir,;t t
6235 s,@oldincludedir@,$oldincludedir,;t t
6236 s,@infodir@,$infodir,;t t
6237 s,@mandir@,$mandir,;t t
6238 s,@build_alias@,$build_alias,;t t
6239 s,@host_alias@,$host_alias,;t t
6240 s,@target_alias@,$target_alias,;t t
6241 s,@DEFS@,$DEFS,;t t
6242 s,@ECHO_C@,$ECHO_C,;t t
6243 s,@ECHO_N@,$ECHO_N,;t t
6244 s,@ECHO_T@,$ECHO_T,;t t
6245 s,@LIBS@,$LIBS,;t t
6246 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6247 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6248 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6249 s,@PACKAGE@,$PACKAGE,;t t
6250 s,@VERSION@,$VERSION,;t t
6251 s,@ACLOCAL@,$ACLOCAL,;t t
6252 s,@AUTOCONF@,$AUTOCONF,;t t
6253 s,@AUTOMAKE@,$AUTOMAKE,;t t
6254 s,@AUTOHEADER@,$AUTOHEADER,;t t
6255 s,@MAKEINFO@,$MAKEINFO,;t t
6256 s,@SET_MAKE@,$SET_MAKE,;t t
6257 s,@CC@,$CC,;t t
6258 s,@CFLAGS@,$CFLAGS,;t t
6259 s,@LDFLAGS@,$LDFLAGS,;t t
6260 s,@CPPFLAGS@,$CPPFLAGS,;t t
6261 s,@ac_ct_CC@,$ac_ct_CC,;t t
6262 s,@EXEEXT@,$EXEEXT,;t t
6263 s,@OBJEXT@,$OBJEXT,;t t
6264 s,@CPP@,$CPP,;t t
6265 s,@X_CFLAGS@,$X_CFLAGS,;t t
6266 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
6267 s,@X_LIBS@,$X_LIBS,;t t
6268 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
6269 s,@EGREP@,$EGREP,;t t
6270 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
6271 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6272 CEOF
6274 _ACEOF
6276   cat >>$CONFIG_STATUS <<\_ACEOF
6277   # Split the substitutions into bite-sized pieces for seds with
6278   # small command number limits, like on Digital OSF/1 and HP-UX.
6279   ac_max_sed_lines=48
6280   ac_sed_frag=1 # Number of current file.
6281   ac_beg=1 # First line for current file.
6282   ac_end=$ac_max_sed_lines # Line after last line for current file.
6283   ac_more_lines=:
6284   ac_sed_cmds=
6285   while $ac_more_lines; do
6286     if test $ac_beg -gt 1; then
6287       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6288     else
6289       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6290     fi
6291     if test ! -s $tmp/subs.frag; then
6292       ac_more_lines=false
6293     else
6294       # The purpose of the label and of the branching condition is to
6295       # speed up the sed processing (if there are no `@' at all, there
6296       # is no need to browse any of the substitutions).
6297       # These are the two extra sed commands mentioned above.
6298       (echo ':t
6299   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6300       if test -z "$ac_sed_cmds"; then
6301         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6302       else
6303         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6304       fi
6305       ac_sed_frag=`expr $ac_sed_frag + 1`
6306       ac_beg=$ac_end
6307       ac_end=`expr $ac_end + $ac_max_sed_lines`
6308     fi
6309   done
6310   if test -z "$ac_sed_cmds"; then
6311     ac_sed_cmds=cat
6312   fi
6313 fi # test -n "$CONFIG_FILES"
6315 _ACEOF
6316 cat >>$CONFIG_STATUS <<\_ACEOF
6317 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6318   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6319   case $ac_file in
6320   - | *:- | *:-:* ) # input from stdin
6321         cat >$tmp/stdin
6322         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6323         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6324   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6325         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6326   * )   ac_file_in=$ac_file.in ;;
6327   esac
6329   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6330   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6331 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6332          X"$ac_file" : 'X\(//\)[^/]' \| \
6333          X"$ac_file" : 'X\(//\)$' \| \
6334          X"$ac_file" : 'X\(/\)' \| \
6335          .     : '\(.\)' 2>/dev/null ||
6336 echo X"$ac_file" |
6337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6338           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6339           /^X\(\/\/\)$/{ s//\1/; q; }
6340           /^X\(\/\).*/{ s//\1/; q; }
6341           s/.*/./; q'`
6342   { if $as_mkdir_p; then
6343     mkdir -p "$ac_dir"
6344   else
6345     as_dir="$ac_dir"
6346     as_dirs=
6347     while test ! -d "$as_dir"; do
6348       as_dirs="$as_dir $as_dirs"
6349       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6351          X"$as_dir" : 'X\(//\)[^/]' \| \
6352          X"$as_dir" : 'X\(//\)$' \| \
6353          X"$as_dir" : 'X\(/\)' \| \
6354          .     : '\(.\)' 2>/dev/null ||
6355 echo X"$as_dir" |
6356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6357           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6358           /^X\(\/\/\)$/{ s//\1/; q; }
6359           /^X\(\/\).*/{ s//\1/; q; }
6360           s/.*/./; q'`
6361     done
6362     test ! -n "$as_dirs" || mkdir $as_dirs
6363   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6364 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6365    { (exit 1); exit 1; }; }; }
6367   ac_builddir=.
6369 if test "$ac_dir" != .; then
6370   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6371   # A "../" for each directory in $ac_dir_suffix.
6372   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6373 else
6374   ac_dir_suffix= ac_top_builddir=
6377 case $srcdir in
6378   .)  # No --srcdir option.  We are building in place.
6379     ac_srcdir=.
6380     if test -z "$ac_top_builddir"; then
6381        ac_top_srcdir=.
6382     else
6383        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6384     fi ;;
6385   [\\/]* | ?:[\\/]* )  # Absolute path.
6386     ac_srcdir=$srcdir$ac_dir_suffix;
6387     ac_top_srcdir=$srcdir ;;
6388   *) # Relative path.
6389     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6390     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6391 esac
6393 # Do not use `cd foo && pwd` to compute absolute paths, because
6394 # the directories may not exist.
6395 case `pwd` in
6396 .) ac_abs_builddir="$ac_dir";;
6398   case "$ac_dir" in
6399   .) ac_abs_builddir=`pwd`;;
6400   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6401   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6402   esac;;
6403 esac
6404 case $ac_abs_builddir in
6405 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6407   case ${ac_top_builddir}. in
6408   .) ac_abs_top_builddir=$ac_abs_builddir;;
6409   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6410   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6411   esac;;
6412 esac
6413 case $ac_abs_builddir in
6414 .) ac_abs_srcdir=$ac_srcdir;;
6416   case $ac_srcdir in
6417   .) ac_abs_srcdir=$ac_abs_builddir;;
6418   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6419   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6420   esac;;
6421 esac
6422 case $ac_abs_builddir in
6423 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6425   case $ac_top_srcdir in
6426   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6427   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6428   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6429   esac;;
6430 esac
6433   case $INSTALL in
6434   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6435   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6436   esac
6438   # Let's still pretend it is `configure' which instantiates (i.e., don't
6439   # use $as_me), people would be surprised to read:
6440   #    /* config.h.  Generated by config.status.  */
6441   if test x"$ac_file" = x-; then
6442     configure_input=
6443   else
6444     configure_input="$ac_file.  "
6445   fi
6446   configure_input=$configure_input"Generated from `echo $ac_file_in |
6447                                      sed 's,.*/,,'` by configure."
6449   # First look for the input files in the build tree, otherwise in the
6450   # src tree.
6451   ac_file_inputs=`IFS=:
6452     for f in $ac_file_in; do
6453       case $f in
6454       -) echo $tmp/stdin ;;
6455       [\\/$]*)
6456          # Absolute (can't be DOS-style, as IFS=:)
6457          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6458 echo "$as_me: error: cannot find input file: $f" >&2;}
6459    { (exit 1); exit 1; }; }
6460          echo "$f";;
6461       *) # Relative
6462          if test -f "$f"; then
6463            # Build tree
6464            echo "$f"
6465          elif test -f "$srcdir/$f"; then
6466            # Source tree
6467            echo "$srcdir/$f"
6468          else
6469            # /dev/null tree
6470            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6471 echo "$as_me: error: cannot find input file: $f" >&2;}
6472    { (exit 1); exit 1; }; }
6473          fi;;
6474       esac
6475     done` || { (exit 1); exit 1; }
6477   if test x"$ac_file" != x-; then
6478     { echo "$as_me:$LINENO: creating $ac_file" >&5
6479 echo "$as_me: creating $ac_file" >&6;}
6480     rm -f "$ac_file"
6481   fi
6482 _ACEOF
6483 cat >>$CONFIG_STATUS <<_ACEOF
6484   sed "$ac_vpsub
6485 $extrasub
6486 _ACEOF
6487 cat >>$CONFIG_STATUS <<\_ACEOF
6489 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6490 s,@configure_input@,$configure_input,;t t
6491 s,@srcdir@,$ac_srcdir,;t t
6492 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6493 s,@top_srcdir@,$ac_top_srcdir,;t t
6494 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6495 s,@builddir@,$ac_builddir,;t t
6496 s,@abs_builddir@,$ac_abs_builddir,;t t
6497 s,@top_builddir@,$ac_top_builddir,;t t
6498 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6499 s,@INSTALL@,$ac_INSTALL,;t t
6500 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6501   rm -f $tmp/stdin
6502   if test x"$ac_file" != x-; then
6503     mv $tmp/out $ac_file
6504   else
6505     cat $tmp/out
6506     rm -f $tmp/out
6507   fi
6509 done
6510 _ACEOF
6512 cat >>$CONFIG_STATUS <<\_ACEOF
6514 { (exit 0); exit 0; }
6515 _ACEOF
6516 chmod +x $CONFIG_STATUS
6517 ac_clean_files=$ac_clean_files_save
6520 # configure is writing to config.log, and then calls config.status.
6521 # config.status does its own redirection, appending to config.log.
6522 # Unfortunately, on DOS this fails, as config.log is still kept open
6523 # by configure, so config.status won't be able to write to it; its
6524 # output is simply discarded.  So we exec the FD to /dev/null,
6525 # effectively closing config.log, so it can be properly (re)opened and
6526 # appended to by config.status.  When coming back to configure, we
6527 # need to make the FD available again.
6528 if test "$no_create" != yes; then
6529   ac_cs_success=:
6530   ac_config_status_args=
6531   test "$silent" = yes &&
6532     ac_config_status_args="$ac_config_status_args --quiet"
6533   exec 5>/dev/null
6534   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6535   exec 5>>config.log
6536   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6537   # would make configure fail if this is the last instruction.
6538   $ac_cs_success || { (exit 1); exit 1; }