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