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