Configury changes: update src repository (binutils, gdb, and rda) to use
[deliverable/binutils-gdb.git] / ld / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="ldmain.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS CPP EGREP STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
313 ac_subst_files='TDIRS'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-targets alternative target configurations
860 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings enable build-time compiler warnings
863 --disable-nls do not use Native Language Support
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
866
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-pic try to use only PIC/non-PIC objects default=use both
872 --with-lib-path=dir1:dir2... set default LIB_PATH
873 --with-sysroot=DIR Search for usr/lib et al within DIR.
874
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.9"
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 # expand $ac_aux_dir to an absolute path
2628 am_aux_dir=`cd $ac_aux_dir && pwd`
2629
2630 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2631 # Use eval to expand $SHELL
2632 if eval "$MISSING --run true"; then
2633 am_missing_run="$MISSING --run "
2634 else
2635 am_missing_run=
2636 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2637 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2638 fi
2639
2640 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2641 # We used to keeping the `.' as first argument, in order to
2642 # allow $(mkdir_p) to be used without argument. As in
2643 # $(mkdir_p) $(somedir)
2644 # where $(somedir) is conditionally defined. However this is wrong
2645 # for two reasons:
2646 # 1. if the package is installed by a user who cannot write `.'
2647 # make install will fail,
2648 # 2. the above comment should most certainly read
2649 # $(mkdir_p) $(DESTDIR)$(somedir)
2650 # so it does not work when $(somedir) is undefined and
2651 # $(DESTDIR) is not.
2652 # To support the latter case, we have to write
2653 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2654 # so the `.' trick is pointless.
2655 mkdir_p='mkdir -p --'
2656 else
2657 # On NextStep and OpenStep, the `mkdir' command does not
2658 # recognize any option. It will interpret all options as
2659 # directories to create, and then abort because `.' already
2660 # exists.
2661 for d in ./-p ./--version;
2662 do
2663 test -d $d && rmdir $d
2664 done
2665 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2666 if test -f "$ac_aux_dir/mkinstalldirs"; then
2667 mkdir_p='$(mkinstalldirs)'
2668 else
2669 mkdir_p='$(install_sh) -d'
2670 fi
2671 fi
2672
2673 for ac_prog in gawk mawk nawk awk
2674 do
2675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2676 set dummy $ac_prog; ac_word=$2
2677 echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2679 if test "${ac_cv_prog_AWK+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 if test -n "$AWK"; then
2683 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2687 do
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_AWK="$ac_prog"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2695 fi
2696 done
2697 done
2698
2699 fi
2700 fi
2701 AWK=$ac_cv_prog_AWK
2702 if test -n "$AWK"; then
2703 echo "$as_me:$LINENO: result: $AWK" >&5
2704 echo "${ECHO_T}$AWK" >&6
2705 else
2706 echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6
2708 fi
2709
2710 test -n "$AWK" && break
2711 done
2712
2713 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2714 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2715 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2716 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719 cat >conftest.make <<\_ACEOF
2720 all:
2721 @echo 'ac_maketemp="$(MAKE)"'
2722 _ACEOF
2723 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2724 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2725 if test -n "$ac_maketemp"; then
2726 eval ac_cv_prog_make_${ac_make}_set=yes
2727 else
2728 eval ac_cv_prog_make_${ac_make}_set=no
2729 fi
2730 rm -f conftest.make
2731 fi
2732 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2733 echo "$as_me:$LINENO: result: yes" >&5
2734 echo "${ECHO_T}yes" >&6
2735 SET_MAKE=
2736 else
2737 echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6
2739 SET_MAKE="MAKE=${MAKE-make}"
2740 fi
2741
2742 rm -rf .tst 2>/dev/null
2743 mkdir .tst 2>/dev/null
2744 if test -d .tst; then
2745 am__leading_dot=.
2746 else
2747 am__leading_dot=_
2748 fi
2749 rmdir .tst 2>/dev/null
2750
2751 DEPDIR="${am__leading_dot}deps"
2752
2753 ac_config_commands="$ac_config_commands depfiles"
2754
2755
2756 am_make=${MAKE-make}
2757 cat > confinc << 'END'
2758 am__doit:
2759 @echo done
2760 .PHONY: am__doit
2761 END
2762 # If we don't find an include directive, just comment out the code.
2763 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2764 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2765 am__include="#"
2766 am__quote=
2767 _am_result=none
2768 # First try GNU make style include.
2769 echo "include confinc" > confmf
2770 # We grep out `Entering directory' and `Leaving directory'
2771 # messages which can occur if `w' ends up in MAKEFLAGS.
2772 # In particular we don't look at `^make:' because GNU make might
2773 # be invoked under some other name (usually "gmake"), in which
2774 # case it prints its new name instead of `make'.
2775 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2776 am__include=include
2777 am__quote=
2778 _am_result=GNU
2779 fi
2780 # Now try BSD make style include.
2781 if test "$am__include" = "#"; then
2782 echo '.include "confinc"' > confmf
2783 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2784 am__include=.include
2785 am__quote="\""
2786 _am_result=BSD
2787 fi
2788 fi
2789
2790
2791 echo "$as_me:$LINENO: result: $_am_result" >&5
2792 echo "${ECHO_T}$_am_result" >&6
2793 rm -f confinc confmf
2794
2795 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2796 if test "${enable_dependency_tracking+set}" = set; then
2797 enableval="$enable_dependency_tracking"
2798
2799 fi;
2800 if test "x$enable_dependency_tracking" != xno; then
2801 am_depcomp="$ac_aux_dir/depcomp"
2802 AMDEPBACKSLASH='\'
2803 fi
2804
2805
2806 if test "x$enable_dependency_tracking" != xno; then
2807 AMDEP_TRUE=
2808 AMDEP_FALSE='#'
2809 else
2810 AMDEP_TRUE='#'
2811 AMDEP_FALSE=
2812 fi
2813
2814
2815
2816 # test to see if srcdir already configured
2817 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2818 test -f $srcdir/config.status; then
2819 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2820 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2821 { (exit 1); exit 1; }; }
2822 fi
2823
2824 # test whether we have cygpath
2825 if test -z "$CYGPATH_W"; then
2826 if (cygpath --version) >/dev/null 2>/dev/null; then
2827 CYGPATH_W='cygpath -w'
2828 else
2829 CYGPATH_W=echo
2830 fi
2831 fi
2832
2833
2834 # Define the identity of the package.
2835 PACKAGE=ld
2836 VERSION=${BFD_VERSION}
2837
2838
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE "$PACKAGE"
2841 _ACEOF
2842
2843
2844 cat >>confdefs.h <<_ACEOF
2845 #define VERSION "$VERSION"
2846 _ACEOF
2847
2848 # Some tools Automake needs.
2849
2850 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2851
2852
2853 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2854
2855
2856 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2857
2858
2859 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2860
2861
2862 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2863
2864 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2865
2866 # Installed binaries are usually stripped using `strip' when the user
2867 # run `make install-strip'. However `strip' might not be the right
2868 # tool to use in cross-compilation environments, therefore Automake
2869 # will honor the `STRIP' environment variable to overrule this program.
2870 if test "$cross_compiling" != no; then
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}strip; ac_word=$2
2874 echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876 if test "${ac_cv_prog_STRIP+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 if test -n "$STRIP"; then
2880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2884 do
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2892 fi
2893 done
2894 done
2895
2896 fi
2897 fi
2898 STRIP=$ac_cv_prog_STRIP
2899 if test -n "$STRIP"; then
2900 echo "$as_me:$LINENO: result: $STRIP" >&5
2901 echo "${ECHO_T}$STRIP" >&6
2902 else
2903 echo "$as_me:$LINENO: result: no" >&5
2904 echo "${ECHO_T}no" >&6
2905 fi
2906
2907 fi
2908 if test -z "$ac_cv_prog_STRIP"; then
2909 ac_ct_STRIP=$STRIP
2910 # Extract the first word of "strip", so it can be a program name with args.
2911 set dummy strip; ac_word=$2
2912 echo "$as_me:$LINENO: checking for $ac_word" >&5
2913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 if test -n "$ac_ct_STRIP"; then
2918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_ac_ct_STRIP="strip"
2928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931 done
2932 done
2933
2934 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2935 fi
2936 fi
2937 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2938 if test -n "$ac_ct_STRIP"; then
2939 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2940 echo "${ECHO_T}$ac_ct_STRIP" >&6
2941 else
2942 echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6
2944 fi
2945
2946 STRIP=$ac_ct_STRIP
2947 else
2948 STRIP="$ac_cv_prog_STRIP"
2949 fi
2950
2951 fi
2952 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2953
2954 # We need awk for the "check" target. The system "awk" is bad on
2955 # some platforms.
2956 # Always define AMTAR for backward compatibility.
2957
2958 AMTAR=${AMTAR-"${am_missing_run}tar"}
2959
2960 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2961
2962
2963
2964
2965 depcc="$CC" am_compiler_list=
2966
2967 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2968 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2969 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2973 # We make a subdir and do the tests there. Otherwise we can end up
2974 # making bogus files that we don't know about and never remove. For
2975 # instance it was reported that on HP-UX the gcc test will end up
2976 # making a dummy file named `D' -- because `-MD' means `put the output
2977 # in D'.
2978 mkdir conftest.dir
2979 # Copy depcomp to subdir because otherwise we won't find it if we're
2980 # using a relative directory.
2981 cp "$am_depcomp" conftest.dir
2982 cd conftest.dir
2983 # We will build objects and dependencies in a subdirectory because
2984 # it helps to detect inapplicable dependency modes. For instance
2985 # both Tru64's cc and ICC support -MD to output dependencies as a
2986 # side effect of compilation, but ICC will put the dependencies in
2987 # the current directory while Tru64 will put them in the object
2988 # directory.
2989 mkdir sub
2990
2991 am_cv_CC_dependencies_compiler_type=none
2992 if test "$am_compiler_list" = ""; then
2993 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2994 fi
2995 for depmode in $am_compiler_list; do
2996 # Setup a source with many dependencies, because some compilers
2997 # like to wrap large dependency lists on column 80 (with \), and
2998 # we should not choose a depcomp mode which is confused by this.
2999 #
3000 # We need to recreate these files for each test, as the compiler may
3001 # overwrite some of them when testing with obscure command lines.
3002 # This happens at least with the AIX C compiler.
3003 : > sub/conftest.c
3004 for i in 1 2 3 4 5 6; do
3005 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3006 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3007 # Solaris 8's {/usr,}/bin/sh.
3008 touch sub/conftst$i.h
3009 done
3010 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3011
3012 case $depmode in
3013 nosideeffect)
3014 # after this tag, mechanisms are not by side-effect, so they'll
3015 # only be used when explicitly requested
3016 if test "x$enable_dependency_tracking" = xyes; then
3017 continue
3018 else
3019 break
3020 fi
3021 ;;
3022 none) break ;;
3023 esac
3024 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3025 # mode. It turns out that the SunPro C++ compiler does not properly
3026 # handle `-M -o', and we need to detect this.
3027 if depmode=$depmode \
3028 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3029 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3030 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3031 >/dev/null 2>conftest.err &&
3032 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3033 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3034 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3035 # icc doesn't choke on unknown options, it will just issue warnings
3036 # or remarks (even with -Werror). So we grep stderr for any message
3037 # that says an option was ignored or not supported.
3038 # When given -MP, icc 7.0 and 7.1 complain thusly:
3039 # icc: Command line warning: ignoring option '-M'; no argument required
3040 # The diagnosis changed in icc 8.0:
3041 # icc: Command line remark: option '-MP' not supported
3042 if (grep 'ignoring option' conftest.err ||
3043 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3044 am_cv_CC_dependencies_compiler_type=$depmode
3045 break
3046 fi
3047 fi
3048 done
3049
3050 cd ..
3051 rm -rf conftest.dir
3052 else
3053 am_cv_CC_dependencies_compiler_type=none
3054 fi
3055
3056 fi
3057 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3058 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3059 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3060
3061
3062
3063 if
3064 test "x$enable_dependency_tracking" != xno \
3065 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3066 am__fastdepCC_TRUE=
3067 am__fastdepCC_FALSE='#'
3068 else
3069 am__fastdepCC_TRUE='#'
3070 am__fastdepCC_FALSE=
3071 fi
3072
3073
3074
3075
3076 # Check whether --enable-shared or --disable-shared was given.
3077 if test "${enable_shared+set}" = set; then
3078 enableval="$enable_shared"
3079 p=${PACKAGE-default}
3080 case $enableval in
3081 yes) enable_shared=yes ;;
3082 no) enable_shared=no ;;
3083 *)
3084 enable_shared=no
3085 # Look at the argument we got. We use all the common list separators.
3086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3087 for pkg in $enableval; do
3088 if test "X$pkg" = "X$p"; then
3089 enable_shared=yes
3090 fi
3091 done
3092 IFS="$ac_save_ifs"
3093 ;;
3094 esac
3095 else
3096 enable_shared=yes
3097 fi;
3098 # Check whether --enable-static or --disable-static was given.
3099 if test "${enable_static+set}" = set; then
3100 enableval="$enable_static"
3101 p=${PACKAGE-default}
3102 case $enableval in
3103 yes) enable_static=yes ;;
3104 no) enable_static=no ;;
3105 *)
3106 enable_static=no
3107 # Look at the argument we got. We use all the common list separators.
3108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3109 for pkg in $enableval; do
3110 if test "X$pkg" = "X$p"; then
3111 enable_static=yes
3112 fi
3113 done
3114 IFS="$ac_save_ifs"
3115 ;;
3116 esac
3117 else
3118 enable_static=yes
3119 fi;
3120 # Check whether --enable-fast-install or --disable-fast-install was given.
3121 if test "${enable_fast_install+set}" = set; then
3122 enableval="$enable_fast_install"
3123 p=${PACKAGE-default}
3124 case $enableval in
3125 yes) enable_fast_install=yes ;;
3126 no) enable_fast_install=no ;;
3127 *)
3128 enable_fast_install=no
3129 # Look at the argument we got. We use all the common list separators.
3130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3131 for pkg in $enableval; do
3132 if test "X$pkg" = "X$p"; then
3133 enable_fast_install=yes
3134 fi
3135 done
3136 IFS="$ac_save_ifs"
3137 ;;
3138 esac
3139 else
3140 enable_fast_install=yes
3141 fi;
3142
3143 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3144 if test "${with_gnu_ld+set}" = set; then
3145 withval="$with_gnu_ld"
3146 test "$withval" = no || with_gnu_ld=yes
3147 else
3148 with_gnu_ld=no
3149 fi;
3150 ac_prog=ld
3151 if test "$GCC" = yes; then
3152 # Check if gcc -print-prog-name=ld gives a path.
3153 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3154 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3155 case $host in
3156 *-*-mingw*)
3157 # gcc leaves a trailing carriage return which upsets mingw
3158 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3159 *)
3160 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3161 esac
3162 case $ac_prog in
3163 # Accept absolute paths.
3164 [\\/]* | [A-Za-z]:[\\/]*)
3165 re_direlt='/[^/][^/]*/\.\./'
3166 # Canonicalize the path of ld
3167 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3168 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3169 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3170 done
3171 test -z "$LD" && LD="$ac_prog"
3172 ;;
3173 "")
3174 # If it fails, then pretend we aren't using GCC.
3175 ac_prog=ld
3176 ;;
3177 *)
3178 # If it is relative, then search for the first ld in PATH.
3179 with_gnu_ld=unknown
3180 ;;
3181 esac
3182 elif test "$with_gnu_ld" = yes; then
3183 echo "$as_me:$LINENO: checking for GNU ld" >&5
3184 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3185 else
3186 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3187 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3188 fi
3189 if test "${lt_cv_path_LD+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192 if test -z "$LD"; then
3193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3194 for ac_dir in $PATH; do
3195 test -z "$ac_dir" && ac_dir=.
3196 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3197 lt_cv_path_LD="$ac_dir/$ac_prog"
3198 # Check to see if the program is GNU ld. I'd rather use --version,
3199 # but apparently some GNU ld's only accept -v.
3200 # Break only if it was the GNU/non-GNU ld that we prefer.
3201 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3202 test "$with_gnu_ld" != no && break
3203 else
3204 test "$with_gnu_ld" != yes && break
3205 fi
3206 fi
3207 done
3208 IFS="$ac_save_ifs"
3209 else
3210 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3211 fi
3212 fi
3213
3214 LD="$lt_cv_path_LD"
3215 if test -n "$LD"; then
3216 echo "$as_me:$LINENO: result: $LD" >&5
3217 echo "${ECHO_T}$LD" >&6
3218 else
3219 echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3221 fi
3222 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3223 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3224 { (exit 1); exit 1; }; }
3225 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3226 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3227 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3231 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3232 lt_cv_prog_gnu_ld=yes
3233 else
3234 lt_cv_prog_gnu_ld=no
3235 fi
3236 fi
3237 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3238 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3239 with_gnu_ld=$lt_cv_prog_gnu_ld
3240
3241
3242 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3243 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3244 if test "${lt_cv_ld_reload_flag+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247 lt_cv_ld_reload_flag='-r'
3248 fi
3249 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3250 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3251 reload_flag=$lt_cv_ld_reload_flag
3252 test -n "$reload_flag" && reload_flag=" $reload_flag"
3253
3254 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3255 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3256 if test "${lt_cv_path_NM+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 if test -n "$NM"; then
3260 # Let the user override the test.
3261 lt_cv_path_NM="$NM"
3262 else
3263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3264 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3265 test -z "$ac_dir" && ac_dir=.
3266 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3267 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3268 # Check to see if the nm accepts a BSD-compat flag.
3269 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3270 # nm: unknown option "B" ignored
3271 # Tru64's nm complains that /dev/null is an invalid object file
3272 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3273 lt_cv_path_NM="$tmp_nm -B"
3274 break
3275 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3276 lt_cv_path_NM="$tmp_nm -p"
3277 break
3278 else
3279 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3280 continue # so that we can try to find one that supports BSD flags
3281 fi
3282 fi
3283 done
3284 IFS="$ac_save_ifs"
3285 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3286 fi
3287 fi
3288
3289 NM="$lt_cv_path_NM"
3290 echo "$as_me:$LINENO: result: $NM" >&5
3291 echo "${ECHO_T}$NM" >&6
3292
3293 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3294 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3295 LN_S=$as_ln_s
3296 if test "$LN_S" = "ln -s"; then
3297 echo "$as_me:$LINENO: result: yes" >&5
3298 echo "${ECHO_T}yes" >&6
3299 else
3300 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3301 echo "${ECHO_T}no, using $LN_S" >&6
3302 fi
3303
3304 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3305 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3306 if test "${lt_cv_deplibs_check_method+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 else
3309 lt_cv_file_magic_cmd='$MAGIC_CMD'
3310 lt_cv_file_magic_test_file=
3311 lt_cv_deplibs_check_method='unknown'
3312 # Need to set the preceding variable on all platforms that support
3313 # interlibrary dependencies.
3314 # 'none' -- dependencies not supported.
3315 # `unknown' -- same as none, but documents that we really don't know.
3316 # 'pass_all' -- all dependencies passed with no checks.
3317 # 'test_compile' -- check by making test program.
3318 # 'file_magic [regex]' -- check by looking for files in library path
3319 # which responds to the $file_magic_cmd with a given egrep regex.
3320 # If you have `file' or equivalent on your system and you're not sure
3321 # whether `pass_all' will *always* work, you probably want this one.
3322
3323 case $host_os in
3324 aix*)
3325 lt_cv_deplibs_check_method=pass_all
3326 ;;
3327
3328 beos*)
3329 lt_cv_deplibs_check_method=pass_all
3330 ;;
3331
3332 bsdi4*)
3333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3334 lt_cv_file_magic_cmd='/usr/bin/file -L'
3335 lt_cv_file_magic_test_file=/shlib/libc.so
3336 ;;
3337
3338 cygwin* | mingw* |pw32*)
3339 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3340 lt_cv_file_magic_cmd='$OBJDUMP -f'
3341 ;;
3342
3343 darwin* | rhapsody*)
3344 # this will be overwritten by pass_all, but leave it in just in case
3345 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3346 lt_cv_file_magic_cmd='/usr/bin/file -L'
3347 case "$host_os" in
3348 rhapsody* | darwin1.012)
3349 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3350 ;;
3351 *) # Darwin 1.3 on
3352 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3353 ;;
3354 esac
3355 lt_cv_deplibs_check_method=pass_all
3356 ;;
3357
3358 freebsd* | kfreebsd*-gnu)
3359 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3360 case $host_cpu in
3361 i*86 )
3362 # Not sure whether the presence of OpenBSD here was a mistake.
3363 # Let's accept both of them until this is cleared up.
3364 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3365 lt_cv_file_magic_cmd=/usr/bin/file
3366 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3367 ;;
3368 esac
3369 else
3370 lt_cv_deplibs_check_method=pass_all
3371 fi
3372 ;;
3373
3374 gnu*)
3375 lt_cv_deplibs_check_method=pass_all
3376 ;;
3377
3378 hpux10.20*|hpux11*)
3379 case $host_cpu in
3380 hppa*)
3381 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3382 lt_cv_file_magic_cmd=/usr/bin/file
3383 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3384 ;;
3385 ia64*)
3386 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3387 lt_cv_file_magic_cmd=/usr/bin/file
3388 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3389 ;;
3390 esac
3391 ;;
3392
3393 irix5* | irix6*)
3394 case $host_os in
3395 irix5*)
3396 # this will be overridden with pass_all, but let us keep it just in case
3397 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3398 ;;
3399 *)
3400 case $LD in
3401 *-32|*"-32 ") libmagic=32-bit;;
3402 *-n32|*"-n32 ") libmagic=N32;;
3403 *-64|*"-64 ") libmagic=64-bit;;
3404 *) libmagic=never-match;;
3405 esac
3406 # this will be overridden with pass_all, but let us keep it just in case
3407 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3408 ;;
3409 esac
3410 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3411 lt_cv_deplibs_check_method=pass_all
3412 ;;
3413
3414 # This must be Linux ELF.
3415 linux-gnu*)
3416 lt_cv_deplibs_check_method=pass_all
3417 ;;
3418
3419 netbsd* | knetbsd*-gnu)
3420 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3421 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3422 else
3423 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3424 fi
3425 ;;
3426
3427 newsos6)
3428 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3429 lt_cv_file_magic_cmd=/usr/bin/file
3430 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3431 ;;
3432
3433 osf3* | osf4* | osf5*)
3434 # this will be overridden with pass_all, but let us keep it just in case
3435 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3436 lt_cv_file_magic_test_file=/shlib/libc.so
3437 lt_cv_deplibs_check_method=pass_all
3438 ;;
3439
3440 sco3.2v5*)
3441 lt_cv_deplibs_check_method=pass_all
3442 ;;
3443
3444 solaris*)
3445 lt_cv_deplibs_check_method=pass_all
3446 lt_cv_file_magic_test_file=/lib/libc.so
3447 ;;
3448
3449 sysv5uw[78]* | sysv4*uw2*)
3450 lt_cv_deplibs_check_method=pass_all
3451 ;;
3452
3453 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3454 case $host_vendor in
3455 ncr)
3456 lt_cv_deplibs_check_method=pass_all
3457 ;;
3458 motorola)
3459 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]'
3460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3461 ;;
3462 esac
3463 ;;
3464 esac
3465
3466 fi
3467 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3468 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3469 file_magic_cmd=$lt_cv_file_magic_cmd
3470 deplibs_check_method=$lt_cv_deplibs_check_method
3471
3472
3473
3474
3475 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3476
3477 # find the maximum length of command line arguments
3478 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3479 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3480 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 else
3483 i=0
3484 teststring="ABCD"
3485
3486 case $build_os in
3487 msdosdjgpp*)
3488 # On DJGPP, this test can blow up pretty badly due to problems in libc
3489 # (any single argument exceeding 2000 bytes causes a buffer overrun
3490 # during glob expansion). Even if it were fixed, the result of this
3491 # check would be larger than it should be.
3492 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3493 ;;
3494
3495 cygwin* | mingw*)
3496 # On Win9x/ME, this test blows up -- it succeeds, but takes
3497 # about 5 minutes as the teststring grows exponentially.
3498 # Worse, since 9x/ME are not pre-emptively multitasking,
3499 # you end up with a "frozen" computer, even though with patience
3500 # the test eventually succeeds (with a max line length of 256k).
3501 # Instead, let's just punt: use the minimum linelength reported by
3502 # all of the supported platforms: 8192 (on NT/2K/XP).
3503 lt_cv_sys_max_cmd_len=8192;
3504 ;;
3505
3506 amigaos*)
3507 # On AmigaOS with pdksh, this test takes hours, literally.
3508 # So we just punt and use a minimum line length of 8192.
3509 lt_cv_sys_max_cmd_len=8192;
3510 ;;
3511
3512 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3513 # This has been around since 386BSD, at least. Likely further.
3514 if test -x /sbin/sysctl; then
3515 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3516 elif test -x /usr/sbin/sysctl; then
3517 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3518 else
3519 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3520 fi
3521 # And add a safety zone
3522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3524 ;;
3525 esac
3526
3527 fi
3528
3529 if test -n "$lt_cv_sys_max_cmd_len" ; then
3530 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3531 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3532 else
3533 echo "$as_me:$LINENO: result: none" >&5
3534 echo "${ECHO_T}none" >&6
3535 fi
3536
3537
3538 # Only perform the check for file, if the check method requires it
3539 case $deplibs_check_method in
3540 file_magic*)
3541 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3542 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3543 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3544 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547 case $MAGIC_CMD in
3548 /*)
3549 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3550 ;;
3551 ?:/*)
3552 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3553 ;;
3554 *)
3555 ac_save_MAGIC_CMD="$MAGIC_CMD"
3556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3557 ac_dummy="/usr/bin:$PATH"
3558 for ac_dir in $ac_dummy; do
3559 test -z "$ac_dir" && ac_dir=.
3560 if test -f $ac_dir/${ac_tool_prefix}file; then
3561 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3562 if test -n "$file_magic_test_file"; then
3563 case $deplibs_check_method in
3564 "file_magic "*)
3565 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3566 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3567 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3568 egrep "$file_magic_regex" > /dev/null; then
3569 :
3570 else
3571 cat <<EOF 1>&2
3572
3573 *** Warning: the command libtool uses to detect shared libraries,
3574 *** $file_magic_cmd, produces output that libtool cannot recognize.
3575 *** The result is that libtool may fail to recognize shared libraries
3576 *** as such. This will affect the creation of libtool libraries that
3577 *** depend on shared libraries, but programs linked with such libtool
3578 *** libraries will work regardless of this problem. Nevertheless, you
3579 *** may want to report the problem to your system manager and/or to
3580 *** bug-libtool@gnu.org
3581
3582 EOF
3583 fi ;;
3584 esac
3585 fi
3586 break
3587 fi
3588 done
3589 IFS="$ac_save_ifs"
3590 MAGIC_CMD="$ac_save_MAGIC_CMD"
3591 ;;
3592 esac
3593 fi
3594
3595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3596 if test -n "$MAGIC_CMD"; then
3597 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3598 echo "${ECHO_T}$MAGIC_CMD" >&6
3599 else
3600 echo "$as_me:$LINENO: result: no" >&5
3601 echo "${ECHO_T}no" >&6
3602 fi
3603
3604 if test -z "$lt_cv_path_MAGIC_CMD"; then
3605 if test -n "$ac_tool_prefix"; then
3606 echo "$as_me:$LINENO: checking for file" >&5
3607 echo $ECHO_N "checking for file... $ECHO_C" >&6
3608 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 case $MAGIC_CMD in
3612 /*)
3613 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3614 ;;
3615 ?:/*)
3616 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3617 ;;
3618 *)
3619 ac_save_MAGIC_CMD="$MAGIC_CMD"
3620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3621 ac_dummy="/usr/bin:$PATH"
3622 for ac_dir in $ac_dummy; do
3623 test -z "$ac_dir" && ac_dir=.
3624 if test -f $ac_dir/file; then
3625 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3626 if test -n "$file_magic_test_file"; then
3627 case $deplibs_check_method in
3628 "file_magic "*)
3629 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3632 egrep "$file_magic_regex" > /dev/null; then
3633 :
3634 else
3635 cat <<EOF 1>&2
3636
3637 *** Warning: the command libtool uses to detect shared libraries,
3638 *** $file_magic_cmd, produces output that libtool cannot recognize.
3639 *** The result is that libtool may fail to recognize shared libraries
3640 *** as such. This will affect the creation of libtool libraries that
3641 *** depend on shared libraries, but programs linked with such libtool
3642 *** libraries will work regardless of this problem. Nevertheless, you
3643 *** may want to report the problem to your system manager and/or to
3644 *** bug-libtool@gnu.org
3645
3646 EOF
3647 fi ;;
3648 esac
3649 fi
3650 break
3651 fi
3652 done
3653 IFS="$ac_save_ifs"
3654 MAGIC_CMD="$ac_save_MAGIC_CMD"
3655 ;;
3656 esac
3657 fi
3658
3659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3660 if test -n "$MAGIC_CMD"; then
3661 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3662 echo "${ECHO_T}$MAGIC_CMD" >&6
3663 else
3664 echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3666 fi
3667
3668 else
3669 MAGIC_CMD=:
3670 fi
3671 fi
3672
3673 fi
3674 ;;
3675 esac
3676
3677 if test -n "$ac_tool_prefix"; then
3678 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3679 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3680 echo "$as_me:$LINENO: checking for $ac_word" >&5
3681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3682 if test "${ac_cv_prog_RANLIB+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685 if test -n "$RANLIB"; then
3686 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3687 else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3690 do
3691 IFS=$as_save_IFS
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 break 2
3698 fi
3699 done
3700 done
3701
3702 fi
3703 fi
3704 RANLIB=$ac_cv_prog_RANLIB
3705 if test -n "$RANLIB"; then
3706 echo "$as_me:$LINENO: result: $RANLIB" >&5
3707 echo "${ECHO_T}$RANLIB" >&6
3708 else
3709 echo "$as_me:$LINENO: result: no" >&5
3710 echo "${ECHO_T}no" >&6
3711 fi
3712
3713 fi
3714 if test -z "$ac_cv_prog_RANLIB"; then
3715 ac_ct_RANLIB=$RANLIB
3716 # Extract the first word of "ranlib", so it can be a program name with args.
3717 set dummy ranlib; ac_word=$2
3718 echo "$as_me:$LINENO: checking for $ac_word" >&5
3719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3720 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 if test -n "$ac_ct_RANLIB"; then
3724 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3728 do
3729 IFS=$as_save_IFS
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733 ac_cv_prog_ac_ct_RANLIB="ranlib"
3734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 break 2
3736 fi
3737 done
3738 done
3739
3740 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3741 fi
3742 fi
3743 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3744 if test -n "$ac_ct_RANLIB"; then
3745 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3746 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3747 else
3748 echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6
3750 fi
3751
3752 RANLIB=$ac_ct_RANLIB
3753 else
3754 RANLIB="$ac_cv_prog_RANLIB"
3755 fi
3756
3757 if test -n "$ac_tool_prefix"; then
3758 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3759 set dummy ${ac_tool_prefix}strip; ac_word=$2
3760 echo "$as_me:$LINENO: checking for $ac_word" >&5
3761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3762 if test "${ac_cv_prog_STRIP+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765 if test -n "$STRIP"; then
3766 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3767 else
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH
3770 do
3771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3775 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 break 2
3778 fi
3779 done
3780 done
3781
3782 fi
3783 fi
3784 STRIP=$ac_cv_prog_STRIP
3785 if test -n "$STRIP"; then
3786 echo "$as_me:$LINENO: result: $STRIP" >&5
3787 echo "${ECHO_T}$STRIP" >&6
3788 else
3789 echo "$as_me:$LINENO: result: no" >&5
3790 echo "${ECHO_T}no" >&6
3791 fi
3792
3793 fi
3794 if test -z "$ac_cv_prog_STRIP"; then
3795 ac_ct_STRIP=$STRIP
3796 # Extract the first word of "strip", so it can be a program name with args.
3797 set dummy strip; ac_word=$2
3798 echo "$as_me:$LINENO: checking for $ac_word" >&5
3799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3800 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803 if test -n "$ac_ct_STRIP"; then
3804 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3808 do
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813 ac_cv_prog_ac_ct_STRIP="strip"
3814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 break 2
3816 fi
3817 done
3818 done
3819
3820 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3821 fi
3822 fi
3823 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3824 if test -n "$ac_ct_STRIP"; then
3825 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3826 echo "${ECHO_T}$ac_ct_STRIP" >&6
3827 else
3828 echo "$as_me:$LINENO: result: no" >&5
3829 echo "${ECHO_T}no" >&6
3830 fi
3831
3832 STRIP=$ac_ct_STRIP
3833 else
3834 STRIP="$ac_cv_prog_STRIP"
3835 fi
3836
3837
3838 # Check for any special flags to pass to ltconfig.
3839 libtool_flags="--cache-file=$cache_file"
3840 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3841 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3842 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3843 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3844 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3845
3846
3847 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3848 if test "${enable_libtool_lock+set}" = set; then
3849 enableval="$enable_libtool_lock"
3850
3851 fi;
3852 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3853 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3854
3855
3856 # Check whether --with-pic or --without-pic was given.
3857 if test "${with_pic+set}" = set; then
3858 withval="$with_pic"
3859 pic_mode="$withval"
3860 else
3861 pic_mode=default
3862 fi;
3863 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3864 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3865
3866 # Some flags need to be propagated to the compiler or linker for good
3867 # libtool support.
3868 case $host in
3869 *-*-irix6*)
3870 # Find out which ABI we are using.
3871 echo '#line 3871 "configure"' > conftest.$ac_ext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3873 (eval $ac_compile) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; then
3877 if test "$lt_cv_prog_gnu_ld" = yes; then
3878 case `/usr/bin/file conftest.$ac_objext` in
3879 *32-bit*)
3880 LD="${LD-ld} -melf32bsmip"
3881 ;;
3882 *N32*)
3883 LD="${LD-ld} -melf32bmipn32"
3884 ;;
3885 *64-bit*)
3886 LD="${LD-ld} -melf64bmip"
3887 ;;
3888 esac
3889 else
3890 case `/usr/bin/file conftest.$ac_objext` in
3891 *32-bit*)
3892 LD="${LD-ld} -32"
3893 ;;
3894 *N32*)
3895 LD="${LD-ld} -n32"
3896 ;;
3897 *64-bit*)
3898 LD="${LD-ld} -64"
3899 ;;
3900 esac
3901 fi
3902 fi
3903 rm -rf conftest*
3904 ;;
3905
3906 ia64-*-hpux*)
3907 # Find out which ABI we are using.
3908 echo 'int i;' > conftest.$ac_ext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910 (eval $ac_compile) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; then
3914 case "`/usr/bin/file conftest.o`" in
3915 *ELF-32*)
3916 HPUX_IA64_MODE="32"
3917 ;;
3918 *ELF-64*)
3919 HPUX_IA64_MODE="64"
3920 ;;
3921 esac
3922 fi
3923 rm -rf conftest*
3924 ;;
3925
3926 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3927 # Find out which ABI we are using.
3928 echo 'int i;' > conftest.$ac_ext
3929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930 (eval $ac_compile) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; then
3934 case "`/usr/bin/file conftest.o`" in
3935 *32-bit*)
3936 case $host in
3937 x86_64-*linux*)
3938 LD="${LD-ld} -m elf_i386"
3939 ;;
3940 ppc64-*linux*|powerpc64-*linux*)
3941 LD="${LD-ld} -m elf32ppclinux"
3942 ;;
3943 s390x-*linux*)
3944 LD="${LD-ld} -m elf_s390"
3945 ;;
3946 sparc64-*linux*)
3947 LD="${LD-ld} -m elf32_sparc"
3948 ;;
3949 esac
3950 ;;
3951 *64-bit*)
3952 case $host in
3953 x86_64-*linux*)
3954 LD="${LD-ld} -m elf_x86_64"
3955 ;;
3956 ppc*-*linux*|powerpc*-*linux*)
3957 LD="${LD-ld} -m elf64ppc"
3958 ;;
3959 s390*-*linux*)
3960 LD="${LD-ld} -m elf64_s390"
3961 ;;
3962 sparc*-*linux*)
3963 LD="${LD-ld} -m elf64_sparc"
3964 ;;
3965 esac
3966 ;;
3967 esac
3968 fi
3969 rm -rf conftest*
3970 ;;
3971
3972 *-*-sco3.2v5*)
3973 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3974 SAVE_CFLAGS="$CFLAGS"
3975 CFLAGS="$CFLAGS -belf"
3976 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3977 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3978 if test "${lt_cv_cc_needs_belf+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3981
3982
3983 ac_ext=c
3984 ac_cpp='$CPP $CPPFLAGS'
3985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988
3989 cat >conftest.$ac_ext <<_ACEOF
3990 /* confdefs.h. */
3991 _ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h. */
3995
3996 int
3997 main ()
3998 {
3999
4000 ;
4001 return 0;
4002 }
4003 _ACEOF
4004 rm -f conftest.$ac_objext conftest$ac_exeext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006 (eval $ac_link) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -z "$ac_c_werror_flag"
4014 || test ! -s conftest.err'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 (eval $ac_try) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest$ac_exeext'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 (eval $ac_try) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4026 lt_cv_cc_needs_belf=yes
4027 else
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 lt_cv_cc_needs_belf=no
4032 fi
4033 rm -f conftest.err conftest.$ac_objext \
4034 conftest$ac_exeext conftest.$ac_ext
4035 ac_ext=c
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040
4041 fi
4042 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4043 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4044 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4045 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4046 CFLAGS="$SAVE_CFLAGS"
4047 fi
4048 ;;
4049
4050
4051 esac
4052
4053
4054 # Save cache, so that ltconfig can load it
4055 cat >confcache <<\_ACEOF
4056 # This file is a shell script that caches the results of configure
4057 # tests run on this system so they can be shared between configure
4058 # scripts and configure runs, see configure's option --config-cache.
4059 # It is not useful on other systems. If it contains results you don't
4060 # want to keep, you may remove or edit it.
4061 #
4062 # config.status only pays attention to the cache file if you give it
4063 # the --recheck option to rerun configure.
4064 #
4065 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4066 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4067 # following values.
4068
4069 _ACEOF
4070
4071 # The following way of writing the cache mishandles newlines in values,
4072 # but we know of no workaround that is simple, portable, and efficient.
4073 # So, don't put newlines in cache variables' values.
4074 # Ultrix sh set writes to stderr and can't be redirected directly,
4075 # and sets the high bit in the cache file unless we assign to the vars.
4076 {
4077 (set) 2>&1 |
4078 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4079 *ac_space=\ *)
4080 # `set' does not quote correctly, so add quotes (double-quote
4081 # substitution turns \\\\ into \\, and sed turns \\ into \).
4082 sed -n \
4083 "s/'/'\\\\''/g;
4084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4085 ;;
4086 *)
4087 # `set' quotes correctly as required by POSIX, so do not add quotes.
4088 sed -n \
4089 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4090 ;;
4091 esac;
4092 } |
4093 sed '
4094 t clear
4095 : clear
4096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4097 t end
4098 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4099 : end' >>confcache
4100 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4101 if test -w $cache_file; then
4102 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4103 cat confcache >$cache_file
4104 else
4105 echo "not updating unwritable cache $cache_file"
4106 fi
4107 fi
4108 rm -f confcache
4109
4110 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4111 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4112 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4113 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4114 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4115 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4116 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4117 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4118 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4119 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4120 echo "$as_me: error: libtool configure failed" >&2;}
4121 { (exit 1); exit 1; }; }
4122
4123 # Reload cache, that may have been modified by ltconfig
4124 if test -r "$cache_file"; then
4125 # Some versions of bash will fail to source /dev/null (special
4126 # files actually), so we avoid doing that.
4127 if test -f "$cache_file"; then
4128 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4129 echo "$as_me: loading cache $cache_file" >&6;}
4130 case $cache_file in
4131 [\\/]* | ?:[\\/]* ) . $cache_file;;
4132 *) . ./$cache_file;;
4133 esac
4134 fi
4135 else
4136 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4137 echo "$as_me: creating cache $cache_file" >&6;}
4138 >$cache_file
4139 fi
4140
4141
4142 # This can be used to rebuild libtool when needed
4143 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4144
4145 # Always use our own libtool.
4146 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4147
4148 # Redirect the config.log output again, so that the ltconfig log is not
4149 # clobbered by the next message.
4150 exec 5>>./config.log
4151
4152
4153
4154
4155
4156
4157
4158
4159 # Check whether --with-lib-path or --without-lib-path was given.
4160 if test "${with_lib_path+set}" = set; then
4161 withval="$with_lib_path"
4162 LIB_PATH=$withval
4163 fi;
4164 # Check whether --enable-targets or --disable-targets was given.
4165 if test "${enable_targets+set}" = set; then
4166 enableval="$enable_targets"
4167 case "${enableval}" in
4168 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4169 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4170 { (exit 1); exit 1; }; }
4171 ;;
4172 no) enable_targets= ;;
4173 *) enable_targets=$enableval ;;
4174 esac
4175 fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4176 if test "${enable_64_bit_bfd+set}" = set; then
4177 enableval="$enable_64_bit_bfd"
4178 case "${enableval}" in
4179 yes) want64=true ;;
4180 no) want64=false ;;
4181 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4182 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4183 { (exit 1); exit 1; }; } ;;
4184 esac
4185 else
4186 want64=false
4187 fi;
4188
4189 # Check whether --with-sysroot or --without-sysroot was given.
4190 if test "${with_sysroot+set}" = set; then
4191 withval="$with_sysroot"
4192
4193 case ${with_sysroot} in
4194 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4195 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4196 esac
4197
4198 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4199 use_sysroot=yes
4200
4201 if test "x$exec_prefix" = xNONE; then
4202 if test "x$prefix" = xNONE; then
4203 test_prefix=/usr/local
4204 else
4205 test_prefix=$prefix
4206 fi
4207 else
4208 test_prefix=$exec_prefix
4209 fi
4210 case ${TARGET_SYSTEM_ROOT} in
4211 "${test_prefix}"|"${test_prefix}/"*|\
4212 '${exec_prefix}'|'${exec_prefix}/'*)
4213 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4214 TARGET_SYSTEM_ROOT_DEFINE="$t"
4215 ;;
4216 esac
4217
4218 else
4219
4220 use_sysroot=no
4221 TARGET_SYSTEM_ROOT=
4222 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
4223
4224 fi;
4225
4226
4227
4228
4229
4230 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4231
4232 # Check whether --enable-werror or --disable-werror was given.
4233 if test "${enable_werror+set}" = set; then
4234 enableval="$enable_werror"
4235 case "${enableval}" in
4236 yes | y) ERROR_ON_WARNING="yes" ;;
4237 no | n) ERROR_ON_WARNING="no" ;;
4238 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4239 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4240 { (exit 1); exit 1; }; } ;;
4241 esac
4242 fi;
4243
4244 # Enable -Werror by default when using gcc
4245 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4246 ERROR_ON_WARNING=yes
4247 fi
4248
4249 NO_WERROR=
4250 if test "${ERROR_ON_WARNING}" = yes ; then
4251 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4252 NO_WERROR="-Wno-error"
4253 fi
4254
4255 if test "${GCC}" = yes ; then
4256 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4257 fi
4258
4259 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4260 if test "${enable_build_warnings+set}" = set; then
4261 enableval="$enable_build_warnings"
4262 case "${enableval}" in
4263 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4264 no) if test "${GCC}" = yes ; then
4265 WARN_CFLAGS="-w"
4266 fi;;
4267 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4268 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4269 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4270 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4271 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4272 esac
4273 fi;
4274
4275 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4276 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4277 fi
4278
4279
4280
4281
4282
4283 ac_config_headers="$ac_config_headers config.h:config.in"
4284
4285
4286 if test -z "$target" ; then
4287 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4288 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4289 { (exit 1); exit 1; }; }
4290 fi
4291 if test -z "$host" ; then
4292 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4293 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4294 { (exit 1); exit 1; }; }
4295 fi
4296
4297 # host-specific stuff:
4298
4299 ac_ext=c
4300 ac_cpp='$CPP $CPPFLAGS'
4301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304 if test -n "$ac_tool_prefix"; then
4305 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4306 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4307 echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4309 if test "${ac_cv_prog_CC+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312 if test -n "$CC"; then
4313 ac_cv_prog_CC="$CC" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4325 fi
4326 done
4327 done
4328
4329 fi
4330 fi
4331 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 "$ac_cv_prog_CC"; then
4342 ac_ct_CC=$CC
4343 # Extract the first word of "gcc", so it can be a program name with args.
4344 set dummy gcc; ac_word=$2
4345 echo "$as_me:$LINENO: checking for $ac_word" >&5
4346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4347 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350 if test -n "$ac_ct_CC"; then
4351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4352 else
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH
4355 do
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4360 ac_cv_prog_ac_ct_CC="gcc"
4361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4363 fi
4364 done
4365 done
4366
4367 fi
4368 fi
4369 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4370 if test -n "$ac_ct_CC"; then
4371 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4372 echo "${ECHO_T}$ac_ct_CC" >&6
4373 else
4374 echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6
4376 fi
4377
4378 CC=$ac_ct_CC
4379 else
4380 CC="$ac_cv_prog_CC"
4381 fi
4382
4383 if test -z "$CC"; then
4384 if test -n "$ac_tool_prefix"; then
4385 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4386 set dummy ${ac_tool_prefix}cc; ac_word=$2
4387 echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4389 if test "${ac_cv_prog_CC+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 if test -n "$CC"; then
4393 ac_cv_prog_CC="$CC" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4402 ac_cv_prog_CC="${ac_tool_prefix}cc"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4405 fi
4406 done
4407 done
4408
4409 fi
4410 fi
4411 CC=$ac_cv_prog_CC
4412 if test -n "$CC"; then
4413 echo "$as_me:$LINENO: result: $CC" >&5
4414 echo "${ECHO_T}$CC" >&6
4415 else
4416 echo "$as_me:$LINENO: result: no" >&5
4417 echo "${ECHO_T}no" >&6
4418 fi
4419
4420 fi
4421 if test -z "$ac_cv_prog_CC"; then
4422 ac_ct_CC=$CC
4423 # Extract the first word of "cc", so it can be a program name with args.
4424 set dummy cc; ac_word=$2
4425 echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4427 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 if test -n "$ac_ct_CC"; then
4431 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_ac_ct_CC="cc"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444 done
4445 done
4446
4447 fi
4448 fi
4449 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4450 if test -n "$ac_ct_CC"; then
4451 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4452 echo "${ECHO_T}$ac_ct_CC" >&6
4453 else
4454 echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4456 fi
4457
4458 CC=$ac_ct_CC
4459 else
4460 CC="$ac_cv_prog_CC"
4461 fi
4462
4463 fi
4464 if test -z "$CC"; then
4465 # Extract the first word of "cc", so it can be a program name with args.
4466 set dummy cc; ac_word=$2
4467 echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4469 if test "${ac_cv_prog_CC+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472 if test -n "$CC"; then
4473 ac_cv_prog_CC="$CC" # Let the user override the test.
4474 else
4475 ac_prog_rejected=no
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4478 do
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4483 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4484 ac_prog_rejected=yes
4485 continue
4486 fi
4487 ac_cv_prog_CC="cc"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4490 fi
4491 done
4492 done
4493
4494 if test $ac_prog_rejected = yes; then
4495 # We found a bogon in the path, so make sure we never use it.
4496 set dummy $ac_cv_prog_CC
4497 shift
4498 if test $# != 0; then
4499 # We chose a different compiler from the bogus one.
4500 # However, it has the same basename, so the bogon will be chosen
4501 # first if we set CC to just the basename; use the full file name.
4502 shift
4503 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4504 fi
4505 fi
4506 fi
4507 fi
4508 CC=$ac_cv_prog_CC
4509 if test -n "$CC"; then
4510 echo "$as_me:$LINENO: result: $CC" >&5
4511 echo "${ECHO_T}$CC" >&6
4512 else
4513 echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6
4515 fi
4516
4517 fi
4518 if test -z "$CC"; then
4519 if test -n "$ac_tool_prefix"; then
4520 for ac_prog in cl
4521 do
4522 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4523 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4524 echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4526 if test "${ac_cv_prog_CC+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529 if test -n "$CC"; then
4530 ac_cv_prog_CC="$CC" # Let the user override the test.
4531 else
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH
4534 do
4535 IFS=$as_save_IFS
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4539 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4541 break 2
4542 fi
4543 done
4544 done
4545
4546 fi
4547 fi
4548 CC=$ac_cv_prog_CC
4549 if test -n "$CC"; then
4550 echo "$as_me:$LINENO: result: $CC" >&5
4551 echo "${ECHO_T}$CC" >&6
4552 else
4553 echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6
4555 fi
4556
4557 test -n "$CC" && break
4558 done
4559 fi
4560 if test -z "$CC"; then
4561 ac_ct_CC=$CC
4562 for ac_prog in cl
4563 do
4564 # Extract the first word of "$ac_prog", so it can be a program name with args.
4565 set dummy $ac_prog; ac_word=$2
4566 echo "$as_me:$LINENO: checking for $ac_word" >&5
4567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 if test -n "$ac_ct_CC"; then
4572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4573 else
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4576 do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581 ac_cv_prog_ac_ct_CC="$ac_prog"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4584 fi
4585 done
4586 done
4587
4588 fi
4589 fi
4590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4591 if test -n "$ac_ct_CC"; then
4592 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4593 echo "${ECHO_T}$ac_ct_CC" >&6
4594 else
4595 echo "$as_me:$LINENO: result: no" >&5
4596 echo "${ECHO_T}no" >&6
4597 fi
4598
4599 test -n "$ac_ct_CC" && break
4600 done
4601
4602 CC=$ac_ct_CC
4603 fi
4604
4605 fi
4606
4607
4608 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4609 See \`config.log' for more details." >&5
4610 echo "$as_me: error: no acceptable C compiler found in \$PATH
4611 See \`config.log' for more details." >&2;}
4612 { (exit 1); exit 1; }; }
4613
4614 # Provide some information about the compiler.
4615 echo "$as_me:$LINENO:" \
4616 "checking for C compiler version" >&5
4617 ac_compiler=`set X $ac_compile; echo $2`
4618 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4619 (eval $ac_compiler --version </dev/null >&5) 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }
4623 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4624 (eval $ac_compiler -v </dev/null >&5) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }
4628 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4629 (eval $ac_compiler -V </dev/null >&5) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }
4633
4634 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4635 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4636 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639 cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h. */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4645
4646 int
4647 main ()
4648 {
4649 #ifndef __GNUC__
4650 choke me
4651 #endif
4652
4653 ;
4654 return 0;
4655 }
4656 _ACEOF
4657 rm -f conftest.$ac_objext
4658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4659 (eval $ac_compile) 2>conftest.er1
4660 ac_status=$?
4661 grep -v '^ *+' conftest.er1 >conftest.err
4662 rm -f conftest.er1
4663 cat conftest.err >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try='test -z "$ac_c_werror_flag"
4667 || test ! -s conftest.err'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; } &&
4673 { ac_try='test -s conftest.$ac_objext'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 ac_compiler_gnu=yes
4680 else
4681 echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4683
4684 ac_compiler_gnu=no
4685 fi
4686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4687 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4688
4689 fi
4690 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4691 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4692 GCC=`test $ac_compiler_gnu = yes && echo yes`
4693 ac_test_CFLAGS=${CFLAGS+set}
4694 ac_save_CFLAGS=$CFLAGS
4695 CFLAGS="-g"
4696 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4697 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4698 if test "${ac_cv_prog_cc_g+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701 cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h. */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4707
4708 int
4709 main ()
4710 {
4711
4712 ;
4713 return 0;
4714 }
4715 _ACEOF
4716 rm -f conftest.$ac_objext
4717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4718 (eval $ac_compile) 2>conftest.er1
4719 ac_status=$?
4720 grep -v '^ *+' conftest.er1 >conftest.err
4721 rm -f conftest.er1
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try='test -z "$ac_c_werror_flag"
4726 || test ! -s conftest.err'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try='test -s conftest.$ac_objext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_cv_prog_cc_g=yes
4739 else
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4742
4743 ac_cv_prog_cc_g=no
4744 fi
4745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4746 fi
4747 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4748 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4749 if test "$ac_test_CFLAGS" = set; then
4750 CFLAGS=$ac_save_CFLAGS
4751 elif test $ac_cv_prog_cc_g = yes; then
4752 if test "$GCC" = yes; then
4753 CFLAGS="-g -O2"
4754 else
4755 CFLAGS="-g"
4756 fi
4757 else
4758 if test "$GCC" = yes; then
4759 CFLAGS="-O2"
4760 else
4761 CFLAGS=
4762 fi
4763 fi
4764 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4765 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4766 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769 ac_cv_prog_cc_stdc=no
4770 ac_save_CC=$CC
4771 cat >conftest.$ac_ext <<_ACEOF
4772 /* confdefs.h. */
4773 _ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4777 #include <stdarg.h>
4778 #include <stdio.h>
4779 #include <sys/types.h>
4780 #include <sys/stat.h>
4781 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4782 struct buf { int x; };
4783 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4784 static char *e (p, i)
4785 char **p;
4786 int i;
4787 {
4788 return p[i];
4789 }
4790 static char *f (char * (*g) (char **, int), char **p, ...)
4791 {
4792 char *s;
4793 va_list v;
4794 va_start (v,p);
4795 s = g (p, va_arg (v,int));
4796 va_end (v);
4797 return s;
4798 }
4799
4800 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4801 function prototypes and stuff, but not '\xHH' hex character constants.
4802 These don't provoke an error unfortunately, instead are silently treated
4803 as 'x'. The following induces an error, until -std1 is added to get
4804 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4805 array size at least. It's necessary to write '\x00'==0 to get something
4806 that's true only with -std1. */
4807 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4808
4809 int test (int i, double x);
4810 struct s1 {int (*f) (int a);};
4811 struct s2 {int (*f) (double a);};
4812 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4813 int argc;
4814 char **argv;
4815 int
4816 main ()
4817 {
4818 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4819 ;
4820 return 0;
4821 }
4822 _ACEOF
4823 # Don't try gcc -ansi; that turns off useful extensions and
4824 # breaks some systems' header files.
4825 # AIX -qlanglvl=ansi
4826 # Ultrix and OSF/1 -std1
4827 # HP-UX 10.20 and later -Ae
4828 # HP-UX older versions -Aa -D_HPUX_SOURCE
4829 # SVR4 -Xc -D__EXTENSIONS__
4830 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4831 do
4832 CC="$ac_save_CC $ac_arg"
4833 rm -f conftest.$ac_objext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>conftest.er1
4836 ac_status=$?
4837 grep -v '^ *+' conftest.er1 >conftest.err
4838 rm -f conftest.er1
4839 cat conftest.err >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } &&
4842 { ac_try='test -z "$ac_c_werror_flag"
4843 || test ! -s conftest.err'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; } &&
4849 { ac_try='test -s conftest.$ac_objext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 (eval $ac_try) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 ac_cv_prog_cc_stdc=$ac_arg
4856 break
4857 else
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4860
4861 fi
4862 rm -f conftest.err conftest.$ac_objext
4863 done
4864 rm -f conftest.$ac_ext conftest.$ac_objext
4865 CC=$ac_save_CC
4866
4867 fi
4868
4869 case "x$ac_cv_prog_cc_stdc" in
4870 x|xno)
4871 echo "$as_me:$LINENO: result: none needed" >&5
4872 echo "${ECHO_T}none needed" >&6 ;;
4873 *)
4874 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4875 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4876 CC="$CC $ac_cv_prog_cc_stdc" ;;
4877 esac
4878
4879 # Some people use a C++ compiler to compile C. Since we use `exit',
4880 # in C++ we need to declare it. In case someone uses the same compiler
4881 # for both compiling C and C++ we need to have the C++ compiler decide
4882 # the declaration of exit, since it's the most demanding environment.
4883 cat >conftest.$ac_ext <<_ACEOF
4884 #ifndef __cplusplus
4885 choke me
4886 #endif
4887 _ACEOF
4888 rm -f conftest.$ac_objext
4889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890 (eval $ac_compile) 2>conftest.er1
4891 ac_status=$?
4892 grep -v '^ *+' conftest.er1 >conftest.err
4893 rm -f conftest.er1
4894 cat conftest.err >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } &&
4897 { ac_try='test -z "$ac_c_werror_flag"
4898 || test ! -s conftest.err'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; } &&
4904 { ac_try='test -s conftest.$ac_objext'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 (eval $ac_try) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 for ac_declaration in \
4911 '' \
4912 'extern "C" void std::exit (int) throw (); using std::exit;' \
4913 'extern "C" void std::exit (int); using std::exit;' \
4914 'extern "C" void exit (int) throw ();' \
4915 'extern "C" void exit (int);' \
4916 'void exit (int);'
4917 do
4918 cat >conftest.$ac_ext <<_ACEOF
4919 /* confdefs.h. */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4924 $ac_declaration
4925 #include <stdlib.h>
4926 int
4927 main ()
4928 {
4929 exit (42);
4930 ;
4931 return 0;
4932 }
4933 _ACEOF
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>conftest.er1
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } &&
4943 { ac_try='test -z "$ac_c_werror_flag"
4944 || test ! -s conftest.err'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; } &&
4950 { ac_try='test -s conftest.$ac_objext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4956 :
4957 else
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4960
4961 continue
4962 fi
4963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4964 cat >conftest.$ac_ext <<_ACEOF
4965 /* confdefs.h. */
4966 _ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4970 $ac_declaration
4971 int
4972 main ()
4973 {
4974 exit (42);
4975 ;
4976 return 0;
4977 }
4978 _ACEOF
4979 rm -f conftest.$ac_objext
4980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4981 (eval $ac_compile) 2>conftest.er1
4982 ac_status=$?
4983 grep -v '^ *+' conftest.er1 >conftest.err
4984 rm -f conftest.er1
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try='test -z "$ac_c_werror_flag"
4989 || test ! -s conftest.err'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991 (eval $ac_try) 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; } &&
4995 { ac_try='test -s conftest.$ac_objext'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997 (eval $ac_try) 2>&5
4998 ac_status=$?
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; }; then
5001 break
5002 else
5003 echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5005
5006 fi
5007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5008 done
5009 rm -f conftest*
5010 if test -n "$ac_declaration"; then
5011 echo '#ifdef __cplusplus' >>confdefs.h
5012 echo $ac_declaration >>confdefs.h
5013 echo '#endif' >>confdefs.h
5014 fi
5015
5016 else
5017 echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.$ac_ext >&5
5019
5020 fi
5021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5022 ac_ext=c
5023 ac_cpp='$CPP $CPPFLAGS'
5024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5027
5028 # Find a good install program. We prefer a C program (faster),
5029 # so one script is as good as another. But avoid the broken or
5030 # incompatible versions:
5031 # SysV /etc/install, /usr/sbin/install
5032 # SunOS /usr/etc/install
5033 # IRIX /sbin/install
5034 # AIX /bin/install
5035 # AmigaOS /C/install, which installs bootblocks on floppy discs
5036 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5037 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5038 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5039 # OS/2's system install, which has a completely different semantic
5040 # ./install, which can be erroneously created by make from ./install.sh.
5041 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5042 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5043 if test -z "$INSTALL"; then
5044 if test "${ac_cv_path_install+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 else
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5049 do
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 # Account for people who put trailing slashes in PATH elements.
5053 case $as_dir/ in
5054 ./ | .// | /cC/* | \
5055 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5056 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5057 /usr/ucb/* ) ;;
5058 *)
5059 # OSF1 and SCO ODT 3.0 have their own names for install.
5060 # Don't use installbsd from OSF since it installs stuff as root
5061 # by default.
5062 for ac_prog in ginstall scoinst install; do
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5065 if test $ac_prog = install &&
5066 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5067 # AIX install. It has an incompatible calling convention.
5068 :
5069 elif test $ac_prog = install &&
5070 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5071 # program-specific install script used by HP pwplus--don't use.
5072 :
5073 else
5074 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5075 break 3
5076 fi
5077 fi
5078 done
5079 done
5080 ;;
5081 esac
5082 done
5083
5084
5085 fi
5086 if test "${ac_cv_path_install+set}" = set; then
5087 INSTALL=$ac_cv_path_install
5088 else
5089 # As a last resort, use the slow shell script. We don't cache a
5090 # path for INSTALL within a source directory, because that will
5091 # break other packages using the cache if that directory is
5092 # removed, or if the path is relative.
5093 INSTALL=$ac_install_sh
5094 fi
5095 fi
5096 echo "$as_me:$LINENO: result: $INSTALL" >&5
5097 echo "${ECHO_T}$INSTALL" >&6
5098
5099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5100 # It thinks the first close brace ends the variable substitution.
5101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5102
5103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5104
5105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5106
5107
5108 ALL_LINGUAS="fr sv tr es da vi zh_CN"
5109 # If we haven't got the data from the intl directory,
5110 # assume NLS is disabled.
5111 USE_NLS=no
5112 LIBINTL=
5113 LIBINTL_DEP=
5114 INCINTL=
5115 XGETTEXT=
5116 GMSGFMT=
5117 POSUB=
5118 if test -f ../intl/config.intl; then
5119 . ../intl/config.intl
5120 fi
5121 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5122 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5123 if test x"$USE_NLS" != xyes; then
5124 echo "$as_me:$LINENO: result: no" >&5
5125 echo "${ECHO_T}no" >&6
5126 else
5127 echo "$as_me:$LINENO: result: yes" >&5
5128 echo "${ECHO_T}yes" >&6
5129
5130 cat >>confdefs.h <<\_ACEOF
5131 #define ENABLE_NLS 1
5132 _ACEOF
5133
5134
5135 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5136 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5137 # Look for .po and .gmo files in the source directory.
5138 CATALOGS=
5139 XLINGUAS=
5140 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5141 # If there aren't any .gmo files the shell will give us the
5142 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5143 # weeded out.
5144 case "$cat" in *\**)
5145 continue;;
5146 esac
5147 # The quadruple backslash is collapsed to a double backslash
5148 # by the backticks, then collapsed again by the double quotes,
5149 # leaving us with one backslash in the sed expression (right
5150 # before the dot that mustn't act as a wildcard).
5151 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5152 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5153 # The user is allowed to set LINGUAS to a list of languages to
5154 # install catalogs for. If it's empty that means "all of them."
5155 if test "x$LINGUAS" = x; then
5156 CATALOGS="$CATALOGS $cat"
5157 XLINGUAS="$XLINGUAS $lang"
5158 else
5159 case "$LINGUAS" in *$lang*)
5160 CATALOGS="$CATALOGS $cat"
5161 XLINGUAS="$XLINGUAS $lang"
5162 ;;
5163 esac
5164 fi
5165 done
5166 LINGUAS="$XLINGUAS"
5167 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5168 echo "${ECHO_T}$LINGUAS" >&6
5169
5170
5171 DATADIRNAME=share
5172
5173 INSTOBJEXT=.mo
5174
5175 GENCAT=gencat
5176
5177 CATOBJEXT=.gmo
5178
5179 fi
5180
5181 MKINSTALLDIRS=
5182 if test -n "$ac_aux_dir"; then
5183 case "$ac_aux_dir" in
5184 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5185 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5186 esac
5187 fi
5188 if test -z "$MKINSTALLDIRS"; then
5189 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5190 fi
5191
5192
5193
5194 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5195 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5196 # Check whether --enable-nls or --disable-nls was given.
5197 if test "${enable_nls+set}" = set; then
5198 enableval="$enable_nls"
5199 USE_NLS=$enableval
5200 else
5201 USE_NLS=yes
5202 fi;
5203 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5204 echo "${ECHO_T}$USE_NLS" >&6
5205
5206
5207
5208
5209
5210
5211 # Prepare PATH_SEPARATOR.
5212 # The user is always right.
5213 if test "${PATH_SEPARATOR+set}" != set; then
5214 echo "#! /bin/sh" >conf$$.sh
5215 echo "exit 0" >>conf$$.sh
5216 chmod +x conf$$.sh
5217 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5218 PATH_SEPARATOR=';'
5219 else
5220 PATH_SEPARATOR=:
5221 fi
5222 rm -f conf$$.sh
5223 fi
5224
5225 # Find out how to test for executable files. Don't use a zero-byte file,
5226 # as systems may use methods other than mode bits to determine executability.
5227 cat >conf$$.file <<_ASEOF
5228 #! /bin/sh
5229 exit 0
5230 _ASEOF
5231 chmod +x conf$$.file
5232 if test -x conf$$.file >/dev/null 2>&1; then
5233 ac_executable_p="test -x"
5234 else
5235 ac_executable_p="test -f"
5236 fi
5237 rm -f conf$$.file
5238
5239 # Extract the first word of "msgfmt", so it can be a program name with args.
5240 set dummy msgfmt; ac_word=$2
5241 echo "$as_me:$LINENO: checking for $ac_word" >&5
5242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5243 if test "${ac_cv_path_MSGFMT+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246 case "$MSGFMT" in
5247 [\\/]* | ?:[\\/]*)
5248 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5249 ;;
5250 *)
5251 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5252 for ac_dir in $PATH; do
5253 IFS="$ac_save_IFS"
5254 test -z "$ac_dir" && ac_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5257 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5258 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5259 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5260 break 2
5261 fi
5262 fi
5263 done
5264 done
5265 IFS="$ac_save_IFS"
5266 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5267 ;;
5268 esac
5269 fi
5270 MSGFMT="$ac_cv_path_MSGFMT"
5271 if test "$MSGFMT" != ":"; then
5272 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5273 echo "${ECHO_T}$MSGFMT" >&6
5274 else
5275 echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6
5277 fi
5278
5279 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5280 set dummy gmsgfmt; ac_word=$2
5281 echo "$as_me:$LINENO: checking for $ac_word" >&5
5282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5283 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286 case $GMSGFMT in
5287 [\\/]* | ?:[\\/]*)
5288 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5289 ;;
5290 *)
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5293 do
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5298 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 break 2
5301 fi
5302 done
5303 done
5304
5305 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5306 ;;
5307 esac
5308 fi
5309 GMSGFMT=$ac_cv_path_GMSGFMT
5310
5311 if test -n "$GMSGFMT"; then
5312 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5313 echo "${ECHO_T}$GMSGFMT" >&6
5314 else
5315 echo "$as_me:$LINENO: result: no" >&5
5316 echo "${ECHO_T}no" >&6
5317 fi
5318
5319
5320
5321 # Prepare PATH_SEPARATOR.
5322 # The user is always right.
5323 if test "${PATH_SEPARATOR+set}" != set; then
5324 echo "#! /bin/sh" >conf$$.sh
5325 echo "exit 0" >>conf$$.sh
5326 chmod +x conf$$.sh
5327 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5328 PATH_SEPARATOR=';'
5329 else
5330 PATH_SEPARATOR=:
5331 fi
5332 rm -f conf$$.sh
5333 fi
5334
5335 # Find out how to test for executable files. Don't use a zero-byte file,
5336 # as systems may use methods other than mode bits to determine executability.
5337 cat >conf$$.file <<_ASEOF
5338 #! /bin/sh
5339 exit 0
5340 _ASEOF
5341 chmod +x conf$$.file
5342 if test -x conf$$.file >/dev/null 2>&1; then
5343 ac_executable_p="test -x"
5344 else
5345 ac_executable_p="test -f"
5346 fi
5347 rm -f conf$$.file
5348
5349 # Extract the first word of "xgettext", so it can be a program name with args.
5350 set dummy xgettext; ac_word=$2
5351 echo "$as_me:$LINENO: checking for $ac_word" >&5
5352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5353 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356 case "$XGETTEXT" in
5357 [\\/]* | ?:[\\/]*)
5358 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5359 ;;
5360 *)
5361 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5362 for ac_dir in $PATH; do
5363 IFS="$ac_save_IFS"
5364 test -z "$ac_dir" && ac_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5367 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5368 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5369 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5370 break 2
5371 fi
5372 fi
5373 done
5374 done
5375 IFS="$ac_save_IFS"
5376 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5377 ;;
5378 esac
5379 fi
5380 XGETTEXT="$ac_cv_path_XGETTEXT"
5381 if test "$XGETTEXT" != ":"; then
5382 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5383 echo "${ECHO_T}$XGETTEXT" >&6
5384 else
5385 echo "$as_me:$LINENO: result: no" >&5
5386 echo "${ECHO_T}no" >&6
5387 fi
5388
5389 rm -f messages.po
5390
5391
5392 # Prepare PATH_SEPARATOR.
5393 # The user is always right.
5394 if test "${PATH_SEPARATOR+set}" != set; then
5395 echo "#! /bin/sh" >conf$$.sh
5396 echo "exit 0" >>conf$$.sh
5397 chmod +x conf$$.sh
5398 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5399 PATH_SEPARATOR=';'
5400 else
5401 PATH_SEPARATOR=:
5402 fi
5403 rm -f conf$$.sh
5404 fi
5405
5406 # Find out how to test for executable files. Don't use a zero-byte file,
5407 # as systems may use methods other than mode bits to determine executability.
5408 cat >conf$$.file <<_ASEOF
5409 #! /bin/sh
5410 exit 0
5411 _ASEOF
5412 chmod +x conf$$.file
5413 if test -x conf$$.file >/dev/null 2>&1; then
5414 ac_executable_p="test -x"
5415 else
5416 ac_executable_p="test -f"
5417 fi
5418 rm -f conf$$.file
5419
5420 # Extract the first word of "msgmerge", so it can be a program name with args.
5421 set dummy msgmerge; ac_word=$2
5422 echo "$as_me:$LINENO: checking for $ac_word" >&5
5423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5424 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427 case "$MSGMERGE" in
5428 [\\/]* | ?:[\\/]*)
5429 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5430 ;;
5431 *)
5432 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5433 for ac_dir in $PATH; do
5434 IFS="$ac_save_IFS"
5435 test -z "$ac_dir" && ac_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5438 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5439 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5440 break 2
5441 fi
5442 fi
5443 done
5444 done
5445 IFS="$ac_save_IFS"
5446 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5447 ;;
5448 esac
5449 fi
5450 MSGMERGE="$ac_cv_path_MSGMERGE"
5451 if test "$MSGMERGE" != ":"; then
5452 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5453 echo "${ECHO_T}$MSGMERGE" >&6
5454 else
5455 echo "$as_me:$LINENO: result: no" >&5
5456 echo "${ECHO_T}no" >&6
5457 fi
5458
5459
5460 if test "$GMSGFMT" != ":"; then
5461 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5462 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5463 : ;
5464 else
5465 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5466 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5467 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5468 GMSGFMT=":"
5469 fi
5470 fi
5471
5472 if test "$XGETTEXT" != ":"; then
5473 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5474 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5475 : ;
5476 else
5477 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5478 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5479 XGETTEXT=":"
5480 fi
5481 rm -f messages.po
5482 fi
5483
5484 ac_config_commands="$ac_config_commands default-1"
5485
5486
5487
5488
5489
5490 for ac_prog in 'bison -y' byacc
5491 do
5492 # Extract the first word of "$ac_prog", so it can be a program name with args.
5493 set dummy $ac_prog; ac_word=$2
5494 echo "$as_me:$LINENO: checking for $ac_word" >&5
5495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5496 if test "${ac_cv_prog_YACC+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499 if test -n "$YACC"; then
5500 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509 ac_cv_prog_YACC="$ac_prog"
5510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 break 2
5512 fi
5513 done
5514 done
5515
5516 fi
5517 fi
5518 YACC=$ac_cv_prog_YACC
5519 if test -n "$YACC"; then
5520 echo "$as_me:$LINENO: result: $YACC" >&5
5521 echo "${ECHO_T}$YACC" >&6
5522 else
5523 echo "$as_me:$LINENO: result: no" >&5
5524 echo "${ECHO_T}no" >&6
5525 fi
5526
5527 test -n "$YACC" && break
5528 done
5529 test -n "$YACC" || YACC="yacc"
5530
5531 for ac_prog in flex lex
5532 do
5533 # Extract the first word of "$ac_prog", so it can be a program name with args.
5534 set dummy $ac_prog; ac_word=$2
5535 echo "$as_me:$LINENO: checking for $ac_word" >&5
5536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5537 if test "${ac_cv_prog_LEX+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 else
5540 if test -n "$LEX"; then
5541 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550 ac_cv_prog_LEX="$ac_prog"
5551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 break 2
5553 fi
5554 done
5555 done
5556
5557 fi
5558 fi
5559 LEX=$ac_cv_prog_LEX
5560 if test -n "$LEX"; then
5561 echo "$as_me:$LINENO: result: $LEX" >&5
5562 echo "${ECHO_T}$LEX" >&6
5563 else
5564 echo "$as_me:$LINENO: result: no" >&5
5565 echo "${ECHO_T}no" >&6
5566 fi
5567
5568 test -n "$LEX" && break
5569 done
5570 test -n "$LEX" || LEX=":"
5571
5572 if test -z "$LEXLIB"
5573 then
5574 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5575 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5576 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579 ac_check_lib_save_LIBS=$LIBS
5580 LIBS="-lfl $LIBS"
5581 cat >conftest.$ac_ext <<_ACEOF
5582 /* confdefs.h. */
5583 _ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5587
5588 /* Override any gcc2 internal prototype to avoid an error. */
5589 #ifdef __cplusplus
5590 extern "C"
5591 #endif
5592 /* We use char because int might match the return type of a gcc2
5593 builtin and then its argument prototype would still apply. */
5594 char yywrap ();
5595 int
5596 main ()
5597 {
5598 yywrap ();
5599 ;
5600 return 0;
5601 }
5602 _ACEOF
5603 rm -f conftest.$ac_objext conftest$ac_exeext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5605 (eval $ac_link) 2>conftest.er1
5606 ac_status=$?
5607 grep -v '^ *+' conftest.er1 >conftest.err
5608 rm -f conftest.er1
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } &&
5612 { ac_try='test -z "$ac_c_werror_flag"
5613 || test ! -s conftest.err'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 (eval $ac_try) 2>&5
5616 ac_status=$?
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; } &&
5619 { ac_try='test -s conftest$ac_exeext'
5620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 (eval $ac_try) 2>&5
5622 ac_status=$?
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; }; then
5625 ac_cv_lib_fl_yywrap=yes
5626 else
5627 echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5629
5630 ac_cv_lib_fl_yywrap=no
5631 fi
5632 rm -f conftest.err conftest.$ac_objext \
5633 conftest$ac_exeext conftest.$ac_ext
5634 LIBS=$ac_check_lib_save_LIBS
5635 fi
5636 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5637 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5638 if test $ac_cv_lib_fl_yywrap = yes; then
5639 LEXLIB="-lfl"
5640 else
5641 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5642 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5643 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646 ac_check_lib_save_LIBS=$LIBS
5647 LIBS="-ll $LIBS"
5648 cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h. */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654
5655 /* Override any gcc2 internal prototype to avoid an error. */
5656 #ifdef __cplusplus
5657 extern "C"
5658 #endif
5659 /* We use char because int might match the return type of a gcc2
5660 builtin and then its argument prototype would still apply. */
5661 char yywrap ();
5662 int
5663 main ()
5664 {
5665 yywrap ();
5666 ;
5667 return 0;
5668 }
5669 _ACEOF
5670 rm -f conftest.$ac_objext conftest$ac_exeext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5672 (eval $ac_link) 2>conftest.er1
5673 ac_status=$?
5674 grep -v '^ *+' conftest.er1 >conftest.err
5675 rm -f conftest.er1
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try='test -z "$ac_c_werror_flag"
5680 || test ! -s conftest.err'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try='test -s conftest$ac_exeext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_lib_l_yywrap=yes
5693 else
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5696
5697 ac_cv_lib_l_yywrap=no
5698 fi
5699 rm -f conftest.err conftest.$ac_objext \
5700 conftest$ac_exeext conftest.$ac_ext
5701 LIBS=$ac_check_lib_save_LIBS
5702 fi
5703 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5704 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5705 if test $ac_cv_lib_l_yywrap = yes; then
5706 LEXLIB="-ll"
5707 fi
5708
5709 fi
5710
5711 fi
5712
5713 if test "x$LEX" != "x:"; then
5714 echo "$as_me:$LINENO: checking lex output file root" >&5
5715 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5716 if test "${ac_cv_prog_lex_root+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719 # The minimal lex program is just a single line: %%. But some broken lexes
5720 # (Solaris, I think it was) want two %% lines, so accommodate them.
5721 cat >conftest.l <<_ACEOF
5722 %%
5723 %%
5724 _ACEOF
5725 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5726 (eval $LEX conftest.l) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }
5730 if test -f lex.yy.c; then
5731 ac_cv_prog_lex_root=lex.yy
5732 elif test -f lexyy.c; then
5733 ac_cv_prog_lex_root=lexyy
5734 else
5735 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5736 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5737 { (exit 1); exit 1; }; }
5738 fi
5739 fi
5740 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5741 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5742 rm -f conftest.l
5743 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5744
5745 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5746 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5747 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750 # POSIX says lex can declare yytext either as a pointer or an array; the
5751 # default is implementation-dependent. Figure out which it is, since
5752 # not all implementations provide the %pointer and %array declarations.
5753 ac_cv_prog_lex_yytext_pointer=no
5754 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5755 ac_save_LIBS=$LIBS
5756 LIBS="$LIBS $LEXLIB"
5757 cat >conftest.$ac_ext <<_ACEOF
5758 `cat $LEX_OUTPUT_ROOT.c`
5759 _ACEOF
5760 rm -f conftest.$ac_objext conftest$ac_exeext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5762 (eval $ac_link) 2>conftest.er1
5763 ac_status=$?
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } &&
5769 { ac_try='test -z "$ac_c_werror_flag"
5770 || test ! -s conftest.err'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 (eval $ac_try) 2>&5
5773 ac_status=$?
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; } &&
5776 { ac_try='test -s conftest$ac_exeext'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 (eval $ac_try) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5782 ac_cv_prog_lex_yytext_pointer=yes
5783 else
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5786
5787 fi
5788 rm -f conftest.err conftest.$ac_objext \
5789 conftest$ac_exeext conftest.$ac_ext
5790 LIBS=$ac_save_LIBS
5791 rm -f "${LEX_OUTPUT_ROOT}.c"
5792
5793 fi
5794 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5795 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5796 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5797
5798 cat >>confdefs.h <<\_ACEOF
5799 #define YYTEXT_POINTER 1
5800 _ACEOF
5801
5802 fi
5803
5804 fi
5805 if test "$LEX" = :; then
5806 LEX=${am_missing_run}flex
5807 fi
5808
5809 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5810 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5811 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5812 if test "${enable_maintainer_mode+set}" = set; then
5813 enableval="$enable_maintainer_mode"
5814 USE_MAINTAINER_MODE=$enableval
5815 else
5816 USE_MAINTAINER_MODE=no
5817 fi;
5818 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5819 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5820
5821
5822 if test $USE_MAINTAINER_MODE = yes; then
5823 MAINTAINER_MODE_TRUE=
5824 MAINTAINER_MODE_FALSE='#'
5825 else
5826 MAINTAINER_MODE_TRUE='#'
5827 MAINTAINER_MODE_FALSE=
5828 fi
5829
5830 MAINT=$MAINTAINER_MODE_TRUE
5831
5832
5833
5834 . ${srcdir}/configure.host
5835
5836
5837
5838
5839
5840
5841 ac_ext=c
5842 ac_cpp='$CPP $CPPFLAGS'
5843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5846 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5847 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5848 # On Suns, sometimes $CPP names a directory.
5849 if test -n "$CPP" && test -d "$CPP"; then
5850 CPP=
5851 fi
5852 if test -z "$CPP"; then
5853 if test "${ac_cv_prog_CPP+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856 # Double quotes because CPP needs to be expanded
5857 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5858 do
5859 ac_preproc_ok=false
5860 for ac_c_preproc_warn_flag in '' yes
5861 do
5862 # Use a header file that comes with gcc, so configuring glibc
5863 # with a fresh cross-compiler works.
5864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5865 # <limits.h> exists even on freestanding compilers.
5866 # On the NeXT, cc -E runs the code through the compiler's parser,
5867 # not just through cpp. "Syntax error" is here to catch this case.
5868 cat >conftest.$ac_ext <<_ACEOF
5869 /* confdefs.h. */
5870 _ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5874 #ifdef __STDC__
5875 # include <limits.h>
5876 #else
5877 # include <assert.h>
5878 #endif
5879 Syntax error
5880 _ACEOF
5881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5883 ac_status=$?
5884 grep -v '^ *+' conftest.er1 >conftest.err
5885 rm -f conftest.er1
5886 cat conftest.err >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } >/dev/null; then
5889 if test -s conftest.err; then
5890 ac_cpp_err=$ac_c_preproc_warn_flag
5891 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5892 else
5893 ac_cpp_err=
5894 fi
5895 else
5896 ac_cpp_err=yes
5897 fi
5898 if test -z "$ac_cpp_err"; then
5899 :
5900 else
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5903
5904 # Broken: fails on valid input.
5905 continue
5906 fi
5907 rm -f conftest.err conftest.$ac_ext
5908
5909 # OK, works on sane cases. Now check whether non-existent headers
5910 # can be detected and how.
5911 cat >conftest.$ac_ext <<_ACEOF
5912 /* confdefs.h. */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 #include <ac_nonexistent.h>
5918 _ACEOF
5919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } >/dev/null; then
5927 if test -s conftest.err; then
5928 ac_cpp_err=$ac_c_preproc_warn_flag
5929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5930 else
5931 ac_cpp_err=
5932 fi
5933 else
5934 ac_cpp_err=yes
5935 fi
5936 if test -z "$ac_cpp_err"; then
5937 # Broken: success on invalid input.
5938 continue
5939 else
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5942
5943 # Passes both tests.
5944 ac_preproc_ok=:
5945 break
5946 fi
5947 rm -f conftest.err conftest.$ac_ext
5948
5949 done
5950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5951 rm -f conftest.err conftest.$ac_ext
5952 if $ac_preproc_ok; then
5953 break
5954 fi
5955
5956 done
5957 ac_cv_prog_CPP=$CPP
5958
5959 fi
5960 CPP=$ac_cv_prog_CPP
5961 else
5962 ac_cv_prog_CPP=$CPP
5963 fi
5964 echo "$as_me:$LINENO: result: $CPP" >&5
5965 echo "${ECHO_T}$CPP" >&6
5966 ac_preproc_ok=false
5967 for ac_c_preproc_warn_flag in '' yes
5968 do
5969 # Use a header file that comes with gcc, so configuring glibc
5970 # with a fresh cross-compiler works.
5971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5972 # <limits.h> exists even on freestanding compilers.
5973 # On the NeXT, cc -E runs the code through the compiler's parser,
5974 # not just through cpp. "Syntax error" is here to catch this case.
5975 cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h. */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 #ifdef __STDC__
5982 # include <limits.h>
5983 #else
5984 # include <assert.h>
5985 #endif
5986 Syntax error
5987 _ACEOF
5988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5990 ac_status=$?
5991 grep -v '^ *+' conftest.er1 >conftest.err
5992 rm -f conftest.er1
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } >/dev/null; then
5996 if test -s conftest.err; then
5997 ac_cpp_err=$ac_c_preproc_warn_flag
5998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5999 else
6000 ac_cpp_err=
6001 fi
6002 else
6003 ac_cpp_err=yes
6004 fi
6005 if test -z "$ac_cpp_err"; then
6006 :
6007 else
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6010
6011 # Broken: fails on valid input.
6012 continue
6013 fi
6014 rm -f conftest.err conftest.$ac_ext
6015
6016 # OK, works on sane cases. Now check whether non-existent headers
6017 # can be detected and how.
6018 cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h. */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 #include <ac_nonexistent.h>
6025 _ACEOF
6026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6028 ac_status=$?
6029 grep -v '^ *+' conftest.er1 >conftest.err
6030 rm -f conftest.er1
6031 cat conftest.err >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } >/dev/null; then
6034 if test -s conftest.err; then
6035 ac_cpp_err=$ac_c_preproc_warn_flag
6036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6037 else
6038 ac_cpp_err=
6039 fi
6040 else
6041 ac_cpp_err=yes
6042 fi
6043 if test -z "$ac_cpp_err"; then
6044 # Broken: success on invalid input.
6045 continue
6046 else
6047 echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.$ac_ext >&5
6049
6050 # Passes both tests.
6051 ac_preproc_ok=:
6052 break
6053 fi
6054 rm -f conftest.err conftest.$ac_ext
6055
6056 done
6057 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6058 rm -f conftest.err conftest.$ac_ext
6059 if $ac_preproc_ok; then
6060 :
6061 else
6062 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6063 See \`config.log' for more details." >&5
6064 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6065 See \`config.log' for more details." >&2;}
6066 { (exit 1); exit 1; }; }
6067 fi
6068
6069 ac_ext=c
6070 ac_cpp='$CPP $CPPFLAGS'
6071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6074
6075
6076 echo "$as_me:$LINENO: checking for egrep" >&5
6077 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6078 if test "${ac_cv_prog_egrep+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6082 then ac_cv_prog_egrep='grep -E'
6083 else ac_cv_prog_egrep='egrep'
6084 fi
6085 fi
6086 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6087 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6088 EGREP=$ac_cv_prog_egrep
6089
6090
6091 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6092 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6093 if test "${ac_cv_header_stdc+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096 cat >conftest.$ac_ext <<_ACEOF
6097 /* confdefs.h. */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6102 #include <stdlib.h>
6103 #include <stdarg.h>
6104 #include <string.h>
6105 #include <float.h>
6106
6107 int
6108 main ()
6109 {
6110
6111 ;
6112 return 0;
6113 }
6114 _ACEOF
6115 rm -f conftest.$ac_objext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6117 (eval $ac_compile) 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -z "$ac_c_werror_flag"
6125 || test ! -s conftest.err'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try='test -s conftest.$ac_objext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 (eval $ac_try) 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 ac_cv_header_stdc=yes
6138 else
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6141
6142 ac_cv_header_stdc=no
6143 fi
6144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6145
6146 if test $ac_cv_header_stdc = yes; then
6147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6148 cat >conftest.$ac_ext <<_ACEOF
6149 /* confdefs.h. */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6154 #include <string.h>
6155
6156 _ACEOF
6157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6158 $EGREP "memchr" >/dev/null 2>&1; then
6159 :
6160 else
6161 ac_cv_header_stdc=no
6162 fi
6163 rm -f conftest*
6164
6165 fi
6166
6167 if test $ac_cv_header_stdc = yes; then
6168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6169 cat >conftest.$ac_ext <<_ACEOF
6170 /* confdefs.h. */
6171 _ACEOF
6172 cat confdefs.h >>conftest.$ac_ext
6173 cat >>conftest.$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6175 #include <stdlib.h>
6176
6177 _ACEOF
6178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6179 $EGREP "free" >/dev/null 2>&1; then
6180 :
6181 else
6182 ac_cv_header_stdc=no
6183 fi
6184 rm -f conftest*
6185
6186 fi
6187
6188 if test $ac_cv_header_stdc = yes; then
6189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6190 if test "$cross_compiling" = yes; then
6191 :
6192 else
6193 cat >conftest.$ac_ext <<_ACEOF
6194 /* confdefs.h. */
6195 _ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6199 #include <ctype.h>
6200 #if ((' ' & 0x0FF) == 0x020)
6201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6203 #else
6204 # define ISLOWER(c) \
6205 (('a' <= (c) && (c) <= 'i') \
6206 || ('j' <= (c) && (c) <= 'r') \
6207 || ('s' <= (c) && (c) <= 'z'))
6208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6209 #endif
6210
6211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6212 int
6213 main ()
6214 {
6215 int i;
6216 for (i = 0; i < 256; i++)
6217 if (XOR (islower (i), ISLOWER (i))
6218 || toupper (i) != TOUPPER (i))
6219 exit(2);
6220 exit (0);
6221 }
6222 _ACEOF
6223 rm -f conftest$ac_exeext
6224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6225 (eval $ac_link) 2>&5
6226 ac_status=$?
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 (eval $ac_try) 2>&5
6231 ac_status=$?
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 :
6235 else
6236 echo "$as_me: program exited with status $ac_status" >&5
6237 echo "$as_me: failed program was:" >&5
6238 sed 's/^/| /' conftest.$ac_ext >&5
6239
6240 ( exit $ac_status )
6241 ac_cv_header_stdc=no
6242 fi
6243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6244 fi
6245 fi
6246 fi
6247 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6248 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6249 if test $ac_cv_header_stdc = yes; then
6250
6251 cat >>confdefs.h <<\_ACEOF
6252 #define STDC_HEADERS 1
6253 _ACEOF
6254
6255 fi
6256
6257 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6268 inttypes.h stdint.h unistd.h
6269 do
6270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6271 echo "$as_me:$LINENO: checking for $ac_header" >&5
6272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 else
6276 cat >conftest.$ac_ext <<_ACEOF
6277 /* confdefs.h. */
6278 _ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6282 $ac_includes_default
6283
6284 #include <$ac_header>
6285 _ACEOF
6286 rm -f conftest.$ac_objext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288 (eval $ac_compile) 2>conftest.er1
6289 ac_status=$?
6290 grep -v '^ *+' conftest.er1 >conftest.err
6291 rm -f conftest.er1
6292 cat conftest.err >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try='test -z "$ac_c_werror_flag"
6296 || test ! -s conftest.err'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 (eval $ac_try) 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; } &&
6302 { ac_try='test -s conftest.$ac_objext'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 (eval $ac_try) 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 eval "$as_ac_Header=yes"
6309 else
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6312
6313 eval "$as_ac_Header=no"
6314 fi
6315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6316 fi
6317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6320 cat >>confdefs.h <<_ACEOF
6321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6322 _ACEOF
6323
6324 fi
6325
6326 done
6327
6328
6329
6330
6331
6332
6333
6334 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h
6335 do
6336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6338 echo "$as_me:$LINENO: checking for $ac_header" >&5
6339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 fi
6343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6345 else
6346 # Is the header compilable?
6347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6349 cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h. */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 $ac_includes_default
6356 #include <$ac_header>
6357 _ACEOF
6358 rm -f conftest.$ac_objext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6360 (eval $ac_compile) 2>conftest.er1
6361 ac_status=$?
6362 grep -v '^ *+' conftest.er1 >conftest.err
6363 rm -f conftest.er1
6364 cat conftest.err >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } &&
6367 { ac_try='test -z "$ac_c_werror_flag"
6368 || test ! -s conftest.err'
6369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 (eval $ac_try) 2>&5
6371 ac_status=$?
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; } &&
6374 { ac_try='test -s conftest.$ac_objext'
6375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376 (eval $ac_try) 2>&5
6377 ac_status=$?
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; }; then
6380 ac_header_compiler=yes
6381 else
6382 echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6384
6385 ac_header_compiler=no
6386 fi
6387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6389 echo "${ECHO_T}$ac_header_compiler" >&6
6390
6391 # Is the header present?
6392 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6394 cat >conftest.$ac_ext <<_ACEOF
6395 /* confdefs.h. */
6396 _ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6400 #include <$ac_header>
6401 _ACEOF
6402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6404 ac_status=$?
6405 grep -v '^ *+' conftest.er1 >conftest.err
6406 rm -f conftest.er1
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } >/dev/null; then
6410 if test -s conftest.err; then
6411 ac_cpp_err=$ac_c_preproc_warn_flag
6412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6413 else
6414 ac_cpp_err=
6415 fi
6416 else
6417 ac_cpp_err=yes
6418 fi
6419 if test -z "$ac_cpp_err"; then
6420 ac_header_preproc=yes
6421 else
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6424
6425 ac_header_preproc=no
6426 fi
6427 rm -f conftest.err conftest.$ac_ext
6428 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6429 echo "${ECHO_T}$ac_header_preproc" >&6
6430
6431 # So? What about this header?
6432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6433 yes:no: )
6434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6437 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6438 ac_header_preproc=yes
6439 ;;
6440 no:yes:* )
6441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6444 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6445 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6446 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6447 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6448 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6452 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6453 (
6454 cat <<\_ASBOX
6455 ## ------------------------------------------ ##
6456 ## Report this to the AC_PACKAGE_NAME lists. ##
6457 ## ------------------------------------------ ##
6458 _ASBOX
6459 ) |
6460 sed "s/^/$as_me: WARNING: /" >&2
6461 ;;
6462 esac
6463 echo "$as_me:$LINENO: checking for $ac_header" >&5
6464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468 eval "$as_ac_Header=\$ac_header_preproc"
6469 fi
6470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6472
6473 fi
6474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6475 cat >>confdefs.h <<_ACEOF
6476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6477 _ACEOF
6478
6479 fi
6480
6481 done
6482
6483
6484
6485
6486 for ac_func in sbrk realpath glob
6487 do
6488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6489 echo "$as_me:$LINENO: checking for $ac_func" >&5
6490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6491 if eval "test \"\${$as_ac_var+set}\" = set"; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494 cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h. */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6502 #define $ac_func innocuous_$ac_func
6503
6504 /* System header to define __stub macros and hopefully few prototypes,
6505 which can conflict with char $ac_func (); below.
6506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6507 <limits.h> exists even on freestanding compilers. */
6508
6509 #ifdef __STDC__
6510 # include <limits.h>
6511 #else
6512 # include <assert.h>
6513 #endif
6514
6515 #undef $ac_func
6516
6517 /* Override any gcc2 internal prototype to avoid an error. */
6518 #ifdef __cplusplus
6519 extern "C"
6520 {
6521 #endif
6522 /* We use char because int might match the return type of a gcc2
6523 builtin and then its argument prototype would still apply. */
6524 char $ac_func ();
6525 /* The GNU C library defines this for functions which it implements
6526 to always fail with ENOSYS. Some functions are actually named
6527 something starting with __ and the normal name is an alias. */
6528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6529 choke me
6530 #else
6531 char (*f) () = $ac_func;
6532 #endif
6533 #ifdef __cplusplus
6534 }
6535 #endif
6536
6537 int
6538 main ()
6539 {
6540 return f != $ac_func;
6541 ;
6542 return 0;
6543 }
6544 _ACEOF
6545 rm -f conftest.$ac_objext conftest$ac_exeext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547 (eval $ac_link) 2>conftest.er1
6548 ac_status=$?
6549 grep -v '^ *+' conftest.er1 >conftest.err
6550 rm -f conftest.er1
6551 cat conftest.err >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } &&
6554 { ac_try='test -z "$ac_c_werror_flag"
6555 || test ! -s conftest.err'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 (eval $ac_try) 2>&5
6558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; } &&
6561 { ac_try='test -s conftest$ac_exeext'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 (eval $ac_try) 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
6567 eval "$as_ac_var=yes"
6568 else
6569 echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6571
6572 eval "$as_ac_var=no"
6573 fi
6574 rm -f conftest.err conftest.$ac_objext \
6575 conftest$ac_exeext conftest.$ac_ext
6576 fi
6577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6579 if test `eval echo '${'$as_ac_var'}'` = yes; then
6580 cat >>confdefs.h <<_ACEOF
6581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6582 _ACEOF
6583
6584 fi
6585 done
6586
6587
6588
6589
6590
6591
6592 ac_header_dirent=no
6593 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6594 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6595 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6596 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 else
6600 cat >conftest.$ac_ext <<_ACEOF
6601 /* confdefs.h. */
6602 _ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6606 #include <sys/types.h>
6607 #include <$ac_hdr>
6608
6609 int
6610 main ()
6611 {
6612 if ((DIR *) 0)
6613 return 0;
6614 ;
6615 return 0;
6616 }
6617 _ACEOF
6618 rm -f conftest.$ac_objext
6619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6620 (eval $ac_compile) 2>conftest.er1
6621 ac_status=$?
6622 grep -v '^ *+' conftest.er1 >conftest.err
6623 rm -f conftest.er1
6624 cat conftest.err >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 { ac_try='test -z "$ac_c_werror_flag"
6628 || test ! -s conftest.err'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 (eval $ac_try) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; } &&
6634 { ac_try='test -s conftest.$ac_objext'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 (eval $ac_try) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 eval "$as_ac_Header=yes"
6641 else
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6644
6645 eval "$as_ac_Header=no"
6646 fi
6647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6648 fi
6649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6652 cat >>confdefs.h <<_ACEOF
6653 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6654 _ACEOF
6655
6656 ac_header_dirent=$ac_hdr; break
6657 fi
6658
6659 done
6660 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6661 if test $ac_header_dirent = dirent.h; then
6662 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6663 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6664 if test "${ac_cv_search_opendir+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667 ac_func_search_save_LIBS=$LIBS
6668 ac_cv_search_opendir=no
6669 cat >conftest.$ac_ext <<_ACEOF
6670 /* confdefs.h. */
6671 _ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675
6676 /* Override any gcc2 internal prototype to avoid an error. */
6677 #ifdef __cplusplus
6678 extern "C"
6679 #endif
6680 /* We use char because int might match the return type of a gcc2
6681 builtin and then its argument prototype would still apply. */
6682 char opendir ();
6683 int
6684 main ()
6685 {
6686 opendir ();
6687 ;
6688 return 0;
6689 }
6690 _ACEOF
6691 rm -f conftest.$ac_objext conftest$ac_exeext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6693 (eval $ac_link) 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try='test -z "$ac_c_werror_flag"
6701 || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest$ac_exeext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_cv_search_opendir="none required"
6714 else
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6717
6718 fi
6719 rm -f conftest.err conftest.$ac_objext \
6720 conftest$ac_exeext conftest.$ac_ext
6721 if test "$ac_cv_search_opendir" = no; then
6722 for ac_lib in dir; do
6723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6724 cat >conftest.$ac_ext <<_ACEOF
6725 /* confdefs.h. */
6726 _ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6730
6731 /* Override any gcc2 internal prototype to avoid an error. */
6732 #ifdef __cplusplus
6733 extern "C"
6734 #endif
6735 /* We use char because int might match the return type of a gcc2
6736 builtin and then its argument prototype would still apply. */
6737 char opendir ();
6738 int
6739 main ()
6740 {
6741 opendir ();
6742 ;
6743 return 0;
6744 }
6745 _ACEOF
6746 rm -f conftest.$ac_objext conftest$ac_exeext
6747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6748 (eval $ac_link) 2>conftest.er1
6749 ac_status=$?
6750 grep -v '^ *+' conftest.er1 >conftest.err
6751 rm -f conftest.er1
6752 cat conftest.err >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } &&
6755 { ac_try='test -z "$ac_c_werror_flag"
6756 || test ! -s conftest.err'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 (eval $ac_try) 2>&5
6759 ac_status=$?
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; } &&
6762 { ac_try='test -s conftest$ac_exeext'
6763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764 (eval $ac_try) 2>&5
6765 ac_status=$?
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); }; }; then
6768 ac_cv_search_opendir="-l$ac_lib"
6769 break
6770 else
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6773
6774 fi
6775 rm -f conftest.err conftest.$ac_objext \
6776 conftest$ac_exeext conftest.$ac_ext
6777 done
6778 fi
6779 LIBS=$ac_func_search_save_LIBS
6780 fi
6781 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6782 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6783 if test "$ac_cv_search_opendir" != no; then
6784 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6785
6786 fi
6787
6788 else
6789 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6790 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6791 if test "${ac_cv_search_opendir+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794 ac_func_search_save_LIBS=$LIBS
6795 ac_cv_search_opendir=no
6796 cat >conftest.$ac_ext <<_ACEOF
6797 /* confdefs.h. */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802
6803 /* Override any gcc2 internal prototype to avoid an error. */
6804 #ifdef __cplusplus
6805 extern "C"
6806 #endif
6807 /* We use char because int might match the return type of a gcc2
6808 builtin and then its argument prototype would still apply. */
6809 char opendir ();
6810 int
6811 main ()
6812 {
6813 opendir ();
6814 ;
6815 return 0;
6816 }
6817 _ACEOF
6818 rm -f conftest.$ac_objext conftest$ac_exeext
6819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6820 (eval $ac_link) 2>conftest.er1
6821 ac_status=$?
6822 grep -v '^ *+' conftest.er1 >conftest.err
6823 rm -f conftest.er1
6824 cat conftest.err >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } &&
6827 { ac_try='test -z "$ac_c_werror_flag"
6828 || test ! -s conftest.err'
6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 (eval $ac_try) 2>&5
6831 ac_status=$?
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; } &&
6834 { ac_try='test -s conftest$ac_exeext'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 (eval $ac_try) 2>&5
6837 ac_status=$?
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; }; then
6840 ac_cv_search_opendir="none required"
6841 else
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6844
6845 fi
6846 rm -f conftest.err conftest.$ac_objext \
6847 conftest$ac_exeext conftest.$ac_ext
6848 if test "$ac_cv_search_opendir" = no; then
6849 for ac_lib in x; do
6850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6851 cat >conftest.$ac_ext <<_ACEOF
6852 /* confdefs.h. */
6853 _ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6857
6858 /* Override any gcc2 internal prototype to avoid an error. */
6859 #ifdef __cplusplus
6860 extern "C"
6861 #endif
6862 /* We use char because int might match the return type of a gcc2
6863 builtin and then its argument prototype would still apply. */
6864 char opendir ();
6865 int
6866 main ()
6867 {
6868 opendir ();
6869 ;
6870 return 0;
6871 }
6872 _ACEOF
6873 rm -f conftest.$ac_objext conftest$ac_exeext
6874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6875 (eval $ac_link) 2>conftest.er1
6876 ac_status=$?
6877 grep -v '^ *+' conftest.er1 >conftest.err
6878 rm -f conftest.er1
6879 cat conftest.err >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } &&
6882 { ac_try='test -z "$ac_c_werror_flag"
6883 || test ! -s conftest.err'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 (eval $ac_try) 2>&5
6886 ac_status=$?
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; } &&
6889 { ac_try='test -s conftest$ac_exeext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_cv_search_opendir="-l$ac_lib"
6896 break
6897 else
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6900
6901 fi
6902 rm -f conftest.err conftest.$ac_objext \
6903 conftest$ac_exeext conftest.$ac_ext
6904 done
6905 fi
6906 LIBS=$ac_func_search_save_LIBS
6907 fi
6908 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6909 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6910 if test "$ac_cv_search_opendir" != no; then
6911 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6912
6913 fi
6914
6915 fi
6916
6917
6918 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
6919 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
6920 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 else
6923 cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h. */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6929 #include <unistd.h>
6930 int
6931 main ()
6932 {
6933 extern int getopt (int, char *const*, const char *);
6934 ;
6935 return 0;
6936 }
6937 _ACEOF
6938 rm -f conftest.$ac_objext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6940 (eval $ac_compile) 2>conftest.er1
6941 ac_status=$?
6942 grep -v '^ *+' conftest.er1 >conftest.err
6943 rm -f conftest.er1
6944 cat conftest.err >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } &&
6947 { ac_try='test -z "$ac_c_werror_flag"
6948 || test ! -s conftest.err'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 (eval $ac_try) 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; } &&
6954 { ac_try='test -s conftest.$ac_objext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6960 ld_cv_decl_getopt_unistd_h=yes
6961 else
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6964
6965 ld_cv_decl_getopt_unistd_h=no
6966 fi
6967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6968 fi
6969
6970 echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
6971 echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
6972 if test $ld_cv_decl_getopt_unistd_h = yes; then
6973
6974 cat >>confdefs.h <<\_ACEOF
6975 #define HAVE_DECL_GETOPT 1
6976 _ACEOF
6977
6978 fi
6979
6980
6981 case "${host}" in
6982 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
6983
6984 cat >>confdefs.h <<\_ACEOF
6985 #define USE_BINARY_FOPEN 1
6986 _ACEOF
6987 ;;
6988 esac
6989
6990 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
6991 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
6992 if test "${ac_cv_have_decl_strstr+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995 cat >conftest.$ac_ext <<_ACEOF
6996 /* confdefs.h. */
6997 _ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7001 $ac_includes_default
7002 int
7003 main ()
7004 {
7005 #ifndef strstr
7006 char *p = (char *) strstr;
7007 #endif
7008
7009 ;
7010 return 0;
7011 }
7012 _ACEOF
7013 rm -f conftest.$ac_objext
7014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7015 (eval $ac_compile) 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -z "$ac_c_werror_flag"
7023 || test ! -s conftest.err'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 (eval $ac_try) 2>&5
7026 ac_status=$?
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; } &&
7029 { ac_try='test -s conftest.$ac_objext'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 (eval $ac_try) 2>&5
7032 ac_status=$?
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; }; then
7035 ac_cv_have_decl_strstr=yes
7036 else
7037 echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.$ac_ext >&5
7039
7040 ac_cv_have_decl_strstr=no
7041 fi
7042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7043 fi
7044 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
7045 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
7046 if test $ac_cv_have_decl_strstr = yes; then
7047
7048 cat >>confdefs.h <<_ACEOF
7049 #define HAVE_DECL_STRSTR 1
7050 _ACEOF
7051
7052
7053 else
7054 cat >>confdefs.h <<_ACEOF
7055 #define HAVE_DECL_STRSTR 0
7056 _ACEOF
7057
7058
7059 fi
7060 echo "$as_me:$LINENO: checking whether free is declared" >&5
7061 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
7062 if test "${ac_cv_have_decl_free+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065 cat >conftest.$ac_ext <<_ACEOF
7066 /* confdefs.h. */
7067 _ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7071 $ac_includes_default
7072 int
7073 main ()
7074 {
7075 #ifndef free
7076 char *p = (char *) free;
7077 #endif
7078
7079 ;
7080 return 0;
7081 }
7082 _ACEOF
7083 rm -f conftest.$ac_objext
7084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7085 (eval $ac_compile) 2>conftest.er1
7086 ac_status=$?
7087 grep -v '^ *+' conftest.er1 >conftest.err
7088 rm -f conftest.er1
7089 cat conftest.err >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } &&
7092 { ac_try='test -z "$ac_c_werror_flag"
7093 || test ! -s conftest.err'
7094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095 (eval $ac_try) 2>&5
7096 ac_status=$?
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); }; } &&
7099 { ac_try='test -s conftest.$ac_objext'
7100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101 (eval $ac_try) 2>&5
7102 ac_status=$?
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; }; then
7105 ac_cv_have_decl_free=yes
7106 else
7107 echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7109
7110 ac_cv_have_decl_free=no
7111 fi
7112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7113 fi
7114 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
7115 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
7116 if test $ac_cv_have_decl_free = yes; then
7117
7118 cat >>confdefs.h <<_ACEOF
7119 #define HAVE_DECL_FREE 1
7120 _ACEOF
7121
7122
7123 else
7124 cat >>confdefs.h <<_ACEOF
7125 #define HAVE_DECL_FREE 0
7126 _ACEOF
7127
7128
7129 fi
7130 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
7131 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
7132 if test "${ac_cv_have_decl_sbrk+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135 cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h. */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7141 $ac_includes_default
7142 int
7143 main ()
7144 {
7145 #ifndef sbrk
7146 char *p = (char *) sbrk;
7147 #endif
7148
7149 ;
7150 return 0;
7151 }
7152 _ACEOF
7153 rm -f conftest.$ac_objext
7154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7155 (eval $ac_compile) 2>conftest.er1
7156 ac_status=$?
7157 grep -v '^ *+' conftest.er1 >conftest.err
7158 rm -f conftest.er1
7159 cat conftest.err >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); } &&
7162 { ac_try='test -z "$ac_c_werror_flag"
7163 || test ! -s conftest.err'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 (eval $ac_try) 2>&5
7166 ac_status=$?
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; } &&
7169 { ac_try='test -s conftest.$ac_objext'
7170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171 (eval $ac_try) 2>&5
7172 ac_status=$?
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); }; }; then
7175 ac_cv_have_decl_sbrk=yes
7176 else
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7179
7180 ac_cv_have_decl_sbrk=no
7181 fi
7182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7183 fi
7184 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
7185 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
7186 if test $ac_cv_have_decl_sbrk = yes; then
7187
7188 cat >>confdefs.h <<_ACEOF
7189 #define HAVE_DECL_SBRK 1
7190 _ACEOF
7191
7192
7193 else
7194 cat >>confdefs.h <<_ACEOF
7195 #define HAVE_DECL_SBRK 0
7196 _ACEOF
7197
7198
7199 fi
7200 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
7201 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
7202 if test "${ac_cv_have_decl_getenv+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205 cat >conftest.$ac_ext <<_ACEOF
7206 /* confdefs.h. */
7207 _ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h. */
7211 $ac_includes_default
7212 int
7213 main ()
7214 {
7215 #ifndef getenv
7216 char *p = (char *) getenv;
7217 #endif
7218
7219 ;
7220 return 0;
7221 }
7222 _ACEOF
7223 rm -f conftest.$ac_objext
7224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7225 (eval $ac_compile) 2>conftest.er1
7226 ac_status=$?
7227 grep -v '^ *+' conftest.er1 >conftest.err
7228 rm -f conftest.er1
7229 cat conftest.err >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } &&
7232 { ac_try='test -z "$ac_c_werror_flag"
7233 || test ! -s conftest.err'
7234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235 (eval $ac_try) 2>&5
7236 ac_status=$?
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); }; } &&
7239 { ac_try='test -s conftest.$ac_objext'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241 (eval $ac_try) 2>&5
7242 ac_status=$?
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; }; then
7245 ac_cv_have_decl_getenv=yes
7246 else
7247 echo "$as_me: failed program was:" >&5
7248 sed 's/^/| /' conftest.$ac_ext >&5
7249
7250 ac_cv_have_decl_getenv=no
7251 fi
7252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7253 fi
7254 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
7255 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
7256 if test $ac_cv_have_decl_getenv = yes; then
7257
7258 cat >>confdefs.h <<_ACEOF
7259 #define HAVE_DECL_GETENV 1
7260 _ACEOF
7261
7262
7263 else
7264 cat >>confdefs.h <<_ACEOF
7265 #define HAVE_DECL_GETENV 0
7266 _ACEOF
7267
7268
7269 fi
7270 echo "$as_me:$LINENO: checking whether environ is declared" >&5
7271 echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
7272 if test "${ac_cv_have_decl_environ+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 else
7275 cat >conftest.$ac_ext <<_ACEOF
7276 /* confdefs.h. */
7277 _ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h. */
7281 $ac_includes_default
7282 int
7283 main ()
7284 {
7285 #ifndef environ
7286 char *p = (char *) environ;
7287 #endif
7288
7289 ;
7290 return 0;
7291 }
7292 _ACEOF
7293 rm -f conftest.$ac_objext
7294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7295 (eval $ac_compile) 2>conftest.er1
7296 ac_status=$?
7297 grep -v '^ *+' conftest.er1 >conftest.err
7298 rm -f conftest.er1
7299 cat conftest.err >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } &&
7302 { ac_try='test -z "$ac_c_werror_flag"
7303 || test ! -s conftest.err'
7304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305 (eval $ac_try) 2>&5
7306 ac_status=$?
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); }; } &&
7309 { ac_try='test -s conftest.$ac_objext'
7310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 (eval $ac_try) 2>&5
7312 ac_status=$?
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); }; }; then
7315 ac_cv_have_decl_environ=yes
7316 else
7317 echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7319
7320 ac_cv_have_decl_environ=no
7321 fi
7322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7323 fi
7324 echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
7325 echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
7326 if test $ac_cv_have_decl_environ = yes; then
7327
7328 cat >>confdefs.h <<_ACEOF
7329 #define HAVE_DECL_ENVIRON 1
7330 _ACEOF
7331
7332
7333 else
7334 cat >>confdefs.h <<_ACEOF
7335 #define HAVE_DECL_ENVIRON 0
7336 _ACEOF
7337
7338
7339 fi
7340
7341
7342
7343 # When converting linker scripts into strings for use in emulation
7344 # files, use astring.sed if the compiler supports ANSI string
7345 # concatenation, or ostring.sed otherwise. This is to support the
7346 # broken Microsoft MSVC compiler, which limits the length of string
7347 # constants, while still supporting pre-ANSI compilers which do not
7348 # support string concatenation.
7349 echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
7350 echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
7351 if test "${ld_cv_string_concatenation+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
7354 cat >conftest.$ac_ext <<_ACEOF
7355 /* confdefs.h. */
7356 _ACEOF
7357 cat confdefs.h >>conftest.$ac_ext
7358 cat >>conftest.$ac_ext <<_ACEOF
7359 /* end confdefs.h. */
7360
7361 int
7362 main ()
7363 {
7364 char *a = "a" "a";
7365 ;
7366 return 0;
7367 }
7368 _ACEOF
7369 rm -f conftest.$ac_objext
7370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371 (eval $ac_compile) 2>conftest.er1
7372 ac_status=$?
7373 grep -v '^ *+' conftest.er1 >conftest.err
7374 rm -f conftest.er1
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } &&
7378 { ac_try='test -z "$ac_c_werror_flag"
7379 || test ! -s conftest.err'
7380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 (eval $ac_try) 2>&5
7382 ac_status=$?
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; } &&
7385 { ac_try='test -s conftest.$ac_objext'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 (eval $ac_try) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; }; then
7391 ld_cv_string_concatenation=yes
7392 else
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396 ld_cv_string_concatenation=no
7397 fi
7398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7399 fi
7400
7401 echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
7402 echo "${ECHO_T}$ld_cv_string_concatenation" >&6
7403 if test "$ld_cv_string_concatenation" = "yes"; then
7404 STRINGIFY=astring.sed
7405 else
7406 STRINGIFY=ostring.sed
7407 fi
7408
7409
7410 # target-specific stuff:
7411
7412 all_targets=
7413 EMUL=
7414 all_emuls=
7415 all_emul_extras=
7416 all_libpath=
7417
7418 rm -f tdirs
7419
7420 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7421 do
7422 if test "$targ_alias" = "all"; then
7423 all_targets=true
7424 else
7425 # Canonicalize the secondary target names.
7426 result=`$ac_config_sub $targ_alias 2>/dev/null`
7427 if test -n "$result"; then
7428 targ=$result
7429 else
7430 targ=$targ_alias
7431 fi
7432
7433 . ${srcdir}/configure.tgt
7434
7435 if test "$targ" = "$target"; then
7436 EMUL=$targ_emul
7437 fi
7438
7439 if test x${want64} = xfalse; then
7440 . ${srcdir}/../bfd/config.bfd
7441 fi
7442
7443 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
7444 case " $all_emuls " in
7445 *" e${i}.o "*) ;;
7446 *)
7447 all_emuls="$all_emuls e${i}.o"
7448 eval result=\$tdir_$i
7449 test -z "$result" && result=$targ_alias
7450 echo tdir_$i=$result >> tdirs
7451 ;;
7452 esac
7453 done
7454
7455 for i in $targ_emul $targ_extra_libpath; do
7456 case " $all_libpath " in
7457 *" ${i} "*) ;;
7458 *)
7459 if test -z "$all_libpath"; then
7460 all_libpath=${i}
7461 else
7462 all_libpath="$all_libpath ${i}"
7463 fi
7464 ;;
7465 esac
7466 done
7467
7468 for i in $targ_extra_ofiles; do
7469 case " $all_emul_extras " in
7470 *" ${i} "*) ;;
7471 *)
7472 all_emul_extras="$all_emul_extras ${i}"
7473 ;;
7474 esac
7475 done
7476 fi
7477 done
7478
7479
7480
7481 TDIRS=tdirs
7482
7483
7484 if test x${all_targets} = xtrue; then
7485 if test x${want64} = xfalse; then
7486 echo "$as_me:$LINENO: checking for long" >&5
7487 echo $ECHO_N "checking for long... $ECHO_C" >&6
7488 if test "${ac_cv_type_long+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 else
7491 cat >conftest.$ac_ext <<_ACEOF
7492 /* confdefs.h. */
7493 _ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7497 $ac_includes_default
7498 int
7499 main ()
7500 {
7501 if ((long *) 0)
7502 return 0;
7503 if (sizeof (long))
7504 return 0;
7505 ;
7506 return 0;
7507 }
7508 _ACEOF
7509 rm -f conftest.$ac_objext
7510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7511 (eval $ac_compile) 2>conftest.er1
7512 ac_status=$?
7513 grep -v '^ *+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } &&
7518 { ac_try='test -z "$ac_c_werror_flag"
7519 || test ! -s conftest.err'
7520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 (eval $ac_try) 2>&5
7522 ac_status=$?
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; } &&
7525 { ac_try='test -s conftest.$ac_objext'
7526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 (eval $ac_try) 2>&5
7528 ac_status=$?
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); }; }; then
7531 ac_cv_type_long=yes
7532 else
7533 echo "$as_me: failed program was:" >&5
7534 sed 's/^/| /' conftest.$ac_ext >&5
7535
7536 ac_cv_type_long=no
7537 fi
7538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7539 fi
7540 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7541 echo "${ECHO_T}$ac_cv_type_long" >&6
7542
7543 echo "$as_me:$LINENO: checking size of long" >&5
7544 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7545 if test "${ac_cv_sizeof_long+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548 if test "$ac_cv_type_long" = yes; then
7549 # The cast to unsigned long works around a bug in the HP C Compiler
7550 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7551 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7552 # This bug is HP SR number 8606223364.
7553 if test "$cross_compiling" = yes; then
7554 # Depending upon the size, compute the lo and hi bounds.
7555 cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h. */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 $ac_includes_default
7562 int
7563 main ()
7564 {
7565 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7566 test_array [0] = 0
7567
7568 ;
7569 return 0;
7570 }
7571 _ACEOF
7572 rm -f conftest.$ac_objext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7574 (eval $ac_compile) 2>conftest.er1
7575 ac_status=$?
7576 grep -v '^ *+' conftest.er1 >conftest.err
7577 rm -f conftest.er1
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } &&
7581 { ac_try='test -z "$ac_c_werror_flag"
7582 || test ! -s conftest.err'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 (eval $ac_try) 2>&5
7585 ac_status=$?
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; } &&
7588 { ac_try='test -s conftest.$ac_objext'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 (eval $ac_try) 2>&5
7591 ac_status=$?
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7594 ac_lo=0 ac_mid=0
7595 while :; do
7596 cat >conftest.$ac_ext <<_ACEOF
7597 /* confdefs.h. */
7598 _ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h. */
7602 $ac_includes_default
7603 int
7604 main ()
7605 {
7606 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7607 test_array [0] = 0
7608
7609 ;
7610 return 0;
7611 }
7612 _ACEOF
7613 rm -f conftest.$ac_objext
7614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7615 (eval $ac_compile) 2>conftest.er1
7616 ac_status=$?
7617 grep -v '^ *+' conftest.er1 >conftest.err
7618 rm -f conftest.er1
7619 cat conftest.err >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -z "$ac_c_werror_flag"
7623 || test ! -s conftest.err'
7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625 (eval $ac_try) 2>&5
7626 ac_status=$?
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; } &&
7629 { ac_try='test -s conftest.$ac_objext'
7630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631 (eval $ac_try) 2>&5
7632 ac_status=$?
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; }; then
7635 ac_hi=$ac_mid; break
7636 else
7637 echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7639
7640 ac_lo=`expr $ac_mid + 1`
7641 if test $ac_lo -le $ac_mid; then
7642 ac_lo= ac_hi=
7643 break
7644 fi
7645 ac_mid=`expr 2 '*' $ac_mid + 1`
7646 fi
7647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7648 done
7649 else
7650 echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7652
7653 cat >conftest.$ac_ext <<_ACEOF
7654 /* confdefs.h. */
7655 _ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 $ac_includes_default
7660 int
7661 main ()
7662 {
7663 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7664 test_array [0] = 0
7665
7666 ;
7667 return 0;
7668 }
7669 _ACEOF
7670 rm -f conftest.$ac_objext
7671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7672 (eval $ac_compile) 2>conftest.er1
7673 ac_status=$?
7674 grep -v '^ *+' conftest.er1 >conftest.err
7675 rm -f conftest.er1
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } &&
7679 { ac_try='test -z "$ac_c_werror_flag"
7680 || test ! -s conftest.err'
7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682 (eval $ac_try) 2>&5
7683 ac_status=$?
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; } &&
7686 { ac_try='test -s conftest.$ac_objext'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 (eval $ac_try) 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7692 ac_hi=-1 ac_mid=-1
7693 while :; do
7694 cat >conftest.$ac_ext <<_ACEOF
7695 /* confdefs.h. */
7696 _ACEOF
7697 cat confdefs.h >>conftest.$ac_ext
7698 cat >>conftest.$ac_ext <<_ACEOF
7699 /* end confdefs.h. */
7700 $ac_includes_default
7701 int
7702 main ()
7703 {
7704 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7705 test_array [0] = 0
7706
7707 ;
7708 return 0;
7709 }
7710 _ACEOF
7711 rm -f conftest.$ac_objext
7712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7713 (eval $ac_compile) 2>conftest.er1
7714 ac_status=$?
7715 grep -v '^ *+' conftest.er1 >conftest.err
7716 rm -f conftest.er1
7717 cat conftest.err >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } &&
7720 { ac_try='test -z "$ac_c_werror_flag"
7721 || test ! -s conftest.err'
7722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723 (eval $ac_try) 2>&5
7724 ac_status=$?
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); }; } &&
7727 { ac_try='test -s conftest.$ac_objext'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 (eval $ac_try) 2>&5
7730 ac_status=$?
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; }; then
7733 ac_lo=$ac_mid; break
7734 else
7735 echo "$as_me: failed program was:" >&5
7736 sed 's/^/| /' conftest.$ac_ext >&5
7737
7738 ac_hi=`expr '(' $ac_mid ')' - 1`
7739 if test $ac_mid -le $ac_hi; then
7740 ac_lo= ac_hi=
7741 break
7742 fi
7743 ac_mid=`expr 2 '*' $ac_mid`
7744 fi
7745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7746 done
7747 else
7748 echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7750
7751 ac_lo= ac_hi=
7752 fi
7753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7754 fi
7755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7756 # Binary search between lo and hi bounds.
7757 while test "x$ac_lo" != "x$ac_hi"; do
7758 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7759 cat >conftest.$ac_ext <<_ACEOF
7760 /* confdefs.h. */
7761 _ACEOF
7762 cat confdefs.h >>conftest.$ac_ext
7763 cat >>conftest.$ac_ext <<_ACEOF
7764 /* end confdefs.h. */
7765 $ac_includes_default
7766 int
7767 main ()
7768 {
7769 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7770 test_array [0] = 0
7771
7772 ;
7773 return 0;
7774 }
7775 _ACEOF
7776 rm -f conftest.$ac_objext
7777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7778 (eval $ac_compile) 2>conftest.er1
7779 ac_status=$?
7780 grep -v '^ *+' conftest.er1 >conftest.err
7781 rm -f conftest.er1
7782 cat conftest.err >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } &&
7785 { ac_try='test -z "$ac_c_werror_flag"
7786 || test ! -s conftest.err'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788 (eval $ac_try) 2>&5
7789 ac_status=$?
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; } &&
7792 { ac_try='test -s conftest.$ac_objext'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 (eval $ac_try) 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; }; then
7798 ac_hi=$ac_mid
7799 else
7800 echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.$ac_ext >&5
7802
7803 ac_lo=`expr '(' $ac_mid ')' + 1`
7804 fi
7805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7806 done
7807 case $ac_lo in
7808 ?*) ac_cv_sizeof_long=$ac_lo;;
7809 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7810 See \`config.log' for more details." >&5
7811 echo "$as_me: error: cannot compute sizeof (long), 77
7812 See \`config.log' for more details." >&2;}
7813 { (exit 1); exit 1; }; } ;;
7814 esac
7815 else
7816 if test "$cross_compiling" = yes; then
7817 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7818 See \`config.log' for more details." >&5
7819 echo "$as_me: error: cannot run test program while cross compiling
7820 See \`config.log' for more details." >&2;}
7821 { (exit 1); exit 1; }; }
7822 else
7823 cat >conftest.$ac_ext <<_ACEOF
7824 /* confdefs.h. */
7825 _ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h. */
7829 $ac_includes_default
7830 long longval () { return (long) (sizeof (long)); }
7831 unsigned long ulongval () { return (long) (sizeof (long)); }
7832 #include <stdio.h>
7833 #include <stdlib.h>
7834 int
7835 main ()
7836 {
7837
7838 FILE *f = fopen ("conftest.val", "w");
7839 if (! f)
7840 exit (1);
7841 if (((long) (sizeof (long))) < 0)
7842 {
7843 long i = longval ();
7844 if (i != ((long) (sizeof (long))))
7845 exit (1);
7846 fprintf (f, "%ld\n", i);
7847 }
7848 else
7849 {
7850 unsigned long i = ulongval ();
7851 if (i != ((long) (sizeof (long))))
7852 exit (1);
7853 fprintf (f, "%lu\n", i);
7854 }
7855 exit (ferror (f) || fclose (f) != 0);
7856
7857 ;
7858 return 0;
7859 }
7860 _ACEOF
7861 rm -f conftest$ac_exeext
7862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7863 (eval $ac_link) 2>&5
7864 ac_status=$?
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868 (eval $ac_try) 2>&5
7869 ac_status=$?
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; }; then
7872 ac_cv_sizeof_long=`cat conftest.val`
7873 else
7874 echo "$as_me: program exited with status $ac_status" >&5
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7877
7878 ( exit $ac_status )
7879 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7880 See \`config.log' for more details." >&5
7881 echo "$as_me: error: cannot compute sizeof (long), 77
7882 See \`config.log' for more details." >&2;}
7883 { (exit 1); exit 1; }; }
7884 fi
7885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7886 fi
7887 fi
7888 rm -f conftest.val
7889 else
7890 ac_cv_sizeof_long=0
7891 fi
7892 fi
7893 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7894 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7895 cat >>confdefs.h <<_ACEOF
7896 #define SIZEOF_LONG $ac_cv_sizeof_long
7897 _ACEOF
7898
7899
7900 if test "x${ac_cv_sizeof_long}" = "x8"; then
7901 want64=true
7902 fi
7903 fi
7904 if test x${want64} = xtrue; then
7905 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
7906 else
7907 EMULATION_OFILES='$(ALL_EMULATIONS)'
7908 fi
7909 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
7910 else
7911 EMULATION_OFILES=$all_emuls
7912 EMUL_EXTRA_OFILES=$all_emul_extras
7913 fi
7914
7915
7916
7917
7918 EMULATION_LIBPATH=$all_libpath
7919
7920
7921 if test x${enable_static} = xno; then
7922 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
7923 else
7924 TESTBFDLIB="../bfd/.libs/libbfd.a"
7925 fi
7926
7927
7928 target_vendor=${target_vendor=$host_vendor}
7929 case "$target_vendor" in
7930 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
7931 *) EXTRA_SHLIB_EXTENSION= ;;
7932 esac
7933
7934 case "$target_os" in
7935 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
7936 esac
7937
7938 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
7939
7940 cat >>confdefs.h <<_ACEOF
7941 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
7942 _ACEOF
7943
7944 fi
7945
7946
7947
7948
7949
7950 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
7951 cat >confcache <<\_ACEOF
7952 # This file is a shell script that caches the results of configure
7953 # tests run on this system so they can be shared between configure
7954 # scripts and configure runs, see configure's option --config-cache.
7955 # It is not useful on other systems. If it contains results you don't
7956 # want to keep, you may remove or edit it.
7957 #
7958 # config.status only pays attention to the cache file if you give it
7959 # the --recheck option to rerun configure.
7960 #
7961 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7962 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7963 # following values.
7964
7965 _ACEOF
7966
7967 # The following way of writing the cache mishandles newlines in values,
7968 # but we know of no workaround that is simple, portable, and efficient.
7969 # So, don't put newlines in cache variables' values.
7970 # Ultrix sh set writes to stderr and can't be redirected directly,
7971 # and sets the high bit in the cache file unless we assign to the vars.
7972 {
7973 (set) 2>&1 |
7974 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7975 *ac_space=\ *)
7976 # `set' does not quote correctly, so add quotes (double-quote
7977 # substitution turns \\\\ into \\, and sed turns \\ into \).
7978 sed -n \
7979 "s/'/'\\\\''/g;
7980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7981 ;;
7982 *)
7983 # `set' quotes correctly as required by POSIX, so do not add quotes.
7984 sed -n \
7985 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7986 ;;
7987 esac;
7988 } |
7989 sed '
7990 t clear
7991 : clear
7992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7993 t end
7994 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7995 : end' >>confcache
7996 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7997 if test -w $cache_file; then
7998 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7999 cat confcache >$cache_file
8000 else
8001 echo "not updating unwritable cache $cache_file"
8002 fi
8003 fi
8004 rm -f confcache
8005
8006 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8007 # Let make expand exec_prefix.
8008 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8009
8010 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8011 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8012 # trailing colons and then remove the whole line if VPATH becomes empty
8013 # (actually we leave an empty line to preserve line numbers).
8014 if test "x$srcdir" = x.; then
8015 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8016 s/:*\$(srcdir):*/:/;
8017 s/:*\${srcdir}:*/:/;
8018 s/:*@srcdir@:*/:/;
8019 s/^\([^=]*=[ ]*\):*/\1/;
8020 s/:*$//;
8021 s/^[^=]*=[ ]*$//;
8022 }'
8023 fi
8024
8025 DEFS=-DHAVE_CONFIG_H
8026
8027 ac_libobjs=
8028 ac_ltlibobjs=
8029 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8030 # 1. Remove the extension, and $U if already installed.
8031 ac_i=`echo "$ac_i" |
8032 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8033 # 2. Add them.
8034 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8035 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8036 done
8037 LIBOBJS=$ac_libobjs
8038
8039 LTLIBOBJS=$ac_ltlibobjs
8040
8041
8042 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8043 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8044 Usually this means the macro was only invoked conditionally." >&5
8045 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8046 Usually this means the macro was only invoked conditionally." >&2;}
8047 { (exit 1); exit 1; }; }
8048 fi
8049 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8050 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8051 Usually this means the macro was only invoked conditionally." >&5
8052 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8053 Usually this means the macro was only invoked conditionally." >&2;}
8054 { (exit 1); exit 1; }; }
8055 fi
8056 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8057 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8058 Usually this means the macro was only invoked conditionally." >&5
8059 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8060 Usually this means the macro was only invoked conditionally." >&2;}
8061 { (exit 1); exit 1; }; }
8062 fi
8063
8064 : ${CONFIG_STATUS=./config.status}
8065 ac_clean_files_save=$ac_clean_files
8066 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8067 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8068 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8069 cat >$CONFIG_STATUS <<_ACEOF
8070 #! $SHELL
8071 # Generated by $as_me.
8072 # Run this file to recreate the current configuration.
8073 # Compiler output produced by configure, useful for debugging
8074 # configure, is in config.log if it exists.
8075
8076 debug=false
8077 ac_cs_recheck=false
8078 ac_cs_silent=false
8079 SHELL=\${CONFIG_SHELL-$SHELL}
8080 _ACEOF
8081
8082 cat >>$CONFIG_STATUS <<\_ACEOF
8083 ## --------------------- ##
8084 ## M4sh Initialization. ##
8085 ## --------------------- ##
8086
8087 # Be Bourne compatible
8088 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8089 emulate sh
8090 NULLCMD=:
8091 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8092 # is contrary to our usage. Disable this feature.
8093 alias -g '${1+"$@"}'='"$@"'
8094 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8095 set -o posix
8096 fi
8097 DUALCASE=1; export DUALCASE # for MKS sh
8098
8099 # Support unset when possible.
8100 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8101 as_unset=unset
8102 else
8103 as_unset=false
8104 fi
8105
8106
8107 # Work around bugs in pre-3.0 UWIN ksh.
8108 $as_unset ENV MAIL MAILPATH
8109 PS1='$ '
8110 PS2='> '
8111 PS4='+ '
8112
8113 # NLS nuisances.
8114 for as_var in \
8115 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8116 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8117 LC_TELEPHONE LC_TIME
8118 do
8119 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8120 eval $as_var=C; export $as_var
8121 else
8122 $as_unset $as_var
8123 fi
8124 done
8125
8126 # Required to use basename.
8127 if expr a : '\(a\)' >/dev/null 2>&1; then
8128 as_expr=expr
8129 else
8130 as_expr=false
8131 fi
8132
8133 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8134 as_basename=basename
8135 else
8136 as_basename=false
8137 fi
8138
8139
8140 # Name of the executable.
8141 as_me=`$as_basename "$0" ||
8142 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8143 X"$0" : 'X\(//\)$' \| \
8144 X"$0" : 'X\(/\)$' \| \
8145 . : '\(.\)' 2>/dev/null ||
8146 echo X/"$0" |
8147 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8148 /^X\/\(\/\/\)$/{ s//\1/; q; }
8149 /^X\/\(\/\).*/{ s//\1/; q; }
8150 s/.*/./; q'`
8151
8152
8153 # PATH needs CR, and LINENO needs CR and PATH.
8154 # Avoid depending upon Character Ranges.
8155 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8156 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8157 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8158 as_cr_digits='0123456789'
8159 as_cr_alnum=$as_cr_Letters$as_cr_digits
8160
8161 # The user is always right.
8162 if test "${PATH_SEPARATOR+set}" != set; then
8163 echo "#! /bin/sh" >conf$$.sh
8164 echo "exit 0" >>conf$$.sh
8165 chmod +x conf$$.sh
8166 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8167 PATH_SEPARATOR=';'
8168 else
8169 PATH_SEPARATOR=:
8170 fi
8171 rm -f conf$$.sh
8172 fi
8173
8174
8175 as_lineno_1=$LINENO
8176 as_lineno_2=$LINENO
8177 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8178 test "x$as_lineno_1" != "x$as_lineno_2" &&
8179 test "x$as_lineno_3" = "x$as_lineno_2" || {
8180 # Find who we are. Look in the path if we contain no path at all
8181 # relative or not.
8182 case $0 in
8183 *[\\/]* ) as_myself=$0 ;;
8184 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 for as_dir in $PATH
8186 do
8187 IFS=$as_save_IFS
8188 test -z "$as_dir" && as_dir=.
8189 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8190 done
8191
8192 ;;
8193 esac
8194 # We did not find ourselves, most probably we were run as `sh COMMAND'
8195 # in which case we are not to be found in the path.
8196 if test "x$as_myself" = x; then
8197 as_myself=$0
8198 fi
8199 if test ! -f "$as_myself"; then
8200 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8201 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8202 { (exit 1); exit 1; }; }
8203 fi
8204 case $CONFIG_SHELL in
8205 '')
8206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8208 do
8209 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=.
8211 for as_base in sh bash ksh sh5; do
8212 case $as_dir in
8213 /*)
8214 if ("$as_dir/$as_base" -c '
8215 as_lineno_1=$LINENO
8216 as_lineno_2=$LINENO
8217 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8218 test "x$as_lineno_1" != "x$as_lineno_2" &&
8219 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8220 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8221 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8222 CONFIG_SHELL=$as_dir/$as_base
8223 export CONFIG_SHELL
8224 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8225 fi;;
8226 esac
8227 done
8228 done
8229 ;;
8230 esac
8231
8232 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8233 # uniformly replaced by the line number. The first 'sed' inserts a
8234 # line-number line before each line; the second 'sed' does the real
8235 # work. The second script uses 'N' to pair each line-number line
8236 # with the numbered line, and appends trailing '-' during
8237 # substitution so that $LINENO is not a special case at line end.
8238 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8239 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8240 sed '=' <$as_myself |
8241 sed '
8242 N
8243 s,$,-,
8244 : loop
8245 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8246 t loop
8247 s,-$,,
8248 s,^['$as_cr_digits']*\n,,
8249 ' >$as_me.lineno &&
8250 chmod +x $as_me.lineno ||
8251 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8252 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8253 { (exit 1); exit 1; }; }
8254
8255 # Don't try to exec as it changes $[0], causing all sort of problems
8256 # (the dirname of $[0] is not the place where we might find the
8257 # original and so on. Autoconf is especially sensible to this).
8258 . ./$as_me.lineno
8259 # Exit status is that of the last command.
8260 exit
8261 }
8262
8263
8264 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8265 *c*,-n*) ECHO_N= ECHO_C='
8266 ' ECHO_T=' ' ;;
8267 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8268 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8269 esac
8270
8271 if expr a : '\(a\)' >/dev/null 2>&1; then
8272 as_expr=expr
8273 else
8274 as_expr=false
8275 fi
8276
8277 rm -f conf$$ conf$$.exe conf$$.file
8278 echo >conf$$.file
8279 if ln -s conf$$.file conf$$ 2>/dev/null; then
8280 # We could just check for DJGPP; but this test a) works b) is more generic
8281 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8282 if test -f conf$$.exe; then
8283 # Don't use ln at all; we don't have any links
8284 as_ln_s='cp -p'
8285 else
8286 as_ln_s='ln -s'
8287 fi
8288 elif ln conf$$.file conf$$ 2>/dev/null; then
8289 as_ln_s=ln
8290 else
8291 as_ln_s='cp -p'
8292 fi
8293 rm -f conf$$ conf$$.exe conf$$.file
8294
8295 if mkdir -p . 2>/dev/null; then
8296 as_mkdir_p=:
8297 else
8298 test -d ./-p && rmdir ./-p
8299 as_mkdir_p=false
8300 fi
8301
8302 as_executable_p="test -f"
8303
8304 # Sed expression to map a string onto a valid CPP name.
8305 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8306
8307 # Sed expression to map a string onto a valid variable name.
8308 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8309
8310
8311 # IFS
8312 # We need space, tab and new line, in precisely that order.
8313 as_nl='
8314 '
8315 IFS=" $as_nl"
8316
8317 # CDPATH.
8318 $as_unset CDPATH
8319
8320 exec 6>&1
8321
8322 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8323 # report actual input values of CONFIG_FILES etc. instead of their
8324 # values after options handling. Logging --version etc. is OK.
8325 exec 5>>config.log
8326 {
8327 echo
8328 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8329 ## Running $as_me. ##
8330 _ASBOX
8331 } >&5
8332 cat >&5 <<_CSEOF
8333
8334 This file was extended by $as_me, which was
8335 generated by GNU Autoconf 2.59. Invocation command line was
8336
8337 CONFIG_FILES = $CONFIG_FILES
8338 CONFIG_HEADERS = $CONFIG_HEADERS
8339 CONFIG_LINKS = $CONFIG_LINKS
8340 CONFIG_COMMANDS = $CONFIG_COMMANDS
8341 $ $0 $@
8342
8343 _CSEOF
8344 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8345 echo >&5
8346 _ACEOF
8347
8348 # Files that config.status was made for.
8349 if test -n "$ac_config_files"; then
8350 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8351 fi
8352
8353 if test -n "$ac_config_headers"; then
8354 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8355 fi
8356
8357 if test -n "$ac_config_links"; then
8358 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8359 fi
8360
8361 if test -n "$ac_config_commands"; then
8362 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8363 fi
8364
8365 cat >>$CONFIG_STATUS <<\_ACEOF
8366
8367 ac_cs_usage="\
8368 \`$as_me' instantiates files from templates according to the
8369 current configuration.
8370
8371 Usage: $0 [OPTIONS] [FILE]...
8372
8373 -h, --help print this help, then exit
8374 -V, --version print version number, then exit
8375 -q, --quiet do not print progress messages
8376 -d, --debug don't remove temporary files
8377 --recheck update $as_me by reconfiguring in the same conditions
8378 --file=FILE[:TEMPLATE]
8379 instantiate the configuration file FILE
8380 --header=FILE[:TEMPLATE]
8381 instantiate the configuration header FILE
8382
8383 Configuration files:
8384 $config_files
8385
8386 Configuration headers:
8387 $config_headers
8388
8389 Configuration commands:
8390 $config_commands
8391
8392 Report bugs to <bug-autoconf@gnu.org>."
8393 _ACEOF
8394
8395 cat >>$CONFIG_STATUS <<_ACEOF
8396 ac_cs_version="\\
8397 config.status
8398 configured by $0, generated by GNU Autoconf 2.59,
8399 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8400
8401 Copyright (C) 2003 Free Software Foundation, Inc.
8402 This config.status script is free software; the Free Software Foundation
8403 gives unlimited permission to copy, distribute and modify it."
8404 srcdir=$srcdir
8405 INSTALL="$INSTALL"
8406 _ACEOF
8407
8408 cat >>$CONFIG_STATUS <<\_ACEOF
8409 # If no file are specified by the user, then we need to provide default
8410 # value. By we need to know if files were specified by the user.
8411 ac_need_defaults=:
8412 while test $# != 0
8413 do
8414 case $1 in
8415 --*=*)
8416 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8417 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8418 ac_shift=:
8419 ;;
8420 -*)
8421 ac_option=$1
8422 ac_optarg=$2
8423 ac_shift=shift
8424 ;;
8425 *) # This is not an option, so the user has probably given explicit
8426 # arguments.
8427 ac_option=$1
8428 ac_need_defaults=false;;
8429 esac
8430
8431 case $ac_option in
8432 # Handling of the options.
8433 _ACEOF
8434 cat >>$CONFIG_STATUS <<\_ACEOF
8435 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8436 ac_cs_recheck=: ;;
8437 --version | --vers* | -V )
8438 echo "$ac_cs_version"; exit 0 ;;
8439 --he | --h)
8440 # Conflict between --help and --header
8441 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8442 Try \`$0 --help' for more information." >&5
8443 echo "$as_me: error: ambiguous option: $1
8444 Try \`$0 --help' for more information." >&2;}
8445 { (exit 1); exit 1; }; };;
8446 --help | --hel | -h )
8447 echo "$ac_cs_usage"; exit 0 ;;
8448 --debug | --d* | -d )
8449 debug=: ;;
8450 --file | --fil | --fi | --f )
8451 $ac_shift
8452 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8453 ac_need_defaults=false;;
8454 --header | --heade | --head | --hea )
8455 $ac_shift
8456 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8457 ac_need_defaults=false;;
8458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8459 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8460 ac_cs_silent=: ;;
8461
8462 # This is an error.
8463 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8464 Try \`$0 --help' for more information." >&5
8465 echo "$as_me: error: unrecognized option: $1
8466 Try \`$0 --help' for more information." >&2;}
8467 { (exit 1); exit 1; }; } ;;
8468
8469 *) ac_config_targets="$ac_config_targets $1" ;;
8470
8471 esac
8472 shift
8473 done
8474
8475 ac_configure_extra_args=
8476
8477 if $ac_cs_silent; then
8478 exec 6>/dev/null
8479 ac_configure_extra_args="$ac_configure_extra_args --silent"
8480 fi
8481
8482 _ACEOF
8483 cat >>$CONFIG_STATUS <<_ACEOF
8484 if \$ac_cs_recheck; then
8485 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8486 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8487 fi
8488
8489 _ACEOF
8490
8491 cat >>$CONFIG_STATUS <<_ACEOF
8492 #
8493 # INIT-COMMANDS section.
8494 #
8495
8496 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8497 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8498 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
8499 # from automake.
8500 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8501 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8502 LINGUAS="${LINGUAS-%UNSET%}"
8503
8504
8505 _ACEOF
8506
8507
8508
8509 cat >>$CONFIG_STATUS <<\_ACEOF
8510 for ac_config_target in $ac_config_targets
8511 do
8512 case "$ac_config_target" in
8513 # Handling of arguments.
8514 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8515 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8516 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8517 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8518 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8519 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8520 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8521 { (exit 1); exit 1; }; };;
8522 esac
8523 done
8524
8525 # If the user did not use the arguments to specify the items to instantiate,
8526 # then the envvar interface is used. Set only those that are not.
8527 # We use the long form for the default assignment because of an extremely
8528 # bizarre bug on SunOS 4.1.3.
8529 if $ac_need_defaults; then
8530 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8531 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8532 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8533 fi
8534
8535 # Have a temporary directory for convenience. Make it in the build tree
8536 # simply because there is no reason to put it here, and in addition,
8537 # creating and moving files from /tmp can sometimes cause problems.
8538 # Create a temporary directory, and hook for its removal unless debugging.
8539 $debug ||
8540 {
8541 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8542 trap '{ (exit 1); exit 1; }' 1 2 13 15
8543 }
8544
8545 # Create a (secure) tmp directory for tmp files.
8546
8547 {
8548 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8549 test -n "$tmp" && test -d "$tmp"
8550 } ||
8551 {
8552 tmp=./confstat$$-$RANDOM
8553 (umask 077 && mkdir $tmp)
8554 } ||
8555 {
8556 echo "$me: cannot create a temporary directory in ." >&2
8557 { (exit 1); exit 1; }
8558 }
8559
8560 _ACEOF
8561
8562 cat >>$CONFIG_STATUS <<_ACEOF
8563
8564 #
8565 # CONFIG_FILES section.
8566 #
8567
8568 # No need to generate the scripts if there are no CONFIG_FILES.
8569 # This happens for instance when ./config.status config.h
8570 if test -n "\$CONFIG_FILES"; then
8571 # Protect against being on the right side of a sed subst in config.status.
8572 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8573 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8574 s,@SHELL@,$SHELL,;t t
8575 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8576 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8577 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8578 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8579 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8580 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8581 s,@exec_prefix@,$exec_prefix,;t t
8582 s,@prefix@,$prefix,;t t
8583 s,@program_transform_name@,$program_transform_name,;t t
8584 s,@bindir@,$bindir,;t t
8585 s,@sbindir@,$sbindir,;t t
8586 s,@libexecdir@,$libexecdir,;t t
8587 s,@datadir@,$datadir,;t t
8588 s,@sysconfdir@,$sysconfdir,;t t
8589 s,@sharedstatedir@,$sharedstatedir,;t t
8590 s,@localstatedir@,$localstatedir,;t t
8591 s,@libdir@,$libdir,;t t
8592 s,@includedir@,$includedir,;t t
8593 s,@oldincludedir@,$oldincludedir,;t t
8594 s,@infodir@,$infodir,;t t
8595 s,@mandir@,$mandir,;t t
8596 s,@build_alias@,$build_alias,;t t
8597 s,@host_alias@,$host_alias,;t t
8598 s,@target_alias@,$target_alias,;t t
8599 s,@DEFS@,$DEFS,;t t
8600 s,@ECHO_C@,$ECHO_C,;t t
8601 s,@ECHO_N@,$ECHO_N,;t t
8602 s,@ECHO_T@,$ECHO_T,;t t
8603 s,@LIBS@,$LIBS,;t t
8604 s,@build@,$build,;t t
8605 s,@build_cpu@,$build_cpu,;t t
8606 s,@build_vendor@,$build_vendor,;t t
8607 s,@build_os@,$build_os,;t t
8608 s,@host@,$host,;t t
8609 s,@host_cpu@,$host_cpu,;t t
8610 s,@host_vendor@,$host_vendor,;t t
8611 s,@host_os@,$host_os,;t t
8612 s,@target@,$target,;t t
8613 s,@target_cpu@,$target_cpu,;t t
8614 s,@target_vendor@,$target_vendor,;t t
8615 s,@target_os@,$target_os,;t t
8616 s,@CC@,$CC,;t t
8617 s,@CFLAGS@,$CFLAGS,;t t
8618 s,@LDFLAGS@,$LDFLAGS,;t t
8619 s,@CPPFLAGS@,$CPPFLAGS,;t t
8620 s,@ac_ct_CC@,$ac_ct_CC,;t t
8621 s,@EXEEXT@,$EXEEXT,;t t
8622 s,@OBJEXT@,$OBJEXT,;t t
8623 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8624 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8625 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8626 s,@CYGPATH_W@,$CYGPATH_W,;t t
8627 s,@PACKAGE@,$PACKAGE,;t t
8628 s,@VERSION@,$VERSION,;t t
8629 s,@ACLOCAL@,$ACLOCAL,;t t
8630 s,@AUTOCONF@,$AUTOCONF,;t t
8631 s,@AUTOMAKE@,$AUTOMAKE,;t t
8632 s,@AUTOHEADER@,$AUTOHEADER,;t t
8633 s,@MAKEINFO@,$MAKEINFO,;t t
8634 s,@install_sh@,$install_sh,;t t
8635 s,@STRIP@,$STRIP,;t t
8636 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8637 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8638 s,@mkdir_p@,$mkdir_p,;t t
8639 s,@AWK@,$AWK,;t t
8640 s,@SET_MAKE@,$SET_MAKE,;t t
8641 s,@am__leading_dot@,$am__leading_dot,;t t
8642 s,@AMTAR@,$AMTAR,;t t
8643 s,@am__tar@,$am__tar,;t t
8644 s,@am__untar@,$am__untar,;t t
8645 s,@DEPDIR@,$DEPDIR,;t t
8646 s,@am__include@,$am__include,;t t
8647 s,@am__quote@,$am__quote,;t t
8648 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8649 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8650 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8651 s,@CCDEPMODE@,$CCDEPMODE,;t t
8652 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8653 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8654 s,@LN_S@,$LN_S,;t t
8655 s,@RANLIB@,$RANLIB,;t t
8656 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8657 s,@LIBTOOL@,$LIBTOOL,;t t
8658 s,@use_sysroot@,$use_sysroot,;t t
8659 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
8660 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
8661 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8662 s,@NO_WERROR@,$NO_WERROR,;t t
8663 s,@USE_NLS@,$USE_NLS,;t t
8664 s,@LIBINTL@,$LIBINTL,;t t
8665 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
8666 s,@INCINTL@,$INCINTL,;t t
8667 s,@XGETTEXT@,$XGETTEXT,;t t
8668 s,@GMSGFMT@,$GMSGFMT,;t t
8669 s,@POSUB@,$POSUB,;t t
8670 s,@CATALOGS@,$CATALOGS,;t t
8671 s,@DATADIRNAME@,$DATADIRNAME,;t t
8672 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8673 s,@GENCAT@,$GENCAT,;t t
8674 s,@CATOBJEXT@,$CATOBJEXT,;t t
8675 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8676 s,@MSGFMT@,$MSGFMT,;t t
8677 s,@MSGMERGE@,$MSGMERGE,;t t
8678 s,@YACC@,$YACC,;t t
8679 s,@LEX@,$LEX,;t t
8680 s,@LEXLIB@,$LEXLIB,;t t
8681 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8682 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
8683 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
8684 s,@MAINT@,$MAINT,;t t
8685 s,@HDEFINES@,$HDEFINES,;t t
8686 s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
8687 s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
8688 s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
8689 s,@CPP@,$CPP,;t t
8690 s,@EGREP@,$EGREP,;t t
8691 s,@STRINGIFY@,$STRINGIFY,;t t
8692 s,@EMUL@,$EMUL,;t t
8693 s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
8694 s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
8695 s,@LIB_PATH@,$LIB_PATH,;t t
8696 s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
8697 s,@TESTBFDLIB@,$TESTBFDLIB,;t t
8698 s,@datarootdir@,$datarootdir,;t t
8699 s,@docdir@,$docdir,;t t
8700 s,@htmldir@,$htmldir,;t t
8701 s,@LIBOBJS@,$LIBOBJS,;t t
8702 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8703 /@TDIRS@/r $TDIRS
8704 s,@TDIRS@,,;t t
8705 CEOF
8706
8707 _ACEOF
8708
8709 cat >>$CONFIG_STATUS <<\_ACEOF
8710 # Split the substitutions into bite-sized pieces for seds with
8711 # small command number limits, like on Digital OSF/1 and HP-UX.
8712 ac_max_sed_lines=48
8713 ac_sed_frag=1 # Number of current file.
8714 ac_beg=1 # First line for current file.
8715 ac_end=$ac_max_sed_lines # Line after last line for current file.
8716 ac_more_lines=:
8717 ac_sed_cmds=
8718 while $ac_more_lines; do
8719 if test $ac_beg -gt 1; then
8720 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8721 else
8722 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8723 fi
8724 if test ! -s $tmp/subs.frag; then
8725 ac_more_lines=false
8726 else
8727 # The purpose of the label and of the branching condition is to
8728 # speed up the sed processing (if there are no `@' at all, there
8729 # is no need to browse any of the substitutions).
8730 # These are the two extra sed commands mentioned above.
8731 (echo ':t
8732 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8733 if test -z "$ac_sed_cmds"; then
8734 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8735 else
8736 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8737 fi
8738 ac_sed_frag=`expr $ac_sed_frag + 1`
8739 ac_beg=$ac_end
8740 ac_end=`expr $ac_end + $ac_max_sed_lines`
8741 fi
8742 done
8743 if test -z "$ac_sed_cmds"; then
8744 ac_sed_cmds=cat
8745 fi
8746 fi # test -n "$CONFIG_FILES"
8747
8748 _ACEOF
8749 cat >>$CONFIG_STATUS <<\_ACEOF
8750 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8751 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8752 case $ac_file in
8753 - | *:- | *:-:* ) # input from stdin
8754 cat >$tmp/stdin
8755 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8756 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8757 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8758 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8759 * ) ac_file_in=$ac_file.in ;;
8760 esac
8761
8762 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8763 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8764 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8765 X"$ac_file" : 'X\(//\)[^/]' \| \
8766 X"$ac_file" : 'X\(//\)$' \| \
8767 X"$ac_file" : 'X\(/\)' \| \
8768 . : '\(.\)' 2>/dev/null ||
8769 echo X"$ac_file" |
8770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8771 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8772 /^X\(\/\/\)$/{ s//\1/; q; }
8773 /^X\(\/\).*/{ s//\1/; q; }
8774 s/.*/./; q'`
8775 { if $as_mkdir_p; then
8776 mkdir -p "$ac_dir"
8777 else
8778 as_dir="$ac_dir"
8779 as_dirs=
8780 while test ! -d "$as_dir"; do
8781 as_dirs="$as_dir $as_dirs"
8782 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8783 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8784 X"$as_dir" : 'X\(//\)[^/]' \| \
8785 X"$as_dir" : 'X\(//\)$' \| \
8786 X"$as_dir" : 'X\(/\)' \| \
8787 . : '\(.\)' 2>/dev/null ||
8788 echo X"$as_dir" |
8789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8790 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8791 /^X\(\/\/\)$/{ s//\1/; q; }
8792 /^X\(\/\).*/{ s//\1/; q; }
8793 s/.*/./; q'`
8794 done
8795 test ! -n "$as_dirs" || mkdir $as_dirs
8796 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8797 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8798 { (exit 1); exit 1; }; }; }
8799
8800 ac_builddir=.
8801
8802 if test "$ac_dir" != .; then
8803 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8804 # A "../" for each directory in $ac_dir_suffix.
8805 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8806 else
8807 ac_dir_suffix= ac_top_builddir=
8808 fi
8809
8810 case $srcdir in
8811 .) # No --srcdir option. We are building in place.
8812 ac_srcdir=.
8813 if test -z "$ac_top_builddir"; then
8814 ac_top_srcdir=.
8815 else
8816 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8817 fi ;;
8818 [\\/]* | ?:[\\/]* ) # Absolute path.
8819 ac_srcdir=$srcdir$ac_dir_suffix;
8820 ac_top_srcdir=$srcdir ;;
8821 *) # Relative path.
8822 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8823 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8824 esac
8825
8826 # Do not use `cd foo && pwd` to compute absolute paths, because
8827 # the directories may not exist.
8828 case `pwd` in
8829 .) ac_abs_builddir="$ac_dir";;
8830 *)
8831 case "$ac_dir" in
8832 .) ac_abs_builddir=`pwd`;;
8833 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8834 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8835 esac;;
8836 esac
8837 case $ac_abs_builddir in
8838 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8839 *)
8840 case ${ac_top_builddir}. in
8841 .) ac_abs_top_builddir=$ac_abs_builddir;;
8842 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8843 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8844 esac;;
8845 esac
8846 case $ac_abs_builddir in
8847 .) ac_abs_srcdir=$ac_srcdir;;
8848 *)
8849 case $ac_srcdir in
8850 .) ac_abs_srcdir=$ac_abs_builddir;;
8851 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8852 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8853 esac;;
8854 esac
8855 case $ac_abs_builddir in
8856 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8857 *)
8858 case $ac_top_srcdir in
8859 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8860 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8861 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8862 esac;;
8863 esac
8864
8865
8866 case $INSTALL in
8867 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8868 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8869 esac
8870
8871 if test x"$ac_file" != x-; then
8872 { echo "$as_me:$LINENO: creating $ac_file" >&5
8873 echo "$as_me: creating $ac_file" >&6;}
8874 rm -f "$ac_file"
8875 fi
8876 # Let's still pretend it is `configure' which instantiates (i.e., don't
8877 # use $as_me), people would be surprised to read:
8878 # /* config.h. Generated by config.status. */
8879 if test x"$ac_file" = x-; then
8880 configure_input=
8881 else
8882 configure_input="$ac_file. "
8883 fi
8884 configure_input=$configure_input"Generated from `echo $ac_file_in |
8885 sed 's,.*/,,'` by configure."
8886
8887 # First look for the input files in the build tree, otherwise in the
8888 # src tree.
8889 ac_file_inputs=`IFS=:
8890 for f in $ac_file_in; do
8891 case $f in
8892 -) echo $tmp/stdin ;;
8893 [\\/$]*)
8894 # Absolute (can't be DOS-style, as IFS=:)
8895 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8896 echo "$as_me: error: cannot find input file: $f" >&2;}
8897 { (exit 1); exit 1; }; }
8898 echo "$f";;
8899 *) # Relative
8900 if test -f "$f"; then
8901 # Build tree
8902 echo "$f"
8903 elif test -f "$srcdir/$f"; then
8904 # Source tree
8905 echo "$srcdir/$f"
8906 else
8907 # /dev/null tree
8908 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8909 echo "$as_me: error: cannot find input file: $f" >&2;}
8910 { (exit 1); exit 1; }; }
8911 fi;;
8912 esac
8913 done` || { (exit 1); exit 1; }
8914 _ACEOF
8915 cat >>$CONFIG_STATUS <<_ACEOF
8916 sed "$ac_vpsub
8917 $extrasub
8918 _ACEOF
8919 cat >>$CONFIG_STATUS <<\_ACEOF
8920 :t
8921 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8922 s,@configure_input@,$configure_input,;t t
8923 s,@srcdir@,$ac_srcdir,;t t
8924 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8925 s,@top_srcdir@,$ac_top_srcdir,;t t
8926 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8927 s,@builddir@,$ac_builddir,;t t
8928 s,@abs_builddir@,$ac_abs_builddir,;t t
8929 s,@top_builddir@,$ac_top_builddir,;t t
8930 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8931 s,@INSTALL@,$ac_INSTALL,;t t
8932 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8933 rm -f $tmp/stdin
8934 if test x"$ac_file" != x-; then
8935 mv $tmp/out $ac_file
8936 else
8937 cat $tmp/out
8938 rm -f $tmp/out
8939 fi
8940
8941 done
8942 _ACEOF
8943 cat >>$CONFIG_STATUS <<\_ACEOF
8944
8945 #
8946 # CONFIG_HEADER section.
8947 #
8948
8949 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8950 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8951 #
8952 # ac_d sets the value in "#define NAME VALUE" lines.
8953 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8954 ac_dB='[ ].*$,\1#\2'
8955 ac_dC=' '
8956 ac_dD=',;t'
8957 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8958 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8959 ac_uB='$,\1#\2define\3'
8960 ac_uC=' '
8961 ac_uD=',;t'
8962
8963 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8964 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8965 case $ac_file in
8966 - | *:- | *:-:* ) # input from stdin
8967 cat >$tmp/stdin
8968 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8969 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8970 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8971 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8972 * ) ac_file_in=$ac_file.in ;;
8973 esac
8974
8975 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8976 echo "$as_me: creating $ac_file" >&6;}
8977
8978 # First look for the input files in the build tree, otherwise in the
8979 # src tree.
8980 ac_file_inputs=`IFS=:
8981 for f in $ac_file_in; do
8982 case $f in
8983 -) echo $tmp/stdin ;;
8984 [\\/$]*)
8985 # Absolute (can't be DOS-style, as IFS=:)
8986 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8987 echo "$as_me: error: cannot find input file: $f" >&2;}
8988 { (exit 1); exit 1; }; }
8989 # Do quote $f, to prevent DOS paths from being IFS'd.
8990 echo "$f";;
8991 *) # Relative
8992 if test -f "$f"; then
8993 # Build tree
8994 echo "$f"
8995 elif test -f "$srcdir/$f"; then
8996 # Source tree
8997 echo "$srcdir/$f"
8998 else
8999 # /dev/null tree
9000 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9001 echo "$as_me: error: cannot find input file: $f" >&2;}
9002 { (exit 1); exit 1; }; }
9003 fi;;
9004 esac
9005 done` || { (exit 1); exit 1; }
9006 # Remove the trailing spaces.
9007 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9008
9009 _ACEOF
9010
9011 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9012 # `conftest.undefs', that substitutes the proper values into
9013 # config.h.in to produce config.h. The first handles `#define'
9014 # templates, and the second `#undef' templates.
9015 # And first: Protect against being on the right side of a sed subst in
9016 # config.status. Protect against being in an unquoted here document
9017 # in config.status.
9018 rm -f conftest.defines conftest.undefs
9019 # Using a here document instead of a string reduces the quoting nightmare.
9020 # Putting comments in sed scripts is not portable.
9021 #
9022 # `end' is used to avoid that the second main sed command (meant for
9023 # 0-ary CPP macros) applies to n-ary macro definitions.
9024 # See the Autoconf documentation for `clear'.
9025 cat >confdef2sed.sed <<\_ACEOF
9026 s/[\\&,]/\\&/g
9027 s,[\\$`],\\&,g
9028 t clear
9029 : clear
9030 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9031 t end
9032 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9033 : end
9034 _ACEOF
9035 # If some macros were called several times there might be several times
9036 # the same #defines, which is useless. Nevertheless, we may not want to
9037 # sort them, since we want the *last* AC-DEFINE to be honored.
9038 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9039 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9040 rm -f confdef2sed.sed
9041
9042 # This sed command replaces #undef with comments. This is necessary, for
9043 # example, in the case of _POSIX_SOURCE, which is predefined and required
9044 # on some systems where configure will not decide to define it.
9045 cat >>conftest.undefs <<\_ACEOF
9046 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9047 _ACEOF
9048
9049 # Break up conftest.defines because some shells have a limit on the size
9050 # of here documents, and old seds have small limits too (100 cmds).
9051 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9052 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9053 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9054 echo ' :' >>$CONFIG_STATUS
9055 rm -f conftest.tail
9056 while grep . conftest.defines >/dev/null
9057 do
9058 # Write a limited-size here document to $tmp/defines.sed.
9059 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9060 # Speed up: don't consider the non `#define' lines.
9061 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9062 # Work around the forget-to-reset-the-flag bug.
9063 echo 't clr' >>$CONFIG_STATUS
9064 echo ': clr' >>$CONFIG_STATUS
9065 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9066 echo 'CEOF
9067 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9068 rm -f $tmp/in
9069 mv $tmp/out $tmp/in
9070 ' >>$CONFIG_STATUS
9071 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9072 rm -f conftest.defines
9073 mv conftest.tail conftest.defines
9074 done
9075 rm -f conftest.defines
9076 echo ' fi # grep' >>$CONFIG_STATUS
9077 echo >>$CONFIG_STATUS
9078
9079 # Break up conftest.undefs because some shells have a limit on the size
9080 # of here documents, and old seds have small limits too (100 cmds).
9081 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9082 rm -f conftest.tail
9083 while grep . conftest.undefs >/dev/null
9084 do
9085 # Write a limited-size here document to $tmp/undefs.sed.
9086 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9087 # Speed up: don't consider the non `#undef'
9088 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9089 # Work around the forget-to-reset-the-flag bug.
9090 echo 't clr' >>$CONFIG_STATUS
9091 echo ': clr' >>$CONFIG_STATUS
9092 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9093 echo 'CEOF
9094 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9095 rm -f $tmp/in
9096 mv $tmp/out $tmp/in
9097 ' >>$CONFIG_STATUS
9098 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9099 rm -f conftest.undefs
9100 mv conftest.tail conftest.undefs
9101 done
9102 rm -f conftest.undefs
9103
9104 cat >>$CONFIG_STATUS <<\_ACEOF
9105 # Let's still pretend it is `configure' which instantiates (i.e., don't
9106 # use $as_me), people would be surprised to read:
9107 # /* config.h. Generated by config.status. */
9108 if test x"$ac_file" = x-; then
9109 echo "/* Generated by configure. */" >$tmp/config.h
9110 else
9111 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9112 fi
9113 cat $tmp/in >>$tmp/config.h
9114 rm -f $tmp/in
9115 if test x"$ac_file" != x-; then
9116 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9117 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9118 echo "$as_me: $ac_file is unchanged" >&6;}
9119 else
9120 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9121 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9122 X"$ac_file" : 'X\(//\)[^/]' \| \
9123 X"$ac_file" : 'X\(//\)$' \| \
9124 X"$ac_file" : 'X\(/\)' \| \
9125 . : '\(.\)' 2>/dev/null ||
9126 echo X"$ac_file" |
9127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9128 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9129 /^X\(\/\/\)$/{ s//\1/; q; }
9130 /^X\(\/\).*/{ s//\1/; q; }
9131 s/.*/./; q'`
9132 { if $as_mkdir_p; then
9133 mkdir -p "$ac_dir"
9134 else
9135 as_dir="$ac_dir"
9136 as_dirs=
9137 while test ! -d "$as_dir"; do
9138 as_dirs="$as_dir $as_dirs"
9139 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9140 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9141 X"$as_dir" : 'X\(//\)[^/]' \| \
9142 X"$as_dir" : 'X\(//\)$' \| \
9143 X"$as_dir" : 'X\(/\)' \| \
9144 . : '\(.\)' 2>/dev/null ||
9145 echo X"$as_dir" |
9146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9147 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9148 /^X\(\/\/\)$/{ s//\1/; q; }
9149 /^X\(\/\).*/{ s//\1/; q; }
9150 s/.*/./; q'`
9151 done
9152 test ! -n "$as_dirs" || mkdir $as_dirs
9153 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9154 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9155 { (exit 1); exit 1; }; }; }
9156
9157 rm -f $ac_file
9158 mv $tmp/config.h $ac_file
9159 fi
9160 else
9161 cat $tmp/config.h
9162 rm -f $tmp/config.h
9163 fi
9164 # Compute $ac_file's index in $config_headers.
9165 _am_stamp_count=1
9166 for _am_header in $config_headers :; do
9167 case $_am_header in
9168 $ac_file | $ac_file:* )
9169 break ;;
9170 * )
9171 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9172 esac
9173 done
9174 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9175 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9176 X$ac_file : 'X\(//\)[^/]' \| \
9177 X$ac_file : 'X\(//\)$' \| \
9178 X$ac_file : 'X\(/\)' \| \
9179 . : '\(.\)' 2>/dev/null ||
9180 echo X$ac_file |
9181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9182 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9183 /^X\(\/\/\)$/{ s//\1/; q; }
9184 /^X\(\/\).*/{ s//\1/; q; }
9185 s/.*/./; q'`/stamp-h$_am_stamp_count
9186 done
9187 _ACEOF
9188 cat >>$CONFIG_STATUS <<\_ACEOF
9189
9190 #
9191 # CONFIG_COMMANDS section.
9192 #
9193 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9194 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9195 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9196 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9197 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9198 X"$ac_dest" : 'X\(//\)[^/]' \| \
9199 X"$ac_dest" : 'X\(//\)$' \| \
9200 X"$ac_dest" : 'X\(/\)' \| \
9201 . : '\(.\)' 2>/dev/null ||
9202 echo X"$ac_dest" |
9203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9204 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9205 /^X\(\/\/\)$/{ s//\1/; q; }
9206 /^X\(\/\).*/{ s//\1/; q; }
9207 s/.*/./; q'`
9208 { if $as_mkdir_p; then
9209 mkdir -p "$ac_dir"
9210 else
9211 as_dir="$ac_dir"
9212 as_dirs=
9213 while test ! -d "$as_dir"; do
9214 as_dirs="$as_dir $as_dirs"
9215 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9216 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9217 X"$as_dir" : 'X\(//\)[^/]' \| \
9218 X"$as_dir" : 'X\(//\)$' \| \
9219 X"$as_dir" : 'X\(/\)' \| \
9220 . : '\(.\)' 2>/dev/null ||
9221 echo X"$as_dir" |
9222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9223 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9224 /^X\(\/\/\)$/{ s//\1/; q; }
9225 /^X\(\/\).*/{ s//\1/; q; }
9226 s/.*/./; q'`
9227 done
9228 test ! -n "$as_dirs" || mkdir $as_dirs
9229 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9230 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9231 { (exit 1); exit 1; }; }; }
9232
9233 ac_builddir=.
9234
9235 if test "$ac_dir" != .; then
9236 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9237 # A "../" for each directory in $ac_dir_suffix.
9238 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9239 else
9240 ac_dir_suffix= ac_top_builddir=
9241 fi
9242
9243 case $srcdir in
9244 .) # No --srcdir option. We are building in place.
9245 ac_srcdir=.
9246 if test -z "$ac_top_builddir"; then
9247 ac_top_srcdir=.
9248 else
9249 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9250 fi ;;
9251 [\\/]* | ?:[\\/]* ) # Absolute path.
9252 ac_srcdir=$srcdir$ac_dir_suffix;
9253 ac_top_srcdir=$srcdir ;;
9254 *) # Relative path.
9255 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9256 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9257 esac
9258
9259 # Do not use `cd foo && pwd` to compute absolute paths, because
9260 # the directories may not exist.
9261 case `pwd` in
9262 .) ac_abs_builddir="$ac_dir";;
9263 *)
9264 case "$ac_dir" in
9265 .) ac_abs_builddir=`pwd`;;
9266 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9267 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9268 esac;;
9269 esac
9270 case $ac_abs_builddir in
9271 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9272 *)
9273 case ${ac_top_builddir}. in
9274 .) ac_abs_top_builddir=$ac_abs_builddir;;
9275 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9276 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9277 esac;;
9278 esac
9279 case $ac_abs_builddir in
9280 .) ac_abs_srcdir=$ac_srcdir;;
9281 *)
9282 case $ac_srcdir in
9283 .) ac_abs_srcdir=$ac_abs_builddir;;
9284 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9285 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9286 esac;;
9287 esac
9288 case $ac_abs_builddir in
9289 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9290 *)
9291 case $ac_top_srcdir in
9292 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9293 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9294 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9295 esac;;
9296 esac
9297
9298
9299 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9300 echo "$as_me: executing $ac_dest commands" >&6;}
9301 case $ac_dest in
9302 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9303 # Strip MF so we end up with the name of the file.
9304 mf=`echo "$mf" | sed -e 's/:.*$//'`
9305 # Check whether this is an Automake generated Makefile or not.
9306 # We used to match only the files named `Makefile.in', but
9307 # some people rename them; so instead we look at the file content.
9308 # Grep'ing the first line is not enough: some people post-process
9309 # each Makefile.in and add a new line on top of each file to say so.
9310 # So let's grep whole file.
9311 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9312 dirpart=`(dirname "$mf") 2>/dev/null ||
9313 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9314 X"$mf" : 'X\(//\)[^/]' \| \
9315 X"$mf" : 'X\(//\)$' \| \
9316 X"$mf" : 'X\(/\)' \| \
9317 . : '\(.\)' 2>/dev/null ||
9318 echo X"$mf" |
9319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9320 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9321 /^X\(\/\/\)$/{ s//\1/; q; }
9322 /^X\(\/\).*/{ s//\1/; q; }
9323 s/.*/./; q'`
9324 else
9325 continue
9326 fi
9327 # Extract the definition of DEPDIR, am__include, and am__quote
9328 # from the Makefile without running `make'.
9329 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9330 test -z "$DEPDIR" && continue
9331 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9332 test -z "am__include" && continue
9333 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9334 # When using ansi2knr, U may be empty or an underscore; expand it
9335 U=`sed -n 's/^U = //p' < "$mf"`
9336 # Find all dependency output files, they are included files with
9337 # $(DEPDIR) in their names. We invoke sed twice because it is the
9338 # simplest approach to changing $(DEPDIR) to its actual value in the
9339 # expansion.
9340 for file in `sed -n "
9341 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9342 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9343 # Make sure the directory exists.
9344 test -f "$dirpart/$file" && continue
9345 fdir=`(dirname "$file") 2>/dev/null ||
9346 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9347 X"$file" : 'X\(//\)[^/]' \| \
9348 X"$file" : 'X\(//\)$' \| \
9349 X"$file" : 'X\(/\)' \| \
9350 . : '\(.\)' 2>/dev/null ||
9351 echo X"$file" |
9352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9354 /^X\(\/\/\)$/{ s//\1/; q; }
9355 /^X\(\/\).*/{ s//\1/; q; }
9356 s/.*/./; q'`
9357 { if $as_mkdir_p; then
9358 mkdir -p $dirpart/$fdir
9359 else
9360 as_dir=$dirpart/$fdir
9361 as_dirs=
9362 while test ! -d "$as_dir"; do
9363 as_dirs="$as_dir $as_dirs"
9364 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9366 X"$as_dir" : 'X\(//\)[^/]' \| \
9367 X"$as_dir" : 'X\(//\)$' \| \
9368 X"$as_dir" : 'X\(/\)' \| \
9369 . : '\(.\)' 2>/dev/null ||
9370 echo X"$as_dir" |
9371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9373 /^X\(\/\/\)$/{ s//\1/; q; }
9374 /^X\(\/\).*/{ s//\1/; q; }
9375 s/.*/./; q'`
9376 done
9377 test ! -n "$as_dirs" || mkdir $as_dirs
9378 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9379 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9380 { (exit 1); exit 1; }; }; }
9381
9382 # echo "creating $dirpart/$file"
9383 echo '# dummy' > "$dirpart/$file"
9384 done
9385 done
9386 ;;
9387 default-1 )
9388 for ac_file in $CONFIG_FILES; do
9389 # Support "outfile[:infile[:infile...]]"
9390 case "$ac_file" in
9391 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9392 esac
9393 # PO directories have a Makefile.in generated from Makefile.in.in.
9394 case "$ac_file" in */Makefile.in)
9395 # Adjust a relative srcdir.
9396 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9397 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9398 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9399 # In autoconf-2.13 it is called $ac_given_srcdir.
9400 # In autoconf-2.50 it is called $srcdir.
9401 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9402 case "$ac_given_srcdir" in
9403 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9404 /*) top_srcdir="$ac_given_srcdir" ;;
9405 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9406 esac
9407 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9408 rm -f "$ac_dir/POTFILES"
9409 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9410 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9411 POMAKEFILEDEPS="POTFILES.in"
9412 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
9413 # on $ac_dir but don't depend on user-specified configuration
9414 # parameters.
9415 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9416 # The LINGUAS file contains the set of available languages.
9417 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9418 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9419 fi
9420 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9421 # Hide the ALL_LINGUAS assigment from automake.
9422 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9423 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9424 else
9425 # The set of available languages was given in configure.in.
9426 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9427 fi
9428 case "$ac_given_srcdir" in
9429 .) srcdirpre= ;;
9430 *) srcdirpre='$(srcdir)/' ;;
9431 esac
9432 POFILES=
9433 GMOFILES=
9434 UPDATEPOFILES=
9435 DUMMYPOFILES=
9436 for lang in $ALL_LINGUAS; do
9437 POFILES="$POFILES $srcdirpre$lang.po"
9438 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9439 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9440 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9441 done
9442 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9443 # environment variable.
9444 INST_LINGUAS=
9445 if test -n "$ALL_LINGUAS"; then
9446 for presentlang in $ALL_LINGUAS; do
9447 useit=no
9448 if test "%UNSET%" != "$LINGUAS"; then
9449 desiredlanguages="$LINGUAS"
9450 else
9451 desiredlanguages="$ALL_LINGUAS"
9452 fi
9453 for desiredlang in $desiredlanguages; do
9454 # Use the presentlang catalog if desiredlang is
9455 # a. equal to presentlang, or
9456 # b. a variant of presentlang (because in this case,
9457 # presentlang can be used as a fallback for messages
9458 # which are not translated in the desiredlang catalog).
9459 case "$desiredlang" in
9460 "$presentlang"*) useit=yes;;
9461 esac
9462 done
9463 if test $useit = yes; then
9464 INST_LINGUAS="$INST_LINGUAS $presentlang"
9465 fi
9466 done
9467 fi
9468 CATALOGS=
9469 if test -n "$INST_LINGUAS"; then
9470 for lang in $INST_LINGUAS; do
9471 CATALOGS="$CATALOGS $lang.gmo"
9472 done
9473 fi
9474 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9475 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9476 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9477 if test -f "$f"; then
9478 case "$f" in
9479 *.orig | *.bak | *~) ;;
9480 *) cat "$f" >> "$ac_dir/Makefile" ;;
9481 esac
9482 fi
9483 done
9484 fi
9485 ;;
9486 esac
9487 done ;;
9488 esac
9489 done
9490 _ACEOF
9491
9492 cat >>$CONFIG_STATUS <<\_ACEOF
9493
9494 { (exit 0); exit 0; }
9495 _ACEOF
9496 chmod +x $CONFIG_STATUS
9497 ac_clean_files=$ac_clean_files_save
9498
9499
9500 # configure is writing to config.log, and then calls config.status.
9501 # config.status does its own redirection, appending to config.log.
9502 # Unfortunately, on DOS this fails, as config.log is still kept open
9503 # by configure, so config.status won't be able to write to it; its
9504 # output is simply discarded. So we exec the FD to /dev/null,
9505 # effectively closing config.log, so it can be properly (re)opened and
9506 # appended to by config.status. When coming back to configure, we
9507 # need to make the FD available again.
9508 if test "$no_create" != yes; then
9509 ac_cs_success=:
9510 ac_config_status_args=
9511 test "$silent" = yes &&
9512 ac_config_status_args="$ac_config_status_args --quiet"
9513 exec 5>/dev/null
9514 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9515 exec 5>>config.log
9516 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9517 # would make configure fail if this is the last instruction.
9518 $ac_cs_success || { (exit 1); exit 1; }
9519 fi
9520
This page took 0.244986 seconds and 4 git commands to generate.