No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gdb6 / gdb / gdbserver / configure
blob262d5ef99acc4b81db9f544fcf4553c3f8273994
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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 ## --------------------- ##
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
22 DUALCASE=1; export DUALCASE # for MKS sh
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
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
225 as_executable_p="test -f"
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'"
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
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`
249 exec 6>&1
252 # Initializations.
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}
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}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="server.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"
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP RDYNAMIC GDBSERVER_DEPFILES GDBSERVER_LIBS USE_THREAD_DB LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
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
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'
353 ac_prev=
354 for ac_option
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
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
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 ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
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 ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
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 ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
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 ;;
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 ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
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 ;;
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 ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
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 ;;
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 ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
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 ;;
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 ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
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'" ;;
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" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
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 ;;
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 ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
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 ;;
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}
649 esac
650 done
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; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
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
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
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
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
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
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
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=..
725 else
726 ac_srcdir_defaulted=no
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; }; }
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
775 # Report the --help message.
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.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
788 Defaults for the options are specified in brackets.
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 \`..']
801 _ACEOF
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]
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'.
815 For better control, use the options below.
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
832 cat <<\_ACEOF
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
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
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Some influential environment variables:
851 CC C compiler command
852 CFLAGS C compiler flags
853 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
854 nonstandard directory <lib dir>
855 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
856 headers in a nonstandard directory <include dir>
857 CPP C preprocessor
859 Use these variables to override the choices made by `configure' or to help
860 it to find libraries and programs with nonstandard names/locations.
862 _ACEOF
865 if test "$ac_init_help" = "recursive"; then
866 # If there are subdirs, report their specific --help.
867 ac_popdir=`pwd`
868 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
869 test -d $ac_dir || continue
870 ac_builddir=.
872 if test "$ac_dir" != .; then
873 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
874 # A "../" for each directory in $ac_dir_suffix.
875 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
876 else
877 ac_dir_suffix= ac_top_builddir=
880 case $srcdir in
881 .) # No --srcdir option. We are building in place.
882 ac_srcdir=.
883 if test -z "$ac_top_builddir"; then
884 ac_top_srcdir=.
885 else
886 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
887 fi ;;
888 [\\/]* | ?:[\\/]* ) # Absolute path.
889 ac_srcdir=$srcdir$ac_dir_suffix;
890 ac_top_srcdir=$srcdir ;;
891 *) # Relative path.
892 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
893 ac_top_srcdir=$ac_top_builddir$srcdir ;;
894 esac
896 # Do not use `cd foo && pwd` to compute absolute paths, because
897 # the directories may not exist.
898 case `pwd` in
899 .) ac_abs_builddir="$ac_dir";;
901 case "$ac_dir" in
902 .) ac_abs_builddir=`pwd`;;
903 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
904 *) ac_abs_builddir=`pwd`/"$ac_dir";;
905 esac;;
906 esac
907 case $ac_abs_builddir in
908 .) ac_abs_top_builddir=${ac_top_builddir}.;;
910 case ${ac_top_builddir}. in
911 .) ac_abs_top_builddir=$ac_abs_builddir;;
912 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
913 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
914 esac;;
915 esac
916 case $ac_abs_builddir in
917 .) ac_abs_srcdir=$ac_srcdir;;
919 case $ac_srcdir in
920 .) ac_abs_srcdir=$ac_abs_builddir;;
921 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
922 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
923 esac;;
924 esac
925 case $ac_abs_builddir in
926 .) ac_abs_top_srcdir=$ac_top_srcdir;;
928 case $ac_top_srcdir in
929 .) ac_abs_top_srcdir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
931 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
932 esac;;
933 esac
935 cd $ac_dir
936 # Check for guested configure; otherwise get Cygnus style configure.
937 if test -f $ac_srcdir/configure.gnu; then
938 echo
939 $SHELL $ac_srcdir/configure.gnu --help=recursive
940 elif test -f $ac_srcdir/configure; then
941 echo
942 $SHELL $ac_srcdir/configure --help=recursive
943 elif test -f $ac_srcdir/configure.ac ||
944 test -f $ac_srcdir/configure.in; then
945 echo
946 $ac_configure --help
947 else
948 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 cd "$ac_popdir"
951 done
954 test -n "$ac_init_help" && exit 0
955 if $ac_init_version; then
956 cat <<\_ACEOF
958 Copyright (C) 2003 Free Software Foundation, Inc.
959 This configure script is free software; the Free Software Foundation
960 gives unlimited permission to copy, distribute and modify it.
961 _ACEOF
962 exit 0
964 exec 5>config.log
965 cat >&5 <<_ACEOF
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
969 It was created by $as_me, which was
970 generated by GNU Autoconf 2.59. Invocation command line was
972 $ $0 $@
974 _ACEOF
976 cat <<_ASUNAME
977 ## --------- ##
978 ## Platform. ##
979 ## --------- ##
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
998 _ASUNAME
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 for as_dir in $PATH
1003 IFS=$as_save_IFS
1004 test -z "$as_dir" && as_dir=.
1005 echo "PATH: $as_dir"
1006 done
1008 } >&5
1010 cat >&5 <<_ACEOF
1013 ## ----------- ##
1014 ## Core tests. ##
1015 ## ----------- ##
1017 _ACEOF
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Strip out --silent because we don't want to record it for future runs.
1023 # Also quote any args containing shell meta-characters.
1024 # Make two passes to allow for proper duplicate-argument suppression.
1025 ac_configure_args=
1026 ac_configure_args0=
1027 ac_configure_args1=
1028 ac_sep=
1029 ac_must_keep_next=false
1030 for ac_pass in 1 2
1032 for ac_arg
1034 case $ac_arg in
1035 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1038 continue ;;
1039 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1040 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1041 esac
1042 case $ac_pass in
1043 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1045 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1046 if test $ac_must_keep_next = true; then
1047 ac_must_keep_next=false # Got value, back to normal.
1048 else
1049 case $ac_arg in
1050 *=* | --config-cache | -C | -disable-* | --disable-* \
1051 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1052 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1053 | -with-* | --with-* | -without-* | --without-* | --x)
1054 case "$ac_configure_args0 " in
1055 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1056 esac
1058 -* ) ac_must_keep_next=true ;;
1059 esac
1061 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1062 # Get rid of the leading space.
1063 ac_sep=" "
1065 esac
1066 done
1067 done
1068 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1069 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1071 # When interrupted or exit'd, cleanup temporary files, and complete
1072 # config.log. We remove comments because anyway the quotes in there
1073 # would cause problems or look ugly.
1074 # WARNING: Be sure not to use single quotes in there, as some shells,
1075 # such as our DU 5.0 friend, will then `close' the trap.
1076 trap 'exit_status=$?
1077 # Save into config.log some information that might help in debugging.
1079 echo
1081 cat <<\_ASBOX
1082 ## ---------------- ##
1083 ## Cache variables. ##
1084 ## ---------------- ##
1085 _ASBOX
1086 echo
1087 # The following way of writing the cache mishandles newlines in values,
1089 (set) 2>&1 |
1090 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1091 *ac_space=\ *)
1092 sed -n \
1093 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1097 sed -n \
1098 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1100 esac;
1102 echo
1104 cat <<\_ASBOX
1105 ## ----------------- ##
1106 ## Output variables. ##
1107 ## ----------------- ##
1108 _ASBOX
1109 echo
1110 for ac_var in $ac_subst_vars
1112 eval ac_val=$`echo $ac_var`
1113 echo "$ac_var='"'"'$ac_val'"'"'"
1114 done | sort
1115 echo
1117 if test -n "$ac_subst_files"; then
1118 cat <<\_ASBOX
1119 ## ------------- ##
1120 ## Output files. ##
1121 ## ------------- ##
1122 _ASBOX
1123 echo
1124 for ac_var in $ac_subst_files
1126 eval ac_val=$`echo $ac_var`
1127 echo "$ac_var='"'"'$ac_val'"'"'"
1128 done | sort
1129 echo
1132 if test -s confdefs.h; then
1133 cat <<\_ASBOX
1134 ## ----------- ##
1135 ## confdefs.h. ##
1136 ## ----------- ##
1137 _ASBOX
1138 echo
1139 sed "/^$/d" confdefs.h | sort
1140 echo
1142 test "$ac_signal" != 0 &&
1143 echo "$as_me: caught signal $ac_signal"
1144 echo "$as_me: exit $exit_status"
1145 } >&5
1146 rm -f core *.core &&
1147 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1148 exit $exit_status
1150 for ac_signal in 1 2 13 15; do
1151 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1152 done
1153 ac_signal=0
1155 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1156 rm -rf conftest* confdefs.h
1157 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1158 echo >confdefs.h
1160 # Predefined preprocessor variables.
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_NAME "$PACKAGE_NAME"
1164 _ACEOF
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1169 _ACEOF
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1174 _ACEOF
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_STRING "$PACKAGE_STRING"
1179 _ACEOF
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1184 _ACEOF
1187 # Let the site file select an alternate cache file if it wants to.
1188 # Prefer explicitly selected file to automatically selected ones.
1189 if test -z "$CONFIG_SITE"; then
1190 if test "x$prefix" != xNONE; then
1191 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1192 else
1193 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1196 for ac_site_file in $CONFIG_SITE; do
1197 if test -r "$ac_site_file"; then
1198 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1199 echo "$as_me: loading site script $ac_site_file" >&6;}
1200 sed 's/^/| /' "$ac_site_file" >&5
1201 . "$ac_site_file"
1203 done
1205 if test -r "$cache_file"; then
1206 # Some versions of bash will fail to source /dev/null (special
1207 # files actually), so we avoid doing that.
1208 if test -f "$cache_file"; then
1209 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1210 echo "$as_me: loading cache $cache_file" >&6;}
1211 case $cache_file in
1212 [\\/]* | ?:[\\/]* ) . $cache_file;;
1213 *) . ./$cache_file;;
1214 esac
1216 else
1217 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1218 echo "$as_me: creating cache $cache_file" >&6;}
1219 >$cache_file
1222 # Check that the precious variables saved in the cache have kept the same
1223 # value.
1224 ac_cache_corrupted=false
1225 for ac_var in `(set) 2>&1 |
1226 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1227 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1228 eval ac_new_set=\$ac_env_${ac_var}_set
1229 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1230 eval ac_new_val="\$ac_env_${ac_var}_value"
1231 case $ac_old_set,$ac_new_set in
1232 set,)
1233 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1234 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1235 ac_cache_corrupted=: ;;
1236 ,set)
1237 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1239 ac_cache_corrupted=: ;;
1240 ,);;
1242 if test "x$ac_old_val" != "x$ac_new_val"; then
1243 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1244 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1245 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1246 echo "$as_me: former value: $ac_old_val" >&2;}
1247 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1248 echo "$as_me: current value: $ac_new_val" >&2;}
1249 ac_cache_corrupted=:
1250 fi;;
1251 esac
1252 # Pass precious variables to config.status.
1253 if test "$ac_new_set" = set; then
1254 case $ac_new_val in
1255 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1256 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1257 *) ac_arg=$ac_var=$ac_new_val ;;
1258 esac
1259 case " $ac_configure_args " in
1260 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1261 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1262 esac
1264 done
1265 if $ac_cache_corrupted; then
1266 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1267 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1268 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1269 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1270 { (exit 1); exit 1; }; }
1273 ac_ext=c
1274 ac_cpp='$CPP $CPPFLAGS'
1275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1297 ac_config_headers="$ac_config_headers config.h:config.in"
1300 ac_ext=c
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305 if test -n "$ac_tool_prefix"; then
1306 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1307 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1308 echo "$as_me:$LINENO: checking for $ac_word" >&5
1309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1310 if test "${ac_cv_prog_CC+set}" = set; then
1311 echo $ECHO_N "(cached) $ECHO_C" >&6
1312 else
1313 if test -n "$CC"; then
1314 ac_cv_prog_CC="$CC" # Let the user override the test.
1315 else
1316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1317 for as_dir in $PATH
1319 IFS=$as_save_IFS
1320 test -z "$as_dir" && as_dir=.
1321 for ac_exec_ext in '' $ac_executable_extensions; do
1322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1323 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1325 break 2
1327 done
1328 done
1332 CC=$ac_cv_prog_CC
1333 if test -n "$CC"; then
1334 echo "$as_me:$LINENO: result: $CC" >&5
1335 echo "${ECHO_T}$CC" >&6
1336 else
1337 echo "$as_me:$LINENO: result: no" >&5
1338 echo "${ECHO_T}no" >&6
1342 if test -z "$ac_cv_prog_CC"; then
1343 ac_ct_CC=$CC
1344 # Extract the first word of "gcc", so it can be a program name with args.
1345 set dummy gcc; ac_word=$2
1346 echo "$as_me:$LINENO: checking for $ac_word" >&5
1347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1348 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1349 echo $ECHO_N "(cached) $ECHO_C" >&6
1350 else
1351 if test -n "$ac_ct_CC"; then
1352 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1353 else
1354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1355 for as_dir in $PATH
1357 IFS=$as_save_IFS
1358 test -z "$as_dir" && as_dir=.
1359 for ac_exec_ext in '' $ac_executable_extensions; do
1360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1361 ac_cv_prog_ac_ct_CC="gcc"
1362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1363 break 2
1365 done
1366 done
1370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1371 if test -n "$ac_ct_CC"; then
1372 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1373 echo "${ECHO_T}$ac_ct_CC" >&6
1374 else
1375 echo "$as_me:$LINENO: result: no" >&5
1376 echo "${ECHO_T}no" >&6
1379 CC=$ac_ct_CC
1380 else
1381 CC="$ac_cv_prog_CC"
1384 if test -z "$CC"; then
1385 if test -n "$ac_tool_prefix"; then
1386 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1387 set dummy ${ac_tool_prefix}cc; ac_word=$2
1388 echo "$as_me:$LINENO: checking for $ac_word" >&5
1389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1390 if test "${ac_cv_prog_CC+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1392 else
1393 if test -n "$CC"; then
1394 ac_cv_prog_CC="$CC" # Let the user override the test.
1395 else
1396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397 for as_dir in $PATH
1399 IFS=$as_save_IFS
1400 test -z "$as_dir" && as_dir=.
1401 for ac_exec_ext in '' $ac_executable_extensions; do
1402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1403 ac_cv_prog_CC="${ac_tool_prefix}cc"
1404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1405 break 2
1407 done
1408 done
1412 CC=$ac_cv_prog_CC
1413 if test -n "$CC"; then
1414 echo "$as_me:$LINENO: result: $CC" >&5
1415 echo "${ECHO_T}$CC" >&6
1416 else
1417 echo "$as_me:$LINENO: result: no" >&5
1418 echo "${ECHO_T}no" >&6
1422 if test -z "$ac_cv_prog_CC"; then
1423 ac_ct_CC=$CC
1424 # Extract the first word of "cc", so it can be a program name with args.
1425 set dummy cc; ac_word=$2
1426 echo "$as_me:$LINENO: checking for $ac_word" >&5
1427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1429 echo $ECHO_N "(cached) $ECHO_C" >&6
1430 else
1431 if test -n "$ac_ct_CC"; then
1432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1433 else
1434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435 for as_dir in $PATH
1437 IFS=$as_save_IFS
1438 test -z "$as_dir" && as_dir=.
1439 for ac_exec_ext in '' $ac_executable_extensions; do
1440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1441 ac_cv_prog_ac_ct_CC="cc"
1442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1443 break 2
1445 done
1446 done
1450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1451 if test -n "$ac_ct_CC"; then
1452 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1453 echo "${ECHO_T}$ac_ct_CC" >&6
1454 else
1455 echo "$as_me:$LINENO: result: no" >&5
1456 echo "${ECHO_T}no" >&6
1459 CC=$ac_ct_CC
1460 else
1461 CC="$ac_cv_prog_CC"
1465 if test -z "$CC"; then
1466 # Extract the first word of "cc", so it can be a program name with args.
1467 set dummy cc; ac_word=$2
1468 echo "$as_me:$LINENO: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_prog_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473 if test -n "$CC"; then
1474 ac_cv_prog_CC="$CC" # Let the user override the test.
1475 else
1476 ac_prog_rejected=no
1477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478 for as_dir in $PATH
1480 IFS=$as_save_IFS
1481 test -z "$as_dir" && as_dir=.
1482 for ac_exec_ext in '' $ac_executable_extensions; do
1483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1485 ac_prog_rejected=yes
1486 continue
1488 ac_cv_prog_CC="cc"
1489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490 break 2
1492 done
1493 done
1495 if test $ac_prog_rejected = yes; then
1496 # We found a bogon in the path, so make sure we never use it.
1497 set dummy $ac_cv_prog_CC
1498 shift
1499 if test $# != 0; then
1500 # We chose a different compiler from the bogus one.
1501 # However, it has the same basename, so the bogon will be chosen
1502 # first if we set CC to just the basename; use the full file name.
1503 shift
1504 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1509 CC=$ac_cv_prog_CC
1510 if test -n "$CC"; then
1511 echo "$as_me:$LINENO: result: $CC" >&5
1512 echo "${ECHO_T}$CC" >&6
1513 else
1514 echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1519 if test -z "$CC"; then
1520 if test -n "$ac_tool_prefix"; then
1521 for ac_prog in cl
1523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1525 echo "$as_me:$LINENO: checking for $ac_word" >&5
1526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1527 if test "${ac_cv_prog_CC+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 else
1530 if test -n "$CC"; then
1531 ac_cv_prog_CC="$CC" # Let the user override the test.
1532 else
1533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1534 for as_dir in $PATH
1536 IFS=$as_save_IFS
1537 test -z "$as_dir" && as_dir=.
1538 for ac_exec_ext in '' $ac_executable_extensions; do
1539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1540 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 break 2
1544 done
1545 done
1549 CC=$ac_cv_prog_CC
1550 if test -n "$CC"; then
1551 echo "$as_me:$LINENO: result: $CC" >&5
1552 echo "${ECHO_T}$CC" >&6
1553 else
1554 echo "$as_me:$LINENO: result: no" >&5
1555 echo "${ECHO_T}no" >&6
1558 test -n "$CC" && break
1559 done
1561 if test -z "$CC"; then
1562 ac_ct_CC=$CC
1563 for ac_prog in cl
1565 # Extract the first word of "$ac_prog", so it can be a program name with args.
1566 set dummy $ac_prog; ac_word=$2
1567 echo "$as_me:$LINENO: checking for $ac_word" >&5
1568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572 if test -n "$ac_ct_CC"; then
1573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1574 else
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 for as_dir in $PATH
1578 IFS=$as_save_IFS
1579 test -z "$as_dir" && as_dir=.
1580 for ac_exec_ext in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582 ac_cv_prog_ac_ct_CC="$ac_prog"
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584 break 2
1586 done
1587 done
1591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1592 if test -n "$ac_ct_CC"; then
1593 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1594 echo "${ECHO_T}$ac_ct_CC" >&6
1595 else
1596 echo "$as_me:$LINENO: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1600 test -n "$ac_ct_CC" && break
1601 done
1603 CC=$ac_ct_CC
1609 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1610 See \`config.log' for more details." >&5
1611 echo "$as_me: error: no acceptable C compiler found in \$PATH
1612 See \`config.log' for more details." >&2;}
1613 { (exit 1); exit 1; }; }
1615 # Provide some information about the compiler.
1616 echo "$as_me:$LINENO:" \
1617 "checking for C compiler version" >&5
1618 ac_compiler=`set X $ac_compile; echo $2`
1619 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1620 (eval $ac_compiler --version </dev/null >&5) 2>&5
1621 ac_status=$?
1622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1623 (exit $ac_status); }
1624 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1625 (eval $ac_compiler -v </dev/null >&5) 2>&5
1626 ac_status=$?
1627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1628 (exit $ac_status); }
1629 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1630 (eval $ac_compiler -V </dev/null >&5) 2>&5
1631 ac_status=$?
1632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1633 (exit $ac_status); }
1635 cat >conftest.$ac_ext <<_ACEOF
1636 /* confdefs.h. */
1637 _ACEOF
1638 cat confdefs.h >>conftest.$ac_ext
1639 cat >>conftest.$ac_ext <<_ACEOF
1640 /* end confdefs.h. */
1643 main ()
1647 return 0;
1649 _ACEOF
1650 ac_clean_files_save=$ac_clean_files
1651 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1652 # Try to create an executable without -o first, disregard a.out.
1653 # It will help us diagnose broken compilers, and finding out an intuition
1654 # of exeext.
1655 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1656 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1657 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1658 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1659 (eval $ac_link_default) 2>&5
1660 ac_status=$?
1661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1662 (exit $ac_status); }; then
1663 # Find the output, starting from the most likely. This scheme is
1664 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1665 # resort.
1667 # Be careful to initialize this variable, since it used to be cached.
1668 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1669 ac_cv_exeext=
1670 # b.out is created by i960 compilers.
1671 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1673 test -f "$ac_file" || continue
1674 case $ac_file in
1675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1677 conftest.$ac_ext )
1678 # This is the source file.
1680 [ab].out )
1681 # We found the default executable, but exeext='' is most
1682 # certainly right.
1683 break;;
1684 *.* )
1685 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1686 # FIXME: I believe we export ac_cv_exeext for Libtool,
1687 # but it would be cool to find out if it's true. Does anybody
1688 # maintain Libtool? --akim.
1689 export ac_cv_exeext
1690 break;;
1692 break;;
1693 esac
1694 done
1695 else
1696 echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1699 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1700 See \`config.log' for more details." >&5
1701 echo "$as_me: error: C compiler cannot create executables
1702 See \`config.log' for more details." >&2;}
1703 { (exit 77); exit 77; }; }
1706 ac_exeext=$ac_cv_exeext
1707 echo "$as_me:$LINENO: result: $ac_file" >&5
1708 echo "${ECHO_T}$ac_file" >&6
1710 # Check the compiler produces executables we can run. If not, either
1711 # the compiler is broken, or we cross compile.
1712 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1713 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1714 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1715 # If not cross compiling, check that we can run a simple program.
1716 if test "$cross_compiling" != yes; then
1717 if { ac_try='./$ac_file'
1718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1719 (eval $ac_try) 2>&5
1720 ac_status=$?
1721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1722 (exit $ac_status); }; }; then
1723 cross_compiling=no
1724 else
1725 if test "$cross_compiling" = maybe; then
1726 cross_compiling=yes
1727 else
1728 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1729 If you meant to cross compile, use \`--host'.
1730 See \`config.log' for more details." >&5
1731 echo "$as_me: error: cannot run C compiled programs.
1732 If you meant to cross compile, use \`--host'.
1733 See \`config.log' for more details." >&2;}
1734 { (exit 1); exit 1; }; }
1738 echo "$as_me:$LINENO: result: yes" >&5
1739 echo "${ECHO_T}yes" >&6
1741 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1742 ac_clean_files=$ac_clean_files_save
1743 # Check the compiler produces executables we can run. If not, either
1744 # the compiler is broken, or we cross compile.
1745 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1746 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1747 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1748 echo "${ECHO_T}$cross_compiling" >&6
1750 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1751 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1753 (eval $ac_link) 2>&5
1754 ac_status=$?
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }; then
1757 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1758 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1759 # work properly (i.e., refer to `conftest.exe'), while it won't with
1760 # `rm'.
1761 for ac_file in conftest.exe conftest conftest.*; do
1762 test -f "$ac_file" || continue
1763 case $ac_file in
1764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1765 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1766 export ac_cv_exeext
1767 break;;
1768 * ) break;;
1769 esac
1770 done
1771 else
1772 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1773 See \`config.log' for more details." >&5
1774 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1775 See \`config.log' for more details." >&2;}
1776 { (exit 1); exit 1; }; }
1779 rm -f conftest$ac_cv_exeext
1780 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1781 echo "${ECHO_T}$ac_cv_exeext" >&6
1783 rm -f conftest.$ac_ext
1784 EXEEXT=$ac_cv_exeext
1785 ac_exeext=$EXEEXT
1786 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1787 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1788 if test "${ac_cv_objext+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 else
1791 cat >conftest.$ac_ext <<_ACEOF
1792 /* confdefs.h. */
1793 _ACEOF
1794 cat confdefs.h >>conftest.$ac_ext
1795 cat >>conftest.$ac_ext <<_ACEOF
1796 /* end confdefs.h. */
1799 main ()
1803 return 0;
1805 _ACEOF
1806 rm -f conftest.o conftest.obj
1807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1808 (eval $ac_compile) 2>&5
1809 ac_status=$?
1810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1811 (exit $ac_status); }; then
1812 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1813 case $ac_file in
1814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1815 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1816 break;;
1817 esac
1818 done
1819 else
1820 echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1823 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1824 See \`config.log' for more details." >&5
1825 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1826 See \`config.log' for more details." >&2;}
1827 { (exit 1); exit 1; }; }
1830 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1832 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1833 echo "${ECHO_T}$ac_cv_objext" >&6
1834 OBJEXT=$ac_cv_objext
1835 ac_objext=$OBJEXT
1836 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1837 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1838 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 else
1841 cat >conftest.$ac_ext <<_ACEOF
1842 /* confdefs.h. */
1843 _ACEOF
1844 cat confdefs.h >>conftest.$ac_ext
1845 cat >>conftest.$ac_ext <<_ACEOF
1846 /* end confdefs.h. */
1849 main ()
1851 #ifndef __GNUC__
1852 choke me
1853 #endif
1856 return 0;
1858 _ACEOF
1859 rm -f conftest.$ac_objext
1860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1861 (eval $ac_compile) 2>conftest.er1
1862 ac_status=$?
1863 grep -v '^ *+' conftest.er1 >conftest.err
1864 rm -f conftest.er1
1865 cat conftest.err >&5
1866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867 (exit $ac_status); } &&
1868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1870 (eval $ac_try) 2>&5
1871 ac_status=$?
1872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873 (exit $ac_status); }; } &&
1874 { ac_try='test -s conftest.$ac_objext'
1875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1876 (eval $ac_try) 2>&5
1877 ac_status=$?
1878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879 (exit $ac_status); }; }; then
1880 ac_compiler_gnu=yes
1881 else
1882 echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1885 ac_compiler_gnu=no
1887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1888 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1891 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1892 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1893 GCC=`test $ac_compiler_gnu = yes && echo yes`
1894 ac_test_CFLAGS=${CFLAGS+set}
1895 ac_save_CFLAGS=$CFLAGS
1896 CFLAGS="-g"
1897 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1898 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1899 if test "${ac_cv_prog_cc_g+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902 cat >conftest.$ac_ext <<_ACEOF
1903 /* confdefs.h. */
1904 _ACEOF
1905 cat confdefs.h >>conftest.$ac_ext
1906 cat >>conftest.$ac_ext <<_ACEOF
1907 /* end confdefs.h. */
1910 main ()
1914 return 0;
1916 _ACEOF
1917 rm -f conftest.$ac_objext
1918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1919 (eval $ac_compile) 2>conftest.er1
1920 ac_status=$?
1921 grep -v '^ *+' conftest.er1 >conftest.err
1922 rm -f conftest.er1
1923 cat conftest.err >&5
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925 (exit $ac_status); } &&
1926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1928 (eval $ac_try) 2>&5
1929 ac_status=$?
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931 (exit $ac_status); }; } &&
1932 { ac_try='test -s conftest.$ac_objext'
1933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1934 (eval $ac_try) 2>&5
1935 ac_status=$?
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }; }; then
1938 ac_cv_prog_cc_g=yes
1939 else
1940 echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1943 ac_cv_prog_cc_g=no
1945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1947 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1948 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1949 if test "$ac_test_CFLAGS" = set; then
1950 CFLAGS=$ac_save_CFLAGS
1951 elif test $ac_cv_prog_cc_g = yes; then
1952 if test "$GCC" = yes; then
1953 CFLAGS="-g -O2"
1954 else
1955 CFLAGS="-g"
1957 else
1958 if test "$GCC" = yes; then
1959 CFLAGS="-O2"
1960 else
1961 CFLAGS=
1964 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1965 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1966 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969 ac_cv_prog_cc_stdc=no
1970 ac_save_CC=$CC
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 #include <stdarg.h>
1978 #include <stdio.h>
1979 #include <sys/types.h>
1980 #include <sys/stat.h>
1981 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1982 struct buf { int x; };
1983 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1984 static char *e (p, i)
1985 char **p;
1986 int i;
1988 return p[i];
1990 static char *f (char * (*g) (char **, int), char **p, ...)
1992 char *s;
1993 va_list v;
1994 va_start (v,p);
1995 s = g (p, va_arg (v,int));
1996 va_end (v);
1997 return s;
2000 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2001 function prototypes and stuff, but not '\xHH' hex character constants.
2002 These don't provoke an error unfortunately, instead are silently treated
2003 as 'x'. The following induces an error, until -std1 is added to get
2004 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2005 array size at least. It's necessary to write '\x00'==0 to get something
2006 that's true only with -std1. */
2007 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2009 int test (int i, double x);
2010 struct s1 {int (*f) (int a);};
2011 struct s2 {int (*f) (double a);};
2012 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2013 int argc;
2014 char **argv;
2016 main ()
2018 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2020 return 0;
2022 _ACEOF
2023 # Don't try gcc -ansi; that turns off useful extensions and
2024 # breaks some systems' header files.
2025 # AIX -qlanglvl=ansi
2026 # Ultrix and OSF/1 -std1
2027 # HP-UX 10.20 and later -Ae
2028 # HP-UX older versions -Aa -D_HPUX_SOURCE
2029 # SVR4 -Xc -D__EXTENSIONS__
2030 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2032 CC="$ac_save_CC $ac_arg"
2033 rm -f conftest.$ac_objext
2034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2035 (eval $ac_compile) 2>conftest.er1
2036 ac_status=$?
2037 grep -v '^ *+' conftest.er1 >conftest.err
2038 rm -f conftest.er1
2039 cat conftest.err >&5
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); } &&
2042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044 (eval $ac_try) 2>&5
2045 ac_status=$?
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); }; } &&
2048 { ac_try='test -s conftest.$ac_objext'
2049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050 (eval $ac_try) 2>&5
2051 ac_status=$?
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }; }; then
2054 ac_cv_prog_cc_stdc=$ac_arg
2055 break
2056 else
2057 echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2061 rm -f conftest.err conftest.$ac_objext
2062 done
2063 rm -f conftest.$ac_ext conftest.$ac_objext
2064 CC=$ac_save_CC
2068 case "x$ac_cv_prog_cc_stdc" in
2069 x|xno)
2070 echo "$as_me:$LINENO: result: none needed" >&5
2071 echo "${ECHO_T}none needed" >&6 ;;
2073 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2074 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2075 CC="$CC $ac_cv_prog_cc_stdc" ;;
2076 esac
2078 # Some people use a C++ compiler to compile C. Since we use `exit',
2079 # in C++ we need to declare it. In case someone uses the same compiler
2080 # for both compiling C and C++ we need to have the C++ compiler decide
2081 # the declaration of exit, since it's the most demanding environment.
2082 cat >conftest.$ac_ext <<_ACEOF
2083 #ifndef __cplusplus
2084 choke me
2085 #endif
2086 _ACEOF
2087 rm -f conftest.$ac_objext
2088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2089 (eval $ac_compile) 2>conftest.er1
2090 ac_status=$?
2091 grep -v '^ *+' conftest.er1 >conftest.err
2092 rm -f conftest.er1
2093 cat conftest.err >&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); } &&
2096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 (eval $ac_try) 2>&5
2099 ac_status=$?
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; } &&
2102 { ac_try='test -s conftest.$ac_objext'
2103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104 (eval $ac_try) 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }; }; then
2108 for ac_declaration in \
2109 '' \
2110 'extern "C" void std::exit (int) throw (); using std::exit;' \
2111 'extern "C" void std::exit (int); using std::exit;' \
2112 'extern "C" void exit (int) throw ();' \
2113 'extern "C" void exit (int);' \
2114 'void exit (int);'
2116 cat >conftest.$ac_ext <<_ACEOF
2117 /* confdefs.h. */
2118 _ACEOF
2119 cat confdefs.h >>conftest.$ac_ext
2120 cat >>conftest.$ac_ext <<_ACEOF
2121 /* end confdefs.h. */
2122 $ac_declaration
2123 #include <stdlib.h>
2125 main ()
2127 exit (42);
2129 return 0;
2131 _ACEOF
2132 rm -f conftest.$ac_objext
2133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2134 (eval $ac_compile) 2>conftest.er1
2135 ac_status=$?
2136 grep -v '^ *+' conftest.er1 >conftest.err
2137 rm -f conftest.er1
2138 cat conftest.err >&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); } &&
2141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 (eval $ac_try) 2>&5
2144 ac_status=$?
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; } &&
2147 { ac_try='test -s conftest.$ac_objext'
2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149 (eval $ac_try) 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; }; then
2154 else
2155 echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2158 continue
2160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2161 cat >conftest.$ac_ext <<_ACEOF
2162 /* confdefs.h. */
2163 _ACEOF
2164 cat confdefs.h >>conftest.$ac_ext
2165 cat >>conftest.$ac_ext <<_ACEOF
2166 /* end confdefs.h. */
2167 $ac_declaration
2169 main ()
2171 exit (42);
2173 return 0;
2175 _ACEOF
2176 rm -f conftest.$ac_objext
2177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2178 (eval $ac_compile) 2>conftest.er1
2179 ac_status=$?
2180 grep -v '^ *+' conftest.er1 >conftest.err
2181 rm -f conftest.er1
2182 cat conftest.err >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); } &&
2185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 (eval $ac_try) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; } &&
2191 { ac_try='test -s conftest.$ac_objext'
2192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193 (eval $ac_try) 2>&5
2194 ac_status=$?
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; }; then
2197 break
2198 else
2199 echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2204 done
2205 rm -f conftest*
2206 if test -n "$ac_declaration"; then
2207 echo '#ifdef __cplusplus' >>confdefs.h
2208 echo $ac_declaration >>confdefs.h
2209 echo '#endif' >>confdefs.h
2212 else
2213 echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2218 ac_ext=c
2219 ac_cpp='$CPP $CPPFLAGS'
2220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2225 ac_aux_dir=
2226 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2227 if test -f $ac_dir/install-sh; then
2228 ac_aux_dir=$ac_dir
2229 ac_install_sh="$ac_aux_dir/install-sh -c"
2230 break
2231 elif test -f $ac_dir/install.sh; then
2232 ac_aux_dir=$ac_dir
2233 ac_install_sh="$ac_aux_dir/install.sh -c"
2234 break
2235 elif test -f $ac_dir/shtool; then
2236 ac_aux_dir=$ac_dir
2237 ac_install_sh="$ac_aux_dir/shtool install -c"
2238 break
2240 done
2241 if test -z "$ac_aux_dir"; then
2242 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2243 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2244 { (exit 1); exit 1; }; }
2246 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2247 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2248 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2250 # Make sure we can run config.sub.
2251 $ac_config_sub sun4 >/dev/null 2>&1 ||
2252 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2253 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2254 { (exit 1); exit 1; }; }
2256 echo "$as_me:$LINENO: checking build system type" >&5
2257 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2258 if test "${ac_cv_build+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261 ac_cv_build_alias=$build_alias
2262 test -z "$ac_cv_build_alias" &&
2263 ac_cv_build_alias=`$ac_config_guess`
2264 test -z "$ac_cv_build_alias" &&
2265 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2266 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2267 { (exit 1); exit 1; }; }
2268 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2269 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2270 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2271 { (exit 1); exit 1; }; }
2274 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2275 echo "${ECHO_T}$ac_cv_build" >&6
2276 build=$ac_cv_build
2277 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2278 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2279 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2282 echo "$as_me:$LINENO: checking host system type" >&5
2283 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2284 if test "${ac_cv_host+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287 ac_cv_host_alias=$host_alias
2288 test -z "$ac_cv_host_alias" &&
2289 ac_cv_host_alias=$ac_cv_build_alias
2290 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2291 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2292 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2293 { (exit 1); exit 1; }; }
2296 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2297 echo "${ECHO_T}$ac_cv_host" >&6
2298 host=$ac_cv_host
2299 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2300 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2301 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2304 echo "$as_me:$LINENO: checking target system type" >&5
2305 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2306 if test "${ac_cv_target+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 else
2309 ac_cv_target_alias=$target_alias
2310 test "x$ac_cv_target_alias" = "x" &&
2311 ac_cv_target_alias=$ac_cv_host_alias
2312 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2313 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2314 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2315 { (exit 1); exit 1; }; }
2318 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2319 echo "${ECHO_T}$ac_cv_target" >&6
2320 target=$ac_cv_target
2321 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2322 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2323 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2326 # The aliases save the names the user supplied, while $host etc.
2327 # will get canonicalized.
2328 test -n "$target_alias" &&
2329 test "$program_prefix$program_suffix$program_transform_name" = \
2330 NONENONEs,x,x, &&
2331 program_prefix=${target_alias}-
2333 # Find a good install program. We prefer a C program (faster),
2334 # so one script is as good as another. But avoid the broken or
2335 # incompatible versions:
2336 # SysV /etc/install, /usr/sbin/install
2337 # SunOS /usr/etc/install
2338 # IRIX /sbin/install
2339 # AIX /bin/install
2340 # AmigaOS /C/install, which installs bootblocks on floppy discs
2341 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2342 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2343 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2344 # OS/2's system install, which has a completely different semantic
2345 # ./install, which can be erroneously created by make from ./install.sh.
2346 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2347 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2348 if test -z "$INSTALL"; then
2349 if test "${ac_cv_path_install+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 for as_dir in $PATH
2355 IFS=$as_save_IFS
2356 test -z "$as_dir" && as_dir=.
2357 # Account for people who put trailing slashes in PATH elements.
2358 case $as_dir/ in
2359 ./ | .// | /cC/* | \
2360 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2361 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2362 /usr/ucb/* ) ;;
2364 # OSF1 and SCO ODT 3.0 have their own names for install.
2365 # Don't use installbsd from OSF since it installs stuff as root
2366 # by default.
2367 for ac_prog in ginstall scoinst install; do
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2370 if test $ac_prog = install &&
2371 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2372 # AIX install. It has an incompatible calling convention.
2374 elif test $ac_prog = install &&
2375 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2376 # program-specific install script used by HP pwplus--don't use.
2378 else
2379 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2380 break 3
2383 done
2384 done
2386 esac
2387 done
2391 if test "${ac_cv_path_install+set}" = set; then
2392 INSTALL=$ac_cv_path_install
2393 else
2394 # As a last resort, use the slow shell script. We don't cache a
2395 # path for INSTALL within a source directory, because that will
2396 # break other packages using the cache if that directory is
2397 # removed, or if the path is relative.
2398 INSTALL=$ac_install_sh
2401 echo "$as_me:$LINENO: result: $INSTALL" >&5
2402 echo "${ECHO_T}$INSTALL" >&6
2404 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2405 # It thinks the first close brace ends the variable substitution.
2406 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2408 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2410 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2413 test "$program_prefix" != NONE &&
2414 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2415 # Use a double $ so make ignores it.
2416 test "$program_suffix" != NONE &&
2417 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2418 # Double any \ or $. echo might interpret backslashes.
2419 # By default was `s,x,x', remove it if useless.
2420 cat <<\_ACEOF >conftest.sed
2421 s/[\\$]/&&/g;s/;s,x,x,$//
2422 _ACEOF
2423 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2424 rm conftest.sed
2428 ac_ext=c
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2434 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2435 # On Suns, sometimes $CPP names a directory.
2436 if test -n "$CPP" && test -d "$CPP"; then
2437 CPP=
2439 if test -z "$CPP"; then
2440 if test "${ac_cv_prog_CPP+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443 # Double quotes because CPP needs to be expanded
2444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2446 ac_preproc_ok=false
2447 for ac_c_preproc_warn_flag in '' yes
2449 # Use a header file that comes with gcc, so configuring glibc
2450 # with a fresh cross-compiler works.
2451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2452 # <limits.h> exists even on freestanding compilers.
2453 # On the NeXT, cc -E runs the code through the compiler's parser,
2454 # not just through cpp. "Syntax error" is here to catch this case.
2455 cat >conftest.$ac_ext <<_ACEOF
2456 /* confdefs.h. */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2461 #ifdef __STDC__
2462 # include <limits.h>
2463 #else
2464 # include <assert.h>
2465 #endif
2466 Syntax error
2467 _ACEOF
2468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2470 ac_status=$?
2471 grep -v '^ *+' conftest.er1 >conftest.err
2472 rm -f conftest.er1
2473 cat conftest.err >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } >/dev/null; then
2476 if test -s conftest.err; then
2477 ac_cpp_err=$ac_c_preproc_warn_flag
2478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2479 else
2480 ac_cpp_err=
2482 else
2483 ac_cpp_err=yes
2485 if test -z "$ac_cpp_err"; then
2487 else
2488 echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2491 # Broken: fails on valid input.
2492 continue
2494 rm -f conftest.err conftest.$ac_ext
2496 # OK, works on sane cases. Now check whether non-existent headers
2497 # can be detected and how.
2498 cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h. */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2504 #include <ac_nonexistent.h>
2505 _ACEOF
2506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2508 ac_status=$?
2509 grep -v '^ *+' conftest.er1 >conftest.err
2510 rm -f conftest.er1
2511 cat conftest.err >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); } >/dev/null; then
2514 if test -s conftest.err; then
2515 ac_cpp_err=$ac_c_preproc_warn_flag
2516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2517 else
2518 ac_cpp_err=
2520 else
2521 ac_cpp_err=yes
2523 if test -z "$ac_cpp_err"; then
2524 # Broken: success on invalid input.
2525 continue
2526 else
2527 echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2530 # Passes both tests.
2531 ac_preproc_ok=:
2532 break
2534 rm -f conftest.err conftest.$ac_ext
2536 done
2537 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2538 rm -f conftest.err conftest.$ac_ext
2539 if $ac_preproc_ok; then
2540 break
2543 done
2544 ac_cv_prog_CPP=$CPP
2547 CPP=$ac_cv_prog_CPP
2548 else
2549 ac_cv_prog_CPP=$CPP
2551 echo "$as_me:$LINENO: result: $CPP" >&5
2552 echo "${ECHO_T}$CPP" >&6
2553 ac_preproc_ok=false
2554 for ac_c_preproc_warn_flag in '' yes
2556 # Use a header file that comes with gcc, so configuring glibc
2557 # with a fresh cross-compiler works.
2558 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2559 # <limits.h> exists even on freestanding compilers.
2560 # On the NeXT, cc -E runs the code through the compiler's parser,
2561 # not just through cpp. "Syntax error" is here to catch this case.
2562 cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h. */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2568 #ifdef __STDC__
2569 # include <limits.h>
2570 #else
2571 # include <assert.h>
2572 #endif
2573 Syntax error
2574 _ACEOF
2575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2577 ac_status=$?
2578 grep -v '^ *+' conftest.er1 >conftest.err
2579 rm -f conftest.er1
2580 cat conftest.err >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } >/dev/null; then
2583 if test -s conftest.err; then
2584 ac_cpp_err=$ac_c_preproc_warn_flag
2585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2586 else
2587 ac_cpp_err=
2589 else
2590 ac_cpp_err=yes
2592 if test -z "$ac_cpp_err"; then
2594 else
2595 echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2598 # Broken: fails on valid input.
2599 continue
2601 rm -f conftest.err conftest.$ac_ext
2603 # OK, works on sane cases. Now check whether non-existent headers
2604 # can be detected and how.
2605 cat >conftest.$ac_ext <<_ACEOF
2606 /* confdefs.h. */
2607 _ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h. */
2611 #include <ac_nonexistent.h>
2612 _ACEOF
2613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2615 ac_status=$?
2616 grep -v '^ *+' conftest.er1 >conftest.err
2617 rm -f conftest.er1
2618 cat conftest.err >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } >/dev/null; then
2621 if test -s conftest.err; then
2622 ac_cpp_err=$ac_c_preproc_warn_flag
2623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2624 else
2625 ac_cpp_err=
2627 else
2628 ac_cpp_err=yes
2630 if test -z "$ac_cpp_err"; then
2631 # Broken: success on invalid input.
2632 continue
2633 else
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2637 # Passes both tests.
2638 ac_preproc_ok=:
2639 break
2641 rm -f conftest.err conftest.$ac_ext
2643 done
2644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2645 rm -f conftest.err conftest.$ac_ext
2646 if $ac_preproc_ok; then
2648 else
2649 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2650 See \`config.log' for more details." >&5
2651 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2652 See \`config.log' for more details." >&2;}
2653 { (exit 1); exit 1; }; }
2656 ac_ext=c
2657 ac_cpp='$CPP $CPPFLAGS'
2658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663 echo "$as_me:$LINENO: checking for egrep" >&5
2664 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2665 if test "${ac_cv_prog_egrep+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2669 then ac_cv_prog_egrep='grep -E'
2670 else ac_cv_prog_egrep='egrep'
2673 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2674 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2675 EGREP=$ac_cv_prog_egrep
2678 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2679 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2680 if test "${ac_cv_header_stdc+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h. */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2689 #include <stdlib.h>
2690 #include <stdarg.h>
2691 #include <string.h>
2692 #include <float.h>
2695 main ()
2699 return 0;
2701 _ACEOF
2702 rm -f conftest.$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>conftest.er1
2705 ac_status=$?
2706 grep -v '^ *+' conftest.er1 >conftest.err
2707 rm -f conftest.er1
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 (eval $ac_try) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; } &&
2717 { ac_try='test -s conftest.$ac_objext'
2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 (eval $ac_try) 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; }; then
2723 ac_cv_header_stdc=yes
2724 else
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2728 ac_cv_header_stdc=no
2730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732 if test $ac_cv_header_stdc = yes; then
2733 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2734 cat >conftest.$ac_ext <<_ACEOF
2735 /* confdefs.h. */
2736 _ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h. */
2740 #include <string.h>
2742 _ACEOF
2743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2744 $EGREP "memchr" >/dev/null 2>&1; then
2746 else
2747 ac_cv_header_stdc=no
2749 rm -f conftest*
2753 if test $ac_cv_header_stdc = yes; then
2754 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2755 cat >conftest.$ac_ext <<_ACEOF
2756 /* confdefs.h. */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2761 #include <stdlib.h>
2763 _ACEOF
2764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2765 $EGREP "free" >/dev/null 2>&1; then
2767 else
2768 ac_cv_header_stdc=no
2770 rm -f conftest*
2774 if test $ac_cv_header_stdc = yes; then
2775 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2776 if test "$cross_compiling" = yes; then
2778 else
2779 cat >conftest.$ac_ext <<_ACEOF
2780 /* confdefs.h. */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2785 #include <ctype.h>
2786 #if ((' ' & 0x0FF) == 0x020)
2787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2789 #else
2790 # define ISLOWER(c) \
2791 (('a' <= (c) && (c) <= 'i') \
2792 || ('j' <= (c) && (c) <= 'r') \
2793 || ('s' <= (c) && (c) <= 'z'))
2794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2795 #endif
2797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2799 main ()
2801 int i;
2802 for (i = 0; i < 256; i++)
2803 if (XOR (islower (i), ISLOWER (i))
2804 || toupper (i) != TOUPPER (i))
2805 exit(2);
2806 exit (0);
2808 _ACEOF
2809 rm -f conftest$ac_exeext
2810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2811 (eval $ac_link) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816 (eval $ac_try) 2>&5
2817 ac_status=$?
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; }; then
2821 else
2822 echo "$as_me: program exited with status $ac_status" >&5
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2826 ( exit $ac_status )
2827 ac_cv_header_stdc=no
2829 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2833 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2834 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2835 if test $ac_cv_header_stdc = yes; then
2837 cat >>confdefs.h <<\_ACEOF
2838 #define STDC_HEADERS 1
2839 _ACEOF
2844 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2854 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2855 inttypes.h stdint.h unistd.h
2857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2858 echo "$as_me:$LINENO: checking for $ac_header" >&5
2859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863 cat >conftest.$ac_ext <<_ACEOF
2864 /* confdefs.h. */
2865 _ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2869 $ac_includes_default
2871 #include <$ac_header>
2872 _ACEOF
2873 rm -f conftest.$ac_objext
2874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875 (eval $ac_compile) 2>conftest.er1
2876 ac_status=$?
2877 grep -v '^ *+' conftest.er1 >conftest.err
2878 rm -f conftest.er1
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
2882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 (eval $ac_try) 2>&5
2885 ac_status=$?
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; } &&
2888 { ac_try='test -s conftest.$ac_objext'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 (eval $ac_try) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2894 eval "$as_ac_Header=yes"
2895 else
2896 echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2899 eval "$as_ac_Header=no"
2901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2906 cat >>confdefs.h <<_ACEOF
2907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2908 _ACEOF
2912 done
2926 for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h thread_db.h linux/elf.h stdlib.h unistd.h
2928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2930 echo "$as_me:$LINENO: checking for $ac_header" >&5
2931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2937 else
2938 # Is the header compilable?
2939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2941 cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h. */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2947 $ac_includes_default
2948 #include <$ac_header>
2949 _ACEOF
2950 rm -f conftest.$ac_objext
2951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2952 (eval $ac_compile) 2>conftest.er1
2953 ac_status=$?
2954 grep -v '^ *+' conftest.er1 >conftest.err
2955 rm -f conftest.er1
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } &&
2959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 (eval $ac_try) 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 ac_header_compiler=yes
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 ac_header_compiler=no
2978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2980 echo "${ECHO_T}$ac_header_compiler" >&6
2982 # Is the header present?
2983 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2985 cat >conftest.$ac_ext <<_ACEOF
2986 /* confdefs.h. */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2991 #include <$ac_header>
2992 _ACEOF
2993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2995 ac_status=$?
2996 grep -v '^ *+' conftest.er1 >conftest.err
2997 rm -f conftest.er1
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } >/dev/null; then
3001 if test -s conftest.err; then
3002 ac_cpp_err=$ac_c_preproc_warn_flag
3003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3004 else
3005 ac_cpp_err=
3007 else
3008 ac_cpp_err=yes
3010 if test -z "$ac_cpp_err"; then
3011 ac_header_preproc=yes
3012 else
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3016 ac_header_preproc=no
3018 rm -f conftest.err conftest.$ac_ext
3019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3020 echo "${ECHO_T}$ac_header_preproc" >&6
3022 # So? What about this header?
3023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3024 yes:no: )
3025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3029 ac_header_preproc=yes
3031 no:yes:* )
3032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3045 cat <<\_ASBOX
3046 ## ------------------------------------------ ##
3047 ## Report this to the AC_PACKAGE_NAME lists. ##
3048 ## ------------------------------------------ ##
3049 _ASBOX
3051 sed "s/^/$as_me: WARNING: /" >&2
3053 esac
3054 echo "$as_me:$LINENO: checking for $ac_header" >&5
3055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 else
3059 eval "$as_ac_Header=\$ac_header_preproc"
3061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3066 cat >>confdefs.h <<_ACEOF
3067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3068 _ACEOF
3072 done
3075 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
3076 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
3077 if test "${ac_cv_have_decl_strerror+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080 cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h. */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3086 $ac_includes_default
3088 main ()
3090 #ifndef strerror
3091 char *p = (char *) strerror;
3092 #endif
3095 return 0;
3097 _ACEOF
3098 rm -f conftest.$ac_objext
3099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3100 (eval $ac_compile) 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } &&
3107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 (eval $ac_try) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; } &&
3113 { ac_try='test -s conftest.$ac_objext'
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115 (eval $ac_try) 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; }; then
3119 ac_cv_have_decl_strerror=yes
3120 else
3121 echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 ac_cv_have_decl_strerror=no
3126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3128 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
3129 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
3130 if test $ac_cv_have_decl_strerror = yes; then
3132 cat >>confdefs.h <<_ACEOF
3133 #define HAVE_DECL_STRERROR 1
3134 _ACEOF
3137 else
3138 cat >>confdefs.h <<_ACEOF
3139 #define HAVE_DECL_STRERROR 0
3140 _ACEOF
3147 echo "$as_me:$LINENO: checking for socklen_t" >&5
3148 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
3149 if test "${ac_cv_type_socklen_t+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152 cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h. */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3158 #include <sys/types.h>
3159 #include <sys/socket.h>
3163 main ()
3165 if ((socklen_t *) 0)
3166 return 0;
3167 if (sizeof (socklen_t))
3168 return 0;
3170 return 0;
3172 _ACEOF
3173 rm -f conftest.$ac_objext
3174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3175 (eval $ac_compile) 2>conftest.er1
3176 ac_status=$?
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 (eval $ac_try) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try='test -s conftest.$ac_objext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 ac_cv_type_socklen_t=yes
3195 else
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3199 ac_cv_type_socklen_t=no
3201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3203 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
3204 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
3205 if test $ac_cv_type_socklen_t = yes; then
3207 cat >>confdefs.h <<_ACEOF
3208 #define HAVE_SOCKLEN_T 1
3209 _ACEOF
3214 . ${srcdir}/configure.srv
3216 if test "${srv_linux_usrregs}" = "yes"; then
3218 cat >>confdefs.h <<\_ACEOF
3219 #define HAVE_LINUX_USRREGS 1
3220 _ACEOF
3224 if test "${srv_linux_regsets}" = "yes"; then
3226 cat >>confdefs.h <<\_ACEOF
3227 #define HAVE_LINUX_REGSETS 1
3228 _ACEOF
3231 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
3232 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
3233 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236 cat >conftest.$ac_ext <<_ACEOF
3237 /* confdefs.h. */
3238 _ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3242 #include <sys/ptrace.h>
3244 main ()
3246 PTRACE_GETREGS;
3248 return 0;
3250 _ACEOF
3251 rm -f conftest.$ac_objext
3252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3253 (eval $ac_compile) 2>conftest.er1
3254 ac_status=$?
3255 grep -v '^ *+' conftest.er1 >conftest.err
3256 rm -f conftest.er1
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } &&
3260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262 (eval $ac_try) 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; } &&
3266 { ac_try='test -s conftest.$ac_objext'
3267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 (eval $ac_try) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; }; then
3272 gdbsrv_cv_have_ptrace_getregs=yes
3273 else
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3277 gdbsrv_cv_have_ptrace_getregs=no
3279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3282 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getregs" >&5
3283 echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getregs" >&6
3284 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
3286 cat >>confdefs.h <<\_ACEOF
3287 #define HAVE_PTRACE_GETREGS 1
3288 _ACEOF
3292 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
3293 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
3294 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h. */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3303 #include <sys/ptrace.h>
3305 main ()
3307 PTRACE_GETFPXREGS;
3309 return 0;
3311 _ACEOF
3312 rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>conftest.er1
3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 (eval $ac_try) 2>&5
3324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; } &&
3327 { ac_try='test -s conftest.$ac_objext'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 (eval $ac_try) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; }; then
3333 gdbsrv_cv_have_ptrace_getfpxregs=yes
3334 else
3335 echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3338 gdbsrv_cv_have_ptrace_getfpxregs=no
3340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3343 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
3344 echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getfpxregs" >&6
3345 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
3347 cat >>confdefs.h <<\_ACEOF
3348 #define HAVE_PTRACE_GETFPXREGS 1
3349 _ACEOF
3354 if test "$ac_cv_header_sys_procfs_h" = yes; then
3355 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
3356 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
3357 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360 cat >conftest.$ac_ext <<_ACEOF
3361 /* confdefs.h. */
3362 _ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3367 #define _SYSCALL32
3368 #include <sys/procfs.h>
3370 main ()
3372 lwpid_t avar
3374 return 0;
3376 _ACEOF
3377 rm -f conftest.$ac_objext
3378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3379 (eval $ac_compile) 2>conftest.er1
3380 ac_status=$?
3381 grep -v '^ *+' conftest.er1 >conftest.err
3382 rm -f conftest.er1
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
3386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 (eval $ac_try) 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; } &&
3392 { ac_try='test -s conftest.$ac_objext'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 (eval $ac_try) 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3398 bfd_cv_have_sys_procfs_type_lwpid_t=yes
3399 else
3400 echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3403 bfd_cv_have_sys_procfs_type_lwpid_t=no
3406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3409 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
3411 cat >>confdefs.h <<\_ACEOF
3412 #define HAVE_LWPID_T 1
3413 _ACEOF
3416 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
3417 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
3419 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
3420 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
3421 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424 cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h. */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3431 #define _SYSCALL32
3432 #include <sys/procfs.h>
3434 main ()
3436 psaddr_t avar
3438 return 0;
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443 (eval $ac_compile) 2>conftest.er1
3444 ac_status=$?
3445 grep -v '^ *+' conftest.er1 >conftest.err
3446 rm -f conftest.er1
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } &&
3450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 (eval $ac_try) 2>&5
3453 ac_status=$?
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; } &&
3456 { ac_try='test -s conftest.$ac_objext'
3457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 (eval $ac_try) 2>&5
3459 ac_status=$?
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }; }; then
3462 bfd_cv_have_sys_procfs_type_psaddr_t=yes
3463 else
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3467 bfd_cv_have_sys_procfs_type_psaddr_t=no
3470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
3475 cat >>confdefs.h <<\_ACEOF
3476 #define HAVE_PSADDR_T 1
3477 _ACEOF
3480 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
3481 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
3483 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
3484 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
3485 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488 cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h. */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3495 #define _SYSCALL32
3496 #include <sys/procfs.h>
3498 main ()
3500 prgregset_t avar
3502 return 0;
3504 _ACEOF
3505 rm -f conftest.$ac_objext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>conftest.er1
3508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
3514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 (eval $ac_try) 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; } &&
3520 { ac_try='test -s conftest.$ac_objext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 (eval $ac_try) 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 bfd_cv_have_sys_procfs_type_prgregset_t=yes
3527 else
3528 echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3531 bfd_cv_have_sys_procfs_type_prgregset_t=no
3534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
3539 cat >>confdefs.h <<\_ACEOF
3540 #define HAVE_PRGREGSET_T 1
3541 _ACEOF
3544 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
3545 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
3547 echo "$as_me:$LINENO: checking for elf_fpregset_t in sys/procfs.h" >&5
3548 echo $ECHO_N "checking for elf_fpregset_t in sys/procfs.h... $ECHO_C" >&6
3549 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552 cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h. */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3559 #define _SYSCALL32
3560 #include <sys/procfs.h>
3562 main ()
3564 elf_fpregset_t avar
3566 return 0;
3568 _ACEOF
3569 rm -f conftest.$ac_objext
3570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3571 (eval $ac_compile) 2>conftest.er1
3572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } &&
3578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 (eval $ac_try) 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; } &&
3584 { ac_try='test -s conftest.$ac_objext'
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 (eval $ac_try) 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; }; then
3590 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
3591 else
3592 echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3595 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
3598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3601 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
3603 cat >>confdefs.h <<\_ACEOF
3604 #define HAVE_ELF_FPREGSET_T 1
3605 _ACEOF
3608 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
3609 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6
3613 srv_thread_depfiles=
3614 srv_libs=
3615 USE_THREAD_DB=
3617 if test "$srv_linux_thread_db" = "yes"; then
3618 echo "$as_me:$LINENO: checking for libthread_db" >&5
3619 echo $ECHO_N "checking for libthread_db... $ECHO_C" >&6
3620 if test "${srv_cv_thread_db+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623 old_LIBS="$LIBS"
3624 LIBS="$LIBS -lthread_db"
3625 cat >conftest.$ac_ext <<_ACEOF
3626 /* confdefs.h. */
3627 _ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3631 void ps_pglobal_lookup() {}
3632 void ps_pdread() {}
3633 void ps_pdwrite() {}
3634 void ps_lgetregs() {}
3635 void ps_lsetregs() {}
3636 void ps_lgetfpregs() {}
3637 void ps_lsetfpregs() {}
3638 void ps_get_thread_area() {}
3639 void ps_getpid() {}
3641 main ()
3643 td_ta_new();
3645 return 0;
3647 _ACEOF
3648 rm -f conftest.$ac_objext conftest$ac_exeext
3649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3650 (eval $ac_link) 2>conftest.er1
3651 ac_status=$?
3652 grep -v '^ *+' conftest.er1 >conftest.err
3653 rm -f conftest.er1
3654 cat conftest.err >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; } &&
3663 { ac_try='test -s conftest$ac_exeext'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 (eval $ac_try) 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3669 srv_cv_thread_db="-lthread_db"
3670 else
3671 echo "$as_me: failed program was:" >&5
3672 sed 's/^/| /' conftest.$ac_ext >&5
3674 srv_cv_thread_db=no
3676 if test "$prefix" = "/usr" || test "$prefix" = "NONE"; then
3677 thread_db="/lib/libthread_db.so.1"
3678 else
3679 thread_db='$prefix/lib/libthread_db.so.1'
3681 LIBS="$old_LIBS `eval echo "$thread_db"`"
3682 cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h. */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3688 void ps_pglobal_lookup() {}
3689 void ps_pdread() {}
3690 void ps_pdwrite() {}
3691 void ps_lgetregs() {}
3692 void ps_lsetregs() {}
3693 void ps_lgetfpregs() {}
3694 void ps_lsetfpregs() {}
3695 void ps_get_thread_area() {}
3696 void ps_getpid() {}
3698 main ()
3700 td_ta_new();
3702 return 0;
3704 _ACEOF
3705 rm -f conftest.$ac_objext conftest$ac_exeext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3707 (eval $ac_link) 2>conftest.er1
3708 ac_status=$?
3709 grep -v '^ *+' conftest.er1 >conftest.err
3710 rm -f conftest.er1
3711 cat conftest.err >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; } &&
3720 { ac_try='test -s conftest$ac_exeext'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 (eval $ac_try) 2>&5
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3726 srv_cv_thread_db="$thread_db"
3727 else
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3731 srv_cv_thread_db=no
3733 rm -f conftest.err conftest.$ac_objext \
3734 conftest$ac_exeext conftest.$ac_ext
3737 rm -f conftest.err conftest.$ac_objext \
3738 conftest$ac_exeext conftest.$ac_ext
3739 LIBS="$old_LIBS"
3742 echo "$as_me:$LINENO: result: $srv_cv_thread_db" >&5
3743 echo "${ECHO_T}$srv_cv_thread_db" >&6
3744 if test "$srv_cv_thread_db" = no; then
3745 { echo "$as_me:$LINENO: WARNING: Could not find libthread_db." >&5
3746 echo "$as_me: WARNING: Could not find libthread_db." >&2;}
3747 { echo "$as_me:$LINENO: WARNING: Disabling thread support in gdbserver." >&5
3748 echo "$as_me: WARNING: Disabling thread support in gdbserver." >&2;}
3749 srv_linux_thread_db=no
3750 else
3751 srv_libs="$srv_cv_thread_db"
3753 old_LDFLAGS="$LDFLAGS"
3754 LDFLAGS="$LDFLAGS -rdynamic"
3755 cat >conftest.$ac_ext <<_ACEOF
3756 /* confdefs.h. */
3757 _ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3763 main ()
3767 return 0;
3769 _ACEOF
3770 rm -f conftest.$ac_objext conftest$ac_exeext
3771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3772 (eval $ac_link) 2>conftest.er1
3773 ac_status=$?
3774 grep -v '^ *+' conftest.er1 >conftest.err
3775 rm -f conftest.er1
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } &&
3779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 (eval $ac_try) 2>&5
3782 ac_status=$?
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }; } &&
3785 { ac_try='test -s conftest$ac_exeext'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 (eval $ac_try) 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; }; then
3791 RDYNAMIC=-rdynamic
3792 else
3793 echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3796 RDYNAMIC=
3798 rm -f conftest.err conftest.$ac_objext \
3799 conftest$ac_exeext conftest.$ac_ext
3801 LDFLAGS="$old_LDFLAGS"
3804 if test "$srv_linux_thread_db" = "yes"; then
3805 srv_thread_depfiles="thread-db.o proc-service.o"
3806 USE_THREAD_DB="-DUSE_THREAD_DB"
3807 echo "$as_me:$LINENO: checking for TD_VERSION" >&5
3808 echo $ECHO_N "checking for TD_VERSION... $ECHO_C" >&6
3809 if test "${gdbsrv_cv_have_td_version+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812 cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h. */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3818 #include <thread_db.h>
3820 main ()
3822 TD_VERSION;
3824 return 0;
3826 _ACEOF
3827 rm -f conftest.$ac_objext
3828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829 (eval $ac_compile) 2>conftest.er1
3830 ac_status=$?
3831 grep -v '^ *+' conftest.er1 >conftest.err
3832 rm -f conftest.er1
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 (eval $ac_try) 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; } &&
3842 { ac_try='test -s conftest.$ac_objext'
3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 (eval $ac_try) 2>&5
3845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; }; then
3848 gdbsrv_cv_have_td_version=yes
3849 else
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3853 gdbsrv_cv_have_td_version=no
3855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3857 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_td_version" >&5
3858 echo "${ECHO_T}$gdbsrv_cv_have_td_version" >&6
3859 if test $gdbsrv_cv_have_td_version = yes; then
3861 cat >>confdefs.h <<\_ACEOF
3862 #define HAVE_TD_VERSION 1
3863 _ACEOF
3868 GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_thread_depfiles"
3869 GDBSERVER_LIBS="$srv_libs"
3875 ac_config_files="$ac_config_files Makefile"
3876 ac_config_commands="$ac_config_commands default"
3877 cat >confcache <<\_ACEOF
3878 # This file is a shell script that caches the results of configure
3879 # tests run on this system so they can be shared between configure
3880 # scripts and configure runs, see configure's option --config-cache.
3881 # It is not useful on other systems. If it contains results you don't
3882 # want to keep, you may remove or edit it.
3884 # config.status only pays attention to the cache file if you give it
3885 # the --recheck option to rerun configure.
3887 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3888 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3889 # following values.
3891 _ACEOF
3893 # The following way of writing the cache mishandles newlines in values,
3894 # but we know of no workaround that is simple, portable, and efficient.
3895 # So, don't put newlines in cache variables' values.
3896 # Ultrix sh set writes to stderr and can't be redirected directly,
3897 # and sets the high bit in the cache file unless we assign to the vars.
3899 (set) 2>&1 |
3900 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3901 *ac_space=\ *)
3902 # `set' does not quote correctly, so add quotes (double-quote
3903 # substitution turns \\\\ into \\, and sed turns \\ into \).
3904 sed -n \
3905 "s/'/'\\\\''/g;
3906 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3909 # `set' quotes correctly as required by POSIX, so do not add quotes.
3910 sed -n \
3911 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3913 esac;
3915 sed '
3916 t clear
3917 : clear
3918 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3919 t end
3920 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3921 : end' >>confcache
3922 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3923 if test -w $cache_file; then
3924 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3925 cat confcache >$cache_file
3926 else
3927 echo "not updating unwritable cache $cache_file"
3930 rm -f confcache
3932 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3933 # Let make expand exec_prefix.
3934 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3936 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3937 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3938 # trailing colons and then remove the whole line if VPATH becomes empty
3939 # (actually we leave an empty line to preserve line numbers).
3940 if test "x$srcdir" = x.; then
3941 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3942 s/:*\$(srcdir):*/:/;
3943 s/:*\${srcdir}:*/:/;
3944 s/:*@srcdir@:*/:/;
3945 s/^\([^=]*=[ ]*\):*/\1/;
3946 s/:*$//;
3947 s/^[^=]*=[ ]*$//;
3951 DEFS=-DHAVE_CONFIG_H
3953 ac_libobjs=
3954 ac_ltlibobjs=
3955 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3956 # 1. Remove the extension, and $U if already installed.
3957 ac_i=`echo "$ac_i" |
3958 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3959 # 2. Add them.
3960 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3961 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3962 done
3963 LIBOBJS=$ac_libobjs
3965 LTLIBOBJS=$ac_ltlibobjs
3969 : ${CONFIG_STATUS=./config.status}
3970 ac_clean_files_save=$ac_clean_files
3971 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3972 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3973 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3974 cat >$CONFIG_STATUS <<_ACEOF
3975 #! $SHELL
3976 # Generated by $as_me.
3977 # Run this file to recreate the current configuration.
3978 # Compiler output produced by configure, useful for debugging
3979 # configure, is in config.log if it exists.
3981 debug=false
3982 ac_cs_recheck=false
3983 ac_cs_silent=false
3984 SHELL=\${CONFIG_SHELL-$SHELL}
3985 _ACEOF
3987 cat >>$CONFIG_STATUS <<\_ACEOF
3988 ## --------------------- ##
3989 ## M4sh Initialization. ##
3990 ## --------------------- ##
3992 # Be Bourne compatible
3993 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3994 emulate sh
3995 NULLCMD=:
3996 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3997 # is contrary to our usage. Disable this feature.
3998 alias -g '${1+"$@"}'='"$@"'
3999 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4000 set -o posix
4002 DUALCASE=1; export DUALCASE # for MKS sh
4004 # Support unset when possible.
4005 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4006 as_unset=unset
4007 else
4008 as_unset=false
4012 # Work around bugs in pre-3.0 UWIN ksh.
4013 $as_unset ENV MAIL MAILPATH
4014 PS1='$ '
4015 PS2='> '
4016 PS4='+ '
4018 # NLS nuisances.
4019 for as_var in \
4020 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4021 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4022 LC_TELEPHONE LC_TIME
4024 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4025 eval $as_var=C; export $as_var
4026 else
4027 $as_unset $as_var
4029 done
4031 # Required to use basename.
4032 if expr a : '\(a\)' >/dev/null 2>&1; then
4033 as_expr=expr
4034 else
4035 as_expr=false
4038 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4039 as_basename=basename
4040 else
4041 as_basename=false
4045 # Name of the executable.
4046 as_me=`$as_basename "$0" ||
4047 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4048 X"$0" : 'X\(//\)$' \| \
4049 X"$0" : 'X\(/\)$' \| \
4050 . : '\(.\)' 2>/dev/null ||
4051 echo X/"$0" |
4052 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4053 /^X\/\(\/\/\)$/{ s//\1/; q; }
4054 /^X\/\(\/\).*/{ s//\1/; q; }
4055 s/.*/./; q'`
4058 # PATH needs CR, and LINENO needs CR and PATH.
4059 # Avoid depending upon Character Ranges.
4060 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4061 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4062 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4063 as_cr_digits='0123456789'
4064 as_cr_alnum=$as_cr_Letters$as_cr_digits
4066 # The user is always right.
4067 if test "${PATH_SEPARATOR+set}" != set; then
4068 echo "#! /bin/sh" >conf$$.sh
4069 echo "exit 0" >>conf$$.sh
4070 chmod +x conf$$.sh
4071 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4072 PATH_SEPARATOR=';'
4073 else
4074 PATH_SEPARATOR=:
4076 rm -f conf$$.sh
4080 as_lineno_1=$LINENO
4081 as_lineno_2=$LINENO
4082 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4083 test "x$as_lineno_1" != "x$as_lineno_2" &&
4084 test "x$as_lineno_3" = "x$as_lineno_2" || {
4085 # Find who we are. Look in the path if we contain no path at all
4086 # relative or not.
4087 case $0 in
4088 *[\\/]* ) as_myself=$0 ;;
4089 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4095 done
4098 esac
4099 # We did not find ourselves, most probably we were run as `sh COMMAND'
4100 # in which case we are not to be found in the path.
4101 if test "x$as_myself" = x; then
4102 as_myself=$0
4104 if test ! -f "$as_myself"; then
4105 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4106 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4107 { (exit 1); exit 1; }; }
4109 case $CONFIG_SHELL in
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for as_base in sh bash ksh sh5; do
4117 case $as_dir in
4119 if ("$as_dir/$as_base" -c '
4120 as_lineno_1=$LINENO
4121 as_lineno_2=$LINENO
4122 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4123 test "x$as_lineno_1" != "x$as_lineno_2" &&
4124 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4125 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4126 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4127 CONFIG_SHELL=$as_dir/$as_base
4128 export CONFIG_SHELL
4129 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4130 fi;;
4131 esac
4132 done
4133 done
4135 esac
4137 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4138 # uniformly replaced by the line number. The first 'sed' inserts a
4139 # line-number line before each line; the second 'sed' does the real
4140 # work. The second script uses 'N' to pair each line-number line
4141 # with the numbered line, and appends trailing '-' during
4142 # substitution so that $LINENO is not a special case at line end.
4143 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4144 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4145 sed '=' <$as_myself |
4146 sed '
4148 s,$,-,
4149 : loop
4150 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4151 t loop
4152 s,-$,,
4153 s,^['$as_cr_digits']*\n,,
4154 ' >$as_me.lineno &&
4155 chmod +x $as_me.lineno ||
4156 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4157 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4158 { (exit 1); exit 1; }; }
4160 # Don't try to exec as it changes $[0], causing all sort of problems
4161 # (the dirname of $[0] is not the place where we might find the
4162 # original and so on. Autoconf is especially sensible to this).
4163 . ./$as_me.lineno
4164 # Exit status is that of the last command.
4165 exit
4169 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4170 *c*,-n*) ECHO_N= ECHO_C='
4171 ' ECHO_T=' ' ;;
4172 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4173 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4174 esac
4176 if expr a : '\(a\)' >/dev/null 2>&1; then
4177 as_expr=expr
4178 else
4179 as_expr=false
4182 rm -f conf$$ conf$$.exe conf$$.file
4183 echo >conf$$.file
4184 if ln -s conf$$.file conf$$ 2>/dev/null; then
4185 # We could just check for DJGPP; but this test a) works b) is more generic
4186 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4187 if test -f conf$$.exe; then
4188 # Don't use ln at all; we don't have any links
4189 as_ln_s='cp -p'
4190 else
4191 as_ln_s='ln -s'
4193 elif ln conf$$.file conf$$ 2>/dev/null; then
4194 as_ln_s=ln
4195 else
4196 as_ln_s='cp -p'
4198 rm -f conf$$ conf$$.exe conf$$.file
4200 if mkdir -p . 2>/dev/null; then
4201 as_mkdir_p=:
4202 else
4203 test -d ./-p && rmdir ./-p
4204 as_mkdir_p=false
4207 as_executable_p="test -f"
4209 # Sed expression to map a string onto a valid CPP name.
4210 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4212 # Sed expression to map a string onto a valid variable name.
4213 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4216 # IFS
4217 # We need space, tab and new line, in precisely that order.
4218 as_nl='
4220 IFS=" $as_nl"
4222 # CDPATH.
4223 $as_unset CDPATH
4225 exec 6>&1
4227 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4228 # report actual input values of CONFIG_FILES etc. instead of their
4229 # values after options handling. Logging --version etc. is OK.
4230 exec 5>>config.log
4232 echo
4233 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4234 ## Running $as_me. ##
4235 _ASBOX
4236 } >&5
4237 cat >&5 <<_CSEOF
4239 This file was extended by $as_me, which was
4240 generated by GNU Autoconf 2.59. Invocation command line was
4242 CONFIG_FILES = $CONFIG_FILES
4243 CONFIG_HEADERS = $CONFIG_HEADERS
4244 CONFIG_LINKS = $CONFIG_LINKS
4245 CONFIG_COMMANDS = $CONFIG_COMMANDS
4246 $ $0 $@
4248 _CSEOF
4249 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4250 echo >&5
4251 _ACEOF
4253 # Files that config.status was made for.
4254 if test -n "$ac_config_files"; then
4255 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4258 if test -n "$ac_config_headers"; then
4259 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4262 if test -n "$ac_config_links"; then
4263 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4266 if test -n "$ac_config_commands"; then
4267 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4270 cat >>$CONFIG_STATUS <<\_ACEOF
4272 ac_cs_usage="\
4273 \`$as_me' instantiates files from templates according to the
4274 current configuration.
4276 Usage: $0 [OPTIONS] [FILE]...
4278 -h, --help print this help, then exit
4279 -V, --version print version number, then exit
4280 -q, --quiet do not print progress messages
4281 -d, --debug don't remove temporary files
4282 --recheck update $as_me by reconfiguring in the same conditions
4283 --file=FILE[:TEMPLATE]
4284 instantiate the configuration file FILE
4285 --header=FILE[:TEMPLATE]
4286 instantiate the configuration header FILE
4288 Configuration files:
4289 $config_files
4291 Configuration headers:
4292 $config_headers
4294 Configuration commands:
4295 $config_commands
4297 Report bugs to <bug-autoconf@gnu.org>."
4298 _ACEOF
4300 cat >>$CONFIG_STATUS <<_ACEOF
4301 ac_cs_version="\\
4302 config.status
4303 configured by $0, generated by GNU Autoconf 2.59,
4304 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4306 Copyright (C) 2003 Free Software Foundation, Inc.
4307 This config.status script is free software; the Free Software Foundation
4308 gives unlimited permission to copy, distribute and modify it."
4309 srcdir=$srcdir
4310 INSTALL="$INSTALL"
4311 _ACEOF
4313 cat >>$CONFIG_STATUS <<\_ACEOF
4314 # If no file are specified by the user, then we need to provide default
4315 # value. By we need to know if files were specified by the user.
4316 ac_need_defaults=:
4317 while test $# != 0
4319 case $1 in
4320 --*=*)
4321 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4322 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4323 ac_shift=:
4326 ac_option=$1
4327 ac_optarg=$2
4328 ac_shift=shift
4330 *) # This is not an option, so the user has probably given explicit
4331 # arguments.
4332 ac_option=$1
4333 ac_need_defaults=false;;
4334 esac
4336 case $ac_option in
4337 # Handling of the options.
4338 _ACEOF
4339 cat >>$CONFIG_STATUS <<\_ACEOF
4340 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4341 ac_cs_recheck=: ;;
4342 --version | --vers* | -V )
4343 echo "$ac_cs_version"; exit 0 ;;
4344 --he | --h)
4345 # Conflict between --help and --header
4346 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4347 Try \`$0 --help' for more information." >&5
4348 echo "$as_me: error: ambiguous option: $1
4349 Try \`$0 --help' for more information." >&2;}
4350 { (exit 1); exit 1; }; };;
4351 --help | --hel | -h )
4352 echo "$ac_cs_usage"; exit 0 ;;
4353 --debug | --d* | -d )
4354 debug=: ;;
4355 --file | --fil | --fi | --f )
4356 $ac_shift
4357 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4358 ac_need_defaults=false;;
4359 --header | --heade | --head | --hea )
4360 $ac_shift
4361 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4362 ac_need_defaults=false;;
4363 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4364 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4365 ac_cs_silent=: ;;
4367 # This is an error.
4368 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4369 Try \`$0 --help' for more information." >&5
4370 echo "$as_me: error: unrecognized option: $1
4371 Try \`$0 --help' for more information." >&2;}
4372 { (exit 1); exit 1; }; } ;;
4374 *) ac_config_targets="$ac_config_targets $1" ;;
4376 esac
4377 shift
4378 done
4380 ac_configure_extra_args=
4382 if $ac_cs_silent; then
4383 exec 6>/dev/null
4384 ac_configure_extra_args="$ac_configure_extra_args --silent"
4387 _ACEOF
4388 cat >>$CONFIG_STATUS <<_ACEOF
4389 if \$ac_cs_recheck; then
4390 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4391 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4394 _ACEOF
4400 cat >>$CONFIG_STATUS <<\_ACEOF
4401 for ac_config_target in $ac_config_targets
4403 case "$ac_config_target" in
4404 # Handling of arguments.
4405 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4406 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4407 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
4408 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4409 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4410 { (exit 1); exit 1; }; };;
4411 esac
4412 done
4414 # If the user did not use the arguments to specify the items to instantiate,
4415 # then the envvar interface is used. Set only those that are not.
4416 # We use the long form for the default assignment because of an extremely
4417 # bizarre bug on SunOS 4.1.3.
4418 if $ac_need_defaults; then
4419 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4420 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4421 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4424 # Have a temporary directory for convenience. Make it in the build tree
4425 # simply because there is no reason to put it here, and in addition,
4426 # creating and moving files from /tmp can sometimes cause problems.
4427 # Create a temporary directory, and hook for its removal unless debugging.
4428 $debug ||
4430 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4431 trap '{ (exit 1); exit 1; }' 1 2 13 15
4434 # Create a (secure) tmp directory for tmp files.
4437 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4438 test -n "$tmp" && test -d "$tmp"
4439 } ||
4441 tmp=./confstat$$-$RANDOM
4442 (umask 077 && mkdir $tmp)
4443 } ||
4445 echo "$me: cannot create a temporary directory in ." >&2
4446 { (exit 1); exit 1; }
4449 _ACEOF
4451 cat >>$CONFIG_STATUS <<_ACEOF
4454 # CONFIG_FILES section.
4457 # No need to generate the scripts if there are no CONFIG_FILES.
4458 # This happens for instance when ./config.status config.h
4459 if test -n "\$CONFIG_FILES"; then
4460 # Protect against being on the right side of a sed subst in config.status.
4461 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4462 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4463 s,@SHELL@,$SHELL,;t t
4464 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4465 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4466 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4467 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4468 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4469 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4470 s,@exec_prefix@,$exec_prefix,;t t
4471 s,@prefix@,$prefix,;t t
4472 s,@program_transform_name@,$program_transform_name,;t t
4473 s,@bindir@,$bindir,;t t
4474 s,@sbindir@,$sbindir,;t t
4475 s,@libexecdir@,$libexecdir,;t t
4476 s,@datadir@,$datadir,;t t
4477 s,@sysconfdir@,$sysconfdir,;t t
4478 s,@sharedstatedir@,$sharedstatedir,;t t
4479 s,@localstatedir@,$localstatedir,;t t
4480 s,@libdir@,$libdir,;t t
4481 s,@includedir@,$includedir,;t t
4482 s,@oldincludedir@,$oldincludedir,;t t
4483 s,@infodir@,$infodir,;t t
4484 s,@mandir@,$mandir,;t t
4485 s,@build_alias@,$build_alias,;t t
4486 s,@host_alias@,$host_alias,;t t
4487 s,@target_alias@,$target_alias,;t t
4488 s,@DEFS@,$DEFS,;t t
4489 s,@ECHO_C@,$ECHO_C,;t t
4490 s,@ECHO_N@,$ECHO_N,;t t
4491 s,@ECHO_T@,$ECHO_T,;t t
4492 s,@LIBS@,$LIBS,;t t
4493 s,@CC@,$CC,;t t
4494 s,@CFLAGS@,$CFLAGS,;t t
4495 s,@LDFLAGS@,$LDFLAGS,;t t
4496 s,@CPPFLAGS@,$CPPFLAGS,;t t
4497 s,@ac_ct_CC@,$ac_ct_CC,;t t
4498 s,@EXEEXT@,$EXEEXT,;t t
4499 s,@OBJEXT@,$OBJEXT,;t t
4500 s,@build@,$build,;t t
4501 s,@build_cpu@,$build_cpu,;t t
4502 s,@build_vendor@,$build_vendor,;t t
4503 s,@build_os@,$build_os,;t t
4504 s,@host@,$host,;t t
4505 s,@host_cpu@,$host_cpu,;t t
4506 s,@host_vendor@,$host_vendor,;t t
4507 s,@host_os@,$host_os,;t t
4508 s,@target@,$target,;t t
4509 s,@target_cpu@,$target_cpu,;t t
4510 s,@target_vendor@,$target_vendor,;t t
4511 s,@target_os@,$target_os,;t t
4512 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4513 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4514 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4515 s,@CPP@,$CPP,;t t
4516 s,@EGREP@,$EGREP,;t t
4517 s,@RDYNAMIC@,$RDYNAMIC,;t t
4518 s,@GDBSERVER_DEPFILES@,$GDBSERVER_DEPFILES,;t t
4519 s,@GDBSERVER_LIBS@,$GDBSERVER_LIBS,;t t
4520 s,@USE_THREAD_DB@,$USE_THREAD_DB,;t t
4521 s,@LIBOBJS@,$LIBOBJS,;t t
4522 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4523 CEOF
4525 _ACEOF
4527 cat >>$CONFIG_STATUS <<\_ACEOF
4528 # Split the substitutions into bite-sized pieces for seds with
4529 # small command number limits, like on Digital OSF/1 and HP-UX.
4530 ac_max_sed_lines=48
4531 ac_sed_frag=1 # Number of current file.
4532 ac_beg=1 # First line for current file.
4533 ac_end=$ac_max_sed_lines # Line after last line for current file.
4534 ac_more_lines=:
4535 ac_sed_cmds=
4536 while $ac_more_lines; do
4537 if test $ac_beg -gt 1; then
4538 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4539 else
4540 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4542 if test ! -s $tmp/subs.frag; then
4543 ac_more_lines=false
4544 else
4545 # The purpose of the label and of the branching condition is to
4546 # speed up the sed processing (if there are no `@' at all, there
4547 # is no need to browse any of the substitutions).
4548 # These are the two extra sed commands mentioned above.
4549 (echo ':t
4550 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4551 if test -z "$ac_sed_cmds"; then
4552 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4553 else
4554 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4556 ac_sed_frag=`expr $ac_sed_frag + 1`
4557 ac_beg=$ac_end
4558 ac_end=`expr $ac_end + $ac_max_sed_lines`
4560 done
4561 if test -z "$ac_sed_cmds"; then
4562 ac_sed_cmds=cat
4564 fi # test -n "$CONFIG_FILES"
4566 _ACEOF
4567 cat >>$CONFIG_STATUS <<\_ACEOF
4568 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4569 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4570 case $ac_file in
4571 - | *:- | *:-:* ) # input from stdin
4572 cat >$tmp/stdin
4573 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4574 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4575 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4576 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4577 * ) ac_file_in=$ac_file.in ;;
4578 esac
4580 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4581 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4582 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4583 X"$ac_file" : 'X\(//\)[^/]' \| \
4584 X"$ac_file" : 'X\(//\)$' \| \
4585 X"$ac_file" : 'X\(/\)' \| \
4586 . : '\(.\)' 2>/dev/null ||
4587 echo X"$ac_file" |
4588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4589 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4590 /^X\(\/\/\)$/{ s//\1/; q; }
4591 /^X\(\/\).*/{ s//\1/; q; }
4592 s/.*/./; q'`
4593 { if $as_mkdir_p; then
4594 mkdir -p "$ac_dir"
4595 else
4596 as_dir="$ac_dir"
4597 as_dirs=
4598 while test ! -d "$as_dir"; do
4599 as_dirs="$as_dir $as_dirs"
4600 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4601 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4602 X"$as_dir" : 'X\(//\)[^/]' \| \
4603 X"$as_dir" : 'X\(//\)$' \| \
4604 X"$as_dir" : 'X\(/\)' \| \
4605 . : '\(.\)' 2>/dev/null ||
4606 echo X"$as_dir" |
4607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4609 /^X\(\/\/\)$/{ s//\1/; q; }
4610 /^X\(\/\).*/{ s//\1/; q; }
4611 s/.*/./; q'`
4612 done
4613 test ! -n "$as_dirs" || mkdir $as_dirs
4614 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4615 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4616 { (exit 1); exit 1; }; }; }
4618 ac_builddir=.
4620 if test "$ac_dir" != .; then
4621 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4622 # A "../" for each directory in $ac_dir_suffix.
4623 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4624 else
4625 ac_dir_suffix= ac_top_builddir=
4628 case $srcdir in
4629 .) # No --srcdir option. We are building in place.
4630 ac_srcdir=.
4631 if test -z "$ac_top_builddir"; then
4632 ac_top_srcdir=.
4633 else
4634 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4635 fi ;;
4636 [\\/]* | ?:[\\/]* ) # Absolute path.
4637 ac_srcdir=$srcdir$ac_dir_suffix;
4638 ac_top_srcdir=$srcdir ;;
4639 *) # Relative path.
4640 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4641 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4642 esac
4644 # Do not use `cd foo && pwd` to compute absolute paths, because
4645 # the directories may not exist.
4646 case `pwd` in
4647 .) ac_abs_builddir="$ac_dir";;
4649 case "$ac_dir" in
4650 .) ac_abs_builddir=`pwd`;;
4651 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4652 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4653 esac;;
4654 esac
4655 case $ac_abs_builddir in
4656 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4658 case ${ac_top_builddir}. in
4659 .) ac_abs_top_builddir=$ac_abs_builddir;;
4660 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4661 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4662 esac;;
4663 esac
4664 case $ac_abs_builddir in
4665 .) ac_abs_srcdir=$ac_srcdir;;
4667 case $ac_srcdir in
4668 .) ac_abs_srcdir=$ac_abs_builddir;;
4669 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4670 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4671 esac;;
4672 esac
4673 case $ac_abs_builddir in
4674 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4676 case $ac_top_srcdir in
4677 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4678 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4679 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4680 esac;;
4681 esac
4684 case $INSTALL in
4685 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4686 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4687 esac
4689 # Let's still pretend it is `configure' which instantiates (i.e., don't
4690 # use $as_me), people would be surprised to read:
4691 # /* config.h. Generated by config.status. */
4692 if test x"$ac_file" = x-; then
4693 configure_input=
4694 else
4695 configure_input="$ac_file. "
4697 configure_input=$configure_input"Generated from `echo $ac_file_in |
4698 sed 's,.*/,,'` by configure."
4700 # First look for the input files in the build tree, otherwise in the
4701 # src tree.
4702 ac_file_inputs=`IFS=:
4703 for f in $ac_file_in; do
4704 case $f in
4705 -) echo $tmp/stdin ;;
4706 [\\/$]*)
4707 # Absolute (can't be DOS-style, as IFS=:)
4708 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4709 echo "$as_me: error: cannot find input file: $f" >&2;}
4710 { (exit 1); exit 1; }; }
4711 echo "$f";;
4712 *) # Relative
4713 if test -f "$f"; then
4714 # Build tree
4715 echo "$f"
4716 elif test -f "$srcdir/$f"; then
4717 # Source tree
4718 echo "$srcdir/$f"
4719 else
4720 # /dev/null tree
4721 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4722 echo "$as_me: error: cannot find input file: $f" >&2;}
4723 { (exit 1); exit 1; }; }
4724 fi;;
4725 esac
4726 done` || { (exit 1); exit 1; }
4728 if test x"$ac_file" != x-; then
4729 { echo "$as_me:$LINENO: creating $ac_file" >&5
4730 echo "$as_me: creating $ac_file" >&6;}
4731 rm -f "$ac_file"
4733 _ACEOF
4734 cat >>$CONFIG_STATUS <<_ACEOF
4735 sed "$ac_vpsub
4736 $extrasub
4737 _ACEOF
4738 cat >>$CONFIG_STATUS <<\_ACEOF
4740 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4741 s,@configure_input@,$configure_input,;t t
4742 s,@srcdir@,$ac_srcdir,;t t
4743 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4744 s,@top_srcdir@,$ac_top_srcdir,;t t
4745 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4746 s,@builddir@,$ac_builddir,;t t
4747 s,@abs_builddir@,$ac_abs_builddir,;t t
4748 s,@top_builddir@,$ac_top_builddir,;t t
4749 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4750 s,@INSTALL@,$ac_INSTALL,;t t
4751 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4752 rm -f $tmp/stdin
4753 if test x"$ac_file" != x-; then
4754 mv $tmp/out $ac_file
4755 else
4756 cat $tmp/out
4757 rm -f $tmp/out
4760 done
4761 _ACEOF
4762 cat >>$CONFIG_STATUS <<\_ACEOF
4765 # CONFIG_HEADER section.
4768 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4769 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4771 # ac_d sets the value in "#define NAME VALUE" lines.
4772 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4773 ac_dB='[ ].*$,\1#\2'
4774 ac_dC=' '
4775 ac_dD=',;t'
4776 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4777 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4778 ac_uB='$,\1#\2define\3'
4779 ac_uC=' '
4780 ac_uD=',;t'
4782 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4783 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4784 case $ac_file in
4785 - | *:- | *:-:* ) # input from stdin
4786 cat >$tmp/stdin
4787 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4788 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4789 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4790 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4791 * ) ac_file_in=$ac_file.in ;;
4792 esac
4794 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4795 echo "$as_me: creating $ac_file" >&6;}
4797 # First look for the input files in the build tree, otherwise in the
4798 # src tree.
4799 ac_file_inputs=`IFS=:
4800 for f in $ac_file_in; do
4801 case $f in
4802 -) echo $tmp/stdin ;;
4803 [\\/$]*)
4804 # Absolute (can't be DOS-style, as IFS=:)
4805 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4806 echo "$as_me: error: cannot find input file: $f" >&2;}
4807 { (exit 1); exit 1; }; }
4808 # Do quote $f, to prevent DOS paths from being IFS'd.
4809 echo "$f";;
4810 *) # Relative
4811 if test -f "$f"; then
4812 # Build tree
4813 echo "$f"
4814 elif test -f "$srcdir/$f"; then
4815 # Source tree
4816 echo "$srcdir/$f"
4817 else
4818 # /dev/null tree
4819 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4820 echo "$as_me: error: cannot find input file: $f" >&2;}
4821 { (exit 1); exit 1; }; }
4822 fi;;
4823 esac
4824 done` || { (exit 1); exit 1; }
4825 # Remove the trailing spaces.
4826 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4828 _ACEOF
4830 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4831 # `conftest.undefs', that substitutes the proper values into
4832 # config.h.in to produce config.h. The first handles `#define'
4833 # templates, and the second `#undef' templates.
4834 # And first: Protect against being on the right side of a sed subst in
4835 # config.status. Protect against being in an unquoted here document
4836 # in config.status.
4837 rm -f conftest.defines conftest.undefs
4838 # Using a here document instead of a string reduces the quoting nightmare.
4839 # Putting comments in sed scripts is not portable.
4841 # `end' is used to avoid that the second main sed command (meant for
4842 # 0-ary CPP macros) applies to n-ary macro definitions.
4843 # See the Autoconf documentation for `clear'.
4844 cat >confdef2sed.sed <<\_ACEOF
4845 s/[\\&,]/\\&/g
4846 s,[\\$`],\\&,g
4847 t clear
4848 : clear
4849 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4850 t end
4851 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4852 : end
4853 _ACEOF
4854 # If some macros were called several times there might be several times
4855 # the same #defines, which is useless. Nevertheless, we may not want to
4856 # sort them, since we want the *last* AC-DEFINE to be honored.
4857 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4858 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4859 rm -f confdef2sed.sed
4861 # This sed command replaces #undef with comments. This is necessary, for
4862 # example, in the case of _POSIX_SOURCE, which is predefined and required
4863 # on some systems where configure will not decide to define it.
4864 cat >>conftest.undefs <<\_ACEOF
4865 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4866 _ACEOF
4868 # Break up conftest.defines because some shells have a limit on the size
4869 # of here documents, and old seds have small limits too (100 cmds).
4870 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4871 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4872 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4873 echo ' :' >>$CONFIG_STATUS
4874 rm -f conftest.tail
4875 while grep . conftest.defines >/dev/null
4877 # Write a limited-size here document to $tmp/defines.sed.
4878 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4879 # Speed up: don't consider the non `#define' lines.
4880 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4881 # Work around the forget-to-reset-the-flag bug.
4882 echo 't clr' >>$CONFIG_STATUS
4883 echo ': clr' >>$CONFIG_STATUS
4884 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4885 echo 'CEOF
4886 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4887 rm -f $tmp/in
4888 mv $tmp/out $tmp/in
4889 ' >>$CONFIG_STATUS
4890 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4891 rm -f conftest.defines
4892 mv conftest.tail conftest.defines
4893 done
4894 rm -f conftest.defines
4895 echo ' fi # grep' >>$CONFIG_STATUS
4896 echo >>$CONFIG_STATUS
4898 # Break up conftest.undefs because some shells have a limit on the size
4899 # of here documents, and old seds have small limits too (100 cmds).
4900 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4901 rm -f conftest.tail
4902 while grep . conftest.undefs >/dev/null
4904 # Write a limited-size here document to $tmp/undefs.sed.
4905 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4906 # Speed up: don't consider the non `#undef'
4907 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4908 # Work around the forget-to-reset-the-flag bug.
4909 echo 't clr' >>$CONFIG_STATUS
4910 echo ': clr' >>$CONFIG_STATUS
4911 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4912 echo 'CEOF
4913 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4914 rm -f $tmp/in
4915 mv $tmp/out $tmp/in
4916 ' >>$CONFIG_STATUS
4917 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4918 rm -f conftest.undefs
4919 mv conftest.tail conftest.undefs
4920 done
4921 rm -f conftest.undefs
4923 cat >>$CONFIG_STATUS <<\_ACEOF
4924 # Let's still pretend it is `configure' which instantiates (i.e., don't
4925 # use $as_me), people would be surprised to read:
4926 # /* config.h. Generated by config.status. */
4927 if test x"$ac_file" = x-; then
4928 echo "/* Generated by configure. */" >$tmp/config.h
4929 else
4930 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4932 cat $tmp/in >>$tmp/config.h
4933 rm -f $tmp/in
4934 if test x"$ac_file" != x-; then
4935 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4936 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4937 echo "$as_me: $ac_file is unchanged" >&6;}
4938 else
4939 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4940 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4941 X"$ac_file" : 'X\(//\)[^/]' \| \
4942 X"$ac_file" : 'X\(//\)$' \| \
4943 X"$ac_file" : 'X\(/\)' \| \
4944 . : '\(.\)' 2>/dev/null ||
4945 echo X"$ac_file" |
4946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4948 /^X\(\/\/\)$/{ s//\1/; q; }
4949 /^X\(\/\).*/{ s//\1/; q; }
4950 s/.*/./; q'`
4951 { if $as_mkdir_p; then
4952 mkdir -p "$ac_dir"
4953 else
4954 as_dir="$ac_dir"
4955 as_dirs=
4956 while test ! -d "$as_dir"; do
4957 as_dirs="$as_dir $as_dirs"
4958 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4960 X"$as_dir" : 'X\(//\)[^/]' \| \
4961 X"$as_dir" : 'X\(//\)$' \| \
4962 X"$as_dir" : 'X\(/\)' \| \
4963 . : '\(.\)' 2>/dev/null ||
4964 echo X"$as_dir" |
4965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4967 /^X\(\/\/\)$/{ s//\1/; q; }
4968 /^X\(\/\).*/{ s//\1/; q; }
4969 s/.*/./; q'`
4970 done
4971 test ! -n "$as_dirs" || mkdir $as_dirs
4972 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4973 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4974 { (exit 1); exit 1; }; }; }
4976 rm -f $ac_file
4977 mv $tmp/config.h $ac_file
4979 else
4980 cat $tmp/config.h
4981 rm -f $tmp/config.h
4983 done
4984 _ACEOF
4985 cat >>$CONFIG_STATUS <<\_ACEOF
4988 # CONFIG_COMMANDS section.
4990 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4991 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4992 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4993 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4994 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4995 X"$ac_dest" : 'X\(//\)[^/]' \| \
4996 X"$ac_dest" : 'X\(//\)$' \| \
4997 X"$ac_dest" : 'X\(/\)' \| \
4998 . : '\(.\)' 2>/dev/null ||
4999 echo X"$ac_dest" |
5000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5001 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5002 /^X\(\/\/\)$/{ s//\1/; q; }
5003 /^X\(\/\).*/{ s//\1/; q; }
5004 s/.*/./; q'`
5005 { if $as_mkdir_p; then
5006 mkdir -p "$ac_dir"
5007 else
5008 as_dir="$ac_dir"
5009 as_dirs=
5010 while test ! -d "$as_dir"; do
5011 as_dirs="$as_dir $as_dirs"
5012 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5013 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5014 X"$as_dir" : 'X\(//\)[^/]' \| \
5015 X"$as_dir" : 'X\(//\)$' \| \
5016 X"$as_dir" : 'X\(/\)' \| \
5017 . : '\(.\)' 2>/dev/null ||
5018 echo X"$as_dir" |
5019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5020 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5021 /^X\(\/\/\)$/{ s//\1/; q; }
5022 /^X\(\/\).*/{ s//\1/; q; }
5023 s/.*/./; q'`
5024 done
5025 test ! -n "$as_dirs" || mkdir $as_dirs
5026 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5027 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5028 { (exit 1); exit 1; }; }; }
5030 ac_builddir=.
5032 if test "$ac_dir" != .; then
5033 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5034 # A "../" for each directory in $ac_dir_suffix.
5035 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5036 else
5037 ac_dir_suffix= ac_top_builddir=
5040 case $srcdir in
5041 .) # No --srcdir option. We are building in place.
5042 ac_srcdir=.
5043 if test -z "$ac_top_builddir"; then
5044 ac_top_srcdir=.
5045 else
5046 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5047 fi ;;
5048 [\\/]* | ?:[\\/]* ) # Absolute path.
5049 ac_srcdir=$srcdir$ac_dir_suffix;
5050 ac_top_srcdir=$srcdir ;;
5051 *) # Relative path.
5052 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5053 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5054 esac
5056 # Do not use `cd foo && pwd` to compute absolute paths, because
5057 # the directories may not exist.
5058 case `pwd` in
5059 .) ac_abs_builddir="$ac_dir";;
5061 case "$ac_dir" in
5062 .) ac_abs_builddir=`pwd`;;
5063 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5064 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5065 esac;;
5066 esac
5067 case $ac_abs_builddir in
5068 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5070 case ${ac_top_builddir}. in
5071 .) ac_abs_top_builddir=$ac_abs_builddir;;
5072 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5073 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5074 esac;;
5075 esac
5076 case $ac_abs_builddir in
5077 .) ac_abs_srcdir=$ac_srcdir;;
5079 case $ac_srcdir in
5080 .) ac_abs_srcdir=$ac_abs_builddir;;
5081 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5082 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5083 esac;;
5084 esac
5085 case $ac_abs_builddir in
5086 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5088 case $ac_top_srcdir in
5089 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5090 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5091 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5092 esac;;
5093 esac
5096 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5097 echo "$as_me: executing $ac_dest commands" >&6;}
5098 case $ac_dest in
5099 default ) case x$CONFIG_HEADERS in
5100 xconfig.h:config.in)
5101 echo > stamp-h ;;
5102 esac
5104 esac
5105 done
5106 _ACEOF
5108 cat >>$CONFIG_STATUS <<\_ACEOF
5110 { (exit 0); exit 0; }
5111 _ACEOF
5112 chmod +x $CONFIG_STATUS
5113 ac_clean_files=$ac_clean_files_save
5116 # configure is writing to config.log, and then calls config.status.
5117 # config.status does its own redirection, appending to config.log.
5118 # Unfortunately, on DOS this fails, as config.log is still kept open
5119 # by configure, so config.status won't be able to write to it; its
5120 # output is simply discarded. So we exec the FD to /dev/null,
5121 # effectively closing config.log, so it can be properly (re)opened and
5122 # appended to by config.status. When coming back to configure, we
5123 # need to make the FD available again.
5124 if test "$no_create" != yes; then
5125 ac_cs_success=:
5126 ac_config_status_args=
5127 test "$silent" = yes &&
5128 ac_config_status_args="$ac_config_status_args --quiet"
5129 exec 5>/dev/null
5130 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5131 exec 5>>config.log
5132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5133 # would make configure fail if this is the last instruction.
5134 $ac_cs_success || { (exit 1); exit 1; }