* i387-fp.c, linux-arm-low.c, linux-cris-low.c,
[deliverable/binutils-gdb.git] / gdb / gdbserver / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="server.c"
275 ac_config_libobj_dir=../gnulib
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 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 LIBOBJS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI RDYNAMIC GDBSERVER_DEPFILES GDBSERVER_LIBS USE_THREAD_DB srv_xmlbuiltin srv_xmlfiles LTLIBOBJS'
314 ac_subst_files=''
315 ac_pwd=`pwd`
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
369 case $ac_option in
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
375
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
390
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
396
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
405
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
438
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
443
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
569
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
576
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
587
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
600
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
627
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
631 ;;
632
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
642
643 *)
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 ;;
650
651 esac
652 done
653
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
674 do
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
726 fi
727 else
728 ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
737 fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775
776 #
777 # Report the --help message.
778 #
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures this package to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802
803 _ACEOF
804
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
811
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
833
834 cat <<\_ACEOF
835
836 Program names:
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840
841 System types:
842 --build=BUILD configure for building on BUILD [guessed]
843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 --target=TARGET configure for building compilers for TARGET [HOST]
845 _ACEOF
846 fi
847
848 if test -n "$ac_init_help"; then
849
850 cat <<\_ACEOF
851
852 Optional Packages:
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
856 --with-bugurl=URL Direct users to URL to report a bug
857
858 Some influential environment variables:
859 CC C compiler command
860 CFLAGS C compiler flags
861 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
862 nonstandard directory <lib dir>
863 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
864 headers in a nonstandard directory <include dir>
865 CPP C preprocessor
866
867 Use these variables to override the choices made by `configure' or to help
868 it to find libraries and programs with nonstandard names/locations.
869
870 _ACEOF
871 fi
872
873 if test "$ac_init_help" = "recursive"; then
874 # If there are subdirs, report their specific --help.
875 ac_popdir=`pwd`
876 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
877 test -d $ac_dir || continue
878 ac_builddir=.
879
880 if test "$ac_dir" != .; then
881 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
882 # A "../" for each directory in $ac_dir_suffix.
883 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
884 else
885 ac_dir_suffix= ac_top_builddir=
886 fi
887
888 case $srcdir in
889 .) # No --srcdir option. We are building in place.
890 ac_srcdir=.
891 if test -z "$ac_top_builddir"; then
892 ac_top_srcdir=.
893 else
894 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
895 fi ;;
896 [\\/]* | ?:[\\/]* ) # Absolute path.
897 ac_srcdir=$srcdir$ac_dir_suffix;
898 ac_top_srcdir=$srcdir ;;
899 *) # Relative path.
900 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901 ac_top_srcdir=$ac_top_builddir$srcdir ;;
902 esac
903
904 # Do not use `cd foo && pwd` to compute absolute paths, because
905 # the directories may not exist.
906 case `pwd` in
907 .) ac_abs_builddir="$ac_dir";;
908 *)
909 case "$ac_dir" in
910 .) ac_abs_builddir=`pwd`;;
911 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
912 *) ac_abs_builddir=`pwd`/"$ac_dir";;
913 esac;;
914 esac
915 case $ac_abs_builddir in
916 .) ac_abs_top_builddir=${ac_top_builddir}.;;
917 *)
918 case ${ac_top_builddir}. in
919 .) ac_abs_top_builddir=$ac_abs_builddir;;
920 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
921 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
922 esac;;
923 esac
924 case $ac_abs_builddir in
925 .) ac_abs_srcdir=$ac_srcdir;;
926 *)
927 case $ac_srcdir in
928 .) ac_abs_srcdir=$ac_abs_builddir;;
929 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
930 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
931 esac;;
932 esac
933 case $ac_abs_builddir in
934 .) ac_abs_top_srcdir=$ac_top_srcdir;;
935 *)
936 case $ac_top_srcdir in
937 .) ac_abs_top_srcdir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
939 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
940 esac;;
941 esac
942
943 cd $ac_dir
944 # Check for guested configure; otherwise get Cygnus style configure.
945 if test -f $ac_srcdir/configure.gnu; then
946 echo
947 $SHELL $ac_srcdir/configure.gnu --help=recursive
948 elif test -f $ac_srcdir/configure; then
949 echo
950 $SHELL $ac_srcdir/configure --help=recursive
951 elif test -f $ac_srcdir/configure.ac ||
952 test -f $ac_srcdir/configure.in; then
953 echo
954 $ac_configure --help
955 else
956 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
957 fi
958 cd $ac_popdir
959 done
960 fi
961
962 test -n "$ac_init_help" && exit 0
963 if $ac_init_version; then
964 cat <<\_ACEOF
965
966 Copyright (C) 2003 Free Software Foundation, Inc.
967 This configure script is free software; the Free Software Foundation
968 gives unlimited permission to copy, distribute and modify it.
969 _ACEOF
970 exit 0
971 fi
972 exec 5>config.log
973 cat >&5 <<_ACEOF
974 This file contains any messages produced by compilers while
975 running configure, to aid debugging if configure makes a mistake.
976
977 It was created by $as_me, which was
978 generated by GNU Autoconf 2.59. Invocation command line was
979
980 $ $0 $@
981
982 _ACEOF
983 {
984 cat <<_ASUNAME
985 ## --------- ##
986 ## Platform. ##
987 ## --------- ##
988
989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
994
995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
997
998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1001 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1005
1006 _ASUNAME
1007
1008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1009 for as_dir in $PATH
1010 do
1011 IFS=$as_save_IFS
1012 test -z "$as_dir" && as_dir=.
1013 echo "PATH: $as_dir"
1014 done
1015
1016 } >&5
1017
1018 cat >&5 <<_ACEOF
1019
1020
1021 ## ----------- ##
1022 ## Core tests. ##
1023 ## ----------- ##
1024
1025 _ACEOF
1026
1027
1028 # Keep a trace of the command line.
1029 # Strip out --no-create and --no-recursion so they do not pile up.
1030 # Strip out --silent because we don't want to record it for future runs.
1031 # Also quote any args containing shell meta-characters.
1032 # Make two passes to allow for proper duplicate-argument suppression.
1033 ac_configure_args=
1034 ac_configure_args0=
1035 ac_configure_args1=
1036 ac_sep=
1037 ac_must_keep_next=false
1038 for ac_pass in 1 2
1039 do
1040 for ac_arg
1041 do
1042 case $ac_arg in
1043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1046 continue ;;
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049 esac
1050 case $ac_pass in
1051 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1052 2)
1053 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054 if test $ac_must_keep_next = true; then
1055 ac_must_keep_next=false # Got value, back to normal.
1056 else
1057 case $ac_arg in
1058 *=* | --config-cache | -C | -disable-* | --disable-* \
1059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061 | -with-* | --with-* | -without-* | --without-* | --x)
1062 case "$ac_configure_args0 " in
1063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1064 esac
1065 ;;
1066 -* ) ac_must_keep_next=true ;;
1067 esac
1068 fi
1069 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070 # Get rid of the leading space.
1071 ac_sep=" "
1072 ;;
1073 esac
1074 done
1075 done
1076 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1078
1079 # When interrupted or exit'd, cleanup temporary files, and complete
1080 # config.log. We remove comments because anyway the quotes in there
1081 # would cause problems or look ugly.
1082 # WARNING: Be sure not to use single quotes in there, as some shells,
1083 # such as our DU 5.0 friend, will then `close' the trap.
1084 trap 'exit_status=$?
1085 # Save into config.log some information that might help in debugging.
1086 {
1087 echo
1088
1089 cat <<\_ASBOX
1090 ## ---------------- ##
1091 ## Cache variables. ##
1092 ## ---------------- ##
1093 _ASBOX
1094 echo
1095 # The following way of writing the cache mishandles newlines in values,
1096 {
1097 (set) 2>&1 |
1098 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099 *ac_space=\ *)
1100 sed -n \
1101 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1103 ;;
1104 *)
1105 sed -n \
1106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1107 ;;
1108 esac;
1109 }
1110 echo
1111
1112 cat <<\_ASBOX
1113 ## ----------------- ##
1114 ## Output variables. ##
1115 ## ----------------- ##
1116 _ASBOX
1117 echo
1118 for ac_var in $ac_subst_vars
1119 do
1120 eval ac_val=$`echo $ac_var`
1121 echo "$ac_var='"'"'$ac_val'"'"'"
1122 done | sort
1123 echo
1124
1125 if test -n "$ac_subst_files"; then
1126 cat <<\_ASBOX
1127 ## ------------- ##
1128 ## Output files. ##
1129 ## ------------- ##
1130 _ASBOX
1131 echo
1132 for ac_var in $ac_subst_files
1133 do
1134 eval ac_val=$`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1136 done | sort
1137 echo
1138 fi
1139
1140 if test -s confdefs.h; then
1141 cat <<\_ASBOX
1142 ## ----------- ##
1143 ## confdefs.h. ##
1144 ## ----------- ##
1145 _ASBOX
1146 echo
1147 sed "/^$/d" confdefs.h | sort
1148 echo
1149 fi
1150 test "$ac_signal" != 0 &&
1151 echo "$as_me: caught signal $ac_signal"
1152 echo "$as_me: exit $exit_status"
1153 } >&5
1154 rm -f core *.core &&
1155 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1156 exit $exit_status
1157 ' 0
1158 for ac_signal in 1 2 13 15; do
1159 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1160 done
1161 ac_signal=0
1162
1163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1164 rm -rf conftest* confdefs.h
1165 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1166 echo >confdefs.h
1167
1168 # Predefined preprocessor variables.
1169
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_NAME "$PACKAGE_NAME"
1172 _ACEOF
1173
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_STRING "$PACKAGE_STRING"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1192 _ACEOF
1193
1194
1195 # Let the site file select an alternate cache file if it wants to.
1196 # Prefer explicitly selected file to automatically selected ones.
1197 if test -z "$CONFIG_SITE"; then
1198 if test "x$prefix" != xNONE; then
1199 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1200 else
1201 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1202 fi
1203 fi
1204 for ac_site_file in $CONFIG_SITE; do
1205 if test -r "$ac_site_file"; then
1206 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207 echo "$as_me: loading site script $ac_site_file" >&6;}
1208 sed 's/^/| /' "$ac_site_file" >&5
1209 . "$ac_site_file"
1210 fi
1211 done
1212
1213 if test -r "$cache_file"; then
1214 # Some versions of bash will fail to source /dev/null (special
1215 # files actually), so we avoid doing that.
1216 if test -f "$cache_file"; then
1217 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218 echo "$as_me: loading cache $cache_file" >&6;}
1219 case $cache_file in
1220 [\\/]* | ?:[\\/]* ) . $cache_file;;
1221 *) . ./$cache_file;;
1222 esac
1223 fi
1224 else
1225 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226 echo "$as_me: creating cache $cache_file" >&6;}
1227 >$cache_file
1228 fi
1229
1230 # Check that the precious variables saved in the cache have kept the same
1231 # value.
1232 ac_cache_corrupted=false
1233 for ac_var in `(set) 2>&1 |
1234 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1236 eval ac_new_set=\$ac_env_${ac_var}_set
1237 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238 eval ac_new_val="\$ac_env_${ac_var}_value"
1239 case $ac_old_set,$ac_new_set in
1240 set,)
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1244 ,set)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,);;
1249 *)
1250 if test "x$ac_old_val" != "x$ac_new_val"; then
1251 # differences in whitespace do not lead to failure.
1252 ac_old_val_w=`echo x $ac_old_val`
1253 ac_new_val_w=`echo x $ac_new_val`
1254 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257 ac_cache_corrupted=:
1258 else
1259 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1260 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1261 eval $ac_var=\$ac_old_val
1262 fi
1263 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1264 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1265 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1266 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1267 fi;;
1268 esac
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1271 case $ac_new_val in
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 *) ac_arg=$ac_var=$ac_new_val ;;
1275 esac
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1279 esac
1280 fi
1281 done
1282 if $ac_cache_corrupted; then
1283 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1284 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1285 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1286 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1287 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1288 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1289 { (exit 1); exit 1; }; }
1290 fi
1291
1292 ac_ext=c
1293 ac_cpp='$CPP $CPPFLAGS'
1294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319 ac_config_headers="$ac_config_headers config.h:config.in"
1320
1321
1322
1323 ac_ext=c
1324 ac_cpp='$CPP $CPPFLAGS'
1325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328 if test -n "$ac_tool_prefix"; then
1329 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1330 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1331 echo "$as_me:$LINENO: checking for $ac_word" >&5
1332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1333 if test "${ac_cv_prog_CC+set}" = set; then
1334 echo $ECHO_N "(cached) $ECHO_C" >&6
1335 else
1336 if test -n "$CC"; then
1337 ac_cv_prog_CC="$CC" # Let the user override the test.
1338 else
1339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1340 for as_dir in $PATH
1341 do
1342 IFS=$as_save_IFS
1343 test -z "$as_dir" && as_dir=.
1344 for ac_exec_ext in '' $ac_executable_extensions; do
1345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1346 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1348 break 2
1349 fi
1350 done
1351 done
1352
1353 fi
1354 fi
1355 CC=$ac_cv_prog_CC
1356 if test -n "$CC"; then
1357 echo "$as_me:$LINENO: result: $CC" >&5
1358 echo "${ECHO_T}$CC" >&6
1359 else
1360 echo "$as_me:$LINENO: result: no" >&5
1361 echo "${ECHO_T}no" >&6
1362 fi
1363
1364 fi
1365 if test -z "$ac_cv_prog_CC"; then
1366 ac_ct_CC=$CC
1367 # Extract the first word of "gcc", so it can be a program name with args.
1368 set dummy gcc; ac_word=$2
1369 echo "$as_me:$LINENO: checking for $ac_word" >&5
1370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1373 else
1374 if test -n "$ac_ct_CC"; then
1375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1376 else
1377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1378 for as_dir in $PATH
1379 do
1380 IFS=$as_save_IFS
1381 test -z "$as_dir" && as_dir=.
1382 for ac_exec_ext in '' $ac_executable_extensions; do
1383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1384 ac_cv_prog_ac_ct_CC="gcc"
1385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1386 break 2
1387 fi
1388 done
1389 done
1390
1391 fi
1392 fi
1393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1394 if test -n "$ac_ct_CC"; then
1395 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1396 echo "${ECHO_T}$ac_ct_CC" >&6
1397 else
1398 echo "$as_me:$LINENO: result: no" >&5
1399 echo "${ECHO_T}no" >&6
1400 fi
1401
1402 CC=$ac_ct_CC
1403 else
1404 CC="$ac_cv_prog_CC"
1405 fi
1406
1407 if test -z "$CC"; then
1408 if test -n "$ac_tool_prefix"; then
1409 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1410 set dummy ${ac_tool_prefix}cc; ac_word=$2
1411 echo "$as_me:$LINENO: checking for $ac_word" >&5
1412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1413 if test "${ac_cv_prog_CC+set}" = set; then
1414 echo $ECHO_N "(cached) $ECHO_C" >&6
1415 else
1416 if test -n "$CC"; then
1417 ac_cv_prog_CC="$CC" # Let the user override the test.
1418 else
1419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1420 for as_dir in $PATH
1421 do
1422 IFS=$as_save_IFS
1423 test -z "$as_dir" && as_dir=.
1424 for ac_exec_ext in '' $ac_executable_extensions; do
1425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1426 ac_cv_prog_CC="${ac_tool_prefix}cc"
1427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1428 break 2
1429 fi
1430 done
1431 done
1432
1433 fi
1434 fi
1435 CC=$ac_cv_prog_CC
1436 if test -n "$CC"; then
1437 echo "$as_me:$LINENO: result: $CC" >&5
1438 echo "${ECHO_T}$CC" >&6
1439 else
1440 echo "$as_me:$LINENO: result: no" >&5
1441 echo "${ECHO_T}no" >&6
1442 fi
1443
1444 fi
1445 if test -z "$ac_cv_prog_CC"; then
1446 ac_ct_CC=$CC
1447 # Extract the first word of "cc", so it can be a program name with args.
1448 set dummy cc; ac_word=$2
1449 echo "$as_me:$LINENO: checking for $ac_word" >&5
1450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1451 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1453 else
1454 if test -n "$ac_ct_CC"; then
1455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1456 else
1457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1458 for as_dir in $PATH
1459 do
1460 IFS=$as_save_IFS
1461 test -z "$as_dir" && as_dir=.
1462 for ac_exec_ext in '' $ac_executable_extensions; do
1463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1464 ac_cv_prog_ac_ct_CC="cc"
1465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1466 break 2
1467 fi
1468 done
1469 done
1470
1471 fi
1472 fi
1473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1474 if test -n "$ac_ct_CC"; then
1475 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1476 echo "${ECHO_T}$ac_ct_CC" >&6
1477 else
1478 echo "$as_me:$LINENO: result: no" >&5
1479 echo "${ECHO_T}no" >&6
1480 fi
1481
1482 CC=$ac_ct_CC
1483 else
1484 CC="$ac_cv_prog_CC"
1485 fi
1486
1487 fi
1488 if test -z "$CC"; then
1489 # Extract the first word of "cc", so it can be a program name with args.
1490 set dummy cc; ac_word=$2
1491 echo "$as_me:$LINENO: checking for $ac_word" >&5
1492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1493 if test "${ac_cv_prog_CC+set}" = set; then
1494 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 else
1496 if test -n "$CC"; then
1497 ac_cv_prog_CC="$CC" # Let the user override the test.
1498 else
1499 ac_prog_rejected=no
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501 for as_dir in $PATH
1502 do
1503 IFS=$as_save_IFS
1504 test -z "$as_dir" && as_dir=.
1505 for ac_exec_ext in '' $ac_executable_extensions; do
1506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1508 ac_prog_rejected=yes
1509 continue
1510 fi
1511 ac_cv_prog_CC="cc"
1512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1513 break 2
1514 fi
1515 done
1516 done
1517
1518 if test $ac_prog_rejected = yes; then
1519 # We found a bogon in the path, so make sure we never use it.
1520 set dummy $ac_cv_prog_CC
1521 shift
1522 if test $# != 0; then
1523 # We chose a different compiler from the bogus one.
1524 # However, it has the same basename, so the bogon will be chosen
1525 # first if we set CC to just the basename; use the full file name.
1526 shift
1527 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1528 fi
1529 fi
1530 fi
1531 fi
1532 CC=$ac_cv_prog_CC
1533 if test -n "$CC"; then
1534 echo "$as_me:$LINENO: result: $CC" >&5
1535 echo "${ECHO_T}$CC" >&6
1536 else
1537 echo "$as_me:$LINENO: result: no" >&5
1538 echo "${ECHO_T}no" >&6
1539 fi
1540
1541 fi
1542 if test -z "$CC"; then
1543 if test -n "$ac_tool_prefix"; then
1544 for ac_prog in cl
1545 do
1546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 else
1553 if test -n "$CC"; then
1554 ac_cv_prog_CC="$CC" # Let the user override the test.
1555 else
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557 for as_dir in $PATH
1558 do
1559 IFS=$as_save_IFS
1560 test -z "$as_dir" && as_dir=.
1561 for ac_exec_ext in '' $ac_executable_extensions; do
1562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565 break 2
1566 fi
1567 done
1568 done
1569
1570 fi
1571 fi
1572 CC=$ac_cv_prog_CC
1573 if test -n "$CC"; then
1574 echo "$as_me:$LINENO: result: $CC" >&5
1575 echo "${ECHO_T}$CC" >&6
1576 else
1577 echo "$as_me:$LINENO: result: no" >&5
1578 echo "${ECHO_T}no" >&6
1579 fi
1580
1581 test -n "$CC" && break
1582 done
1583 fi
1584 if test -z "$CC"; then
1585 ac_ct_CC=$CC
1586 for ac_prog in cl
1587 do
1588 # Extract the first word of "$ac_prog", so it can be a program name with args.
1589 set dummy $ac_prog; ac_word=$2
1590 echo "$as_me:$LINENO: checking for $ac_word" >&5
1591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 else
1595 if test -n "$ac_ct_CC"; then
1596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1597 else
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 for as_dir in $PATH
1600 do
1601 IFS=$as_save_IFS
1602 test -z "$as_dir" && as_dir=.
1603 for ac_exec_ext in '' $ac_executable_extensions; do
1604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605 ac_cv_prog_ac_ct_CC="$ac_prog"
1606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 break 2
1608 fi
1609 done
1610 done
1611
1612 fi
1613 fi
1614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1615 if test -n "$ac_ct_CC"; then
1616 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1617 echo "${ECHO_T}$ac_ct_CC" >&6
1618 else
1619 echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1621 fi
1622
1623 test -n "$ac_ct_CC" && break
1624 done
1625
1626 CC=$ac_ct_CC
1627 fi
1628
1629 fi
1630
1631
1632 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1633 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1634 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1635 See \`config.log' for more details." >&5
1636 echo "$as_me: error: no acceptable C compiler found in \$PATH
1637 See \`config.log' for more details." >&2;}
1638 { (exit 1); exit 1; }; }; }
1639
1640 # Provide some information about the compiler.
1641 echo "$as_me:$LINENO:" \
1642 "checking for C compiler version" >&5
1643 ac_compiler=`set X $ac_compile; echo $2`
1644 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1645 (eval $ac_compiler --version </dev/null >&5) 2>&5
1646 ac_status=$?
1647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1648 (exit $ac_status); }
1649 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1650 (eval $ac_compiler -v </dev/null >&5) 2>&5
1651 ac_status=$?
1652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1653 (exit $ac_status); }
1654 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1655 (eval $ac_compiler -V </dev/null >&5) 2>&5
1656 ac_status=$?
1657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1658 (exit $ac_status); }
1659
1660 cat >conftest.$ac_ext <<_ACEOF
1661 /* confdefs.h. */
1662 _ACEOF
1663 cat confdefs.h >>conftest.$ac_ext
1664 cat >>conftest.$ac_ext <<_ACEOF
1665 /* end confdefs.h. */
1666
1667 int
1668 main ()
1669 {
1670
1671 ;
1672 return 0;
1673 }
1674 _ACEOF
1675 ac_clean_files_save=$ac_clean_files
1676 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1677 # Try to create an executable without -o first, disregard a.out.
1678 # It will help us diagnose broken compilers, and finding out an intuition
1679 # of exeext.
1680 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1681 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1682 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1683 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1684 (eval $ac_link_default) 2>&5
1685 ac_status=$?
1686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1687 (exit $ac_status); }; then
1688 # Find the output, starting from the most likely. This scheme is
1689 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1690 # resort.
1691
1692 # Be careful to initialize this variable, since it used to be cached.
1693 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1694 ac_cv_exeext=
1695 # b.out is created by i960 compilers.
1696 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1697 do
1698 test -f "$ac_file" || continue
1699 case $ac_file in
1700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1701 ;;
1702 conftest.$ac_ext )
1703 # This is the source file.
1704 ;;
1705 [ab].out )
1706 # We found the default executable, but exeext='' is most
1707 # certainly right.
1708 break;;
1709 *.* )
1710 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1711 # FIXME: I believe we export ac_cv_exeext for Libtool,
1712 # but it would be cool to find out if it's true. Does anybody
1713 # maintain Libtool? --akim.
1714 export ac_cv_exeext
1715 break;;
1716 * )
1717 break;;
1718 esac
1719 done
1720 else
1721 echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1725 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1726 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1727 See \`config.log' for more details." >&5
1728 echo "$as_me: error: C compiler cannot create executables
1729 See \`config.log' for more details." >&2;}
1730 { (exit 77); exit 77; }; }; }
1731 fi
1732
1733 ac_exeext=$ac_cv_exeext
1734 echo "$as_me:$LINENO: result: $ac_file" >&5
1735 echo "${ECHO_T}$ac_file" >&6
1736
1737 # Check the compiler produces executables we can run. If not, either
1738 # the compiler is broken, or we cross compile.
1739 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1740 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1741 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1742 # If not cross compiling, check that we can run a simple program.
1743 if test "$cross_compiling" != yes; then
1744 if { ac_try='./$ac_file'
1745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1746 (eval $ac_try) 2>&5
1747 ac_status=$?
1748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749 (exit $ac_status); }; }; then
1750 cross_compiling=no
1751 else
1752 if test "$cross_compiling" = maybe; then
1753 cross_compiling=yes
1754 else
1755 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1756 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1757 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1758 If you meant to cross compile, use \`--host'.
1759 See \`config.log' for more details." >&5
1760 echo "$as_me: error: cannot run C compiled programs.
1761 If you meant to cross compile, use \`--host'.
1762 See \`config.log' for more details." >&2;}
1763 { (exit 1); exit 1; }; }; }
1764 fi
1765 fi
1766 fi
1767 echo "$as_me:$LINENO: result: yes" >&5
1768 echo "${ECHO_T}yes" >&6
1769
1770 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1771 ac_clean_files=$ac_clean_files_save
1772 # Check the compiler produces executables we can run. If not, either
1773 # the compiler is broken, or we cross compile.
1774 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1775 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1776 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1777 echo "${ECHO_T}$cross_compiling" >&6
1778
1779 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1780 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1782 (eval $ac_link) 2>&5
1783 ac_status=$?
1784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1785 (exit $ac_status); }; then
1786 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1787 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1788 # work properly (i.e., refer to `conftest.exe'), while it won't with
1789 # `rm'.
1790 for ac_file in conftest.exe conftest conftest.*; do
1791 test -f "$ac_file" || continue
1792 case $ac_file in
1793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1794 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1795 export ac_cv_exeext
1796 break;;
1797 * ) break;;
1798 esac
1799 done
1800 else
1801 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1802 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1803 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1804 See \`config.log' for more details." >&5
1805 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1806 See \`config.log' for more details." >&2;}
1807 { (exit 1); exit 1; }; }; }
1808 fi
1809
1810 rm -f conftest$ac_cv_exeext
1811 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1812 echo "${ECHO_T}$ac_cv_exeext" >&6
1813
1814 rm -f conftest.$ac_ext
1815 EXEEXT=$ac_cv_exeext
1816 ac_exeext=$EXEEXT
1817 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1818 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1819 if test "${ac_cv_objext+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821 else
1822 cat >conftest.$ac_ext <<_ACEOF
1823 /* confdefs.h. */
1824 _ACEOF
1825 cat confdefs.h >>conftest.$ac_ext
1826 cat >>conftest.$ac_ext <<_ACEOF
1827 /* end confdefs.h. */
1828
1829 int
1830 main ()
1831 {
1832
1833 ;
1834 return 0;
1835 }
1836 _ACEOF
1837 rm -f conftest.o conftest.obj
1838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1839 (eval $ac_compile) 2>&5
1840 ac_status=$?
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }; then
1843 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1844 case $ac_file in
1845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1846 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1847 break;;
1848 esac
1849 done
1850 else
1851 echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1853
1854 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1855 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1856 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1857 See \`config.log' for more details." >&5
1858 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1859 See \`config.log' for more details." >&2;}
1860 { (exit 1); exit 1; }; }; }
1861 fi
1862
1863 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1864 fi
1865 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1866 echo "${ECHO_T}$ac_cv_objext" >&6
1867 OBJEXT=$ac_cv_objext
1868 ac_objext=$OBJEXT
1869 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1870 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1871 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 cat >conftest.$ac_ext <<_ACEOF
1875 /* confdefs.h. */
1876 _ACEOF
1877 cat confdefs.h >>conftest.$ac_ext
1878 cat >>conftest.$ac_ext <<_ACEOF
1879 /* end confdefs.h. */
1880
1881 int
1882 main ()
1883 {
1884 #ifndef __GNUC__
1885 choke me
1886 #endif
1887
1888 ;
1889 return 0;
1890 }
1891 _ACEOF
1892 rm -f conftest.$ac_objext
1893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1894 (eval $ac_compile) 2>conftest.er1
1895 ac_status=$?
1896 grep -v '^ *+' conftest.er1 >conftest.err
1897 rm -f conftest.er1
1898 cat conftest.err >&5
1899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1900 (exit $ac_status); } &&
1901 { ac_try='test -z "$ac_c_werror_flag"
1902 || test ! -s conftest.err'
1903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1904 (eval $ac_try) 2>&5
1905 ac_status=$?
1906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907 (exit $ac_status); }; } &&
1908 { ac_try='test -s conftest.$ac_objext'
1909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1910 (eval $ac_try) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; }; then
1914 ac_compiler_gnu=yes
1915 else
1916 echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919 ac_compiler_gnu=no
1920 fi
1921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1922 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1923
1924 fi
1925 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1926 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1927 GCC=`test $ac_compiler_gnu = yes && echo yes`
1928 ac_test_CFLAGS=${CFLAGS+set}
1929 ac_save_CFLAGS=$CFLAGS
1930 CFLAGS="-g"
1931 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1932 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1933 if test "${ac_cv_prog_cc_g+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936 cat >conftest.$ac_ext <<_ACEOF
1937 /* confdefs.h. */
1938 _ACEOF
1939 cat confdefs.h >>conftest.$ac_ext
1940 cat >>conftest.$ac_ext <<_ACEOF
1941 /* end confdefs.h. */
1942
1943 int
1944 main ()
1945 {
1946
1947 ;
1948 return 0;
1949 }
1950 _ACEOF
1951 rm -f conftest.$ac_objext
1952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1953 (eval $ac_compile) 2>conftest.er1
1954 ac_status=$?
1955 grep -v '^ *+' conftest.er1 >conftest.err
1956 rm -f conftest.er1
1957 cat conftest.err >&5
1958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959 (exit $ac_status); } &&
1960 { ac_try='test -z "$ac_c_werror_flag"
1961 || test ! -s conftest.err'
1962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1963 (eval $ac_try) 2>&5
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }; } &&
1967 { ac_try='test -s conftest.$ac_objext'
1968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1969 (eval $ac_try) 2>&5
1970 ac_status=$?
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; }; then
1973 ac_cv_prog_cc_g=yes
1974 else
1975 echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1977
1978 ac_cv_prog_cc_g=no
1979 fi
1980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1981 fi
1982 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1983 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1984 if test "$ac_test_CFLAGS" = set; then
1985 CFLAGS=$ac_save_CFLAGS
1986 elif test $ac_cv_prog_cc_g = yes; then
1987 if test "$GCC" = yes; then
1988 CFLAGS="-g -O2"
1989 else
1990 CFLAGS="-g"
1991 fi
1992 else
1993 if test "$GCC" = yes; then
1994 CFLAGS="-O2"
1995 else
1996 CFLAGS=
1997 fi
1998 fi
1999 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2000 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2001 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 else
2004 ac_cv_prog_cc_stdc=no
2005 ac_save_CC=$CC
2006 cat >conftest.$ac_ext <<_ACEOF
2007 /* confdefs.h. */
2008 _ACEOF
2009 cat confdefs.h >>conftest.$ac_ext
2010 cat >>conftest.$ac_ext <<_ACEOF
2011 /* end confdefs.h. */
2012 #include <stdarg.h>
2013 #include <stdio.h>
2014 #include <sys/types.h>
2015 #include <sys/stat.h>
2016 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2017 struct buf { int x; };
2018 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2019 static char *e (p, i)
2020 char **p;
2021 int i;
2022 {
2023 return p[i];
2024 }
2025 static char *f (char * (*g) (char **, int), char **p, ...)
2026 {
2027 char *s;
2028 va_list v;
2029 va_start (v,p);
2030 s = g (p, va_arg (v,int));
2031 va_end (v);
2032 return s;
2033 }
2034
2035 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2036 function prototypes and stuff, but not '\xHH' hex character constants.
2037 These don't provoke an error unfortunately, instead are silently treated
2038 as 'x'. The following induces an error, until -std1 is added to get
2039 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2040 array size at least. It's necessary to write '\x00'==0 to get something
2041 that's true only with -std1. */
2042 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2043
2044 int test (int i, double x);
2045 struct s1 {int (*f) (int a);};
2046 struct s2 {int (*f) (double a);};
2047 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2048 int argc;
2049 char **argv;
2050 int
2051 main ()
2052 {
2053 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2054 ;
2055 return 0;
2056 }
2057 _ACEOF
2058 # Don't try gcc -ansi; that turns off useful extensions and
2059 # breaks some systems' header files.
2060 # AIX -qlanglvl=ansi
2061 # Ultrix and OSF/1 -std1
2062 # HP-UX 10.20 and later -Ae
2063 # HP-UX older versions -Aa -D_HPUX_SOURCE
2064 # SVR4 -Xc -D__EXTENSIONS__
2065 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2066 do
2067 CC="$ac_save_CC $ac_arg"
2068 rm -f conftest.$ac_objext
2069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2070 (eval $ac_compile) 2>conftest.er1
2071 ac_status=$?
2072 grep -v '^ *+' conftest.er1 >conftest.err
2073 rm -f conftest.er1
2074 cat conftest.err >&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); } &&
2077 { ac_try='test -z "$ac_c_werror_flag"
2078 || test ! -s conftest.err'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080 (eval $ac_try) 2>&5
2081 ac_status=$?
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; } &&
2084 { ac_try='test -s conftest.$ac_objext'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086 (eval $ac_try) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; }; then
2090 ac_cv_prog_cc_stdc=$ac_arg
2091 break
2092 else
2093 echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2095
2096 fi
2097 rm -f conftest.err conftest.$ac_objext
2098 done
2099 rm -f conftest.$ac_ext conftest.$ac_objext
2100 CC=$ac_save_CC
2101
2102 fi
2103
2104 case "x$ac_cv_prog_cc_stdc" in
2105 x|xno)
2106 echo "$as_me:$LINENO: result: none needed" >&5
2107 echo "${ECHO_T}none needed" >&6 ;;
2108 *)
2109 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2110 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2111 CC="$CC $ac_cv_prog_cc_stdc" ;;
2112 esac
2113
2114 # Some people use a C++ compiler to compile C. Since we use `exit',
2115 # in C++ we need to declare it. In case someone uses the same compiler
2116 # for both compiling C and C++ we need to have the C++ compiler decide
2117 # the declaration of exit, since it's the most demanding environment.
2118 cat >conftest.$ac_ext <<_ACEOF
2119 #ifndef __cplusplus
2120 choke me
2121 #endif
2122 _ACEOF
2123 rm -f conftest.$ac_objext
2124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125 (eval $ac_compile) 2>conftest.er1
2126 ac_status=$?
2127 grep -v '^ *+' conftest.er1 >conftest.err
2128 rm -f conftest.er1
2129 cat conftest.err >&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); } &&
2132 { ac_try='test -z "$ac_c_werror_flag"
2133 || test ! -s conftest.err'
2134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2135 (eval $ac_try) 2>&5
2136 ac_status=$?
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }; } &&
2139 { ac_try='test -s conftest.$ac_objext'
2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141 (eval $ac_try) 2>&5
2142 ac_status=$?
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; }; then
2145 for ac_declaration in \
2146 '' \
2147 'extern "C" void std::exit (int) throw (); using std::exit;' \
2148 'extern "C" void std::exit (int); using std::exit;' \
2149 'extern "C" void exit (int) throw ();' \
2150 'extern "C" void exit (int);' \
2151 'void exit (int);'
2152 do
2153 cat >conftest.$ac_ext <<_ACEOF
2154 /* confdefs.h. */
2155 _ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h. */
2159 $ac_declaration
2160 #include <stdlib.h>
2161 int
2162 main ()
2163 {
2164 exit (42);
2165 ;
2166 return 0;
2167 }
2168 _ACEOF
2169 rm -f conftest.$ac_objext
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2172 ac_status=$?
2173 grep -v '^ *+' conftest.er1 >conftest.err
2174 rm -f conftest.er1
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2191 :
2192 else
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 continue
2197 fi
2198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2199 cat >conftest.$ac_ext <<_ACEOF
2200 /* confdefs.h. */
2201 _ACEOF
2202 cat confdefs.h >>conftest.$ac_ext
2203 cat >>conftest.$ac_ext <<_ACEOF
2204 /* end confdefs.h. */
2205 $ac_declaration
2206 int
2207 main ()
2208 {
2209 exit (42);
2210 ;
2211 return 0;
2212 }
2213 _ACEOF
2214 rm -f conftest.$ac_objext
2215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2216 (eval $ac_compile) 2>conftest.er1
2217 ac_status=$?
2218 grep -v '^ *+' conftest.er1 >conftest.err
2219 rm -f conftest.er1
2220 cat conftest.err >&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); } &&
2223 { ac_try='test -z "$ac_c_werror_flag"
2224 || test ! -s conftest.err'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; } &&
2230 { ac_try='test -s conftest.$ac_objext'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2236 break
2237 else
2238 echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2240
2241 fi
2242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2243 done
2244 rm -f conftest*
2245 if test -n "$ac_declaration"; then
2246 echo '#ifdef __cplusplus' >>confdefs.h
2247 echo $ac_declaration >>confdefs.h
2248 echo '#endif' >>confdefs.h
2249 fi
2250
2251 else
2252 echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2254
2255 fi
2256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257 ac_ext=c
2258 ac_cpp='$CPP $CPPFLAGS'
2259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2262
2263
2264 cat >>confdefs.h <<\_ACEOF
2265 #define _GNU_SOURCE 1
2266 _ACEOF
2267
2268
2269
2270 ac_aux_dir=
2271 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2272 if test -f $ac_dir/install-sh; then
2273 ac_aux_dir=$ac_dir
2274 ac_install_sh="$ac_aux_dir/install-sh -c"
2275 break
2276 elif test -f $ac_dir/install.sh; then
2277 ac_aux_dir=$ac_dir
2278 ac_install_sh="$ac_aux_dir/install.sh -c"
2279 break
2280 elif test -f $ac_dir/shtool; then
2281 ac_aux_dir=$ac_dir
2282 ac_install_sh="$ac_aux_dir/shtool install -c"
2283 break
2284 fi
2285 done
2286 if test -z "$ac_aux_dir"; then
2287 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2288 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2289 { (exit 1); exit 1; }; }
2290 fi
2291 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2292 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2293 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2294
2295 # Make sure we can run config.sub.
2296 $ac_config_sub sun4 >/dev/null 2>&1 ||
2297 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2298 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2299 { (exit 1); exit 1; }; }
2300
2301 echo "$as_me:$LINENO: checking build system type" >&5
2302 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2303 if test "${ac_cv_build+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 else
2306 ac_cv_build_alias=$build_alias
2307 test -z "$ac_cv_build_alias" &&
2308 ac_cv_build_alias=`$ac_config_guess`
2309 test -z "$ac_cv_build_alias" &&
2310 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2311 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2312 { (exit 1); exit 1; }; }
2313 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2314 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2315 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2316 { (exit 1); exit 1; }; }
2317
2318 fi
2319 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2320 echo "${ECHO_T}$ac_cv_build" >&6
2321 build=$ac_cv_build
2322 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2323 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2324 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2325
2326
2327 echo "$as_me:$LINENO: checking host system type" >&5
2328 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2329 if test "${ac_cv_host+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332 ac_cv_host_alias=$host_alias
2333 test -z "$ac_cv_host_alias" &&
2334 ac_cv_host_alias=$ac_cv_build_alias
2335 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2336 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2337 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2338 { (exit 1); exit 1; }; }
2339
2340 fi
2341 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2342 echo "${ECHO_T}$ac_cv_host" >&6
2343 host=$ac_cv_host
2344 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2345 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2346 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2347
2348
2349 echo "$as_me:$LINENO: checking target system type" >&5
2350 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2351 if test "${ac_cv_target+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354 ac_cv_target_alias=$target_alias
2355 test "x$ac_cv_target_alias" = "x" &&
2356 ac_cv_target_alias=$ac_cv_host_alias
2357 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2358 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2359 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2360 { (exit 1); exit 1; }; }
2361
2362 fi
2363 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2364 echo "${ECHO_T}$ac_cv_target" >&6
2365 target=$ac_cv_target
2366 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2367 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2368 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2369
2370
2371 # The aliases save the names the user supplied, while $host etc.
2372 # will get canonicalized.
2373 test -n "$target_alias" &&
2374 test "$program_prefix$program_suffix$program_transform_name" = \
2375 NONENONEs,x,x, &&
2376 program_prefix=${target_alias}-
2377
2378 # Find a good install program. We prefer a C program (faster),
2379 # so one script is as good as another. But avoid the broken or
2380 # incompatible versions:
2381 # SysV /etc/install, /usr/sbin/install
2382 # SunOS /usr/etc/install
2383 # IRIX /sbin/install
2384 # AIX /bin/install
2385 # AmigaOS /C/install, which installs bootblocks on floppy discs
2386 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2387 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2388 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2389 # OS/2's system install, which has a completely different semantic
2390 # ./install, which can be erroneously created by make from ./install.sh.
2391 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2392 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2393 if test -z "$INSTALL"; then
2394 if test "${ac_cv_path_install+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 # Account for people who put trailing slashes in PATH elements.
2403 case $as_dir/ in
2404 ./ | .// | /cC/* | \
2405 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2406 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2407 /usr/ucb/* ) ;;
2408 *)
2409 # OSF1 and SCO ODT 3.0 have their own names for install.
2410 # Don't use installbsd from OSF since it installs stuff as root
2411 # by default.
2412 for ac_prog in ginstall scoinst install; do
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2415 if test $ac_prog = install &&
2416 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2417 # AIX install. It has an incompatible calling convention.
2418 :
2419 elif test $ac_prog = install &&
2420 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2421 # program-specific install script used by HP pwplus--don't use.
2422 :
2423 else
2424 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2425 break 3
2426 fi
2427 fi
2428 done
2429 done
2430 ;;
2431 esac
2432 done
2433
2434
2435 fi
2436 if test "${ac_cv_path_install+set}" = set; then
2437 INSTALL=$ac_cv_path_install
2438 else
2439 # As a last resort, use the slow shell script. We don't cache a
2440 # path for INSTALL within a source directory, because that will
2441 # break other packages using the cache if that directory is
2442 # removed, or if the path is relative.
2443 INSTALL=$ac_install_sh
2444 fi
2445 fi
2446 echo "$as_me:$LINENO: result: $INSTALL" >&5
2447 echo "${ECHO_T}$INSTALL" >&6
2448
2449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2450 # It thinks the first close brace ends the variable substitution.
2451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2452
2453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2454
2455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2456
2457
2458 test "$program_prefix" != NONE &&
2459 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2460 # Use a double $ so make ignores it.
2461 test "$program_suffix" != NONE &&
2462 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2463 # Double any \ or $. echo might interpret backslashes.
2464 # By default was `s,x,x', remove it if useless.
2465 cat <<\_ACEOF >conftest.sed
2466 s/[\\$]/&&/g;s/;s,x,x,$//
2467 _ACEOF
2468 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2469 rm conftest.sed
2470
2471
2472
2473 ac_ext=c
2474 ac_cpp='$CPP $CPPFLAGS'
2475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2478 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2479 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2480 # On Suns, sometimes $CPP names a directory.
2481 if test -n "$CPP" && test -d "$CPP"; then
2482 CPP=
2483 fi
2484 if test -z "$CPP"; then
2485 if test "${ac_cv_prog_CPP+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488 # Double quotes because CPP needs to be expanded
2489 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2490 do
2491 ac_preproc_ok=false
2492 for ac_c_preproc_warn_flag in '' yes
2493 do
2494 # Use a header file that comes with gcc, so configuring glibc
2495 # with a fresh cross-compiler works.
2496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2497 # <limits.h> exists even on freestanding compilers.
2498 # On the NeXT, cc -E runs the code through the compiler's parser,
2499 # not just through cpp. "Syntax error" is here to catch this case.
2500 cat >conftest.$ac_ext <<_ACEOF
2501 /* confdefs.h. */
2502 _ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h. */
2506 #ifdef __STDC__
2507 # include <limits.h>
2508 #else
2509 # include <assert.h>
2510 #endif
2511 Syntax error
2512 _ACEOF
2513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2515 ac_status=$?
2516 grep -v '^ *+' conftest.er1 >conftest.err
2517 rm -f conftest.er1
2518 cat conftest.err >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); } >/dev/null; then
2521 if test -s conftest.err; then
2522 ac_cpp_err=$ac_c_preproc_warn_flag
2523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2524 else
2525 ac_cpp_err=
2526 fi
2527 else
2528 ac_cpp_err=yes
2529 fi
2530 if test -z "$ac_cpp_err"; then
2531 :
2532 else
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2535
2536 # Broken: fails on valid input.
2537 continue
2538 fi
2539 rm -f conftest.err conftest.$ac_ext
2540
2541 # OK, works on sane cases. Now check whether non-existent headers
2542 # can be detected and how.
2543 cat >conftest.$ac_ext <<_ACEOF
2544 /* confdefs.h. */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2549 #include <ac_nonexistent.h>
2550 _ACEOF
2551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2553 ac_status=$?
2554 grep -v '^ *+' conftest.er1 >conftest.err
2555 rm -f conftest.er1
2556 cat conftest.err >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } >/dev/null; then
2559 if test -s conftest.err; then
2560 ac_cpp_err=$ac_c_preproc_warn_flag
2561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2562 else
2563 ac_cpp_err=
2564 fi
2565 else
2566 ac_cpp_err=yes
2567 fi
2568 if test -z "$ac_cpp_err"; then
2569 # Broken: success on invalid input.
2570 continue
2571 else
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2574
2575 # Passes both tests.
2576 ac_preproc_ok=:
2577 break
2578 fi
2579 rm -f conftest.err conftest.$ac_ext
2580
2581 done
2582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2583 rm -f conftest.err conftest.$ac_ext
2584 if $ac_preproc_ok; then
2585 break
2586 fi
2587
2588 done
2589 ac_cv_prog_CPP=$CPP
2590
2591 fi
2592 CPP=$ac_cv_prog_CPP
2593 else
2594 ac_cv_prog_CPP=$CPP
2595 fi
2596 echo "$as_me:$LINENO: result: $CPP" >&5
2597 echo "${ECHO_T}$CPP" >&6
2598 ac_preproc_ok=false
2599 for ac_c_preproc_warn_flag in '' yes
2600 do
2601 # Use a header file that comes with gcc, so configuring glibc
2602 # with a fresh cross-compiler works.
2603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2604 # <limits.h> exists even on freestanding compilers.
2605 # On the NeXT, cc -E runs the code through the compiler's parser,
2606 # not just through cpp. "Syntax error" is here to catch this case.
2607 cat >conftest.$ac_ext <<_ACEOF
2608 /* confdefs.h. */
2609 _ACEOF
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h. */
2613 #ifdef __STDC__
2614 # include <limits.h>
2615 #else
2616 # include <assert.h>
2617 #endif
2618 Syntax error
2619 _ACEOF
2620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2622 ac_status=$?
2623 grep -v '^ *+' conftest.er1 >conftest.err
2624 rm -f conftest.er1
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } >/dev/null; then
2628 if test -s conftest.err; then
2629 ac_cpp_err=$ac_c_preproc_warn_flag
2630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2631 else
2632 ac_cpp_err=
2633 fi
2634 else
2635 ac_cpp_err=yes
2636 fi
2637 if test -z "$ac_cpp_err"; then
2638 :
2639 else
2640 echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2642
2643 # Broken: fails on valid input.
2644 continue
2645 fi
2646 rm -f conftest.err conftest.$ac_ext
2647
2648 # OK, works on sane cases. Now check whether non-existent headers
2649 # can be detected and how.
2650 cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h. */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2656 #include <ac_nonexistent.h>
2657 _ACEOF
2658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2660 ac_status=$?
2661 grep -v '^ *+' conftest.er1 >conftest.err
2662 rm -f conftest.er1
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } >/dev/null; then
2666 if test -s conftest.err; then
2667 ac_cpp_err=$ac_c_preproc_warn_flag
2668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2669 else
2670 ac_cpp_err=
2671 fi
2672 else
2673 ac_cpp_err=yes
2674 fi
2675 if test -z "$ac_cpp_err"; then
2676 # Broken: success on invalid input.
2677 continue
2678 else
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 # Passes both tests.
2683 ac_preproc_ok=:
2684 break
2685 fi
2686 rm -f conftest.err conftest.$ac_ext
2687
2688 done
2689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2690 rm -f conftest.err conftest.$ac_ext
2691 if $ac_preproc_ok; then
2692 :
2693 else
2694 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2695 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2697 See \`config.log' for more details." >&5
2698 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2699 See \`config.log' for more details." >&2;}
2700 { (exit 1); exit 1; }; }; }
2701 fi
2702
2703 ac_ext=c
2704 ac_cpp='$CPP $CPPFLAGS'
2705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2708
2709
2710 echo "$as_me:$LINENO: checking for egrep" >&5
2711 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2712 if test "${ac_cv_prog_egrep+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2716 then ac_cv_prog_egrep='grep -E'
2717 else ac_cv_prog_egrep='egrep'
2718 fi
2719 fi
2720 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2721 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2722 EGREP=$ac_cv_prog_egrep
2723
2724
2725 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2726 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2727 if test "${ac_cv_header_stdc+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 else
2730 cat >conftest.$ac_ext <<_ACEOF
2731 /* confdefs.h. */
2732 _ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2736 #include <stdlib.h>
2737 #include <stdarg.h>
2738 #include <string.h>
2739 #include <float.h>
2740
2741 int
2742 main ()
2743 {
2744
2745 ;
2746 return 0;
2747 }
2748 _ACEOF
2749 rm -f conftest.$ac_objext
2750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2751 (eval $ac_compile) 2>conftest.er1
2752 ac_status=$?
2753 grep -v '^ *+' conftest.er1 >conftest.err
2754 rm -f conftest.er1
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 { ac_try='test -z "$ac_c_werror_flag"
2759 || test ! -s conftest.err'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 (eval $ac_try) 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; } &&
2765 { ac_try='test -s conftest.$ac_objext'
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 (eval $ac_try) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2771 ac_cv_header_stdc=yes
2772 else
2773 echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2775
2776 ac_cv_header_stdc=no
2777 fi
2778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2779
2780 if test $ac_cv_header_stdc = yes; then
2781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2782 cat >conftest.$ac_ext <<_ACEOF
2783 /* confdefs.h. */
2784 _ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2788 #include <string.h>
2789
2790 _ACEOF
2791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2792 $EGREP "memchr" >/dev/null 2>&1; then
2793 :
2794 else
2795 ac_cv_header_stdc=no
2796 fi
2797 rm -f conftest*
2798
2799 fi
2800
2801 if test $ac_cv_header_stdc = yes; then
2802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2803 cat >conftest.$ac_ext <<_ACEOF
2804 /* confdefs.h. */
2805 _ACEOF
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h. */
2809 #include <stdlib.h>
2810
2811 _ACEOF
2812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2813 $EGREP "free" >/dev/null 2>&1; then
2814 :
2815 else
2816 ac_cv_header_stdc=no
2817 fi
2818 rm -f conftest*
2819
2820 fi
2821
2822 if test $ac_cv_header_stdc = yes; then
2823 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2824 if test "$cross_compiling" = yes; then
2825 :
2826 else
2827 cat >conftest.$ac_ext <<_ACEOF
2828 /* confdefs.h. */
2829 _ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2833 #include <ctype.h>
2834 #if ((' ' & 0x0FF) == 0x020)
2835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2837 #else
2838 # define ISLOWER(c) \
2839 (('a' <= (c) && (c) <= 'i') \
2840 || ('j' <= (c) && (c) <= 'r') \
2841 || ('s' <= (c) && (c) <= 'z'))
2842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2843 #endif
2844
2845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2846 int
2847 main ()
2848 {
2849 int i;
2850 for (i = 0; i < 256; i++)
2851 if (XOR (islower (i), ISLOWER (i))
2852 || toupper (i) != TOUPPER (i))
2853 exit(2);
2854 exit (0);
2855 }
2856 _ACEOF
2857 rm -f conftest$ac_exeext
2858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2859 (eval $ac_link) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2868 :
2869 else
2870 echo "$as_me: program exited with status $ac_status" >&5
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2873
2874 ( exit $ac_status )
2875 ac_cv_header_stdc=no
2876 fi
2877 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2878 fi
2879 fi
2880 fi
2881 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2882 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2883 if test $ac_cv_header_stdc = yes; then
2884
2885 cat >>confdefs.h <<\_ACEOF
2886 #define STDC_HEADERS 1
2887 _ACEOF
2888
2889 fi
2890
2891
2892 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2903 inttypes.h stdint.h unistd.h
2904 do
2905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2906 echo "$as_me:$LINENO: checking for $ac_header" >&5
2907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911 cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h. */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2917 $ac_includes_default
2918
2919 #include <$ac_header>
2920 _ACEOF
2921 rm -f conftest.$ac_objext
2922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2923 (eval $ac_compile) 2>conftest.er1
2924 ac_status=$?
2925 grep -v '^ *+' conftest.er1 >conftest.err
2926 rm -f conftest.er1
2927 cat conftest.err >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } &&
2930 { ac_try='test -z "$ac_c_werror_flag"
2931 || test ! -s conftest.err'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933 (eval $ac_try) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; } &&
2937 { ac_try='test -s conftest.$ac_objext'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 (eval $ac_try) 2>&5
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; }; then
2943 eval "$as_ac_Header=yes"
2944 else
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 eval "$as_ac_Header=no"
2949 fi
2950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2951 fi
2952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2955 cat >>confdefs.h <<_ACEOF
2956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2957 _ACEOF
2958
2959 fi
2960
2961 done
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987 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 errno.h fcntl.h signal.h sys/file.h malloc.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h sys/wait.h
2988 do
2989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2991 echo "$as_me:$LINENO: checking for $ac_header" >&5
2992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 fi
2996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2998 else
2999 # Is the header compilable?
3000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3002 cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h. */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3008 $ac_includes_default
3009 #include <$ac_header>
3010 _ACEOF
3011 rm -f conftest.$ac_objext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>conftest.er1
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
3020 { ac_try='test -z "$ac_c_werror_flag"
3021 || test ! -s conftest.err'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023 (eval $ac_try) 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try='test -s conftest.$ac_objext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 ac_header_compiler=yes
3034 else
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3037
3038 ac_header_compiler=no
3039 fi
3040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3042 echo "${ECHO_T}$ac_header_compiler" >&6
3043
3044 # Is the header present?
3045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3047 cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h. */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 #include <$ac_header>
3054 _ACEOF
3055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3057 ac_status=$?
3058 grep -v '^ *+' conftest.er1 >conftest.err
3059 rm -f conftest.er1
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } >/dev/null; then
3063 if test -s conftest.err; then
3064 ac_cpp_err=$ac_c_preproc_warn_flag
3065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3066 else
3067 ac_cpp_err=
3068 fi
3069 else
3070 ac_cpp_err=yes
3071 fi
3072 if test -z "$ac_cpp_err"; then
3073 ac_header_preproc=yes
3074 else
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078 ac_header_preproc=no
3079 fi
3080 rm -f conftest.err conftest.$ac_ext
3081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3082 echo "${ECHO_T}$ac_header_preproc" >&6
3083
3084 # So? What about this header?
3085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3086 yes:no: )
3087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3091 ac_header_preproc=yes
3092 ;;
3093 no:yes:* )
3094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3106 (
3107 cat <<\_ASBOX
3108 ## ------------------------------------------ ##
3109 ## Report this to the AC_PACKAGE_NAME lists. ##
3110 ## ------------------------------------------ ##
3111 _ASBOX
3112 ) |
3113 sed "s/^/$as_me: WARNING: /" >&2
3114 ;;
3115 esac
3116 echo "$as_me:$LINENO: checking for $ac_header" >&5
3117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 else
3121 eval "$as_ac_Header=\$ac_header_preproc"
3122 fi
3123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3125
3126 fi
3127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3128 cat >>confdefs.h <<_ACEOF
3129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3130 _ACEOF
3131
3132 fi
3133
3134 done
3135
3136
3137
3138
3139 for ac_func in pread pwrite pread64
3140 do
3141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3142 echo "$as_me:$LINENO: checking for $ac_func" >&5
3143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3144 if eval "test \"\${$as_ac_var+set}\" = set"; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147 cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h. */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3155 #define $ac_func innocuous_$ac_func
3156
3157 /* System header to define __stub macros and hopefully few prototypes,
3158 which can conflict with char $ac_func (); below.
3159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3160 <limits.h> exists even on freestanding compilers. */
3161
3162 #ifdef __STDC__
3163 # include <limits.h>
3164 #else
3165 # include <assert.h>
3166 #endif
3167
3168 #undef $ac_func
3169
3170 /* Override any gcc2 internal prototype to avoid an error. */
3171 #ifdef __cplusplus
3172 extern "C"
3173 {
3174 #endif
3175 /* We use char because int might match the return type of a gcc2
3176 builtin and then its argument prototype would still apply. */
3177 char $ac_func ();
3178 /* The GNU C library defines this for functions which it implements
3179 to always fail with ENOSYS. Some functions are actually named
3180 something starting with __ and the normal name is an alias. */
3181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3182 choke me
3183 #else
3184 char (*f) () = $ac_func;
3185 #endif
3186 #ifdef __cplusplus
3187 }
3188 #endif
3189
3190 int
3191 main ()
3192 {
3193 return f != $ac_func;
3194 ;
3195 return 0;
3196 }
3197 _ACEOF
3198 rm -f conftest.$ac_objext conftest$ac_exeext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3200 (eval $ac_link) 2>conftest.er1
3201 ac_status=$?
3202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -z "$ac_c_werror_flag"
3208 || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 (eval $ac_try) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest$ac_exeext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 (eval $ac_try) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 eval "$as_ac_var=yes"
3221 else
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3224
3225 eval "$as_ac_var=no"
3226 fi
3227 rm -f conftest.err conftest.$ac_objext \
3228 conftest$ac_exeext conftest.$ac_ext
3229 fi
3230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3232 if test `eval echo '${'$as_ac_var'}'` = yes; then
3233 cat >>confdefs.h <<_ACEOF
3234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3235 _ACEOF
3236
3237 fi
3238 done
3239
3240
3241 for ac_func in memmem
3242 do
3243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3244 echo "$as_me:$LINENO: checking for $ac_func" >&5
3245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3246 if eval "test \"\${$as_ac_var+set}\" = set"; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249 cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h. */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3257 #define $ac_func innocuous_$ac_func
3258
3259 /* System header to define __stub macros and hopefully few prototypes,
3260 which can conflict with char $ac_func (); below.
3261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3262 <limits.h> exists even on freestanding compilers. */
3263
3264 #ifdef __STDC__
3265 # include <limits.h>
3266 #else
3267 # include <assert.h>
3268 #endif
3269
3270 #undef $ac_func
3271
3272 /* Override any gcc2 internal prototype to avoid an error. */
3273 #ifdef __cplusplus
3274 extern "C"
3275 {
3276 #endif
3277 /* We use char because int might match the return type of a gcc2
3278 builtin and then its argument prototype would still apply. */
3279 char $ac_func ();
3280 /* The GNU C library defines this for functions which it implements
3281 to always fail with ENOSYS. Some functions are actually named
3282 something starting with __ and the normal name is an alias. */
3283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3284 choke me
3285 #else
3286 char (*f) () = $ac_func;
3287 #endif
3288 #ifdef __cplusplus
3289 }
3290 #endif
3291
3292 int
3293 main ()
3294 {
3295 return f != $ac_func;
3296 ;
3297 return 0;
3298 }
3299 _ACEOF
3300 rm -f conftest.$ac_objext conftest$ac_exeext
3301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3302 (eval $ac_link) 2>conftest.er1
3303 ac_status=$?
3304 grep -v '^ *+' conftest.er1 >conftest.err
3305 rm -f conftest.er1
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } &&
3309 { ac_try='test -z "$ac_c_werror_flag"
3310 || test ! -s conftest.err'
3311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3312 (eval $ac_try) 2>&5
3313 ac_status=$?
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; } &&
3316 { ac_try='test -s conftest$ac_exeext'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 (eval $ac_try) 2>&5
3319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3322 eval "$as_ac_var=yes"
3323 else
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327 eval "$as_ac_var=no"
3328 fi
3329 rm -f conftest.err conftest.$ac_objext \
3330 conftest$ac_exeext conftest.$ac_ext
3331 fi
3332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3333 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3334 if test `eval echo '${'$as_ac_var'}'` = yes; then
3335 cat >>confdefs.h <<_ACEOF
3336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3337 _ACEOF
3338
3339 else
3340 case $LIBOBJS in
3341 "$ac_func.$ac_objext" | \
3342 *" $ac_func.$ac_objext" | \
3343 "$ac_func.$ac_objext "* | \
3344 *" $ac_func.$ac_objext "* ) ;;
3345 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
3346 esac
3347
3348 fi
3349 done
3350
3351
3352
3353 have_errno=no
3354 echo "$as_me:$LINENO: checking for errno" >&5
3355 echo $ECHO_N "checking for errno... $ECHO_C" >&6
3356 cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h. */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3362
3363 #if HAVE_ERRNO_H
3364 #include <errno.h>
3365 #endif
3366 int
3367 main ()
3368 {
3369 static int x; x = errno;
3370 ;
3371 return 0;
3372 }
3373 _ACEOF
3374 rm -f conftest.$ac_objext conftest$ac_exeext
3375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3376 (eval $ac_link) 2>conftest.er1
3377 ac_status=$?
3378 grep -v '^ *+' conftest.er1 >conftest.err
3379 rm -f conftest.er1
3380 cat conftest.err >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } &&
3383 { ac_try='test -z "$ac_c_werror_flag"
3384 || test ! -s conftest.err'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 (eval $ac_try) 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; } &&
3390 { ac_try='test -s conftest$ac_exeext'
3391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 (eval $ac_try) 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3396 echo "$as_me:$LINENO: result: yes - in errno.h" >&5
3397 echo "${ECHO_T}yes - in errno.h" >&6;
3398 cat >>confdefs.h <<\_ACEOF
3399 #define HAVE_ERRNO 1
3400 _ACEOF
3401 have_errno=yes
3402 else
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406 fi
3407 rm -f conftest.err conftest.$ac_objext \
3408 conftest$ac_exeext conftest.$ac_ext
3409 if test $have_errno = no; then
3410 cat >conftest.$ac_ext <<_ACEOF
3411 /* confdefs.h. */
3412 _ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3416
3417 #if HAVE_ERRNO_H
3418 #include <errno.h>
3419 #endif
3420 int
3421 main ()
3422 {
3423 extern int errno; static int x; x = errno;
3424 ;
3425 return 0;
3426 }
3427 _ACEOF
3428 rm -f conftest.$ac_objext conftest$ac_exeext
3429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3430 (eval $ac_link) 2>conftest.er1
3431 ac_status=$?
3432 grep -v '^ *+' conftest.er1 >conftest.err
3433 rm -f conftest.er1
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } &&
3437 { ac_try='test -z "$ac_c_werror_flag"
3438 || test ! -s conftest.err'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 (eval $ac_try) 2>&5
3441 ac_status=$?
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; } &&
3444 { ac_try='test -s conftest$ac_exeext'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 (eval $ac_try) 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; }; then
3450 echo "$as_me:$LINENO: result: yes - must define" >&5
3451 echo "${ECHO_T}yes - must define" >&6;
3452 cat >>confdefs.h <<\_ACEOF
3453 #define HAVE_ERRNO 1
3454 _ACEOF
3455
3456 cat >>confdefs.h <<\_ACEOF
3457 #define MUST_DEFINE_ERRNO 1
3458 _ACEOF
3459
3460 else
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464 echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3466 fi
3467 rm -f conftest.err conftest.$ac_objext \
3468 conftest$ac_exeext conftest.$ac_ext
3469 fi
3470
3471 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
3472 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
3473 if test "${ac_cv_have_decl_strerror+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476 cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h. */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3482 $ac_includes_default
3483 int
3484 main ()
3485 {
3486 #ifndef strerror
3487 char *p = (char *) strerror;
3488 #endif
3489
3490 ;
3491 return 0;
3492 }
3493 _ACEOF
3494 rm -f conftest.$ac_objext
3495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3496 (eval $ac_compile) 2>conftest.er1
3497 ac_status=$?
3498 grep -v '^ *+' conftest.er1 >conftest.err
3499 rm -f conftest.er1
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } &&
3503 { ac_try='test -z "$ac_c_werror_flag"
3504 || test ! -s conftest.err'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; } &&
3510 { ac_try='test -s conftest.$ac_objext'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 (eval $ac_try) 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; }; then
3516 ac_cv_have_decl_strerror=yes
3517 else
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3520
3521 ac_cv_have_decl_strerror=no
3522 fi
3523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3524 fi
3525 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
3526 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
3527 if test $ac_cv_have_decl_strerror = yes; then
3528
3529 cat >>confdefs.h <<_ACEOF
3530 #define HAVE_DECL_STRERROR 1
3531 _ACEOF
3532
3533
3534 else
3535 cat >>confdefs.h <<_ACEOF
3536 #define HAVE_DECL_STRERROR 0
3537 _ACEOF
3538
3539
3540 fi
3541 echo "$as_me:$LINENO: checking whether perror is declared" >&5
3542 echo $ECHO_N "checking whether perror is declared... $ECHO_C" >&6
3543 if test "${ac_cv_have_decl_perror+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 cat >conftest.$ac_ext <<_ACEOF
3547 /* confdefs.h. */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3552 $ac_includes_default
3553 int
3554 main ()
3555 {
3556 #ifndef perror
3557 char *p = (char *) perror;
3558 #endif
3559
3560 ;
3561 return 0;
3562 }
3563 _ACEOF
3564 rm -f conftest.$ac_objext
3565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try='test -z "$ac_c_werror_flag"
3574 || test ! -s conftest.err'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; } &&
3580 { ac_try='test -s conftest.$ac_objext'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 (eval $ac_try) 2>&5
3583 ac_status=$?
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 ac_cv_have_decl_perror=yes
3587 else
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591 ac_cv_have_decl_perror=no
3592 fi
3593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3594 fi
3595 echo "$as_me:$LINENO: result: $ac_cv_have_decl_perror" >&5
3596 echo "${ECHO_T}$ac_cv_have_decl_perror" >&6
3597 if test $ac_cv_have_decl_perror = yes; then
3598
3599 cat >>confdefs.h <<_ACEOF
3600 #define HAVE_DECL_PERROR 1
3601 _ACEOF
3602
3603
3604 else
3605 cat >>confdefs.h <<_ACEOF
3606 #define HAVE_DECL_PERROR 0
3607 _ACEOF
3608
3609
3610 fi
3611 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3612 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3613 if test "${ac_cv_have_decl_memmem+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616 cat >conftest.$ac_ext <<_ACEOF
3617 /* confdefs.h. */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622 $ac_includes_default
3623 int
3624 main ()
3625 {
3626 #ifndef memmem
3627 char *p = (char *) memmem;
3628 #endif
3629
3630 ;
3631 return 0;
3632 }
3633 _ACEOF
3634 rm -f conftest.$ac_objext
3635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3636 (eval $ac_compile) 2>conftest.er1
3637 ac_status=$?
3638 grep -v '^ *+' conftest.er1 >conftest.err
3639 rm -f conftest.er1
3640 cat conftest.err >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } &&
3643 { ac_try='test -z "$ac_c_werror_flag"
3644 || test ! -s conftest.err'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 (eval $ac_try) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; } &&
3650 { ac_try='test -s conftest.$ac_objext'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 (eval $ac_try) 2>&5
3653 ac_status=$?
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; }; then
3656 ac_cv_have_decl_memmem=yes
3657 else
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 ac_cv_have_decl_memmem=no
3662 fi
3663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3664 fi
3665 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3666 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3667 if test $ac_cv_have_decl_memmem = yes; then
3668
3669 cat >>confdefs.h <<_ACEOF
3670 #define HAVE_DECL_MEMMEM 1
3671 _ACEOF
3672
3673
3674 else
3675 cat >>confdefs.h <<_ACEOF
3676 #define HAVE_DECL_MEMMEM 0
3677 _ACEOF
3678
3679
3680 fi
3681
3682
3683
3684 echo "$as_me:$LINENO: checking for socklen_t" >&5
3685 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
3686 if test "${ac_cv_type_socklen_t+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689 cat >conftest.$ac_ext <<_ACEOF
3690 /* confdefs.h. */
3691 _ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3695 #include <sys/types.h>
3696 #include <sys/socket.h>
3697
3698
3699 int
3700 main ()
3701 {
3702 if ((socklen_t *) 0)
3703 return 0;
3704 if (sizeof (socklen_t))
3705 return 0;
3706 ;
3707 return 0;
3708 }
3709 _ACEOF
3710 rm -f conftest.$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>conftest.er1
3713 ac_status=$?
3714 grep -v '^ *+' conftest.er1 >conftest.err
3715 rm -f conftest.er1
3716 cat conftest.err >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } &&
3719 { ac_try='test -z "$ac_c_werror_flag"
3720 || test ! -s conftest.err'
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); }; } &&
3726 { ac_try='test -s conftest.$ac_objext'
3727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 (eval $ac_try) 2>&5
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 ac_cv_type_socklen_t=yes
3733 else
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737 ac_cv_type_socklen_t=no
3738 fi
3739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3740 fi
3741 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
3742 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
3743 if test $ac_cv_type_socklen_t = yes; then
3744
3745 cat >>confdefs.h <<_ACEOF
3746 #define HAVE_SOCKLEN_T 1
3747 _ACEOF
3748
3749
3750 fi
3751
3752
3753
3754
3755 # Check whether --with-pkgversion or --without-pkgversion was given.
3756 if test "${with_pkgversion+set}" = set; then
3757 withval="$with_pkgversion"
3758 case "$withval" in
3759 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
3760 echo "$as_me: error: package version not specified" >&2;}
3761 { (exit 1); exit 1; }; } ;;
3762 no) PKGVERSION= ;;
3763 *) PKGVERSION="($withval) " ;;
3764 esac
3765 else
3766 PKGVERSION="(GDB) "
3767
3768 fi;
3769
3770
3771
3772
3773 # Check whether --with-bugurl or --without-bugurl was given.
3774 if test "${with_bugurl+set}" = set; then
3775 withval="$with_bugurl"
3776 case "$withval" in
3777 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
3778 echo "$as_me: error: bug URL not specified" >&2;}
3779 { (exit 1); exit 1; }; } ;;
3780 no) BUGURL=
3781 ;;
3782 *) BUGURL="$withval"
3783 ;;
3784 esac
3785 else
3786 BUGURL="http://www.gnu.org/software/gdb/bugs/"
3787
3788 fi;
3789 case ${BUGURL} in
3790 "")
3791 REPORT_BUGS_TO=
3792 REPORT_BUGS_TEXI=
3793 ;;
3794 *)
3795 REPORT_BUGS_TO="<$BUGURL>"
3796 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
3797 ;;
3798 esac;
3799
3800
3801
3802
3803 cat >>confdefs.h <<_ACEOF
3804 #define PKGVERSION "$PKGVERSION"
3805 _ACEOF
3806
3807
3808 cat >>confdefs.h <<_ACEOF
3809 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3810 _ACEOF
3811
3812
3813 . ${srcdir}/configure.srv
3814
3815 if test "${srv_mingwce}" = "yes"; then
3816 LIBS="$LIBS -lws2"
3817 elif test "${srv_mingw}" = "yes"; then
3818 LIBS="$LIBS -lwsock32"
3819 fi
3820
3821 if test "${srv_mingw}" = "yes"; then
3822
3823 cat >>confdefs.h <<\_ACEOF
3824 #define USE_WIN32API 1
3825 _ACEOF
3826
3827 fi
3828
3829 if test "${srv_linux_usrregs}" = "yes"; then
3830
3831 cat >>confdefs.h <<\_ACEOF
3832 #define HAVE_LINUX_USRREGS 1
3833 _ACEOF
3834
3835 fi
3836
3837 if test "${srv_linux_regsets}" = "yes"; then
3838
3839 cat >>confdefs.h <<\_ACEOF
3840 #define HAVE_LINUX_REGSETS 1
3841 _ACEOF
3842
3843
3844 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
3845 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
3846 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849 cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h. */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 #include <sys/ptrace.h>
3856 int
3857 main ()
3858 {
3859 PTRACE_GETREGS;
3860 ;
3861 return 0;
3862 }
3863 _ACEOF
3864 rm -f conftest.$ac_objext
3865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3866 (eval $ac_compile) 2>conftest.er1
3867 ac_status=$?
3868 grep -v '^ *+' conftest.er1 >conftest.err
3869 rm -f conftest.er1
3870 cat conftest.err >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } &&
3873 { ac_try='test -z "$ac_c_werror_flag"
3874 || test ! -s conftest.err'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 (eval $ac_try) 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; } &&
3880 { ac_try='test -s conftest.$ac_objext'
3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882 (eval $ac_try) 2>&5
3883 ac_status=$?
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3886 gdbsrv_cv_have_ptrace_getregs=yes
3887 else
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3890
3891 gdbsrv_cv_have_ptrace_getregs=no
3892 fi
3893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3894 fi
3895
3896 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getregs" >&5
3897 echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getregs" >&6
3898 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
3899
3900 cat >>confdefs.h <<\_ACEOF
3901 #define HAVE_PTRACE_GETREGS 1
3902 _ACEOF
3903
3904 fi
3905
3906 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
3907 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
3908 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911 cat >conftest.$ac_ext <<_ACEOF
3912 /* confdefs.h. */
3913 _ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h. */
3917 #include <sys/ptrace.h>
3918 int
3919 main ()
3920 {
3921 PTRACE_GETFPXREGS;
3922 ;
3923 return 0;
3924 }
3925 _ACEOF
3926 rm -f conftest.$ac_objext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3928 (eval $ac_compile) 2>conftest.er1
3929 ac_status=$?
3930 grep -v '^ *+' conftest.er1 >conftest.err
3931 rm -f conftest.er1
3932 cat conftest.err >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } &&
3935 { ac_try='test -z "$ac_c_werror_flag"
3936 || test ! -s conftest.err'
3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 (eval $ac_try) 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; } &&
3942 { ac_try='test -s conftest.$ac_objext'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 (eval $ac_try) 2>&5
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; }; then
3948 gdbsrv_cv_have_ptrace_getfpxregs=yes
3949 else
3950 echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.$ac_ext >&5
3952
3953 gdbsrv_cv_have_ptrace_getfpxregs=no
3954 fi
3955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3956 fi
3957
3958 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
3959 echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getfpxregs" >&6
3960 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
3961
3962 cat >>confdefs.h <<\_ACEOF
3963 #define HAVE_PTRACE_GETFPXREGS 1
3964 _ACEOF
3965
3966 fi
3967 fi
3968
3969 if test "$ac_cv_header_sys_procfs_h" = yes; then
3970 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
3971 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
3972 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975 cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h. */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981
3982 #define _SYSCALL32
3983 #include <sys/procfs.h>
3984 int
3985 main ()
3986 {
3987 lwpid_t avar
3988 ;
3989 return 0;
3990 }
3991 _ACEOF
3992 rm -f conftest.$ac_objext
3993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3994 (eval $ac_compile) 2>conftest.er1
3995 ac_status=$?
3996 grep -v '^ *+' conftest.er1 >conftest.err
3997 rm -f conftest.er1
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
4001 { ac_try='test -z "$ac_c_werror_flag"
4002 || test ! -s conftest.err'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 (eval $ac_try) 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; } &&
4008 { ac_try='test -s conftest.$ac_objext'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010 (eval $ac_try) 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4014 bfd_cv_have_sys_procfs_type_lwpid_t=yes
4015 else
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4018
4019 bfd_cv_have_sys_procfs_type_lwpid_t=no
4020
4021 fi
4022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4023 fi
4024
4025 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
4026
4027 cat >>confdefs.h <<\_ACEOF
4028 #define HAVE_LWPID_T 1
4029 _ACEOF
4030
4031 fi
4032 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
4033 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
4034
4035 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
4036 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
4037 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 else
4040 cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h. */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4046
4047 #define _SYSCALL32
4048 #include <sys/procfs.h>
4049 int
4050 main ()
4051 {
4052 psaddr_t avar
4053 ;
4054 return 0;
4055 }
4056 _ACEOF
4057 rm -f conftest.$ac_objext
4058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059 (eval $ac_compile) 2>conftest.er1
4060 ac_status=$?
4061 grep -v '^ *+' conftest.er1 >conftest.err
4062 rm -f conftest.er1
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try='test -z "$ac_c_werror_flag"
4067 || test ! -s conftest.err'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 (eval $ac_try) 2>&5
4070 ac_status=$?
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try='test -s conftest.$ac_objext'
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 (eval $ac_try) 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4079 bfd_cv_have_sys_procfs_type_psaddr_t=yes
4080 else
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4083
4084 bfd_cv_have_sys_procfs_type_psaddr_t=no
4085
4086 fi
4087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4088 fi
4089
4090 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
4091
4092 cat >>confdefs.h <<\_ACEOF
4093 #define HAVE_PSADDR_T 1
4094 _ACEOF
4095
4096 fi
4097 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
4098 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
4099
4100 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
4101 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
4102 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105 cat >conftest.$ac_ext <<_ACEOF
4106 /* confdefs.h. */
4107 _ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4111
4112 #define _SYSCALL32
4113 #include <sys/procfs.h>
4114 int
4115 main ()
4116 {
4117 prgregset_t avar
4118 ;
4119 return 0;
4120 }
4121 _ACEOF
4122 rm -f conftest.$ac_objext
4123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4124 (eval $ac_compile) 2>conftest.er1
4125 ac_status=$?
4126 grep -v '^ *+' conftest.er1 >conftest.err
4127 rm -f conftest.er1
4128 cat conftest.err >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } &&
4131 { ac_try='test -z "$ac_c_werror_flag"
4132 || test ! -s conftest.err'
4133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 (eval $ac_try) 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; } &&
4138 { ac_try='test -s conftest.$ac_objext'
4139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 (eval $ac_try) 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
4144 bfd_cv_have_sys_procfs_type_prgregset_t=yes
4145 else
4146 echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4148
4149 bfd_cv_have_sys_procfs_type_prgregset_t=no
4150
4151 fi
4152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4153 fi
4154
4155 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
4156
4157 cat >>confdefs.h <<\_ACEOF
4158 #define HAVE_PRGREGSET_T 1
4159 _ACEOF
4160
4161 fi
4162 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
4163 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
4164
4165 echo "$as_me:$LINENO: checking for elf_fpregset_t in sys/procfs.h" >&5
4166 echo $ECHO_N "checking for elf_fpregset_t in sys/procfs.h... $ECHO_C" >&6
4167 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170 cat >conftest.$ac_ext <<_ACEOF
4171 /* confdefs.h. */
4172 _ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4176
4177 #define _SYSCALL32
4178 #include <sys/procfs.h>
4179 int
4180 main ()
4181 {
4182 elf_fpregset_t avar
4183 ;
4184 return 0;
4185 }
4186 _ACEOF
4187 rm -f conftest.$ac_objext
4188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4189 (eval $ac_compile) 2>conftest.er1
4190 ac_status=$?
4191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
4196 { ac_try='test -z "$ac_c_werror_flag"
4197 || test ! -s conftest.err'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 (eval $ac_try) 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; } &&
4203 { ac_try='test -s conftest.$ac_objext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 (eval $ac_try) 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
4210 else
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
4215
4216 fi
4217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4218 fi
4219
4220 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
4221
4222 cat >>confdefs.h <<\_ACEOF
4223 #define HAVE_ELF_FPREGSET_T 1
4224 _ACEOF
4225
4226 fi
4227 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
4228 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6
4229
4230 fi
4231
4232 srv_thread_depfiles=
4233 srv_libs=
4234 USE_THREAD_DB=
4235
4236 if test "$srv_linux_thread_db" = "yes"; then
4237 echo "$as_me:$LINENO: checking for libthread_db" >&5
4238 echo $ECHO_N "checking for libthread_db... $ECHO_C" >&6
4239 if test "${srv_cv_thread_db+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242 old_LIBS="$LIBS"
4243 LIBS="$LIBS -lthread_db"
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 void ps_pglobal_lookup() {}
4251 void ps_pdread() {}
4252 void ps_pdwrite() {}
4253 void ps_lgetregs() {}
4254 void ps_lsetregs() {}
4255 void ps_lgetfpregs() {}
4256 void ps_lsetfpregs() {}
4257 void ps_get_thread_area() {}
4258 void ps_getpid() {}
4259 int
4260 main ()
4261 {
4262 td_ta_new();
4263 ;
4264 return 0;
4265 }
4266 _ACEOF
4267 rm -f conftest.$ac_objext conftest$ac_exeext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269 (eval $ac_link) 2>conftest.er1
4270 ac_status=$?
4271 grep -v '^ *+' conftest.er1 >conftest.err
4272 rm -f conftest.er1
4273 cat conftest.err >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
4276 { ac_try='test -z "$ac_c_werror_flag"
4277 || test ! -s conftest.err'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; } &&
4283 { ac_try='test -s conftest$ac_exeext'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 (eval $ac_try) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 srv_cv_thread_db="-lthread_db"
4290 else
4291 echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4293
4294 srv_cv_thread_db=no
4295
4296 if test "$prefix" = "/usr" || test "$prefix" = "NONE"; then
4297 thread_db="/lib/libthread_db.so.1"
4298 else
4299 thread_db='$prefix/lib/libthread_db.so.1'
4300 fi
4301 LIBS="$old_LIBS `eval echo "$thread_db"`"
4302 cat >conftest.$ac_ext <<_ACEOF
4303 /* confdefs.h. */
4304 _ACEOF
4305 cat confdefs.h >>conftest.$ac_ext
4306 cat >>conftest.$ac_ext <<_ACEOF
4307 /* end confdefs.h. */
4308 void ps_pglobal_lookup() {}
4309 void ps_pdread() {}
4310 void ps_pdwrite() {}
4311 void ps_lgetregs() {}
4312 void ps_lsetregs() {}
4313 void ps_lgetfpregs() {}
4314 void ps_lsetfpregs() {}
4315 void ps_get_thread_area() {}
4316 void ps_getpid() {}
4317 int
4318 main ()
4319 {
4320 td_ta_new();
4321 ;
4322 return 0;
4323 }
4324 _ACEOF
4325 rm -f conftest.$ac_objext conftest$ac_exeext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4327 (eval $ac_link) 2>conftest.er1
4328 ac_status=$?
4329 grep -v '^ *+' conftest.er1 >conftest.err
4330 rm -f conftest.er1
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } &&
4334 { ac_try='test -z "$ac_c_werror_flag"
4335 || test ! -s conftest.err'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 (eval $ac_try) 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest$ac_exeext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343 (eval $ac_try) 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 srv_cv_thread_db="$thread_db"
4348 else
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4351
4352 srv_cv_thread_db=no
4353 fi
4354 rm -f conftest.err conftest.$ac_objext \
4355 conftest$ac_exeext conftest.$ac_ext
4356
4357 fi
4358 rm -f conftest.err conftest.$ac_objext \
4359 conftest$ac_exeext conftest.$ac_ext
4360 LIBS="$old_LIBS"
4361
4362 fi
4363 echo "$as_me:$LINENO: result: $srv_cv_thread_db" >&5
4364 echo "${ECHO_T}$srv_cv_thread_db" >&6
4365 if test "$srv_cv_thread_db" = no; then
4366 { echo "$as_me:$LINENO: WARNING: Could not find libthread_db." >&5
4367 echo "$as_me: WARNING: Could not find libthread_db." >&2;}
4368 { echo "$as_me:$LINENO: WARNING: Disabling thread support in gdbserver." >&5
4369 echo "$as_me: WARNING: Disabling thread support in gdbserver." >&2;}
4370 srv_linux_thread_db=no
4371 else
4372 srv_libs="$srv_cv_thread_db"
4373 echo "$as_me:$LINENO: checking for thread_db_tls_get_addr" >&5
4374 echo $ECHO_N "checking for thread_db_tls_get_addr... $ECHO_C" >&6
4375 if test "${srv_cv_tls_get_addr+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378 old_LIBS="$LIBS"
4379 LIBS="$LIBS $srv_cv_thread_db"
4380 cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h. */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 void ps_pglobal_lookup() {}
4387 void ps_pdread() {}
4388 void ps_pdwrite() {}
4389 void ps_lgetregs() {}
4390 void ps_lsetregs() {}
4391 void ps_lgetfpregs() {}
4392 void ps_lsetfpregs() {}
4393 void ps_get_thread_area() {}
4394 void ps_getpid() {}
4395 int
4396 main ()
4397 {
4398 td_thr_tls_get_addr();
4399 ;
4400 return 0;
4401 }
4402 _ACEOF
4403 rm -f conftest.$ac_objext conftest$ac_exeext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4405 (eval $ac_link) 2>conftest.er1
4406 ac_status=$?
4407 grep -v '^ *+' conftest.er1 >conftest.err
4408 rm -f conftest.er1
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } &&
4412 { ac_try='test -z "$ac_c_werror_flag"
4413 || test ! -s conftest.err'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 (eval $ac_try) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; } &&
4419 { ac_try='test -s conftest$ac_exeext'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421 (eval $ac_try) 2>&5
4422 ac_status=$?
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; }; then
4425 srv_cv_tls_get_addr=yes
4426 else
4427 echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4429
4430 srv_cv_tls_get_addr=no
4431 fi
4432 rm -f conftest.err conftest.$ac_objext \
4433 conftest$ac_exeext conftest.$ac_ext
4434 LIBS="$old_LIBS"
4435
4436 fi
4437 echo "$as_me:$LINENO: result: $srv_cv_tls_get_addr" >&5
4438 echo "${ECHO_T}$srv_cv_tls_get_addr" >&6
4439 fi
4440 old_LDFLAGS="$LDFLAGS"
4441 LDFLAGS="$LDFLAGS -rdynamic"
4442 cat >conftest.$ac_ext <<_ACEOF
4443 /* confdefs.h. */
4444 _ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4448
4449 int
4450 main ()
4451 {
4452
4453 ;
4454 return 0;
4455 }
4456 _ACEOF
4457 rm -f conftest.$ac_objext conftest$ac_exeext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459 (eval $ac_link) 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } &&
4466 { ac_try='test -z "$ac_c_werror_flag"
4467 || test ! -s conftest.err'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 (eval $ac_try) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; } &&
4473 { ac_try='test -s conftest$ac_exeext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 (eval $ac_try) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4479 RDYNAMIC=-rdynamic
4480 else
4481 echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4483
4484 RDYNAMIC=
4485 fi
4486 rm -f conftest.err conftest.$ac_objext \
4487 conftest$ac_exeext conftest.$ac_ext
4488
4489 LDFLAGS="$old_LDFLAGS"
4490 fi
4491
4492 if test "$srv_linux_thread_db" = "yes"; then
4493 srv_thread_depfiles="thread-db.o proc-service.o"
4494 USE_THREAD_DB="-DUSE_THREAD_DB"
4495 echo "$as_me:$LINENO: checking for TD_VERSION" >&5
4496 echo $ECHO_N "checking for TD_VERSION... $ECHO_C" >&6
4497 if test "${gdbsrv_cv_have_td_version+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500 cat >conftest.$ac_ext <<_ACEOF
4501 /* confdefs.h. */
4502 _ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 #include <thread_db.h>
4507 int
4508 main ()
4509 {
4510 TD_VERSION;
4511 ;
4512 return 0;
4513 }
4514 _ACEOF
4515 rm -f conftest.$ac_objext
4516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517 (eval $ac_compile) 2>conftest.er1
4518 ac_status=$?
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } &&
4524 { ac_try='test -z "$ac_c_werror_flag"
4525 || test ! -s conftest.err'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; } &&
4531 { ac_try='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 (eval $ac_try) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 gdbsrv_cv_have_td_version=yes
4538 else
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542 gdbsrv_cv_have_td_version=no
4543 fi
4544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4545 fi
4546 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_td_version" >&5
4547 echo "${ECHO_T}$gdbsrv_cv_have_td_version" >&6
4548 if test $gdbsrv_cv_have_td_version = yes; then
4549
4550 cat >>confdefs.h <<\_ACEOF
4551 #define HAVE_TD_VERSION 1
4552 _ACEOF
4553
4554 fi
4555
4556 if test "$srv_cv_tls_get_addr" = yes; then
4557
4558 cat >>confdefs.h <<\_ACEOF
4559 #define HAVE_TD_THR_TLS_GET_ADDR 1
4560 _ACEOF
4561
4562 fi
4563 fi
4564
4565 if test "$srv_xmlfiles" != ""; then
4566 srv_xmlbuiltin="xml-builtin.o"
4567
4568 cat >>confdefs.h <<\_ACEOF
4569 #define USE_XML 1
4570 _ACEOF
4571
4572
4573 tmp_xmlfiles=$srv_xmlfiles
4574 srv_xmlfiles=""
4575 for f in $tmp_xmlfiles; do
4576 srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
4577 done
4578 fi
4579
4580 GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
4581 GDBSERVER_LIBS="$srv_libs"
4582
4583
4584
4585
4586
4587
4588
4589 ac_config_files="$ac_config_files Makefile"
4590 ac_config_commands="$ac_config_commands default"
4591 cat >confcache <<\_ACEOF
4592 # This file is a shell script that caches the results of configure
4593 # tests run on this system so they can be shared between configure
4594 # scripts and configure runs, see configure's option --config-cache.
4595 # It is not useful on other systems. If it contains results you don't
4596 # want to keep, you may remove or edit it.
4597 #
4598 # config.status only pays attention to the cache file if you give it
4599 # the --recheck option to rerun configure.
4600 #
4601 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4602 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4603 # following values.
4604
4605 _ACEOF
4606
4607 # The following way of writing the cache mishandles newlines in values,
4608 # but we know of no workaround that is simple, portable, and efficient.
4609 # So, don't put newlines in cache variables' values.
4610 # Ultrix sh set writes to stderr and can't be redirected directly,
4611 # and sets the high bit in the cache file unless we assign to the vars.
4612 {
4613 (set) 2>&1 |
4614 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4615 *ac_space=\ *)
4616 # `set' does not quote correctly, so add quotes (double-quote
4617 # substitution turns \\\\ into \\, and sed turns \\ into \).
4618 sed -n \
4619 "s/'/'\\\\''/g;
4620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4621 ;;
4622 *)
4623 # `set' quotes correctly as required by POSIX, so do not add quotes.
4624 sed -n \
4625 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4626 ;;
4627 esac;
4628 } |
4629 sed '
4630 t clear
4631 : clear
4632 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4633 t end
4634 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4635 : end' >>confcache
4636 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4637 if test -w $cache_file; then
4638 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4639 cat confcache >$cache_file
4640 else
4641 echo "not updating unwritable cache $cache_file"
4642 fi
4643 fi
4644 rm -f confcache
4645
4646 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4647 # Let make expand exec_prefix.
4648 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4649
4650 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4651 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4652 # trailing colons and then remove the whole line if VPATH becomes empty
4653 # (actually we leave an empty line to preserve line numbers).
4654 if test "x$srcdir" = x.; then
4655 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4656 s/:*\$(srcdir):*/:/;
4657 s/:*\${srcdir}:*/:/;
4658 s/:*@srcdir@:*/:/;
4659 s/^\([^=]*=[ ]*\):*/\1/;
4660 s/:*$//;
4661 s/^[^=]*=[ ]*$//;
4662 }'
4663 fi
4664
4665 DEFS=-DHAVE_CONFIG_H
4666
4667 ac_libobjs=
4668 ac_ltlibobjs=
4669 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4670 # 1. Remove the extension, and $U if already installed.
4671 ac_i=`echo "$ac_i" |
4672 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4673 # 2. Add them.
4674 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4675 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4676 done
4677 LIBOBJS=$ac_libobjs
4678
4679 LTLIBOBJS=$ac_ltlibobjs
4680
4681
4682
4683 : ${CONFIG_STATUS=./config.status}
4684 ac_clean_files_save=$ac_clean_files
4685 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4686 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4687 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4688 cat >$CONFIG_STATUS <<_ACEOF
4689 #! $SHELL
4690 # Generated by $as_me.
4691 # Run this file to recreate the current configuration.
4692 # Compiler output produced by configure, useful for debugging
4693 # configure, is in config.log if it exists.
4694
4695 debug=false
4696 ac_cs_recheck=false
4697 ac_cs_silent=false
4698 SHELL=\${CONFIG_SHELL-$SHELL}
4699 _ACEOF
4700
4701 cat >>$CONFIG_STATUS <<\_ACEOF
4702 ## --------------------- ##
4703 ## M4sh Initialization. ##
4704 ## --------------------- ##
4705
4706 # Be Bourne compatible
4707 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4708 emulate sh
4709 NULLCMD=:
4710 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4711 # is contrary to our usage. Disable this feature.
4712 alias -g '${1+"$@"}'='"$@"'
4713 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4714 set -o posix
4715 fi
4716 DUALCASE=1; export DUALCASE # for MKS sh
4717
4718 # Support unset when possible.
4719 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4720 as_unset=unset
4721 else
4722 as_unset=false
4723 fi
4724
4725
4726 # Work around bugs in pre-3.0 UWIN ksh.
4727 $as_unset ENV MAIL MAILPATH
4728 PS1='$ '
4729 PS2='> '
4730 PS4='+ '
4731
4732 # NLS nuisances.
4733 for as_var in \
4734 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4735 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4736 LC_TELEPHONE LC_TIME
4737 do
4738 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4739 eval $as_var=C; export $as_var
4740 else
4741 $as_unset $as_var
4742 fi
4743 done
4744
4745 # Required to use basename.
4746 if expr a : '\(a\)' >/dev/null 2>&1; then
4747 as_expr=expr
4748 else
4749 as_expr=false
4750 fi
4751
4752 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4753 as_basename=basename
4754 else
4755 as_basename=false
4756 fi
4757
4758
4759 # Name of the executable.
4760 as_me=`$as_basename "$0" ||
4761 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4762 X"$0" : 'X\(//\)$' \| \
4763 X"$0" : 'X\(/\)$' \| \
4764 . : '\(.\)' 2>/dev/null ||
4765 echo X/"$0" |
4766 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4767 /^X\/\(\/\/\)$/{ s//\1/; q; }
4768 /^X\/\(\/\).*/{ s//\1/; q; }
4769 s/.*/./; q'`
4770
4771
4772 # PATH needs CR, and LINENO needs CR and PATH.
4773 # Avoid depending upon Character Ranges.
4774 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4775 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4776 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4777 as_cr_digits='0123456789'
4778 as_cr_alnum=$as_cr_Letters$as_cr_digits
4779
4780 # The user is always right.
4781 if test "${PATH_SEPARATOR+set}" != set; then
4782 echo "#! /bin/sh" >conf$$.sh
4783 echo "exit 0" >>conf$$.sh
4784 chmod +x conf$$.sh
4785 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4786 PATH_SEPARATOR=';'
4787 else
4788 PATH_SEPARATOR=:
4789 fi
4790 rm -f conf$$.sh
4791 fi
4792
4793
4794 as_lineno_1=$LINENO
4795 as_lineno_2=$LINENO
4796 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4797 test "x$as_lineno_1" != "x$as_lineno_2" &&
4798 test "x$as_lineno_3" = "x$as_lineno_2" || {
4799 # Find who we are. Look in the path if we contain no path at all
4800 # relative or not.
4801 case $0 in
4802 *[\\/]* ) as_myself=$0 ;;
4803 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4805 do
4806 IFS=$as_save_IFS
4807 test -z "$as_dir" && as_dir=.
4808 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4809 done
4810
4811 ;;
4812 esac
4813 # We did not find ourselves, most probably we were run as `sh COMMAND'
4814 # in which case we are not to be found in the path.
4815 if test "x$as_myself" = x; then
4816 as_myself=$0
4817 fi
4818 if test ! -f "$as_myself"; then
4819 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4820 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4821 { (exit 1); exit 1; }; }
4822 fi
4823 case $CONFIG_SHELL in
4824 '')
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4827 do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for as_base in sh bash ksh sh5; do
4831 case $as_dir in
4832 /*)
4833 if ("$as_dir/$as_base" -c '
4834 as_lineno_1=$LINENO
4835 as_lineno_2=$LINENO
4836 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4837 test "x$as_lineno_1" != "x$as_lineno_2" &&
4838 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4839 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4840 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4841 CONFIG_SHELL=$as_dir/$as_base
4842 export CONFIG_SHELL
4843 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4844 fi;;
4845 esac
4846 done
4847 done
4848 ;;
4849 esac
4850
4851 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4852 # uniformly replaced by the line number. The first 'sed' inserts a
4853 # line-number line before each line; the second 'sed' does the real
4854 # work. The second script uses 'N' to pair each line-number line
4855 # with the numbered line, and appends trailing '-' during
4856 # substitution so that $LINENO is not a special case at line end.
4857 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4858 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4859 sed '=' <$as_myself |
4860 sed '
4861 N
4862 s,$,-,
4863 : loop
4864 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4865 t loop
4866 s,-$,,
4867 s,^['$as_cr_digits']*\n,,
4868 ' >$as_me.lineno &&
4869 chmod +x $as_me.lineno ||
4870 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4871 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4872 { (exit 1); exit 1; }; }
4873
4874 # Don't try to exec as it changes $[0], causing all sort of problems
4875 # (the dirname of $[0] is not the place where we might find the
4876 # original and so on. Autoconf is especially sensible to this).
4877 . ./$as_me.lineno
4878 # Exit status is that of the last command.
4879 exit
4880 }
4881
4882
4883 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4884 *c*,-n*) ECHO_N= ECHO_C='
4885 ' ECHO_T=' ' ;;
4886 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4887 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4888 esac
4889
4890 if expr a : '\(a\)' >/dev/null 2>&1; then
4891 as_expr=expr
4892 else
4893 as_expr=false
4894 fi
4895
4896 rm -f conf$$ conf$$.exe conf$$.file
4897 echo >conf$$.file
4898 if ln -s conf$$.file conf$$ 2>/dev/null; then
4899 # We could just check for DJGPP; but this test a) works b) is more generic
4900 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4901 if test -f conf$$.exe; then
4902 # Don't use ln at all; we don't have any links
4903 as_ln_s='cp -p'
4904 else
4905 as_ln_s='ln -s'
4906 fi
4907 elif ln conf$$.file conf$$ 2>/dev/null; then
4908 as_ln_s=ln
4909 else
4910 as_ln_s='cp -p'
4911 fi
4912 rm -f conf$$ conf$$.exe conf$$.file
4913
4914 if mkdir -p . 2>/dev/null; then
4915 as_mkdir_p=:
4916 else
4917 test -d ./-p && rmdir ./-p
4918 as_mkdir_p=false
4919 fi
4920
4921 as_executable_p="test -f"
4922
4923 # Sed expression to map a string onto a valid CPP name.
4924 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4925
4926 # Sed expression to map a string onto a valid variable name.
4927 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4928
4929
4930 # IFS
4931 # We need space, tab and new line, in precisely that order.
4932 as_nl='
4933 '
4934 IFS=" $as_nl"
4935
4936 # CDPATH.
4937 $as_unset CDPATH
4938
4939 exec 6>&1
4940
4941 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4942 # report actual input values of CONFIG_FILES etc. instead of their
4943 # values after options handling. Logging --version etc. is OK.
4944 exec 5>>config.log
4945 {
4946 echo
4947 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4948 ## Running $as_me. ##
4949 _ASBOX
4950 } >&5
4951 cat >&5 <<_CSEOF
4952
4953 This file was extended by $as_me, which was
4954 generated by GNU Autoconf 2.59. Invocation command line was
4955
4956 CONFIG_FILES = $CONFIG_FILES
4957 CONFIG_HEADERS = $CONFIG_HEADERS
4958 CONFIG_LINKS = $CONFIG_LINKS
4959 CONFIG_COMMANDS = $CONFIG_COMMANDS
4960 $ $0 $@
4961
4962 _CSEOF
4963 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4964 echo >&5
4965 _ACEOF
4966
4967 # Files that config.status was made for.
4968 if test -n "$ac_config_files"; then
4969 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4970 fi
4971
4972 if test -n "$ac_config_headers"; then
4973 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4974 fi
4975
4976 if test -n "$ac_config_links"; then
4977 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4978 fi
4979
4980 if test -n "$ac_config_commands"; then
4981 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4982 fi
4983
4984 cat >>$CONFIG_STATUS <<\_ACEOF
4985
4986 ac_cs_usage="\
4987 \`$as_me' instantiates files from templates according to the
4988 current configuration.
4989
4990 Usage: $0 [OPTIONS] [FILE]...
4991
4992 -h, --help print this help, then exit
4993 -V, --version print version number, then exit
4994 -q, --quiet do not print progress messages
4995 -d, --debug don't remove temporary files
4996 --recheck update $as_me by reconfiguring in the same conditions
4997 --file=FILE[:TEMPLATE]
4998 instantiate the configuration file FILE
4999 --header=FILE[:TEMPLATE]
5000 instantiate the configuration header FILE
5001
5002 Configuration files:
5003 $config_files
5004
5005 Configuration headers:
5006 $config_headers
5007
5008 Configuration commands:
5009 $config_commands
5010
5011 Report bugs to <bug-autoconf@gnu.org>."
5012 _ACEOF
5013
5014 cat >>$CONFIG_STATUS <<_ACEOF
5015 ac_cs_version="\\
5016 config.status
5017 configured by $0, generated by GNU Autoconf 2.59,
5018 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5019
5020 Copyright (C) 2003 Free Software Foundation, Inc.
5021 This config.status script is free software; the Free Software Foundation
5022 gives unlimited permission to copy, distribute and modify it."
5023 srcdir=$srcdir
5024 INSTALL="$INSTALL"
5025 _ACEOF
5026
5027 cat >>$CONFIG_STATUS <<\_ACEOF
5028 # If no file are specified by the user, then we need to provide default
5029 # value. By we need to know if files were specified by the user.
5030 ac_need_defaults=:
5031 while test $# != 0
5032 do
5033 case $1 in
5034 --*=*)
5035 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5036 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5037 ac_shift=:
5038 ;;
5039 -*)
5040 ac_option=$1
5041 ac_optarg=$2
5042 ac_shift=shift
5043 ;;
5044 *) # This is not an option, so the user has probably given explicit
5045 # arguments.
5046 ac_option=$1
5047 ac_need_defaults=false;;
5048 esac
5049
5050 case $ac_option in
5051 # Handling of the options.
5052 _ACEOF
5053 cat >>$CONFIG_STATUS <<\_ACEOF
5054 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5055 ac_cs_recheck=: ;;
5056 --version | --vers* | -V )
5057 echo "$ac_cs_version"; exit 0 ;;
5058 --he | --h)
5059 # Conflict between --help and --header
5060 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5061 Try \`$0 --help' for more information." >&5
5062 echo "$as_me: error: ambiguous option: $1
5063 Try \`$0 --help' for more information." >&2;}
5064 { (exit 1); exit 1; }; };;
5065 --help | --hel | -h )
5066 echo "$ac_cs_usage"; exit 0 ;;
5067 --debug | --d* | -d )
5068 debug=: ;;
5069 --file | --fil | --fi | --f )
5070 $ac_shift
5071 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5072 ac_need_defaults=false;;
5073 --header | --heade | --head | --hea )
5074 $ac_shift
5075 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5076 ac_need_defaults=false;;
5077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5078 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5079 ac_cs_silent=: ;;
5080
5081 # This is an error.
5082 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5083 Try \`$0 --help' for more information." >&5
5084 echo "$as_me: error: unrecognized option: $1
5085 Try \`$0 --help' for more information." >&2;}
5086 { (exit 1); exit 1; }; } ;;
5087
5088 *) ac_config_targets="$ac_config_targets $1" ;;
5089
5090 esac
5091 shift
5092 done
5093
5094 ac_configure_extra_args=
5095
5096 if $ac_cs_silent; then
5097 exec 6>/dev/null
5098 ac_configure_extra_args="$ac_configure_extra_args --silent"
5099 fi
5100
5101 _ACEOF
5102 cat >>$CONFIG_STATUS <<_ACEOF
5103 if \$ac_cs_recheck; then
5104 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5105 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5106 fi
5107
5108 _ACEOF
5109
5110
5111
5112
5113
5114 cat >>$CONFIG_STATUS <<\_ACEOF
5115 for ac_config_target in $ac_config_targets
5116 do
5117 case "$ac_config_target" in
5118 # Handling of arguments.
5119 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5120 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5121 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5122 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5123 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5124 { (exit 1); exit 1; }; };;
5125 esac
5126 done
5127
5128 # If the user did not use the arguments to specify the items to instantiate,
5129 # then the envvar interface is used. Set only those that are not.
5130 # We use the long form for the default assignment because of an extremely
5131 # bizarre bug on SunOS 4.1.3.
5132 if $ac_need_defaults; then
5133 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5134 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5135 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5136 fi
5137
5138 # Have a temporary directory for convenience. Make it in the build tree
5139 # simply because there is no reason to put it here, and in addition,
5140 # creating and moving files from /tmp can sometimes cause problems.
5141 # Create a temporary directory, and hook for its removal unless debugging.
5142 $debug ||
5143 {
5144 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5145 trap '{ (exit 1); exit 1; }' 1 2 13 15
5146 }
5147
5148 # Create a (secure) tmp directory for tmp files.
5149
5150 {
5151 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5152 test -n "$tmp" && test -d "$tmp"
5153 } ||
5154 {
5155 tmp=./confstat$$-$RANDOM
5156 (umask 077 && mkdir $tmp)
5157 } ||
5158 {
5159 echo "$me: cannot create a temporary directory in ." >&2
5160 { (exit 1); exit 1; }
5161 }
5162
5163 _ACEOF
5164
5165 cat >>$CONFIG_STATUS <<_ACEOF
5166
5167 #
5168 # CONFIG_FILES section.
5169 #
5170
5171 # No need to generate the scripts if there are no CONFIG_FILES.
5172 # This happens for instance when ./config.status config.h
5173 if test -n "\$CONFIG_FILES"; then
5174 # Protect against being on the right side of a sed subst in config.status.
5175 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5176 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5177 s,@SHELL@,$SHELL,;t t
5178 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5179 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5180 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5181 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5182 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5183 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5184 s,@exec_prefix@,$exec_prefix,;t t
5185 s,@prefix@,$prefix,;t t
5186 s,@program_transform_name@,$program_transform_name,;t t
5187 s,@bindir@,$bindir,;t t
5188 s,@sbindir@,$sbindir,;t t
5189 s,@libexecdir@,$libexecdir,;t t
5190 s,@datadir@,$datadir,;t t
5191 s,@sysconfdir@,$sysconfdir,;t t
5192 s,@sharedstatedir@,$sharedstatedir,;t t
5193 s,@localstatedir@,$localstatedir,;t t
5194 s,@libdir@,$libdir,;t t
5195 s,@includedir@,$includedir,;t t
5196 s,@oldincludedir@,$oldincludedir,;t t
5197 s,@infodir@,$infodir,;t t
5198 s,@mandir@,$mandir,;t t
5199 s,@build_alias@,$build_alias,;t t
5200 s,@host_alias@,$host_alias,;t t
5201 s,@target_alias@,$target_alias,;t t
5202 s,@DEFS@,$DEFS,;t t
5203 s,@ECHO_C@,$ECHO_C,;t t
5204 s,@ECHO_N@,$ECHO_N,;t t
5205 s,@ECHO_T@,$ECHO_T,;t t
5206 s,@LIBS@,$LIBS,;t t
5207 s,@CC@,$CC,;t t
5208 s,@CFLAGS@,$CFLAGS,;t t
5209 s,@LDFLAGS@,$LDFLAGS,;t t
5210 s,@CPPFLAGS@,$CPPFLAGS,;t t
5211 s,@ac_ct_CC@,$ac_ct_CC,;t t
5212 s,@EXEEXT@,$EXEEXT,;t t
5213 s,@OBJEXT@,$OBJEXT,;t t
5214 s,@build@,$build,;t t
5215 s,@build_cpu@,$build_cpu,;t t
5216 s,@build_vendor@,$build_vendor,;t t
5217 s,@build_os@,$build_os,;t t
5218 s,@host@,$host,;t t
5219 s,@host_cpu@,$host_cpu,;t t
5220 s,@host_vendor@,$host_vendor,;t t
5221 s,@host_os@,$host_os,;t t
5222 s,@target@,$target,;t t
5223 s,@target_cpu@,$target_cpu,;t t
5224 s,@target_vendor@,$target_vendor,;t t
5225 s,@target_os@,$target_os,;t t
5226 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5227 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5228 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5229 s,@CPP@,$CPP,;t t
5230 s,@EGREP@,$EGREP,;t t
5231 s,@LIBOBJS@,$LIBOBJS,;t t
5232 s,@PKGVERSION@,$PKGVERSION,;t t
5233 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
5234 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5235 s,@RDYNAMIC@,$RDYNAMIC,;t t
5236 s,@GDBSERVER_DEPFILES@,$GDBSERVER_DEPFILES,;t t
5237 s,@GDBSERVER_LIBS@,$GDBSERVER_LIBS,;t t
5238 s,@USE_THREAD_DB@,$USE_THREAD_DB,;t t
5239 s,@srv_xmlbuiltin@,$srv_xmlbuiltin,;t t
5240 s,@srv_xmlfiles@,$srv_xmlfiles,;t t
5241 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5242 CEOF
5243
5244 _ACEOF
5245
5246 cat >>$CONFIG_STATUS <<\_ACEOF
5247 # Split the substitutions into bite-sized pieces for seds with
5248 # small command number limits, like on Digital OSF/1 and HP-UX.
5249 ac_max_sed_lines=48
5250 ac_sed_frag=1 # Number of current file.
5251 ac_beg=1 # First line for current file.
5252 ac_end=$ac_max_sed_lines # Line after last line for current file.
5253 ac_more_lines=:
5254 ac_sed_cmds=
5255 while $ac_more_lines; do
5256 if test $ac_beg -gt 1; then
5257 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5258 else
5259 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5260 fi
5261 if test ! -s $tmp/subs.frag; then
5262 ac_more_lines=false
5263 else
5264 # The purpose of the label and of the branching condition is to
5265 # speed up the sed processing (if there are no `@' at all, there
5266 # is no need to browse any of the substitutions).
5267 # These are the two extra sed commands mentioned above.
5268 (echo ':t
5269 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5270 if test -z "$ac_sed_cmds"; then
5271 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5272 else
5273 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5274 fi
5275 ac_sed_frag=`expr $ac_sed_frag + 1`
5276 ac_beg=$ac_end
5277 ac_end=`expr $ac_end + $ac_max_sed_lines`
5278 fi
5279 done
5280 if test -z "$ac_sed_cmds"; then
5281 ac_sed_cmds=cat
5282 fi
5283 fi # test -n "$CONFIG_FILES"
5284
5285 _ACEOF
5286 cat >>$CONFIG_STATUS <<\_ACEOF
5287 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5288 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5289 case $ac_file in
5290 - | *:- | *:-:* ) # input from stdin
5291 cat >$tmp/stdin
5292 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5293 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5294 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5295 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5296 * ) ac_file_in=$ac_file.in ;;
5297 esac
5298
5299 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5300 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5301 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5302 X"$ac_file" : 'X\(//\)[^/]' \| \
5303 X"$ac_file" : 'X\(//\)$' \| \
5304 X"$ac_file" : 'X\(/\)' \| \
5305 . : '\(.\)' 2>/dev/null ||
5306 echo X"$ac_file" |
5307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5309 /^X\(\/\/\)$/{ s//\1/; q; }
5310 /^X\(\/\).*/{ s//\1/; q; }
5311 s/.*/./; q'`
5312 { if $as_mkdir_p; then
5313 mkdir -p "$ac_dir"
5314 else
5315 as_dir="$ac_dir"
5316 as_dirs=
5317 while test ! -d "$as_dir"; do
5318 as_dirs="$as_dir $as_dirs"
5319 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5321 X"$as_dir" : 'X\(//\)[^/]' \| \
5322 X"$as_dir" : 'X\(//\)$' \| \
5323 X"$as_dir" : 'X\(/\)' \| \
5324 . : '\(.\)' 2>/dev/null ||
5325 echo X"$as_dir" |
5326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5327 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5328 /^X\(\/\/\)$/{ s//\1/; q; }
5329 /^X\(\/\).*/{ s//\1/; q; }
5330 s/.*/./; q'`
5331 done
5332 test ! -n "$as_dirs" || mkdir $as_dirs
5333 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5334 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5335 { (exit 1); exit 1; }; }; }
5336
5337 ac_builddir=.
5338
5339 if test "$ac_dir" != .; then
5340 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5341 # A "../" for each directory in $ac_dir_suffix.
5342 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5343 else
5344 ac_dir_suffix= ac_top_builddir=
5345 fi
5346
5347 case $srcdir in
5348 .) # No --srcdir option. We are building in place.
5349 ac_srcdir=.
5350 if test -z "$ac_top_builddir"; then
5351 ac_top_srcdir=.
5352 else
5353 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5354 fi ;;
5355 [\\/]* | ?:[\\/]* ) # Absolute path.
5356 ac_srcdir=$srcdir$ac_dir_suffix;
5357 ac_top_srcdir=$srcdir ;;
5358 *) # Relative path.
5359 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5360 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5361 esac
5362
5363 # Do not use `cd foo && pwd` to compute absolute paths, because
5364 # the directories may not exist.
5365 case `pwd` in
5366 .) ac_abs_builddir="$ac_dir";;
5367 *)
5368 case "$ac_dir" in
5369 .) ac_abs_builddir=`pwd`;;
5370 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5371 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5372 esac;;
5373 esac
5374 case $ac_abs_builddir in
5375 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5376 *)
5377 case ${ac_top_builddir}. in
5378 .) ac_abs_top_builddir=$ac_abs_builddir;;
5379 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5380 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5381 esac;;
5382 esac
5383 case $ac_abs_builddir in
5384 .) ac_abs_srcdir=$ac_srcdir;;
5385 *)
5386 case $ac_srcdir in
5387 .) ac_abs_srcdir=$ac_abs_builddir;;
5388 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5389 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5390 esac;;
5391 esac
5392 case $ac_abs_builddir in
5393 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5394 *)
5395 case $ac_top_srcdir in
5396 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5397 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5398 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5399 esac;;
5400 esac
5401
5402
5403 case $INSTALL in
5404 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5405 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5406 esac
5407
5408 if test x"$ac_file" != x-; then
5409 { echo "$as_me:$LINENO: creating $ac_file" >&5
5410 echo "$as_me: creating $ac_file" >&6;}
5411 rm -f "$ac_file"
5412 fi
5413 # Let's still pretend it is `configure' which instantiates (i.e., don't
5414 # use $as_me), people would be surprised to read:
5415 # /* config.h. Generated by config.status. */
5416 if test x"$ac_file" = x-; then
5417 configure_input=
5418 else
5419 configure_input="$ac_file. "
5420 fi
5421 configure_input=$configure_input"Generated from `echo $ac_file_in |
5422 sed 's,.*/,,'` by configure."
5423
5424 # First look for the input files in the build tree, otherwise in the
5425 # src tree.
5426 ac_file_inputs=`IFS=:
5427 for f in $ac_file_in; do
5428 case $f in
5429 -) echo $tmp/stdin ;;
5430 [\\/$]*)
5431 # Absolute (can't be DOS-style, as IFS=:)
5432 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5433 echo "$as_me: error: cannot find input file: $f" >&2;}
5434 { (exit 1); exit 1; }; }
5435 echo "$f";;
5436 *) # Relative
5437 if test -f "$f"; then
5438 # Build tree
5439 echo "$f"
5440 elif test -f "$srcdir/$f"; then
5441 # Source tree
5442 echo "$srcdir/$f"
5443 else
5444 # /dev/null tree
5445 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5446 echo "$as_me: error: cannot find input file: $f" >&2;}
5447 { (exit 1); exit 1; }; }
5448 fi;;
5449 esac
5450 done` || { (exit 1); exit 1; }
5451 _ACEOF
5452 cat >>$CONFIG_STATUS <<_ACEOF
5453 sed "$ac_vpsub
5454 $extrasub
5455 _ACEOF
5456 cat >>$CONFIG_STATUS <<\_ACEOF
5457 :t
5458 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5459 s,@configure_input@,$configure_input,;t t
5460 s,@srcdir@,$ac_srcdir,;t t
5461 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5462 s,@top_srcdir@,$ac_top_srcdir,;t t
5463 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5464 s,@builddir@,$ac_builddir,;t t
5465 s,@abs_builddir@,$ac_abs_builddir,;t t
5466 s,@top_builddir@,$ac_top_builddir,;t t
5467 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5468 s,@INSTALL@,$ac_INSTALL,;t t
5469 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5470 rm -f $tmp/stdin
5471 if test x"$ac_file" != x-; then
5472 mv $tmp/out $ac_file
5473 else
5474 cat $tmp/out
5475 rm -f $tmp/out
5476 fi
5477
5478 done
5479 _ACEOF
5480 cat >>$CONFIG_STATUS <<\_ACEOF
5481
5482 #
5483 # CONFIG_HEADER section.
5484 #
5485
5486 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5487 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5488 #
5489 # ac_d sets the value in "#define NAME VALUE" lines.
5490 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5491 ac_dB='[ ].*$,\1#\2'
5492 ac_dC=' '
5493 ac_dD=',;t'
5494 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5495 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5496 ac_uB='$,\1#\2define\3'
5497 ac_uC=' '
5498 ac_uD=',;t'
5499
5500 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5501 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5502 case $ac_file in
5503 - | *:- | *:-:* ) # input from stdin
5504 cat >$tmp/stdin
5505 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5506 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5507 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5508 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5509 * ) ac_file_in=$ac_file.in ;;
5510 esac
5511
5512 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5513 echo "$as_me: creating $ac_file" >&6;}
5514
5515 # First look for the input files in the build tree, otherwise in the
5516 # src tree.
5517 ac_file_inputs=`IFS=:
5518 for f in $ac_file_in; do
5519 case $f in
5520 -) echo $tmp/stdin ;;
5521 [\\/$]*)
5522 # Absolute (can't be DOS-style, as IFS=:)
5523 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5524 echo "$as_me: error: cannot find input file: $f" >&2;}
5525 { (exit 1); exit 1; }; }
5526 # Do quote $f, to prevent DOS paths from being IFS'd.
5527 echo "$f";;
5528 *) # Relative
5529 if test -f "$f"; then
5530 # Build tree
5531 echo "$f"
5532 elif test -f "$srcdir/$f"; then
5533 # Source tree
5534 echo "$srcdir/$f"
5535 else
5536 # /dev/null tree
5537 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5538 echo "$as_me: error: cannot find input file: $f" >&2;}
5539 { (exit 1); exit 1; }; }
5540 fi;;
5541 esac
5542 done` || { (exit 1); exit 1; }
5543 # Remove the trailing spaces.
5544 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5545
5546 _ACEOF
5547
5548 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5549 # `conftest.undefs', that substitutes the proper values into
5550 # config.h.in to produce config.h. The first handles `#define'
5551 # templates, and the second `#undef' templates.
5552 # And first: Protect against being on the right side of a sed subst in
5553 # config.status. Protect against being in an unquoted here document
5554 # in config.status.
5555 rm -f conftest.defines conftest.undefs
5556 # Using a here document instead of a string reduces the quoting nightmare.
5557 # Putting comments in sed scripts is not portable.
5558 #
5559 # `end' is used to avoid that the second main sed command (meant for
5560 # 0-ary CPP macros) applies to n-ary macro definitions.
5561 # See the Autoconf documentation for `clear'.
5562 cat >confdef2sed.sed <<\_ACEOF
5563 s/[\\&,]/\\&/g
5564 s,[\\$`],\\&,g
5565 t clear
5566 : clear
5567 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5568 t end
5569 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5570 : end
5571 _ACEOF
5572 # If some macros were called several times there might be several times
5573 # the same #defines, which is useless. Nevertheless, we may not want to
5574 # sort them, since we want the *last* AC-DEFINE to be honored.
5575 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5576 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5577 rm -f confdef2sed.sed
5578
5579 # This sed command replaces #undef with comments. This is necessary, for
5580 # example, in the case of _POSIX_SOURCE, which is predefined and required
5581 # on some systems where configure will not decide to define it.
5582 cat >>conftest.undefs <<\_ACEOF
5583 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5584 _ACEOF
5585
5586 # Break up conftest.defines because some shells have a limit on the size
5587 # of here documents, and old seds have small limits too (100 cmds).
5588 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5589 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5590 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5591 echo ' :' >>$CONFIG_STATUS
5592 rm -f conftest.tail
5593 while grep . conftest.defines >/dev/null
5594 do
5595 # Write a limited-size here document to $tmp/defines.sed.
5596 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5597 # Speed up: don't consider the non `#define' lines.
5598 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5599 # Work around the forget-to-reset-the-flag bug.
5600 echo 't clr' >>$CONFIG_STATUS
5601 echo ': clr' >>$CONFIG_STATUS
5602 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5603 echo 'CEOF
5604 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5605 rm -f $tmp/in
5606 mv $tmp/out $tmp/in
5607 ' >>$CONFIG_STATUS
5608 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5609 rm -f conftest.defines
5610 mv conftest.tail conftest.defines
5611 done
5612 rm -f conftest.defines
5613 echo ' fi # grep' >>$CONFIG_STATUS
5614 echo >>$CONFIG_STATUS
5615
5616 # Break up conftest.undefs because some shells have a limit on the size
5617 # of here documents, and old seds have small limits too (100 cmds).
5618 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5619 rm -f conftest.tail
5620 while grep . conftest.undefs >/dev/null
5621 do
5622 # Write a limited-size here document to $tmp/undefs.sed.
5623 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5624 # Speed up: don't consider the non `#undef'
5625 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5626 # Work around the forget-to-reset-the-flag bug.
5627 echo 't clr' >>$CONFIG_STATUS
5628 echo ': clr' >>$CONFIG_STATUS
5629 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5630 echo 'CEOF
5631 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5632 rm -f $tmp/in
5633 mv $tmp/out $tmp/in
5634 ' >>$CONFIG_STATUS
5635 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5636 rm -f conftest.undefs
5637 mv conftest.tail conftest.undefs
5638 done
5639 rm -f conftest.undefs
5640
5641 cat >>$CONFIG_STATUS <<\_ACEOF
5642 # Let's still pretend it is `configure' which instantiates (i.e., don't
5643 # use $as_me), people would be surprised to read:
5644 # /* config.h. Generated by config.status. */
5645 if test x"$ac_file" = x-; then
5646 echo "/* Generated by configure. */" >$tmp/config.h
5647 else
5648 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5649 fi
5650 cat $tmp/in >>$tmp/config.h
5651 rm -f $tmp/in
5652 if test x"$ac_file" != x-; then
5653 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5654 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5655 echo "$as_me: $ac_file is unchanged" >&6;}
5656 else
5657 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5658 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5659 X"$ac_file" : 'X\(//\)[^/]' \| \
5660 X"$ac_file" : 'X\(//\)$' \| \
5661 X"$ac_file" : 'X\(/\)' \| \
5662 . : '\(.\)' 2>/dev/null ||
5663 echo X"$ac_file" |
5664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5665 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5666 /^X\(\/\/\)$/{ s//\1/; q; }
5667 /^X\(\/\).*/{ s//\1/; q; }
5668 s/.*/./; q'`
5669 { if $as_mkdir_p; then
5670 mkdir -p "$ac_dir"
5671 else
5672 as_dir="$ac_dir"
5673 as_dirs=
5674 while test ! -d "$as_dir"; do
5675 as_dirs="$as_dir $as_dirs"
5676 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5677 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5678 X"$as_dir" : 'X\(//\)[^/]' \| \
5679 X"$as_dir" : 'X\(//\)$' \| \
5680 X"$as_dir" : 'X\(/\)' \| \
5681 . : '\(.\)' 2>/dev/null ||
5682 echo X"$as_dir" |
5683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5685 /^X\(\/\/\)$/{ s//\1/; q; }
5686 /^X\(\/\).*/{ s//\1/; q; }
5687 s/.*/./; q'`
5688 done
5689 test ! -n "$as_dirs" || mkdir $as_dirs
5690 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5691 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5692 { (exit 1); exit 1; }; }; }
5693
5694 rm -f $ac_file
5695 mv $tmp/config.h $ac_file
5696 fi
5697 else
5698 cat $tmp/config.h
5699 rm -f $tmp/config.h
5700 fi
5701 done
5702 _ACEOF
5703 cat >>$CONFIG_STATUS <<\_ACEOF
5704
5705 #
5706 # CONFIG_COMMANDS section.
5707 #
5708 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5709 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5710 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5711 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5712 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5713 X"$ac_dest" : 'X\(//\)[^/]' \| \
5714 X"$ac_dest" : 'X\(//\)$' \| \
5715 X"$ac_dest" : 'X\(/\)' \| \
5716 . : '\(.\)' 2>/dev/null ||
5717 echo X"$ac_dest" |
5718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5720 /^X\(\/\/\)$/{ s//\1/; q; }
5721 /^X\(\/\).*/{ s//\1/; q; }
5722 s/.*/./; q'`
5723 { if $as_mkdir_p; then
5724 mkdir -p "$ac_dir"
5725 else
5726 as_dir="$ac_dir"
5727 as_dirs=
5728 while test ! -d "$as_dir"; do
5729 as_dirs="$as_dir $as_dirs"
5730 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5731 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5732 X"$as_dir" : 'X\(//\)[^/]' \| \
5733 X"$as_dir" : 'X\(//\)$' \| \
5734 X"$as_dir" : 'X\(/\)' \| \
5735 . : '\(.\)' 2>/dev/null ||
5736 echo X"$as_dir" |
5737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5739 /^X\(\/\/\)$/{ s//\1/; q; }
5740 /^X\(\/\).*/{ s//\1/; q; }
5741 s/.*/./; q'`
5742 done
5743 test ! -n "$as_dirs" || mkdir $as_dirs
5744 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5745 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5746 { (exit 1); exit 1; }; }; }
5747
5748 ac_builddir=.
5749
5750 if test "$ac_dir" != .; then
5751 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5752 # A "../" for each directory in $ac_dir_suffix.
5753 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5754 else
5755 ac_dir_suffix= ac_top_builddir=
5756 fi
5757
5758 case $srcdir in
5759 .) # No --srcdir option. We are building in place.
5760 ac_srcdir=.
5761 if test -z "$ac_top_builddir"; then
5762 ac_top_srcdir=.
5763 else
5764 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5765 fi ;;
5766 [\\/]* | ?:[\\/]* ) # Absolute path.
5767 ac_srcdir=$srcdir$ac_dir_suffix;
5768 ac_top_srcdir=$srcdir ;;
5769 *) # Relative path.
5770 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5771 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5772 esac
5773
5774 # Do not use `cd foo && pwd` to compute absolute paths, because
5775 # the directories may not exist.
5776 case `pwd` in
5777 .) ac_abs_builddir="$ac_dir";;
5778 *)
5779 case "$ac_dir" in
5780 .) ac_abs_builddir=`pwd`;;
5781 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5782 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5783 esac;;
5784 esac
5785 case $ac_abs_builddir in
5786 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5787 *)
5788 case ${ac_top_builddir}. in
5789 .) ac_abs_top_builddir=$ac_abs_builddir;;
5790 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5791 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5792 esac;;
5793 esac
5794 case $ac_abs_builddir in
5795 .) ac_abs_srcdir=$ac_srcdir;;
5796 *)
5797 case $ac_srcdir in
5798 .) ac_abs_srcdir=$ac_abs_builddir;;
5799 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5800 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5801 esac;;
5802 esac
5803 case $ac_abs_builddir in
5804 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5805 *)
5806 case $ac_top_srcdir in
5807 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5808 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5809 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5810 esac;;
5811 esac
5812
5813
5814 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5815 echo "$as_me: executing $ac_dest commands" >&6;}
5816 case $ac_dest in
5817 default ) case x$CONFIG_HEADERS in
5818 xconfig.h:config.in)
5819 echo > stamp-h ;;
5820 esac
5821 ;;
5822 esac
5823 done
5824 _ACEOF
5825
5826 cat >>$CONFIG_STATUS <<\_ACEOF
5827
5828 { (exit 0); exit 0; }
5829 _ACEOF
5830 chmod +x $CONFIG_STATUS
5831 ac_clean_files=$ac_clean_files_save
5832
5833
5834 # configure is writing to config.log, and then calls config.status.
5835 # config.status does its own redirection, appending to config.log.
5836 # Unfortunately, on DOS this fails, as config.log is still kept open
5837 # by configure, so config.status won't be able to write to it; its
5838 # output is simply discarded. So we exec the FD to /dev/null,
5839 # effectively closing config.log, so it can be properly (re)opened and
5840 # appended to by config.status. When coming back to configure, we
5841 # need to make the FD available again.
5842 if test "$no_create" != yes; then
5843 ac_cs_success=:
5844 ac_config_status_args=
5845 test "$silent" = yes &&
5846 ac_config_status_args="$ac_config_status_args --quiet"
5847 exec 5>/dev/null
5848 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5849 exec 5>>config.log
5850 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5851 # would make configure fail if this is the last instruction.
5852 $ac_cs_success || { (exit 1); exit 1; }
5853 fi
5854
This page took 0.163324 seconds and 4 git commands to generate.