]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - opcodes/configure
2005-12-02 Dave Brolley <brolley@redhat.com>
[thirdparty/binutils-gdb.git] / opcodes / 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="z8k-dis.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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l CC_FOR_BUILD EXEEXT_FOR_BUILD HDEFINES CGEN_MAINT_TRUE CGEN_MAINT_FALSE cgendir WIN32LDFLAGS WIN32LIBADD archdefs BFD_MACHINES 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 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-targets alternative target configurations
860 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings Enable build-time compiler warnings
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
865 --enable-install-libbfd controls installation of libbfd and related headers
866 --disable-nls do not use Native Language Support
867 --enable-cgen-maint=dir build cgen generated files
868
869 Optional Packages:
870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
872 --with-gnu-ld assume the C compiler uses GNU ld default=no
873 --with-pic try to use only PIC/non-PIC objects default=use both
874 --with-included-gettext use the GNU gettext library included here
875
876 Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
883 CPP C preprocessor
884
885 Use these variables to override the choices made by `configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
887
888 _ACEOF
889 fi
890
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
893 ac_popdir=`pwd`
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
896 ac_builddir=.
897
898 if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 else
903 ac_dir_suffix= ac_top_builddir=
904 fi
905
906 case $srcdir in
907 .) # No --srcdir option. We are building in place.
908 ac_srcdir=.
909 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=.
911 else
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 fi ;;
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
917 *) # Relative path.
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
920 esac
921
922 # Do not use `cd foo && pwd` to compute absolute paths, because
923 # the directories may not exist.
924 case `pwd` in
925 .) ac_abs_builddir="$ac_dir";;
926 *)
927 case "$ac_dir" in
928 .) ac_abs_builddir=`pwd`;;
929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930 *) ac_abs_builddir=`pwd`/"$ac_dir";;
931 esac;;
932 esac
933 case $ac_abs_builddir in
934 .) ac_abs_top_builddir=${ac_top_builddir}.;;
935 *)
936 case ${ac_top_builddir}. in
937 .) ac_abs_top_builddir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940 esac;;
941 esac
942 case $ac_abs_builddir in
943 .) ac_abs_srcdir=$ac_srcdir;;
944 *)
945 case $ac_srcdir in
946 .) ac_abs_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949 esac;;
950 esac
951 case $ac_abs_builddir in
952 .) ac_abs_top_srcdir=$ac_top_srcdir;;
953 *)
954 case $ac_top_srcdir in
955 .) ac_abs_top_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958 esac;;
959 esac
960
961 cd $ac_dir
962 # Check for guested configure; otherwise get Cygnus style configure.
963 if test -f $ac_srcdir/configure.gnu; then
964 echo
965 $SHELL $ac_srcdir/configure.gnu --help=recursive
966 elif test -f $ac_srcdir/configure; then
967 echo
968 $SHELL $ac_srcdir/configure --help=recursive
969 elif test -f $ac_srcdir/configure.ac ||
970 test -f $ac_srcdir/configure.in; then
971 echo
972 $ac_configure --help
973 else
974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975 fi
976 cd $ac_popdir
977 done
978 fi
979
980 test -n "$ac_init_help" && exit 0
981 if $ac_init_version; then
982 cat <<\_ACEOF
983
984 Copyright (C) 2003 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
987 _ACEOF
988 exit 0
989 fi
990 exec 5>config.log
991 cat >&5 <<_ACEOF
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
994
995 It was created by $as_me, which was
996 generated by GNU Autoconf 2.59. Invocation command line was
997
998 $ $0 $@
999
1000 _ACEOF
1001 {
1002 cat <<_ASUNAME
1003 ## --------- ##
1004 ## Platform. ##
1005 ## --------- ##
1006
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015
1016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023
1024 _ASUNAME
1025
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027 for as_dir in $PATH
1028 do
1029 IFS=$as_save_IFS
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1032 done
1033
1034 } >&5
1035
1036 cat >&5 <<_ACEOF
1037
1038
1039 ## ----------- ##
1040 ## Core tests. ##
1041 ## ----------- ##
1042
1043 _ACEOF
1044
1045
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1051 ac_configure_args=
1052 ac_configure_args0=
1053 ac_configure_args1=
1054 ac_sep=
1055 ac_must_keep_next=false
1056 for ac_pass in 1 2
1057 do
1058 for ac_arg
1059 do
1060 case $ac_arg in
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 continue ;;
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 esac
1068 case $ac_pass in
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 2)
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1074 else
1075 case $ac_arg in
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 esac
1083 ;;
1084 -* ) ac_must_keep_next=true ;;
1085 esac
1086 fi
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1089 ac_sep=" "
1090 ;;
1091 esac
1092 done
1093 done
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log. We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1104 {
1105 echo
1106
1107 cat <<\_ASBOX
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1111 _ASBOX
1112 echo
1113 # The following way of writing the cache mishandles newlines in values,
1114 {
1115 (set) 2>&1 |
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 *ac_space=\ *)
1118 sed -n \
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 ;;
1122 *)
1123 sed -n \
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 ;;
1126 esac;
1127 }
1128 echo
1129
1130 cat <<\_ASBOX
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_vars
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142
1143 if test -n "$ac_subst_files"; then
1144 cat <<\_ASBOX
1145 ## ------------- ##
1146 ## Output files. ##
1147 ## ------------- ##
1148 _ASBOX
1149 echo
1150 for ac_var in $ac_subst_files
1151 do
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1156 fi
1157
1158 if test -s confdefs.h; then
1159 cat <<\_ASBOX
1160 ## ----------- ##
1161 ## confdefs.h. ##
1162 ## ----------- ##
1163 _ASBOX
1164 echo
1165 sed "/^$/d" confdefs.h | sort
1166 echo
1167 fi
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1171 } >&5
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 exit $exit_status
1175 ' 0
1176 for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178 done
1179 ac_signal=0
1180
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 echo >confdefs.h
1185
1186 # Predefined preprocessor variables.
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210 _ACEOF
1211
1212
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 else
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 fi
1221 fi
1222 for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1227 . "$ac_site_file"
1228 fi
1229 done
1230
1231 if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1237 case $cache_file in
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1240 esac
1241 fi
1242 else
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1245 >$cache_file
1246 fi
1247
1248 # Check that the precious variables saved in the cache have kept the same
1249 # value.
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1258 set,)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,set)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,);;
1267 *)
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272 echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274 echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1276 fi;;
1277 esac
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1280 case $ac_new_val in
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1284 esac
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 esac
1289 fi
1290 done
1291 if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1297 fi
1298
1299 ac_ext=c
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325 ac_aux_dir=
1326 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1327 if test -f $ac_dir/install-sh; then
1328 ac_aux_dir=$ac_dir
1329 ac_install_sh="$ac_aux_dir/install-sh -c"
1330 break
1331 elif test -f $ac_dir/install.sh; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/install.sh -c"
1334 break
1335 elif test -f $ac_dir/shtool; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/shtool install -c"
1338 break
1339 fi
1340 done
1341 if test -z "$ac_aux_dir"; then
1342 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1343 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1344 { (exit 1); exit 1; }; }
1345 fi
1346 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1347 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1348 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1349
1350 # Make sure we can run config.sub.
1351 $ac_config_sub sun4 >/dev/null 2>&1 ||
1352 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1353 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1354 { (exit 1); exit 1; }; }
1355
1356 echo "$as_me:$LINENO: checking build system type" >&5
1357 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1358 if test "${ac_cv_build+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1360 else
1361 ac_cv_build_alias=$build_alias
1362 test -z "$ac_cv_build_alias" &&
1363 ac_cv_build_alias=`$ac_config_guess`
1364 test -z "$ac_cv_build_alias" &&
1365 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1366 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1367 { (exit 1); exit 1; }; }
1368 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1369 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1370 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1371 { (exit 1); exit 1; }; }
1372
1373 fi
1374 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1375 echo "${ECHO_T}$ac_cv_build" >&6
1376 build=$ac_cv_build
1377 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380
1381
1382 echo "$as_me:$LINENO: checking host system type" >&5
1383 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1384 if test "${ac_cv_host+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1386 else
1387 ac_cv_host_alias=$host_alias
1388 test -z "$ac_cv_host_alias" &&
1389 ac_cv_host_alias=$ac_cv_build_alias
1390 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1391 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1392 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1393 { (exit 1); exit 1; }; }
1394
1395 fi
1396 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1397 echo "${ECHO_T}$ac_cv_host" >&6
1398 host=$ac_cv_host
1399 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1400 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1401 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402
1403
1404 echo "$as_me:$LINENO: checking target system type" >&5
1405 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1406 if test "${ac_cv_target+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409 ac_cv_target_alias=$target_alias
1410 test "x$ac_cv_target_alias" = "x" &&
1411 ac_cv_target_alias=$ac_cv_host_alias
1412 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1413 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1414 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1415 { (exit 1); exit 1; }; }
1416
1417 fi
1418 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1419 echo "${ECHO_T}$ac_cv_target" >&6
1420 target=$ac_cv_target
1421 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424
1425
1426 # The aliases save the names the user supplied, while $host etc.
1427 # will get canonicalized.
1428 test -n "$target_alias" &&
1429 test "$program_prefix$program_suffix$program_transform_name" = \
1430 NONENONEs,x,x, &&
1431 program_prefix=${target_alias}-
1432 ac_ext=c
1433 ac_cpp='$CPP $CPPFLAGS'
1434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1437 if test -n "$ac_tool_prefix"; then
1438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1439 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1440 echo "$as_me:$LINENO: checking for $ac_word" >&5
1441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442 if test "${ac_cv_prog_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 else
1445 if test -n "$CC"; then
1446 ac_cv_prog_CC="$CC" # Let the user override the test.
1447 else
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1450 do
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 break 2
1458 fi
1459 done
1460 done
1461
1462 fi
1463 fi
1464 CC=$ac_cv_prog_CC
1465 if test -n "$CC"; then
1466 echo "$as_me:$LINENO: result: $CC" >&5
1467 echo "${ECHO_T}$CC" >&6
1468 else
1469 echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1471 fi
1472
1473 fi
1474 if test -z "$ac_cv_prog_CC"; then
1475 ac_ct_CC=$CC
1476 # Extract the first word of "gcc", so it can be a program name with args.
1477 set dummy gcc; ac_word=$2
1478 echo "$as_me:$LINENO: checking for $ac_word" >&5
1479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 else
1483 if test -n "$ac_ct_CC"; then
1484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485 else
1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 for as_dir in $PATH
1488 do
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 for ac_exec_ext in '' $ac_executable_extensions; do
1492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493 ac_cv_prog_ac_ct_CC="gcc"
1494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 break 2
1496 fi
1497 done
1498 done
1499
1500 fi
1501 fi
1502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1503 if test -n "$ac_ct_CC"; then
1504 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1505 echo "${ECHO_T}$ac_ct_CC" >&6
1506 else
1507 echo "$as_me:$LINENO: result: no" >&5
1508 echo "${ECHO_T}no" >&6
1509 fi
1510
1511 CC=$ac_ct_CC
1512 else
1513 CC="$ac_cv_prog_CC"
1514 fi
1515
1516 if test -z "$CC"; then
1517 if test -n "$ac_tool_prefix"; then
1518 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1519 set dummy ${ac_tool_prefix}cc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525 if test -n "$CC"; then
1526 ac_cv_prog_CC="$CC" # Let the user override the test.
1527 else
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1530 do
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_CC="${ac_tool_prefix}cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 break 2
1538 fi
1539 done
1540 done
1541
1542 fi
1543 fi
1544 CC=$ac_cv_prog_CC
1545 if test -n "$CC"; then
1546 echo "$as_me:$LINENO: result: $CC" >&5
1547 echo "${ECHO_T}$CC" >&6
1548 else
1549 echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1551 fi
1552
1553 fi
1554 if test -z "$ac_cv_prog_CC"; then
1555 ac_ct_CC=$CC
1556 # Extract the first word of "cc", so it can be a program name with args.
1557 set dummy cc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563 if test -n "$ac_ct_CC"; then
1564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565 else
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1568 do
1569 IFS=$as_save_IFS
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_ac_ct_CC="cc"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 break 2
1576 fi
1577 done
1578 done
1579
1580 fi
1581 fi
1582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583 if test -n "$ac_ct_CC"; then
1584 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585 echo "${ECHO_T}$ac_ct_CC" >&6
1586 else
1587 echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1589 fi
1590
1591 CC=$ac_ct_CC
1592 else
1593 CC="$ac_cv_prog_CC"
1594 fi
1595
1596 fi
1597 if test -z "$CC"; then
1598 # Extract the first word of "cc", so it can be a program name with args.
1599 set dummy cc; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1607 else
1608 ac_prog_rejected=no
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 for as_dir in $PATH
1611 do
1612 IFS=$as_save_IFS
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1617 ac_prog_rejected=yes
1618 continue
1619 fi
1620 ac_cv_prog_CC="cc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1623 fi
1624 done
1625 done
1626
1627 if test $ac_prog_rejected = yes; then
1628 # We found a bogon in the path, so make sure we never use it.
1629 set dummy $ac_cv_prog_CC
1630 shift
1631 if test $# != 0; then
1632 # We chose a different compiler from the bogus one.
1633 # However, it has the same basename, so the bogon will be chosen
1634 # first if we set CC to just the basename; use the full file name.
1635 shift
1636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1637 fi
1638 fi
1639 fi
1640 fi
1641 CC=$ac_cv_prog_CC
1642 if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1645 else
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1648 fi
1649
1650 fi
1651 if test -z "$CC"; then
1652 if test -n "$ac_tool_prefix"; then
1653 for ac_prog in cl
1654 do
1655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1657 echo "$as_me:$LINENO: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 else
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1664 else
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1667 do
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
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 fi
1680 fi
1681 CC=$ac_cv_prog_CC
1682 if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1685 else
1686 echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1688 fi
1689
1690 test -n "$CC" && break
1691 done
1692 fi
1693 if test -z "$CC"; then
1694 ac_ct_CC=$CC
1695 for ac_prog in cl
1696 do
1697 # Extract the first word of "$ac_prog", so it can be a program name with args.
1698 set dummy $ac_prog; ac_word=$2
1699 echo "$as_me:$LINENO: checking for $ac_word" >&5
1700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 else
1704 if test -n "$ac_ct_CC"; then
1705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1706 else
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 for as_dir in $PATH
1709 do
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 ac_cv_prog_ac_ct_CC="$ac_prog"
1715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 break 2
1717 fi
1718 done
1719 done
1720
1721 fi
1722 fi
1723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1724 if test -n "$ac_ct_CC"; then
1725 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1726 echo "${ECHO_T}$ac_ct_CC" >&6
1727 else
1728 echo "$as_me:$LINENO: result: no" >&5
1729 echo "${ECHO_T}no" >&6
1730 fi
1731
1732 test -n "$ac_ct_CC" && break
1733 done
1734
1735 CC=$ac_ct_CC
1736 fi
1737
1738 fi
1739
1740
1741 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1742 See \`config.log' for more details." >&5
1743 echo "$as_me: error: no acceptable C compiler found in \$PATH
1744 See \`config.log' for more details." >&2;}
1745 { (exit 1); exit 1; }; }
1746
1747 # Provide some information about the compiler.
1748 echo "$as_me:$LINENO:" \
1749 "checking for C compiler version" >&5
1750 ac_compiler=`set X $ac_compile; echo $2`
1751 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1752 (eval $ac_compiler --version </dev/null >&5) 2>&5
1753 ac_status=$?
1754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755 (exit $ac_status); }
1756 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1757 (eval $ac_compiler -v </dev/null >&5) 2>&5
1758 ac_status=$?
1759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760 (exit $ac_status); }
1761 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1762 (eval $ac_compiler -V </dev/null >&5) 2>&5
1763 ac_status=$?
1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765 (exit $ac_status); }
1766
1767 cat >conftest.$ac_ext <<_ACEOF
1768 /* confdefs.h. */
1769 _ACEOF
1770 cat confdefs.h >>conftest.$ac_ext
1771 cat >>conftest.$ac_ext <<_ACEOF
1772 /* end confdefs.h. */
1773
1774 int
1775 main ()
1776 {
1777
1778 ;
1779 return 0;
1780 }
1781 _ACEOF
1782 ac_clean_files_save=$ac_clean_files
1783 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1784 # Try to create an executable without -o first, disregard a.out.
1785 # It will help us diagnose broken compilers, and finding out an intuition
1786 # of exeext.
1787 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1788 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1789 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1790 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1791 (eval $ac_link_default) 2>&5
1792 ac_status=$?
1793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794 (exit $ac_status); }; then
1795 # Find the output, starting from the most likely. This scheme is
1796 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1797 # resort.
1798
1799 # Be careful to initialize this variable, since it used to be cached.
1800 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1801 ac_cv_exeext=
1802 # b.out is created by i960 compilers.
1803 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1804 do
1805 test -f "$ac_file" || continue
1806 case $ac_file in
1807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1808 ;;
1809 conftest.$ac_ext )
1810 # This is the source file.
1811 ;;
1812 [ab].out )
1813 # We found the default executable, but exeext='' is most
1814 # certainly right.
1815 break;;
1816 *.* )
1817 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1818 # FIXME: I believe we export ac_cv_exeext for Libtool,
1819 # but it would be cool to find out if it's true. Does anybody
1820 # maintain Libtool? --akim.
1821 export ac_cv_exeext
1822 break;;
1823 * )
1824 break;;
1825 esac
1826 done
1827 else
1828 echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1830
1831 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1832 See \`config.log' for more details." >&5
1833 echo "$as_me: error: C compiler cannot create executables
1834 See \`config.log' for more details." >&2;}
1835 { (exit 77); exit 77; }; }
1836 fi
1837
1838 ac_exeext=$ac_cv_exeext
1839 echo "$as_me:$LINENO: result: $ac_file" >&5
1840 echo "${ECHO_T}$ac_file" >&6
1841
1842 # Check the compiler produces executables we can run. If not, either
1843 # the compiler is broken, or we cross compile.
1844 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1845 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1846 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1847 # If not cross compiling, check that we can run a simple program.
1848 if test "$cross_compiling" != yes; then
1849 if { ac_try='./$ac_file'
1850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1851 (eval $ac_try) 2>&5
1852 ac_status=$?
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); }; }; then
1855 cross_compiling=no
1856 else
1857 if test "$cross_compiling" = maybe; then
1858 cross_compiling=yes
1859 else
1860 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'.
1862 See \`config.log' for more details." >&5
1863 echo "$as_me: error: cannot run C compiled programs.
1864 If you meant to cross compile, use \`--host'.
1865 See \`config.log' for more details." >&2;}
1866 { (exit 1); exit 1; }; }
1867 fi
1868 fi
1869 fi
1870 echo "$as_me:$LINENO: result: yes" >&5
1871 echo "${ECHO_T}yes" >&6
1872
1873 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1874 ac_clean_files=$ac_clean_files_save
1875 # Check the compiler produces executables we can run. If not, either
1876 # the compiler is broken, or we cross compile.
1877 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1878 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1879 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1880 echo "${ECHO_T}$cross_compiling" >&6
1881
1882 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1883 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1885 (eval $ac_link) 2>&5
1886 ac_status=$?
1887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888 (exit $ac_status); }; then
1889 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1890 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1891 # work properly (i.e., refer to `conftest.exe'), while it won't with
1892 # `rm'.
1893 for ac_file in conftest.exe conftest conftest.*; do
1894 test -f "$ac_file" || continue
1895 case $ac_file in
1896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1897 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1898 export ac_cv_exeext
1899 break;;
1900 * ) break;;
1901 esac
1902 done
1903 else
1904 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1905 See \`config.log' for more details." >&5
1906 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1907 See \`config.log' for more details." >&2;}
1908 { (exit 1); exit 1; }; }
1909 fi
1910
1911 rm -f conftest$ac_cv_exeext
1912 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1913 echo "${ECHO_T}$ac_cv_exeext" >&6
1914
1915 rm -f conftest.$ac_ext
1916 EXEEXT=$ac_cv_exeext
1917 ac_exeext=$EXEEXT
1918 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1919 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1920 if test "${ac_cv_objext+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923 cat >conftest.$ac_ext <<_ACEOF
1924 /* confdefs.h. */
1925 _ACEOF
1926 cat confdefs.h >>conftest.$ac_ext
1927 cat >>conftest.$ac_ext <<_ACEOF
1928 /* end confdefs.h. */
1929
1930 int
1931 main ()
1932 {
1933
1934 ;
1935 return 0;
1936 }
1937 _ACEOF
1938 rm -f conftest.o conftest.obj
1939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1940 (eval $ac_compile) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; then
1944 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1945 case $ac_file in
1946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1947 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1948 break;;
1949 esac
1950 done
1951 else
1952 echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1954
1955 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1956 See \`config.log' for more details." >&5
1957 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1958 See \`config.log' for more details." >&2;}
1959 { (exit 1); exit 1; }; }
1960 fi
1961
1962 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1963 fi
1964 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1965 echo "${ECHO_T}$ac_cv_objext" >&6
1966 OBJEXT=$ac_cv_objext
1967 ac_objext=$OBJEXT
1968 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1969 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973 cat >conftest.$ac_ext <<_ACEOF
1974 /* confdefs.h. */
1975 _ACEOF
1976 cat confdefs.h >>conftest.$ac_ext
1977 cat >>conftest.$ac_ext <<_ACEOF
1978 /* end confdefs.h. */
1979
1980 int
1981 main ()
1982 {
1983 #ifndef __GNUC__
1984 choke me
1985 #endif
1986
1987 ;
1988 return 0;
1989 }
1990 _ACEOF
1991 rm -f conftest.$ac_objext
1992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1993 (eval $ac_compile) 2>conftest.er1
1994 ac_status=$?
1995 grep -v '^ *+' conftest.er1 >conftest.err
1996 rm -f conftest.er1
1997 cat conftest.err >&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); } &&
2000 { ac_try='test -z "$ac_c_werror_flag"
2001 || test ! -s conftest.err'
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 (eval $ac_try) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; } &&
2007 { ac_try='test -s conftest.$ac_objext'
2008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009 (eval $ac_try) 2>&5
2010 ac_status=$?
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }; }; then
2013 ac_compiler_gnu=yes
2014 else
2015 echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2017
2018 ac_compiler_gnu=no
2019 fi
2020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2021 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2022
2023 fi
2024 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2025 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2026 GCC=`test $ac_compiler_gnu = yes && echo yes`
2027 ac_test_CFLAGS=${CFLAGS+set}
2028 ac_save_CFLAGS=$CFLAGS
2029 CFLAGS="-g"
2030 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2031 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2032 if test "${ac_cv_prog_cc_g+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035 cat >conftest.$ac_ext <<_ACEOF
2036 /* confdefs.h. */
2037 _ACEOF
2038 cat confdefs.h >>conftest.$ac_ext
2039 cat >>conftest.$ac_ext <<_ACEOF
2040 /* end confdefs.h. */
2041
2042 int
2043 main ()
2044 {
2045
2046 ;
2047 return 0;
2048 }
2049 _ACEOF
2050 rm -f conftest.$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>conftest.er1
2053 ac_status=$?
2054 grep -v '^ *+' conftest.er1 >conftest.err
2055 rm -f conftest.er1
2056 cat conftest.err >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
2059 { ac_try='test -z "$ac_c_werror_flag"
2060 || test ! -s conftest.err'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; } &&
2066 { ac_try='test -s conftest.$ac_objext'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2072 ac_cv_prog_cc_g=yes
2073 else
2074 echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2076
2077 ac_cv_prog_cc_g=no
2078 fi
2079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2080 fi
2081 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2082 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2083 if test "$ac_test_CFLAGS" = set; then
2084 CFLAGS=$ac_save_CFLAGS
2085 elif test $ac_cv_prog_cc_g = yes; then
2086 if test "$GCC" = yes; then
2087 CFLAGS="-g -O2"
2088 else
2089 CFLAGS="-g"
2090 fi
2091 else
2092 if test "$GCC" = yes; then
2093 CFLAGS="-O2"
2094 else
2095 CFLAGS=
2096 fi
2097 fi
2098 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2099 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2100 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103 ac_cv_prog_cc_stdc=no
2104 ac_save_CC=$CC
2105 cat >conftest.$ac_ext <<_ACEOF
2106 /* confdefs.h. */
2107 _ACEOF
2108 cat confdefs.h >>conftest.$ac_ext
2109 cat >>conftest.$ac_ext <<_ACEOF
2110 /* end confdefs.h. */
2111 #include <stdarg.h>
2112 #include <stdio.h>
2113 #include <sys/types.h>
2114 #include <sys/stat.h>
2115 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2116 struct buf { int x; };
2117 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2118 static char *e (p, i)
2119 char **p;
2120 int i;
2121 {
2122 return p[i];
2123 }
2124 static char *f (char * (*g) (char **, int), char **p, ...)
2125 {
2126 char *s;
2127 va_list v;
2128 va_start (v,p);
2129 s = g (p, va_arg (v,int));
2130 va_end (v);
2131 return s;
2132 }
2133
2134 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2135 function prototypes and stuff, but not '\xHH' hex character constants.
2136 These don't provoke an error unfortunately, instead are silently treated
2137 as 'x'. The following induces an error, until -std1 is added to get
2138 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2139 array size at least. It's necessary to write '\x00'==0 to get something
2140 that's true only with -std1. */
2141 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2142
2143 int test (int i, double x);
2144 struct s1 {int (*f) (int a);};
2145 struct s2 {int (*f) (double a);};
2146 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2147 int argc;
2148 char **argv;
2149 int
2150 main ()
2151 {
2152 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2153 ;
2154 return 0;
2155 }
2156 _ACEOF
2157 # Don't try gcc -ansi; that turns off useful extensions and
2158 # breaks some systems' header files.
2159 # AIX -qlanglvl=ansi
2160 # Ultrix and OSF/1 -std1
2161 # HP-UX 10.20 and later -Ae
2162 # HP-UX older versions -Aa -D_HPUX_SOURCE
2163 # SVR4 -Xc -D__EXTENSIONS__
2164 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2165 do
2166 CC="$ac_save_CC $ac_arg"
2167 rm -f conftest.$ac_objext
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>conftest.er1
2170 ac_status=$?
2171 grep -v '^ *+' conftest.er1 >conftest.err
2172 rm -f conftest.er1
2173 cat conftest.err >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); } &&
2176 { ac_try='test -z "$ac_c_werror_flag"
2177 || test ! -s conftest.err'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; } &&
2183 { ac_try='test -s conftest.$ac_objext'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2189 ac_cv_prog_cc_stdc=$ac_arg
2190 break
2191 else
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2194
2195 fi
2196 rm -f conftest.err conftest.$ac_objext
2197 done
2198 rm -f conftest.$ac_ext conftest.$ac_objext
2199 CC=$ac_save_CC
2200
2201 fi
2202
2203 case "x$ac_cv_prog_cc_stdc" in
2204 x|xno)
2205 echo "$as_me:$LINENO: result: none needed" >&5
2206 echo "${ECHO_T}none needed" >&6 ;;
2207 *)
2208 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2209 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2210 CC="$CC $ac_cv_prog_cc_stdc" ;;
2211 esac
2212
2213 # Some people use a C++ compiler to compile C. Since we use `exit',
2214 # in C++ we need to declare it. In case someone uses the same compiler
2215 # for both compiling C and C++ we need to have the C++ compiler decide
2216 # the declaration of exit, since it's the most demanding environment.
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #ifndef __cplusplus
2219 choke me
2220 #endif
2221 _ACEOF
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224 (eval $ac_compile) 2>conftest.er1
2225 ac_status=$?
2226 grep -v '^ *+' conftest.er1 >conftest.err
2227 rm -f conftest.er1
2228 cat conftest.err >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } &&
2231 { ac_try='test -z "$ac_c_werror_flag"
2232 || test ! -s conftest.err'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 (eval $ac_try) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; } &&
2238 { ac_try='test -s conftest.$ac_objext'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 (eval $ac_try) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2244 for ac_declaration in \
2245 '' \
2246 'extern "C" void std::exit (int) throw (); using std::exit;' \
2247 'extern "C" void std::exit (int); using std::exit;' \
2248 'extern "C" void exit (int) throw ();' \
2249 'extern "C" void exit (int);' \
2250 'void exit (int);'
2251 do
2252 cat >conftest.$ac_ext <<_ACEOF
2253 /* confdefs.h. */
2254 _ACEOF
2255 cat confdefs.h >>conftest.$ac_ext
2256 cat >>conftest.$ac_ext <<_ACEOF
2257 /* end confdefs.h. */
2258 $ac_declaration
2259 #include <stdlib.h>
2260 int
2261 main ()
2262 {
2263 exit (42);
2264 ;
2265 return 0;
2266 }
2267 _ACEOF
2268 rm -f conftest.$ac_objext
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270 (eval $ac_compile) 2>conftest.er1
2271 ac_status=$?
2272 grep -v '^ *+' conftest.er1 >conftest.err
2273 rm -f conftest.er1
2274 cat conftest.err >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); } &&
2277 { ac_try='test -z "$ac_c_werror_flag"
2278 || test ! -s conftest.err'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 (eval $ac_try) 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; } &&
2284 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2290 :
2291 else
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294
2295 continue
2296 fi
2297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2298 cat >conftest.$ac_ext <<_ACEOF
2299 /* confdefs.h. */
2300 _ACEOF
2301 cat confdefs.h >>conftest.$ac_ext
2302 cat >>conftest.$ac_ext <<_ACEOF
2303 /* end confdefs.h. */
2304 $ac_declaration
2305 int
2306 main ()
2307 {
2308 exit (42);
2309 ;
2310 return 0;
2311 }
2312 _ACEOF
2313 rm -f conftest.$ac_objext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>conftest.er1
2316 ac_status=$?
2317 grep -v '^ *+' conftest.er1 >conftest.err
2318 rm -f conftest.er1
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } &&
2322 { ac_try='test -z "$ac_c_werror_flag"
2323 || test ! -s conftest.err'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; } &&
2329 { ac_try='test -s conftest.$ac_objext'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 (eval $ac_try) 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; }; then
2335 break
2336 else
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2339
2340 fi
2341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342 done
2343 rm -f conftest*
2344 if test -n "$ac_declaration"; then
2345 echo '#ifdef __cplusplus' >>confdefs.h
2346 echo $ac_declaration >>confdefs.h
2347 echo '#endif' >>confdefs.h
2348 fi
2349
2350 else
2351 echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2353
2354 fi
2355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2356 ac_ext=c
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361
2362
2363 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2364 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2365 if test "${ac_cv_search_strerror+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368 ac_func_search_save_LIBS=$LIBS
2369 ac_cv_search_strerror=no
2370 cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h. */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2376
2377 /* Override any gcc2 internal prototype to avoid an error. */
2378 #ifdef __cplusplus
2379 extern "C"
2380 #endif
2381 /* We use char because int might match the return type of a gcc2
2382 builtin and then its argument prototype would still apply. */
2383 char strerror ();
2384 int
2385 main ()
2386 {
2387 strerror ();
2388 ;
2389 return 0;
2390 }
2391 _ACEOF
2392 rm -f conftest.$ac_objext conftest$ac_exeext
2393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2394 (eval $ac_link) 2>conftest.er1
2395 ac_status=$?
2396 grep -v '^ *+' conftest.er1 >conftest.err
2397 rm -f conftest.er1
2398 cat conftest.err >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
2401 { ac_try='test -z "$ac_c_werror_flag"
2402 || test ! -s conftest.err'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 (eval $ac_try) 2>&5
2405 ac_status=$?
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; } &&
2408 { ac_try='test -s conftest$ac_exeext'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
2414 ac_cv_search_strerror="none required"
2415 else
2416 echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2418
2419 fi
2420 rm -f conftest.err conftest.$ac_objext \
2421 conftest$ac_exeext conftest.$ac_ext
2422 if test "$ac_cv_search_strerror" = no; then
2423 for ac_lib in cposix; do
2424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2425 cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h. */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2431
2432 /* Override any gcc2 internal prototype to avoid an error. */
2433 #ifdef __cplusplus
2434 extern "C"
2435 #endif
2436 /* We use char because int might match the return type of a gcc2
2437 builtin and then its argument prototype would still apply. */
2438 char strerror ();
2439 int
2440 main ()
2441 {
2442 strerror ();
2443 ;
2444 return 0;
2445 }
2446 _ACEOF
2447 rm -f conftest.$ac_objext conftest$ac_exeext
2448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2449 (eval $ac_link) 2>conftest.er1
2450 ac_status=$?
2451 grep -v '^ *+' conftest.er1 >conftest.err
2452 rm -f conftest.er1
2453 cat conftest.err >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } &&
2456 { ac_try='test -z "$ac_c_werror_flag"
2457 || test ! -s conftest.err'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; } &&
2463 { ac_try='test -s conftest$ac_exeext'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; }; then
2469 ac_cv_search_strerror="-l$ac_lib"
2470 break
2471 else
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 fi
2476 rm -f conftest.err conftest.$ac_objext \
2477 conftest$ac_exeext conftest.$ac_ext
2478 done
2479 fi
2480 LIBS=$ac_func_search_save_LIBS
2481 fi
2482 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2483 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2484 if test "$ac_cv_search_strerror" != no; then
2485 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2486
2487 fi
2488
2489
2490 # We currently only use the version number for the name of any shared
2491 # library. For user convenience, we always use the same version
2492 # number that BFD is using.
2493 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2494
2495 am__api_version="1.9"
2496 # Find a good install program. We prefer a C program (faster),
2497 # so one script is as good as another. But avoid the broken or
2498 # incompatible versions:
2499 # SysV /etc/install, /usr/sbin/install
2500 # SunOS /usr/etc/install
2501 # IRIX /sbin/install
2502 # AIX /bin/install
2503 # AmigaOS /C/install, which installs bootblocks on floppy discs
2504 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2505 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2506 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2507 # OS/2's system install, which has a completely different semantic
2508 # ./install, which can be erroneously created by make from ./install.sh.
2509 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2510 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2511 if test -z "$INSTALL"; then
2512 if test "${ac_cv_path_install+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2517 do
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 # Account for people who put trailing slashes in PATH elements.
2521 case $as_dir/ in
2522 ./ | .// | /cC/* | \
2523 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2524 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2525 /usr/ucb/* ) ;;
2526 *)
2527 # OSF1 and SCO ODT 3.0 have their own names for install.
2528 # Don't use installbsd from OSF since it installs stuff as root
2529 # by default.
2530 for ac_prog in ginstall scoinst install; do
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2533 if test $ac_prog = install &&
2534 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2535 # AIX install. It has an incompatible calling convention.
2536 :
2537 elif test $ac_prog = install &&
2538 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2539 # program-specific install script used by HP pwplus--don't use.
2540 :
2541 else
2542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2543 break 3
2544 fi
2545 fi
2546 done
2547 done
2548 ;;
2549 esac
2550 done
2551
2552
2553 fi
2554 if test "${ac_cv_path_install+set}" = set; then
2555 INSTALL=$ac_cv_path_install
2556 else
2557 # As a last resort, use the slow shell script. We don't cache a
2558 # path for INSTALL within a source directory, because that will
2559 # break other packages using the cache if that directory is
2560 # removed, or if the path is relative.
2561 INSTALL=$ac_install_sh
2562 fi
2563 fi
2564 echo "$as_me:$LINENO: result: $INSTALL" >&5
2565 echo "${ECHO_T}$INSTALL" >&6
2566
2567 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2568 # It thinks the first close brace ends the variable substitution.
2569 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2570
2571 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2572
2573 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2574
2575 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2576 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2577 # Just in case
2578 sleep 1
2579 echo timestamp > conftest.file
2580 # Do `set' in a subshell so we don't clobber the current shell's
2581 # arguments. Must try -L first in case configure is actually a
2582 # symlink; some systems play weird games with the mod time of symlinks
2583 # (eg FreeBSD returns the mod time of the symlink's containing
2584 # directory).
2585 if (
2586 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2587 if test "$*" = "X"; then
2588 # -L didn't work.
2589 set X `ls -t $srcdir/configure conftest.file`
2590 fi
2591 rm -f conftest.file
2592 if test "$*" != "X $srcdir/configure conftest.file" \
2593 && test "$*" != "X conftest.file $srcdir/configure"; then
2594
2595 # If neither matched, then we have a broken ls. This can happen
2596 # if, for instance, CONFIG_SHELL is bash and it inherits a
2597 # broken ls alias from the environment. This has actually
2598 # happened. Such a system could not be considered "sane".
2599 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2600 alias in your environment" >&5
2601 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2602 alias in your environment" >&2;}
2603 { (exit 1); exit 1; }; }
2604 fi
2605
2606 test "$2" = conftest.file
2607 )
2608 then
2609 # Ok.
2610 :
2611 else
2612 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2613 Check your system clock" >&5
2614 echo "$as_me: error: newly created file is older than distributed files!
2615 Check your system clock" >&2;}
2616 { (exit 1); exit 1; }; }
2617 fi
2618 echo "$as_me:$LINENO: result: yes" >&5
2619 echo "${ECHO_T}yes" >&6
2620 test "$program_prefix" != NONE &&
2621 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2622 # Use a double $ so make ignores it.
2623 test "$program_suffix" != NONE &&
2624 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2625 # Double any \ or $. echo might interpret backslashes.
2626 # By default was `s,x,x', remove it if useless.
2627 cat <<\_ACEOF >conftest.sed
2628 s/[\\$]/&&/g;s/;s,x,x,$//
2629 _ACEOF
2630 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2631 rm conftest.sed
2632
2633 # expand $ac_aux_dir to an absolute path
2634 am_aux_dir=`cd $ac_aux_dir && pwd`
2635
2636 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2637 # Use eval to expand $SHELL
2638 if eval "$MISSING --run true"; then
2639 am_missing_run="$MISSING --run "
2640 else
2641 am_missing_run=
2642 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2643 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2644 fi
2645
2646 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2647 # We used to keeping the `.' as first argument, in order to
2648 # allow $(mkdir_p) to be used without argument. As in
2649 # $(mkdir_p) $(somedir)
2650 # where $(somedir) is conditionally defined. However this is wrong
2651 # for two reasons:
2652 # 1. if the package is installed by a user who cannot write `.'
2653 # make install will fail,
2654 # 2. the above comment should most certainly read
2655 # $(mkdir_p) $(DESTDIR)$(somedir)
2656 # so it does not work when $(somedir) is undefined and
2657 # $(DESTDIR) is not.
2658 # To support the latter case, we have to write
2659 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2660 # so the `.' trick is pointless.
2661 mkdir_p='mkdir -p --'
2662 else
2663 # On NextStep and OpenStep, the `mkdir' command does not
2664 # recognize any option. It will interpret all options as
2665 # directories to create, and then abort because `.' already
2666 # exists.
2667 for d in ./-p ./--version;
2668 do
2669 test -d $d && rmdir $d
2670 done
2671 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2672 if test -f "$ac_aux_dir/mkinstalldirs"; then
2673 mkdir_p='$(mkinstalldirs)'
2674 else
2675 mkdir_p='$(install_sh) -d'
2676 fi
2677 fi
2678
2679 for ac_prog in gawk mawk nawk awk
2680 do
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682 set dummy $ac_prog; ac_word=$2
2683 echo "$as_me:$LINENO: checking for $ac_word" >&5
2684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2685 if test "${ac_cv_prog_AWK+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 else
2688 if test -n "$AWK"; then
2689 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2698 ac_cv_prog_AWK="$ac_prog"
2699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2701 fi
2702 done
2703 done
2704
2705 fi
2706 fi
2707 AWK=$ac_cv_prog_AWK
2708 if test -n "$AWK"; then
2709 echo "$as_me:$LINENO: result: $AWK" >&5
2710 echo "${ECHO_T}$AWK" >&6
2711 else
2712 echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6
2714 fi
2715
2716 test -n "$AWK" && break
2717 done
2718
2719 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2720 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2721 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2722 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725 cat >conftest.make <<\_ACEOF
2726 all:
2727 @echo 'ac_maketemp="$(MAKE)"'
2728 _ACEOF
2729 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2730 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2731 if test -n "$ac_maketemp"; then
2732 eval ac_cv_prog_make_${ac_make}_set=yes
2733 else
2734 eval ac_cv_prog_make_${ac_make}_set=no
2735 fi
2736 rm -f conftest.make
2737 fi
2738 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2739 echo "$as_me:$LINENO: result: yes" >&5
2740 echo "${ECHO_T}yes" >&6
2741 SET_MAKE=
2742 else
2743 echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6
2745 SET_MAKE="MAKE=${MAKE-make}"
2746 fi
2747
2748 rm -rf .tst 2>/dev/null
2749 mkdir .tst 2>/dev/null
2750 if test -d .tst; then
2751 am__leading_dot=.
2752 else
2753 am__leading_dot=_
2754 fi
2755 rmdir .tst 2>/dev/null
2756
2757 DEPDIR="${am__leading_dot}deps"
2758
2759 ac_config_commands="$ac_config_commands depfiles"
2760
2761
2762 am_make=${MAKE-make}
2763 cat > confinc << 'END'
2764 am__doit:
2765 @echo done
2766 .PHONY: am__doit
2767 END
2768 # If we don't find an include directive, just comment out the code.
2769 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2770 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2771 am__include="#"
2772 am__quote=
2773 _am_result=none
2774 # First try GNU make style include.
2775 echo "include confinc" > confmf
2776 # We grep out `Entering directory' and `Leaving directory'
2777 # messages which can occur if `w' ends up in MAKEFLAGS.
2778 # In particular we don't look at `^make:' because GNU make might
2779 # be invoked under some other name (usually "gmake"), in which
2780 # case it prints its new name instead of `make'.
2781 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2782 am__include=include
2783 am__quote=
2784 _am_result=GNU
2785 fi
2786 # Now try BSD make style include.
2787 if test "$am__include" = "#"; then
2788 echo '.include "confinc"' > confmf
2789 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2790 am__include=.include
2791 am__quote="\""
2792 _am_result=BSD
2793 fi
2794 fi
2795
2796
2797 echo "$as_me:$LINENO: result: $_am_result" >&5
2798 echo "${ECHO_T}$_am_result" >&6
2799 rm -f confinc confmf
2800
2801 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2802 if test "${enable_dependency_tracking+set}" = set; then
2803 enableval="$enable_dependency_tracking"
2804
2805 fi;
2806 if test "x$enable_dependency_tracking" != xno; then
2807 am_depcomp="$ac_aux_dir/depcomp"
2808 AMDEPBACKSLASH='\'
2809 fi
2810
2811
2812 if test "x$enable_dependency_tracking" != xno; then
2813 AMDEP_TRUE=
2814 AMDEP_FALSE='#'
2815 else
2816 AMDEP_TRUE='#'
2817 AMDEP_FALSE=
2818 fi
2819
2820
2821
2822 # test to see if srcdir already configured
2823 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2824 test -f $srcdir/config.status; then
2825 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2826 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2827 { (exit 1); exit 1; }; }
2828 fi
2829
2830 # test whether we have cygpath
2831 if test -z "$CYGPATH_W"; then
2832 if (cygpath --version) >/dev/null 2>/dev/null; then
2833 CYGPATH_W='cygpath -w'
2834 else
2835 CYGPATH_W=echo
2836 fi
2837 fi
2838
2839
2840 # Define the identity of the package.
2841 PACKAGE=opcodes
2842 VERSION=${BFD_VERSION}
2843
2844
2845 cat >>confdefs.h <<_ACEOF
2846 #define PACKAGE "$PACKAGE"
2847 _ACEOF
2848
2849
2850 cat >>confdefs.h <<_ACEOF
2851 #define VERSION "$VERSION"
2852 _ACEOF
2853
2854 # Some tools Automake needs.
2855
2856 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2857
2858
2859 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2860
2861
2862 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2863
2864
2865 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2866
2867
2868 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2869
2870 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2871
2872 # Installed binaries are usually stripped using `strip' when the user
2873 # run `make install-strip'. However `strip' might not be the right
2874 # tool to use in cross-compilation environments, therefore Automake
2875 # will honor the `STRIP' environment variable to overrule this program.
2876 if test "$cross_compiling" != no; then
2877 if test -n "$ac_tool_prefix"; then
2878 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2879 set dummy ${ac_tool_prefix}strip; ac_word=$2
2880 echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882 if test "${ac_cv_prog_STRIP+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885 if test -n "$STRIP"; then
2886 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2898 fi
2899 done
2900 done
2901
2902 fi
2903 fi
2904 STRIP=$ac_cv_prog_STRIP
2905 if test -n "$STRIP"; then
2906 echo "$as_me:$LINENO: result: $STRIP" >&5
2907 echo "${ECHO_T}$STRIP" >&6
2908 else
2909 echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6
2911 fi
2912
2913 fi
2914 if test -z "$ac_cv_prog_STRIP"; then
2915 ac_ct_STRIP=$STRIP
2916 # Extract the first word of "strip", so it can be a program name with args.
2917 set dummy strip; ac_word=$2
2918 echo "$as_me:$LINENO: checking for $ac_word" >&5
2919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2920 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923 if test -n "$ac_ct_STRIP"; then
2924 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2925 else
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2933 ac_cv_prog_ac_ct_STRIP="strip"
2934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937 done
2938 done
2939
2940 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2941 fi
2942 fi
2943 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2944 if test -n "$ac_ct_STRIP"; then
2945 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2946 echo "${ECHO_T}$ac_ct_STRIP" >&6
2947 else
2948 echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6
2950 fi
2951
2952 STRIP=$ac_ct_STRIP
2953 else
2954 STRIP="$ac_cv_prog_STRIP"
2955 fi
2956
2957 fi
2958 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2959
2960 # We need awk for the "check" target. The system "awk" is bad on
2961 # some platforms.
2962 # Always define AMTAR for backward compatibility.
2963
2964 AMTAR=${AMTAR-"${am_missing_run}tar"}
2965
2966 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2967
2968
2969
2970
2971 depcc="$CC" am_compiler_list=
2972
2973 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2974 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2975 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 else
2978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2979 # We make a subdir and do the tests there. Otherwise we can end up
2980 # making bogus files that we don't know about and never remove. For
2981 # instance it was reported that on HP-UX the gcc test will end up
2982 # making a dummy file named `D' -- because `-MD' means `put the output
2983 # in D'.
2984 mkdir conftest.dir
2985 # Copy depcomp to subdir because otherwise we won't find it if we're
2986 # using a relative directory.
2987 cp "$am_depcomp" conftest.dir
2988 cd conftest.dir
2989 # We will build objects and dependencies in a subdirectory because
2990 # it helps to detect inapplicable dependency modes. For instance
2991 # both Tru64's cc and ICC support -MD to output dependencies as a
2992 # side effect of compilation, but ICC will put the dependencies in
2993 # the current directory while Tru64 will put them in the object
2994 # directory.
2995 mkdir sub
2996
2997 am_cv_CC_dependencies_compiler_type=none
2998 if test "$am_compiler_list" = ""; then
2999 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3000 fi
3001 for depmode in $am_compiler_list; do
3002 # Setup a source with many dependencies, because some compilers
3003 # like to wrap large dependency lists on column 80 (with \), and
3004 # we should not choose a depcomp mode which is confused by this.
3005 #
3006 # We need to recreate these files for each test, as the compiler may
3007 # overwrite some of them when testing with obscure command lines.
3008 # This happens at least with the AIX C compiler.
3009 : > sub/conftest.c
3010 for i in 1 2 3 4 5 6; do
3011 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3012 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3013 # Solaris 8's {/usr,}/bin/sh.
3014 touch sub/conftst$i.h
3015 done
3016 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3017
3018 case $depmode in
3019 nosideeffect)
3020 # after this tag, mechanisms are not by side-effect, so they'll
3021 # only be used when explicitly requested
3022 if test "x$enable_dependency_tracking" = xyes; then
3023 continue
3024 else
3025 break
3026 fi
3027 ;;
3028 none) break ;;
3029 esac
3030 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3031 # mode. It turns out that the SunPro C++ compiler does not properly
3032 # handle `-M -o', and we need to detect this.
3033 if depmode=$depmode \
3034 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3035 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3036 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3037 >/dev/null 2>conftest.err &&
3038 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3039 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3040 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3041 # icc doesn't choke on unknown options, it will just issue warnings
3042 # or remarks (even with -Werror). So we grep stderr for any message
3043 # that says an option was ignored or not supported.
3044 # When given -MP, icc 7.0 and 7.1 complain thusly:
3045 # icc: Command line warning: ignoring option '-M'; no argument required
3046 # The diagnosis changed in icc 8.0:
3047 # icc: Command line remark: option '-MP' not supported
3048 if (grep 'ignoring option' conftest.err ||
3049 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3050 am_cv_CC_dependencies_compiler_type=$depmode
3051 break
3052 fi
3053 fi
3054 done
3055
3056 cd ..
3057 rm -rf conftest.dir
3058 else
3059 am_cv_CC_dependencies_compiler_type=none
3060 fi
3061
3062 fi
3063 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3064 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3065 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3066
3067
3068
3069 if
3070 test "x$enable_dependency_tracking" != xno \
3071 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3072 am__fastdepCC_TRUE=
3073 am__fastdepCC_FALSE='#'
3074 else
3075 am__fastdepCC_TRUE='#'
3076 am__fastdepCC_FALSE=
3077 fi
3078
3079
3080
3081
3082 if test -n "$ac_tool_prefix"; then
3083 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3084 set dummy ${ac_tool_prefix}ar; ac_word=$2
3085 echo "$as_me:$LINENO: checking for $ac_word" >&5
3086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3087 if test "${ac_cv_prog_AR+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 else
3090 if test -n "$AR"; then
3091 ac_cv_prog_AR="$AR" # Let the user override the test.
3092 else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3095 do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100 ac_cv_prog_AR="${ac_tool_prefix}ar"
3101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 break 2
3103 fi
3104 done
3105 done
3106
3107 fi
3108 fi
3109 AR=$ac_cv_prog_AR
3110 if test -n "$AR"; then
3111 echo "$as_me:$LINENO: result: $AR" >&5
3112 echo "${ECHO_T}$AR" >&6
3113 else
3114 echo "$as_me:$LINENO: result: no" >&5
3115 echo "${ECHO_T}no" >&6
3116 fi
3117
3118 fi
3119 if test -z "$ac_cv_prog_AR"; then
3120 ac_ct_AR=$AR
3121 # Extract the first word of "ar", so it can be a program name with args.
3122 set dummy ar; ac_word=$2
3123 echo "$as_me:$LINENO: checking for $ac_word" >&5
3124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3125 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128 if test -n "$ac_ct_AR"; then
3129 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_ac_ct_AR="ar"
3139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142 done
3143 done
3144
3145 fi
3146 fi
3147 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3148 if test -n "$ac_ct_AR"; then
3149 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3150 echo "${ECHO_T}$ac_ct_AR" >&6
3151 else
3152 echo "$as_me:$LINENO: result: no" >&5
3153 echo "${ECHO_T}no" >&6
3154 fi
3155
3156 AR=$ac_ct_AR
3157 else
3158 AR="$ac_cv_prog_AR"
3159 fi
3160
3161 if test -n "$ac_tool_prefix"; then
3162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3163 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3164 echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3166 if test "${ac_cv_prog_RANLIB+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169 if test -n "$RANLIB"; then
3170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3182 fi
3183 done
3184 done
3185
3186 fi
3187 fi
3188 RANLIB=$ac_cv_prog_RANLIB
3189 if test -n "$RANLIB"; then
3190 echo "$as_me:$LINENO: result: $RANLIB" >&5
3191 echo "${ECHO_T}$RANLIB" >&6
3192 else
3193 echo "$as_me:$LINENO: result: no" >&5
3194 echo "${ECHO_T}no" >&6
3195 fi
3196
3197 fi
3198 if test -z "$ac_cv_prog_RANLIB"; then
3199 ac_ct_RANLIB=$RANLIB
3200 # Extract the first word of "ranlib", so it can be a program name with args.
3201 set dummy ranlib; ac_word=$2
3202 echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3204 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207 if test -n "$ac_ct_RANLIB"; then
3208 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_ac_ct_RANLIB="ranlib"
3218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3220 fi
3221 done
3222 done
3223
3224 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3225 fi
3226 fi
3227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3228 if test -n "$ac_ct_RANLIB"; then
3229 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3230 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3231 else
3232 echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3234 fi
3235
3236 RANLIB=$ac_ct_RANLIB
3237 else
3238 RANLIB="$ac_cv_prog_RANLIB"
3239 fi
3240
3241
3242 # Check whether --enable-shared or --disable-shared was given.
3243 if test "${enable_shared+set}" = set; then
3244 enableval="$enable_shared"
3245 p=${PACKAGE-default}
3246 case $enableval in
3247 yes) enable_shared=yes ;;
3248 no) enable_shared=no ;;
3249 *)
3250 enable_shared=no
3251 # Look at the argument we got. We use all the common list separators.
3252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3253 for pkg in $enableval; do
3254 if test "X$pkg" = "X$p"; then
3255 enable_shared=yes
3256 fi
3257 done
3258 IFS="$ac_save_ifs"
3259 ;;
3260 esac
3261 else
3262 enable_shared=no
3263 fi;
3264
3265 # Check whether --enable-static or --disable-static was given.
3266 if test "${enable_static+set}" = set; then
3267 enableval="$enable_static"
3268 p=${PACKAGE-default}
3269 case $enableval in
3270 yes) enable_static=yes ;;
3271 no) enable_static=no ;;
3272 *)
3273 enable_static=no
3274 # Look at the argument we got. We use all the common list separators.
3275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3276 for pkg in $enableval; do
3277 if test "X$pkg" = "X$p"; then
3278 enable_static=yes
3279 fi
3280 done
3281 IFS="$ac_save_ifs"
3282 ;;
3283 esac
3284 else
3285 enable_static=yes
3286 fi;
3287 # Check whether --enable-fast-install or --disable-fast-install was given.
3288 if test "${enable_fast_install+set}" = set; then
3289 enableval="$enable_fast_install"
3290 p=${PACKAGE-default}
3291 case $enableval in
3292 yes) enable_fast_install=yes ;;
3293 no) enable_fast_install=no ;;
3294 *)
3295 enable_fast_install=no
3296 # Look at the argument we got. We use all the common list separators.
3297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3298 for pkg in $enableval; do
3299 if test "X$pkg" = "X$p"; then
3300 enable_fast_install=yes
3301 fi
3302 done
3303 IFS="$ac_save_ifs"
3304 ;;
3305 esac
3306 else
3307 enable_fast_install=yes
3308 fi;
3309
3310 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3311 if test "${with_gnu_ld+set}" = set; then
3312 withval="$with_gnu_ld"
3313 test "$withval" = no || with_gnu_ld=yes
3314 else
3315 with_gnu_ld=no
3316 fi;
3317 ac_prog=ld
3318 if test "$GCC" = yes; then
3319 # Check if gcc -print-prog-name=ld gives a path.
3320 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3321 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3322 case $host in
3323 *-*-mingw*)
3324 # gcc leaves a trailing carriage return which upsets mingw
3325 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3326 *)
3327 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3328 esac
3329 case $ac_prog in
3330 # Accept absolute paths.
3331 [\\/]* | [A-Za-z]:[\\/]*)
3332 re_direlt='/[^/][^/]*/\.\./'
3333 # Canonicalize the path of ld
3334 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3335 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3336 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3337 done
3338 test -z "$LD" && LD="$ac_prog"
3339 ;;
3340 "")
3341 # If it fails, then pretend we aren't using GCC.
3342 ac_prog=ld
3343 ;;
3344 *)
3345 # If it is relative, then search for the first ld in PATH.
3346 with_gnu_ld=unknown
3347 ;;
3348 esac
3349 elif test "$with_gnu_ld" = yes; then
3350 echo "$as_me:$LINENO: checking for GNU ld" >&5
3351 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3352 else
3353 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3354 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3355 fi
3356 if test "${lt_cv_path_LD+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 if test -z "$LD"; then
3360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3361 for ac_dir in $PATH; do
3362 test -z "$ac_dir" && ac_dir=.
3363 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3364 lt_cv_path_LD="$ac_dir/$ac_prog"
3365 # Check to see if the program is GNU ld. I'd rather use --version,
3366 # but apparently some GNU ld's only accept -v.
3367 # Break only if it was the GNU/non-GNU ld that we prefer.
3368 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3369 test "$with_gnu_ld" != no && break
3370 else
3371 test "$with_gnu_ld" != yes && break
3372 fi
3373 fi
3374 done
3375 IFS="$ac_save_ifs"
3376 else
3377 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3378 fi
3379 fi
3380
3381 LD="$lt_cv_path_LD"
3382 if test -n "$LD"; then
3383 echo "$as_me:$LINENO: result: $LD" >&5
3384 echo "${ECHO_T}$LD" >&6
3385 else
3386 echo "$as_me:$LINENO: result: no" >&5
3387 echo "${ECHO_T}no" >&6
3388 fi
3389 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3390 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3391 { (exit 1); exit 1; }; }
3392 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3393 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3394 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3398 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3399 lt_cv_prog_gnu_ld=yes
3400 else
3401 lt_cv_prog_gnu_ld=no
3402 fi
3403 fi
3404 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3405 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3406 with_gnu_ld=$lt_cv_prog_gnu_ld
3407
3408
3409 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3410 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3411 if test "${lt_cv_ld_reload_flag+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 lt_cv_ld_reload_flag='-r'
3415 fi
3416 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3417 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3418 reload_flag=$lt_cv_ld_reload_flag
3419 test -n "$reload_flag" && reload_flag=" $reload_flag"
3420
3421 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3422 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3423 if test "${lt_cv_path_NM+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 else
3426 if test -n "$NM"; then
3427 # Let the user override the test.
3428 lt_cv_path_NM="$NM"
3429 else
3430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3431 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3432 test -z "$ac_dir" && ac_dir=.
3433 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3434 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3435 # Check to see if the nm accepts a BSD-compat flag.
3436 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3437 # nm: unknown option "B" ignored
3438 # Tru64's nm complains that /dev/null is an invalid object file
3439 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3440 lt_cv_path_NM="$tmp_nm -B"
3441 break
3442 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3443 lt_cv_path_NM="$tmp_nm -p"
3444 break
3445 else
3446 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3447 continue # so that we can try to find one that supports BSD flags
3448 fi
3449 fi
3450 done
3451 IFS="$ac_save_ifs"
3452 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3453 fi
3454 fi
3455
3456 NM="$lt_cv_path_NM"
3457 echo "$as_me:$LINENO: result: $NM" >&5
3458 echo "${ECHO_T}$NM" >&6
3459
3460 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3461 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3462 LN_S=$as_ln_s
3463 if test "$LN_S" = "ln -s"; then
3464 echo "$as_me:$LINENO: result: yes" >&5
3465 echo "${ECHO_T}yes" >&6
3466 else
3467 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3468 echo "${ECHO_T}no, using $LN_S" >&6
3469 fi
3470
3471 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3472 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3473 if test "${lt_cv_deplibs_check_method+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476 lt_cv_file_magic_cmd='$MAGIC_CMD'
3477 lt_cv_file_magic_test_file=
3478 lt_cv_deplibs_check_method='unknown'
3479 # Need to set the preceding variable on all platforms that support
3480 # interlibrary dependencies.
3481 # 'none' -- dependencies not supported.
3482 # `unknown' -- same as none, but documents that we really don't know.
3483 # 'pass_all' -- all dependencies passed with no checks.
3484 # 'test_compile' -- check by making test program.
3485 # 'file_magic [regex]' -- check by looking for files in library path
3486 # which responds to the $file_magic_cmd with a given egrep regex.
3487 # If you have `file' or equivalent on your system and you're not sure
3488 # whether `pass_all' will *always* work, you probably want this one.
3489
3490 case $host_os in
3491 aix*)
3492 lt_cv_deplibs_check_method=pass_all
3493 ;;
3494
3495 beos*)
3496 lt_cv_deplibs_check_method=pass_all
3497 ;;
3498
3499 bsdi4*)
3500 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3501 lt_cv_file_magic_cmd='/usr/bin/file -L'
3502 lt_cv_file_magic_test_file=/shlib/libc.so
3503 ;;
3504
3505 cygwin* | mingw* |pw32*)
3506 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3507 lt_cv_file_magic_cmd='$OBJDUMP -f'
3508 ;;
3509
3510 darwin* | rhapsody*)
3511 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3512 lt_cv_file_magic_cmd='/usr/bin/file -L'
3513 case "$host_os" in
3514 rhapsody* | darwin1.012)
3515 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3516 ;;
3517 *) # Darwin 1.3 on
3518 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3519 ;;
3520 esac
3521 ;;
3522
3523 freebsd* | kfreebsd*-gnu)
3524 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3525 case $host_cpu in
3526 i*86 )
3527 # Not sure whether the presence of OpenBSD here was a mistake.
3528 # Let's accept both of them until this is cleared up.
3529 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3530 lt_cv_file_magic_cmd=/usr/bin/file
3531 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3532 ;;
3533 esac
3534 else
3535 lt_cv_deplibs_check_method=pass_all
3536 fi
3537 ;;
3538
3539 gnu*)
3540 lt_cv_deplibs_check_method=pass_all
3541 ;;
3542
3543 hpux10.20*|hpux11*)
3544 case $host_cpu in
3545 hppa*)
3546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3547 lt_cv_file_magic_cmd=/usr/bin/file
3548 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3549 ;;
3550 ia64*)
3551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3552 lt_cv_file_magic_cmd=/usr/bin/file
3553 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3554 ;;
3555 esac
3556 ;;
3557
3558 irix5* | irix6*)
3559 case $host_os in
3560 irix5*)
3561 # this will be overridden with pass_all, but let us keep it just in case
3562 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3563 ;;
3564 *)
3565 case $LD in
3566 *-32|*"-32 ") libmagic=32-bit;;
3567 *-n32|*"-n32 ") libmagic=N32;;
3568 *-64|*"-64 ") libmagic=64-bit;;
3569 *) libmagic=never-match;;
3570 esac
3571 # this will be overridden with pass_all, but let us keep it just in case
3572 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3573 ;;
3574 esac
3575 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3576 lt_cv_deplibs_check_method=pass_all
3577 ;;
3578
3579 # This must be Linux ELF.
3580 linux-gnu*)
3581 case $host_cpu in
3582 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3583 lt_cv_deplibs_check_method=pass_all ;;
3584 *)
3585 # glibc up to 2.1.1 does not perform some relocations on ARM
3586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3587 esac
3588 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3589 ;;
3590
3591 netbsd* | knetbsd*-gnu)
3592 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3593 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3594 else
3595 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3596 fi
3597 ;;
3598
3599 newsos6)
3600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3601 lt_cv_file_magic_cmd=/usr/bin/file
3602 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3603 ;;
3604
3605 osf3* | osf4* | osf5*)
3606 # this will be overridden with pass_all, but let us keep it just in case
3607 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3608 lt_cv_file_magic_test_file=/shlib/libc.so
3609 lt_cv_deplibs_check_method=pass_all
3610 ;;
3611
3612 sco3.2v5*)
3613 lt_cv_deplibs_check_method=pass_all
3614 ;;
3615
3616 solaris*)
3617 lt_cv_deplibs_check_method=pass_all
3618 lt_cv_file_magic_test_file=/lib/libc.so
3619 ;;
3620
3621 sysv5uw[78]* | sysv4*uw2*)
3622 lt_cv_deplibs_check_method=pass_all
3623 ;;
3624
3625 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3626 case $host_vendor in
3627 ncr)
3628 lt_cv_deplibs_check_method=pass_all
3629 ;;
3630 motorola)
3631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3632 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3633 ;;
3634 esac
3635 ;;
3636 esac
3637
3638 fi
3639 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3640 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3641 file_magic_cmd=$lt_cv_file_magic_cmd
3642 deplibs_check_method=$lt_cv_deplibs_check_method
3643
3644
3645
3646
3647 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3648
3649 # Only perform the check for file, if the check method requires it
3650 case $deplibs_check_method in
3651 file_magic*)
3652 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3653 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3654 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3655 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658 case $MAGIC_CMD in
3659 /*)
3660 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3661 ;;
3662 ?:/*)
3663 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3664 ;;
3665 *)
3666 ac_save_MAGIC_CMD="$MAGIC_CMD"
3667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3668 ac_dummy="/usr/bin:$PATH"
3669 for ac_dir in $ac_dummy; do
3670 test -z "$ac_dir" && ac_dir=.
3671 if test -f $ac_dir/${ac_tool_prefix}file; then
3672 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3673 if test -n "$file_magic_test_file"; then
3674 case $deplibs_check_method in
3675 "file_magic "*)
3676 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3677 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3678 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3679 egrep "$file_magic_regex" > /dev/null; then
3680 :
3681 else
3682 cat <<EOF 1>&2
3683
3684 *** Warning: the command libtool uses to detect shared libraries,
3685 *** $file_magic_cmd, produces output that libtool cannot recognize.
3686 *** The result is that libtool may fail to recognize shared libraries
3687 *** as such. This will affect the creation of libtool libraries that
3688 *** depend on shared libraries, but programs linked with such libtool
3689 *** libraries will work regardless of this problem. Nevertheless, you
3690 *** may want to report the problem to your system manager and/or to
3691 *** bug-libtool@gnu.org
3692
3693 EOF
3694 fi ;;
3695 esac
3696 fi
3697 break
3698 fi
3699 done
3700 IFS="$ac_save_ifs"
3701 MAGIC_CMD="$ac_save_MAGIC_CMD"
3702 ;;
3703 esac
3704 fi
3705
3706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3707 if test -n "$MAGIC_CMD"; then
3708 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3709 echo "${ECHO_T}$MAGIC_CMD" >&6
3710 else
3711 echo "$as_me:$LINENO: result: no" >&5
3712 echo "${ECHO_T}no" >&6
3713 fi
3714
3715 if test -z "$lt_cv_path_MAGIC_CMD"; then
3716 if test -n "$ac_tool_prefix"; then
3717 echo "$as_me:$LINENO: checking for file" >&5
3718 echo $ECHO_N "checking for file... $ECHO_C" >&6
3719 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 case $MAGIC_CMD in
3723 /*)
3724 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3725 ;;
3726 ?:/*)
3727 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3728 ;;
3729 *)
3730 ac_save_MAGIC_CMD="$MAGIC_CMD"
3731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3732 ac_dummy="/usr/bin:$PATH"
3733 for ac_dir in $ac_dummy; do
3734 test -z "$ac_dir" && ac_dir=.
3735 if test -f $ac_dir/file; then
3736 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3737 if test -n "$file_magic_test_file"; then
3738 case $deplibs_check_method in
3739 "file_magic "*)
3740 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3741 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3742 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3743 egrep "$file_magic_regex" > /dev/null; then
3744 :
3745 else
3746 cat <<EOF 1>&2
3747
3748 *** Warning: the command libtool uses to detect shared libraries,
3749 *** $file_magic_cmd, produces output that libtool cannot recognize.
3750 *** The result is that libtool may fail to recognize shared libraries
3751 *** as such. This will affect the creation of libtool libraries that
3752 *** depend on shared libraries, but programs linked with such libtool
3753 *** libraries will work regardless of this problem. Nevertheless, you
3754 *** may want to report the problem to your system manager and/or to
3755 *** bug-libtool@gnu.org
3756
3757 EOF
3758 fi ;;
3759 esac
3760 fi
3761 break
3762 fi
3763 done
3764 IFS="$ac_save_ifs"
3765 MAGIC_CMD="$ac_save_MAGIC_CMD"
3766 ;;
3767 esac
3768 fi
3769
3770 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3771 if test -n "$MAGIC_CMD"; then
3772 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3773 echo "${ECHO_T}$MAGIC_CMD" >&6
3774 else
3775 echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6
3777 fi
3778
3779 else
3780 MAGIC_CMD=:
3781 fi
3782 fi
3783
3784 fi
3785 ;;
3786 esac
3787
3788 if test -n "$ac_tool_prefix"; then
3789 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3790 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3791 echo "$as_me:$LINENO: checking for $ac_word" >&5
3792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3793 if test "${ac_cv_prog_RANLIB+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796 if test -n "$RANLIB"; then
3797 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3801 do
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3806 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 break 2
3809 fi
3810 done
3811 done
3812
3813 fi
3814 fi
3815 RANLIB=$ac_cv_prog_RANLIB
3816 if test -n "$RANLIB"; then
3817 echo "$as_me:$LINENO: result: $RANLIB" >&5
3818 echo "${ECHO_T}$RANLIB" >&6
3819 else
3820 echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6
3822 fi
3823
3824 fi
3825 if test -z "$ac_cv_prog_RANLIB"; then
3826 ac_ct_RANLIB=$RANLIB
3827 # Extract the first word of "ranlib", so it can be a program name with args.
3828 set dummy ranlib; ac_word=$2
3829 echo "$as_me:$LINENO: checking for $ac_word" >&5
3830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3831 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834 if test -n "$ac_ct_RANLIB"; then
3835 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3836 else
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH
3839 do
3840 IFS=$as_save_IFS
3841 test -z "$as_dir" && as_dir=.
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3844 ac_cv_prog_ac_ct_RANLIB="ranlib"
3845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 break 2
3847 fi
3848 done
3849 done
3850
3851 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3852 fi
3853 fi
3854 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3855 if test -n "$ac_ct_RANLIB"; then
3856 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3857 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3858 else
3859 echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3861 fi
3862
3863 RANLIB=$ac_ct_RANLIB
3864 else
3865 RANLIB="$ac_cv_prog_RANLIB"
3866 fi
3867
3868 if test -n "$ac_tool_prefix"; then
3869 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3870 set dummy ${ac_tool_prefix}strip; ac_word=$2
3871 echo "$as_me:$LINENO: checking for $ac_word" >&5
3872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3873 if test "${ac_cv_prog_STRIP+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876 if test -n "$STRIP"; then
3877 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3878 else
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH
3881 do
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3886 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 break 2
3889 fi
3890 done
3891 done
3892
3893 fi
3894 fi
3895 STRIP=$ac_cv_prog_STRIP
3896 if test -n "$STRIP"; then
3897 echo "$as_me:$LINENO: result: $STRIP" >&5
3898 echo "${ECHO_T}$STRIP" >&6
3899 else
3900 echo "$as_me:$LINENO: result: no" >&5
3901 echo "${ECHO_T}no" >&6
3902 fi
3903
3904 fi
3905 if test -z "$ac_cv_prog_STRIP"; then
3906 ac_ct_STRIP=$STRIP
3907 # Extract the first word of "strip", so it can be a program name with args.
3908 set dummy strip; ac_word=$2
3909 echo "$as_me:$LINENO: checking for $ac_word" >&5
3910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 if test -n "$ac_ct_STRIP"; then
3915 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3919 do
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924 ac_cv_prog_ac_ct_STRIP="strip"
3925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 break 2
3927 fi
3928 done
3929 done
3930
3931 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3932 fi
3933 fi
3934 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3935 if test -n "$ac_ct_STRIP"; then
3936 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3937 echo "${ECHO_T}$ac_ct_STRIP" >&6
3938 else
3939 echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6
3941 fi
3942
3943 STRIP=$ac_ct_STRIP
3944 else
3945 STRIP="$ac_cv_prog_STRIP"
3946 fi
3947
3948
3949 # Check for any special flags to pass to ltconfig.
3950 libtool_flags="--cache-file=$cache_file"
3951 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3952 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3953 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3954 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3955 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3956
3957
3958 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3959 if test "${enable_libtool_lock+set}" = set; then
3960 enableval="$enable_libtool_lock"
3961
3962 fi;
3963 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3964 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3965
3966
3967 # Check whether --with-pic or --without-pic was given.
3968 if test "${with_pic+set}" = set; then
3969 withval="$with_pic"
3970 pic_mode="$withval"
3971 else
3972 pic_mode=default
3973 fi;
3974 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3975 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3976
3977 # Some flags need to be propagated to the compiler or linker for good
3978 # libtool support.
3979 case $host in
3980 *-*-irix6*)
3981 # Find out which ABI we are using.
3982 echo '#line 3982 "configure"' > conftest.$ac_ext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3984 (eval $ac_compile) 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; then
3988 if test "$lt_cv_prog_gnu_ld" = yes; then
3989 case `/usr/bin/file conftest.$ac_objext` in
3990 *32-bit*)
3991 LD="${LD-ld} -melf32bsmip"
3992 ;;
3993 *N32*)
3994 LD="${LD-ld} -melf32bmipn32"
3995 ;;
3996 *64-bit*)
3997 LD="${LD-ld} -melf64bmip"
3998 ;;
3999 esac
4000 else
4001 case `/usr/bin/file conftest.$ac_objext` in
4002 *32-bit*)
4003 LD="${LD-ld} -32"
4004 ;;
4005 *N32*)
4006 LD="${LD-ld} -n32"
4007 ;;
4008 *64-bit*)
4009 LD="${LD-ld} -64"
4010 ;;
4011 esac
4012 fi
4013 fi
4014 rm -rf conftest*
4015 ;;
4016
4017 ia64-*-hpux*)
4018 # Find out which ABI we are using.
4019 echo 'int i;' > conftest.$ac_ext
4020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4021 (eval $ac_compile) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; then
4025 case "`/usr/bin/file conftest.o`" in
4026 *ELF-32*)
4027 HPUX_IA64_MODE="32"
4028 ;;
4029 *ELF-64*)
4030 HPUX_IA64_MODE="64"
4031 ;;
4032 esac
4033 fi
4034 rm -rf conftest*
4035 ;;
4036
4037 *-*-sco3.2v5*)
4038 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4039 SAVE_CFLAGS="$CFLAGS"
4040 CFLAGS="$CFLAGS -belf"
4041 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4042 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4043 if test "${lt_cv_cc_needs_belf+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046
4047
4048 ac_ext=c
4049 ac_cpp='$CPP $CPPFLAGS'
4050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053
4054 cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h. */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4060
4061 int
4062 main ()
4063 {
4064
4065 ;
4066 return 0;
4067 }
4068 _ACEOF
4069 rm -f conftest.$ac_objext conftest$ac_exeext
4070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4071 (eval $ac_link) 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
4078 { ac_try='test -z "$ac_c_werror_flag"
4079 || test ! -s conftest.err'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 (eval $ac_try) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try='test -s conftest$ac_exeext'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 (eval $ac_try) 2>&5
4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4091 lt_cv_cc_needs_belf=yes
4092 else
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4095
4096 lt_cv_cc_needs_belf=no
4097 fi
4098 rm -f conftest.err conftest.$ac_objext \
4099 conftest$ac_exeext conftest.$ac_ext
4100 ac_ext=c
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105
4106 fi
4107 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4108 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4109 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4110 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4111 CFLAGS="$SAVE_CFLAGS"
4112 fi
4113 ;;
4114
4115
4116 esac
4117
4118
4119 # Save cache, so that ltconfig can load it
4120 cat >confcache <<\_ACEOF
4121 # This file is a shell script that caches the results of configure
4122 # tests run on this system so they can be shared between configure
4123 # scripts and configure runs, see configure's option --config-cache.
4124 # It is not useful on other systems. If it contains results you don't
4125 # want to keep, you may remove or edit it.
4126 #
4127 # config.status only pays attention to the cache file if you give it
4128 # the --recheck option to rerun configure.
4129 #
4130 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4131 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4132 # following values.
4133
4134 _ACEOF
4135
4136 # The following way of writing the cache mishandles newlines in values,
4137 # but we know of no workaround that is simple, portable, and efficient.
4138 # So, don't put newlines in cache variables' values.
4139 # Ultrix sh set writes to stderr and can't be redirected directly,
4140 # and sets the high bit in the cache file unless we assign to the vars.
4141 {
4142 (set) 2>&1 |
4143 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4144 *ac_space=\ *)
4145 # `set' does not quote correctly, so add quotes (double-quote
4146 # substitution turns \\\\ into \\, and sed turns \\ into \).
4147 sed -n \
4148 "s/'/'\\\\''/g;
4149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4150 ;;
4151 *)
4152 # `set' quotes correctly as required by POSIX, so do not add quotes.
4153 sed -n \
4154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4155 ;;
4156 esac;
4157 } |
4158 sed '
4159 t clear
4160 : clear
4161 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4162 t end
4163 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4164 : end' >>confcache
4165 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4166 if test -w $cache_file; then
4167 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4168 cat confcache >$cache_file
4169 else
4170 echo "not updating unwritable cache $cache_file"
4171 fi
4172 fi
4173 rm -f confcache
4174
4175 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4176 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4177 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4178 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4179 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4180 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4181 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4182 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4183 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4184 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4185 echo "$as_me: error: libtool configure failed" >&2;}
4186 { (exit 1); exit 1; }; }
4187
4188 # Reload cache, that may have been modified by ltconfig
4189 if test -r "$cache_file"; then
4190 # Some versions of bash will fail to source /dev/null (special
4191 # files actually), so we avoid doing that.
4192 if test -f "$cache_file"; then
4193 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4194 echo "$as_me: loading cache $cache_file" >&6;}
4195 case $cache_file in
4196 [\\/]* | ?:[\\/]* ) . $cache_file;;
4197 *) . ./$cache_file;;
4198 esac
4199 fi
4200 else
4201 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4202 echo "$as_me: creating cache $cache_file" >&6;}
4203 >$cache_file
4204 fi
4205
4206
4207 # This can be used to rebuild libtool when needed
4208 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4209
4210 # Always use our own libtool.
4211 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4212
4213 # Redirect the config.log output again, so that the ltconfig log is not
4214 # clobbered by the next message.
4215 exec 5>>./config.log
4216
4217
4218
4219
4220
4221
4222
4223 # Check whether --enable-targets or --disable-targets was given.
4224 if test "${enable_targets+set}" = set; then
4225 enableval="$enable_targets"
4226 case "${enableval}" in
4227 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4228 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4229 { (exit 1); exit 1; }; }
4230 ;;
4231 no) enable_targets= ;;
4232 *) enable_targets=$enableval ;;
4233 esac
4234 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4235 if test "${enable_commonbfdlib+set}" = set; then
4236 enableval="$enable_commonbfdlib"
4237 case "${enableval}" in
4238 yes) commonbfdlib=true ;;
4239 no) commonbfdlib=false ;;
4240 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5
4241 echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;}
4242 { (exit 1); exit 1; }; } ;;
4243 esac
4244 fi;
4245
4246 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4247
4248 # Check whether --enable-werror or --disable-werror was given.
4249 if test "${enable_werror+set}" = set; then
4250 enableval="$enable_werror"
4251 case "${enableval}" in
4252 yes | y) ERROR_ON_WARNING="yes" ;;
4253 no | n) ERROR_ON_WARNING="no" ;;
4254 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4255 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4256 { (exit 1); exit 1; }; } ;;
4257 esac
4258 fi;
4259
4260 # Enable -Werror by default when using gcc
4261 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4262 ERROR_ON_WARNING=yes
4263 fi
4264
4265 NO_WERROR=
4266 if test "${ERROR_ON_WARNING}" = yes ; then
4267 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4268 NO_WERROR="-Wno-error"
4269 fi
4270
4271 if test "${GCC}" = yes ; then
4272 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4273 fi
4274
4275 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4276 if test "${enable_build_warnings+set}" = set; then
4277 enableval="$enable_build_warnings"
4278 case "${enableval}" in
4279 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4280 no) if test "${GCC}" = yes ; then
4281 WARN_CFLAGS="-w"
4282 fi;;
4283 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4284 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4285 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4286 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4287 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4288 esac
4289 fi;
4290
4291 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4292 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4293 fi
4294
4295
4296
4297
4298
4299 ac_config_headers="$ac_config_headers config.h:config.in"
4300
4301
4302 if test -z "$target" ; then
4303 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4304 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4305 { (exit 1); exit 1; }; }
4306 fi
4307
4308 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4309 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4310 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4311 if test "${enable_maintainer_mode+set}" = set; then
4312 enableval="$enable_maintainer_mode"
4313 USE_MAINTAINER_MODE=$enableval
4314 else
4315 USE_MAINTAINER_MODE=no
4316 fi;
4317 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4318 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4319
4320
4321 if test $USE_MAINTAINER_MODE = yes; then
4322 MAINTAINER_MODE_TRUE=
4323 MAINTAINER_MODE_FALSE='#'
4324 else
4325 MAINTAINER_MODE_TRUE='#'
4326 MAINTAINER_MODE_FALSE=
4327 fi
4328
4329 MAINT=$MAINTAINER_MODE_TRUE
4330
4331
4332 case ${build_alias} in
4333 "") build_noncanonical=${build} ;;
4334 *) build_noncanonical=${build_alias} ;;
4335 esac
4336
4337 case ${host_alias} in
4338 "") host_noncanonical=${build_noncanonical} ;;
4339 *) host_noncanonical=${host_alias} ;;
4340 esac
4341
4342 case ${target_alias} in
4343 "") target_noncanonical=${host_noncanonical} ;;
4344 *) target_noncanonical=${target_alias} ;;
4345 esac
4346
4347 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4348 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4349 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4350 if test "${enable_install_libbfd+set}" = set; then
4351 enableval="$enable_install_libbfd"
4352 install_libbfd_p=$enableval
4353 else
4354 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4355 install_libbfd_p=yes
4356 else
4357 install_libbfd_p=no
4358 fi
4359 fi;
4360 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4361 echo "${ECHO_T}$install_libbfd_p" >&6
4362
4363
4364 if test $install_libbfd_p = yes; then
4365 INSTALL_LIBBFD_TRUE=
4366 INSTALL_LIBBFD_FALSE='#'
4367 else
4368 INSTALL_LIBBFD_TRUE='#'
4369 INSTALL_LIBBFD_FALSE=
4370 fi
4371
4372 # Need _noncanonical variables for this.
4373
4374
4375
4376
4377 # libbfd.a is a host library containing target dependent code
4378 bfdlibdir='$(libdir)'
4379 bfdincludedir='$(includedir)'
4380 if test "${host}" != "${target}"; then
4381 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4382 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4383 fi
4384
4385
4386
4387
4388
4389
4390 # host-specific stuff:
4391
4392 ac_ext=c
4393 ac_cpp='$CPP $CPPFLAGS'
4394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 if test -n "$ac_tool_prefix"; then
4398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4400 echo "$as_me:$LINENO: checking for $ac_word" >&5
4401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4402 if test "${ac_cv_prog_CC+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405 if test -n "$CC"; then
4406 ac_cv_prog_CC="$CC" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4418 fi
4419 done
4420 done
4421
4422 fi
4423 fi
4424 CC=$ac_cv_prog_CC
4425 if test -n "$CC"; then
4426 echo "$as_me:$LINENO: result: $CC" >&5
4427 echo "${ECHO_T}$CC" >&6
4428 else
4429 echo "$as_me:$LINENO: result: no" >&5
4430 echo "${ECHO_T}no" >&6
4431 fi
4432
4433 fi
4434 if test -z "$ac_cv_prog_CC"; then
4435 ac_ct_CC=$CC
4436 # Extract the first word of "gcc", so it can be a program name with args.
4437 set dummy gcc; ac_word=$2
4438 echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4440 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443 if test -n "$ac_ct_CC"; then
4444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453 ac_cv_prog_ac_ct_CC="gcc"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4456 fi
4457 done
4458 done
4459
4460 fi
4461 fi
4462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4463 if test -n "$ac_ct_CC"; then
4464 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4465 echo "${ECHO_T}$ac_ct_CC" >&6
4466 else
4467 echo "$as_me:$LINENO: result: no" >&5
4468 echo "${ECHO_T}no" >&6
4469 fi
4470
4471 CC=$ac_ct_CC
4472 else
4473 CC="$ac_cv_prog_CC"
4474 fi
4475
4476 if test -z "$CC"; then
4477 if test -n "$ac_tool_prefix"; then
4478 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4479 set dummy ${ac_tool_prefix}cc; ac_word=$2
4480 echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4482 if test "${ac_cv_prog_CC+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 else
4485 if test -n "$CC"; then
4486 ac_cv_prog_CC="$CC" # Let the user override the test.
4487 else
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4490 do
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4495 ac_cv_prog_CC="${ac_tool_prefix}cc"
4496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 break 2
4498 fi
4499 done
4500 done
4501
4502 fi
4503 fi
4504 CC=$ac_cv_prog_CC
4505 if test -n "$CC"; then
4506 echo "$as_me:$LINENO: result: $CC" >&5
4507 echo "${ECHO_T}$CC" >&6
4508 else
4509 echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6
4511 fi
4512
4513 fi
4514 if test -z "$ac_cv_prog_CC"; then
4515 ac_ct_CC=$CC
4516 # Extract the first word of "cc", so it can be a program name with args.
4517 set dummy cc; ac_word=$2
4518 echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523 if test -n "$ac_ct_CC"; then
4524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4528 do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4533 ac_cv_prog_ac_ct_CC="cc"
4534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 break 2
4536 fi
4537 done
4538 done
4539
4540 fi
4541 fi
4542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4543 if test -n "$ac_ct_CC"; then
4544 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4545 echo "${ECHO_T}$ac_ct_CC" >&6
4546 else
4547 echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6
4549 fi
4550
4551 CC=$ac_ct_CC
4552 else
4553 CC="$ac_cv_prog_CC"
4554 fi
4555
4556 fi
4557 if test -z "$CC"; then
4558 # Extract the first word of "cc", so it can be a program name with args.
4559 set dummy cc; ac_word=$2
4560 echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4562 if test "${ac_cv_prog_CC+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 if test -n "$CC"; then
4566 ac_cv_prog_CC="$CC" # Let the user override the test.
4567 else
4568 ac_prog_rejected=no
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH
4571 do
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4576 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4577 ac_prog_rejected=yes
4578 continue
4579 fi
4580 ac_cv_prog_CC="cc"
4581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 break 2
4583 fi
4584 done
4585 done
4586
4587 if test $ac_prog_rejected = yes; then
4588 # We found a bogon in the path, so make sure we never use it.
4589 set dummy $ac_cv_prog_CC
4590 shift
4591 if test $# != 0; then
4592 # We chose a different compiler from the bogus one.
4593 # However, it has the same basename, so the bogon will be chosen
4594 # first if we set CC to just the basename; use the full file name.
4595 shift
4596 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4597 fi
4598 fi
4599 fi
4600 fi
4601 CC=$ac_cv_prog_CC
4602 if test -n "$CC"; then
4603 echo "$as_me:$LINENO: result: $CC" >&5
4604 echo "${ECHO_T}$CC" >&6
4605 else
4606 echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6
4608 fi
4609
4610 fi
4611 if test -z "$CC"; then
4612 if test -n "$ac_tool_prefix"; then
4613 for ac_prog in cl
4614 do
4615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4617 echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4619 if test "${ac_cv_prog_CC+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622 if test -n "$CC"; then
4623 ac_cv_prog_CC="$CC" # Let the user override the test.
4624 else
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4627 do
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4632 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 break 2
4635 fi
4636 done
4637 done
4638
4639 fi
4640 fi
4641 CC=$ac_cv_prog_CC
4642 if test -n "$CC"; then
4643 echo "$as_me:$LINENO: result: $CC" >&5
4644 echo "${ECHO_T}$CC" >&6
4645 else
4646 echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6
4648 fi
4649
4650 test -n "$CC" && break
4651 done
4652 fi
4653 if test -z "$CC"; then
4654 ac_ct_CC=$CC
4655 for ac_prog in cl
4656 do
4657 # Extract the first word of "$ac_prog", so it can be a program name with args.
4658 set dummy $ac_prog; ac_word=$2
4659 echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664 if test -n "$ac_ct_CC"; then
4665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4666 else
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4674 ac_cv_prog_ac_ct_CC="$ac_prog"
4675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 break 2
4677 fi
4678 done
4679 done
4680
4681 fi
4682 fi
4683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4684 if test -n "$ac_ct_CC"; then
4685 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4686 echo "${ECHO_T}$ac_ct_CC" >&6
4687 else
4688 echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6
4690 fi
4691
4692 test -n "$ac_ct_CC" && break
4693 done
4694
4695 CC=$ac_ct_CC
4696 fi
4697
4698 fi
4699
4700
4701 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4702 See \`config.log' for more details." >&5
4703 echo "$as_me: error: no acceptable C compiler found in \$PATH
4704 See \`config.log' for more details." >&2;}
4705 { (exit 1); exit 1; }; }
4706
4707 # Provide some information about the compiler.
4708 echo "$as_me:$LINENO:" \
4709 "checking for C compiler version" >&5
4710 ac_compiler=`set X $ac_compile; echo $2`
4711 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4712 (eval $ac_compiler --version </dev/null >&5) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }
4716 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4717 (eval $ac_compiler -v </dev/null >&5) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }
4721 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4722 (eval $ac_compiler -V </dev/null >&5) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }
4726
4727 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4728 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4729 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738
4739 int
4740 main ()
4741 {
4742 #ifndef __GNUC__
4743 choke me
4744 #endif
4745
4746 ;
4747 return 0;
4748 }
4749 _ACEOF
4750 rm -f conftest.$ac_objext
4751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4752 (eval $ac_compile) 2>conftest.er1
4753 ac_status=$?
4754 grep -v '^ *+' conftest.er1 >conftest.err
4755 rm -f conftest.er1
4756 cat conftest.err >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } &&
4759 { ac_try='test -z "$ac_c_werror_flag"
4760 || test ! -s conftest.err'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 (eval $ac_try) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try='test -s conftest.$ac_objext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4772 ac_compiler_gnu=yes
4773 else
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4776
4777 ac_compiler_gnu=no
4778 fi
4779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4780 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4781
4782 fi
4783 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4784 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4785 GCC=`test $ac_compiler_gnu = yes && echo yes`
4786 ac_test_CFLAGS=${CFLAGS+set}
4787 ac_save_CFLAGS=$CFLAGS
4788 CFLAGS="-g"
4789 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4790 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4791 if test "${ac_cv_prog_cc_g+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794 cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h. */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800
4801 int
4802 main ()
4803 {
4804
4805 ;
4806 return 0;
4807 }
4808 _ACEOF
4809 rm -f conftest.$ac_objext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811 (eval $ac_compile) 2>conftest.er1
4812 ac_status=$?
4813 grep -v '^ *+' conftest.er1 >conftest.err
4814 rm -f conftest.er1
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } &&
4818 { ac_try='test -z "$ac_c_werror_flag"
4819 || test ! -s conftest.err'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; } &&
4825 { ac_try='test -s conftest.$ac_objext'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 (eval $ac_try) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; }; then
4831 ac_cv_prog_cc_g=yes
4832 else
4833 echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4835
4836 ac_cv_prog_cc_g=no
4837 fi
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4839 fi
4840 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4841 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4842 if test "$ac_test_CFLAGS" = set; then
4843 CFLAGS=$ac_save_CFLAGS
4844 elif test $ac_cv_prog_cc_g = yes; then
4845 if test "$GCC" = yes; then
4846 CFLAGS="-g -O2"
4847 else
4848 CFLAGS="-g"
4849 fi
4850 else
4851 if test "$GCC" = yes; then
4852 CFLAGS="-O2"
4853 else
4854 CFLAGS=
4855 fi
4856 fi
4857 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4858 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4859 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862 ac_cv_prog_cc_stdc=no
4863 ac_save_CC=$CC
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 #include <stdarg.h>
4871 #include <stdio.h>
4872 #include <sys/types.h>
4873 #include <sys/stat.h>
4874 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4875 struct buf { int x; };
4876 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4877 static char *e (p, i)
4878 char **p;
4879 int i;
4880 {
4881 return p[i];
4882 }
4883 static char *f (char * (*g) (char **, int), char **p, ...)
4884 {
4885 char *s;
4886 va_list v;
4887 va_start (v,p);
4888 s = g (p, va_arg (v,int));
4889 va_end (v);
4890 return s;
4891 }
4892
4893 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4894 function prototypes and stuff, but not '\xHH' hex character constants.
4895 These don't provoke an error unfortunately, instead are silently treated
4896 as 'x'. The following induces an error, until -std1 is added to get
4897 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4898 array size at least. It's necessary to write '\x00'==0 to get something
4899 that's true only with -std1. */
4900 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4901
4902 int test (int i, double x);
4903 struct s1 {int (*f) (int a);};
4904 struct s2 {int (*f) (double a);};
4905 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4906 int argc;
4907 char **argv;
4908 int
4909 main ()
4910 {
4911 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4912 ;
4913 return 0;
4914 }
4915 _ACEOF
4916 # Don't try gcc -ansi; that turns off useful extensions and
4917 # breaks some systems' header files.
4918 # AIX -qlanglvl=ansi
4919 # Ultrix and OSF/1 -std1
4920 # HP-UX 10.20 and later -Ae
4921 # HP-UX older versions -Aa -D_HPUX_SOURCE
4922 # SVR4 -Xc -D__EXTENSIONS__
4923 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4924 do
4925 CC="$ac_save_CC $ac_arg"
4926 rm -f conftest.$ac_objext
4927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4928 (eval $ac_compile) 2>conftest.er1
4929 ac_status=$?
4930 grep -v '^ *+' conftest.er1 >conftest.err
4931 rm -f conftest.er1
4932 cat conftest.err >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
4935 { ac_try='test -z "$ac_c_werror_flag"
4936 || test ! -s conftest.err'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 (eval $ac_try) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; } &&
4942 { ac_try='test -s conftest.$ac_objext'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 (eval $ac_try) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4948 ac_cv_prog_cc_stdc=$ac_arg
4949 break
4950 else
4951 echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4953
4954 fi
4955 rm -f conftest.err conftest.$ac_objext
4956 done
4957 rm -f conftest.$ac_ext conftest.$ac_objext
4958 CC=$ac_save_CC
4959
4960 fi
4961
4962 case "x$ac_cv_prog_cc_stdc" in
4963 x|xno)
4964 echo "$as_me:$LINENO: result: none needed" >&5
4965 echo "${ECHO_T}none needed" >&6 ;;
4966 *)
4967 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4968 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4969 CC="$CC $ac_cv_prog_cc_stdc" ;;
4970 esac
4971
4972 # Some people use a C++ compiler to compile C. Since we use `exit',
4973 # in C++ we need to declare it. In case someone uses the same compiler
4974 # for both compiling C and C++ we need to have the C++ compiler decide
4975 # the declaration of exit, since it's the most demanding environment.
4976 cat >conftest.$ac_ext <<_ACEOF
4977 #ifndef __cplusplus
4978 choke me
4979 #endif
4980 _ACEOF
4981 rm -f conftest.$ac_objext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4983 (eval $ac_compile) 2>conftest.er1
4984 ac_status=$?
4985 grep -v '^ *+' conftest.er1 >conftest.err
4986 rm -f conftest.er1
4987 cat conftest.err >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } &&
4990 { ac_try='test -z "$ac_c_werror_flag"
4991 || test ! -s conftest.err'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993 (eval $ac_try) 2>&5
4994 ac_status=$?
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; } &&
4997 { ac_try='test -s conftest.$ac_objext'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 (eval $ac_try) 2>&5
5000 ac_status=$?
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5003 for ac_declaration in \
5004 '' \
5005 'extern "C" void std::exit (int) throw (); using std::exit;' \
5006 'extern "C" void std::exit (int); using std::exit;' \
5007 'extern "C" void exit (int) throw ();' \
5008 'extern "C" void exit (int);' \
5009 'void exit (int);'
5010 do
5011 cat >conftest.$ac_ext <<_ACEOF
5012 /* confdefs.h. */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5017 $ac_declaration
5018 #include <stdlib.h>
5019 int
5020 main ()
5021 {
5022 exit (42);
5023 ;
5024 return 0;
5025 }
5026 _ACEOF
5027 rm -f conftest.$ac_objext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029 (eval $ac_compile) 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try='test -s conftest.$ac_objext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 :
5050 else
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5053
5054 continue
5055 fi
5056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5057 cat >conftest.$ac_ext <<_ACEOF
5058 /* confdefs.h. */
5059 _ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5063 $ac_declaration
5064 int
5065 main ()
5066 {
5067 exit (42);
5068 ;
5069 return 0;
5070 }
5071 _ACEOF
5072 rm -f conftest.$ac_objext
5073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5074 (eval $ac_compile) 2>conftest.er1
5075 ac_status=$?
5076 grep -v '^ *+' conftest.er1 >conftest.err
5077 rm -f conftest.er1
5078 cat conftest.err >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } &&
5081 { ac_try='test -z "$ac_c_werror_flag"
5082 || test ! -s conftest.err'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; } &&
5088 { ac_try='test -s conftest.$ac_objext'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 (eval $ac_try) 2>&5
5091 ac_status=$?
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; }; then
5094 break
5095 else
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5098
5099 fi
5100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5101 done
5102 rm -f conftest*
5103 if test -n "$ac_declaration"; then
5104 echo '#ifdef __cplusplus' >>confdefs.h
5105 echo $ac_declaration >>confdefs.h
5106 echo '#endif' >>confdefs.h
5107 fi
5108
5109 else
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5112
5113 fi
5114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5115 ac_ext=c
5116 ac_cpp='$CPP $CPPFLAGS'
5117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120
5121
5122 ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga"
5123 if test -n "$ac_tool_prefix"; then
5124 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5125 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5126 echo "$as_me:$LINENO: checking for $ac_word" >&5
5127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5128 if test "${ac_cv_prog_RANLIB+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 else
5131 if test -n "$RANLIB"; then
5132 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5136 do
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5144 fi
5145 done
5146 done
5147
5148 fi
5149 fi
5150 RANLIB=$ac_cv_prog_RANLIB
5151 if test -n "$RANLIB"; then
5152 echo "$as_me:$LINENO: result: $RANLIB" >&5
5153 echo "${ECHO_T}$RANLIB" >&6
5154 else
5155 echo "$as_me:$LINENO: result: no" >&5
5156 echo "${ECHO_T}no" >&6
5157 fi
5158
5159 fi
5160 if test -z "$ac_cv_prog_RANLIB"; then
5161 ac_ct_RANLIB=$RANLIB
5162 # Extract the first word of "ranlib", so it can be a program name with args.
5163 set dummy ranlib; ac_word=$2
5164 echo "$as_me:$LINENO: checking for $ac_word" >&5
5165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5166 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169 if test -n "$ac_ct_RANLIB"; then
5170 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5174 do
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179 ac_cv_prog_ac_ct_RANLIB="ranlib"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5182 fi
5183 done
5184 done
5185
5186 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5187 fi
5188 fi
5189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5190 if test -n "$ac_ct_RANLIB"; then
5191 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5192 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5193 else
5194 echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6
5196 fi
5197
5198 RANLIB=$ac_ct_RANLIB
5199 else
5200 RANLIB="$ac_cv_prog_RANLIB"
5201 fi
5202
5203 ac_ext=c
5204 ac_cpp='$CPP $CPPFLAGS'
5205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5208 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5209 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5210 # On Suns, sometimes $CPP names a directory.
5211 if test -n "$CPP" && test -d "$CPP"; then
5212 CPP=
5213 fi
5214 if test -z "$CPP"; then
5215 if test "${ac_cv_prog_CPP+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218 # Double quotes because CPP needs to be expanded
5219 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5220 do
5221 ac_preproc_ok=false
5222 for ac_c_preproc_warn_flag in '' yes
5223 do
5224 # Use a header file that comes with gcc, so configuring glibc
5225 # with a fresh cross-compiler works.
5226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5227 # <limits.h> exists even on freestanding compilers.
5228 # On the NeXT, cc -E runs the code through the compiler's parser,
5229 # not just through cpp. "Syntax error" is here to catch this case.
5230 cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h. */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5236 #ifdef __STDC__
5237 # include <limits.h>
5238 #else
5239 # include <assert.h>
5240 #endif
5241 Syntax error
5242 _ACEOF
5243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5245 ac_status=$?
5246 grep -v '^ *+' conftest.er1 >conftest.err
5247 rm -f conftest.er1
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } >/dev/null; then
5251 if test -s conftest.err; then
5252 ac_cpp_err=$ac_c_preproc_warn_flag
5253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5254 else
5255 ac_cpp_err=
5256 fi
5257 else
5258 ac_cpp_err=yes
5259 fi
5260 if test -z "$ac_cpp_err"; then
5261 :
5262 else
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5265
5266 # Broken: fails on valid input.
5267 continue
5268 fi
5269 rm -f conftest.err conftest.$ac_ext
5270
5271 # OK, works on sane cases. Now check whether non-existent headers
5272 # can be detected and how.
5273 cat >conftest.$ac_ext <<_ACEOF
5274 /* confdefs.h. */
5275 _ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5279 #include <ac_nonexistent.h>
5280 _ACEOF
5281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5283 ac_status=$?
5284 grep -v '^ *+' conftest.er1 >conftest.err
5285 rm -f conftest.er1
5286 cat conftest.err >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } >/dev/null; then
5289 if test -s conftest.err; then
5290 ac_cpp_err=$ac_c_preproc_warn_flag
5291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5292 else
5293 ac_cpp_err=
5294 fi
5295 else
5296 ac_cpp_err=yes
5297 fi
5298 if test -z "$ac_cpp_err"; then
5299 # Broken: success on invalid input.
5300 continue
5301 else
5302 echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5304
5305 # Passes both tests.
5306 ac_preproc_ok=:
5307 break
5308 fi
5309 rm -f conftest.err conftest.$ac_ext
5310
5311 done
5312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5313 rm -f conftest.err conftest.$ac_ext
5314 if $ac_preproc_ok; then
5315 break
5316 fi
5317
5318 done
5319 ac_cv_prog_CPP=$CPP
5320
5321 fi
5322 CPP=$ac_cv_prog_CPP
5323 else
5324 ac_cv_prog_CPP=$CPP
5325 fi
5326 echo "$as_me:$LINENO: result: $CPP" >&5
5327 echo "${ECHO_T}$CPP" >&6
5328 ac_preproc_ok=false
5329 for ac_c_preproc_warn_flag in '' yes
5330 do
5331 # Use a header file that comes with gcc, so configuring glibc
5332 # with a fresh cross-compiler works.
5333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5334 # <limits.h> exists even on freestanding compilers.
5335 # On the NeXT, cc -E runs the code through the compiler's parser,
5336 # not just through cpp. "Syntax error" is here to catch this case.
5337 cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h. */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 #ifdef __STDC__
5344 # include <limits.h>
5345 #else
5346 # include <assert.h>
5347 #endif
5348 Syntax error
5349 _ACEOF
5350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } >/dev/null; then
5358 if test -s conftest.err; then
5359 ac_cpp_err=$ac_c_preproc_warn_flag
5360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5361 else
5362 ac_cpp_err=
5363 fi
5364 else
5365 ac_cpp_err=yes
5366 fi
5367 if test -z "$ac_cpp_err"; then
5368 :
5369 else
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5372
5373 # Broken: fails on valid input.
5374 continue
5375 fi
5376 rm -f conftest.err conftest.$ac_ext
5377
5378 # OK, works on sane cases. Now check whether non-existent headers
5379 # can be detected and how.
5380 cat >conftest.$ac_ext <<_ACEOF
5381 /* confdefs.h. */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 #include <ac_nonexistent.h>
5387 _ACEOF
5388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } >/dev/null; then
5396 if test -s conftest.err; then
5397 ac_cpp_err=$ac_c_preproc_warn_flag
5398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5399 else
5400 ac_cpp_err=
5401 fi
5402 else
5403 ac_cpp_err=yes
5404 fi
5405 if test -z "$ac_cpp_err"; then
5406 # Broken: success on invalid input.
5407 continue
5408 else
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5411
5412 # Passes both tests.
5413 ac_preproc_ok=:
5414 break
5415 fi
5416 rm -f conftest.err conftest.$ac_ext
5417
5418 done
5419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5420 rm -f conftest.err conftest.$ac_ext
5421 if $ac_preproc_ok; then
5422 :
5423 else
5424 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5425 See \`config.log' for more details." >&5
5426 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5427 See \`config.log' for more details." >&2;}
5428 { (exit 1); exit 1; }; }
5429 fi
5430
5431 ac_ext=c
5432 ac_cpp='$CPP $CPPFLAGS'
5433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5436
5437
5438 echo "$as_me:$LINENO: checking for egrep" >&5
5439 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5440 if test "${ac_cv_prog_egrep+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5444 then ac_cv_prog_egrep='grep -E'
5445 else ac_cv_prog_egrep='egrep'
5446 fi
5447 fi
5448 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5449 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5450 EGREP=$ac_cv_prog_egrep
5451
5452
5453 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5454 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5455 if test "${ac_cv_header_stdc+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457 else
5458 cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h. */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5464 #include <stdlib.h>
5465 #include <stdarg.h>
5466 #include <string.h>
5467 #include <float.h>
5468
5469 int
5470 main ()
5471 {
5472
5473 ;
5474 return 0;
5475 }
5476 _ACEOF
5477 rm -f conftest.$ac_objext
5478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5479 (eval $ac_compile) 2>conftest.er1
5480 ac_status=$?
5481 grep -v '^ *+' conftest.er1 >conftest.err
5482 rm -f conftest.er1
5483 cat conftest.err >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } &&
5486 { ac_try='test -z "$ac_c_werror_flag"
5487 || test ! -s conftest.err'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 (eval $ac_try) 2>&5
5490 ac_status=$?
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; } &&
5493 { ac_try='test -s conftest.$ac_objext'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 (eval $ac_try) 2>&5
5496 ac_status=$?
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; }; then
5499 ac_cv_header_stdc=yes
5500 else
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5503
5504 ac_cv_header_stdc=no
5505 fi
5506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5507
5508 if test $ac_cv_header_stdc = yes; then
5509 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5510 cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h. */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 #include <string.h>
5517
5518 _ACEOF
5519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5520 $EGREP "memchr" >/dev/null 2>&1; then
5521 :
5522 else
5523 ac_cv_header_stdc=no
5524 fi
5525 rm -f conftest*
5526
5527 fi
5528
5529 if test $ac_cv_header_stdc = yes; then
5530 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5531 cat >conftest.$ac_ext <<_ACEOF
5532 /* confdefs.h. */
5533 _ACEOF
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h. */
5537 #include <stdlib.h>
5538
5539 _ACEOF
5540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5541 $EGREP "free" >/dev/null 2>&1; then
5542 :
5543 else
5544 ac_cv_header_stdc=no
5545 fi
5546 rm -f conftest*
5547
5548 fi
5549
5550 if test $ac_cv_header_stdc = yes; then
5551 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5552 if test "$cross_compiling" = yes; then
5553 :
5554 else
5555 cat >conftest.$ac_ext <<_ACEOF
5556 /* confdefs.h. */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5561 #include <ctype.h>
5562 #if ((' ' & 0x0FF) == 0x020)
5563 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5564 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5565 #else
5566 # define ISLOWER(c) \
5567 (('a' <= (c) && (c) <= 'i') \
5568 || ('j' <= (c) && (c) <= 'r') \
5569 || ('s' <= (c) && (c) <= 'z'))
5570 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5571 #endif
5572
5573 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5574 int
5575 main ()
5576 {
5577 int i;
5578 for (i = 0; i < 256; i++)
5579 if (XOR (islower (i), ISLOWER (i))
5580 || toupper (i) != TOUPPER (i))
5581 exit(2);
5582 exit (0);
5583 }
5584 _ACEOF
5585 rm -f conftest$ac_exeext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5587 (eval $ac_link) 2>&5
5588 ac_status=$?
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 (eval $ac_try) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5596 :
5597 else
5598 echo "$as_me: program exited with status $ac_status" >&5
5599 echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5601
5602 ( exit $ac_status )
5603 ac_cv_header_stdc=no
5604 fi
5605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5606 fi
5607 fi
5608 fi
5609 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5610 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5611 if test $ac_cv_header_stdc = yes; then
5612
5613 cat >>confdefs.h <<\_ACEOF
5614 #define STDC_HEADERS 1
5615 _ACEOF
5616
5617 fi
5618
5619 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5620 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5621 if test "${ac_cv_c_const+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624 cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h. */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630
5631 int
5632 main ()
5633 {
5634 /* FIXME: Include the comments suggested by Paul. */
5635 #ifndef __cplusplus
5636 /* Ultrix mips cc rejects this. */
5637 typedef int charset[2];
5638 const charset x;
5639 /* SunOS 4.1.1 cc rejects this. */
5640 char const *const *ccp;
5641 char **p;
5642 /* NEC SVR4.0.2 mips cc rejects this. */
5643 struct point {int x, y;};
5644 static struct point const zero = {0,0};
5645 /* AIX XL C 1.02.0.0 rejects this.
5646 It does not let you subtract one const X* pointer from another in
5647 an arm of an if-expression whose if-part is not a constant
5648 expression */
5649 const char *g = "string";
5650 ccp = &g + (g ? g-g : 0);
5651 /* HPUX 7.0 cc rejects these. */
5652 ++ccp;
5653 p = (char**) ccp;
5654 ccp = (char const *const *) p;
5655 { /* SCO 3.2v4 cc rejects this. */
5656 char *t;
5657 char const *s = 0 ? (char *) 0 : (char const *) 0;
5658
5659 *t++ = 0;
5660 }
5661 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5662 int x[] = {25, 17};
5663 const int *foo = &x[0];
5664 ++foo;
5665 }
5666 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5667 typedef const int *iptr;
5668 iptr p = 0;
5669 ++p;
5670 }
5671 { /* AIX XL C 1.02.0.0 rejects this saying
5672 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5673 struct s { int j; const int *ap[3]; };
5674 struct s *b; b->j = 5;
5675 }
5676 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5677 const int foo = 10;
5678 }
5679 #endif
5680
5681 ;
5682 return 0;
5683 }
5684 _ACEOF
5685 rm -f conftest.$ac_objext
5686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5687 (eval $ac_compile) 2>conftest.er1
5688 ac_status=$?
5689 grep -v '^ *+' conftest.er1 >conftest.err
5690 rm -f conftest.er1
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } &&
5694 { ac_try='test -z "$ac_c_werror_flag"
5695 || test ! -s conftest.err'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 (eval $ac_try) 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; } &&
5701 { ac_try='test -s conftest.$ac_objext'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 (eval $ac_try) 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; }; then
5707 ac_cv_c_const=yes
5708 else
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5711
5712 ac_cv_c_const=no
5713 fi
5714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5715 fi
5716 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5717 echo "${ECHO_T}$ac_cv_c_const" >&6
5718 if test $ac_cv_c_const = no; then
5719
5720 cat >>confdefs.h <<\_ACEOF
5721 #define const
5722 _ACEOF
5723
5724 fi
5725
5726 echo "$as_me:$LINENO: checking for inline" >&5
5727 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5728 if test "${ac_cv_c_inline+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 ac_cv_c_inline=no
5732 for ac_kw in inline __inline__ __inline; do
5733 cat >conftest.$ac_ext <<_ACEOF
5734 /* confdefs.h. */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739 #ifndef __cplusplus
5740 typedef int foo_t;
5741 static $ac_kw foo_t static_foo () {return 0; }
5742 $ac_kw foo_t foo () {return 0; }
5743 #endif
5744
5745 _ACEOF
5746 rm -f conftest.$ac_objext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5748 (eval $ac_compile) 2>conftest.er1
5749 ac_status=$?
5750 grep -v '^ *+' conftest.er1 >conftest.err
5751 rm -f conftest.er1
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } &&
5755 { ac_try='test -z "$ac_c_werror_flag"
5756 || test ! -s conftest.err'
5757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758 (eval $ac_try) 2>&5
5759 ac_status=$?
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; } &&
5762 { ac_try='test -s conftest.$ac_objext'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 (eval $ac_try) 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
5768 ac_cv_c_inline=$ac_kw; break
5769 else
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773 fi
5774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5775 done
5776
5777 fi
5778 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5779 echo "${ECHO_T}$ac_cv_c_inline" >&6
5780
5781
5782 case $ac_cv_c_inline in
5783 inline | yes) ;;
5784 *)
5785 case $ac_cv_c_inline in
5786 no) ac_val=;;
5787 *) ac_val=$ac_cv_c_inline;;
5788 esac
5789 cat >>confdefs.h <<_ACEOF
5790 #ifndef __cplusplus
5791 #define inline $ac_val
5792 #endif
5793 _ACEOF
5794 ;;
5795 esac
5796
5797 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5808 inttypes.h stdint.h unistd.h
5809 do
5810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5811 echo "$as_me:$LINENO: checking for $ac_header" >&5
5812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816 cat >conftest.$ac_ext <<_ACEOF
5817 /* confdefs.h. */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 $ac_includes_default
5823
5824 #include <$ac_header>
5825 _ACEOF
5826 rm -f conftest.$ac_objext
5827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5828 (eval $ac_compile) 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } &&
5835 { ac_try='test -z "$ac_c_werror_flag"
5836 || test ! -s conftest.err'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 (eval $ac_try) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; } &&
5842 { ac_try='test -s conftest.$ac_objext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 (eval $ac_try) 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 eval "$as_ac_Header=yes"
5849 else
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 eval "$as_ac_Header=no"
5854 fi
5855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5856 fi
5857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5860 cat >>confdefs.h <<_ACEOF
5861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5862 _ACEOF
5863
5864 fi
5865
5866 done
5867
5868
5869 echo "$as_me:$LINENO: checking for off_t" >&5
5870 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5871 if test "${ac_cv_type_off_t+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874 cat >conftest.$ac_ext <<_ACEOF
5875 /* confdefs.h. */
5876 _ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5880 $ac_includes_default
5881 int
5882 main ()
5883 {
5884 if ((off_t *) 0)
5885 return 0;
5886 if (sizeof (off_t))
5887 return 0;
5888 ;
5889 return 0;
5890 }
5891 _ACEOF
5892 rm -f conftest.$ac_objext
5893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5894 (eval $ac_compile) 2>conftest.er1
5895 ac_status=$?
5896 grep -v '^ *+' conftest.er1 >conftest.err
5897 rm -f conftest.er1
5898 cat conftest.err >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } &&
5901 { ac_try='test -z "$ac_c_werror_flag"
5902 || test ! -s conftest.err'
5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 (eval $ac_try) 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; } &&
5908 { ac_try='test -s conftest.$ac_objext'
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 (eval $ac_try) 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; }; then
5914 ac_cv_type_off_t=yes
5915 else
5916 echo "$as_me: failed program was:" >&5
5917 sed 's/^/| /' conftest.$ac_ext >&5
5918
5919 ac_cv_type_off_t=no
5920 fi
5921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5922 fi
5923 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5924 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5925 if test $ac_cv_type_off_t = yes; then
5926 :
5927 else
5928
5929 cat >>confdefs.h <<_ACEOF
5930 #define off_t long
5931 _ACEOF
5932
5933 fi
5934
5935 echo "$as_me:$LINENO: checking for size_t" >&5
5936 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5937 if test "${ac_cv_type_size_t+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 else
5940 cat >conftest.$ac_ext <<_ACEOF
5941 /* confdefs.h. */
5942 _ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5946 $ac_includes_default
5947 int
5948 main ()
5949 {
5950 if ((size_t *) 0)
5951 return 0;
5952 if (sizeof (size_t))
5953 return 0;
5954 ;
5955 return 0;
5956 }
5957 _ACEOF
5958 rm -f conftest.$ac_objext
5959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5960 (eval $ac_compile) 2>conftest.er1
5961 ac_status=$?
5962 grep -v '^ *+' conftest.er1 >conftest.err
5963 rm -f conftest.er1
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } &&
5967 { ac_try='test -z "$ac_c_werror_flag"
5968 || test ! -s conftest.err'
5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970 (eval $ac_try) 2>&5
5971 ac_status=$?
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; } &&
5974 { ac_try='test -s conftest.$ac_objext'
5975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 (eval $ac_try) 2>&5
5977 ac_status=$?
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; }; then
5980 ac_cv_type_size_t=yes
5981 else
5982 echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.$ac_ext >&5
5984
5985 ac_cv_type_size_t=no
5986 fi
5987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5988 fi
5989 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5990 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5991 if test $ac_cv_type_size_t = yes; then
5992 :
5993 else
5994
5995 cat >>confdefs.h <<_ACEOF
5996 #define size_t unsigned
5997 _ACEOF
5998
5999 fi
6000
6001 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6002 # for constant arguments. Useless!
6003 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6004 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6005 if test "${ac_cv_working_alloca_h+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008 cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h. */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6014 #include <alloca.h>
6015 int
6016 main ()
6017 {
6018 char *p = (char *) alloca (2 * sizeof (int));
6019 ;
6020 return 0;
6021 }
6022 _ACEOF
6023 rm -f conftest.$ac_objext conftest$ac_exeext
6024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6025 (eval $ac_link) 2>conftest.er1
6026 ac_status=$?
6027 grep -v '^ *+' conftest.er1 >conftest.err
6028 rm -f conftest.er1
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } &&
6032 { ac_try='test -z "$ac_c_werror_flag"
6033 || test ! -s conftest.err'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035 (eval $ac_try) 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; } &&
6039 { ac_try='test -s conftest$ac_exeext'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 (eval $ac_try) 2>&5
6042 ac_status=$?
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; }; then
6045 ac_cv_working_alloca_h=yes
6046 else
6047 echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.$ac_ext >&5
6049
6050 ac_cv_working_alloca_h=no
6051 fi
6052 rm -f conftest.err conftest.$ac_objext \
6053 conftest$ac_exeext conftest.$ac_ext
6054 fi
6055 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6056 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6057 if test $ac_cv_working_alloca_h = yes; then
6058
6059 cat >>confdefs.h <<\_ACEOF
6060 #define HAVE_ALLOCA_H 1
6061 _ACEOF
6062
6063 fi
6064
6065 echo "$as_me:$LINENO: checking for alloca" >&5
6066 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6067 if test "${ac_cv_func_alloca_works+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070 cat >conftest.$ac_ext <<_ACEOF
6071 /* confdefs.h. */
6072 _ACEOF
6073 cat confdefs.h >>conftest.$ac_ext
6074 cat >>conftest.$ac_ext <<_ACEOF
6075 /* end confdefs.h. */
6076 #ifdef __GNUC__
6077 # define alloca __builtin_alloca
6078 #else
6079 # ifdef _MSC_VER
6080 # include <malloc.h>
6081 # define alloca _alloca
6082 # else
6083 # if HAVE_ALLOCA_H
6084 # include <alloca.h>
6085 # else
6086 # ifdef _AIX
6087 #pragma alloca
6088 # else
6089 # ifndef alloca /* predefined by HP cc +Olibcalls */
6090 char *alloca ();
6091 # endif
6092 # endif
6093 # endif
6094 # endif
6095 #endif
6096
6097 int
6098 main ()
6099 {
6100 char *p = (char *) alloca (1);
6101 ;
6102 return 0;
6103 }
6104 _ACEOF
6105 rm -f conftest.$ac_objext conftest$ac_exeext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6107 (eval $ac_link) 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -z "$ac_c_werror_flag"
6115 || test ! -s conftest.err'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 (eval $ac_try) 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; } &&
6121 { ac_try='test -s conftest$ac_exeext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_cv_func_alloca_works=yes
6128 else
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6131
6132 ac_cv_func_alloca_works=no
6133 fi
6134 rm -f conftest.err conftest.$ac_objext \
6135 conftest$ac_exeext conftest.$ac_ext
6136 fi
6137 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6138 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6139
6140 if test $ac_cv_func_alloca_works = yes; then
6141
6142 cat >>confdefs.h <<\_ACEOF
6143 #define HAVE_ALLOCA 1
6144 _ACEOF
6145
6146 else
6147 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6148 # that cause trouble. Some versions do not even contain alloca or
6149 # contain a buggy version. If you still want to use their alloca,
6150 # use ar to extract alloca.o from them instead of compiling alloca.c.
6151
6152 ALLOCA=alloca.$ac_objext
6153
6154 cat >>confdefs.h <<\_ACEOF
6155 #define C_ALLOCA 1
6156 _ACEOF
6157
6158
6159 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6160 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6161 if test "${ac_cv_os_cray+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164 cat >conftest.$ac_ext <<_ACEOF
6165 /* confdefs.h. */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6170 #if defined(CRAY) && ! defined(CRAY2)
6171 webecray
6172 #else
6173 wenotbecray
6174 #endif
6175
6176 _ACEOF
6177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6178 $EGREP "webecray" >/dev/null 2>&1; then
6179 ac_cv_os_cray=yes
6180 else
6181 ac_cv_os_cray=no
6182 fi
6183 rm -f conftest*
6184
6185 fi
6186 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6187 echo "${ECHO_T}$ac_cv_os_cray" >&6
6188 if test $ac_cv_os_cray = yes; then
6189 for ac_func in _getb67 GETB67 getb67; do
6190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6191 echo "$as_me:$LINENO: checking for $ac_func" >&5
6192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6193 if eval "test \"\${$as_ac_var+set}\" = set"; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196 cat >conftest.$ac_ext <<_ACEOF
6197 /* confdefs.h. */
6198 _ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6204 #define $ac_func innocuous_$ac_func
6205
6206 /* System header to define __stub macros and hopefully few prototypes,
6207 which can conflict with char $ac_func (); below.
6208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6209 <limits.h> exists even on freestanding compilers. */
6210
6211 #ifdef __STDC__
6212 # include <limits.h>
6213 #else
6214 # include <assert.h>
6215 #endif
6216
6217 #undef $ac_func
6218
6219 /* Override any gcc2 internal prototype to avoid an error. */
6220 #ifdef __cplusplus
6221 extern "C"
6222 {
6223 #endif
6224 /* We use char because int might match the return type of a gcc2
6225 builtin and then its argument prototype would still apply. */
6226 char $ac_func ();
6227 /* The GNU C library defines this for functions which it implements
6228 to always fail with ENOSYS. Some functions are actually named
6229 something starting with __ and the normal name is an alias. */
6230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6231 choke me
6232 #else
6233 char (*f) () = $ac_func;
6234 #endif
6235 #ifdef __cplusplus
6236 }
6237 #endif
6238
6239 int
6240 main ()
6241 {
6242 return f != $ac_func;
6243 ;
6244 return 0;
6245 }
6246 _ACEOF
6247 rm -f conftest.$ac_objext conftest$ac_exeext
6248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6249 (eval $ac_link) 2>conftest.er1
6250 ac_status=$?
6251 grep -v '^ *+' conftest.er1 >conftest.err
6252 rm -f conftest.er1
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try='test -z "$ac_c_werror_flag"
6257 || test ! -s conftest.err'
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 (eval $ac_try) 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; } &&
6263 { ac_try='test -s conftest$ac_exeext'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 (eval $ac_try) 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; }; then
6269 eval "$as_ac_var=yes"
6270 else
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6273
6274 eval "$as_ac_var=no"
6275 fi
6276 rm -f conftest.err conftest.$ac_objext \
6277 conftest$ac_exeext conftest.$ac_ext
6278 fi
6279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6281 if test `eval echo '${'$as_ac_var'}'` = yes; then
6282
6283 cat >>confdefs.h <<_ACEOF
6284 #define CRAY_STACKSEG_END $ac_func
6285 _ACEOF
6286
6287 break
6288 fi
6289
6290 done
6291 fi
6292
6293 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6294 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6295 if test "${ac_cv_c_stack_direction+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298 if test "$cross_compiling" = yes; then
6299 ac_cv_c_stack_direction=0
6300 else
6301 cat >conftest.$ac_ext <<_ACEOF
6302 /* confdefs.h. */
6303 _ACEOF
6304 cat confdefs.h >>conftest.$ac_ext
6305 cat >>conftest.$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6307 int
6308 find_stack_direction ()
6309 {
6310 static char *addr = 0;
6311 auto char dummy;
6312 if (addr == 0)
6313 {
6314 addr = &dummy;
6315 return find_stack_direction ();
6316 }
6317 else
6318 return (&dummy > addr) ? 1 : -1;
6319 }
6320
6321 int
6322 main ()
6323 {
6324 exit (find_stack_direction () < 0);
6325 }
6326 _ACEOF
6327 rm -f conftest$ac_exeext
6328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6329 (eval $ac_link) 2>&5
6330 ac_status=$?
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 (eval $ac_try) 2>&5
6335 ac_status=$?
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
6338 ac_cv_c_stack_direction=1
6339 else
6340 echo "$as_me: program exited with status $ac_status" >&5
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6343
6344 ( exit $ac_status )
6345 ac_cv_c_stack_direction=-1
6346 fi
6347 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6348 fi
6349 fi
6350 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6351 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6352
6353 cat >>confdefs.h <<_ACEOF
6354 #define STACK_DIRECTION $ac_cv_c_stack_direction
6355 _ACEOF
6356
6357
6358 fi
6359
6360
6361
6362 for ac_header in stdlib.h unistd.h
6363 do
6364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6366 echo "$as_me:$LINENO: checking for $ac_header" >&5
6367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 fi
6371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6373 else
6374 # Is the header compilable?
6375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6377 cat >conftest.$ac_ext <<_ACEOF
6378 /* confdefs.h. */
6379 _ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6383 $ac_includes_default
6384 #include <$ac_header>
6385 _ACEOF
6386 rm -f conftest.$ac_objext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388 (eval $ac_compile) 2>conftest.er1
6389 ac_status=$?
6390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try='test -z "$ac_c_werror_flag"
6396 || test ! -s conftest.err'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest.$ac_objext'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 ac_header_compiler=yes
6409 else
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6412
6413 ac_header_compiler=no
6414 fi
6415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6417 echo "${ECHO_T}$ac_header_compiler" >&6
6418
6419 # Is the header present?
6420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6422 cat >conftest.$ac_ext <<_ACEOF
6423 /* confdefs.h. */
6424 _ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6428 #include <$ac_header>
6429 _ACEOF
6430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6432 ac_status=$?
6433 grep -v '^ *+' conftest.er1 >conftest.err
6434 rm -f conftest.er1
6435 cat conftest.err >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } >/dev/null; then
6438 if test -s conftest.err; then
6439 ac_cpp_err=$ac_c_preproc_warn_flag
6440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6441 else
6442 ac_cpp_err=
6443 fi
6444 else
6445 ac_cpp_err=yes
6446 fi
6447 if test -z "$ac_cpp_err"; then
6448 ac_header_preproc=yes
6449 else
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6452
6453 ac_header_preproc=no
6454 fi
6455 rm -f conftest.err conftest.$ac_ext
6456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6457 echo "${ECHO_T}$ac_header_preproc" >&6
6458
6459 # So? What about this header?
6460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6461 yes:no: )
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6466 ac_header_preproc=yes
6467 ;;
6468 no:yes:* )
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6481 (
6482 cat <<\_ASBOX
6483 ## ------------------------------------------ ##
6484 ## Report this to the AC_PACKAGE_NAME lists. ##
6485 ## ------------------------------------------ ##
6486 _ASBOX
6487 ) |
6488 sed "s/^/$as_me: WARNING: /" >&2
6489 ;;
6490 esac
6491 echo "$as_me:$LINENO: checking for $ac_header" >&5
6492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496 eval "$as_ac_Header=\$ac_header_preproc"
6497 fi
6498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6500
6501 fi
6502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6503 cat >>confdefs.h <<_ACEOF
6504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6505 _ACEOF
6506
6507 fi
6508
6509 done
6510
6511
6512 for ac_func in getpagesize
6513 do
6514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6515 echo "$as_me:$LINENO: checking for $ac_func" >&5
6516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6517 if eval "test \"\${$as_ac_var+set}\" = set"; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6528 #define $ac_func innocuous_$ac_func
6529
6530 /* System header to define __stub macros and hopefully few prototypes,
6531 which can conflict with char $ac_func (); below.
6532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6533 <limits.h> exists even on freestanding compilers. */
6534
6535 #ifdef __STDC__
6536 # include <limits.h>
6537 #else
6538 # include <assert.h>
6539 #endif
6540
6541 #undef $ac_func
6542
6543 /* Override any gcc2 internal prototype to avoid an error. */
6544 #ifdef __cplusplus
6545 extern "C"
6546 {
6547 #endif
6548 /* We use char because int might match the return type of a gcc2
6549 builtin and then its argument prototype would still apply. */
6550 char $ac_func ();
6551 /* The GNU C library defines this for functions which it implements
6552 to always fail with ENOSYS. Some functions are actually named
6553 something starting with __ and the normal name is an alias. */
6554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6555 choke me
6556 #else
6557 char (*f) () = $ac_func;
6558 #endif
6559 #ifdef __cplusplus
6560 }
6561 #endif
6562
6563 int
6564 main ()
6565 {
6566 return f != $ac_func;
6567 ;
6568 return 0;
6569 }
6570 _ACEOF
6571 rm -f conftest.$ac_objext conftest$ac_exeext
6572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573 (eval $ac_link) 2>conftest.er1
6574 ac_status=$?
6575 grep -v '^ *+' conftest.er1 >conftest.err
6576 rm -f conftest.er1
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } &&
6580 { ac_try='test -z "$ac_c_werror_flag"
6581 || test ! -s conftest.err'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 (eval $ac_try) 2>&5
6584 ac_status=$?
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; } &&
6587 { ac_try='test -s conftest$ac_exeext'
6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589 (eval $ac_try) 2>&5
6590 ac_status=$?
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }; }; then
6593 eval "$as_ac_var=yes"
6594 else
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6597
6598 eval "$as_ac_var=no"
6599 fi
6600 rm -f conftest.err conftest.$ac_objext \
6601 conftest$ac_exeext conftest.$ac_ext
6602 fi
6603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6605 if test `eval echo '${'$as_ac_var'}'` = yes; then
6606 cat >>confdefs.h <<_ACEOF
6607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6608 _ACEOF
6609
6610 fi
6611 done
6612
6613 echo "$as_me:$LINENO: checking for working mmap" >&5
6614 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6615 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618 if test "$cross_compiling" = yes; then
6619 ac_cv_func_mmap_fixed_mapped=no
6620 else
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 $ac_includes_default
6628 /* malloc might have been renamed as rpl_malloc. */
6629 #undef malloc
6630
6631 /* Thanks to Mike Haertel and Jim Avera for this test.
6632 Here is a matrix of mmap possibilities:
6633 mmap private not fixed
6634 mmap private fixed at somewhere currently unmapped
6635 mmap private fixed at somewhere already mapped
6636 mmap shared not fixed
6637 mmap shared fixed at somewhere currently unmapped
6638 mmap shared fixed at somewhere already mapped
6639 For private mappings, we should verify that changes cannot be read()
6640 back from the file, nor mmap's back from the file at a different
6641 address. (There have been systems where private was not correctly
6642 implemented like the infamous i386 svr4.0, and systems where the
6643 VM page cache was not coherent with the file system buffer cache
6644 like early versions of FreeBSD and possibly contemporary NetBSD.)
6645 For shared mappings, we should conversely verify that changes get
6646 propagated back to all the places they're supposed to be.
6647
6648 Grep wants private fixed already mapped.
6649 The main things grep needs to know about mmap are:
6650 * does it exist and is it safe to write into the mmap'd area
6651 * how to use it (BSD variants) */
6652
6653 #include <fcntl.h>
6654 #include <sys/mman.h>
6655
6656 #if !STDC_HEADERS && !HAVE_STDLIB_H
6657 char *malloc ();
6658 #endif
6659
6660 /* This mess was copied from the GNU getpagesize.h. */
6661 #if !HAVE_GETPAGESIZE
6662 /* Assume that all systems that can run configure have sys/param.h. */
6663 # if !HAVE_SYS_PARAM_H
6664 # define HAVE_SYS_PARAM_H 1
6665 # endif
6666
6667 # ifdef _SC_PAGESIZE
6668 # define getpagesize() sysconf(_SC_PAGESIZE)
6669 # else /* no _SC_PAGESIZE */
6670 # if HAVE_SYS_PARAM_H
6671 # include <sys/param.h>
6672 # ifdef EXEC_PAGESIZE
6673 # define getpagesize() EXEC_PAGESIZE
6674 # else /* no EXEC_PAGESIZE */
6675 # ifdef NBPG
6676 # define getpagesize() NBPG * CLSIZE
6677 # ifndef CLSIZE
6678 # define CLSIZE 1
6679 # endif /* no CLSIZE */
6680 # else /* no NBPG */
6681 # ifdef NBPC
6682 # define getpagesize() NBPC
6683 # else /* no NBPC */
6684 # ifdef PAGESIZE
6685 # define getpagesize() PAGESIZE
6686 # endif /* PAGESIZE */
6687 # endif /* no NBPC */
6688 # endif /* no NBPG */
6689 # endif /* no EXEC_PAGESIZE */
6690 # else /* no HAVE_SYS_PARAM_H */
6691 # define getpagesize() 8192 /* punt totally */
6692 # endif /* no HAVE_SYS_PARAM_H */
6693 # endif /* no _SC_PAGESIZE */
6694
6695 #endif /* no HAVE_GETPAGESIZE */
6696
6697 int
6698 main ()
6699 {
6700 char *data, *data2, *data3;
6701 int i, pagesize;
6702 int fd;
6703
6704 pagesize = getpagesize ();
6705
6706 /* First, make a file with some known garbage in it. */
6707 data = (char *) malloc (pagesize);
6708 if (!data)
6709 exit (1);
6710 for (i = 0; i < pagesize; ++i)
6711 *(data + i) = rand ();
6712 umask (0);
6713 fd = creat ("conftest.mmap", 0600);
6714 if (fd < 0)
6715 exit (1);
6716 if (write (fd, data, pagesize) != pagesize)
6717 exit (1);
6718 close (fd);
6719
6720 /* Next, try to mmap the file at a fixed address which already has
6721 something else allocated at it. If we can, also make sure that
6722 we see the same garbage. */
6723 fd = open ("conftest.mmap", O_RDWR);
6724 if (fd < 0)
6725 exit (1);
6726 data2 = (char *) malloc (2 * pagesize);
6727 if (!data2)
6728 exit (1);
6729 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6730 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6731 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6732 exit (1);
6733 for (i = 0; i < pagesize; ++i)
6734 if (*(data + i) != *(data2 + i))
6735 exit (1);
6736
6737 /* Finally, make sure that changes to the mapped area do not
6738 percolate back to the file as seen by read(). (This is a bug on
6739 some variants of i386 svr4.0.) */
6740 for (i = 0; i < pagesize; ++i)
6741 *(data2 + i) = *(data2 + i) + 1;
6742 data3 = (char *) malloc (pagesize);
6743 if (!data3)
6744 exit (1);
6745 if (read (fd, data3, pagesize) != pagesize)
6746 exit (1);
6747 for (i = 0; i < pagesize; ++i)
6748 if (*(data + i) != *(data3 + i))
6749 exit (1);
6750 close (fd);
6751 exit (0);
6752 }
6753 _ACEOF
6754 rm -f conftest$ac_exeext
6755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6756 (eval $ac_link) 2>&5
6757 ac_status=$?
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 (eval $ac_try) 2>&5
6762 ac_status=$?
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; }; then
6765 ac_cv_func_mmap_fixed_mapped=yes
6766 else
6767 echo "$as_me: program exited with status $ac_status" >&5
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6770
6771 ( exit $ac_status )
6772 ac_cv_func_mmap_fixed_mapped=no
6773 fi
6774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6775 fi
6776 fi
6777 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6778 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6779 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6780
6781 cat >>confdefs.h <<\_ACEOF
6782 #define HAVE_MMAP 1
6783 _ACEOF
6784
6785 fi
6786 rm -f conftest.mmap
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6799 unistd.h values.h sys/param.h
6800 do
6801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6803 echo "$as_me:$LINENO: checking for $ac_header" >&5
6804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 fi
6808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6810 else
6811 # Is the header compilable?
6812 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6814 cat >conftest.$ac_ext <<_ACEOF
6815 /* confdefs.h. */
6816 _ACEOF
6817 cat confdefs.h >>conftest.$ac_ext
6818 cat >>conftest.$ac_ext <<_ACEOF
6819 /* end confdefs.h. */
6820 $ac_includes_default
6821 #include <$ac_header>
6822 _ACEOF
6823 rm -f conftest.$ac_objext
6824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6825 (eval $ac_compile) 2>conftest.er1
6826 ac_status=$?
6827 grep -v '^ *+' conftest.er1 >conftest.err
6828 rm -f conftest.er1
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } &&
6832 { ac_try='test -z "$ac_c_werror_flag"
6833 || test ! -s conftest.err'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 (eval $ac_try) 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; } &&
6839 { ac_try='test -s conftest.$ac_objext'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 (eval $ac_try) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; }; then
6845 ac_header_compiler=yes
6846 else
6847 echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6849
6850 ac_header_compiler=no
6851 fi
6852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6854 echo "${ECHO_T}$ac_header_compiler" >&6
6855
6856 # Is the header present?
6857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6859 cat >conftest.$ac_ext <<_ACEOF
6860 /* confdefs.h. */
6861 _ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6865 #include <$ac_header>
6866 _ACEOF
6867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6869 ac_status=$?
6870 grep -v '^ *+' conftest.er1 >conftest.err
6871 rm -f conftest.er1
6872 cat conftest.err >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } >/dev/null; then
6875 if test -s conftest.err; then
6876 ac_cpp_err=$ac_c_preproc_warn_flag
6877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6878 else
6879 ac_cpp_err=
6880 fi
6881 else
6882 ac_cpp_err=yes
6883 fi
6884 if test -z "$ac_cpp_err"; then
6885 ac_header_preproc=yes
6886 else
6887 echo "$as_me: failed program was:" >&5
6888 sed 's/^/| /' conftest.$ac_ext >&5
6889
6890 ac_header_preproc=no
6891 fi
6892 rm -f conftest.err conftest.$ac_ext
6893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6894 echo "${ECHO_T}$ac_header_preproc" >&6
6895
6896 # So? What about this header?
6897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6898 yes:no: )
6899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6903 ac_header_preproc=yes
6904 ;;
6905 no:yes:* )
6906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6918 (
6919 cat <<\_ASBOX
6920 ## ------------------------------------------ ##
6921 ## Report this to the AC_PACKAGE_NAME lists. ##
6922 ## ------------------------------------------ ##
6923 _ASBOX
6924 ) |
6925 sed "s/^/$as_me: WARNING: /" >&2
6926 ;;
6927 esac
6928 echo "$as_me:$LINENO: checking for $ac_header" >&5
6929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933 eval "$as_ac_Header=\$ac_header_preproc"
6934 fi
6935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6937
6938 fi
6939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6940 cat >>confdefs.h <<_ACEOF
6941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6942 _ACEOF
6943
6944 fi
6945
6946 done
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6959 __argz_count __argz_stringify __argz_next
6960 do
6961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6962 echo "$as_me:$LINENO: checking for $ac_func" >&5
6963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6964 if eval "test \"\${$as_ac_var+set}\" = set"; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967 cat >conftest.$ac_ext <<_ACEOF
6968 /* confdefs.h. */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6975 #define $ac_func innocuous_$ac_func
6976
6977 /* System header to define __stub macros and hopefully few prototypes,
6978 which can conflict with char $ac_func (); below.
6979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6980 <limits.h> exists even on freestanding compilers. */
6981
6982 #ifdef __STDC__
6983 # include <limits.h>
6984 #else
6985 # include <assert.h>
6986 #endif
6987
6988 #undef $ac_func
6989
6990 /* Override any gcc2 internal prototype to avoid an error. */
6991 #ifdef __cplusplus
6992 extern "C"
6993 {
6994 #endif
6995 /* We use char because int might match the return type of a gcc2
6996 builtin and then its argument prototype would still apply. */
6997 char $ac_func ();
6998 /* The GNU C library defines this for functions which it implements
6999 to always fail with ENOSYS. Some functions are actually named
7000 something starting with __ and the normal name is an alias. */
7001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7002 choke me
7003 #else
7004 char (*f) () = $ac_func;
7005 #endif
7006 #ifdef __cplusplus
7007 }
7008 #endif
7009
7010 int
7011 main ()
7012 {
7013 return f != $ac_func;
7014 ;
7015 return 0;
7016 }
7017 _ACEOF
7018 rm -f conftest.$ac_objext conftest$ac_exeext
7019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7020 (eval $ac_link) 2>conftest.er1
7021 ac_status=$?
7022 grep -v '^ *+' conftest.er1 >conftest.err
7023 rm -f conftest.er1
7024 cat conftest.err >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } &&
7027 { ac_try='test -z "$ac_c_werror_flag"
7028 || test ! -s conftest.err'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 (eval $ac_try) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; } &&
7034 { ac_try='test -s conftest$ac_exeext'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 (eval $ac_try) 2>&5
7037 ac_status=$?
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; }; then
7040 eval "$as_ac_var=yes"
7041 else
7042 echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7044
7045 eval "$as_ac_var=no"
7046 fi
7047 rm -f conftest.err conftest.$ac_objext \
7048 conftest$ac_exeext conftest.$ac_ext
7049 fi
7050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7052 if test `eval echo '${'$as_ac_var'}'` = yes; then
7053 cat >>confdefs.h <<_ACEOF
7054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7055 _ACEOF
7056
7057 fi
7058 done
7059
7060
7061 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7062
7063 for ac_func in stpcpy
7064 do
7065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7066 echo "$as_me:$LINENO: checking for $ac_func" >&5
7067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7068 if eval "test \"\${$as_ac_var+set}\" = set"; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 else
7071 cat >conftest.$ac_ext <<_ACEOF
7072 /* confdefs.h. */
7073 _ACEOF
7074 cat confdefs.h >>conftest.$ac_ext
7075 cat >>conftest.$ac_ext <<_ACEOF
7076 /* end confdefs.h. */
7077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7079 #define $ac_func innocuous_$ac_func
7080
7081 /* System header to define __stub macros and hopefully few prototypes,
7082 which can conflict with char $ac_func (); below.
7083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7084 <limits.h> exists even on freestanding compilers. */
7085
7086 #ifdef __STDC__
7087 # include <limits.h>
7088 #else
7089 # include <assert.h>
7090 #endif
7091
7092 #undef $ac_func
7093
7094 /* Override any gcc2 internal prototype to avoid an error. */
7095 #ifdef __cplusplus
7096 extern "C"
7097 {
7098 #endif
7099 /* We use char because int might match the return type of a gcc2
7100 builtin and then its argument prototype would still apply. */
7101 char $ac_func ();
7102 /* The GNU C library defines this for functions which it implements
7103 to always fail with ENOSYS. Some functions are actually named
7104 something starting with __ and the normal name is an alias. */
7105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7106 choke me
7107 #else
7108 char (*f) () = $ac_func;
7109 #endif
7110 #ifdef __cplusplus
7111 }
7112 #endif
7113
7114 int
7115 main ()
7116 {
7117 return f != $ac_func;
7118 ;
7119 return 0;
7120 }
7121 _ACEOF
7122 rm -f conftest.$ac_objext conftest$ac_exeext
7123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7124 (eval $ac_link) 2>conftest.er1
7125 ac_status=$?
7126 grep -v '^ *+' conftest.er1 >conftest.err
7127 rm -f conftest.er1
7128 cat conftest.err >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); } &&
7131 { ac_try='test -z "$ac_c_werror_flag"
7132 || test ! -s conftest.err'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 (eval $ac_try) 2>&5
7135 ac_status=$?
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; } &&
7138 { ac_try='test -s conftest$ac_exeext'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 (eval $ac_try) 2>&5
7141 ac_status=$?
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; }; then
7144 eval "$as_ac_var=yes"
7145 else
7146 echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7148
7149 eval "$as_ac_var=no"
7150 fi
7151 rm -f conftest.err conftest.$ac_objext \
7152 conftest$ac_exeext conftest.$ac_ext
7153 fi
7154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7156 if test `eval echo '${'$as_ac_var'}'` = yes; then
7157 cat >>confdefs.h <<_ACEOF
7158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7159 _ACEOF
7160
7161 fi
7162 done
7163
7164 fi
7165 if test "${ac_cv_func_stpcpy}" = "yes"; then
7166
7167 cat >>confdefs.h <<\_ACEOF
7168 #define HAVE_STPCPY 1
7169 _ACEOF
7170
7171 fi
7172
7173 if test $ac_cv_header_locale_h = yes; then
7174 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7175 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7176 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179 cat >conftest.$ac_ext <<_ACEOF
7180 /* confdefs.h. */
7181 _ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7185 #include <locale.h>
7186 int
7187 main ()
7188 {
7189 return LC_MESSAGES
7190 ;
7191 return 0;
7192 }
7193 _ACEOF
7194 rm -f conftest.$ac_objext conftest$ac_exeext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7196 (eval $ac_link) 2>conftest.er1
7197 ac_status=$?
7198 grep -v '^ *+' conftest.er1 >conftest.err
7199 rm -f conftest.er1
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try='test -z "$ac_c_werror_flag"
7204 || test ! -s conftest.err'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 (eval $ac_try) 2>&5
7207 ac_status=$?
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; } &&
7210 { ac_try='test -s conftest$ac_exeext'
7211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212 (eval $ac_try) 2>&5
7213 ac_status=$?
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; }; then
7216 am_cv_val_LC_MESSAGES=yes
7217 else
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7220
7221 am_cv_val_LC_MESSAGES=no
7222 fi
7223 rm -f conftest.err conftest.$ac_objext \
7224 conftest$ac_exeext conftest.$ac_ext
7225 fi
7226 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7227 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7228 if test $am_cv_val_LC_MESSAGES = yes; then
7229
7230 cat >>confdefs.h <<\_ACEOF
7231 #define HAVE_LC_MESSAGES 1
7232 _ACEOF
7233
7234 fi
7235 fi
7236 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7237 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7238 # Check whether --enable-nls or --disable-nls was given.
7239 if test "${enable_nls+set}" = set; then
7240 enableval="$enable_nls"
7241 USE_NLS=$enableval
7242 else
7243 USE_NLS=yes
7244 fi;
7245 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7246 echo "${ECHO_T}$USE_NLS" >&6
7247
7248
7249 USE_INCLUDED_LIBINTL=no
7250
7251 if test "$USE_NLS" = "yes"; then
7252 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7253 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7254
7255 # Check whether --with-included-gettext or --without-included-gettext was given.
7256 if test "${with_included_gettext+set}" = set; then
7257 withval="$with_included_gettext"
7258 nls_cv_force_use_gnu_gettext=$withval
7259 else
7260 nls_cv_force_use_gnu_gettext=no
7261 fi;
7262 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7263 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7264
7265 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7266 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7267 nls_cv_header_intl=
7268 nls_cv_header_libgt=
7269 CATOBJEXT=
7270
7271 if test "${ac_cv_header_libintl_h+set}" = set; then
7272 echo "$as_me:$LINENO: checking for libintl.h" >&5
7273 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7274 if test "${ac_cv_header_libintl_h+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 fi
7277 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7278 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7279 else
7280 # Is the header compilable?
7281 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7282 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7283 cat >conftest.$ac_ext <<_ACEOF
7284 /* confdefs.h. */
7285 _ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7289 $ac_includes_default
7290 #include <libintl.h>
7291 _ACEOF
7292 rm -f conftest.$ac_objext
7293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7294 (eval $ac_compile) 2>conftest.er1
7295 ac_status=$?
7296 grep -v '^ *+' conftest.er1 >conftest.err
7297 rm -f conftest.er1
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } &&
7301 { ac_try='test -z "$ac_c_werror_flag"
7302 || test ! -s conftest.err'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 (eval $ac_try) 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; } &&
7308 { ac_try='test -s conftest.$ac_objext'
7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310 (eval $ac_try) 2>&5
7311 ac_status=$?
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; }; then
7314 ac_header_compiler=yes
7315 else
7316 echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7318
7319 ac_header_compiler=no
7320 fi
7321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7323 echo "${ECHO_T}$ac_header_compiler" >&6
7324
7325 # Is the header present?
7326 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7327 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7328 cat >conftest.$ac_ext <<_ACEOF
7329 /* confdefs.h. */
7330 _ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7334 #include <libintl.h>
7335 _ACEOF
7336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7338 ac_status=$?
7339 grep -v '^ *+' conftest.er1 >conftest.err
7340 rm -f conftest.er1
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } >/dev/null; then
7344 if test -s conftest.err; then
7345 ac_cpp_err=$ac_c_preproc_warn_flag
7346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7347 else
7348 ac_cpp_err=
7349 fi
7350 else
7351 ac_cpp_err=yes
7352 fi
7353 if test -z "$ac_cpp_err"; then
7354 ac_header_preproc=yes
7355 else
7356 echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7358
7359 ac_header_preproc=no
7360 fi
7361 rm -f conftest.err conftest.$ac_ext
7362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7363 echo "${ECHO_T}$ac_header_preproc" >&6
7364
7365 # So? What about this header?
7366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7367 yes:no: )
7368 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7369 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7370 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7371 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7372 ac_header_preproc=yes
7373 ;;
7374 no:yes:* )
7375 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7376 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7377 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7378 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7379 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7380 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7381 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7382 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7383 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7384 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7386 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7387 (
7388 cat <<\_ASBOX
7389 ## ------------------------------------------ ##
7390 ## Report this to the AC_PACKAGE_NAME lists. ##
7391 ## ------------------------------------------ ##
7392 _ASBOX
7393 ) |
7394 sed "s/^/$as_me: WARNING: /" >&2
7395 ;;
7396 esac
7397 echo "$as_me:$LINENO: checking for libintl.h" >&5
7398 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7399 if test "${ac_cv_header_libintl_h+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 else
7402 ac_cv_header_libintl_h=$ac_header_preproc
7403 fi
7404 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7405 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7406
7407 fi
7408 if test $ac_cv_header_libintl_h = yes; then
7409 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7410 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7411 if test "${gt_cv_func_gettext_libc+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414 cat >conftest.$ac_ext <<_ACEOF
7415 /* confdefs.h. */
7416 _ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h. */
7420 #include <libintl.h>
7421 int
7422 main ()
7423 {
7424 return (int) gettext ("")
7425 ;
7426 return 0;
7427 }
7428 _ACEOF
7429 rm -f conftest.$ac_objext conftest$ac_exeext
7430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7431 (eval $ac_link) 2>conftest.er1
7432 ac_status=$?
7433 grep -v '^ *+' conftest.er1 >conftest.err
7434 rm -f conftest.er1
7435 cat conftest.err >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } &&
7438 { ac_try='test -z "$ac_c_werror_flag"
7439 || test ! -s conftest.err'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441 (eval $ac_try) 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; } &&
7445 { ac_try='test -s conftest$ac_exeext'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; }; then
7451 gt_cv_func_gettext_libc=yes
7452 else
7453 echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.$ac_ext >&5
7455
7456 gt_cv_func_gettext_libc=no
7457 fi
7458 rm -f conftest.err conftest.$ac_objext \
7459 conftest$ac_exeext conftest.$ac_ext
7460 fi
7461 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7462 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7463
7464 if test "$gt_cv_func_gettext_libc" != "yes"; then
7465 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7466 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7467 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470 ac_check_lib_save_LIBS=$LIBS
7471 LIBS="-lintl $LIBS"
7472 cat >conftest.$ac_ext <<_ACEOF
7473 /* confdefs.h. */
7474 _ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7478
7479 /* Override any gcc2 internal prototype to avoid an error. */
7480 #ifdef __cplusplus
7481 extern "C"
7482 #endif
7483 /* We use char because int might match the return type of a gcc2
7484 builtin and then its argument prototype would still apply. */
7485 char bindtextdomain ();
7486 int
7487 main ()
7488 {
7489 bindtextdomain ();
7490 ;
7491 return 0;
7492 }
7493 _ACEOF
7494 rm -f conftest.$ac_objext conftest$ac_exeext
7495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7496 (eval $ac_link) 2>conftest.er1
7497 ac_status=$?
7498 grep -v '^ *+' conftest.er1 >conftest.err
7499 rm -f conftest.er1
7500 cat conftest.err >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } &&
7503 { ac_try='test -z "$ac_c_werror_flag"
7504 || test ! -s conftest.err'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 (eval $ac_try) 2>&5
7507 ac_status=$?
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; } &&
7510 { ac_try='test -s conftest$ac_exeext'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 (eval $ac_try) 2>&5
7513 ac_status=$?
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; }; then
7516 ac_cv_lib_intl_bindtextdomain=yes
7517 else
7518 echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.$ac_ext >&5
7520
7521 ac_cv_lib_intl_bindtextdomain=no
7522 fi
7523 rm -f conftest.err conftest.$ac_objext \
7524 conftest$ac_exeext conftest.$ac_ext
7525 LIBS=$ac_check_lib_save_LIBS
7526 fi
7527 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7528 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7529 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7530 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7531 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7532 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 else
7535 cat >conftest.$ac_ext <<_ACEOF
7536 /* confdefs.h. */
7537 _ACEOF
7538 cat confdefs.h >>conftest.$ac_ext
7539 cat >>conftest.$ac_ext <<_ACEOF
7540 /* end confdefs.h. */
7541
7542 int
7543 main ()
7544 {
7545 return (int) gettext ("")
7546 ;
7547 return 0;
7548 }
7549 _ACEOF
7550 rm -f conftest.$ac_objext conftest$ac_exeext
7551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7552 (eval $ac_link) 2>conftest.er1
7553 ac_status=$?
7554 grep -v '^ *+' conftest.er1 >conftest.err
7555 rm -f conftest.er1
7556 cat conftest.err >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } &&
7559 { ac_try='test -z "$ac_c_werror_flag"
7560 || test ! -s conftest.err'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 (eval $ac_try) 2>&5
7563 ac_status=$?
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; } &&
7566 { ac_try='test -s conftest$ac_exeext'
7567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568 (eval $ac_try) 2>&5
7569 ac_status=$?
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); }; }; then
7572 gt_cv_func_gettext_libintl=yes
7573 else
7574 echo "$as_me: failed program was:" >&5
7575 sed 's/^/| /' conftest.$ac_ext >&5
7576
7577 gt_cv_func_gettext_libintl=no
7578 fi
7579 rm -f conftest.err conftest.$ac_objext \
7580 conftest$ac_exeext conftest.$ac_ext
7581 fi
7582 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7583 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7584 fi
7585
7586 fi
7587
7588 if test "$gt_cv_func_gettext_libc" = "yes" \
7589 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7590
7591 cat >>confdefs.h <<\_ACEOF
7592 #define HAVE_GETTEXT 1
7593 _ACEOF
7594
7595 # Extract the first word of "msgfmt", so it can be a program name with args.
7596 set dummy msgfmt; ac_word=$2
7597 echo "$as_me:$LINENO: checking for $ac_word" >&5
7598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7599 if test "${ac_cv_path_MSGFMT+set}" = set; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 else
7602 case "$MSGFMT" in
7603 /*)
7604 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7605 ;;
7606 *)
7607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7608 for ac_dir in $PATH; do
7609 test -z "$ac_dir" && ac_dir=.
7610 if test -f $ac_dir/$ac_word; then
7611 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7612 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7613 break
7614 fi
7615 fi
7616 done
7617 IFS="$ac_save_ifs"
7618 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7619 ;;
7620 esac
7621 fi
7622 MSGFMT="$ac_cv_path_MSGFMT"
7623 if test -n "$MSGFMT"; then
7624 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7625 echo "${ECHO_T}$MSGFMT" >&6
7626 else
7627 echo "$as_me:$LINENO: result: no" >&5
7628 echo "${ECHO_T}no" >&6
7629 fi
7630 if test "$MSGFMT" != "no"; then
7631
7632 for ac_func in dcgettext
7633 do
7634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7635 echo "$as_me:$LINENO: checking for $ac_func" >&5
7636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7637 if eval "test \"\${$as_ac_var+set}\" = set"; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640 cat >conftest.$ac_ext <<_ACEOF
7641 /* confdefs.h. */
7642 _ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7648 #define $ac_func innocuous_$ac_func
7649
7650 /* System header to define __stub macros and hopefully few prototypes,
7651 which can conflict with char $ac_func (); below.
7652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7653 <limits.h> exists even on freestanding compilers. */
7654
7655 #ifdef __STDC__
7656 # include <limits.h>
7657 #else
7658 # include <assert.h>
7659 #endif
7660
7661 #undef $ac_func
7662
7663 /* Override any gcc2 internal prototype to avoid an error. */
7664 #ifdef __cplusplus
7665 extern "C"
7666 {
7667 #endif
7668 /* We use char because int might match the return type of a gcc2
7669 builtin and then its argument prototype would still apply. */
7670 char $ac_func ();
7671 /* The GNU C library defines this for functions which it implements
7672 to always fail with ENOSYS. Some functions are actually named
7673 something starting with __ and the normal name is an alias. */
7674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7675 choke me
7676 #else
7677 char (*f) () = $ac_func;
7678 #endif
7679 #ifdef __cplusplus
7680 }
7681 #endif
7682
7683 int
7684 main ()
7685 {
7686 return f != $ac_func;
7687 ;
7688 return 0;
7689 }
7690 _ACEOF
7691 rm -f conftest.$ac_objext conftest$ac_exeext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7693 (eval $ac_link) 2>conftest.er1
7694 ac_status=$?
7695 grep -v '^ *+' conftest.er1 >conftest.err
7696 rm -f conftest.er1
7697 cat conftest.err >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } &&
7700 { ac_try='test -z "$ac_c_werror_flag"
7701 || test ! -s conftest.err'
7702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 (eval $ac_try) 2>&5
7704 ac_status=$?
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; } &&
7707 { ac_try='test -s conftest$ac_exeext'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 (eval $ac_try) 2>&5
7710 ac_status=$?
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; }; then
7713 eval "$as_ac_var=yes"
7714 else
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7717
7718 eval "$as_ac_var=no"
7719 fi
7720 rm -f conftest.err conftest.$ac_objext \
7721 conftest$ac_exeext conftest.$ac_ext
7722 fi
7723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7725 if test `eval echo '${'$as_ac_var'}'` = yes; then
7726 cat >>confdefs.h <<_ACEOF
7727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7728 _ACEOF
7729
7730 fi
7731 done
7732
7733 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7734 set dummy gmsgfmt; ac_word=$2
7735 echo "$as_me:$LINENO: checking for $ac_word" >&5
7736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7737 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7739 else
7740 case $GMSGFMT in
7741 [\\/]* | ?:[\\/]*)
7742 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7743 ;;
7744 *)
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7747 do
7748 IFS=$as_save_IFS
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7752 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 break 2
7755 fi
7756 done
7757 done
7758
7759 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7760 ;;
7761 esac
7762 fi
7763 GMSGFMT=$ac_cv_path_GMSGFMT
7764
7765 if test -n "$GMSGFMT"; then
7766 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7767 echo "${ECHO_T}$GMSGFMT" >&6
7768 else
7769 echo "$as_me:$LINENO: result: no" >&5
7770 echo "${ECHO_T}no" >&6
7771 fi
7772
7773 # Extract the first word of "xgettext", so it can be a program name with args.
7774 set dummy xgettext; ac_word=$2
7775 echo "$as_me:$LINENO: checking for $ac_word" >&5
7776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7777 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 else
7780 case "$XGETTEXT" in
7781 /*)
7782 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7783 ;;
7784 *)
7785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7786 for ac_dir in $PATH; do
7787 test -z "$ac_dir" && ac_dir=.
7788 if test -f $ac_dir/$ac_word; then
7789 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7790 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7791 break
7792 fi
7793 fi
7794 done
7795 IFS="$ac_save_ifs"
7796 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7797 ;;
7798 esac
7799 fi
7800 XGETTEXT="$ac_cv_path_XGETTEXT"
7801 if test -n "$XGETTEXT"; then
7802 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7803 echo "${ECHO_T}$XGETTEXT" >&6
7804 else
7805 echo "$as_me:$LINENO: result: no" >&5
7806 echo "${ECHO_T}no" >&6
7807 fi
7808
7809 cat >conftest.$ac_ext <<_ACEOF
7810 /* confdefs.h. */
7811 _ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7815
7816 int
7817 main ()
7818 {
7819 extern int _nl_msg_cat_cntr;
7820 return _nl_msg_cat_cntr
7821 ;
7822 return 0;
7823 }
7824 _ACEOF
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
7834 { ac_try='test -z "$ac_c_werror_flag"
7835 || test ! -s conftest.err'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 (eval $ac_try) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; } &&
7841 { ac_try='test -s conftest$ac_exeext'
7842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 (eval $ac_try) 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7847 CATOBJEXT=.gmo
7848 DATADIRNAME=share
7849 else
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7852
7853 CATOBJEXT=.mo
7854 DATADIRNAME=lib
7855 fi
7856 rm -f conftest.err conftest.$ac_objext \
7857 conftest$ac_exeext conftest.$ac_ext
7858 INSTOBJEXT=.mo
7859 fi
7860 fi
7861
7862 fi
7863
7864
7865
7866
7867 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7868 # Neither gettext nor catgets in included in the C library.
7869 # Fall back on GNU gettext library (assuming it is present).
7870 nls_cv_use_gnu_gettext=yes
7871 fi
7872 fi
7873
7874 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7875 INTLOBJS="\$(GETTOBJS)"
7876 # Extract the first word of "msgfmt", so it can be a program name with args.
7877 set dummy msgfmt; ac_word=$2
7878 echo "$as_me:$LINENO: checking for $ac_word" >&5
7879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7880 if test "${ac_cv_path_MSGFMT+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883 case "$MSGFMT" in
7884 /*)
7885 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7886 ;;
7887 *)
7888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7889 for ac_dir in $PATH; do
7890 test -z "$ac_dir" && ac_dir=.
7891 if test -f $ac_dir/$ac_word; then
7892 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7893 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7894 break
7895 fi
7896 fi
7897 done
7898 IFS="$ac_save_ifs"
7899 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7900 ;;
7901 esac
7902 fi
7903 MSGFMT="$ac_cv_path_MSGFMT"
7904 if test -n "$MSGFMT"; then
7905 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7906 echo "${ECHO_T}$MSGFMT" >&6
7907 else
7908 echo "$as_me:$LINENO: result: no" >&5
7909 echo "${ECHO_T}no" >&6
7910 fi
7911
7912 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7913 set dummy gmsgfmt; ac_word=$2
7914 echo "$as_me:$LINENO: checking for $ac_word" >&5
7915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7916 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919 case $GMSGFMT in
7920 [\\/]* | ?:[\\/]*)
7921 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7922 ;;
7923 *)
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7934 fi
7935 done
7936 done
7937
7938 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7939 ;;
7940 esac
7941 fi
7942 GMSGFMT=$ac_cv_path_GMSGFMT
7943
7944 if test -n "$GMSGFMT"; then
7945 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7946 echo "${ECHO_T}$GMSGFMT" >&6
7947 else
7948 echo "$as_me:$LINENO: result: no" >&5
7949 echo "${ECHO_T}no" >&6
7950 fi
7951
7952 # Extract the first word of "xgettext", so it can be a program name with args.
7953 set dummy xgettext; ac_word=$2
7954 echo "$as_me:$LINENO: checking for $ac_word" >&5
7955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7956 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 else
7959 case "$XGETTEXT" in
7960 /*)
7961 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7962 ;;
7963 *)
7964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7965 for ac_dir in $PATH; do
7966 test -z "$ac_dir" && ac_dir=.
7967 if test -f $ac_dir/$ac_word; then
7968 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7969 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7970 break
7971 fi
7972 fi
7973 done
7974 IFS="$ac_save_ifs"
7975 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7976 ;;
7977 esac
7978 fi
7979 XGETTEXT="$ac_cv_path_XGETTEXT"
7980 if test -n "$XGETTEXT"; then
7981 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7982 echo "${ECHO_T}$XGETTEXT" >&6
7983 else
7984 echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6
7986 fi
7987
7988
7989 USE_INCLUDED_LIBINTL=yes
7990 CATOBJEXT=.gmo
7991 INSTOBJEXT=.mo
7992 DATADIRNAME=share
7993 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7994 INTLLIBS=$INTLDEPS
7995 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7996 nls_cv_header_intl=libintl.h
7997 nls_cv_header_libgt=libgettext.h
7998 fi
7999
8000 if test "$XGETTEXT" != ":"; then
8001 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8002 : ;
8003 else
8004 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8005 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8006 XGETTEXT=":"
8007 fi
8008 fi
8009
8010 # We need to process the po/ directory.
8011 POSUB=po
8012 else
8013 DATADIRNAME=share
8014 nls_cv_header_intl=libintl.h
8015 nls_cv_header_libgt=libgettext.h
8016 fi
8017
8018 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8019 # because some of the sources are only built for this goal.
8020 if test "$PACKAGE" = gettext; then
8021 USE_NLS=yes
8022 USE_INCLUDED_LIBINTL=yes
8023 fi
8024
8025 for lang in $ALL_LINGUAS; do
8026 GMOFILES="$GMOFILES $lang.gmo"
8027 POFILES="$POFILES $lang.po"
8028 done
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041 if test "x$CATOBJEXT" != "x"; then
8042
8043 cat >>confdefs.h <<\_ACEOF
8044 #define ENABLE_NLS 1
8045 _ACEOF
8046
8047 fi
8048
8049
8050 if test "x$CATOBJEXT" != "x"; then
8051 if test "x$ALL_LINGUAS" = "x"; then
8052 LINGUAS=
8053 else
8054 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8055 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8056 NEW_LINGUAS=
8057 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8058 case "$ALL_LINGUAS" in
8059 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8060 esac
8061 done
8062 LINGUAS=$NEW_LINGUAS
8063 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8064 echo "${ECHO_T}$LINGUAS" >&6
8065 fi
8066
8067 if test -n "$LINGUAS"; then
8068 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8069 fi
8070 fi
8071
8072 if test $ac_cv_header_locale_h = yes; then
8073 INCLUDE_LOCALE_H="#include <locale.h>"
8074 else
8075 INCLUDE_LOCALE_H="\
8076 /* The system does not provide the header <locale.h>. Take care yourself. */"
8077 fi
8078
8079
8080 if test -f $srcdir/po2tbl.sed.in; then
8081 if test "$CATOBJEXT" = ".cat"; then
8082 if test "${ac_cv_header_linux_version_h+set}" = set; then
8083 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8084 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8085 if test "${ac_cv_header_linux_version_h+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 fi
8088 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8089 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8090 else
8091 # Is the header compilable?
8092 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8093 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8094 cat >conftest.$ac_ext <<_ACEOF
8095 /* confdefs.h. */
8096 _ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8100 $ac_includes_default
8101 #include <linux/version.h>
8102 _ACEOF
8103 rm -f conftest.$ac_objext
8104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8105 (eval $ac_compile) 2>conftest.er1
8106 ac_status=$?
8107 grep -v '^ *+' conftest.er1 >conftest.err
8108 rm -f conftest.er1
8109 cat conftest.err >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } &&
8112 { ac_try='test -z "$ac_c_werror_flag"
8113 || test ! -s conftest.err'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 (eval $ac_try) 2>&5
8116 ac_status=$?
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; } &&
8119 { ac_try='test -s conftest.$ac_objext'
8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121 (eval $ac_try) 2>&5
8122 ac_status=$?
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; }; then
8125 ac_header_compiler=yes
8126 else
8127 echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8129
8130 ac_header_compiler=no
8131 fi
8132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8134 echo "${ECHO_T}$ac_header_compiler" >&6
8135
8136 # Is the header present?
8137 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8138 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8139 cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h. */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8145 #include <linux/version.h>
8146 _ACEOF
8147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8149 ac_status=$?
8150 grep -v '^ *+' conftest.er1 >conftest.err
8151 rm -f conftest.er1
8152 cat conftest.err >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } >/dev/null; then
8155 if test -s conftest.err; then
8156 ac_cpp_err=$ac_c_preproc_warn_flag
8157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8158 else
8159 ac_cpp_err=
8160 fi
8161 else
8162 ac_cpp_err=yes
8163 fi
8164 if test -z "$ac_cpp_err"; then
8165 ac_header_preproc=yes
8166 else
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8169
8170 ac_header_preproc=no
8171 fi
8172 rm -f conftest.err conftest.$ac_ext
8173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8174 echo "${ECHO_T}$ac_header_preproc" >&6
8175
8176 # So? What about this header?
8177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8178 yes:no: )
8179 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8180 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8181 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8182 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8183 ac_header_preproc=yes
8184 ;;
8185 no:yes:* )
8186 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8187 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8188 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8189 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8190 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8191 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8193 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8194 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8195 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8196 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8197 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8198 (
8199 cat <<\_ASBOX
8200 ## ------------------------------------------ ##
8201 ## Report this to the AC_PACKAGE_NAME lists. ##
8202 ## ------------------------------------------ ##
8203 _ASBOX
8204 ) |
8205 sed "s/^/$as_me: WARNING: /" >&2
8206 ;;
8207 esac
8208 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8209 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8210 if test "${ac_cv_header_linux_version_h+set}" = set; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 else
8213 ac_cv_header_linux_version_h=$ac_header_preproc
8214 fi
8215 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8216 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8217
8218 fi
8219 if test $ac_cv_header_linux_version_h = yes; then
8220 msgformat=linux
8221 else
8222 msgformat=xopen
8223 fi
8224
8225
8226
8227 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8228 fi
8229 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8230 $srcdir/po2tbl.sed.in > po2tbl.sed
8231 fi
8232
8233 if test "$PACKAGE" = "gettext"; then
8234 GT_NO="#NO#"
8235 GT_YES=
8236 else
8237 GT_NO=
8238 GT_YES="#YES#"
8239 fi
8240
8241
8242
8243 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8244
8245
8246 l=
8247
8248
8249 if test -f $srcdir/po/POTFILES.in; then
8250 test -d po || mkdir po
8251 if test "x$srcdir" != "x."; then
8252 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8253 posrcprefix="$srcdir/"
8254 else
8255 posrcprefix="../$srcdir/"
8256 fi
8257 else
8258 posrcprefix="../"
8259 fi
8260 rm -f po/POTFILES
8261 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8262 < $srcdir/po/POTFILES.in > po/POTFILES
8263 fi
8264
8265
8266 . ${srcdir}/../bfd/configure.host
8267
8268 # Put a plausible default for CC_FOR_BUILD in Makefile.
8269 if test -z "$CC_FOR_BUILD"; then
8270 if test "x$cross_compiling" = "xno"; then
8271 CC_FOR_BUILD='$(CC)'
8272 else
8273 CC_FOR_BUILD=gcc
8274 fi
8275 fi
8276
8277 # Also set EXEEXT_FOR_BUILD.
8278 if test "x$cross_compiling" = "xno"; then
8279 EXEEXT_FOR_BUILD='$(EXEEXT)'
8280 else
8281 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8282 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8283 if test "${bfd_cv_build_exeext+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8285 else
8286 rm -f conftest*
8287 echo 'int main () { return 0; }' > conftest.c
8288 bfd_cv_build_exeext=
8289 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8290 for file in conftest.*; do
8291 case $file in
8292 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8293 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8294 esac
8295 done
8296 rm -f conftest*
8297 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8298 fi
8299 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8300 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
8301 EXEEXT_FOR_BUILD=""
8302 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8303 fi
8304
8305
8306
8307 # Find a good install program. We prefer a C program (faster),
8308 # so one script is as good as another. But avoid the broken or
8309 # incompatible versions:
8310 # SysV /etc/install, /usr/sbin/install
8311 # SunOS /usr/etc/install
8312 # IRIX /sbin/install
8313 # AIX /bin/install
8314 # AmigaOS /C/install, which installs bootblocks on floppy discs
8315 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8316 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8317 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8318 # OS/2's system install, which has a completely different semantic
8319 # ./install, which can be erroneously created by make from ./install.sh.
8320 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8321 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8322 if test -z "$INSTALL"; then
8323 if test "${ac_cv_path_install+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8328 do
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
8331 # Account for people who put trailing slashes in PATH elements.
8332 case $as_dir/ in
8333 ./ | .// | /cC/* | \
8334 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8335 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8336 /usr/ucb/* ) ;;
8337 *)
8338 # OSF1 and SCO ODT 3.0 have their own names for install.
8339 # Don't use installbsd from OSF since it installs stuff as root
8340 # by default.
8341 for ac_prog in ginstall scoinst install; do
8342 for ac_exec_ext in '' $ac_executable_extensions; do
8343 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8344 if test $ac_prog = install &&
8345 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8346 # AIX install. It has an incompatible calling convention.
8347 :
8348 elif test $ac_prog = install &&
8349 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8350 # program-specific install script used by HP pwplus--don't use.
8351 :
8352 else
8353 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8354 break 3
8355 fi
8356 fi
8357 done
8358 done
8359 ;;
8360 esac
8361 done
8362
8363
8364 fi
8365 if test "${ac_cv_path_install+set}" = set; then
8366 INSTALL=$ac_cv_path_install
8367 else
8368 # As a last resort, use the slow shell script. We don't cache a
8369 # path for INSTALL within a source directory, because that will
8370 # break other packages using the cache if that directory is
8371 # removed, or if the path is relative.
8372 INSTALL=$ac_install_sh
8373 fi
8374 fi
8375 echo "$as_me:$LINENO: result: $INSTALL" >&5
8376 echo "${ECHO_T}$INSTALL" >&6
8377
8378 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8379 # It thinks the first close brace ends the variable substitution.
8380 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8381
8382 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8383
8384 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8385
8386
8387
8388
8389
8390 for ac_header in string.h strings.h stdlib.h
8391 do
8392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8394 echo "$as_me:$LINENO: checking for $ac_header" >&5
8395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 fi
8399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8401 else
8402 # Is the header compilable?
8403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8405 cat >conftest.$ac_ext <<_ACEOF
8406 /* confdefs.h. */
8407 _ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8411 $ac_includes_default
8412 #include <$ac_header>
8413 _ACEOF
8414 rm -f conftest.$ac_objext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416 (eval $ac_compile) 2>conftest.er1
8417 ac_status=$?
8418 grep -v '^ *+' conftest.er1 >conftest.err
8419 rm -f conftest.er1
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag"
8424 || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try='test -s conftest.$ac_objext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 (eval $ac_try) 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 ac_header_compiler=yes
8437 else
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8440
8441 ac_header_compiler=no
8442 fi
8443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8445 echo "${ECHO_T}$ac_header_compiler" >&6
8446
8447 # Is the header present?
8448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8450 cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h. */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 #include <$ac_header>
8457 _ACEOF
8458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8460 ac_status=$?
8461 grep -v '^ *+' conftest.er1 >conftest.err
8462 rm -f conftest.er1
8463 cat conftest.err >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } >/dev/null; then
8466 if test -s conftest.err; then
8467 ac_cpp_err=$ac_c_preproc_warn_flag
8468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8469 else
8470 ac_cpp_err=
8471 fi
8472 else
8473 ac_cpp_err=yes
8474 fi
8475 if test -z "$ac_cpp_err"; then
8476 ac_header_preproc=yes
8477 else
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8480
8481 ac_header_preproc=no
8482 fi
8483 rm -f conftest.err conftest.$ac_ext
8484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8485 echo "${ECHO_T}$ac_header_preproc" >&6
8486
8487 # So? What about this header?
8488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8489 yes:no: )
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8494 ac_header_preproc=yes
8495 ;;
8496 no:yes:* )
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8509 (
8510 cat <<\_ASBOX
8511 ## ------------------------------------------ ##
8512 ## Report this to the AC_PACKAGE_NAME lists. ##
8513 ## ------------------------------------------ ##
8514 _ASBOX
8515 ) |
8516 sed "s/^/$as_me: WARNING: /" >&2
8517 ;;
8518 esac
8519 echo "$as_me:$LINENO: checking for $ac_header" >&5
8520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524 eval "$as_ac_Header=\$ac_header_preproc"
8525 fi
8526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8528
8529 fi
8530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8531 cat >>confdefs.h <<_ACEOF
8532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8533 _ACEOF
8534
8535 fi
8536
8537 done
8538
8539
8540 echo "$as_me:$LINENO: checking whether basename is declared" >&5
8541 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
8542 if test "${ac_cv_have_decl_basename+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545 cat >conftest.$ac_ext <<_ACEOF
8546 /* confdefs.h. */
8547 _ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h. */
8551 $ac_includes_default
8552 int
8553 main ()
8554 {
8555 #ifndef basename
8556 char *p = (char *) basename;
8557 #endif
8558
8559 ;
8560 return 0;
8561 }
8562 _ACEOF
8563 rm -f conftest.$ac_objext
8564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8565 (eval $ac_compile) 2>conftest.er1
8566 ac_status=$?
8567 grep -v '^ *+' conftest.er1 >conftest.err
8568 rm -f conftest.er1
8569 cat conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } &&
8572 { ac_try='test -z "$ac_c_werror_flag"
8573 || test ! -s conftest.err'
8574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575 (eval $ac_try) 2>&5
8576 ac_status=$?
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); }; } &&
8579 { ac_try='test -s conftest.$ac_objext'
8580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581 (eval $ac_try) 2>&5
8582 ac_status=$?
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }; }; then
8585 ac_cv_have_decl_basename=yes
8586 else
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8589
8590 ac_cv_have_decl_basename=no
8591 fi
8592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8593 fi
8594 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
8595 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
8596 if test $ac_cv_have_decl_basename = yes; then
8597
8598 cat >>confdefs.h <<_ACEOF
8599 #define HAVE_DECL_BASENAME 1
8600 _ACEOF
8601
8602
8603 else
8604 cat >>confdefs.h <<_ACEOF
8605 #define HAVE_DECL_BASENAME 0
8606 _ACEOF
8607
8608
8609 fi
8610
8611
8612
8613 cgen_maint=no
8614 cgendir='$(srcdir)/../cgen'
8615
8616 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
8617 if test "${enable_cgen_maint+set}" = set; then
8618 enableval="$enable_cgen_maint"
8619 case "${enableval}" in
8620 yes) cgen_maint=yes ;;
8621 no) cgen_maint=no ;;
8622 *)
8623 # argument is cgen install directory (not implemented yet).
8624 # Having a `share' directory might be more appropriate for the .scm,
8625 # .cpu, etc. files.
8626 cgen_maint=yes
8627 cgendir=${cgen_maint}/lib/cgen
8628 ;;
8629 esac
8630 fi;
8631
8632 if test x${cgen_maint} = xyes; then
8633 CGEN_MAINT_TRUE=
8634 CGEN_MAINT_FALSE='#'
8635 else
8636 CGEN_MAINT_TRUE='#'
8637 CGEN_MAINT_FALSE=
8638 fi
8639
8640
8641
8642 using_cgen=no
8643
8644 # Horrible hacks to build DLLs on Windows.
8645 WIN32LDFLAGS=
8646 WIN32LIBADD=
8647 case "${host}" in
8648 *-*-cygwin*)
8649 if test "$enable_shared" = "yes"; then
8650 WIN32LDFLAGS="-no-undefined"
8651 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
8652 fi
8653 ;;
8654 esac
8655
8656
8657
8658 # target-specific stuff:
8659
8660 # Canonicalize the secondary target names.
8661 if test -n "$enable_targets" ; then
8662 for targ in `echo $enable_targets | sed 's/,/ /g'`
8663 do
8664 result=`$ac_config_sub $targ 2>/dev/null`
8665 if test -n "$result" ; then
8666 canon_targets="$canon_targets $result"
8667 else
8668 # Allow targets that config.sub doesn't recognize, like "all".
8669 canon_targets="$canon_targets $targ"
8670 fi
8671 done
8672 fi
8673
8674 all_targets=false
8675 selarchs=
8676 for targ in $target $canon_targets
8677 do
8678 if test "x$targ" = "xall" ; then
8679 all_targets=true
8680 else
8681 . $srcdir/../bfd/config.bfd
8682 selarchs="$selarchs $targ_archs"
8683 fi
8684 done
8685
8686 # Utility var, documents generic cgen support files.
8687
8688 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
8689
8690 # We don't do any links based on the target system, just makefile config.
8691
8692 if test x${all_targets} = xfalse ; then
8693
8694 # Target architecture .o files.
8695 ta=
8696
8697 for arch in $selarchs
8698 do
8699 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
8700 archdefs="$archdefs -DARCH_$ad"
8701 case "$arch" in
8702 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
8703 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
8704 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
8705 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
8706 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
8707 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
8708 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
8709 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
8710 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
8711 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
8712 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
8713 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
8714 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
8715 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
8716 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
8717 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
8718 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
8719 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
8720 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
8721 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
8722 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
8723 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
8724 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
8725 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
8726 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
8727 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
8728 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
8729 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
8730 bfd_maxq_arch) ta="$ta maxq-dis.lo" ;;
8731 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
8732 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
8733 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
8734 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
8735 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
8736 bfd_ms1_arch) ta="$ta ms1-asm.lo ms1-desc.lo ms1-dis.lo ms1-ibld.lo ms1-opc.lo" using_cgen=yes ;;
8737 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
8738 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
8739 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
8740 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
8741 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
8742 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
8743 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
8744 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
8745 bfd_pyramid_arch) ;;
8746 bfd_romp_arch) ;;
8747 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
8748 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
8749 bfd_sh_arch)
8750 # We can't decide what we want just from the CPU family.
8751 # We want SH5 support unless a specific version of sh is
8752 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
8753 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
8754 for t in $target $canon_targets; do
8755 case $t in
8756 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
8757 sh-*-linux* | shl-*-linux*)
8758 ta="$ta sh64-dis.lo sh64-opc.lo"
8759 archdefs="$archdefs -DINCLUDE_SHMEDIA"
8760 break;;
8761 esac;
8762 done
8763 ta="$ta sh-dis.lo" ;;
8764 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
8765 bfd_tahoe_arch) ;;
8766 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
8767 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
8768 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
8769 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
8770 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8771 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8772 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8773 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
8774 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
8775 bfd_we32k_arch) ;;
8776 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
8777 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
8778 bfd_z80_arch) ta="$ta z80-dis.lo" ;;
8779 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
8780
8781 "") ;;
8782 *) { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
8783 echo "$as_me: error: *** unknown target architecture $arch" >&2;}
8784 { (exit 1); exit 1; }; } ;;
8785 esac
8786 done
8787
8788 if test $using_cgen = yes ; then
8789 ta="$ta $cgen_files"
8790 fi
8791
8792 # Weed out duplicate .o files.
8793 f=""
8794 for i in $ta ; do
8795 case " $f " in
8796 *" $i "*) ;;
8797 *) f="$f $i" ;;
8798 esac
8799 done
8800 ta="$f"
8801
8802 # And duplicate -D flags.
8803 f=""
8804 for i in $archdefs ; do
8805 case " $f " in
8806 *" $i "*) ;;
8807 *) f="$f $i" ;;
8808 esac
8809 done
8810 archdefs="$f"
8811
8812 BFD_MACHINES="$ta"
8813
8814 else # all_targets is true
8815 archdefs=-DARCH_all
8816 BFD_MACHINES='$(ALL_MACHINES)'
8817 fi
8818
8819
8820
8821
8822 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
8823
8824 ac_config_commands="$ac_config_commands default"
8825
8826 cat >confcache <<\_ACEOF
8827 # This file is a shell script that caches the results of configure
8828 # tests run on this system so they can be shared between configure
8829 # scripts and configure runs, see configure's option --config-cache.
8830 # It is not useful on other systems. If it contains results you don't
8831 # want to keep, you may remove or edit it.
8832 #
8833 # config.status only pays attention to the cache file if you give it
8834 # the --recheck option to rerun configure.
8835 #
8836 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8837 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8838 # following values.
8839
8840 _ACEOF
8841
8842 # The following way of writing the cache mishandles newlines in values,
8843 # but we know of no workaround that is simple, portable, and efficient.
8844 # So, don't put newlines in cache variables' values.
8845 # Ultrix sh set writes to stderr and can't be redirected directly,
8846 # and sets the high bit in the cache file unless we assign to the vars.
8847 {
8848 (set) 2>&1 |
8849 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8850 *ac_space=\ *)
8851 # `set' does not quote correctly, so add quotes (double-quote
8852 # substitution turns \\\\ into \\, and sed turns \\ into \).
8853 sed -n \
8854 "s/'/'\\\\''/g;
8855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8856 ;;
8857 *)
8858 # `set' quotes correctly as required by POSIX, so do not add quotes.
8859 sed -n \
8860 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8861 ;;
8862 esac;
8863 } |
8864 sed '
8865 t clear
8866 : clear
8867 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8868 t end
8869 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8870 : end' >>confcache
8871 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8872 if test -w $cache_file; then
8873 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8874 cat confcache >$cache_file
8875 else
8876 echo "not updating unwritable cache $cache_file"
8877 fi
8878 fi
8879 rm -f confcache
8880
8881 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8882 # Let make expand exec_prefix.
8883 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8884
8885 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8886 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8887 # trailing colons and then remove the whole line if VPATH becomes empty
8888 # (actually we leave an empty line to preserve line numbers).
8889 if test "x$srcdir" = x.; then
8890 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8891 s/:*\$(srcdir):*/:/;
8892 s/:*\${srcdir}:*/:/;
8893 s/:*@srcdir@:*/:/;
8894 s/^\([^=]*=[ ]*\):*/\1/;
8895 s/:*$//;
8896 s/^[^=]*=[ ]*$//;
8897 }'
8898 fi
8899
8900 DEFS=-DHAVE_CONFIG_H
8901
8902 ac_libobjs=
8903 ac_ltlibobjs=
8904 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8905 # 1. Remove the extension, and $U if already installed.
8906 ac_i=`echo "$ac_i" |
8907 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8908 # 2. Add them.
8909 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8910 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8911 done
8912 LIBOBJS=$ac_libobjs
8913
8914 LTLIBOBJS=$ac_ltlibobjs
8915
8916
8917 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8918 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8919 Usually this means the macro was only invoked conditionally." >&5
8920 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8921 Usually this means the macro was only invoked conditionally." >&2;}
8922 { (exit 1); exit 1; }; }
8923 fi
8924 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8925 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8926 Usually this means the macro was only invoked conditionally." >&5
8927 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8928 Usually this means the macro was only invoked conditionally." >&2;}
8929 { (exit 1); exit 1; }; }
8930 fi
8931 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8932 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8933 Usually this means the macro was only invoked conditionally." >&5
8934 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8935 Usually this means the macro was only invoked conditionally." >&2;}
8936 { (exit 1); exit 1; }; }
8937 fi
8938 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
8939 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
8940 Usually this means the macro was only invoked conditionally." >&5
8941 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
8942 Usually this means the macro was only invoked conditionally." >&2;}
8943 { (exit 1); exit 1; }; }
8944 fi
8945 if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
8946 { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined.
8947 Usually this means the macro was only invoked conditionally." >&5
8948 echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined.
8949 Usually this means the macro was only invoked conditionally." >&2;}
8950 { (exit 1); exit 1; }; }
8951 fi
8952
8953 : ${CONFIG_STATUS=./config.status}
8954 ac_clean_files_save=$ac_clean_files
8955 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8956 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8957 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8958 cat >$CONFIG_STATUS <<_ACEOF
8959 #! $SHELL
8960 # Generated by $as_me.
8961 # Run this file to recreate the current configuration.
8962 # Compiler output produced by configure, useful for debugging
8963 # configure, is in config.log if it exists.
8964
8965 debug=false
8966 ac_cs_recheck=false
8967 ac_cs_silent=false
8968 SHELL=\${CONFIG_SHELL-$SHELL}
8969 _ACEOF
8970
8971 cat >>$CONFIG_STATUS <<\_ACEOF
8972 ## --------------------- ##
8973 ## M4sh Initialization. ##
8974 ## --------------------- ##
8975
8976 # Be Bourne compatible
8977 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8978 emulate sh
8979 NULLCMD=:
8980 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8981 # is contrary to our usage. Disable this feature.
8982 alias -g '${1+"$@"}'='"$@"'
8983 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8984 set -o posix
8985 fi
8986 DUALCASE=1; export DUALCASE # for MKS sh
8987
8988 # Support unset when possible.
8989 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8990 as_unset=unset
8991 else
8992 as_unset=false
8993 fi
8994
8995
8996 # Work around bugs in pre-3.0 UWIN ksh.
8997 $as_unset ENV MAIL MAILPATH
8998 PS1='$ '
8999 PS2='> '
9000 PS4='+ '
9001
9002 # NLS nuisances.
9003 for as_var in \
9004 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9005 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9006 LC_TELEPHONE LC_TIME
9007 do
9008 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9009 eval $as_var=C; export $as_var
9010 else
9011 $as_unset $as_var
9012 fi
9013 done
9014
9015 # Required to use basename.
9016 if expr a : '\(a\)' >/dev/null 2>&1; then
9017 as_expr=expr
9018 else
9019 as_expr=false
9020 fi
9021
9022 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9023 as_basename=basename
9024 else
9025 as_basename=false
9026 fi
9027
9028
9029 # Name of the executable.
9030 as_me=`$as_basename "$0" ||
9031 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9032 X"$0" : 'X\(//\)$' \| \
9033 X"$0" : 'X\(/\)$' \| \
9034 . : '\(.\)' 2>/dev/null ||
9035 echo X/"$0" |
9036 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9037 /^X\/\(\/\/\)$/{ s//\1/; q; }
9038 /^X\/\(\/\).*/{ s//\1/; q; }
9039 s/.*/./; q'`
9040
9041
9042 # PATH needs CR, and LINENO needs CR and PATH.
9043 # Avoid depending upon Character Ranges.
9044 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9045 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9046 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9047 as_cr_digits='0123456789'
9048 as_cr_alnum=$as_cr_Letters$as_cr_digits
9049
9050 # The user is always right.
9051 if test "${PATH_SEPARATOR+set}" != set; then
9052 echo "#! /bin/sh" >conf$$.sh
9053 echo "exit 0" >>conf$$.sh
9054 chmod +x conf$$.sh
9055 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9056 PATH_SEPARATOR=';'
9057 else
9058 PATH_SEPARATOR=:
9059 fi
9060 rm -f conf$$.sh
9061 fi
9062
9063
9064 as_lineno_1=$LINENO
9065 as_lineno_2=$LINENO
9066 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9067 test "x$as_lineno_1" != "x$as_lineno_2" &&
9068 test "x$as_lineno_3" = "x$as_lineno_2" || {
9069 # Find who we are. Look in the path if we contain no path at all
9070 # relative or not.
9071 case $0 in
9072 *[\\/]* ) as_myself=$0 ;;
9073 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074 for as_dir in $PATH
9075 do
9076 IFS=$as_save_IFS
9077 test -z "$as_dir" && as_dir=.
9078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9079 done
9080
9081 ;;
9082 esac
9083 # We did not find ourselves, most probably we were run as `sh COMMAND'
9084 # in which case we are not to be found in the path.
9085 if test "x$as_myself" = x; then
9086 as_myself=$0
9087 fi
9088 if test ! -f "$as_myself"; then
9089 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9090 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9091 { (exit 1); exit 1; }; }
9092 fi
9093 case $CONFIG_SHELL in
9094 '')
9095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9097 do
9098 IFS=$as_save_IFS
9099 test -z "$as_dir" && as_dir=.
9100 for as_base in sh bash ksh sh5; do
9101 case $as_dir in
9102 /*)
9103 if ("$as_dir/$as_base" -c '
9104 as_lineno_1=$LINENO
9105 as_lineno_2=$LINENO
9106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9107 test "x$as_lineno_1" != "x$as_lineno_2" &&
9108 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9109 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9110 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9111 CONFIG_SHELL=$as_dir/$as_base
9112 export CONFIG_SHELL
9113 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9114 fi;;
9115 esac
9116 done
9117 done
9118 ;;
9119 esac
9120
9121 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9122 # uniformly replaced by the line number. The first 'sed' inserts a
9123 # line-number line before each line; the second 'sed' does the real
9124 # work. The second script uses 'N' to pair each line-number line
9125 # with the numbered line, and appends trailing '-' during
9126 # substitution so that $LINENO is not a special case at line end.
9127 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9128 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9129 sed '=' <$as_myself |
9130 sed '
9131 N
9132 s,$,-,
9133 : loop
9134 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9135 t loop
9136 s,-$,,
9137 s,^['$as_cr_digits']*\n,,
9138 ' >$as_me.lineno &&
9139 chmod +x $as_me.lineno ||
9140 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9141 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9142 { (exit 1); exit 1; }; }
9143
9144 # Don't try to exec as it changes $[0], causing all sort of problems
9145 # (the dirname of $[0] is not the place where we might find the
9146 # original and so on. Autoconf is especially sensible to this).
9147 . ./$as_me.lineno
9148 # Exit status is that of the last command.
9149 exit
9150 }
9151
9152
9153 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9154 *c*,-n*) ECHO_N= ECHO_C='
9155 ' ECHO_T=' ' ;;
9156 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9157 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9158 esac
9159
9160 if expr a : '\(a\)' >/dev/null 2>&1; then
9161 as_expr=expr
9162 else
9163 as_expr=false
9164 fi
9165
9166 rm -f conf$$ conf$$.exe conf$$.file
9167 echo >conf$$.file
9168 if ln -s conf$$.file conf$$ 2>/dev/null; then
9169 # We could just check for DJGPP; but this test a) works b) is more generic
9170 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9171 if test -f conf$$.exe; then
9172 # Don't use ln at all; we don't have any links
9173 as_ln_s='cp -p'
9174 else
9175 as_ln_s='ln -s'
9176 fi
9177 elif ln conf$$.file conf$$ 2>/dev/null; then
9178 as_ln_s=ln
9179 else
9180 as_ln_s='cp -p'
9181 fi
9182 rm -f conf$$ conf$$.exe conf$$.file
9183
9184 if mkdir -p . 2>/dev/null; then
9185 as_mkdir_p=:
9186 else
9187 test -d ./-p && rmdir ./-p
9188 as_mkdir_p=false
9189 fi
9190
9191 as_executable_p="test -f"
9192
9193 # Sed expression to map a string onto a valid CPP name.
9194 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9195
9196 # Sed expression to map a string onto a valid variable name.
9197 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9198
9199
9200 # IFS
9201 # We need space, tab and new line, in precisely that order.
9202 as_nl='
9203 '
9204 IFS=" $as_nl"
9205
9206 # CDPATH.
9207 $as_unset CDPATH
9208
9209 exec 6>&1
9210
9211 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9212 # report actual input values of CONFIG_FILES etc. instead of their
9213 # values after options handling. Logging --version etc. is OK.
9214 exec 5>>config.log
9215 {
9216 echo
9217 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9218 ## Running $as_me. ##
9219 _ASBOX
9220 } >&5
9221 cat >&5 <<_CSEOF
9222
9223 This file was extended by $as_me, which was
9224 generated by GNU Autoconf 2.59. Invocation command line was
9225
9226 CONFIG_FILES = $CONFIG_FILES
9227 CONFIG_HEADERS = $CONFIG_HEADERS
9228 CONFIG_LINKS = $CONFIG_LINKS
9229 CONFIG_COMMANDS = $CONFIG_COMMANDS
9230 $ $0 $@
9231
9232 _CSEOF
9233 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9234 echo >&5
9235 _ACEOF
9236
9237 # Files that config.status was made for.
9238 if test -n "$ac_config_files"; then
9239 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9240 fi
9241
9242 if test -n "$ac_config_headers"; then
9243 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9244 fi
9245
9246 if test -n "$ac_config_links"; then
9247 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9248 fi
9249
9250 if test -n "$ac_config_commands"; then
9251 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9252 fi
9253
9254 cat >>$CONFIG_STATUS <<\_ACEOF
9255
9256 ac_cs_usage="\
9257 \`$as_me' instantiates files from templates according to the
9258 current configuration.
9259
9260 Usage: $0 [OPTIONS] [FILE]...
9261
9262 -h, --help print this help, then exit
9263 -V, --version print version number, then exit
9264 -q, --quiet do not print progress messages
9265 -d, --debug don't remove temporary files
9266 --recheck update $as_me by reconfiguring in the same conditions
9267 --file=FILE[:TEMPLATE]
9268 instantiate the configuration file FILE
9269 --header=FILE[:TEMPLATE]
9270 instantiate the configuration header FILE
9271
9272 Configuration files:
9273 $config_files
9274
9275 Configuration headers:
9276 $config_headers
9277
9278 Configuration commands:
9279 $config_commands
9280
9281 Report bugs to <bug-autoconf@gnu.org>."
9282 _ACEOF
9283
9284 cat >>$CONFIG_STATUS <<_ACEOF
9285 ac_cs_version="\\
9286 config.status
9287 configured by $0, generated by GNU Autoconf 2.59,
9288 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9289
9290 Copyright (C) 2003 Free Software Foundation, Inc.
9291 This config.status script is free software; the Free Software Foundation
9292 gives unlimited permission to copy, distribute and modify it."
9293 srcdir=$srcdir
9294 INSTALL="$INSTALL"
9295 _ACEOF
9296
9297 cat >>$CONFIG_STATUS <<\_ACEOF
9298 # If no file are specified by the user, then we need to provide default
9299 # value. By we need to know if files were specified by the user.
9300 ac_need_defaults=:
9301 while test $# != 0
9302 do
9303 case $1 in
9304 --*=*)
9305 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9306 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9307 ac_shift=:
9308 ;;
9309 -*)
9310 ac_option=$1
9311 ac_optarg=$2
9312 ac_shift=shift
9313 ;;
9314 *) # This is not an option, so the user has probably given explicit
9315 # arguments.
9316 ac_option=$1
9317 ac_need_defaults=false;;
9318 esac
9319
9320 case $ac_option in
9321 # Handling of the options.
9322 _ACEOF
9323 cat >>$CONFIG_STATUS <<\_ACEOF
9324 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9325 ac_cs_recheck=: ;;
9326 --version | --vers* | -V )
9327 echo "$ac_cs_version"; exit 0 ;;
9328 --he | --h)
9329 # Conflict between --help and --header
9330 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9331 Try \`$0 --help' for more information." >&5
9332 echo "$as_me: error: ambiguous option: $1
9333 Try \`$0 --help' for more information." >&2;}
9334 { (exit 1); exit 1; }; };;
9335 --help | --hel | -h )
9336 echo "$ac_cs_usage"; exit 0 ;;
9337 --debug | --d* | -d )
9338 debug=: ;;
9339 --file | --fil | --fi | --f )
9340 $ac_shift
9341 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9342 ac_need_defaults=false;;
9343 --header | --heade | --head | --hea )
9344 $ac_shift
9345 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9346 ac_need_defaults=false;;
9347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9348 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9349 ac_cs_silent=: ;;
9350
9351 # This is an error.
9352 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9353 Try \`$0 --help' for more information." >&5
9354 echo "$as_me: error: unrecognized option: $1
9355 Try \`$0 --help' for more information." >&2;}
9356 { (exit 1); exit 1; }; } ;;
9357
9358 *) ac_config_targets="$ac_config_targets $1" ;;
9359
9360 esac
9361 shift
9362 done
9363
9364 ac_configure_extra_args=
9365
9366 if $ac_cs_silent; then
9367 exec 6>/dev/null
9368 ac_configure_extra_args="$ac_configure_extra_args --silent"
9369 fi
9370
9371 _ACEOF
9372 cat >>$CONFIG_STATUS <<_ACEOF
9373 if \$ac_cs_recheck; then
9374 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9375 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9376 fi
9377
9378 _ACEOF
9379
9380 cat >>$CONFIG_STATUS <<_ACEOF
9381 #
9382 # INIT-COMMANDS section.
9383 #
9384
9385 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9386
9387
9388 _ACEOF
9389
9390
9391
9392 cat >>$CONFIG_STATUS <<\_ACEOF
9393 for ac_config_target in $ac_config_targets
9394 do
9395 case "$ac_config_target" in
9396 # Handling of arguments.
9397 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9398 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
9399 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9400 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9401 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9402 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9403 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9404 { (exit 1); exit 1; }; };;
9405 esac
9406 done
9407
9408 # If the user did not use the arguments to specify the items to instantiate,
9409 # then the envvar interface is used. Set only those that are not.
9410 # We use the long form for the default assignment because of an extremely
9411 # bizarre bug on SunOS 4.1.3.
9412 if $ac_need_defaults; then
9413 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9414 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9415 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9416 fi
9417
9418 # Have a temporary directory for convenience. Make it in the build tree
9419 # simply because there is no reason to put it here, and in addition,
9420 # creating and moving files from /tmp can sometimes cause problems.
9421 # Create a temporary directory, and hook for its removal unless debugging.
9422 $debug ||
9423 {
9424 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9425 trap '{ (exit 1); exit 1; }' 1 2 13 15
9426 }
9427
9428 # Create a (secure) tmp directory for tmp files.
9429
9430 {
9431 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9432 test -n "$tmp" && test -d "$tmp"
9433 } ||
9434 {
9435 tmp=./confstat$$-$RANDOM
9436 (umask 077 && mkdir $tmp)
9437 } ||
9438 {
9439 echo "$me: cannot create a temporary directory in ." >&2
9440 { (exit 1); exit 1; }
9441 }
9442
9443 _ACEOF
9444
9445 cat >>$CONFIG_STATUS <<_ACEOF
9446
9447 #
9448 # CONFIG_FILES section.
9449 #
9450
9451 # No need to generate the scripts if there are no CONFIG_FILES.
9452 # This happens for instance when ./config.status config.h
9453 if test -n "\$CONFIG_FILES"; then
9454 # Protect against being on the right side of a sed subst in config.status.
9455 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9456 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9457 s,@SHELL@,$SHELL,;t t
9458 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9459 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9460 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9461 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9462 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9463 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9464 s,@exec_prefix@,$exec_prefix,;t t
9465 s,@prefix@,$prefix,;t t
9466 s,@program_transform_name@,$program_transform_name,;t t
9467 s,@bindir@,$bindir,;t t
9468 s,@sbindir@,$sbindir,;t t
9469 s,@libexecdir@,$libexecdir,;t t
9470 s,@datadir@,$datadir,;t t
9471 s,@sysconfdir@,$sysconfdir,;t t
9472 s,@sharedstatedir@,$sharedstatedir,;t t
9473 s,@localstatedir@,$localstatedir,;t t
9474 s,@libdir@,$libdir,;t t
9475 s,@includedir@,$includedir,;t t
9476 s,@oldincludedir@,$oldincludedir,;t t
9477 s,@infodir@,$infodir,;t t
9478 s,@mandir@,$mandir,;t t
9479 s,@build_alias@,$build_alias,;t t
9480 s,@host_alias@,$host_alias,;t t
9481 s,@target_alias@,$target_alias,;t t
9482 s,@DEFS@,$DEFS,;t t
9483 s,@ECHO_C@,$ECHO_C,;t t
9484 s,@ECHO_N@,$ECHO_N,;t t
9485 s,@ECHO_T@,$ECHO_T,;t t
9486 s,@LIBS@,$LIBS,;t t
9487 s,@build@,$build,;t t
9488 s,@build_cpu@,$build_cpu,;t t
9489 s,@build_vendor@,$build_vendor,;t t
9490 s,@build_os@,$build_os,;t t
9491 s,@host@,$host,;t t
9492 s,@host_cpu@,$host_cpu,;t t
9493 s,@host_vendor@,$host_vendor,;t t
9494 s,@host_os@,$host_os,;t t
9495 s,@target@,$target,;t t
9496 s,@target_cpu@,$target_cpu,;t t
9497 s,@target_vendor@,$target_vendor,;t t
9498 s,@target_os@,$target_os,;t t
9499 s,@CC@,$CC,;t t
9500 s,@CFLAGS@,$CFLAGS,;t t
9501 s,@LDFLAGS@,$LDFLAGS,;t t
9502 s,@CPPFLAGS@,$CPPFLAGS,;t t
9503 s,@ac_ct_CC@,$ac_ct_CC,;t t
9504 s,@EXEEXT@,$EXEEXT,;t t
9505 s,@OBJEXT@,$OBJEXT,;t t
9506 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9507 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9508 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9509 s,@CYGPATH_W@,$CYGPATH_W,;t t
9510 s,@PACKAGE@,$PACKAGE,;t t
9511 s,@VERSION@,$VERSION,;t t
9512 s,@ACLOCAL@,$ACLOCAL,;t t
9513 s,@AUTOCONF@,$AUTOCONF,;t t
9514 s,@AUTOMAKE@,$AUTOMAKE,;t t
9515 s,@AUTOHEADER@,$AUTOHEADER,;t t
9516 s,@MAKEINFO@,$MAKEINFO,;t t
9517 s,@install_sh@,$install_sh,;t t
9518 s,@STRIP@,$STRIP,;t t
9519 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9520 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9521 s,@mkdir_p@,$mkdir_p,;t t
9522 s,@AWK@,$AWK,;t t
9523 s,@SET_MAKE@,$SET_MAKE,;t t
9524 s,@am__leading_dot@,$am__leading_dot,;t t
9525 s,@AMTAR@,$AMTAR,;t t
9526 s,@am__tar@,$am__tar,;t t
9527 s,@am__untar@,$am__untar,;t t
9528 s,@DEPDIR@,$DEPDIR,;t t
9529 s,@am__include@,$am__include,;t t
9530 s,@am__quote@,$am__quote,;t t
9531 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9532 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9533 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9534 s,@CCDEPMODE@,$CCDEPMODE,;t t
9535 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9536 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9537 s,@AR@,$AR,;t t
9538 s,@ac_ct_AR@,$ac_ct_AR,;t t
9539 s,@RANLIB@,$RANLIB,;t t
9540 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9541 s,@LN_S@,$LN_S,;t t
9542 s,@LIBTOOL@,$LIBTOOL,;t t
9543 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9544 s,@NO_WERROR@,$NO_WERROR,;t t
9545 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9546 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9547 s,@MAINT@,$MAINT,;t t
9548 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
9549 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
9550 s,@host_noncanonical@,$host_noncanonical,;t t
9551 s,@target_noncanonical@,$target_noncanonical,;t t
9552 s,@bfdlibdir@,$bfdlibdir,;t t
9553 s,@bfdincludedir@,$bfdincludedir,;t t
9554 s,@CPP@,$CPP,;t t
9555 s,@EGREP@,$EGREP,;t t
9556 s,@ALLOCA@,$ALLOCA,;t t
9557 s,@USE_NLS@,$USE_NLS,;t t
9558 s,@MSGFMT@,$MSGFMT,;t t
9559 s,@GMSGFMT@,$GMSGFMT,;t t
9560 s,@XGETTEXT@,$XGETTEXT,;t t
9561 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9562 s,@CATALOGS@,$CATALOGS,;t t
9563 s,@CATOBJEXT@,$CATOBJEXT,;t t
9564 s,@DATADIRNAME@,$DATADIRNAME,;t t
9565 s,@GMOFILES@,$GMOFILES,;t t
9566 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9567 s,@INTLDEPS@,$INTLDEPS,;t t
9568 s,@INTLLIBS@,$INTLLIBS,;t t
9569 s,@INTLOBJS@,$INTLOBJS,;t t
9570 s,@POFILES@,$POFILES,;t t
9571 s,@POSUB@,$POSUB,;t t
9572 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9573 s,@GT_NO@,$GT_NO,;t t
9574 s,@GT_YES@,$GT_YES,;t t
9575 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9576 s,@l@,$l,;t t
9577 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9578 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
9579 s,@HDEFINES@,$HDEFINES,;t t
9580 s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
9581 s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
9582 s,@cgendir@,$cgendir,;t t
9583 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
9584 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
9585 s,@archdefs@,$archdefs,;t t
9586 s,@BFD_MACHINES@,$BFD_MACHINES,;t t
9587 s,@LIBOBJS@,$LIBOBJS,;t t
9588 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9589 CEOF
9590
9591 _ACEOF
9592
9593 cat >>$CONFIG_STATUS <<\_ACEOF
9594 # Split the substitutions into bite-sized pieces for seds with
9595 # small command number limits, like on Digital OSF/1 and HP-UX.
9596 ac_max_sed_lines=48
9597 ac_sed_frag=1 # Number of current file.
9598 ac_beg=1 # First line for current file.
9599 ac_end=$ac_max_sed_lines # Line after last line for current file.
9600 ac_more_lines=:
9601 ac_sed_cmds=
9602 while $ac_more_lines; do
9603 if test $ac_beg -gt 1; then
9604 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9605 else
9606 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9607 fi
9608 if test ! -s $tmp/subs.frag; then
9609 ac_more_lines=false
9610 else
9611 # The purpose of the label and of the branching condition is to
9612 # speed up the sed processing (if there are no `@' at all, there
9613 # is no need to browse any of the substitutions).
9614 # These are the two extra sed commands mentioned above.
9615 (echo ':t
9616 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9617 if test -z "$ac_sed_cmds"; then
9618 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9619 else
9620 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9621 fi
9622 ac_sed_frag=`expr $ac_sed_frag + 1`
9623 ac_beg=$ac_end
9624 ac_end=`expr $ac_end + $ac_max_sed_lines`
9625 fi
9626 done
9627 if test -z "$ac_sed_cmds"; then
9628 ac_sed_cmds=cat
9629 fi
9630 fi # test -n "$CONFIG_FILES"
9631
9632 _ACEOF
9633 cat >>$CONFIG_STATUS <<\_ACEOF
9634 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9635 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9636 case $ac_file in
9637 - | *:- | *:-:* ) # input from stdin
9638 cat >$tmp/stdin
9639 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9640 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9641 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9642 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9643 * ) ac_file_in=$ac_file.in ;;
9644 esac
9645
9646 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9647 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9648 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9649 X"$ac_file" : 'X\(//\)[^/]' \| \
9650 X"$ac_file" : 'X\(//\)$' \| \
9651 X"$ac_file" : 'X\(/\)' \| \
9652 . : '\(.\)' 2>/dev/null ||
9653 echo X"$ac_file" |
9654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9655 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9656 /^X\(\/\/\)$/{ s//\1/; q; }
9657 /^X\(\/\).*/{ s//\1/; q; }
9658 s/.*/./; q'`
9659 { if $as_mkdir_p; then
9660 mkdir -p "$ac_dir"
9661 else
9662 as_dir="$ac_dir"
9663 as_dirs=
9664 while test ! -d "$as_dir"; do
9665 as_dirs="$as_dir $as_dirs"
9666 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9667 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9668 X"$as_dir" : 'X\(//\)[^/]' \| \
9669 X"$as_dir" : 'X\(//\)$' \| \
9670 X"$as_dir" : 'X\(/\)' \| \
9671 . : '\(.\)' 2>/dev/null ||
9672 echo X"$as_dir" |
9673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9674 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9675 /^X\(\/\/\)$/{ s//\1/; q; }
9676 /^X\(\/\).*/{ s//\1/; q; }
9677 s/.*/./; q'`
9678 done
9679 test ! -n "$as_dirs" || mkdir $as_dirs
9680 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9681 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9682 { (exit 1); exit 1; }; }; }
9683
9684 ac_builddir=.
9685
9686 if test "$ac_dir" != .; then
9687 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9688 # A "../" for each directory in $ac_dir_suffix.
9689 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9690 else
9691 ac_dir_suffix= ac_top_builddir=
9692 fi
9693
9694 case $srcdir in
9695 .) # No --srcdir option. We are building in place.
9696 ac_srcdir=.
9697 if test -z "$ac_top_builddir"; then
9698 ac_top_srcdir=.
9699 else
9700 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9701 fi ;;
9702 [\\/]* | ?:[\\/]* ) # Absolute path.
9703 ac_srcdir=$srcdir$ac_dir_suffix;
9704 ac_top_srcdir=$srcdir ;;
9705 *) # Relative path.
9706 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9707 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9708 esac
9709
9710 # Do not use `cd foo && pwd` to compute absolute paths, because
9711 # the directories may not exist.
9712 case `pwd` in
9713 .) ac_abs_builddir="$ac_dir";;
9714 *)
9715 case "$ac_dir" in
9716 .) ac_abs_builddir=`pwd`;;
9717 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9718 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9719 esac;;
9720 esac
9721 case $ac_abs_builddir in
9722 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9723 *)
9724 case ${ac_top_builddir}. in
9725 .) ac_abs_top_builddir=$ac_abs_builddir;;
9726 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9727 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9728 esac;;
9729 esac
9730 case $ac_abs_builddir in
9731 .) ac_abs_srcdir=$ac_srcdir;;
9732 *)
9733 case $ac_srcdir in
9734 .) ac_abs_srcdir=$ac_abs_builddir;;
9735 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9736 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9737 esac;;
9738 esac
9739 case $ac_abs_builddir in
9740 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9741 *)
9742 case $ac_top_srcdir in
9743 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9744 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9745 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9746 esac;;
9747 esac
9748
9749
9750 case $INSTALL in
9751 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9752 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9753 esac
9754
9755 if test x"$ac_file" != x-; then
9756 { echo "$as_me:$LINENO: creating $ac_file" >&5
9757 echo "$as_me: creating $ac_file" >&6;}
9758 rm -f "$ac_file"
9759 fi
9760 # Let's still pretend it is `configure' which instantiates (i.e., don't
9761 # use $as_me), people would be surprised to read:
9762 # /* config.h. Generated by config.status. */
9763 if test x"$ac_file" = x-; then
9764 configure_input=
9765 else
9766 configure_input="$ac_file. "
9767 fi
9768 configure_input=$configure_input"Generated from `echo $ac_file_in |
9769 sed 's,.*/,,'` by configure."
9770
9771 # First look for the input files in the build tree, otherwise in the
9772 # src tree.
9773 ac_file_inputs=`IFS=:
9774 for f in $ac_file_in; do
9775 case $f in
9776 -) echo $tmp/stdin ;;
9777 [\\/$]*)
9778 # Absolute (can't be DOS-style, as IFS=:)
9779 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9780 echo "$as_me: error: cannot find input file: $f" >&2;}
9781 { (exit 1); exit 1; }; }
9782 echo "$f";;
9783 *) # Relative
9784 if test -f "$f"; then
9785 # Build tree
9786 echo "$f"
9787 elif test -f "$srcdir/$f"; then
9788 # Source tree
9789 echo "$srcdir/$f"
9790 else
9791 # /dev/null tree
9792 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9793 echo "$as_me: error: cannot find input file: $f" >&2;}
9794 { (exit 1); exit 1; }; }
9795 fi;;
9796 esac
9797 done` || { (exit 1); exit 1; }
9798 _ACEOF
9799 cat >>$CONFIG_STATUS <<_ACEOF
9800 sed "$ac_vpsub
9801 $extrasub
9802 _ACEOF
9803 cat >>$CONFIG_STATUS <<\_ACEOF
9804 :t
9805 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9806 s,@configure_input@,$configure_input,;t t
9807 s,@srcdir@,$ac_srcdir,;t t
9808 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9809 s,@top_srcdir@,$ac_top_srcdir,;t t
9810 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9811 s,@builddir@,$ac_builddir,;t t
9812 s,@abs_builddir@,$ac_abs_builddir,;t t
9813 s,@top_builddir@,$ac_top_builddir,;t t
9814 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9815 s,@INSTALL@,$ac_INSTALL,;t t
9816 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9817 rm -f $tmp/stdin
9818 if test x"$ac_file" != x-; then
9819 mv $tmp/out $ac_file
9820 else
9821 cat $tmp/out
9822 rm -f $tmp/out
9823 fi
9824
9825 done
9826 _ACEOF
9827 cat >>$CONFIG_STATUS <<\_ACEOF
9828
9829 #
9830 # CONFIG_HEADER section.
9831 #
9832
9833 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9834 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9835 #
9836 # ac_d sets the value in "#define NAME VALUE" lines.
9837 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9838 ac_dB='[ ].*$,\1#\2'
9839 ac_dC=' '
9840 ac_dD=',;t'
9841 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9842 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9843 ac_uB='$,\1#\2define\3'
9844 ac_uC=' '
9845 ac_uD=',;t'
9846
9847 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9848 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9849 case $ac_file in
9850 - | *:- | *:-:* ) # input from stdin
9851 cat >$tmp/stdin
9852 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9853 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9854 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9855 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9856 * ) ac_file_in=$ac_file.in ;;
9857 esac
9858
9859 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9860 echo "$as_me: creating $ac_file" >&6;}
9861
9862 # First look for the input files in the build tree, otherwise in the
9863 # src tree.
9864 ac_file_inputs=`IFS=:
9865 for f in $ac_file_in; do
9866 case $f in
9867 -) echo $tmp/stdin ;;
9868 [\\/$]*)
9869 # Absolute (can't be DOS-style, as IFS=:)
9870 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9871 echo "$as_me: error: cannot find input file: $f" >&2;}
9872 { (exit 1); exit 1; }; }
9873 # Do quote $f, to prevent DOS paths from being IFS'd.
9874 echo "$f";;
9875 *) # Relative
9876 if test -f "$f"; then
9877 # Build tree
9878 echo "$f"
9879 elif test -f "$srcdir/$f"; then
9880 # Source tree
9881 echo "$srcdir/$f"
9882 else
9883 # /dev/null tree
9884 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9885 echo "$as_me: error: cannot find input file: $f" >&2;}
9886 { (exit 1); exit 1; }; }
9887 fi;;
9888 esac
9889 done` || { (exit 1); exit 1; }
9890 # Remove the trailing spaces.
9891 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9892
9893 _ACEOF
9894
9895 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9896 # `conftest.undefs', that substitutes the proper values into
9897 # config.h.in to produce config.h. The first handles `#define'
9898 # templates, and the second `#undef' templates.
9899 # And first: Protect against being on the right side of a sed subst in
9900 # config.status. Protect against being in an unquoted here document
9901 # in config.status.
9902 rm -f conftest.defines conftest.undefs
9903 # Using a here document instead of a string reduces the quoting nightmare.
9904 # Putting comments in sed scripts is not portable.
9905 #
9906 # `end' is used to avoid that the second main sed command (meant for
9907 # 0-ary CPP macros) applies to n-ary macro definitions.
9908 # See the Autoconf documentation for `clear'.
9909 cat >confdef2sed.sed <<\_ACEOF
9910 s/[\\&,]/\\&/g
9911 s,[\\$`],\\&,g
9912 t clear
9913 : clear
9914 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9915 t end
9916 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9917 : end
9918 _ACEOF
9919 # If some macros were called several times there might be several times
9920 # the same #defines, which is useless. Nevertheless, we may not want to
9921 # sort them, since we want the *last* AC-DEFINE to be honored.
9922 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9923 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9924 rm -f confdef2sed.sed
9925
9926 # This sed command replaces #undef with comments. This is necessary, for
9927 # example, in the case of _POSIX_SOURCE, which is predefined and required
9928 # on some systems where configure will not decide to define it.
9929 cat >>conftest.undefs <<\_ACEOF
9930 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9931 _ACEOF
9932
9933 # Break up conftest.defines because some shells have a limit on the size
9934 # of here documents, and old seds have small limits too (100 cmds).
9935 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9936 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9937 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9938 echo ' :' >>$CONFIG_STATUS
9939 rm -f conftest.tail
9940 while grep . conftest.defines >/dev/null
9941 do
9942 # Write a limited-size here document to $tmp/defines.sed.
9943 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9944 # Speed up: don't consider the non `#define' lines.
9945 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9946 # Work around the forget-to-reset-the-flag bug.
9947 echo 't clr' >>$CONFIG_STATUS
9948 echo ': clr' >>$CONFIG_STATUS
9949 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9950 echo 'CEOF
9951 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9952 rm -f $tmp/in
9953 mv $tmp/out $tmp/in
9954 ' >>$CONFIG_STATUS
9955 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9956 rm -f conftest.defines
9957 mv conftest.tail conftest.defines
9958 done
9959 rm -f conftest.defines
9960 echo ' fi # grep' >>$CONFIG_STATUS
9961 echo >>$CONFIG_STATUS
9962
9963 # Break up conftest.undefs because some shells have a limit on the size
9964 # of here documents, and old seds have small limits too (100 cmds).
9965 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9966 rm -f conftest.tail
9967 while grep . conftest.undefs >/dev/null
9968 do
9969 # Write a limited-size here document to $tmp/undefs.sed.
9970 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9971 # Speed up: don't consider the non `#undef'
9972 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9973 # Work around the forget-to-reset-the-flag bug.
9974 echo 't clr' >>$CONFIG_STATUS
9975 echo ': clr' >>$CONFIG_STATUS
9976 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9977 echo 'CEOF
9978 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9979 rm -f $tmp/in
9980 mv $tmp/out $tmp/in
9981 ' >>$CONFIG_STATUS
9982 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9983 rm -f conftest.undefs
9984 mv conftest.tail conftest.undefs
9985 done
9986 rm -f conftest.undefs
9987
9988 cat >>$CONFIG_STATUS <<\_ACEOF
9989 # Let's still pretend it is `configure' which instantiates (i.e., don't
9990 # use $as_me), people would be surprised to read:
9991 # /* config.h. Generated by config.status. */
9992 if test x"$ac_file" = x-; then
9993 echo "/* Generated by configure. */" >$tmp/config.h
9994 else
9995 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9996 fi
9997 cat $tmp/in >>$tmp/config.h
9998 rm -f $tmp/in
9999 if test x"$ac_file" != x-; then
10000 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10001 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10002 echo "$as_me: $ac_file is unchanged" >&6;}
10003 else
10004 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10005 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10006 X"$ac_file" : 'X\(//\)[^/]' \| \
10007 X"$ac_file" : 'X\(//\)$' \| \
10008 X"$ac_file" : 'X\(/\)' \| \
10009 . : '\(.\)' 2>/dev/null ||
10010 echo X"$ac_file" |
10011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10012 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10013 /^X\(\/\/\)$/{ s//\1/; q; }
10014 /^X\(\/\).*/{ s//\1/; q; }
10015 s/.*/./; q'`
10016 { if $as_mkdir_p; then
10017 mkdir -p "$ac_dir"
10018 else
10019 as_dir="$ac_dir"
10020 as_dirs=
10021 while test ! -d "$as_dir"; do
10022 as_dirs="$as_dir $as_dirs"
10023 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10024 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10025 X"$as_dir" : 'X\(//\)[^/]' \| \
10026 X"$as_dir" : 'X\(//\)$' \| \
10027 X"$as_dir" : 'X\(/\)' \| \
10028 . : '\(.\)' 2>/dev/null ||
10029 echo X"$as_dir" |
10030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10032 /^X\(\/\/\)$/{ s//\1/; q; }
10033 /^X\(\/\).*/{ s//\1/; q; }
10034 s/.*/./; q'`
10035 done
10036 test ! -n "$as_dirs" || mkdir $as_dirs
10037 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10038 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10039 { (exit 1); exit 1; }; }; }
10040
10041 rm -f $ac_file
10042 mv $tmp/config.h $ac_file
10043 fi
10044 else
10045 cat $tmp/config.h
10046 rm -f $tmp/config.h
10047 fi
10048 # Compute $ac_file's index in $config_headers.
10049 _am_stamp_count=1
10050 for _am_header in $config_headers :; do
10051 case $_am_header in
10052 $ac_file | $ac_file:* )
10053 break ;;
10054 * )
10055 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10056 esac
10057 done
10058 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10059 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10060 X$ac_file : 'X\(//\)[^/]' \| \
10061 X$ac_file : 'X\(//\)$' \| \
10062 X$ac_file : 'X\(/\)' \| \
10063 . : '\(.\)' 2>/dev/null ||
10064 echo X$ac_file |
10065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10066 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10067 /^X\(\/\/\)$/{ s//\1/; q; }
10068 /^X\(\/\).*/{ s//\1/; q; }
10069 s/.*/./; q'`/stamp-h$_am_stamp_count
10070 done
10071 _ACEOF
10072 cat >>$CONFIG_STATUS <<\_ACEOF
10073
10074 #
10075 # CONFIG_COMMANDS section.
10076 #
10077 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10078 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10079 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10080 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10081 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10082 X"$ac_dest" : 'X\(//\)[^/]' \| \
10083 X"$ac_dest" : 'X\(//\)$' \| \
10084 X"$ac_dest" : 'X\(/\)' \| \
10085 . : '\(.\)' 2>/dev/null ||
10086 echo X"$ac_dest" |
10087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10088 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10089 /^X\(\/\/\)$/{ s//\1/; q; }
10090 /^X\(\/\).*/{ s//\1/; q; }
10091 s/.*/./; q'`
10092 { if $as_mkdir_p; then
10093 mkdir -p "$ac_dir"
10094 else
10095 as_dir="$ac_dir"
10096 as_dirs=
10097 while test ! -d "$as_dir"; do
10098 as_dirs="$as_dir $as_dirs"
10099 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10100 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10101 X"$as_dir" : 'X\(//\)[^/]' \| \
10102 X"$as_dir" : 'X\(//\)$' \| \
10103 X"$as_dir" : 'X\(/\)' \| \
10104 . : '\(.\)' 2>/dev/null ||
10105 echo X"$as_dir" |
10106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10107 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10108 /^X\(\/\/\)$/{ s//\1/; q; }
10109 /^X\(\/\).*/{ s//\1/; q; }
10110 s/.*/./; q'`
10111 done
10112 test ! -n "$as_dirs" || mkdir $as_dirs
10113 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10114 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10115 { (exit 1); exit 1; }; }; }
10116
10117 ac_builddir=.
10118
10119 if test "$ac_dir" != .; then
10120 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10121 # A "../" for each directory in $ac_dir_suffix.
10122 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10123 else
10124 ac_dir_suffix= ac_top_builddir=
10125 fi
10126
10127 case $srcdir in
10128 .) # No --srcdir option. We are building in place.
10129 ac_srcdir=.
10130 if test -z "$ac_top_builddir"; then
10131 ac_top_srcdir=.
10132 else
10133 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10134 fi ;;
10135 [\\/]* | ?:[\\/]* ) # Absolute path.
10136 ac_srcdir=$srcdir$ac_dir_suffix;
10137 ac_top_srcdir=$srcdir ;;
10138 *) # Relative path.
10139 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10140 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10141 esac
10142
10143 # Do not use `cd foo && pwd` to compute absolute paths, because
10144 # the directories may not exist.
10145 case `pwd` in
10146 .) ac_abs_builddir="$ac_dir";;
10147 *)
10148 case "$ac_dir" in
10149 .) ac_abs_builddir=`pwd`;;
10150 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10151 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10152 esac;;
10153 esac
10154 case $ac_abs_builddir in
10155 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10156 *)
10157 case ${ac_top_builddir}. in
10158 .) ac_abs_top_builddir=$ac_abs_builddir;;
10159 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10160 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10161 esac;;
10162 esac
10163 case $ac_abs_builddir in
10164 .) ac_abs_srcdir=$ac_srcdir;;
10165 *)
10166 case $ac_srcdir in
10167 .) ac_abs_srcdir=$ac_abs_builddir;;
10168 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10169 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10170 esac;;
10171 esac
10172 case $ac_abs_builddir in
10173 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10174 *)
10175 case $ac_top_srcdir in
10176 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10177 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10178 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10179 esac;;
10180 esac
10181
10182
10183 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10184 echo "$as_me: executing $ac_dest commands" >&6;}
10185 case $ac_dest in
10186 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10187 # Strip MF so we end up with the name of the file.
10188 mf=`echo "$mf" | sed -e 's/:.*$//'`
10189 # Check whether this is an Automake generated Makefile or not.
10190 # We used to match only the files named `Makefile.in', but
10191 # some people rename them; so instead we look at the file content.
10192 # Grep'ing the first line is not enough: some people post-process
10193 # each Makefile.in and add a new line on top of each file to say so.
10194 # So let's grep whole file.
10195 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10196 dirpart=`(dirname "$mf") 2>/dev/null ||
10197 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10198 X"$mf" : 'X\(//\)[^/]' \| \
10199 X"$mf" : 'X\(//\)$' \| \
10200 X"$mf" : 'X\(/\)' \| \
10201 . : '\(.\)' 2>/dev/null ||
10202 echo X"$mf" |
10203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10204 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10205 /^X\(\/\/\)$/{ s//\1/; q; }
10206 /^X\(\/\).*/{ s//\1/; q; }
10207 s/.*/./; q'`
10208 else
10209 continue
10210 fi
10211 # Extract the definition of DEPDIR, am__include, and am__quote
10212 # from the Makefile without running `make'.
10213 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10214 test -z "$DEPDIR" && continue
10215 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10216 test -z "am__include" && continue
10217 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10218 # When using ansi2knr, U may be empty or an underscore; expand it
10219 U=`sed -n 's/^U = //p' < "$mf"`
10220 # Find all dependency output files, they are included files with
10221 # $(DEPDIR) in their names. We invoke sed twice because it is the
10222 # simplest approach to changing $(DEPDIR) to its actual value in the
10223 # expansion.
10224 for file in `sed -n "
10225 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10226 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10227 # Make sure the directory exists.
10228 test -f "$dirpart/$file" && continue
10229 fdir=`(dirname "$file") 2>/dev/null ||
10230 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10231 X"$file" : 'X\(//\)[^/]' \| \
10232 X"$file" : 'X\(//\)$' \| \
10233 X"$file" : 'X\(/\)' \| \
10234 . : '\(.\)' 2>/dev/null ||
10235 echo X"$file" |
10236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10237 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10238 /^X\(\/\/\)$/{ s//\1/; q; }
10239 /^X\(\/\).*/{ s//\1/; q; }
10240 s/.*/./; q'`
10241 { if $as_mkdir_p; then
10242 mkdir -p $dirpart/$fdir
10243 else
10244 as_dir=$dirpart/$fdir
10245 as_dirs=
10246 while test ! -d "$as_dir"; do
10247 as_dirs="$as_dir $as_dirs"
10248 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10249 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10250 X"$as_dir" : 'X\(//\)[^/]' \| \
10251 X"$as_dir" : 'X\(//\)$' \| \
10252 X"$as_dir" : 'X\(/\)' \| \
10253 . : '\(.\)' 2>/dev/null ||
10254 echo X"$as_dir" |
10255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10256 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10257 /^X\(\/\/\)$/{ s//\1/; q; }
10258 /^X\(\/\).*/{ s//\1/; q; }
10259 s/.*/./; q'`
10260 done
10261 test ! -n "$as_dirs" || mkdir $as_dirs
10262 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10263 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10264 { (exit 1); exit 1; }; }; }
10265
10266 # echo "creating $dirpart/$file"
10267 echo '# dummy' > "$dirpart/$file"
10268 done
10269 done
10270 ;;
10271 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
10272 esac
10273 done
10274 _ACEOF
10275
10276 cat >>$CONFIG_STATUS <<\_ACEOF
10277
10278 { (exit 0); exit 0; }
10279 _ACEOF
10280 chmod +x $CONFIG_STATUS
10281 ac_clean_files=$ac_clean_files_save
10282
10283
10284 # configure is writing to config.log, and then calls config.status.
10285 # config.status does its own redirection, appending to config.log.
10286 # Unfortunately, on DOS this fails, as config.log is still kept open
10287 # by configure, so config.status won't be able to write to it; its
10288 # output is simply discarded. So we exec the FD to /dev/null,
10289 # effectively closing config.log, so it can be properly (re)opened and
10290 # appended to by config.status. When coming back to configure, we
10291 # need to make the FD available again.
10292 if test "$no_create" != yes; then
10293 ac_cs_success=:
10294 ac_config_status_args=
10295 test "$silent" = yes &&
10296 ac_config_status_args="$ac_config_status_args --quiet"
10297 exec 5>/dev/null
10298 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10299 exec 5>>config.log
10300 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10301 # would make configure fail if this is the last instruction.
10302 $ac_cs_success || { (exit 1); exit 1; }
10303 fi
10304