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