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