OSDN Git Service

Re-autconf configure script after Mike Frysinger's recent AC_ERROR
[uclinux-h8/elf2flt.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="elf2flt.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP bfd_include_dir binutils_include_dir binutils_ldscript_dir got_check emit_relocs 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   --target=TARGET   configure for building compilers for TARGET [HOST]
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842
843   cat <<\_ACEOF
844
845 Optional Features:
846   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
847   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
848  --disable-got-check - disable check for GOT (needed on H8)
849  --disable-emit-relocs - don't use the --emit-relocs (-q) linker option
850
851 Optional Packages:
852   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
853   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
854  --with-libbfd=<file>  path to libbfd.a library to use
855  --with-libiberty=<file>  path to libiberty.a library to use
856  --with-bfd-include-dir=<dir>  include path for correct bfd.h
857  --with-binutils-include-dir=<dir>  include path for binutils headers
858  --with-binutils-ldscript-dir=<dir>  path to install elf2flt.ld
859
860 Some influential environment variables:
861   CC          C compiler command
862   CFLAGS      C compiler flags
863   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
864               nonstandard directory <lib dir>
865   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
866               headers in a nonstandard directory <include dir>
867   CPP         C preprocessor
868
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
871
872 _ACEOF
873 fi
874
875 if test "$ac_init_help" = "recursive"; then
876   # If there are subdirs, report their specific --help.
877   ac_popdir=`pwd`
878   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879     test -d $ac_dir || continue
880     ac_builddir=.
881
882 if test "$ac_dir" != .; then
883   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884   # A "../" for each directory in $ac_dir_suffix.
885   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887   ac_dir_suffix= ac_top_builddir=
888 fi
889
890 case $srcdir in
891   .)  # No --srcdir option.  We are building in place.
892     ac_srcdir=.
893     if test -z "$ac_top_builddir"; then
894        ac_top_srcdir=.
895     else
896        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897     fi ;;
898   [\\/]* | ?:[\\/]* )  # Absolute path.
899     ac_srcdir=$srcdir$ac_dir_suffix;
900     ac_top_srcdir=$srcdir ;;
901   *) # Relative path.
902     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903     ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
905
906 # Do not use `cd foo && pwd` to compute absolute paths, because
907 # the directories may not exist.
908 case `pwd` in
909 .) ac_abs_builddir="$ac_dir";;
910 *)
911   case "$ac_dir" in
912   .) ac_abs_builddir=`pwd`;;
913   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914   *) ac_abs_builddir=`pwd`/"$ac_dir";;
915   esac;;
916 esac
917 case $ac_abs_builddir in
918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
919 *)
920   case ${ac_top_builddir}. in
921   .) ac_abs_top_builddir=$ac_abs_builddir;;
922   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
924   esac;;
925 esac
926 case $ac_abs_builddir in
927 .) ac_abs_srcdir=$ac_srcdir;;
928 *)
929   case $ac_srcdir in
930   .) ac_abs_srcdir=$ac_abs_builddir;;
931   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
933   esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
937 *)
938   case $ac_top_srcdir in
939   .) ac_abs_top_srcdir=$ac_abs_builddir;;
940   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
942   esac;;
943 esac
944
945     cd $ac_dir
946     # Check for guested configure; otherwise get Cygnus style configure.
947     if test -f $ac_srcdir/configure.gnu; then
948       echo
949       $SHELL $ac_srcdir/configure.gnu  --help=recursive
950     elif test -f $ac_srcdir/configure; then
951       echo
952       $SHELL $ac_srcdir/configure  --help=recursive
953     elif test -f $ac_srcdir/configure.ac ||
954            test -f $ac_srcdir/configure.in; then
955       echo
956       $ac_configure --help
957     else
958       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
959     fi
960     cd $ac_popdir
961   done
962 fi
963
964 test -n "$ac_init_help" && exit 0
965 if $ac_init_version; then
966   cat <<\_ACEOF
967
968 Copyright (C) 2003 Free Software Foundation, Inc.
969 This configure script is free software; the Free Software Foundation
970 gives unlimited permission to copy, distribute and modify it.
971 _ACEOF
972   exit 0
973 fi
974 exec 5>config.log
975 cat >&5 <<_ACEOF
976 This file contains any messages produced by compilers while
977 running configure, to aid debugging if configure makes a mistake.
978
979 It was created by $as_me, which was
980 generated by GNU Autoconf 2.59.  Invocation command line was
981
982   $ $0 $@
983
984 _ACEOF
985 {
986 cat <<_ASUNAME
987 ## --------- ##
988 ## Platform. ##
989 ## --------- ##
990
991 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
992 uname -m = `(uname -m) 2>/dev/null || echo unknown`
993 uname -r = `(uname -r) 2>/dev/null || echo unknown`
994 uname -s = `(uname -s) 2>/dev/null || echo unknown`
995 uname -v = `(uname -v) 2>/dev/null || echo unknown`
996
997 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
998 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
999
1000 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1001 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1002 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1003 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1004 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1005 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1006 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1007
1008 _ASUNAME
1009
1010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1011 for as_dir in $PATH
1012 do
1013   IFS=$as_save_IFS
1014   test -z "$as_dir" && as_dir=.
1015   echo "PATH: $as_dir"
1016 done
1017
1018 } >&5
1019
1020 cat >&5 <<_ACEOF
1021
1022
1023 ## ----------- ##
1024 ## Core tests. ##
1025 ## ----------- ##
1026
1027 _ACEOF
1028
1029
1030 # Keep a trace of the command line.
1031 # Strip out --no-create and --no-recursion so they do not pile up.
1032 # Strip out --silent because we don't want to record it for future runs.
1033 # Also quote any args containing shell meta-characters.
1034 # Make two passes to allow for proper duplicate-argument suppression.
1035 ac_configure_args=
1036 ac_configure_args0=
1037 ac_configure_args1=
1038 ac_sep=
1039 ac_must_keep_next=false
1040 for ac_pass in 1 2
1041 do
1042   for ac_arg
1043   do
1044     case $ac_arg in
1045     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1046     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047     | -silent | --silent | --silen | --sile | --sil)
1048       continue ;;
1049     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1050       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1051     esac
1052     case $ac_pass in
1053     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1054     2)
1055       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1056       if test $ac_must_keep_next = true; then
1057         ac_must_keep_next=false # Got value, back to normal.
1058       else
1059         case $ac_arg in
1060           *=* | --config-cache | -C | -disable-* | --disable-* \
1061           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1062           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1063           | -with-* | --with-* | -without-* | --without-* | --x)
1064             case "$ac_configure_args0 " in
1065               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1066             esac
1067             ;;
1068           -* ) ac_must_keep_next=true ;;
1069         esac
1070       fi
1071       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1072       # Get rid of the leading space.
1073       ac_sep=" "
1074       ;;
1075     esac
1076   done
1077 done
1078 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1079 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1080
1081 # When interrupted or exit'd, cleanup temporary files, and complete
1082 # config.log.  We remove comments because anyway the quotes in there
1083 # would cause problems or look ugly.
1084 # WARNING: Be sure not to use single quotes in there, as some shells,
1085 # such as our DU 5.0 friend, will then `close' the trap.
1086 trap 'exit_status=$?
1087   # Save into config.log some information that might help in debugging.
1088   {
1089     echo
1090
1091     cat <<\_ASBOX
1092 ## ---------------- ##
1093 ## Cache variables. ##
1094 ## ---------------- ##
1095 _ASBOX
1096     echo
1097     # The following way of writing the cache mishandles newlines in values,
1098 {
1099   (set) 2>&1 |
1100     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1101     *ac_space=\ *)
1102       sed -n \
1103         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1104           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1105       ;;
1106     *)
1107       sed -n \
1108         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1109       ;;
1110     esac;
1111 }
1112     echo
1113
1114     cat <<\_ASBOX
1115 ## ----------------- ##
1116 ## Output variables. ##
1117 ## ----------------- ##
1118 _ASBOX
1119     echo
1120     for ac_var in $ac_subst_vars
1121     do
1122       eval ac_val=$`echo $ac_var`
1123       echo "$ac_var='"'"'$ac_val'"'"'"
1124     done | sort
1125     echo
1126
1127     if test -n "$ac_subst_files"; then
1128       cat <<\_ASBOX
1129 ## ------------- ##
1130 ## Output files. ##
1131 ## ------------- ##
1132 _ASBOX
1133       echo
1134       for ac_var in $ac_subst_files
1135       do
1136         eval ac_val=$`echo $ac_var`
1137         echo "$ac_var='"'"'$ac_val'"'"'"
1138       done | sort
1139       echo
1140     fi
1141
1142     if test -s confdefs.h; then
1143       cat <<\_ASBOX
1144 ## ----------- ##
1145 ## confdefs.h. ##
1146 ## ----------- ##
1147 _ASBOX
1148       echo
1149       sed "/^$/d" confdefs.h | sort
1150       echo
1151     fi
1152     test "$ac_signal" != 0 &&
1153       echo "$as_me: caught signal $ac_signal"
1154     echo "$as_me: exit $exit_status"
1155   } >&5
1156   rm -f core *.core &&
1157   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1158     exit $exit_status
1159      ' 0
1160 for ac_signal in 1 2 13 15; do
1161   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1162 done
1163 ac_signal=0
1164
1165 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1166 rm -rf conftest* confdefs.h
1167 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1168 echo >confdefs.h
1169
1170 # Predefined preprocessor variables.
1171
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_NAME "$PACKAGE_NAME"
1174 _ACEOF
1175
1176
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1179 _ACEOF
1180
1181
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1184 _ACEOF
1185
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_STRING "$PACKAGE_STRING"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1194 _ACEOF
1195
1196
1197 # Let the site file select an alternate cache file if it wants to.
1198 # Prefer explicitly selected file to automatically selected ones.
1199 if test -z "$CONFIG_SITE"; then
1200   if test "x$prefix" != xNONE; then
1201     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1202   else
1203     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1204   fi
1205 fi
1206 for ac_site_file in $CONFIG_SITE; do
1207   if test -r "$ac_site_file"; then
1208     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1209 echo "$as_me: loading site script $ac_site_file" >&6;}
1210     sed 's/^/| /' "$ac_site_file" >&5
1211     . "$ac_site_file"
1212   fi
1213 done
1214
1215 if test -r "$cache_file"; then
1216   # Some versions of bash will fail to source /dev/null (special
1217   # files actually), so we avoid doing that.
1218   if test -f "$cache_file"; then
1219     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1220 echo "$as_me: loading cache $cache_file" >&6;}
1221     case $cache_file in
1222       [\\/]* | ?:[\\/]* ) . $cache_file;;
1223       *)                      . ./$cache_file;;
1224     esac
1225   fi
1226 else
1227   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1228 echo "$as_me: creating cache $cache_file" >&6;}
1229   >$cache_file
1230 fi
1231
1232 # Check that the precious variables saved in the cache have kept the same
1233 # value.
1234 ac_cache_corrupted=false
1235 for ac_var in `(set) 2>&1 |
1236                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1237   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1238   eval ac_new_set=\$ac_env_${ac_var}_set
1239   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1240   eval ac_new_val="\$ac_env_${ac_var}_value"
1241   case $ac_old_set,$ac_new_set in
1242     set,)
1243       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1244 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1245       ac_cache_corrupted=: ;;
1246     ,set)
1247       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1248 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1249       ac_cache_corrupted=: ;;
1250     ,);;
1251     *)
1252       if test "x$ac_old_val" != "x$ac_new_val"; then
1253         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1254 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1255         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1256 echo "$as_me:   former value:  $ac_old_val" >&2;}
1257         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1258 echo "$as_me:   current value: $ac_new_val" >&2;}
1259         ac_cache_corrupted=:
1260       fi;;
1261   esac
1262   # Pass precious variables to config.status.
1263   if test "$ac_new_set" = set; then
1264     case $ac_new_val in
1265     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1267     *) ac_arg=$ac_var=$ac_new_val ;;
1268     esac
1269     case " $ac_configure_args " in
1270       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1271       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1272     esac
1273   fi
1274 done
1275 if $ac_cache_corrupted; then
1276   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1277 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1278   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1279 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1280    { (exit 1); exit 1; }; }
1281 fi
1282
1283 ac_ext=c
1284 ac_cpp='$CPP $CPPFLAGS'
1285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309 # Check whether --with-libbfd or --without-libbfd was given.
1310 if test "${with_libbfd+set}" = set; then
1311   withval="$with_libbfd"
1312    ac_libbfd=$withval
1313 else
1314    ac_libbfd=NONE
1315
1316 fi;
1317
1318
1319 # Check whether --with-libiberty or --without-libiberty was given.
1320 if test "${with_libiberty+set}" = set; then
1321   withval="$with_libiberty"
1322    ac_libiberty=$withval
1323 else
1324    ac_libiberty=NONE
1325
1326 fi;
1327
1328
1329 # Check whether --with-bfd-include-dir or --without-bfd-include-dir was given.
1330 if test "${with_bfd_include_dir+set}" = set; then
1331   withval="$with_bfd_include_dir"
1332    ac_bfd_include_dir=$withval
1333 else
1334    ac_bfd_include_dir=NONE
1335
1336 fi;
1337
1338
1339 # Check whether --with-binutils-include-dir or --without-binutils-include-dir was given.
1340 if test "${with_binutils_include_dir+set}" = set; then
1341   withval="$with_binutils_include_dir"
1342    ac_binutils_include_dir=$withval
1343 else
1344    ac_binutils_include_dir=NONE
1345
1346 fi;
1347
1348
1349 # Check whether --with-binutils-ldscript-dir or --without-binutils-ldscript-dir was given.
1350 if test "${with_binutils_ldscript_dir+set}" = set; then
1351   withval="$with_binutils_ldscript_dir"
1352    ac_binutils_ldscript_dir=$withval
1353 else
1354    ac_binutils_ldscript_dir=NONE
1355
1356 fi;
1357
1358 # Check whether --enable-got-check or --disable-got-check was given.
1359 if test "${enable_got_check+set}" = set; then
1360   enableval="$enable_got_check"
1361    got_check=$enableval
1362 else
1363    got_check=yes
1364
1365 fi;
1366
1367 # Check whether --enable-emit_relocs or --disable-emit_relocs was given.
1368 if test "${enable_emit_relocs+set}" = set; then
1369   enableval="$enable_emit_relocs"
1370    emit_relocs=$enableval
1371 else
1372    emit_relocs=yes
1373
1374 fi;
1375
1376 ac_aux_dir=
1377 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1378   if test -f $ac_dir/install-sh; then
1379     ac_aux_dir=$ac_dir
1380     ac_install_sh="$ac_aux_dir/install-sh -c"
1381     break
1382   elif test -f $ac_dir/install.sh; then
1383     ac_aux_dir=$ac_dir
1384     ac_install_sh="$ac_aux_dir/install.sh -c"
1385     break
1386   elif test -f $ac_dir/shtool; then
1387     ac_aux_dir=$ac_dir
1388     ac_install_sh="$ac_aux_dir/shtool install -c"
1389     break
1390   fi
1391 done
1392 if test -z "$ac_aux_dir"; then
1393   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1394 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1395    { (exit 1); exit 1; }; }
1396 fi
1397 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1398 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1399 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1400
1401 # Make sure we can run config.sub.
1402 $ac_config_sub sun4 >/dev/null 2>&1 ||
1403   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1404 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1405    { (exit 1); exit 1; }; }
1406
1407 echo "$as_me:$LINENO: checking build system type" >&5
1408 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1409 if test "${ac_cv_build+set}" = set; then
1410   echo $ECHO_N "(cached) $ECHO_C" >&6
1411 else
1412   ac_cv_build_alias=$build_alias
1413 test -z "$ac_cv_build_alias" &&
1414   ac_cv_build_alias=`$ac_config_guess`
1415 test -z "$ac_cv_build_alias" &&
1416   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1417 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1418    { (exit 1); exit 1; }; }
1419 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1420   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1421 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1422    { (exit 1); exit 1; }; }
1423
1424 fi
1425 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1426 echo "${ECHO_T}$ac_cv_build" >&6
1427 build=$ac_cv_build
1428 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431
1432
1433 echo "$as_me:$LINENO: checking host system type" >&5
1434 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1435 if test "${ac_cv_host+set}" = set; then
1436   echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438   ac_cv_host_alias=$host_alias
1439 test -z "$ac_cv_host_alias" &&
1440   ac_cv_host_alias=$ac_cv_build_alias
1441 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1442   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1443 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1444    { (exit 1); exit 1; }; }
1445
1446 fi
1447 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1448 echo "${ECHO_T}$ac_cv_host" >&6
1449 host=$ac_cv_host
1450 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1451 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1452 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453
1454
1455 echo "$as_me:$LINENO: checking target system type" >&5
1456 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1457 if test "${ac_cv_target+set}" = set; then
1458   echo $ECHO_N "(cached) $ECHO_C" >&6
1459 else
1460   ac_cv_target_alias=$target_alias
1461 test "x$ac_cv_target_alias" = "x" &&
1462   ac_cv_target_alias=$ac_cv_host_alias
1463 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1464   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1465 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1466    { (exit 1); exit 1; }; }
1467
1468 fi
1469 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1470 echo "${ECHO_T}$ac_cv_target" >&6
1471 target=$ac_cv_target
1472 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1473 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1474 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1475
1476
1477 # The aliases save the names the user supplied, while $host etc.
1478 # will get canonicalized.
1479 test -n "$target_alias" &&
1480   test "$program_prefix$program_suffix$program_transform_name" = \
1481     NONENONEs,x,x, &&
1482   program_prefix=${target_alias}-
1483
1484 ac_ext=c
1485 ac_cpp='$CPP $CPPFLAGS'
1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489 if test -n "$ac_tool_prefix"; then
1490   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1491 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1492 echo "$as_me:$LINENO: checking for $ac_word" >&5
1493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1494 if test "${ac_cv_prog_CC+set}" = set; then
1495   echo $ECHO_N "(cached) $ECHO_C" >&6
1496 else
1497   if test -n "$CC"; then
1498   ac_cv_prog_CC="$CC" # Let the user override the test.
1499 else
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501 for as_dir in $PATH
1502 do
1503   IFS=$as_save_IFS
1504   test -z "$as_dir" && as_dir=.
1505   for ac_exec_ext in '' $ac_executable_extensions; do
1506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1509     break 2
1510   fi
1511 done
1512 done
1513
1514 fi
1515 fi
1516 CC=$ac_cv_prog_CC
1517 if test -n "$CC"; then
1518   echo "$as_me:$LINENO: result: $CC" >&5
1519 echo "${ECHO_T}$CC" >&6
1520 else
1521   echo "$as_me:$LINENO: result: no" >&5
1522 echo "${ECHO_T}no" >&6
1523 fi
1524
1525 fi
1526 if test -z "$ac_cv_prog_CC"; then
1527   ac_ct_CC=$CC
1528   # Extract the first word of "gcc", so it can be a program name with args.
1529 set dummy gcc; ac_word=$2
1530 echo "$as_me:$LINENO: checking for $ac_word" >&5
1531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1533   echo $ECHO_N "(cached) $ECHO_C" >&6
1534 else
1535   if test -n "$ac_ct_CC"; then
1536   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1537 else
1538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 for as_dir in $PATH
1540 do
1541   IFS=$as_save_IFS
1542   test -z "$as_dir" && as_dir=.
1543   for ac_exec_ext in '' $ac_executable_extensions; do
1544   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1545     ac_cv_prog_ac_ct_CC="gcc"
1546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547     break 2
1548   fi
1549 done
1550 done
1551
1552 fi
1553 fi
1554 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1555 if test -n "$ac_ct_CC"; then
1556   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1557 echo "${ECHO_T}$ac_ct_CC" >&6
1558 else
1559   echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1561 fi
1562
1563   CC=$ac_ct_CC
1564 else
1565   CC="$ac_cv_prog_CC"
1566 fi
1567
1568 if test -z "$CC"; then
1569   if test -n "$ac_tool_prefix"; then
1570   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1571 set dummy ${ac_tool_prefix}cc; ac_word=$2
1572 echo "$as_me:$LINENO: checking for $ac_word" >&5
1573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1574 if test "${ac_cv_prog_CC+set}" = set; then
1575   echo $ECHO_N "(cached) $ECHO_C" >&6
1576 else
1577   if test -n "$CC"; then
1578   ac_cv_prog_CC="$CC" # Let the user override the test.
1579 else
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 for as_dir in $PATH
1582 do
1583   IFS=$as_save_IFS
1584   test -z "$as_dir" && as_dir=.
1585   for ac_exec_ext in '' $ac_executable_extensions; do
1586   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1587     ac_cv_prog_CC="${ac_tool_prefix}cc"
1588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589     break 2
1590   fi
1591 done
1592 done
1593
1594 fi
1595 fi
1596 CC=$ac_cv_prog_CC
1597 if test -n "$CC"; then
1598   echo "$as_me:$LINENO: result: $CC" >&5
1599 echo "${ECHO_T}$CC" >&6
1600 else
1601   echo "$as_me:$LINENO: result: no" >&5
1602 echo "${ECHO_T}no" >&6
1603 fi
1604
1605 fi
1606 if test -z "$ac_cv_prog_CC"; then
1607   ac_ct_CC=$CC
1608   # Extract the first word of "cc", so it can be a program name with args.
1609 set dummy cc; ac_word=$2
1610 echo "$as_me:$LINENO: checking for $ac_word" >&5
1611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1613   echo $ECHO_N "(cached) $ECHO_C" >&6
1614 else
1615   if test -n "$ac_ct_CC"; then
1616   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1617 else
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 for as_dir in $PATH
1620 do
1621   IFS=$as_save_IFS
1622   test -z "$as_dir" && as_dir=.
1623   for ac_exec_ext in '' $ac_executable_extensions; do
1624   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625     ac_cv_prog_ac_ct_CC="cc"
1626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1627     break 2
1628   fi
1629 done
1630 done
1631
1632 fi
1633 fi
1634 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1635 if test -n "$ac_ct_CC"; then
1636   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1637 echo "${ECHO_T}$ac_ct_CC" >&6
1638 else
1639   echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1641 fi
1642
1643   CC=$ac_ct_CC
1644 else
1645   CC="$ac_cv_prog_CC"
1646 fi
1647
1648 fi
1649 if test -z "$CC"; then
1650   # Extract the first word of "cc", so it can be a program name with args.
1651 set dummy cc; ac_word=$2
1652 echo "$as_me:$LINENO: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654 if test "${ac_cv_prog_CC+set}" = set; then
1655   echo $ECHO_N "(cached) $ECHO_C" >&6
1656 else
1657   if test -n "$CC"; then
1658   ac_cv_prog_CC="$CC" # Let the user override the test.
1659 else
1660   ac_prog_rejected=no
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 for as_dir in $PATH
1663 do
1664   IFS=$as_save_IFS
1665   test -z "$as_dir" && as_dir=.
1666   for ac_exec_ext in '' $ac_executable_extensions; do
1667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1669        ac_prog_rejected=yes
1670        continue
1671      fi
1672     ac_cv_prog_CC="cc"
1673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674     break 2
1675   fi
1676 done
1677 done
1678
1679 if test $ac_prog_rejected = yes; then
1680   # We found a bogon in the path, so make sure we never use it.
1681   set dummy $ac_cv_prog_CC
1682   shift
1683   if test $# != 0; then
1684     # We chose a different compiler from the bogus one.
1685     # However, it has the same basename, so the bogon will be chosen
1686     # first if we set CC to just the basename; use the full file name.
1687     shift
1688     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1689   fi
1690 fi
1691 fi
1692 fi
1693 CC=$ac_cv_prog_CC
1694 if test -n "$CC"; then
1695   echo "$as_me:$LINENO: result: $CC" >&5
1696 echo "${ECHO_T}$CC" >&6
1697 else
1698   echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1700 fi
1701
1702 fi
1703 if test -z "$CC"; then
1704   if test -n "$ac_tool_prefix"; then
1705   for ac_prog in cl
1706   do
1707     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_CC+set}" = set; then
1712   echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714   if test -n "$CC"; then
1715   ac_cv_prog_CC="$CC" # Let the user override the test.
1716 else
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 for as_dir in $PATH
1719 do
1720   IFS=$as_save_IFS
1721   test -z "$as_dir" && as_dir=.
1722   for ac_exec_ext in '' $ac_executable_extensions; do
1723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726     break 2
1727   fi
1728 done
1729 done
1730
1731 fi
1732 fi
1733 CC=$ac_cv_prog_CC
1734 if test -n "$CC"; then
1735   echo "$as_me:$LINENO: result: $CC" >&5
1736 echo "${ECHO_T}$CC" >&6
1737 else
1738   echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1740 fi
1741
1742     test -n "$CC" && break
1743   done
1744 fi
1745 if test -z "$CC"; then
1746   ac_ct_CC=$CC
1747   for ac_prog in cl
1748 do
1749   # Extract the first word of "$ac_prog", so it can be a program name with args.
1750 set dummy $ac_prog; ac_word=$2
1751 echo "$as_me:$LINENO: checking for $ac_word" >&5
1752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1754   echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756   if test -n "$ac_ct_CC"; then
1757   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1758 else
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 for as_dir in $PATH
1761 do
1762   IFS=$as_save_IFS
1763   test -z "$as_dir" && as_dir=.
1764   for ac_exec_ext in '' $ac_executable_extensions; do
1765   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766     ac_cv_prog_ac_ct_CC="$ac_prog"
1767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768     break 2
1769   fi
1770 done
1771 done
1772
1773 fi
1774 fi
1775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1776 if test -n "$ac_ct_CC"; then
1777   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1778 echo "${ECHO_T}$ac_ct_CC" >&6
1779 else
1780   echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6
1782 fi
1783
1784   test -n "$ac_ct_CC" && break
1785 done
1786
1787   CC=$ac_ct_CC
1788 fi
1789
1790 fi
1791
1792
1793 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1794 See \`config.log' for more details." >&5
1795 echo "$as_me: error: no acceptable C compiler found in \$PATH
1796 See \`config.log' for more details." >&2;}
1797    { (exit 1); exit 1; }; }
1798
1799 # Provide some information about the compiler.
1800 echo "$as_me:$LINENO:" \
1801      "checking for C compiler version" >&5
1802 ac_compiler=`set X $ac_compile; echo $2`
1803 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1804   (eval $ac_compiler --version </dev/null >&5) 2>&5
1805   ac_status=$?
1806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1807   (exit $ac_status); }
1808 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1809   (eval $ac_compiler -v </dev/null >&5) 2>&5
1810   ac_status=$?
1811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1812   (exit $ac_status); }
1813 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1814   (eval $ac_compiler -V </dev/null >&5) 2>&5
1815   ac_status=$?
1816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1817   (exit $ac_status); }
1818
1819 cat >conftest.$ac_ext <<_ACEOF
1820 /* confdefs.h.  */
1821 _ACEOF
1822 cat confdefs.h >>conftest.$ac_ext
1823 cat >>conftest.$ac_ext <<_ACEOF
1824 /* end confdefs.h.  */
1825
1826 int
1827 main ()
1828 {
1829
1830   ;
1831   return 0;
1832 }
1833 _ACEOF
1834 ac_clean_files_save=$ac_clean_files
1835 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1836 # Try to create an executable without -o first, disregard a.out.
1837 # It will help us diagnose broken compilers, and finding out an intuition
1838 # of exeext.
1839 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1840 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1841 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1842 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1843   (eval $ac_link_default) 2>&5
1844   ac_status=$?
1845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846   (exit $ac_status); }; then
1847   # Find the output, starting from the most likely.  This scheme is
1848 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1849 # resort.
1850
1851 # Be careful to initialize this variable, since it used to be cached.
1852 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1853 ac_cv_exeext=
1854 # b.out is created by i960 compilers.
1855 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1856 do
1857   test -f "$ac_file" || continue
1858   case $ac_file in
1859     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1860         ;;
1861     conftest.$ac_ext )
1862         # This is the source file.
1863         ;;
1864     [ab].out )
1865         # We found the default executable, but exeext='' is most
1866         # certainly right.
1867         break;;
1868     *.* )
1869         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1870         # FIXME: I believe we export ac_cv_exeext for Libtool,
1871         # but it would be cool to find out if it's true.  Does anybody
1872         # maintain Libtool? --akim.
1873         export ac_cv_exeext
1874         break;;
1875     * )
1876         break;;
1877   esac
1878 done
1879 else
1880   echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1882
1883 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1884 See \`config.log' for more details." >&5
1885 echo "$as_me: error: C compiler cannot create executables
1886 See \`config.log' for more details." >&2;}
1887    { (exit 77); exit 77; }; }
1888 fi
1889
1890 ac_exeext=$ac_cv_exeext
1891 echo "$as_me:$LINENO: result: $ac_file" >&5
1892 echo "${ECHO_T}$ac_file" >&6
1893
1894 # Check the compiler produces executables we can run.  If not, either
1895 # the compiler is broken, or we cross compile.
1896 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1897 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1898 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1899 # If not cross compiling, check that we can run a simple program.
1900 if test "$cross_compiling" != yes; then
1901   if { ac_try='./$ac_file'
1902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1903   (eval $ac_try) 2>&5
1904   ac_status=$?
1905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906   (exit $ac_status); }; }; then
1907     cross_compiling=no
1908   else
1909     if test "$cross_compiling" = maybe; then
1910         cross_compiling=yes
1911     else
1912         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1913 If you meant to cross compile, use \`--host'.
1914 See \`config.log' for more details." >&5
1915 echo "$as_me: error: cannot run C compiled programs.
1916 If you meant to cross compile, use \`--host'.
1917 See \`config.log' for more details." >&2;}
1918    { (exit 1); exit 1; }; }
1919     fi
1920   fi
1921 fi
1922 echo "$as_me:$LINENO: result: yes" >&5
1923 echo "${ECHO_T}yes" >&6
1924
1925 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1926 ac_clean_files=$ac_clean_files_save
1927 # Check the compiler produces executables we can run.  If not, either
1928 # the compiler is broken, or we cross compile.
1929 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1930 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1931 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1932 echo "${ECHO_T}$cross_compiling" >&6
1933
1934 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1935 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1937   (eval $ac_link) 2>&5
1938   ac_status=$?
1939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940   (exit $ac_status); }; then
1941   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1942 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1943 # work properly (i.e., refer to `conftest.exe'), while it won't with
1944 # `rm'.
1945 for ac_file in conftest.exe conftest conftest.*; do
1946   test -f "$ac_file" || continue
1947   case $ac_file in
1948     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1949     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1950           export ac_cv_exeext
1951           break;;
1952     * ) break;;
1953   esac
1954 done
1955 else
1956   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1957 See \`config.log' for more details." >&5
1958 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1959 See \`config.log' for more details." >&2;}
1960    { (exit 1); exit 1; }; }
1961 fi
1962
1963 rm -f conftest$ac_cv_exeext
1964 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1965 echo "${ECHO_T}$ac_cv_exeext" >&6
1966
1967 rm -f conftest.$ac_ext
1968 EXEEXT=$ac_cv_exeext
1969 ac_exeext=$EXEEXT
1970 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1971 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1972 if test "${ac_cv_objext+set}" = set; then
1973   echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975   cat >conftest.$ac_ext <<_ACEOF
1976 /* confdefs.h.  */
1977 _ACEOF
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h.  */
1981
1982 int
1983 main ()
1984 {
1985
1986   ;
1987   return 0;
1988 }
1989 _ACEOF
1990 rm -f conftest.o conftest.obj
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992   (eval $ac_compile) 2>&5
1993   ac_status=$?
1994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995   (exit $ac_status); }; then
1996   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1997   case $ac_file in
1998     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1999     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2000        break;;
2001   esac
2002 done
2003 else
2004   echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2006
2007 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2008 See \`config.log' for more details." >&5
2009 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2010 See \`config.log' for more details." >&2;}
2011    { (exit 1); exit 1; }; }
2012 fi
2013
2014 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2015 fi
2016 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2017 echo "${ECHO_T}$ac_cv_objext" >&6
2018 OBJEXT=$ac_cv_objext
2019 ac_objext=$OBJEXT
2020 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2021 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2022 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2023   echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025   cat >conftest.$ac_ext <<_ACEOF
2026 /* confdefs.h.  */
2027 _ACEOF
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h.  */
2031
2032 int
2033 main ()
2034 {
2035 #ifndef __GNUC__
2036        choke me
2037 #endif
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_compiler_gnu=yes
2066 else
2067   echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2069
2070 ac_compiler_gnu=no
2071 fi
2072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2073 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2074
2075 fi
2076 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2077 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2078 GCC=`test $ac_compiler_gnu = yes && echo yes`
2079 ac_test_CFLAGS=${CFLAGS+set}
2080 ac_save_CFLAGS=$CFLAGS
2081 CFLAGS="-g"
2082 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2083 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2084 if test "${ac_cv_prog_cc_g+set}" = set; then
2085   echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087   cat >conftest.$ac_ext <<_ACEOF
2088 /* confdefs.h.  */
2089 _ACEOF
2090 cat confdefs.h >>conftest.$ac_ext
2091 cat >>conftest.$ac_ext <<_ACEOF
2092 /* end confdefs.h.  */
2093
2094 int
2095 main ()
2096 {
2097
2098   ;
2099   return 0;
2100 }
2101 _ACEOF
2102 rm -f conftest.$ac_objext
2103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2104   (eval $ac_compile) 2>conftest.er1
2105   ac_status=$?
2106   grep -v '^ *+' conftest.er1 >conftest.err
2107   rm -f conftest.er1
2108   cat conftest.err >&5
2109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110   (exit $ac_status); } &&
2111          { ac_try='test -z "$ac_c_werror_flag"
2112                          || test ! -s conftest.err'
2113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114   (eval $ac_try) 2>&5
2115   ac_status=$?
2116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117   (exit $ac_status); }; } &&
2118          { ac_try='test -s conftest.$ac_objext'
2119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120   (eval $ac_try) 2>&5
2121   ac_status=$?
2122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123   (exit $ac_status); }; }; then
2124   ac_cv_prog_cc_g=yes
2125 else
2126   echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2128
2129 ac_cv_prog_cc_g=no
2130 fi
2131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2132 fi
2133 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2134 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2135 if test "$ac_test_CFLAGS" = set; then
2136   CFLAGS=$ac_save_CFLAGS
2137 elif test $ac_cv_prog_cc_g = yes; then
2138   if test "$GCC" = yes; then
2139     CFLAGS="-g -O2"
2140   else
2141     CFLAGS="-g"
2142   fi
2143 else
2144   if test "$GCC" = yes; then
2145     CFLAGS="-O2"
2146   else
2147     CFLAGS=
2148   fi
2149 fi
2150 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2151 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2152 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   ac_cv_prog_cc_stdc=no
2156 ac_save_CC=$CC
2157 cat >conftest.$ac_ext <<_ACEOF
2158 /* confdefs.h.  */
2159 _ACEOF
2160 cat confdefs.h >>conftest.$ac_ext
2161 cat >>conftest.$ac_ext <<_ACEOF
2162 /* end confdefs.h.  */
2163 #include <stdarg.h>
2164 #include <stdio.h>
2165 #include <sys/types.h>
2166 #include <sys/stat.h>
2167 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2168 struct buf { int x; };
2169 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2170 static char *e (p, i)
2171      char **p;
2172      int i;
2173 {
2174   return p[i];
2175 }
2176 static char *f (char * (*g) (char **, int), char **p, ...)
2177 {
2178   char *s;
2179   va_list v;
2180   va_start (v,p);
2181   s = g (p, va_arg (v,int));
2182   va_end (v);
2183   return s;
2184 }
2185
2186 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2187    function prototypes and stuff, but not '\xHH' hex character constants.
2188    These don't provoke an error unfortunately, instead are silently treated
2189    as 'x'.  The following induces an error, until -std1 is added to get
2190    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2191    array size at least.  It's necessary to write '\x00'==0 to get something
2192    that's true only with -std1.  */
2193 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2194
2195 int test (int i, double x);
2196 struct s1 {int (*f) (int a);};
2197 struct s2 {int (*f) (double a);};
2198 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2199 int argc;
2200 char **argv;
2201 int
2202 main ()
2203 {
2204 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2205   ;
2206   return 0;
2207 }
2208 _ACEOF
2209 # Don't try gcc -ansi; that turns off useful extensions and
2210 # breaks some systems' header files.
2211 # AIX                   -qlanglvl=ansi
2212 # Ultrix and OSF/1      -std1
2213 # HP-UX 10.20 and later -Ae
2214 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2215 # SVR4                  -Xc -D__EXTENSIONS__
2216 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2217 do
2218   CC="$ac_save_CC $ac_arg"
2219   rm -f conftest.$ac_objext
2220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221   (eval $ac_compile) 2>conftest.er1
2222   ac_status=$?
2223   grep -v '^ *+' conftest.er1 >conftest.err
2224   rm -f conftest.er1
2225   cat conftest.err >&5
2226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227   (exit $ac_status); } &&
2228          { ac_try='test -z "$ac_c_werror_flag"
2229                          || test ! -s conftest.err'
2230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231   (eval $ac_try) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; } &&
2235          { ac_try='test -s conftest.$ac_objext'
2236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237   (eval $ac_try) 2>&5
2238   ac_status=$?
2239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240   (exit $ac_status); }; }; then
2241   ac_cv_prog_cc_stdc=$ac_arg
2242 break
2243 else
2244   echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2246
2247 fi
2248 rm -f conftest.err conftest.$ac_objext
2249 done
2250 rm -f conftest.$ac_ext conftest.$ac_objext
2251 CC=$ac_save_CC
2252
2253 fi
2254
2255 case "x$ac_cv_prog_cc_stdc" in
2256   x|xno)
2257     echo "$as_me:$LINENO: result: none needed" >&5
2258 echo "${ECHO_T}none needed" >&6 ;;
2259   *)
2260     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2261 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2262     CC="$CC $ac_cv_prog_cc_stdc" ;;
2263 esac
2264
2265 # Some people use a C++ compiler to compile C.  Since we use `exit',
2266 # in C++ we need to declare it.  In case someone uses the same compiler
2267 # for both compiling C and C++ we need to have the C++ compiler decide
2268 # the declaration of exit, since it's the most demanding environment.
2269 cat >conftest.$ac_ext <<_ACEOF
2270 #ifndef __cplusplus
2271   choke me
2272 #endif
2273 _ACEOF
2274 rm -f conftest.$ac_objext
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276   (eval $ac_compile) 2>conftest.er1
2277   ac_status=$?
2278   grep -v '^ *+' conftest.er1 >conftest.err
2279   rm -f conftest.er1
2280   cat conftest.err >&5
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); } &&
2283          { ac_try='test -z "$ac_c_werror_flag"
2284                          || test ! -s conftest.err'
2285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286   (eval $ac_try) 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); }; } &&
2290          { ac_try='test -s conftest.$ac_objext'
2291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292   (eval $ac_try) 2>&5
2293   ac_status=$?
2294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295   (exit $ac_status); }; }; then
2296   for ac_declaration in \
2297    '' \
2298    'extern "C" void std::exit (int) throw (); using std::exit;' \
2299    'extern "C" void std::exit (int); using std::exit;' \
2300    'extern "C" void exit (int) throw ();' \
2301    'extern "C" void exit (int);' \
2302    'void exit (int);'
2303 do
2304   cat >conftest.$ac_ext <<_ACEOF
2305 /* confdefs.h.  */
2306 _ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h.  */
2310 $ac_declaration
2311 #include <stdlib.h>
2312 int
2313 main ()
2314 {
2315 exit (42);
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322   (eval $ac_compile) 2>conftest.er1
2323   ac_status=$?
2324   grep -v '^ *+' conftest.er1 >conftest.err
2325   rm -f conftest.er1
2326   cat conftest.err >&5
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); } &&
2329          { ac_try='test -z "$ac_c_werror_flag"
2330                          || test ! -s conftest.err'
2331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332   (eval $ac_try) 2>&5
2333   ac_status=$?
2334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335   (exit $ac_status); }; } &&
2336          { ac_try='test -s conftest.$ac_objext'
2337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338   (eval $ac_try) 2>&5
2339   ac_status=$?
2340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341   (exit $ac_status); }; }; then
2342   :
2343 else
2344   echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2346
2347 continue
2348 fi
2349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350   cat >conftest.$ac_ext <<_ACEOF
2351 /* confdefs.h.  */
2352 _ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h.  */
2356 $ac_declaration
2357 int
2358 main ()
2359 {
2360 exit (42);
2361   ;
2362   return 0;
2363 }
2364 _ACEOF
2365 rm -f conftest.$ac_objext
2366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367   (eval $ac_compile) 2>conftest.er1
2368   ac_status=$?
2369   grep -v '^ *+' conftest.er1 >conftest.err
2370   rm -f conftest.er1
2371   cat conftest.err >&5
2372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373   (exit $ac_status); } &&
2374          { ac_try='test -z "$ac_c_werror_flag"
2375                          || test ! -s conftest.err'
2376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377   (eval $ac_try) 2>&5
2378   ac_status=$?
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); }; } &&
2381          { ac_try='test -s conftest.$ac_objext'
2382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383   (eval $ac_try) 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }; }; then
2387   break
2388 else
2389   echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2391
2392 fi
2393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2394 done
2395 rm -f conftest*
2396 if test -n "$ac_declaration"; then
2397   echo '#ifdef __cplusplus' >>confdefs.h
2398   echo $ac_declaration      >>confdefs.h
2399   echo '#endif'             >>confdefs.h
2400 fi
2401
2402 else
2403   echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2405
2406 fi
2407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2408 ac_ext=c
2409 ac_cpp='$CPP $CPPFLAGS'
2410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413
2414 # Find a good install program.  We prefer a C program (faster),
2415 # so one script is as good as another.  But avoid the broken or
2416 # incompatible versions:
2417 # SysV /etc/install, /usr/sbin/install
2418 # SunOS /usr/etc/install
2419 # IRIX /sbin/install
2420 # AIX /bin/install
2421 # AmigaOS /C/install, which installs bootblocks on floppy discs
2422 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2423 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2424 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2425 # OS/2's system install, which has a completely different semantic
2426 # ./install, which can be erroneously created by make from ./install.sh.
2427 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2428 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2429 if test -z "$INSTALL"; then
2430 if test "${ac_cv_path_install+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2435 do
2436   IFS=$as_save_IFS
2437   test -z "$as_dir" && as_dir=.
2438   # Account for people who put trailing slashes in PATH elements.
2439 case $as_dir/ in
2440   ./ | .// | /cC/* | \
2441   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2442   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2443   /usr/ucb/* ) ;;
2444   *)
2445     # OSF1 and SCO ODT 3.0 have their own names for install.
2446     # Don't use installbsd from OSF since it installs stuff as root
2447     # by default.
2448     for ac_prog in ginstall scoinst install; do
2449       for ac_exec_ext in '' $ac_executable_extensions; do
2450         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2451           if test $ac_prog = install &&
2452             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2453             # AIX install.  It has an incompatible calling convention.
2454             :
2455           elif test $ac_prog = install &&
2456             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457             # program-specific install script used by HP pwplus--don't use.
2458             :
2459           else
2460             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2461             break 3
2462           fi
2463         fi
2464       done
2465     done
2466     ;;
2467 esac
2468 done
2469
2470
2471 fi
2472   if test "${ac_cv_path_install+set}" = set; then
2473     INSTALL=$ac_cv_path_install
2474   else
2475     # As a last resort, use the slow shell script.  We don't cache a
2476     # path for INSTALL within a source directory, because that will
2477     # break other packages using the cache if that directory is
2478     # removed, or if the path is relative.
2479     INSTALL=$ac_install_sh
2480   fi
2481 fi
2482 echo "$as_me:$LINENO: result: $INSTALL" >&5
2483 echo "${ECHO_T}$INSTALL" >&6
2484
2485 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2486 # It thinks the first close brace ends the variable substitution.
2487 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2488
2489 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2490
2491 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2492
2493
2494 if test "$ac_libiberty" = "NONE"; then
2495
2496
2497 echo "$as_me:$LINENO: checking for objalloc_create in -liberty" >&5
2498 echo $ECHO_N "checking for objalloc_create in -liberty... $ECHO_C" >&6
2499 if test "${ac_cv_lib_iberty_objalloc_create+set}" = set; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502   ac_check_lib_save_LIBS=$LIBS
2503 LIBS="-liberty  $LIBS"
2504 cat >conftest.$ac_ext <<_ACEOF
2505 /* confdefs.h.  */
2506 _ACEOF
2507 cat confdefs.h >>conftest.$ac_ext
2508 cat >>conftest.$ac_ext <<_ACEOF
2509 /* end confdefs.h.  */
2510
2511 /* Override any gcc2 internal prototype to avoid an error.  */
2512 #ifdef __cplusplus
2513 extern "C"
2514 #endif
2515 /* We use char because int might match the return type of a gcc2
2516    builtin and then its argument prototype would still apply.  */
2517 char objalloc_create ();
2518 int
2519 main ()
2520 {
2521 objalloc_create ();
2522   ;
2523   return 0;
2524 }
2525 _ACEOF
2526 rm -f conftest.$ac_objext conftest$ac_exeext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2528   (eval $ac_link) 2>conftest.er1
2529   ac_status=$?
2530   grep -v '^ *+' conftest.er1 >conftest.err
2531   rm -f conftest.er1
2532   cat conftest.err >&5
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); } &&
2535          { ac_try='test -z "$ac_c_werror_flag"
2536                          || test ! -s conftest.err'
2537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538   (eval $ac_try) 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; } &&
2542          { ac_try='test -s conftest$ac_exeext'
2543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544   (eval $ac_try) 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }; }; then
2548   ac_cv_lib_iberty_objalloc_create=yes
2549 else
2550   echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2552
2553 ac_cv_lib_iberty_objalloc_create=no
2554 fi
2555 rm -f conftest.err conftest.$ac_objext \
2556       conftest$ac_exeext conftest.$ac_ext
2557 LIBS=$ac_check_lib_save_LIBS
2558 fi
2559 echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_objalloc_create" >&5
2560 echo "${ECHO_T}$ac_cv_lib_iberty_objalloc_create" >&6
2561 if test $ac_cv_lib_iberty_objalloc_create = yes; then
2562   cat >>confdefs.h <<_ACEOF
2563 #define HAVE_LIBIBERTY 1
2564 _ACEOF
2565
2566   LIBS="-liberty $LIBS"
2567
2568 fi
2569
2570   ac_libiberty=auto
2571 else
2572   LIBS="$ac_libiberty $LIBS"
2573 fi
2574 if test "$ac_libbfd" = "NONE"; then
2575
2576 echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5
2577 echo $ECHO_N "checking for bfd_openr in -lbfd... $ECHO_C" >&6
2578 if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then
2579   echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581   ac_check_lib_save_LIBS=$LIBS
2582 LIBS="-lbfd  $LIBS"
2583 cat >conftest.$ac_ext <<_ACEOF
2584 /* confdefs.h.  */
2585 _ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h.  */
2589
2590 /* Override any gcc2 internal prototype to avoid an error.  */
2591 #ifdef __cplusplus
2592 extern "C"
2593 #endif
2594 /* We use char because int might match the return type of a gcc2
2595    builtin and then its argument prototype would still apply.  */
2596 char bfd_openr ();
2597 int
2598 main ()
2599 {
2600 bfd_openr ();
2601   ;
2602   return 0;
2603 }
2604 _ACEOF
2605 rm -f conftest.$ac_objext conftest$ac_exeext
2606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2607   (eval $ac_link) 2>conftest.er1
2608   ac_status=$?
2609   grep -v '^ *+' conftest.er1 >conftest.err
2610   rm -f conftest.er1
2611   cat conftest.err >&5
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); } &&
2614          { ac_try='test -z "$ac_c_werror_flag"
2615                          || test ! -s conftest.err'
2616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617   (eval $ac_try) 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); }; } &&
2621          { ac_try='test -s conftest$ac_exeext'
2622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623   (eval $ac_try) 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; }; then
2627   ac_cv_lib_bfd_bfd_openr=yes
2628 else
2629   echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632 ac_cv_lib_bfd_bfd_openr=no
2633 fi
2634 rm -f conftest.err conftest.$ac_objext \
2635       conftest$ac_exeext conftest.$ac_ext
2636 LIBS=$ac_check_lib_save_LIBS
2637 fi
2638 echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5
2639 echo "${ECHO_T}$ac_cv_lib_bfd_bfd_openr" >&6
2640 if test $ac_cv_lib_bfd_bfd_openr = yes; then
2641   cat >>confdefs.h <<_ACEOF
2642 #define HAVE_LIBBFD 1
2643 _ACEOF
2644
2645   LIBS="-lbfd $LIBS"
2646
2647 fi
2648
2649   ac_libbfd=auto
2650 else
2651   LIBS="$ac_libbfd $LIBS"
2652 fi
2653
2654 bfd_include_dir=
2655 if test "$ac_bfd_include_dir" != "NONE"; then
2656   bfd_include_dir="-I$ac_bfd_include_dir"
2657 fi
2658
2659 binutils_include_dir=
2660 if test "$ac_binutils_include_dir" != "NONE"; then
2661   binutils_include_dir="-I$ac_binutils_include_dir"
2662 fi
2663
2664 binutils_ldscript_dir=
2665 if test "$ac_binutils_ldscript_dir" = "NONE"; then
2666   ac_binutils_ldscript_dir="\${TOOLDIR}/../${target_alias}/lib"
2667 fi
2668 binutils_ldscript_dir="$ac_binutils_ldscript_dir"
2669
2670 if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then
2671         { { echo "$as_me:$LINENO: error:
2672
2673 You need to specify the location of the libfd.a and libiberty.a
2674 host libraries from the binutils package.
2675
2676 Run configure again specifying these options:
2677
2678   ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
2679 " >&5
2680 echo "$as_me: error:
2681
2682 You need to specify the location of the libfd.a and libiberty.a
2683 host libraries from the binutils package.
2684
2685 Run configure again specifying these options:
2686
2687   ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
2688 " >&2;}
2689    { (exit 1); exit 1; }; }
2690 fi
2691
2692 if test "$ac_bfd_include_dir" = "NONE" ; then
2693         { { echo "$as_me:$LINENO: error:
2694
2695 You need to specify the location of the bfd.h header from a
2696 configured/compiled version of the binutils package for your target.
2697 Without this your elf2flt may crash as it will try to use the
2698 systems bfd.h which may be from a different binutils package.
2699
2700 Run configure again specifying these options:
2701
2702   ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
2703 " >&5
2704 echo "$as_me: error:
2705
2706 You need to specify the location of the bfd.h header from a
2707 configured/compiled version of the binutils package for your target.
2708 Without this your elf2flt may crash as it will try to use the
2709 systems bfd.h which may be from a different binutils package.
2710
2711 Run configure again specifying these options:
2712
2713   ./configure --target=<ARCH> --with-bfd-include-dir=<dir> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>
2714 " >&2;}
2715    { (exit 1); exit 1; }; }
2716 fi
2717
2718 ac_ext=c
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2724 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2725 # On Suns, sometimes $CPP names a directory.
2726 if test -n "$CPP" && test -d "$CPP"; then
2727   CPP=
2728 fi
2729 if test -z "$CPP"; then
2730   if test "${ac_cv_prog_CPP+set}" = set; then
2731   echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733       # Double quotes because CPP needs to be expanded
2734     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2735     do
2736       ac_preproc_ok=false
2737 for ac_c_preproc_warn_flag in '' yes
2738 do
2739   # Use a header file that comes with gcc, so configuring glibc
2740   # with a fresh cross-compiler works.
2741   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2742   # <limits.h> exists even on freestanding compilers.
2743   # On the NeXT, cc -E runs the code through the compiler's parser,
2744   # not just through cpp. "Syntax error" is here to catch this case.
2745   cat >conftest.$ac_ext <<_ACEOF
2746 /* confdefs.h.  */
2747 _ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h.  */
2751 #ifdef __STDC__
2752 # include <limits.h>
2753 #else
2754 # include <assert.h>
2755 #endif
2756                      Syntax error
2757 _ACEOF
2758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2759   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2760   ac_status=$?
2761   grep -v '^ *+' conftest.er1 >conftest.err
2762   rm -f conftest.er1
2763   cat conftest.err >&5
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); } >/dev/null; then
2766   if test -s conftest.err; then
2767     ac_cpp_err=$ac_c_preproc_warn_flag
2768     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2769   else
2770     ac_cpp_err=
2771   fi
2772 else
2773   ac_cpp_err=yes
2774 fi
2775 if test -z "$ac_cpp_err"; then
2776   :
2777 else
2778   echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2780
2781   # Broken: fails on valid input.
2782 continue
2783 fi
2784 rm -f conftest.err conftest.$ac_ext
2785
2786   # OK, works on sane cases.  Now check whether non-existent headers
2787   # can be detected and how.
2788   cat >conftest.$ac_ext <<_ACEOF
2789 /* confdefs.h.  */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h.  */
2794 #include <ac_nonexistent.h>
2795 _ACEOF
2796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2798   ac_status=$?
2799   grep -v '^ *+' conftest.er1 >conftest.err
2800   rm -f conftest.er1
2801   cat conftest.err >&5
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); } >/dev/null; then
2804   if test -s conftest.err; then
2805     ac_cpp_err=$ac_c_preproc_warn_flag
2806     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2807   else
2808     ac_cpp_err=
2809   fi
2810 else
2811   ac_cpp_err=yes
2812 fi
2813 if test -z "$ac_cpp_err"; then
2814   # Broken: success on invalid input.
2815 continue
2816 else
2817   echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2819
2820   # Passes both tests.
2821 ac_preproc_ok=:
2822 break
2823 fi
2824 rm -f conftest.err conftest.$ac_ext
2825
2826 done
2827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2828 rm -f conftest.err conftest.$ac_ext
2829 if $ac_preproc_ok; then
2830   break
2831 fi
2832
2833     done
2834     ac_cv_prog_CPP=$CPP
2835
2836 fi
2837   CPP=$ac_cv_prog_CPP
2838 else
2839   ac_cv_prog_CPP=$CPP
2840 fi
2841 echo "$as_me:$LINENO: result: $CPP" >&5
2842 echo "${ECHO_T}$CPP" >&6
2843 ac_preproc_ok=false
2844 for ac_c_preproc_warn_flag in '' yes
2845 do
2846   # Use a header file that comes with gcc, so configuring glibc
2847   # with a fresh cross-compiler works.
2848   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2849   # <limits.h> exists even on freestanding compilers.
2850   # On the NeXT, cc -E runs the code through the compiler's parser,
2851   # not just through cpp. "Syntax error" is here to catch this case.
2852   cat >conftest.$ac_ext <<_ACEOF
2853 /* confdefs.h.  */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h.  */
2858 #ifdef __STDC__
2859 # include <limits.h>
2860 #else
2861 # include <assert.h>
2862 #endif
2863                      Syntax error
2864 _ACEOF
2865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2866   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2867   ac_status=$?
2868   grep -v '^ *+' conftest.er1 >conftest.err
2869   rm -f conftest.er1
2870   cat conftest.err >&5
2871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872   (exit $ac_status); } >/dev/null; then
2873   if test -s conftest.err; then
2874     ac_cpp_err=$ac_c_preproc_warn_flag
2875     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2876   else
2877     ac_cpp_err=
2878   fi
2879 else
2880   ac_cpp_err=yes
2881 fi
2882 if test -z "$ac_cpp_err"; then
2883   :
2884 else
2885   echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2887
2888   # Broken: fails on valid input.
2889 continue
2890 fi
2891 rm -f conftest.err conftest.$ac_ext
2892
2893   # OK, works on sane cases.  Now check whether non-existent headers
2894   # can be detected and how.
2895   cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h.  */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h.  */
2901 #include <ac_nonexistent.h>
2902 _ACEOF
2903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2904   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2905   ac_status=$?
2906   grep -v '^ *+' conftest.er1 >conftest.err
2907   rm -f conftest.er1
2908   cat conftest.err >&5
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); } >/dev/null; then
2911   if test -s conftest.err; then
2912     ac_cpp_err=$ac_c_preproc_warn_flag
2913     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2914   else
2915     ac_cpp_err=
2916   fi
2917 else
2918   ac_cpp_err=yes
2919 fi
2920 if test -z "$ac_cpp_err"; then
2921   # Broken: success on invalid input.
2922 continue
2923 else
2924   echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2926
2927   # Passes both tests.
2928 ac_preproc_ok=:
2929 break
2930 fi
2931 rm -f conftest.err conftest.$ac_ext
2932
2933 done
2934 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2935 rm -f conftest.err conftest.$ac_ext
2936 if $ac_preproc_ok; then
2937   :
2938 else
2939   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2940 See \`config.log' for more details." >&5
2941 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2942 See \`config.log' for more details." >&2;}
2943    { (exit 1); exit 1; }; }
2944 fi
2945
2946 ac_ext=c
2947 ac_cpp='$CPP $CPPFLAGS'
2948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951
2952
2953 echo "$as_me:$LINENO: checking for egrep" >&5
2954 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2955 if test "${ac_cv_prog_egrep+set}" = set; then
2956   echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2959     then ac_cv_prog_egrep='grep -E'
2960     else ac_cv_prog_egrep='egrep'
2961     fi
2962 fi
2963 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2964 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2965  EGREP=$ac_cv_prog_egrep
2966
2967
2968 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2969 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2970 if test "${ac_cv_header_stdc+set}" = set; then
2971   echo $ECHO_N "(cached) $ECHO_C" >&6
2972 else
2973   cat >conftest.$ac_ext <<_ACEOF
2974 /* confdefs.h.  */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h.  */
2979 #include <stdlib.h>
2980 #include <stdarg.h>
2981 #include <string.h>
2982 #include <float.h>
2983
2984 int
2985 main ()
2986 {
2987
2988   ;
2989   return 0;
2990 }
2991 _ACEOF
2992 rm -f conftest.$ac_objext
2993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2994   (eval $ac_compile) 2>conftest.er1
2995   ac_status=$?
2996   grep -v '^ *+' conftest.er1 >conftest.err
2997   rm -f conftest.er1
2998   cat conftest.err >&5
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); } &&
3001          { ac_try='test -z "$ac_c_werror_flag"
3002                          || test ! -s conftest.err'
3003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004   (eval $ac_try) 2>&5
3005   ac_status=$?
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); }; } &&
3008          { ac_try='test -s conftest.$ac_objext'
3009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010   (eval $ac_try) 2>&5
3011   ac_status=$?
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); }; }; then
3014   ac_cv_header_stdc=yes
3015 else
3016   echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3018
3019 ac_cv_header_stdc=no
3020 fi
3021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3022
3023 if test $ac_cv_header_stdc = yes; then
3024   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3025   cat >conftest.$ac_ext <<_ACEOF
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3031 #include <string.h>
3032
3033 _ACEOF
3034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035   $EGREP "memchr" >/dev/null 2>&1; then
3036   :
3037 else
3038   ac_cv_header_stdc=no
3039 fi
3040 rm -f conftest*
3041
3042 fi
3043
3044 if test $ac_cv_header_stdc = yes; then
3045   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3046   cat >conftest.$ac_ext <<_ACEOF
3047 /* confdefs.h.  */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h.  */
3052 #include <stdlib.h>
3053
3054 _ACEOF
3055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3056   $EGREP "free" >/dev/null 2>&1; then
3057   :
3058 else
3059   ac_cv_header_stdc=no
3060 fi
3061 rm -f conftest*
3062
3063 fi
3064
3065 if test $ac_cv_header_stdc = yes; then
3066   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3067   if test "$cross_compiling" = yes; then
3068   :
3069 else
3070   cat >conftest.$ac_ext <<_ACEOF
3071 /* confdefs.h.  */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h.  */
3076 #include <ctype.h>
3077 #if ((' ' & 0x0FF) == 0x020)
3078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3080 #else
3081 # define ISLOWER(c) \
3082                    (('a' <= (c) && (c) <= 'i') \
3083                      || ('j' <= (c) && (c) <= 'r') \
3084                      || ('s' <= (c) && (c) <= 'z'))
3085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3086 #endif
3087
3088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3089 int
3090 main ()
3091 {
3092   int i;
3093   for (i = 0; i < 256; i++)
3094     if (XOR (islower (i), ISLOWER (i))
3095         || toupper (i) != TOUPPER (i))
3096       exit(2);
3097   exit (0);
3098 }
3099 _ACEOF
3100 rm -f conftest$ac_exeext
3101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3102   (eval $ac_link) 2>&5
3103   ac_status=$?
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107   (eval $ac_try) 2>&5
3108   ac_status=$?
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); }; }; then
3111   :
3112 else
3113   echo "$as_me: program exited with status $ac_status" >&5
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117 ( exit $ac_status )
3118 ac_cv_header_stdc=no
3119 fi
3120 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3121 fi
3122 fi
3123 fi
3124 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3125 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3126 if test $ac_cv_header_stdc = yes; then
3127
3128 cat >>confdefs.h <<\_ACEOF
3129 #define STDC_HEADERS 1
3130 _ACEOF
3131
3132 fi
3133
3134 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3145                   inttypes.h stdint.h unistd.h
3146 do
3147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3148 echo "$as_me:$LINENO: checking for $ac_header" >&5
3149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3151   echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153   cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h.  */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h.  */
3159 $ac_includes_default
3160
3161 #include <$ac_header>
3162 _ACEOF
3163 rm -f conftest.$ac_objext
3164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3165   (eval $ac_compile) 2>conftest.er1
3166   ac_status=$?
3167   grep -v '^ *+' conftest.er1 >conftest.err
3168   rm -f conftest.er1
3169   cat conftest.err >&5
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); } &&
3172          { ac_try='test -z "$ac_c_werror_flag"
3173                          || test ! -s conftest.err'
3174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175   (eval $ac_try) 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); }; } &&
3179          { ac_try='test -s conftest.$ac_objext'
3180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181   (eval $ac_try) 2>&5
3182   ac_status=$?
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); }; }; then
3185   eval "$as_ac_Header=yes"
3186 else
3187   echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3189
3190 eval "$as_ac_Header=no"
3191 fi
3192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3193 fi
3194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3197   cat >>confdefs.h <<_ACEOF
3198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3199 _ACEOF
3200
3201 fi
3202
3203 done
3204
3205
3206
3207
3208
3209 for ac_header in fcntl.h unistd.h bfd.h
3210 do
3211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3213   echo "$as_me:$LINENO: checking for $ac_header" >&5
3214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3216   echo $ECHO_N "(cached) $ECHO_C" >&6
3217 fi
3218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3220 else
3221   # Is the header compilable?
3222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3224 cat >conftest.$ac_ext <<_ACEOF
3225 /* confdefs.h.  */
3226 _ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h.  */
3230 $ac_includes_default
3231 #include <$ac_header>
3232 _ACEOF
3233 rm -f conftest.$ac_objext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235   (eval $ac_compile) 2>conftest.er1
3236   ac_status=$?
3237   grep -v '^ *+' conftest.er1 >conftest.err
3238   rm -f conftest.er1
3239   cat conftest.err >&5
3240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241   (exit $ac_status); } &&
3242          { ac_try='test -z "$ac_c_werror_flag"
3243                          || test ! -s conftest.err'
3244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245   (eval $ac_try) 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); }; } &&
3249          { ac_try='test -s conftest.$ac_objext'
3250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251   (eval $ac_try) 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; }; then
3255   ac_header_compiler=yes
3256 else
3257   echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260 ac_header_compiler=no
3261 fi
3262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3264 echo "${ECHO_T}$ac_header_compiler" >&6
3265
3266 # Is the header present?
3267 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3269 cat >conftest.$ac_ext <<_ACEOF
3270 /* confdefs.h.  */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h.  */
3275 #include <$ac_header>
3276 _ACEOF
3277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3278   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3279   ac_status=$?
3280   grep -v '^ *+' conftest.er1 >conftest.err
3281   rm -f conftest.er1
3282   cat conftest.err >&5
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); } >/dev/null; then
3285   if test -s conftest.err; then
3286     ac_cpp_err=$ac_c_preproc_warn_flag
3287     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3288   else
3289     ac_cpp_err=
3290   fi
3291 else
3292   ac_cpp_err=yes
3293 fi
3294 if test -z "$ac_cpp_err"; then
3295   ac_header_preproc=yes
3296 else
3297   echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3299
3300   ac_header_preproc=no
3301 fi
3302 rm -f conftest.err conftest.$ac_ext
3303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3304 echo "${ECHO_T}$ac_header_preproc" >&6
3305
3306 # So?  What about this header?
3307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3308   yes:no: )
3309     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3313     ac_header_preproc=yes
3314     ;;
3315   no:yes:* )
3316     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3318     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3319 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3320     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3322     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3323 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3326     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3328     (
3329       cat <<\_ASBOX
3330 ## ------------------------------------------ ##
3331 ## Report this to the AC_PACKAGE_NAME lists.  ##
3332 ## ------------------------------------------ ##
3333 _ASBOX
3334     ) |
3335       sed "s/^/$as_me: WARNING:     /" >&2
3336     ;;
3337 esac
3338 echo "$as_me:$LINENO: checking for $ac_header" >&5
3339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3341   echo $ECHO_N "(cached) $ECHO_C" >&6
3342 else
3343   eval "$as_ac_Header=\$ac_header_preproc"
3344 fi
3345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3347
3348 fi
3349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3350   cat >>confdefs.h <<_ACEOF
3351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3352 _ACEOF
3353
3354 fi
3355
3356 done
3357
3358
3359 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3360 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3361 if test "${ac_cv_c_const+set}" = set; then
3362   echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364   cat >conftest.$ac_ext <<_ACEOF
3365 /* confdefs.h.  */
3366 _ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h.  */
3370
3371 int
3372 main ()
3373 {
3374 /* FIXME: Include the comments suggested by Paul. */
3375 #ifndef __cplusplus
3376   /* Ultrix mips cc rejects this.  */
3377   typedef int charset[2];
3378   const charset x;
3379   /* SunOS 4.1.1 cc rejects this.  */
3380   char const *const *ccp;
3381   char **p;
3382   /* NEC SVR4.0.2 mips cc rejects this.  */
3383   struct point {int x, y;};
3384   static struct point const zero = {0,0};
3385   /* AIX XL C 1.02.0.0 rejects this.
3386      It does not let you subtract one const X* pointer from another in
3387      an arm of an if-expression whose if-part is not a constant
3388      expression */
3389   const char *g = "string";
3390   ccp = &g + (g ? g-g : 0);
3391   /* HPUX 7.0 cc rejects these. */
3392   ++ccp;
3393   p = (char**) ccp;
3394   ccp = (char const *const *) p;
3395   { /* SCO 3.2v4 cc rejects this.  */
3396     char *t;
3397     char const *s = 0 ? (char *) 0 : (char const *) 0;
3398
3399     *t++ = 0;
3400   }
3401   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3402     int x[] = {25, 17};
3403     const int *foo = &x[0];
3404     ++foo;
3405   }
3406   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3407     typedef const int *iptr;
3408     iptr p = 0;
3409     ++p;
3410   }
3411   { /* AIX XL C 1.02.0.0 rejects this saying
3412        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3413     struct s { int j; const int *ap[3]; };
3414     struct s *b; b->j = 5;
3415   }
3416   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3417     const int foo = 10;
3418   }
3419 #endif
3420
3421   ;
3422   return 0;
3423 }
3424 _ACEOF
3425 rm -f conftest.$ac_objext
3426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3427   (eval $ac_compile) 2>conftest.er1
3428   ac_status=$?
3429   grep -v '^ *+' conftest.er1 >conftest.err
3430   rm -f conftest.er1
3431   cat conftest.err >&5
3432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); } &&
3434          { ac_try='test -z "$ac_c_werror_flag"
3435                          || test ! -s conftest.err'
3436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437   (eval $ac_try) 2>&5
3438   ac_status=$?
3439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440   (exit $ac_status); }; } &&
3441          { ac_try='test -s conftest.$ac_objext'
3442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443   (eval $ac_try) 2>&5
3444   ac_status=$?
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); }; }; then
3447   ac_cv_c_const=yes
3448 else
3449   echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 ac_cv_c_const=no
3453 fi
3454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3455 fi
3456 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3457 echo "${ECHO_T}$ac_cv_c_const" >&6
3458 if test $ac_cv_c_const = no; then
3459
3460 cat >>confdefs.h <<\_ACEOF
3461 #define const
3462 _ACEOF
3463
3464 fi
3465
3466
3467
3468 for ac_func in vprintf
3469 do
3470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3471 echo "$as_me:$LINENO: checking for $ac_func" >&5
3472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3473 if eval "test \"\${$as_ac_var+set}\" = set"; then
3474   echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476   cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h.  */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h.  */
3482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3484 #define $ac_func innocuous_$ac_func
3485
3486 /* System header to define __stub macros and hopefully few prototypes,
3487     which can conflict with char $ac_func (); below.
3488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3489     <limits.h> exists even on freestanding compilers.  */
3490
3491 #ifdef __STDC__
3492 # include <limits.h>
3493 #else
3494 # include <assert.h>
3495 #endif
3496
3497 #undef $ac_func
3498
3499 /* Override any gcc2 internal prototype to avoid an error.  */
3500 #ifdef __cplusplus
3501 extern "C"
3502 {
3503 #endif
3504 /* We use char because int might match the return type of a gcc2
3505    builtin and then its argument prototype would still apply.  */
3506 char $ac_func ();
3507 /* The GNU C library defines this for functions which it implements
3508     to always fail with ENOSYS.  Some functions are actually named
3509     something starting with __ and the normal name is an alias.  */
3510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3511 choke me
3512 #else
3513 char (*f) () = $ac_func;
3514 #endif
3515 #ifdef __cplusplus
3516 }
3517 #endif
3518
3519 int
3520 main ()
3521 {
3522 return f != $ac_func;
3523   ;
3524   return 0;
3525 }
3526 _ACEOF
3527 rm -f conftest.$ac_objext conftest$ac_exeext
3528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3529   (eval $ac_link) 2>conftest.er1
3530   ac_status=$?
3531   grep -v '^ *+' conftest.er1 >conftest.err
3532   rm -f conftest.er1
3533   cat conftest.err >&5
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); } &&
3536          { ac_try='test -z "$ac_c_werror_flag"
3537                          || test ! -s conftest.err'
3538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539   (eval $ac_try) 2>&5
3540   ac_status=$?
3541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542   (exit $ac_status); }; } &&
3543          { ac_try='test -s conftest$ac_exeext'
3544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545   (eval $ac_try) 2>&5
3546   ac_status=$?
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); }; }; then
3549   eval "$as_ac_var=yes"
3550 else
3551   echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3553
3554 eval "$as_ac_var=no"
3555 fi
3556 rm -f conftest.err conftest.$ac_objext \
3557       conftest$ac_exeext conftest.$ac_ext
3558 fi
3559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3561 if test `eval echo '${'$as_ac_var'}'` = yes; then
3562   cat >>confdefs.h <<_ACEOF
3563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3564 _ACEOF
3565
3566 echo "$as_me:$LINENO: checking for _doprnt" >&5
3567 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
3568 if test "${ac_cv_func__doprnt+set}" = set; then
3569   echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571   cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h.  */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h.  */
3577 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
3578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3579 #define _doprnt innocuous__doprnt
3580
3581 /* System header to define __stub macros and hopefully few prototypes,
3582     which can conflict with char _doprnt (); below.
3583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3584     <limits.h> exists even on freestanding compilers.  */
3585
3586 #ifdef __STDC__
3587 # include <limits.h>
3588 #else
3589 # include <assert.h>
3590 #endif
3591
3592 #undef _doprnt
3593
3594 /* Override any gcc2 internal prototype to avoid an error.  */
3595 #ifdef __cplusplus
3596 extern "C"
3597 {
3598 #endif
3599 /* We use char because int might match the return type of a gcc2
3600    builtin and then its argument prototype would still apply.  */
3601 char _doprnt ();
3602 /* The GNU C library defines this for functions which it implements
3603     to always fail with ENOSYS.  Some functions are actually named
3604     something starting with __ and the normal name is an alias.  */
3605 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3606 choke me
3607 #else
3608 char (*f) () = _doprnt;
3609 #endif
3610 #ifdef __cplusplus
3611 }
3612 #endif
3613
3614 int
3615 main ()
3616 {
3617 return f != _doprnt;
3618   ;
3619   return 0;
3620 }
3621 _ACEOF
3622 rm -f conftest.$ac_objext conftest$ac_exeext
3623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3624   (eval $ac_link) 2>conftest.er1
3625   ac_status=$?
3626   grep -v '^ *+' conftest.er1 >conftest.err
3627   rm -f conftest.er1
3628   cat conftest.err >&5
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); } &&
3631          { ac_try='test -z "$ac_c_werror_flag"
3632                          || test ! -s conftest.err'
3633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634   (eval $ac_try) 2>&5
3635   ac_status=$?
3636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637   (exit $ac_status); }; } &&
3638          { ac_try='test -s conftest$ac_exeext'
3639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640   (eval $ac_try) 2>&5
3641   ac_status=$?
3642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643   (exit $ac_status); }; }; then
3644   ac_cv_func__doprnt=yes
3645 else
3646   echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649 ac_cv_func__doprnt=no
3650 fi
3651 rm -f conftest.err conftest.$ac_objext \
3652       conftest$ac_exeext conftest.$ac_ext
3653 fi
3654 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
3655 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
3656 if test $ac_cv_func__doprnt = yes; then
3657
3658 cat >>confdefs.h <<\_ACEOF
3659 #define HAVE_DOPRNT 1
3660 _ACEOF
3661
3662 fi
3663
3664 fi
3665 done
3666
3667
3668
3669
3670 for ac_func in dcgettext
3671 do
3672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3673 echo "$as_me:$LINENO: checking for $ac_func" >&5
3674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3675 if eval "test \"\${$as_ac_var+set}\" = set"; then
3676   echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678   cat >conftest.$ac_ext <<_ACEOF
3679 /* confdefs.h.  */
3680 _ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h.  */
3684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3686 #define $ac_func innocuous_$ac_func
3687
3688 /* System header to define __stub macros and hopefully few prototypes,
3689     which can conflict with char $ac_func (); below.
3690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3691     <limits.h> exists even on freestanding compilers.  */
3692
3693 #ifdef __STDC__
3694 # include <limits.h>
3695 #else
3696 # include <assert.h>
3697 #endif
3698
3699 #undef $ac_func
3700
3701 /* Override any gcc2 internal prototype to avoid an error.  */
3702 #ifdef __cplusplus
3703 extern "C"
3704 {
3705 #endif
3706 /* We use char because int might match the return type of a gcc2
3707    builtin and then its argument prototype would still apply.  */
3708 char $ac_func ();
3709 /* The GNU C library defines this for functions which it implements
3710     to always fail with ENOSYS.  Some functions are actually named
3711     something starting with __ and the normal name is an alias.  */
3712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3713 choke me
3714 #else
3715 char (*f) () = $ac_func;
3716 #endif
3717 #ifdef __cplusplus
3718 }
3719 #endif
3720
3721 int
3722 main ()
3723 {
3724 return f != $ac_func;
3725   ;
3726   return 0;
3727 }
3728 _ACEOF
3729 rm -f conftest.$ac_objext conftest$ac_exeext
3730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3731   (eval $ac_link) 2>conftest.er1
3732   ac_status=$?
3733   grep -v '^ *+' conftest.er1 >conftest.err
3734   rm -f conftest.er1
3735   cat conftest.err >&5
3736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737   (exit $ac_status); } &&
3738          { ac_try='test -z "$ac_c_werror_flag"
3739                          || test ! -s conftest.err'
3740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741   (eval $ac_try) 2>&5
3742   ac_status=$?
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); }; } &&
3745          { ac_try='test -s conftest$ac_exeext'
3746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747   (eval $ac_try) 2>&5
3748   ac_status=$?
3749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750   (exit $ac_status); }; }; then
3751   eval "$as_ac_var=yes"
3752 else
3753   echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3755
3756 eval "$as_ac_var=no"
3757 fi
3758 rm -f conftest.err conftest.$ac_objext \
3759       conftest$ac_exeext conftest.$ac_ext
3760 fi
3761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3762 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3763 if test `eval echo '${'$as_ac_var'}'` = yes; then
3764   cat >>confdefs.h <<_ACEOF
3765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3766 _ACEOF
3767
3768 fi
3769 done
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783                     ac_config_files="$ac_config_files Makefile ld-elf2flt"
3784 cat >confcache <<\_ACEOF
3785 # This file is a shell script that caches the results of configure
3786 # tests run on this system so they can be shared between configure
3787 # scripts and configure runs, see configure's option --config-cache.
3788 # It is not useful on other systems.  If it contains results you don't
3789 # want to keep, you may remove or edit it.
3790 #
3791 # config.status only pays attention to the cache file if you give it
3792 # the --recheck option to rerun configure.
3793 #
3794 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3795 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3796 # following values.
3797
3798 _ACEOF
3799
3800 # The following way of writing the cache mishandles newlines in values,
3801 # but we know of no workaround that is simple, portable, and efficient.
3802 # So, don't put newlines in cache variables' values.
3803 # Ultrix sh set writes to stderr and can't be redirected directly,
3804 # and sets the high bit in the cache file unless we assign to the vars.
3805 {
3806   (set) 2>&1 |
3807     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3808     *ac_space=\ *)
3809       # `set' does not quote correctly, so add quotes (double-quote
3810       # substitution turns \\\\ into \\, and sed turns \\ into \).
3811       sed -n \
3812         "s/'/'\\\\''/g;
3813           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3814       ;;
3815     *)
3816       # `set' quotes correctly as required by POSIX, so do not add quotes.
3817       sed -n \
3818         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3819       ;;
3820     esac;
3821 } |
3822   sed '
3823      t clear
3824      : clear
3825      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3826      t end
3827      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3828      : end' >>confcache
3829 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3830   if test -w $cache_file; then
3831     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3832     cat confcache >$cache_file
3833   else
3834     echo "not updating unwritable cache $cache_file"
3835   fi
3836 fi
3837 rm -f confcache
3838
3839 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3840 # Let make expand exec_prefix.
3841 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3842
3843 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3844 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3845 # trailing colons and then remove the whole line if VPATH becomes empty
3846 # (actually we leave an empty line to preserve line numbers).
3847 if test "x$srcdir" = x.; then
3848   ac_vpsub='/^[  ]*VPATH[        ]*=/{
3849 s/:*\$(srcdir):*/:/;
3850 s/:*\${srcdir}:*/:/;
3851 s/:*@srcdir@:*/:/;
3852 s/^\([^=]*=[     ]*\):*/\1/;
3853 s/:*$//;
3854 s/^[^=]*=[       ]*$//;
3855 }'
3856 fi
3857
3858 # Transform confdefs.h into DEFS.
3859 # Protect against shell expansion while executing Makefile rules.
3860 # Protect against Makefile macro expansion.
3861 #
3862 # If the first sed substitution is executed (which looks for macros that
3863 # take arguments), then we branch to the quote section.  Otherwise,
3864 # look for a macro that doesn't take arguments.
3865 cat >confdef2opt.sed <<\_ACEOF
3866 t clear
3867 : clear
3868 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3869 t quote
3870 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3871 t quote
3872 d
3873 : quote
3874 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
3875 s,\[,\\&,g
3876 s,\],\\&,g
3877 s,\$,$$,g
3878 p
3879 _ACEOF
3880 # We use echo to avoid assuming a particular line-breaking character.
3881 # The extra dot is to prevent the shell from consuming trailing
3882 # line-breaks from the sub-command output.  A line-break within
3883 # single-quotes doesn't work because, if this script is created in a
3884 # platform that uses two characters for line-breaks (e.g., DOS), tr
3885 # would break.
3886 ac_LF_and_DOT=`echo; echo .`
3887 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3888 rm -f confdef2opt.sed
3889
3890
3891 ac_libobjs=
3892 ac_ltlibobjs=
3893 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3894   # 1. Remove the extension, and $U if already installed.
3895   ac_i=`echo "$ac_i" |
3896          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3897   # 2. Add them.
3898   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3899   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3900 done
3901 LIBOBJS=$ac_libobjs
3902
3903 LTLIBOBJS=$ac_ltlibobjs
3904
3905
3906
3907 : ${CONFIG_STATUS=./config.status}
3908 ac_clean_files_save=$ac_clean_files
3909 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3910 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3911 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3912 cat >$CONFIG_STATUS <<_ACEOF
3913 #! $SHELL
3914 # Generated by $as_me.
3915 # Run this file to recreate the current configuration.
3916 # Compiler output produced by configure, useful for debugging
3917 # configure, is in config.log if it exists.
3918
3919 debug=false
3920 ac_cs_recheck=false
3921 ac_cs_silent=false
3922 SHELL=\${CONFIG_SHELL-$SHELL}
3923 _ACEOF
3924
3925 cat >>$CONFIG_STATUS <<\_ACEOF
3926 ## --------------------- ##
3927 ## M4sh Initialization.  ##
3928 ## --------------------- ##
3929
3930 # Be Bourne compatible
3931 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3932   emulate sh
3933   NULLCMD=:
3934   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3935   # is contrary to our usage.  Disable this feature.
3936   alias -g '${1+"$@"}'='"$@"'
3937 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3938   set -o posix
3939 fi
3940 DUALCASE=1; export DUALCASE # for MKS sh
3941
3942 # Support unset when possible.
3943 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3944   as_unset=unset
3945 else
3946   as_unset=false
3947 fi
3948
3949
3950 # Work around bugs in pre-3.0 UWIN ksh.
3951 $as_unset ENV MAIL MAILPATH
3952 PS1='$ '
3953 PS2='> '
3954 PS4='+ '
3955
3956 # NLS nuisances.
3957 for as_var in \
3958   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3959   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3960   LC_TELEPHONE LC_TIME
3961 do
3962   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3963     eval $as_var=C; export $as_var
3964   else
3965     $as_unset $as_var
3966   fi
3967 done
3968
3969 # Required to use basename.
3970 if expr a : '\(a\)' >/dev/null 2>&1; then
3971   as_expr=expr
3972 else
3973   as_expr=false
3974 fi
3975
3976 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3977   as_basename=basename
3978 else
3979   as_basename=false
3980 fi
3981
3982
3983 # Name of the executable.
3984 as_me=`$as_basename "$0" ||
3985 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3986          X"$0" : 'X\(//\)$' \| \
3987          X"$0" : 'X\(/\)$' \| \
3988          .     : '\(.\)' 2>/dev/null ||
3989 echo X/"$0" |
3990     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3991           /^X\/\(\/\/\)$/{ s//\1/; q; }
3992           /^X\/\(\/\).*/{ s//\1/; q; }
3993           s/.*/./; q'`
3994
3995
3996 # PATH needs CR, and LINENO needs CR and PATH.
3997 # Avoid depending upon Character Ranges.
3998 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3999 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4000 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4001 as_cr_digits='0123456789'
4002 as_cr_alnum=$as_cr_Letters$as_cr_digits
4003
4004 # The user is always right.
4005 if test "${PATH_SEPARATOR+set}" != set; then
4006   echo "#! /bin/sh" >conf$$.sh
4007   echo  "exit 0"   >>conf$$.sh
4008   chmod +x conf$$.sh
4009   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4010     PATH_SEPARATOR=';'
4011   else
4012     PATH_SEPARATOR=:
4013   fi
4014   rm -f conf$$.sh
4015 fi
4016
4017
4018   as_lineno_1=$LINENO
4019   as_lineno_2=$LINENO
4020   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4021   test "x$as_lineno_1" != "x$as_lineno_2" &&
4022   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4023   # Find who we are.  Look in the path if we contain no path at all
4024   # relative or not.
4025   case $0 in
4026     *[\\/]* ) as_myself=$0 ;;
4027     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH
4029 do
4030   IFS=$as_save_IFS
4031   test -z "$as_dir" && as_dir=.
4032   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4033 done
4034
4035        ;;
4036   esac
4037   # We did not find ourselves, most probably we were run as `sh COMMAND'
4038   # in which case we are not to be found in the path.
4039   if test "x$as_myself" = x; then
4040     as_myself=$0
4041   fi
4042   if test ! -f "$as_myself"; then
4043     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4044 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4045    { (exit 1); exit 1; }; }
4046   fi
4047   case $CONFIG_SHELL in
4048   '')
4049     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4051 do
4052   IFS=$as_save_IFS
4053   test -z "$as_dir" && as_dir=.
4054   for as_base in sh bash ksh sh5; do
4055          case $as_dir in
4056          /*)
4057            if ("$as_dir/$as_base" -c '
4058   as_lineno_1=$LINENO
4059   as_lineno_2=$LINENO
4060   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4061   test "x$as_lineno_1" != "x$as_lineno_2" &&
4062   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4063              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4064              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4065              CONFIG_SHELL=$as_dir/$as_base
4066              export CONFIG_SHELL
4067              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4068            fi;;
4069          esac
4070        done
4071 done
4072 ;;
4073   esac
4074
4075   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4076   # uniformly replaced by the line number.  The first 'sed' inserts a
4077   # line-number line before each line; the second 'sed' does the real
4078   # work.  The second script uses 'N' to pair each line-number line
4079   # with the numbered line, and appends trailing '-' during
4080   # substitution so that $LINENO is not a special case at line end.
4081   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4082   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4083   sed '=' <$as_myself |
4084     sed '
4085       N
4086       s,$,-,
4087       : loop
4088       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4089       t loop
4090       s,-$,,
4091       s,^['$as_cr_digits']*\n,,
4092     ' >$as_me.lineno &&
4093   chmod +x $as_me.lineno ||
4094     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4095 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4096    { (exit 1); exit 1; }; }
4097
4098   # Don't try to exec as it changes $[0], causing all sort of problems
4099   # (the dirname of $[0] is not the place where we might find the
4100   # original and so on.  Autoconf is especially sensible to this).
4101   . ./$as_me.lineno
4102   # Exit status is that of the last command.
4103   exit
4104 }
4105
4106
4107 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4108   *c*,-n*) ECHO_N= ECHO_C='
4109 ' ECHO_T='      ' ;;
4110   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4111   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4112 esac
4113
4114 if expr a : '\(a\)' >/dev/null 2>&1; then
4115   as_expr=expr
4116 else
4117   as_expr=false
4118 fi
4119
4120 rm -f conf$$ conf$$.exe conf$$.file
4121 echo >conf$$.file
4122 if ln -s conf$$.file conf$$ 2>/dev/null; then
4123   # We could just check for DJGPP; but this test a) works b) is more generic
4124   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4125   if test -f conf$$.exe; then
4126     # Don't use ln at all; we don't have any links
4127     as_ln_s='cp -p'
4128   else
4129     as_ln_s='ln -s'
4130   fi
4131 elif ln conf$$.file conf$$ 2>/dev/null; then
4132   as_ln_s=ln
4133 else
4134   as_ln_s='cp -p'
4135 fi
4136 rm -f conf$$ conf$$.exe conf$$.file
4137
4138 if mkdir -p . 2>/dev/null; then
4139   as_mkdir_p=:
4140 else
4141   test -d ./-p && rmdir ./-p
4142   as_mkdir_p=false
4143 fi
4144
4145 as_executable_p="test -f"
4146
4147 # Sed expression to map a string onto a valid CPP name.
4148 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4149
4150 # Sed expression to map a string onto a valid variable name.
4151 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4152
4153
4154 # IFS
4155 # We need space, tab and new line, in precisely that order.
4156 as_nl='
4157 '
4158 IFS="   $as_nl"
4159
4160 # CDPATH.
4161 $as_unset CDPATH
4162
4163 exec 6>&1
4164
4165 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4166 # report actual input values of CONFIG_FILES etc. instead of their
4167 # values after options handling.  Logging --version etc. is OK.
4168 exec 5>>config.log
4169 {
4170   echo
4171   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4172 ## Running $as_me. ##
4173 _ASBOX
4174 } >&5
4175 cat >&5 <<_CSEOF
4176
4177 This file was extended by $as_me, which was
4178 generated by GNU Autoconf 2.59.  Invocation command line was
4179
4180   CONFIG_FILES    = $CONFIG_FILES
4181   CONFIG_HEADERS  = $CONFIG_HEADERS
4182   CONFIG_LINKS    = $CONFIG_LINKS
4183   CONFIG_COMMANDS = $CONFIG_COMMANDS
4184   $ $0 $@
4185
4186 _CSEOF
4187 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4188 echo >&5
4189 _ACEOF
4190
4191 # Files that config.status was made for.
4192 if test -n "$ac_config_files"; then
4193   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4194 fi
4195
4196 if test -n "$ac_config_headers"; then
4197   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4198 fi
4199
4200 if test -n "$ac_config_links"; then
4201   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4202 fi
4203
4204 if test -n "$ac_config_commands"; then
4205   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4206 fi
4207
4208 cat >>$CONFIG_STATUS <<\_ACEOF
4209
4210 ac_cs_usage="\
4211 \`$as_me' instantiates files from templates according to the
4212 current configuration.
4213
4214 Usage: $0 [OPTIONS] [FILE]...
4215
4216   -h, --help       print this help, then exit
4217   -V, --version    print version number, then exit
4218   -q, --quiet      do not print progress messages
4219   -d, --debug      don't remove temporary files
4220       --recheck    update $as_me by reconfiguring in the same conditions
4221   --file=FILE[:TEMPLATE]
4222                    instantiate the configuration file FILE
4223
4224 Configuration files:
4225 $config_files
4226
4227 Report bugs to <bug-autoconf@gnu.org>."
4228 _ACEOF
4229
4230 cat >>$CONFIG_STATUS <<_ACEOF
4231 ac_cs_version="\\
4232 config.status
4233 configured by $0, generated by GNU Autoconf 2.59,
4234   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4235
4236 Copyright (C) 2003 Free Software Foundation, Inc.
4237 This config.status script is free software; the Free Software Foundation
4238 gives unlimited permission to copy, distribute and modify it."
4239 srcdir=$srcdir
4240 INSTALL="$INSTALL"
4241 _ACEOF
4242
4243 cat >>$CONFIG_STATUS <<\_ACEOF
4244 # If no file are specified by the user, then we need to provide default
4245 # value.  By we need to know if files were specified by the user.
4246 ac_need_defaults=:
4247 while test $# != 0
4248 do
4249   case $1 in
4250   --*=*)
4251     ac_option=`expr "x$1" : 'x\([^=]*\)='`
4252     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4253     ac_shift=:
4254     ;;
4255   -*)
4256     ac_option=$1
4257     ac_optarg=$2
4258     ac_shift=shift
4259     ;;
4260   *) # This is not an option, so the user has probably given explicit
4261      # arguments.
4262      ac_option=$1
4263      ac_need_defaults=false;;
4264   esac
4265
4266   case $ac_option in
4267   # Handling of the options.
4268 _ACEOF
4269 cat >>$CONFIG_STATUS <<\_ACEOF
4270   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4271     ac_cs_recheck=: ;;
4272   --version | --vers* | -V )
4273     echo "$ac_cs_version"; exit 0 ;;
4274   --he | --h)
4275     # Conflict between --help and --header
4276     { { echo "$as_me:$LINENO: error: ambiguous option: $1
4277 Try \`$0 --help' for more information." >&5
4278 echo "$as_me: error: ambiguous option: $1
4279 Try \`$0 --help' for more information." >&2;}
4280    { (exit 1); exit 1; }; };;
4281   --help | --hel | -h )
4282     echo "$ac_cs_usage"; exit 0 ;;
4283   --debug | --d* | -d )
4284     debug=: ;;
4285   --file | --fil | --fi | --f )
4286     $ac_shift
4287     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4288     ac_need_defaults=false;;
4289   --header | --heade | --head | --hea )
4290     $ac_shift
4291     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4292     ac_need_defaults=false;;
4293   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4294   | -silent | --silent | --silen | --sile | --sil | --si | --s)
4295     ac_cs_silent=: ;;
4296
4297   # This is an error.
4298   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4299 Try \`$0 --help' for more information." >&5
4300 echo "$as_me: error: unrecognized option: $1
4301 Try \`$0 --help' for more information." >&2;}
4302    { (exit 1); exit 1; }; } ;;
4303
4304   *) ac_config_targets="$ac_config_targets $1" ;;
4305
4306   esac
4307   shift
4308 done
4309
4310 ac_configure_extra_args=
4311
4312 if $ac_cs_silent; then
4313   exec 6>/dev/null
4314   ac_configure_extra_args="$ac_configure_extra_args --silent"
4315 fi
4316
4317 _ACEOF
4318 cat >>$CONFIG_STATUS <<_ACEOF
4319 if \$ac_cs_recheck; then
4320   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4321   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4322 fi
4323
4324 _ACEOF
4325
4326
4327
4328
4329
4330 cat >>$CONFIG_STATUS <<\_ACEOF
4331 for ac_config_target in $ac_config_targets
4332 do
4333   case "$ac_config_target" in
4334   # Handling of arguments.
4335   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4336   "ld-elf2flt" ) CONFIG_FILES="$CONFIG_FILES ld-elf2flt" ;;
4337   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4338 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4339    { (exit 1); exit 1; }; };;
4340   esac
4341 done
4342
4343 # If the user did not use the arguments to specify the items to instantiate,
4344 # then the envvar interface is used.  Set only those that are not.
4345 # We use the long form for the default assignment because of an extremely
4346 # bizarre bug on SunOS 4.1.3.
4347 if $ac_need_defaults; then
4348   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4349 fi
4350
4351 # Have a temporary directory for convenience.  Make it in the build tree
4352 # simply because there is no reason to put it here, and in addition,
4353 # creating and moving files from /tmp can sometimes cause problems.
4354 # Create a temporary directory, and hook for its removal unless debugging.
4355 $debug ||
4356 {
4357   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4358   trap '{ (exit 1); exit 1; }' 1 2 13 15
4359 }
4360
4361 # Create a (secure) tmp directory for tmp files.
4362
4363 {
4364   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4365   test -n "$tmp" && test -d "$tmp"
4366 }  ||
4367 {
4368   tmp=./confstat$$-$RANDOM
4369   (umask 077 && mkdir $tmp)
4370 } ||
4371 {
4372    echo "$me: cannot create a temporary directory in ." >&2
4373    { (exit 1); exit 1; }
4374 }
4375
4376 _ACEOF
4377
4378 cat >>$CONFIG_STATUS <<_ACEOF
4379
4380 #
4381 # CONFIG_FILES section.
4382 #
4383
4384 # No need to generate the scripts if there are no CONFIG_FILES.
4385 # This happens for instance when ./config.status config.h
4386 if test -n "\$CONFIG_FILES"; then
4387   # Protect against being on the right side of a sed subst in config.status.
4388   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4389    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4390 s,@SHELL@,$SHELL,;t t
4391 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4392 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4393 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4394 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4395 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4396 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4397 s,@exec_prefix@,$exec_prefix,;t t
4398 s,@prefix@,$prefix,;t t
4399 s,@program_transform_name@,$program_transform_name,;t t
4400 s,@bindir@,$bindir,;t t
4401 s,@sbindir@,$sbindir,;t t
4402 s,@libexecdir@,$libexecdir,;t t
4403 s,@datadir@,$datadir,;t t
4404 s,@sysconfdir@,$sysconfdir,;t t
4405 s,@sharedstatedir@,$sharedstatedir,;t t
4406 s,@localstatedir@,$localstatedir,;t t
4407 s,@libdir@,$libdir,;t t
4408 s,@includedir@,$includedir,;t t
4409 s,@oldincludedir@,$oldincludedir,;t t
4410 s,@infodir@,$infodir,;t t
4411 s,@mandir@,$mandir,;t t
4412 s,@build_alias@,$build_alias,;t t
4413 s,@host_alias@,$host_alias,;t t
4414 s,@target_alias@,$target_alias,;t t
4415 s,@DEFS@,$DEFS,;t t
4416 s,@ECHO_C@,$ECHO_C,;t t
4417 s,@ECHO_N@,$ECHO_N,;t t
4418 s,@ECHO_T@,$ECHO_T,;t t
4419 s,@LIBS@,$LIBS,;t t
4420 s,@build@,$build,;t t
4421 s,@build_cpu@,$build_cpu,;t t
4422 s,@build_vendor@,$build_vendor,;t t
4423 s,@build_os@,$build_os,;t t
4424 s,@host@,$host,;t t
4425 s,@host_cpu@,$host_cpu,;t t
4426 s,@host_vendor@,$host_vendor,;t t
4427 s,@host_os@,$host_os,;t t
4428 s,@target@,$target,;t t
4429 s,@target_cpu@,$target_cpu,;t t
4430 s,@target_vendor@,$target_vendor,;t t
4431 s,@target_os@,$target_os,;t t
4432 s,@CC@,$CC,;t t
4433 s,@CFLAGS@,$CFLAGS,;t t
4434 s,@LDFLAGS@,$LDFLAGS,;t t
4435 s,@CPPFLAGS@,$CPPFLAGS,;t t
4436 s,@ac_ct_CC@,$ac_ct_CC,;t t
4437 s,@EXEEXT@,$EXEEXT,;t t
4438 s,@OBJEXT@,$OBJEXT,;t t
4439 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4440 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4441 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4442 s,@CPP@,$CPP,;t t
4443 s,@EGREP@,$EGREP,;t t
4444 s,@bfd_include_dir@,$bfd_include_dir,;t t
4445 s,@binutils_include_dir@,$binutils_include_dir,;t t
4446 s,@binutils_ldscript_dir@,$binutils_ldscript_dir,;t t
4447 s,@got_check@,$got_check,;t t
4448 s,@emit_relocs@,$emit_relocs,;t t
4449 s,@LIBOBJS@,$LIBOBJS,;t t
4450 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4451 CEOF
4452
4453 _ACEOF
4454
4455   cat >>$CONFIG_STATUS <<\_ACEOF
4456   # Split the substitutions into bite-sized pieces for seds with
4457   # small command number limits, like on Digital OSF/1 and HP-UX.
4458   ac_max_sed_lines=48
4459   ac_sed_frag=1 # Number of current file.
4460   ac_beg=1 # First line for current file.
4461   ac_end=$ac_max_sed_lines # Line after last line for current file.
4462   ac_more_lines=:
4463   ac_sed_cmds=
4464   while $ac_more_lines; do
4465     if test $ac_beg -gt 1; then
4466       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4467     else
4468       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4469     fi
4470     if test ! -s $tmp/subs.frag; then
4471       ac_more_lines=false
4472     else
4473       # The purpose of the label and of the branching condition is to
4474       # speed up the sed processing (if there are no `@' at all, there
4475       # is no need to browse any of the substitutions).
4476       # These are the two extra sed commands mentioned above.
4477       (echo ':t
4478   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4479       if test -z "$ac_sed_cmds"; then
4480         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4481       else
4482         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4483       fi
4484       ac_sed_frag=`expr $ac_sed_frag + 1`
4485       ac_beg=$ac_end
4486       ac_end=`expr $ac_end + $ac_max_sed_lines`
4487     fi
4488   done
4489   if test -z "$ac_sed_cmds"; then
4490     ac_sed_cmds=cat
4491   fi
4492 fi # test -n "$CONFIG_FILES"
4493
4494 _ACEOF
4495 cat >>$CONFIG_STATUS <<\_ACEOF
4496 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4497   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4498   case $ac_file in
4499   - | *:- | *:-:* ) # input from stdin
4500         cat >$tmp/stdin
4501         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4502         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4503   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4504         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4505   * )   ac_file_in=$ac_file.in ;;
4506   esac
4507
4508   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4509   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4510 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4511          X"$ac_file" : 'X\(//\)[^/]' \| \
4512          X"$ac_file" : 'X\(//\)$' \| \
4513          X"$ac_file" : 'X\(/\)' \| \
4514          .     : '\(.\)' 2>/dev/null ||
4515 echo X"$ac_file" |
4516     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4517           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4518           /^X\(\/\/\)$/{ s//\1/; q; }
4519           /^X\(\/\).*/{ s//\1/; q; }
4520           s/.*/./; q'`
4521   { if $as_mkdir_p; then
4522     mkdir -p "$ac_dir"
4523   else
4524     as_dir="$ac_dir"
4525     as_dirs=
4526     while test ! -d "$as_dir"; do
4527       as_dirs="$as_dir $as_dirs"
4528       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4530          X"$as_dir" : 'X\(//\)[^/]' \| \
4531          X"$as_dir" : 'X\(//\)$' \| \
4532          X"$as_dir" : 'X\(/\)' \| \
4533          .     : '\(.\)' 2>/dev/null ||
4534 echo X"$as_dir" |
4535     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4536           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4537           /^X\(\/\/\)$/{ s//\1/; q; }
4538           /^X\(\/\).*/{ s//\1/; q; }
4539           s/.*/./; q'`
4540     done
4541     test ! -n "$as_dirs" || mkdir $as_dirs
4542   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4543 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4544    { (exit 1); exit 1; }; }; }
4545
4546   ac_builddir=.
4547
4548 if test "$ac_dir" != .; then
4549   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4550   # A "../" for each directory in $ac_dir_suffix.
4551   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4552 else
4553   ac_dir_suffix= ac_top_builddir=
4554 fi
4555
4556 case $srcdir in
4557   .)  # No --srcdir option.  We are building in place.
4558     ac_srcdir=.
4559     if test -z "$ac_top_builddir"; then
4560        ac_top_srcdir=.
4561     else
4562        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4563     fi ;;
4564   [\\/]* | ?:[\\/]* )  # Absolute path.
4565     ac_srcdir=$srcdir$ac_dir_suffix;
4566     ac_top_srcdir=$srcdir ;;
4567   *) # Relative path.
4568     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4569     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4570 esac
4571
4572 # Do not use `cd foo && pwd` to compute absolute paths, because
4573 # the directories may not exist.
4574 case `pwd` in
4575 .) ac_abs_builddir="$ac_dir";;
4576 *)
4577   case "$ac_dir" in
4578   .) ac_abs_builddir=`pwd`;;
4579   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4580   *) ac_abs_builddir=`pwd`/"$ac_dir";;
4581   esac;;
4582 esac
4583 case $ac_abs_builddir in
4584 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4585 *)
4586   case ${ac_top_builddir}. in
4587   .) ac_abs_top_builddir=$ac_abs_builddir;;
4588   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4589   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4590   esac;;
4591 esac
4592 case $ac_abs_builddir in
4593 .) ac_abs_srcdir=$ac_srcdir;;
4594 *)
4595   case $ac_srcdir in
4596   .) ac_abs_srcdir=$ac_abs_builddir;;
4597   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4598   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4599   esac;;
4600 esac
4601 case $ac_abs_builddir in
4602 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4603 *)
4604   case $ac_top_srcdir in
4605   .) ac_abs_top_srcdir=$ac_abs_builddir;;
4606   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4607   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4608   esac;;
4609 esac
4610
4611
4612   case $INSTALL in
4613   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4614   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4615   esac
4616
4617   if test x"$ac_file" != x-; then
4618     { echo "$as_me:$LINENO: creating $ac_file" >&5
4619 echo "$as_me: creating $ac_file" >&6;}
4620     rm -f "$ac_file"
4621   fi
4622   # Let's still pretend it is `configure' which instantiates (i.e., don't
4623   # use $as_me), people would be surprised to read:
4624   #    /* config.h.  Generated by config.status.  */
4625   if test x"$ac_file" = x-; then
4626     configure_input=
4627   else
4628     configure_input="$ac_file.  "
4629   fi
4630   configure_input=$configure_input"Generated from `echo $ac_file_in |
4631                                      sed 's,.*/,,'` by configure."
4632
4633   # First look for the input files in the build tree, otherwise in the
4634   # src tree.
4635   ac_file_inputs=`IFS=:
4636     for f in $ac_file_in; do
4637       case $f in
4638       -) echo $tmp/stdin ;;
4639       [\\/$]*)
4640          # Absolute (can't be DOS-style, as IFS=:)
4641          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4642 echo "$as_me: error: cannot find input file: $f" >&2;}
4643    { (exit 1); exit 1; }; }
4644          echo "$f";;
4645       *) # Relative
4646          if test -f "$f"; then
4647            # Build tree
4648            echo "$f"
4649          elif test -f "$srcdir/$f"; then
4650            # Source tree
4651            echo "$srcdir/$f"
4652          else
4653            # /dev/null tree
4654            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4655 echo "$as_me: error: cannot find input file: $f" >&2;}
4656    { (exit 1); exit 1; }; }
4657          fi;;
4658       esac
4659     done` || { (exit 1); exit 1; }
4660 _ACEOF
4661 cat >>$CONFIG_STATUS <<_ACEOF
4662   sed "$ac_vpsub
4663 $extrasub
4664 _ACEOF
4665 cat >>$CONFIG_STATUS <<\_ACEOF
4666 :t
4667 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4668 s,@configure_input@,$configure_input,;t t
4669 s,@srcdir@,$ac_srcdir,;t t
4670 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4671 s,@top_srcdir@,$ac_top_srcdir,;t t
4672 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4673 s,@builddir@,$ac_builddir,;t t
4674 s,@abs_builddir@,$ac_abs_builddir,;t t
4675 s,@top_builddir@,$ac_top_builddir,;t t
4676 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4677 s,@INSTALL@,$ac_INSTALL,;t t
4678 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4679   rm -f $tmp/stdin
4680   if test x"$ac_file" != x-; then
4681     mv $tmp/out $ac_file
4682   else
4683     cat $tmp/out
4684     rm -f $tmp/out
4685   fi
4686
4687 done
4688 _ACEOF
4689
4690 cat >>$CONFIG_STATUS <<\_ACEOF
4691
4692 { (exit 0); exit 0; }
4693 _ACEOF
4694 chmod +x $CONFIG_STATUS
4695 ac_clean_files=$ac_clean_files_save
4696
4697
4698 # configure is writing to config.log, and then calls config.status.
4699 # config.status does its own redirection, appending to config.log.
4700 # Unfortunately, on DOS this fails, as config.log is still kept open
4701 # by configure, so config.status won't be able to write to it; its
4702 # output is simply discarded.  So we exec the FD to /dev/null,
4703 # effectively closing config.log, so it can be properly (re)opened and
4704 # appended to by config.status.  When coming back to configure, we
4705 # need to make the FD available again.
4706 if test "$no_create" != yes; then
4707   ac_cs_success=:
4708   ac_config_status_args=
4709   test "$silent" = yes &&
4710     ac_config_status_args="$ac_config_status_args --quiet"
4711   exec 5>/dev/null
4712   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4713   exec 5>>config.log
4714   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4715   # would make configure fail if this is the last instruction.
4716   $ac_cs_success || { (exit 1); exit 1; }
4717 fi
4718
4719