debuggers.hg

view tools/gdb/gdb-6.2.1-xen-sparse/gdb/gdbserver/configure @ 4627:6b0edacf8b40

bitkeeper revision 1.1337 (426630b2jBKjnL7WBIWHGPtgL50rqg)

[PATCH] [PATCH] gdbserver minor build fixes

gdb-6.2.1-xen-sparse/gdb/gdbserver/configure | 2 +-
gdb-6.2.1-xen-sparse/gdb/gdbserver/configure.in | 2 +-
gdbbuild | 16 ++++++++++++----
3 files changed, 14 insertions(+), 6 deletions(-)

More cleanups are possible, I'll send those at a later stage.
author cw@f00f.org[kaf24]
date Wed Apr 20 10:36:34 2005 +0000 (2005-04-20)
parents a01199a95070
children 3615dfd94bdb 9f22db685802
line source
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -n "`(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
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
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
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
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
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
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; }; }
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 }
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
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
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
222 fi
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
273 ac_unique_file="server.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
311 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 GDBSERVER_DEPFILES GDBSERVER_LIBS USE_THREAD_DB LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
354 do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
648 esac
649 done
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655 fi
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671 do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696 fi
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724 else
725 ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800 _ACEOF
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
831 cat <<\_ACEOF
833 System types:
834 --build=BUILD configure for building on BUILD [guessed]
835 --host=HOST cross-compile to build programs to run on HOST [BUILD]
836 --target=TARGET configure for building compilers for TARGET [HOST]
837 _ACEOF
838 fi
840 if test -n "$ac_init_help"; then
842 cat <<\_ACEOF
844 Some influential environment variables:
845 CC C compiler command
846 CFLAGS C compiler flags
847 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
848 nonstandard directory <lib dir>
849 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
850 headers in a nonstandard directory <include dir>
851 CPP C preprocessor
853 Use these variables to override the choices made by `configure' or to help
854 it to find libraries and programs with nonstandard names/locations.
856 _ACEOF
857 fi
859 if test "$ac_init_help" = "recursive"; then
860 # If there are subdirs, report their specific --help.
861 ac_popdir=`pwd`
862 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
863 test -d $ac_dir || continue
864 ac_builddir=.
866 if test "$ac_dir" != .; then
867 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
868 # A "../" for each directory in $ac_dir_suffix.
869 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
870 else
871 ac_dir_suffix= ac_top_builddir=
872 fi
874 case $srcdir in
875 .) # No --srcdir option. We are building in place.
876 ac_srcdir=.
877 if test -z "$ac_top_builddir"; then
878 ac_top_srcdir=.
879 else
880 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
881 fi ;;
882 [\\/]* | ?:[\\/]* ) # Absolute path.
883 ac_srcdir=$srcdir$ac_dir_suffix;
884 ac_top_srcdir=$srcdir ;;
885 *) # Relative path.
886 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
887 ac_top_srcdir=$ac_top_builddir$srcdir ;;
888 esac
889 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
890 # absolute.
891 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
892 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
893 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
894 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
896 cd $ac_dir
897 # Check for guested configure; otherwise get Cygnus style configure.
898 if test -f $ac_srcdir/configure.gnu; then
899 echo
900 $SHELL $ac_srcdir/configure.gnu --help=recursive
901 elif test -f $ac_srcdir/configure; then
902 echo
903 $SHELL $ac_srcdir/configure --help=recursive
904 elif test -f $ac_srcdir/configure.ac ||
905 test -f $ac_srcdir/configure.in; then
906 echo
907 $ac_configure --help
908 else
909 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
910 fi
911 cd $ac_popdir
912 done
913 fi
915 test -n "$ac_init_help" && exit 0
916 if $ac_init_version; then
917 cat <<\_ACEOF
919 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
920 Free Software Foundation, Inc.
921 This configure script is free software; the Free Software Foundation
922 gives unlimited permission to copy, distribute and modify it.
923 _ACEOF
924 exit 0
925 fi
926 exec 5>config.log
927 cat >&5 <<_ACEOF
928 This file contains any messages produced by compilers while
929 running configure, to aid debugging if configure makes a mistake.
931 It was created by $as_me, which was
932 generated by GNU Autoconf 2.57. Invocation command line was
934 $ $0 $@
936 _ACEOF
937 {
938 cat <<_ASUNAME
939 ## --------- ##
940 ## Platform. ##
941 ## --------- ##
943 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
944 uname -m = `(uname -m) 2>/dev/null || echo unknown`
945 uname -r = `(uname -r) 2>/dev/null || echo unknown`
946 uname -s = `(uname -s) 2>/dev/null || echo unknown`
947 uname -v = `(uname -v) 2>/dev/null || echo unknown`
949 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
950 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
952 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
953 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
954 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
955 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
956 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
957 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
958 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
960 _ASUNAME
962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
963 for as_dir in $PATH
964 do
965 IFS=$as_save_IFS
966 test -z "$as_dir" && as_dir=.
967 echo "PATH: $as_dir"
968 done
970 } >&5
972 cat >&5 <<_ACEOF
975 ## ----------- ##
976 ## Core tests. ##
977 ## ----------- ##
979 _ACEOF
982 # Keep a trace of the command line.
983 # Strip out --no-create and --no-recursion so they do not pile up.
984 # Strip out --silent because we don't want to record it for future runs.
985 # Also quote any args containing shell meta-characters.
986 # Make two passes to allow for proper duplicate-argument suppression.
987 ac_configure_args=
988 ac_configure_args0=
989 ac_configure_args1=
990 ac_sep=
991 ac_must_keep_next=false
992 for ac_pass in 1 2
993 do
994 for ac_arg
995 do
996 case $ac_arg in
997 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
999 | -silent | --silent | --silen | --sile | --sil)
1000 continue ;;
1001 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1002 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1003 esac
1004 case $ac_pass in
1005 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1006 2)
1007 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1008 if test $ac_must_keep_next = true; then
1009 ac_must_keep_next=false # Got value, back to normal.
1010 else
1011 case $ac_arg in
1012 *=* | --config-cache | -C | -disable-* | --disable-* \
1013 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1014 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1015 | -with-* | --with-* | -without-* | --without-* | --x)
1016 case "$ac_configure_args0 " in
1017 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1018 esac
1019 ;;
1020 -* ) ac_must_keep_next=true ;;
1021 esac
1022 fi
1023 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1024 # Get rid of the leading space.
1025 ac_sep=" "
1026 ;;
1027 esac
1028 done
1029 done
1030 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1031 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1033 # When interrupted or exit'd, cleanup temporary files, and complete
1034 # config.log. We remove comments because anyway the quotes in there
1035 # would cause problems or look ugly.
1036 # WARNING: Be sure not to use single quotes in there, as some shells,
1037 # such as our DU 5.0 friend, will then `close' the trap.
1038 trap 'exit_status=$?
1039 # Save into config.log some information that might help in debugging.
1041 echo
1043 cat <<\_ASBOX
1044 ## ---------------- ##
1045 ## Cache variables. ##
1046 ## ---------------- ##
1047 _ASBOX
1048 echo
1049 # The following way of writing the cache mishandles newlines in values,
1051 (set) 2>&1 |
1052 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1053 *ac_space=\ *)
1054 sed -n \
1055 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1057 ;;
1058 *)
1059 sed -n \
1060 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1061 ;;
1062 esac;
1064 echo
1066 cat <<\_ASBOX
1067 ## ----------------- ##
1068 ## Output variables. ##
1069 ## ----------------- ##
1070 _ASBOX
1071 echo
1072 for ac_var in $ac_subst_vars
1073 do
1074 eval ac_val=$`echo $ac_var`
1075 echo "$ac_var='"'"'$ac_val'"'"'"
1076 done | sort
1077 echo
1079 if test -n "$ac_subst_files"; then
1080 cat <<\_ASBOX
1081 ## ------------- ##
1082 ## Output files. ##
1083 ## ------------- ##
1084 _ASBOX
1085 echo
1086 for ac_var in $ac_subst_files
1087 do
1088 eval ac_val=$`echo $ac_var`
1089 echo "$ac_var='"'"'$ac_val'"'"'"
1090 done | sort
1091 echo
1092 fi
1094 if test -s confdefs.h; then
1095 cat <<\_ASBOX
1096 ## ----------- ##
1097 ## confdefs.h. ##
1098 ## ----------- ##
1099 _ASBOX
1100 echo
1101 sed "/^$/d" confdefs.h | sort
1102 echo
1103 fi
1104 test "$ac_signal" != 0 &&
1105 echo "$as_me: caught signal $ac_signal"
1106 echo "$as_me: exit $exit_status"
1107 } >&5
1108 rm -f core core.* *.core &&
1109 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1110 exit $exit_status
1111 ' 0
1112 for ac_signal in 1 2 13 15; do
1113 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1114 done
1115 ac_signal=0
1117 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1118 rm -rf conftest* confdefs.h
1119 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1120 echo >confdefs.h
1122 # Predefined preprocessor variables.
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_NAME "$PACKAGE_NAME"
1126 _ACEOF
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1131 _ACEOF
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1136 _ACEOF
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_STRING "$PACKAGE_STRING"
1141 _ACEOF
1144 cat >>confdefs.h <<_ACEOF
1145 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1146 _ACEOF
1149 # Let the site file select an alternate cache file if it wants to.
1150 # Prefer explicitly selected file to automatically selected ones.
1151 if test -z "$CONFIG_SITE"; then
1152 if test "x$prefix" != xNONE; then
1153 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1154 else
1155 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1156 fi
1157 fi
1158 for ac_site_file in $CONFIG_SITE; do
1159 if test -r "$ac_site_file"; then
1160 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1161 echo "$as_me: loading site script $ac_site_file" >&6;}
1162 sed 's/^/| /' "$ac_site_file" >&5
1163 . "$ac_site_file"
1164 fi
1165 done
1167 if test -r "$cache_file"; then
1168 # Some versions of bash will fail to source /dev/null (special
1169 # files actually), so we avoid doing that.
1170 if test -f "$cache_file"; then
1171 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1172 echo "$as_me: loading cache $cache_file" >&6;}
1173 case $cache_file in
1174 [\\/]* | ?:[\\/]* ) . $cache_file;;
1175 *) . ./$cache_file;;
1176 esac
1177 fi
1178 else
1179 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1180 echo "$as_me: creating cache $cache_file" >&6;}
1181 >$cache_file
1182 fi
1184 # Check that the precious variables saved in the cache have kept the same
1185 # value.
1186 ac_cache_corrupted=false
1187 for ac_var in `(set) 2>&1 |
1188 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1189 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1190 eval ac_new_set=\$ac_env_${ac_var}_set
1191 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1192 eval ac_new_val="\$ac_env_${ac_var}_value"
1193 case $ac_old_set,$ac_new_set in
1194 set,)
1195 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1196 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1197 ac_cache_corrupted=: ;;
1198 ,set)
1199 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1200 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1201 ac_cache_corrupted=: ;;
1202 ,);;
1203 *)
1204 if test "x$ac_old_val" != "x$ac_new_val"; then
1205 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1206 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1207 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1208 echo "$as_me: former value: $ac_old_val" >&2;}
1209 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1210 echo "$as_me: current value: $ac_new_val" >&2;}
1211 ac_cache_corrupted=:
1212 fi;;
1213 esac
1214 # Pass precious variables to config.status.
1215 if test "$ac_new_set" = set; then
1216 case $ac_new_val in
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 *) ac_arg=$ac_var=$ac_new_val ;;
1220 esac
1221 case " $ac_configure_args " in
1222 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1223 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1224 esac
1225 fi
1226 done
1227 if $ac_cache_corrupted; then
1228 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1229 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1230 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1231 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1232 { (exit 1); exit 1; }; }
1233 fi
1235 ac_ext=c
1236 ac_cpp='$CPP $CPPFLAGS'
1237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1259 ac_config_headers="$ac_config_headers config.h:config.in"
1262 ac_ext=c
1263 ac_cpp='$CPP $CPPFLAGS'
1264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1267 if test -n "$ac_tool_prefix"; then
1268 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1269 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1270 echo "$as_me:$LINENO: checking for $ac_word" >&5
1271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1272 if test "${ac_cv_prog_CC+set}" = set; then
1273 echo $ECHO_N "(cached) $ECHO_C" >&6
1274 else
1275 if test -n "$CC"; then
1276 ac_cv_prog_CC="$CC" # Let the user override the test.
1277 else
1278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1279 for as_dir in $PATH
1280 do
1281 IFS=$as_save_IFS
1282 test -z "$as_dir" && as_dir=.
1283 for ac_exec_ext in '' $ac_executable_extensions; do
1284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1285 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1287 break 2
1288 fi
1289 done
1290 done
1292 fi
1293 fi
1294 CC=$ac_cv_prog_CC
1295 if test -n "$CC"; then
1296 echo "$as_me:$LINENO: result: $CC" >&5
1297 echo "${ECHO_T}$CC" >&6
1298 else
1299 echo "$as_me:$LINENO: result: no" >&5
1300 echo "${ECHO_T}no" >&6
1301 fi
1303 fi
1304 if test -z "$ac_cv_prog_CC"; then
1305 ac_ct_CC=$CC
1306 # Extract the first word of "gcc", so it can be a program name with args.
1307 set dummy gcc; ac_word=$2
1308 echo "$as_me:$LINENO: checking for $ac_word" >&5
1309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1310 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1311 echo $ECHO_N "(cached) $ECHO_C" >&6
1312 else
1313 if test -n "$ac_ct_CC"; then
1314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1315 else
1316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1317 for as_dir in $PATH
1318 do
1319 IFS=$as_save_IFS
1320 test -z "$as_dir" && as_dir=.
1321 for ac_exec_ext in '' $ac_executable_extensions; do
1322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1323 ac_cv_prog_ac_ct_CC="gcc"
1324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1325 break 2
1326 fi
1327 done
1328 done
1330 fi
1331 fi
1332 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1333 if test -n "$ac_ct_CC"; then
1334 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1335 echo "${ECHO_T}$ac_ct_CC" >&6
1336 else
1337 echo "$as_me:$LINENO: result: no" >&5
1338 echo "${ECHO_T}no" >&6
1339 fi
1341 CC=$ac_ct_CC
1342 else
1343 CC="$ac_cv_prog_CC"
1344 fi
1346 if test -z "$CC"; then
1347 if test -n "$ac_tool_prefix"; then
1348 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1349 set dummy ${ac_tool_prefix}cc; ac_word=$2
1350 echo "$as_me:$LINENO: checking for $ac_word" >&5
1351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1352 if test "${ac_cv_prog_CC+set}" = set; then
1353 echo $ECHO_N "(cached) $ECHO_C" >&6
1354 else
1355 if test -n "$CC"; then
1356 ac_cv_prog_CC="$CC" # Let the user override the test.
1357 else
1358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1359 for as_dir in $PATH
1360 do
1361 IFS=$as_save_IFS
1362 test -z "$as_dir" && as_dir=.
1363 for ac_exec_ext in '' $ac_executable_extensions; do
1364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1365 ac_cv_prog_CC="${ac_tool_prefix}cc"
1366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1367 break 2
1368 fi
1369 done
1370 done
1372 fi
1373 fi
1374 CC=$ac_cv_prog_CC
1375 if test -n "$CC"; then
1376 echo "$as_me:$LINENO: result: $CC" >&5
1377 echo "${ECHO_T}$CC" >&6
1378 else
1379 echo "$as_me:$LINENO: result: no" >&5
1380 echo "${ECHO_T}no" >&6
1381 fi
1383 fi
1384 if test -z "$ac_cv_prog_CC"; then
1385 ac_ct_CC=$CC
1386 # Extract the first word of "cc", so it can be a program name with args.
1387 set dummy cc; ac_word=$2
1388 echo "$as_me:$LINENO: checking for $ac_word" >&5
1389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1392 else
1393 if test -n "$ac_ct_CC"; then
1394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1395 else
1396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397 for as_dir in $PATH
1398 do
1399 IFS=$as_save_IFS
1400 test -z "$as_dir" && as_dir=.
1401 for ac_exec_ext in '' $ac_executable_extensions; do
1402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1403 ac_cv_prog_ac_ct_CC="cc"
1404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1405 break 2
1406 fi
1407 done
1408 done
1410 fi
1411 fi
1412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1413 if test -n "$ac_ct_CC"; then
1414 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1415 echo "${ECHO_T}$ac_ct_CC" >&6
1416 else
1417 echo "$as_me:$LINENO: result: no" >&5
1418 echo "${ECHO_T}no" >&6
1419 fi
1421 CC=$ac_ct_CC
1422 else
1423 CC="$ac_cv_prog_CC"
1424 fi
1426 fi
1427 if test -z "$CC"; then
1428 # Extract the first word of "cc", so it can be a program name with args.
1429 set dummy cc; ac_word=$2
1430 echo "$as_me:$LINENO: checking for $ac_word" >&5
1431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432 if test "${ac_cv_prog_CC+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 else
1435 if test -n "$CC"; then
1436 ac_cv_prog_CC="$CC" # Let the user override the test.
1437 else
1438 ac_prog_rejected=no
1439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1440 for as_dir in $PATH
1441 do
1442 IFS=$as_save_IFS
1443 test -z "$as_dir" && as_dir=.
1444 for ac_exec_ext in '' $ac_executable_extensions; do
1445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1446 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1447 ac_prog_rejected=yes
1448 continue
1449 fi
1450 ac_cv_prog_CC="cc"
1451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1452 break 2
1453 fi
1454 done
1455 done
1457 if test $ac_prog_rejected = yes; then
1458 # We found a bogon in the path, so make sure we never use it.
1459 set dummy $ac_cv_prog_CC
1460 shift
1461 if test $# != 0; then
1462 # We chose a different compiler from the bogus one.
1463 # However, it has the same basename, so the bogon will be chosen
1464 # first if we set CC to just the basename; use the full file name.
1465 shift
1466 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1467 fi
1468 fi
1469 fi
1470 fi
1471 CC=$ac_cv_prog_CC
1472 if test -n "$CC"; then
1473 echo "$as_me:$LINENO: result: $CC" >&5
1474 echo "${ECHO_T}$CC" >&6
1475 else
1476 echo "$as_me:$LINENO: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1478 fi
1480 fi
1481 if test -z "$CC"; then
1482 if test -n "$ac_tool_prefix"; then
1483 for ac_prog in cl
1484 do
1485 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1486 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1487 echo "$as_me:$LINENO: checking for $ac_word" >&5
1488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1489 if test "${ac_cv_prog_CC+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
1491 else
1492 if test -n "$CC"; then
1493 ac_cv_prog_CC="$CC" # Let the user override the test.
1494 else
1495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496 for as_dir in $PATH
1497 do
1498 IFS=$as_save_IFS
1499 test -z "$as_dir" && as_dir=.
1500 for ac_exec_ext in '' $ac_executable_extensions; do
1501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1502 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1504 break 2
1505 fi
1506 done
1507 done
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
1520 test -n "$CC" && break
1521 done
1522 fi
1523 if test -z "$CC"; then
1524 ac_ct_CC=$CC
1525 for ac_prog in cl
1526 do
1527 # Extract the first word of "$ac_prog", so it can be a program name with args.
1528 set dummy $ac_prog; ac_word=$2
1529 echo "$as_me:$LINENO: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 else
1534 if test -n "$ac_ct_CC"; then
1535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1536 else
1537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538 for as_dir in $PATH
1539 do
1540 IFS=$as_save_IFS
1541 test -z "$as_dir" && as_dir=.
1542 for ac_exec_ext in '' $ac_executable_extensions; do
1543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544 ac_cv_prog_ac_ct_CC="$ac_prog"
1545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1546 break 2
1547 fi
1548 done
1549 done
1551 fi
1552 fi
1553 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1554 if test -n "$ac_ct_CC"; then
1555 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1556 echo "${ECHO_T}$ac_ct_CC" >&6
1557 else
1558 echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1560 fi
1562 test -n "$ac_ct_CC" && break
1563 done
1565 CC=$ac_ct_CC
1566 fi
1568 fi
1571 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1572 See \`config.log' for more details." >&5
1573 echo "$as_me: error: no acceptable C compiler found in \$PATH
1574 See \`config.log' for more details." >&2;}
1575 { (exit 1); exit 1; }; }
1577 # Provide some information about the compiler.
1578 echo "$as_me:$LINENO:" \
1579 "checking for C compiler version" >&5
1580 ac_compiler=`set X $ac_compile; echo $2`
1581 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1582 (eval $ac_compiler --version </dev/null >&5) 2>&5
1583 ac_status=$?
1584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1585 (exit $ac_status); }
1586 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1587 (eval $ac_compiler -v </dev/null >&5) 2>&5
1588 ac_status=$?
1589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1590 (exit $ac_status); }
1591 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1592 (eval $ac_compiler -V </dev/null >&5) 2>&5
1593 ac_status=$?
1594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1595 (exit $ac_status); }
1597 cat >conftest.$ac_ext <<_ACEOF
1598 #line $LINENO "configure"
1599 /* confdefs.h. */
1600 _ACEOF
1601 cat confdefs.h >>conftest.$ac_ext
1602 cat >>conftest.$ac_ext <<_ACEOF
1603 /* end confdefs.h. */
1605 int
1606 main ()
1610 return 0;
1612 _ACEOF
1613 ac_clean_files_save=$ac_clean_files
1614 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1615 # Try to create an executable without -o first, disregard a.out.
1616 # It will help us diagnose broken compilers, and finding out an intuition
1617 # of exeext.
1618 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1619 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1620 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1621 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1622 (eval $ac_link_default) 2>&5
1623 ac_status=$?
1624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1625 (exit $ac_status); }; then
1626 # Find the output, starting from the most likely. This scheme is
1627 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1628 # resort.
1630 # Be careful to initialize this variable, since it used to be cached.
1631 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1632 ac_cv_exeext=
1633 # b.out is created by i960 compilers.
1634 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1635 do
1636 test -f "$ac_file" || continue
1637 case $ac_file in
1638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1639 ;;
1640 conftest.$ac_ext )
1641 # This is the source file.
1642 ;;
1643 [ab].out )
1644 # We found the default executable, but exeext='' is most
1645 # certainly right.
1646 break;;
1647 *.* )
1648 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1649 # FIXME: I believe we export ac_cv_exeext for Libtool,
1650 # but it would be cool to find out if it's true. Does anybody
1651 # maintain Libtool? --akim.
1652 export ac_cv_exeext
1653 break;;
1654 * )
1655 break;;
1656 esac
1657 done
1658 else
1659 echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1662 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1663 See \`config.log' for more details." >&5
1664 echo "$as_me: error: C compiler cannot create executables
1665 See \`config.log' for more details." >&2;}
1666 { (exit 77); exit 77; }; }
1667 fi
1669 ac_exeext=$ac_cv_exeext
1670 echo "$as_me:$LINENO: result: $ac_file" >&5
1671 echo "${ECHO_T}$ac_file" >&6
1673 # Check the compiler produces executables we can run. If not, either
1674 # the compiler is broken, or we cross compile.
1675 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1676 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1677 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1678 # If not cross compiling, check that we can run a simple program.
1679 if test "$cross_compiling" != yes; then
1680 if { ac_try='./$ac_file'
1681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1682 (eval $ac_try) 2>&5
1683 ac_status=$?
1684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1685 (exit $ac_status); }; }; then
1686 cross_compiling=no
1687 else
1688 if test "$cross_compiling" = maybe; then
1689 cross_compiling=yes
1690 else
1691 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1692 If you meant to cross compile, use \`--host'.
1693 See \`config.log' for more details." >&5
1694 echo "$as_me: error: cannot run C compiled programs.
1695 If you meant to cross compile, use \`--host'.
1696 See \`config.log' for more details." >&2;}
1697 { (exit 1); exit 1; }; }
1698 fi
1699 fi
1700 fi
1701 echo "$as_me:$LINENO: result: yes" >&5
1702 echo "${ECHO_T}yes" >&6
1704 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1705 ac_clean_files=$ac_clean_files_save
1706 # Check the compiler produces executables we can run. If not, either
1707 # the compiler is broken, or we cross compile.
1708 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1709 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1710 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1711 echo "${ECHO_T}$cross_compiling" >&6
1713 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1714 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1716 (eval $ac_link) 2>&5
1717 ac_status=$?
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }; then
1720 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1721 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1722 # work properly (i.e., refer to `conftest.exe'), while it won't with
1723 # `rm'.
1724 for ac_file in conftest.exe conftest conftest.*; do
1725 test -f "$ac_file" || continue
1726 case $ac_file in
1727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1728 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1729 export ac_cv_exeext
1730 break;;
1731 * ) break;;
1732 esac
1733 done
1734 else
1735 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1736 See \`config.log' for more details." >&5
1737 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1738 See \`config.log' for more details." >&2;}
1739 { (exit 1); exit 1; }; }
1740 fi
1742 rm -f conftest$ac_cv_exeext
1743 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1744 echo "${ECHO_T}$ac_cv_exeext" >&6
1746 rm -f conftest.$ac_ext
1747 EXEEXT=$ac_cv_exeext
1748 ac_exeext=$EXEEXT
1749 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1750 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1751 if test "${ac_cv_objext+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 else
1754 cat >conftest.$ac_ext <<_ACEOF
1755 #line $LINENO "configure"
1756 /* confdefs.h. */
1757 _ACEOF
1758 cat confdefs.h >>conftest.$ac_ext
1759 cat >>conftest.$ac_ext <<_ACEOF
1760 /* end confdefs.h. */
1762 int
1763 main ()
1767 return 0;
1769 _ACEOF
1770 rm -f conftest.o conftest.obj
1771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1772 (eval $ac_compile) 2>&5
1773 ac_status=$?
1774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1775 (exit $ac_status); }; then
1776 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1777 case $ac_file in
1778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1779 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1780 break;;
1781 esac
1782 done
1783 else
1784 echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1787 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1788 See \`config.log' for more details." >&5
1789 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1790 See \`config.log' for more details." >&2;}
1791 { (exit 1); exit 1; }; }
1792 fi
1794 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1795 fi
1796 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1797 echo "${ECHO_T}$ac_cv_objext" >&6
1798 OBJEXT=$ac_cv_objext
1799 ac_objext=$OBJEXT
1800 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1801 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1802 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 else
1805 cat >conftest.$ac_ext <<_ACEOF
1806 #line $LINENO "configure"
1807 /* confdefs.h. */
1808 _ACEOF
1809 cat confdefs.h >>conftest.$ac_ext
1810 cat >>conftest.$ac_ext <<_ACEOF
1811 /* end confdefs.h. */
1813 int
1814 main ()
1816 #ifndef __GNUC__
1817 choke me
1818 #endif
1821 return 0;
1823 _ACEOF
1824 rm -f conftest.$ac_objext
1825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1826 (eval $ac_compile) 2>&5
1827 ac_status=$?
1828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1829 (exit $ac_status); } &&
1830 { ac_try='test -s conftest.$ac_objext'
1831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1832 (eval $ac_try) 2>&5
1833 ac_status=$?
1834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835 (exit $ac_status); }; }; then
1836 ac_compiler_gnu=yes
1837 else
1838 echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1841 ac_compiler_gnu=no
1842 fi
1843 rm -f conftest.$ac_objext conftest.$ac_ext
1844 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1846 fi
1847 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1848 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1849 GCC=`test $ac_compiler_gnu = yes && echo yes`
1850 ac_test_CFLAGS=${CFLAGS+set}
1851 ac_save_CFLAGS=$CFLAGS
1852 CFLAGS="-g"
1853 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1854 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1855 if test "${ac_cv_prog_cc_g+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 else
1858 cat >conftest.$ac_ext <<_ACEOF
1859 #line $LINENO "configure"
1860 /* confdefs.h. */
1861 _ACEOF
1862 cat confdefs.h >>conftest.$ac_ext
1863 cat >>conftest.$ac_ext <<_ACEOF
1864 /* end confdefs.h. */
1866 int
1867 main ()
1871 return 0;
1873 _ACEOF
1874 rm -f conftest.$ac_objext
1875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1876 (eval $ac_compile) 2>&5
1877 ac_status=$?
1878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879 (exit $ac_status); } &&
1880 { ac_try='test -s conftest.$ac_objext'
1881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1882 (eval $ac_try) 2>&5
1883 ac_status=$?
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; }; then
1886 ac_cv_prog_cc_g=yes
1887 else
1888 echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1891 ac_cv_prog_cc_g=no
1892 fi
1893 rm -f conftest.$ac_objext conftest.$ac_ext
1894 fi
1895 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1896 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1897 if test "$ac_test_CFLAGS" = set; then
1898 CFLAGS=$ac_save_CFLAGS
1899 elif test $ac_cv_prog_cc_g = yes; then
1900 if test "$GCC" = yes; then
1901 CFLAGS="-g -O2"
1902 else
1903 CFLAGS="-g"
1904 fi
1905 else
1906 if test "$GCC" = yes; then
1907 CFLAGS="-O2"
1908 else
1909 CFLAGS=
1910 fi
1911 fi
1912 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1913 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1914 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 ac_cv_prog_cc_stdc=no
1918 ac_save_CC=$CC
1919 cat >conftest.$ac_ext <<_ACEOF
1920 #line $LINENO "configure"
1921 /* confdefs.h. */
1922 _ACEOF
1923 cat confdefs.h >>conftest.$ac_ext
1924 cat >>conftest.$ac_ext <<_ACEOF
1925 /* end confdefs.h. */
1926 #include <stdarg.h>
1927 #include <stdio.h>
1928 #include <sys/types.h>
1929 #include <sys/stat.h>
1930 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1931 struct buf { int x; };
1932 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1933 static char *e (p, i)
1934 char **p;
1935 int i;
1937 return p[i];
1939 static char *f (char * (*g) (char **, int), char **p, ...)
1941 char *s;
1942 va_list v;
1943 va_start (v,p);
1944 s = g (p, va_arg (v,int));
1945 va_end (v);
1946 return s;
1948 int test (int i, double x);
1949 struct s1 {int (*f) (int a);};
1950 struct s2 {int (*f) (double a);};
1951 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1952 int argc;
1953 char **argv;
1954 int
1955 main ()
1957 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1959 return 0;
1961 _ACEOF
1962 # Don't try gcc -ansi; that turns off useful extensions and
1963 # breaks some systems' header files.
1964 # AIX -qlanglvl=ansi
1965 # Ultrix and OSF/1 -std1
1966 # HP-UX 10.20 and later -Ae
1967 # HP-UX older versions -Aa -D_HPUX_SOURCE
1968 # SVR4 -Xc -D__EXTENSIONS__
1969 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1970 do
1971 CC="$ac_save_CC $ac_arg"
1972 rm -f conftest.$ac_objext
1973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1974 (eval $ac_compile) 2>&5
1975 ac_status=$?
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); } &&
1978 { ac_try='test -s conftest.$ac_objext'
1979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1980 (eval $ac_try) 2>&5
1981 ac_status=$?
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }; }; then
1984 ac_cv_prog_cc_stdc=$ac_arg
1985 break
1986 else
1987 echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1990 fi
1991 rm -f conftest.$ac_objext
1992 done
1993 rm -f conftest.$ac_ext conftest.$ac_objext
1994 CC=$ac_save_CC
1996 fi
1998 case "x$ac_cv_prog_cc_stdc" in
1999 x|xno)
2000 echo "$as_me:$LINENO: result: none needed" >&5
2001 echo "${ECHO_T}none needed" >&6 ;;
2002 *)
2003 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2004 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2005 CC="$CC $ac_cv_prog_cc_stdc" ;;
2006 esac
2008 # Some people use a C++ compiler to compile C. Since we use `exit',
2009 # in C++ we need to declare it. In case someone uses the same compiler
2010 # for both compiling C and C++ we need to have the C++ compiler decide
2011 # the declaration of exit, since it's the most demanding environment.
2012 cat >conftest.$ac_ext <<_ACEOF
2013 #ifndef __cplusplus
2014 choke me
2015 #endif
2016 _ACEOF
2017 rm -f conftest.$ac_objext
2018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019 (eval $ac_compile) 2>&5
2020 ac_status=$?
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); } &&
2023 { ac_try='test -s conftest.$ac_objext'
2024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2025 (eval $ac_try) 2>&5
2026 ac_status=$?
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }; }; then
2029 for ac_declaration in \
2030 ''\
2031 '#include <stdlib.h>' \
2032 'extern "C" void std::exit (int) throw (); using std::exit;' \
2033 'extern "C" void std::exit (int); using std::exit;' \
2034 'extern "C" void exit (int) throw ();' \
2035 'extern "C" void exit (int);' \
2036 'void exit (int);'
2037 do
2038 cat >conftest.$ac_ext <<_ACEOF
2039 #line $LINENO "configure"
2040 /* confdefs.h. */
2041 _ACEOF
2042 cat confdefs.h >>conftest.$ac_ext
2043 cat >>conftest.$ac_ext <<_ACEOF
2044 /* end confdefs.h. */
2045 #include <stdlib.h>
2046 $ac_declaration
2047 int
2048 main ()
2050 exit (42);
2052 return 0;
2054 _ACEOF
2055 rm -f conftest.$ac_objext
2056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2057 (eval $ac_compile) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); } &&
2061 { ac_try='test -s conftest.$ac_objext'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 (eval $ac_try) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; }; then
2068 else
2069 echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2072 continue
2073 fi
2074 rm -f conftest.$ac_objext conftest.$ac_ext
2075 cat >conftest.$ac_ext <<_ACEOF
2076 #line $LINENO "configure"
2077 /* confdefs.h. */
2078 _ACEOF
2079 cat confdefs.h >>conftest.$ac_ext
2080 cat >>conftest.$ac_ext <<_ACEOF
2081 /* end confdefs.h. */
2082 $ac_declaration
2083 int
2084 main ()
2086 exit (42);
2088 return 0;
2090 _ACEOF
2091 rm -f conftest.$ac_objext
2092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2093 (eval $ac_compile) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); } &&
2097 { ac_try='test -s conftest.$ac_objext'
2098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099 (eval $ac_try) 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }; }; then
2103 break
2104 else
2105 echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2108 fi
2109 rm -f conftest.$ac_objext conftest.$ac_ext
2110 done
2111 rm -f conftest*
2112 if test -n "$ac_declaration"; then
2113 echo '#ifdef __cplusplus' >>confdefs.h
2114 echo $ac_declaration >>confdefs.h
2115 echo '#endif' >>confdefs.h
2116 fi
2118 else
2119 echo "$as_me: failed program was:" >&5
2120 sed 's/^/| /' conftest.$ac_ext >&5
2122 fi
2123 rm -f conftest.$ac_objext conftest.$ac_ext
2124 ac_ext=c
2125 ac_cpp='$CPP $CPPFLAGS'
2126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2131 ac_aux_dir=
2132 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2133 if test -f $ac_dir/install-sh; then
2134 ac_aux_dir=$ac_dir
2135 ac_install_sh="$ac_aux_dir/install-sh -c"
2136 break
2137 elif test -f $ac_dir/install.sh; then
2138 ac_aux_dir=$ac_dir
2139 ac_install_sh="$ac_aux_dir/install.sh -c"
2140 break
2141 elif test -f $ac_dir/shtool; then
2142 ac_aux_dir=$ac_dir
2143 ac_install_sh="$ac_aux_dir/shtool install -c"
2144 break
2145 fi
2146 done
2147 if test -z "$ac_aux_dir"; then
2148 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2149 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2150 { (exit 1); exit 1; }; }
2151 fi
2152 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2153 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2154 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2156 # Make sure we can run config.sub.
2157 $ac_config_sub sun4 >/dev/null 2>&1 ||
2158 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2159 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2160 { (exit 1); exit 1; }; }
2162 echo "$as_me:$LINENO: checking build system type" >&5
2163 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2164 if test "${ac_cv_build+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167 ac_cv_build_alias=$build_alias
2168 test -z "$ac_cv_build_alias" &&
2169 ac_cv_build_alias=`$ac_config_guess`
2170 test -z "$ac_cv_build_alias" &&
2171 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2172 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2173 { (exit 1); exit 1; }; }
2174 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2175 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2176 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2177 { (exit 1); exit 1; }; }
2179 fi
2180 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2181 echo "${ECHO_T}$ac_cv_build" >&6
2182 build=$ac_cv_build
2183 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2184 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2185 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2188 echo "$as_me:$LINENO: checking host system type" >&5
2189 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2190 if test "${ac_cv_host+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193 ac_cv_host_alias=$host_alias
2194 test -z "$ac_cv_host_alias" &&
2195 ac_cv_host_alias=$ac_cv_build_alias
2196 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2197 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2198 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2199 { (exit 1); exit 1; }; }
2201 fi
2202 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2203 echo "${ECHO_T}$ac_cv_host" >&6
2204 host=$ac_cv_host
2205 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2206 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2207 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2210 echo "$as_me:$LINENO: checking target system type" >&5
2211 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2212 if test "${ac_cv_target+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215 ac_cv_target_alias=$target_alias
2216 test "x$ac_cv_target_alias" = "x" &&
2217 ac_cv_target_alias=$ac_cv_host_alias
2218 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2219 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2220 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2221 { (exit 1); exit 1; }; }
2223 fi
2224 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2225 echo "${ECHO_T}$ac_cv_target" >&6
2226 target=$ac_cv_target
2227 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2228 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2229 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2232 # The aliases save the names the user supplied, while $host etc.
2233 # will get canonicalized.
2234 test -n "$target_alias" &&
2235 test "$program_prefix$program_suffix$program_transform_name" = \
2236 NONENONEs,x,x, &&
2237 program_prefix=${target_alias}-
2239 # Find a good install program. We prefer a C program (faster),
2240 # so one script is as good as another. But avoid the broken or
2241 # incompatible versions:
2242 # SysV /etc/install, /usr/sbin/install
2243 # SunOS /usr/etc/install
2244 # IRIX /sbin/install
2245 # AIX /bin/install
2246 # AmigaOS /C/install, which installs bootblocks on floppy discs
2247 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2248 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2249 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2250 # ./install, which can be erroneously created by make from ./install.sh.
2251 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2252 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2253 if test -z "$INSTALL"; then
2254 if test "${ac_cv_path_install+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 # Account for people who put trailing slashes in PATH elements.
2263 case $as_dir/ in
2264 ./ | .// | /cC/* | \
2265 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2266 /usr/ucb/* ) ;;
2267 *)
2268 # OSF1 and SCO ODT 3.0 have their own names for install.
2269 # Don't use installbsd from OSF since it installs stuff as root
2270 # by default.
2271 for ac_prog in ginstall scoinst install; do
2272 for ac_exec_ext in '' $ac_executable_extensions; do
2273 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2274 if test $ac_prog = install &&
2275 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2276 # AIX install. It has an incompatible calling convention.
2278 elif test $ac_prog = install &&
2279 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2280 # program-specific install script used by HP pwplus--don't use.
2282 else
2283 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2284 break 3
2285 fi
2286 fi
2287 done
2288 done
2289 ;;
2290 esac
2291 done
2294 fi
2295 if test "${ac_cv_path_install+set}" = set; then
2296 INSTALL=$ac_cv_path_install
2297 else
2298 # As a last resort, use the slow shell script. We don't cache a
2299 # path for INSTALL within a source directory, because that will
2300 # break other packages using the cache if that directory is
2301 # removed, or if the path is relative.
2302 INSTALL=$ac_install_sh
2303 fi
2304 fi
2305 echo "$as_me:$LINENO: result: $INSTALL" >&5
2306 echo "${ECHO_T}$INSTALL" >&6
2308 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2309 # It thinks the first close brace ends the variable substitution.
2310 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2312 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2314 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2318 ac_ext=c
2319 ac_cpp='$CPP $CPPFLAGS'
2320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2324 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2325 # On Suns, sometimes $CPP names a directory.
2326 if test -n "$CPP" && test -d "$CPP"; then
2327 CPP=
2328 fi
2329 if test -z "$CPP"; then
2330 if test "${ac_cv_prog_CPP+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333 # Double quotes because CPP needs to be expanded
2334 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2335 do
2336 ac_preproc_ok=false
2337 for ac_c_preproc_warn_flag in '' yes
2338 do
2339 # Use a header file that comes with gcc, so configuring glibc
2340 # with a fresh cross-compiler works.
2341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2342 # <limits.h> exists even on freestanding compilers.
2343 # On the NeXT, cc -E runs the code through the compiler's parser,
2344 # not just through cpp. "Syntax error" is here to catch this case.
2345 cat >conftest.$ac_ext <<_ACEOF
2346 #line $LINENO "configure"
2347 /* confdefs.h. */
2348 _ACEOF
2349 cat confdefs.h >>conftest.$ac_ext
2350 cat >>conftest.$ac_ext <<_ACEOF
2351 /* end confdefs.h. */
2352 #ifdef __STDC__
2353 # include <limits.h>
2354 #else
2355 # include <assert.h>
2356 #endif
2357 Syntax error
2358 _ACEOF
2359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2361 ac_status=$?
2362 grep -v '^ *+' conftest.er1 >conftest.err
2363 rm -f conftest.er1
2364 cat conftest.err >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); } >/dev/null; then
2367 if test -s conftest.err; then
2368 ac_cpp_err=$ac_c_preproc_warn_flag
2369 else
2370 ac_cpp_err=
2371 fi
2372 else
2373 ac_cpp_err=yes
2374 fi
2375 if test -z "$ac_cpp_err"; then
2377 else
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2381 # Broken: fails on valid input.
2382 continue
2383 fi
2384 rm -f conftest.err conftest.$ac_ext
2386 # OK, works on sane cases. Now check whether non-existent headers
2387 # can be detected and how.
2388 cat >conftest.$ac_ext <<_ACEOF
2389 #line $LINENO "configure"
2390 /* confdefs.h. */
2391 _ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2395 #include <ac_nonexistent.h>
2396 _ACEOF
2397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2399 ac_status=$?
2400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } >/dev/null; then
2405 if test -s conftest.err; then
2406 ac_cpp_err=$ac_c_preproc_warn_flag
2407 else
2408 ac_cpp_err=
2409 fi
2410 else
2411 ac_cpp_err=yes
2412 fi
2413 if test -z "$ac_cpp_err"; then
2414 # Broken: success on invalid input.
2415 continue
2416 else
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2420 # Passes both tests.
2421 ac_preproc_ok=:
2422 break
2423 fi
2424 rm -f conftest.err conftest.$ac_ext
2426 done
2427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2428 rm -f conftest.err conftest.$ac_ext
2429 if $ac_preproc_ok; then
2430 break
2431 fi
2433 done
2434 ac_cv_prog_CPP=$CPP
2436 fi
2437 CPP=$ac_cv_prog_CPP
2438 else
2439 ac_cv_prog_CPP=$CPP
2440 fi
2441 echo "$as_me:$LINENO: result: $CPP" >&5
2442 echo "${ECHO_T}$CPP" >&6
2443 ac_preproc_ok=false
2444 for ac_c_preproc_warn_flag in '' yes
2445 do
2446 # Use a header file that comes with gcc, so configuring glibc
2447 # with a fresh cross-compiler works.
2448 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2449 # <limits.h> exists even on freestanding compilers.
2450 # On the NeXT, cc -E runs the code through the compiler's parser,
2451 # not just through cpp. "Syntax error" is here to catch this case.
2452 cat >conftest.$ac_ext <<_ACEOF
2453 #line $LINENO "configure"
2454 /* confdefs.h. */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2459 #ifdef __STDC__
2460 # include <limits.h>
2461 #else
2462 # include <assert.h>
2463 #endif
2464 Syntax error
2465 _ACEOF
2466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2468 ac_status=$?
2469 grep -v '^ *+' conftest.er1 >conftest.err
2470 rm -f conftest.er1
2471 cat conftest.err >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } >/dev/null; then
2474 if test -s conftest.err; then
2475 ac_cpp_err=$ac_c_preproc_warn_flag
2476 else
2477 ac_cpp_err=
2478 fi
2479 else
2480 ac_cpp_err=yes
2481 fi
2482 if test -z "$ac_cpp_err"; then
2484 else
2485 echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2488 # Broken: fails on valid input.
2489 continue
2490 fi
2491 rm -f conftest.err conftest.$ac_ext
2493 # OK, works on sane cases. Now check whether non-existent headers
2494 # can be detected and how.
2495 cat >conftest.$ac_ext <<_ACEOF
2496 #line $LINENO "configure"
2497 /* confdefs.h. */
2498 _ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h. */
2502 #include <ac_nonexistent.h>
2503 _ACEOF
2504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2506 ac_status=$?
2507 grep -v '^ *+' conftest.er1 >conftest.err
2508 rm -f conftest.er1
2509 cat conftest.err >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); } >/dev/null; then
2512 if test -s conftest.err; then
2513 ac_cpp_err=$ac_c_preproc_warn_flag
2514 else
2515 ac_cpp_err=
2516 fi
2517 else
2518 ac_cpp_err=yes
2519 fi
2520 if test -z "$ac_cpp_err"; then
2521 # Broken: success on invalid input.
2522 continue
2523 else
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2527 # Passes both tests.
2528 ac_preproc_ok=:
2529 break
2530 fi
2531 rm -f conftest.err conftest.$ac_ext
2533 done
2534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2535 rm -f conftest.err conftest.$ac_ext
2536 if $ac_preproc_ok; then
2538 else
2539 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2540 See \`config.log' for more details." >&5
2541 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2542 See \`config.log' for more details." >&2;}
2543 { (exit 1); exit 1; }; }
2544 fi
2546 ac_ext=c
2547 ac_cpp='$CPP $CPPFLAGS'
2548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2553 echo "$as_me:$LINENO: checking for egrep" >&5
2554 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2555 if test "${ac_cv_prog_egrep+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2559 then ac_cv_prog_egrep='grep -E'
2560 else ac_cv_prog_egrep='egrep'
2561 fi
2562 fi
2563 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2564 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2565 EGREP=$ac_cv_prog_egrep
2568 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2569 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2570 if test "${ac_cv_header_stdc+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573 cat >conftest.$ac_ext <<_ACEOF
2574 #line $LINENO "configure"
2575 /* confdefs.h. */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2580 #include <stdlib.h>
2581 #include <stdarg.h>
2582 #include <string.h>
2583 #include <float.h>
2585 int
2586 main ()
2590 return 0;
2592 _ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try='test -s conftest.$ac_objext'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 (eval $ac_try) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
2605 ac_cv_header_stdc=yes
2606 else
2607 echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2610 ac_cv_header_stdc=no
2611 fi
2612 rm -f conftest.$ac_objext conftest.$ac_ext
2614 if test $ac_cv_header_stdc = yes; then
2615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2616 cat >conftest.$ac_ext <<_ACEOF
2617 #line $LINENO "configure"
2618 /* confdefs.h. */
2619 _ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h. */
2623 #include <string.h>
2625 _ACEOF
2626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2627 $EGREP "memchr" >/dev/null 2>&1; then
2629 else
2630 ac_cv_header_stdc=no
2631 fi
2632 rm -f conftest*
2634 fi
2636 if test $ac_cv_header_stdc = yes; then
2637 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2638 cat >conftest.$ac_ext <<_ACEOF
2639 #line $LINENO "configure"
2640 /* confdefs.h. */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2645 #include <stdlib.h>
2647 _ACEOF
2648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2649 $EGREP "free" >/dev/null 2>&1; then
2651 else
2652 ac_cv_header_stdc=no
2653 fi
2654 rm -f conftest*
2656 fi
2658 if test $ac_cv_header_stdc = yes; then
2659 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2660 if test "$cross_compiling" = yes; then
2662 else
2663 cat >conftest.$ac_ext <<_ACEOF
2664 #line $LINENO "configure"
2665 /* confdefs.h. */
2666 _ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2670 #include <ctype.h>
2671 #if ((' ' & 0x0FF) == 0x020)
2672 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2673 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2674 #else
2675 # define ISLOWER(c) \
2676 (('a' <= (c) && (c) <= 'i') \
2677 || ('j' <= (c) && (c) <= 'r') \
2678 || ('s' <= (c) && (c) <= 'z'))
2679 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2680 #endif
2682 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2683 int
2684 main ()
2686 int i;
2687 for (i = 0; i < 256; i++)
2688 if (XOR (islower (i), ISLOWER (i))
2689 || toupper (i) != TOUPPER (i))
2690 exit(2);
2691 exit (0);
2693 _ACEOF
2694 rm -f conftest$ac_exeext
2695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2696 (eval $ac_link) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 (eval $ac_try) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; }; then
2706 else
2707 echo "$as_me: program exited with status $ac_status" >&5
2708 echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2711 ( exit $ac_status )
2712 ac_cv_header_stdc=no
2713 fi
2714 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2715 fi
2716 fi
2717 fi
2718 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2719 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2720 if test $ac_cv_header_stdc = yes; then
2722 cat >>confdefs.h <<\_ACEOF
2723 #define STDC_HEADERS 1
2724 _ACEOF
2726 fi
2729 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2739 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2740 inttypes.h stdint.h unistd.h
2741 do
2742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2743 echo "$as_me:$LINENO: checking for $ac_header" >&5
2744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748 cat >conftest.$ac_ext <<_ACEOF
2749 #line $LINENO "configure"
2750 /* confdefs.h. */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h. */
2755 $ac_includes_default
2757 #include <$ac_header>
2758 _ACEOF
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761 (eval $ac_compile) 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -s conftest.$ac_objext'
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 (eval $ac_try) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2771 eval "$as_ac_Header=yes"
2772 else
2773 echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2776 eval "$as_ac_Header=no"
2777 fi
2778 rm -f conftest.$ac_objext conftest.$ac_ext
2779 fi
2780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2783 cat >>confdefs.h <<_ACEOF
2784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2785 _ACEOF
2787 fi
2789 done
2803 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
2804 do
2805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2807 echo "$as_me:$LINENO: checking for $ac_header" >&5
2808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 fi
2812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2814 else
2815 # Is the header compilable?
2816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2818 cat >conftest.$ac_ext <<_ACEOF
2819 #line $LINENO "configure"
2820 /* confdefs.h. */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2825 $ac_includes_default
2826 #include <$ac_header>
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2840 ac_header_compiler=yes
2841 else
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2845 ac_header_compiler=no
2846 fi
2847 rm -f conftest.$ac_objext conftest.$ac_ext
2848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2849 echo "${ECHO_T}$ac_header_compiler" >&6
2851 # Is the header present?
2852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2854 cat >conftest.$ac_ext <<_ACEOF
2855 #line $LINENO "configure"
2856 /* confdefs.h. */
2857 _ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2861 #include <$ac_header>
2862 _ACEOF
2863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2865 ac_status=$?
2866 grep -v '^ *+' conftest.er1 >conftest.err
2867 rm -f conftest.er1
2868 cat conftest.err >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); } >/dev/null; then
2871 if test -s conftest.err; then
2872 ac_cpp_err=$ac_c_preproc_warn_flag
2873 else
2874 ac_cpp_err=
2875 fi
2876 else
2877 ac_cpp_err=yes
2878 fi
2879 if test -z "$ac_cpp_err"; then
2880 ac_header_preproc=yes
2881 else
2882 echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2885 ac_header_preproc=no
2886 fi
2887 rm -f conftest.err conftest.$ac_ext
2888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2889 echo "${ECHO_T}$ac_header_preproc" >&6
2891 # So? What about this header?
2892 case $ac_header_compiler:$ac_header_preproc in
2893 yes:no )
2894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2899 cat <<\_ASBOX
2900 ## ------------------------------------ ##
2901 ## Report this to bug-autoconf@gnu.org. ##
2902 ## ------------------------------------ ##
2903 _ASBOX
2904 ) |
2905 sed "s/^/$as_me: WARNING: /" >&2
2906 ;;
2907 no:yes )
2908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2915 cat <<\_ASBOX
2916 ## ------------------------------------ ##
2917 ## Report this to bug-autoconf@gnu.org. ##
2918 ## ------------------------------------ ##
2919 _ASBOX
2920 ) |
2921 sed "s/^/$as_me: WARNING: /" >&2
2922 ;;
2923 esac
2924 echo "$as_me:$LINENO: checking for $ac_header" >&5
2925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929 eval "$as_ac_Header=$ac_header_preproc"
2930 fi
2931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2934 fi
2935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2936 cat >>confdefs.h <<_ACEOF
2937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2938 _ACEOF
2940 fi
2942 done
2945 echo "$as_me:$LINENO: checking whether strerror must be declared" >&5
2946 echo $ECHO_N "checking whether strerror must be declared... $ECHO_C" >&6
2947 if test "${bfd_cv_decl_needed_strerror+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 else
2950 cat >conftest.$ac_ext <<_ACEOF
2951 #line $LINENO "configure"
2952 /* confdefs.h. */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2958 #include <stdio.h>
2959 #ifdef HAVE_STRING_H
2960 #include <string.h>
2961 #else
2962 #ifdef HAVE_STRINGS_H
2963 #include <strings.h>
2964 #endif
2965 #endif
2966 #ifdef HAVE_STDLIB_H
2967 #include <stdlib.h>
2968 #endif
2969 #ifdef HAVE_UNISTD_H
2970 #include <unistd.h>
2971 #endif
2972 int
2973 main ()
2975 char *(*pfn) = (char *(*)) strerror
2977 return 0;
2979 _ACEOF
2980 rm -f conftest.$ac_objext
2981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2982 (eval $ac_compile) 2>&5
2983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } &&
2986 { ac_try='test -s conftest.$ac_objext'
2987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988 (eval $ac_try) 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; }; then
2992 bfd_cv_decl_needed_strerror=no
2993 else
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2997 bfd_cv_decl_needed_strerror=yes
2998 fi
2999 rm -f conftest.$ac_objext conftest.$ac_ext
3000 fi
3002 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strerror" >&5
3003 echo "${ECHO_T}$bfd_cv_decl_needed_strerror" >&6
3004 if test $bfd_cv_decl_needed_strerror = yes; then
3006 cat >>confdefs.h <<\_ACEOF
3007 #define NEED_DECLARATION_STRERROR 1
3008 _ACEOF
3010 fi
3013 . ${srcdir}/configure.srv
3015 if test "${srv_linux_usrregs}" = "yes"; then
3016 cat >>confdefs.h <<\_ACEOF
3017 #define HAVE_LINUX_USRREGS 1
3018 _ACEOF
3020 fi
3022 if test "${srv_linux_regsets}" = "yes"; then
3023 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
3024 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
3025 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 else
3028 cat >conftest.$ac_ext <<_ACEOF
3029 #line $LINENO "configure"
3030 /* confdefs.h. */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3035 #include <sys/ptrace.h>
3036 int
3037 main ()
3039 PTRACE_GETREGS;
3041 return 0;
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3046 (eval $ac_compile) 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 { ac_try='test -s conftest.$ac_objext'
3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052 (eval $ac_try) 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3056 gdbsrv_cv_have_ptrace_getregs=yes
3057 else
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3061 gdbsrv_cv_have_ptrace_getregs=no
3062 fi
3063 rm -f conftest.$ac_objext conftest.$ac_ext
3064 fi
3066 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getregs" >&5
3067 echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getregs" >&6
3068 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
3069 cat >>confdefs.h <<\_ACEOF
3070 #define HAVE_LINUX_REGSETS 1
3071 _ACEOF
3073 fi
3075 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
3076 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
3077 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080 cat >conftest.$ac_ext <<_ACEOF
3081 #line $LINENO "configure"
3082 /* confdefs.h. */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3087 #include <sys/ptrace.h>
3088 int
3089 main ()
3091 PTRACE_GETFPXREGS;
3093 return 0;
3095 _ACEOF
3096 rm -f conftest.$ac_objext
3097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098 (eval $ac_compile) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } &&
3102 { ac_try='test -s conftest.$ac_objext'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 (eval $ac_try) 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3108 gdbsrv_cv_have_ptrace_getfpxregs=yes
3109 else
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3113 gdbsrv_cv_have_ptrace_getfpxregs=no
3114 fi
3115 rm -f conftest.$ac_objext conftest.$ac_ext
3116 fi
3118 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
3119 echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getfpxregs" >&6
3120 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
3121 cat >>confdefs.h <<\_ACEOF
3122 #define HAVE_PTRACE_GETFPXREGS 1
3123 _ACEOF
3125 fi
3126 fi
3128 if test "$ac_cv_header_sys_procfs_h" = yes; then
3129 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
3130 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
3131 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134 cat >conftest.$ac_ext <<_ACEOF
3135 #line $LINENO "configure"
3136 /* confdefs.h. */
3137 _ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3142 #define _SYSCALL32
3143 #include <sys/procfs.h>
3144 int
3145 main ()
3147 lwpid_t avar
3149 return 0;
3151 _ACEOF
3152 rm -f conftest.$ac_objext
3153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3154 (eval $ac_compile) 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } &&
3158 { ac_try='test -s conftest.$ac_objext'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 (eval $ac_try) 2>&5
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3164 bfd_cv_have_sys_procfs_type_lwpid_t=yes
3165 else
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 bfd_cv_have_sys_procfs_type_lwpid_t=no
3171 fi
3172 rm -f conftest.$ac_objext conftest.$ac_ext
3173 fi
3175 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
3177 cat >>confdefs.h <<\_ACEOF
3178 #define HAVE_LWPID_T 1
3179 _ACEOF
3181 fi
3182 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
3183 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
3185 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
3186 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
3187 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 else
3190 cat >conftest.$ac_ext <<_ACEOF
3191 #line $LINENO "configure"
3192 /* confdefs.h. */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3198 #define _SYSCALL32
3199 #include <sys/procfs.h>
3200 int
3201 main ()
3203 psaddr_t avar
3205 return 0;
3207 _ACEOF
3208 rm -f conftest.$ac_objext
3209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3210 (eval $ac_compile) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 (eval $ac_try) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 bfd_cv_have_sys_procfs_type_psaddr_t=yes
3221 else
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3225 bfd_cv_have_sys_procfs_type_psaddr_t=no
3227 fi
3228 rm -f conftest.$ac_objext conftest.$ac_ext
3229 fi
3231 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
3233 cat >>confdefs.h <<\_ACEOF
3234 #define HAVE_PSADDR_T 1
3235 _ACEOF
3237 fi
3238 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
3239 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
3241 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
3242 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
3243 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 cat >conftest.$ac_ext <<_ACEOF
3247 #line $LINENO "configure"
3248 /* confdefs.h. */
3249 _ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3254 #define _SYSCALL32
3255 #include <sys/procfs.h>
3256 int
3257 main ()
3259 prgregset_t avar
3261 return 0;
3263 _ACEOF
3264 rm -f conftest.$ac_objext
3265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3266 (eval $ac_compile) 2>&5
3267 ac_status=$?
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } &&
3270 { ac_try='test -s conftest.$ac_objext'
3271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 (eval $ac_try) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; }; then
3276 bfd_cv_have_sys_procfs_type_prgregset_t=yes
3277 else
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3281 bfd_cv_have_sys_procfs_type_prgregset_t=no
3283 fi
3284 rm -f conftest.$ac_objext conftest.$ac_ext
3285 fi
3287 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
3289 cat >>confdefs.h <<\_ACEOF
3290 #define HAVE_PRGREGSET_T 1
3291 _ACEOF
3293 fi
3294 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
3295 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
3297 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
3298 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
3299 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302 cat >conftest.$ac_ext <<_ACEOF
3303 #line $LINENO "configure"
3304 /* confdefs.h. */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3310 #define _SYSCALL32
3311 #include <sys/procfs.h>
3312 int
3313 main ()
3315 prfpregset_t avar
3317 return 0;
3319 _ACEOF
3320 rm -f conftest.$ac_objext
3321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322 (eval $ac_compile) 2>&5
3323 ac_status=$?
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } &&
3326 { ac_try='test -s conftest.$ac_objext'
3327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328 (eval $ac_try) 2>&5
3329 ac_status=$?
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; }; then
3332 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
3333 else
3334 echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3337 bfd_cv_have_sys_procfs_type_prfpregset_t=no
3339 fi
3340 rm -f conftest.$ac_objext conftest.$ac_ext
3341 fi
3343 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
3345 cat >>confdefs.h <<\_ACEOF
3346 #define HAVE_PRFPREGSET_T 1
3347 _ACEOF
3349 fi
3350 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
3351 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
3356 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
3357 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
3358 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
3359 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362 if test "$cross_compiling" = yes; then
3363 gdb_cv_prfpregset_t_broken=yes
3364 else
3365 cat >conftest.$ac_ext <<_ACEOF
3366 #line $LINENO "configure"
3367 /* confdefs.h. */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3372 #include <sys/procfs.h>
3373 int main ()
3375 if (sizeof (prfpregset_t) == sizeof (void *))
3376 return 1;
3377 return 0;
3379 _ACEOF
3380 rm -f conftest$ac_exeext
3381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3382 (eval $ac_link) 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 (eval $ac_try) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 gdb_cv_prfpregset_t_broken=no
3392 else
3393 echo "$as_me: program exited with status $ac_status" >&5
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3397 ( exit $ac_status )
3398 gdb_cv_prfpregset_t_broken=yes
3399 fi
3400 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3401 fi
3402 fi
3404 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
3405 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
3406 if test $gdb_cv_prfpregset_t_broken = yes; then
3407 cat >>confdefs.h <<\_ACEOF
3408 #define PRFPREGSET_T_BROKEN 1
3409 _ACEOF
3411 fi
3412 fi
3414 echo "$as_me:$LINENO: checking for elf_fpregset_t in sys/procfs.h" >&5
3415 echo $ECHO_N "checking for elf_fpregset_t in sys/procfs.h... $ECHO_C" >&6
3416 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 else
3419 cat >conftest.$ac_ext <<_ACEOF
3420 #line $LINENO "configure"
3421 /* confdefs.h. */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3427 #define _SYSCALL32
3428 #include <sys/procfs.h>
3429 int
3430 main ()
3432 elf_fpregset_t avar
3434 return 0;
3436 _ACEOF
3437 rm -f conftest.$ac_objext
3438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3439 (eval $ac_compile) 2>&5
3440 ac_status=$?
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } &&
3443 { ac_try='test -s conftest.$ac_objext'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 (eval $ac_try) 2>&5
3446 ac_status=$?
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; }; then
3449 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
3450 else
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3454 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
3456 fi
3457 rm -f conftest.$ac_objext conftest.$ac_ext
3458 fi
3460 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
3462 cat >>confdefs.h <<\_ACEOF
3463 #define HAVE_ELF_FPREGSET_T 1
3464 _ACEOF
3466 fi
3467 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
3468 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6
3470 fi
3472 srv_thread_depfiles=
3473 srv_libs=
3474 USE_THREAD_DB=
3477 GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_thread_depfiles"
3478 GDBSERVER_LIBS="$srv_libs -L../../../../libxc/ -L../../../../libxutil/ -lxc -lxutil"
3484 ac_config_files="$ac_config_files Makefile"
3485 ac_config_commands="$ac_config_commands default"
3486 cat >confcache <<\_ACEOF
3487 # This file is a shell script that caches the results of configure
3488 # tests run on this system so they can be shared between configure
3489 # scripts and configure runs, see configure's option --config-cache.
3490 # It is not useful on other systems. If it contains results you don't
3491 # want to keep, you may remove or edit it.
3493 # config.status only pays attention to the cache file if you give it
3494 # the --recheck option to rerun configure.
3496 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3497 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3498 # following values.
3500 _ACEOF
3502 # The following way of writing the cache mishandles newlines in values,
3503 # but we know of no workaround that is simple, portable, and efficient.
3504 # So, don't put newlines in cache variables' values.
3505 # Ultrix sh set writes to stderr and can't be redirected directly,
3506 # and sets the high bit in the cache file unless we assign to the vars.
3508 (set) 2>&1 |
3509 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3510 *ac_space=\ *)
3511 # `set' does not quote correctly, so add quotes (double-quote
3512 # substitution turns \\\\ into \\, and sed turns \\ into \).
3513 sed -n \
3514 "s/'/'\\\\''/g;
3515 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3516 ;;
3517 *)
3518 # `set' quotes correctly as required by POSIX, so do not add quotes.
3519 sed -n \
3520 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3521 ;;
3522 esac;
3523 } |
3524 sed '
3525 t clear
3526 : clear
3527 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3528 t end
3529 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3530 : end' >>confcache
3531 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3532 if test -w $cache_file; then
3533 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3534 cat confcache >$cache_file
3535 else
3536 echo "not updating unwritable cache $cache_file"
3537 fi
3538 fi
3539 rm -f confcache
3541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3542 # Let make expand exec_prefix.
3543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3545 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3546 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3547 # trailing colons and then remove the whole line if VPATH becomes empty
3548 # (actually we leave an empty line to preserve line numbers).
3549 if test "x$srcdir" = x.; then
3550 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3551 s/:*\$(srcdir):*/:/;
3552 s/:*\${srcdir}:*/:/;
3553 s/:*@srcdir@:*/:/;
3554 s/^\([^=]*=[ ]*\):*/\1/;
3555 s/:*$//;
3556 s/^[^=]*=[ ]*$//;
3557 }'
3558 fi
3560 DEFS=-DHAVE_CONFIG_H
3562 ac_libobjs=
3563 ac_ltlibobjs=
3564 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3565 # 1. Remove the extension, and $U if already installed.
3566 ac_i=`echo "$ac_i" |
3567 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3568 # 2. Add them.
3569 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3570 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3571 done
3572 LIBOBJS=$ac_libobjs
3574 LTLIBOBJS=$ac_ltlibobjs
3578 : ${CONFIG_STATUS=./config.status}
3579 ac_clean_files_save=$ac_clean_files
3580 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3581 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3582 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3583 cat >$CONFIG_STATUS <<_ACEOF
3584 #! $SHELL
3585 # Generated by $as_me.
3586 # Run this file to recreate the current configuration.
3587 # Compiler output produced by configure, useful for debugging
3588 # configure, is in config.log if it exists.
3590 debug=false
3591 ac_cs_recheck=false
3592 ac_cs_silent=false
3593 SHELL=\${CONFIG_SHELL-$SHELL}
3594 _ACEOF
3596 cat >>$CONFIG_STATUS <<\_ACEOF
3597 ## --------------------- ##
3598 ## M4sh Initialization. ##
3599 ## --------------------- ##
3601 # Be Bourne compatible
3602 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3603 emulate sh
3604 NULLCMD=:
3605 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3606 # is contrary to our usage. Disable this feature.
3607 alias -g '${1+"$@"}'='"$@"'
3608 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3609 set -o posix
3610 fi
3612 # Support unset when possible.
3613 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3614 as_unset=unset
3615 else
3616 as_unset=false
3617 fi
3620 # Work around bugs in pre-3.0 UWIN ksh.
3621 $as_unset ENV MAIL MAILPATH
3622 PS1='$ '
3623 PS2='> '
3624 PS4='+ '
3626 # NLS nuisances.
3627 for as_var in \
3628 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3629 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3630 LC_TELEPHONE LC_TIME
3631 do
3632 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
3633 eval $as_var=C; export $as_var
3634 else
3635 $as_unset $as_var
3636 fi
3637 done
3639 # Required to use basename.
3640 if expr a : '\(a\)' >/dev/null 2>&1; then
3641 as_expr=expr
3642 else
3643 as_expr=false
3644 fi
3646 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3647 as_basename=basename
3648 else
3649 as_basename=false
3650 fi
3653 # Name of the executable.
3654 as_me=`$as_basename "$0" ||
3655 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3656 X"$0" : 'X\(//\)$' \| \
3657 X"$0" : 'X\(/\)$' \| \
3658 . : '\(.\)' 2>/dev/null ||
3659 echo X/"$0" |
3660 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3661 /^X\/\(\/\/\)$/{ s//\1/; q; }
3662 /^X\/\(\/\).*/{ s//\1/; q; }
3663 s/.*/./; q'`
3666 # PATH needs CR, and LINENO needs CR and PATH.
3667 # Avoid depending upon Character Ranges.
3668 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3669 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3670 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3671 as_cr_digits='0123456789'
3672 as_cr_alnum=$as_cr_Letters$as_cr_digits
3674 # The user is always right.
3675 if test "${PATH_SEPARATOR+set}" != set; then
3676 echo "#! /bin/sh" >conf$$.sh
3677 echo "exit 0" >>conf$$.sh
3678 chmod +x conf$$.sh
3679 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3680 PATH_SEPARATOR=';'
3681 else
3682 PATH_SEPARATOR=:
3683 fi
3684 rm -f conf$$.sh
3685 fi
3688 as_lineno_1=$LINENO
3689 as_lineno_2=$LINENO
3690 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3691 test "x$as_lineno_1" != "x$as_lineno_2" &&
3692 test "x$as_lineno_3" = "x$as_lineno_2" || {
3693 # Find who we are. Look in the path if we contain no path at all
3694 # relative or not.
3695 case $0 in
3696 *[\\/]* ) as_myself=$0 ;;
3697 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3699 do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3703 done
3705 ;;
3706 esac
3707 # We did not find ourselves, most probably we were run as `sh COMMAND'
3708 # in which case we are not to be found in the path.
3709 if test "x$as_myself" = x; then
3710 as_myself=$0
3711 fi
3712 if test ! -f "$as_myself"; then
3713 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3714 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3715 { (exit 1); exit 1; }; }
3716 fi
3717 case $CONFIG_SHELL in
3718 '')
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3721 do
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 for as_base in sh bash ksh sh5; do
3725 case $as_dir in
3726 /*)
3727 if ("$as_dir/$as_base" -c '
3728 as_lineno_1=$LINENO
3729 as_lineno_2=$LINENO
3730 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3731 test "x$as_lineno_1" != "x$as_lineno_2" &&
3732 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3733 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3734 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3735 CONFIG_SHELL=$as_dir/$as_base
3736 export CONFIG_SHELL
3737 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3738 fi;;
3739 esac
3740 done
3741 done
3742 ;;
3743 esac
3745 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3746 # uniformly replaced by the line number. The first 'sed' inserts a
3747 # line-number line before each line; the second 'sed' does the real
3748 # work. The second script uses 'N' to pair each line-number line
3749 # with the numbered line, and appends trailing '-' during
3750 # substitution so that $LINENO is not a special case at line end.
3751 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3752 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3753 sed '=' <$as_myself |
3754 sed '
3756 s,$,-,
3757 : loop
3758 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3759 t loop
3760 s,-$,,
3761 s,^['$as_cr_digits']*\n,,
3762 ' >$as_me.lineno &&
3763 chmod +x $as_me.lineno ||
3764 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3765 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3766 { (exit 1); exit 1; }; }
3768 # Don't try to exec as it changes $[0], causing all sort of problems
3769 # (the dirname of $[0] is not the place where we might find the
3770 # original and so on. Autoconf is especially sensible to this).
3771 . ./$as_me.lineno
3772 # Exit status is that of the last command.
3773 exit
3777 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3778 *c*,-n*) ECHO_N= ECHO_C='
3779 ' ECHO_T=' ' ;;
3780 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3781 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3782 esac
3784 if expr a : '\(a\)' >/dev/null 2>&1; then
3785 as_expr=expr
3786 else
3787 as_expr=false
3788 fi
3790 rm -f conf$$ conf$$.exe conf$$.file
3791 echo >conf$$.file
3792 if ln -s conf$$.file conf$$ 2>/dev/null; then
3793 # We could just check for DJGPP; but this test a) works b) is more generic
3794 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3795 if test -f conf$$.exe; then
3796 # Don't use ln at all; we don't have any links
3797 as_ln_s='cp -p'
3798 else
3799 as_ln_s='ln -s'
3800 fi
3801 elif ln conf$$.file conf$$ 2>/dev/null; then
3802 as_ln_s=ln
3803 else
3804 as_ln_s='cp -p'
3805 fi
3806 rm -f conf$$ conf$$.exe conf$$.file
3808 if mkdir -p . 2>/dev/null; then
3809 as_mkdir_p=:
3810 else
3811 as_mkdir_p=false
3812 fi
3814 as_executable_p="test -f"
3816 # Sed expression to map a string onto a valid CPP name.
3817 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3819 # Sed expression to map a string onto a valid variable name.
3820 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3823 # IFS
3824 # We need space, tab and new line, in precisely that order.
3825 as_nl='
3827 IFS=" $as_nl"
3829 # CDPATH.
3830 $as_unset CDPATH
3832 exec 6>&1
3834 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3835 # report actual input values of CONFIG_FILES etc. instead of their
3836 # values after options handling. Logging --version etc. is OK.
3837 exec 5>>config.log
3839 echo
3840 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3841 ## Running $as_me. ##
3842 _ASBOX
3843 } >&5
3844 cat >&5 <<_CSEOF
3846 This file was extended by $as_me, which was
3847 generated by GNU Autoconf 2.57. Invocation command line was
3849 CONFIG_FILES = $CONFIG_FILES
3850 CONFIG_HEADERS = $CONFIG_HEADERS
3851 CONFIG_LINKS = $CONFIG_LINKS
3852 CONFIG_COMMANDS = $CONFIG_COMMANDS
3853 $ $0 $@
3855 _CSEOF
3856 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3857 echo >&5
3858 _ACEOF
3860 # Files that config.status was made for.
3861 if test -n "$ac_config_files"; then
3862 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3863 fi
3865 if test -n "$ac_config_headers"; then
3866 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3867 fi
3869 if test -n "$ac_config_links"; then
3870 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3871 fi
3873 if test -n "$ac_config_commands"; then
3874 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3875 fi
3877 cat >>$CONFIG_STATUS <<\_ACEOF
3879 ac_cs_usage="\
3880 \`$as_me' instantiates files from templates according to the
3881 current configuration.
3883 Usage: $0 [OPTIONS] [FILE]...
3885 -h, --help print this help, then exit
3886 -V, --version print version number, then exit
3887 -q, --quiet do not print progress messages
3888 -d, --debug don't remove temporary files
3889 --recheck update $as_me by reconfiguring in the same conditions
3890 --file=FILE[:TEMPLATE]
3891 instantiate the configuration file FILE
3892 --header=FILE[:TEMPLATE]
3893 instantiate the configuration header FILE
3895 Configuration files:
3896 $config_files
3898 Configuration headers:
3899 $config_headers
3901 Configuration commands:
3902 $config_commands
3904 Report bugs to <bug-autoconf@gnu.org>."
3905 _ACEOF
3907 cat >>$CONFIG_STATUS <<_ACEOF
3908 ac_cs_version="\\
3909 config.status
3910 configured by $0, generated by GNU Autoconf 2.57,
3911 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3913 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3914 Free Software Foundation, Inc.
3915 This config.status script is free software; the Free Software Foundation
3916 gives unlimited permission to copy, distribute and modify it."
3917 srcdir=$srcdir
3918 INSTALL="$INSTALL"
3919 _ACEOF
3921 cat >>$CONFIG_STATUS <<\_ACEOF
3922 # If no file are specified by the user, then we need to provide default
3923 # value. By we need to know if files were specified by the user.
3924 ac_need_defaults=:
3925 while test $# != 0
3926 do
3927 case $1 in
3928 --*=*)
3929 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3930 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3931 ac_shift=:
3932 ;;
3933 -*)
3934 ac_option=$1
3935 ac_optarg=$2
3936 ac_shift=shift
3937 ;;
3938 *) # This is not an option, so the user has probably given explicit
3939 # arguments.
3940 ac_option=$1
3941 ac_need_defaults=false;;
3942 esac
3944 case $ac_option in
3945 # Handling of the options.
3946 _ACEOF
3947 cat >>$CONFIG_STATUS <<\_ACEOF
3948 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3949 ac_cs_recheck=: ;;
3950 --version | --vers* | -V )
3951 echo "$ac_cs_version"; exit 0 ;;
3952 --he | --h)
3953 # Conflict between --help and --header
3954 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3955 Try \`$0 --help' for more information." >&5
3956 echo "$as_me: error: ambiguous option: $1
3957 Try \`$0 --help' for more information." >&2;}
3958 { (exit 1); exit 1; }; };;
3959 --help | --hel | -h )
3960 echo "$ac_cs_usage"; exit 0 ;;
3961 --debug | --d* | -d )
3962 debug=: ;;
3963 --file | --fil | --fi | --f )
3964 $ac_shift
3965 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3966 ac_need_defaults=false;;
3967 --header | --heade | --head | --hea )
3968 $ac_shift
3969 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3970 ac_need_defaults=false;;
3971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3972 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3973 ac_cs_silent=: ;;
3975 # This is an error.
3976 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3977 Try \`$0 --help' for more information." >&5
3978 echo "$as_me: error: unrecognized option: $1
3979 Try \`$0 --help' for more information." >&2;}
3980 { (exit 1); exit 1; }; } ;;
3982 *) ac_config_targets="$ac_config_targets $1" ;;
3984 esac
3985 shift
3986 done
3988 ac_configure_extra_args=
3990 if $ac_cs_silent; then
3991 exec 6>/dev/null
3992 ac_configure_extra_args="$ac_configure_extra_args --silent"
3993 fi
3995 _ACEOF
3996 cat >>$CONFIG_STATUS <<_ACEOF
3997 if \$ac_cs_recheck; then
3998 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3999 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4000 fi
4002 _ACEOF
4008 cat >>$CONFIG_STATUS <<\_ACEOF
4009 for ac_config_target in $ac_config_targets
4010 do
4011 case "$ac_config_target" in
4012 # Handling of arguments.
4013 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4014 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4015 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
4016 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4017 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4018 { (exit 1); exit 1; }; };;
4019 esac
4020 done
4022 # If the user did not use the arguments to specify the items to instantiate,
4023 # then the envvar interface is used. Set only those that are not.
4024 # We use the long form for the default assignment because of an extremely
4025 # bizarre bug on SunOS 4.1.3.
4026 if $ac_need_defaults; then
4027 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4028 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4029 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4030 fi
4032 # Have a temporary directory for convenience. Make it in the build tree
4033 # simply because there is no reason to put it here, and in addition,
4034 # creating and moving files from /tmp can sometimes cause problems.
4035 # Create a temporary directory, and hook for its removal unless debugging.
4036 $debug ||
4038 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4039 trap '{ (exit 1); exit 1; }' 1 2 13 15
4042 # Create a (secure) tmp directory for tmp files.
4045 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4046 test -n "$tmp" && test -d "$tmp"
4047 } ||
4049 tmp=./confstat$$-$RANDOM
4050 (umask 077 && mkdir $tmp)
4051 } ||
4053 echo "$me: cannot create a temporary directory in ." >&2
4054 { (exit 1); exit 1; }
4057 _ACEOF
4059 cat >>$CONFIG_STATUS <<_ACEOF
4062 # CONFIG_FILES section.
4065 # No need to generate the scripts if there are no CONFIG_FILES.
4066 # This happens for instance when ./config.status config.h
4067 if test -n "\$CONFIG_FILES"; then
4068 # Protect against being on the right side of a sed subst in config.status.
4069 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4070 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4071 s,@SHELL@,$SHELL,;t t
4072 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4073 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4074 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4075 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4076 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4077 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4078 s,@exec_prefix@,$exec_prefix,;t t
4079 s,@prefix@,$prefix,;t t
4080 s,@program_transform_name@,$program_transform_name,;t t
4081 s,@bindir@,$bindir,;t t
4082 s,@sbindir@,$sbindir,;t t
4083 s,@libexecdir@,$libexecdir,;t t
4084 s,@datadir@,$datadir,;t t
4085 s,@sysconfdir@,$sysconfdir,;t t
4086 s,@sharedstatedir@,$sharedstatedir,;t t
4087 s,@localstatedir@,$localstatedir,;t t
4088 s,@libdir@,$libdir,;t t
4089 s,@includedir@,$includedir,;t t
4090 s,@oldincludedir@,$oldincludedir,;t t
4091 s,@infodir@,$infodir,;t t
4092 s,@mandir@,$mandir,;t t
4093 s,@build_alias@,$build_alias,;t t
4094 s,@host_alias@,$host_alias,;t t
4095 s,@target_alias@,$target_alias,;t t
4096 s,@DEFS@,$DEFS,;t t
4097 s,@ECHO_C@,$ECHO_C,;t t
4098 s,@ECHO_N@,$ECHO_N,;t t
4099 s,@ECHO_T@,$ECHO_T,;t t
4100 s,@LIBS@,$LIBS,;t t
4101 s,@CC@,$CC,;t t
4102 s,@CFLAGS@,$CFLAGS,;t t
4103 s,@LDFLAGS@,$LDFLAGS,;t t
4104 s,@CPPFLAGS@,$CPPFLAGS,;t t
4105 s,@ac_ct_CC@,$ac_ct_CC,;t t
4106 s,@EXEEXT@,$EXEEXT,;t t
4107 s,@OBJEXT@,$OBJEXT,;t t
4108 s,@build@,$build,;t t
4109 s,@build_cpu@,$build_cpu,;t t
4110 s,@build_vendor@,$build_vendor,;t t
4111 s,@build_os@,$build_os,;t t
4112 s,@host@,$host,;t t
4113 s,@host_cpu@,$host_cpu,;t t
4114 s,@host_vendor@,$host_vendor,;t t
4115 s,@host_os@,$host_os,;t t
4116 s,@target@,$target,;t t
4117 s,@target_cpu@,$target_cpu,;t t
4118 s,@target_vendor@,$target_vendor,;t t
4119 s,@target_os@,$target_os,;t t
4120 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4121 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4122 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4123 s,@CPP@,$CPP,;t t
4124 s,@EGREP@,$EGREP,;t t
4125 s,@GDBSERVER_DEPFILES@,$GDBSERVER_DEPFILES,;t t
4126 s,@GDBSERVER_LIBS@,$GDBSERVER_LIBS,;t t
4127 s,@USE_THREAD_DB@,$USE_THREAD_DB,;t t
4128 s,@LIBOBJS@,$LIBOBJS,;t t
4129 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4130 CEOF
4132 _ACEOF
4134 cat >>$CONFIG_STATUS <<\_ACEOF
4135 # Split the substitutions into bite-sized pieces for seds with
4136 # small command number limits, like on Digital OSF/1 and HP-UX.
4137 ac_max_sed_lines=48
4138 ac_sed_frag=1 # Number of current file.
4139 ac_beg=1 # First line for current file.
4140 ac_end=$ac_max_sed_lines # Line after last line for current file.
4141 ac_more_lines=:
4142 ac_sed_cmds=
4143 while $ac_more_lines; do
4144 if test $ac_beg -gt 1; then
4145 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4146 else
4147 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4148 fi
4149 if test ! -s $tmp/subs.frag; then
4150 ac_more_lines=false
4151 else
4152 # The purpose of the label and of the branching condition is to
4153 # speed up the sed processing (if there are no `@' at all, there
4154 # is no need to browse any of the substitutions).
4155 # These are the two extra sed commands mentioned above.
4156 (echo ':t
4157 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4158 if test -z "$ac_sed_cmds"; then
4159 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4160 else
4161 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4162 fi
4163 ac_sed_frag=`expr $ac_sed_frag + 1`
4164 ac_beg=$ac_end
4165 ac_end=`expr $ac_end + $ac_max_sed_lines`
4166 fi
4167 done
4168 if test -z "$ac_sed_cmds"; then
4169 ac_sed_cmds=cat
4170 fi
4171 fi # test -n "$CONFIG_FILES"
4173 _ACEOF
4174 cat >>$CONFIG_STATUS <<\_ACEOF
4175 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4176 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4177 case $ac_file in
4178 - | *:- | *:-:* ) # input from stdin
4179 cat >$tmp/stdin
4180 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4181 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4182 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4183 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4184 * ) ac_file_in=$ac_file.in ;;
4185 esac
4187 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4188 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4189 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4190 X"$ac_file" : 'X\(//\)[^/]' \| \
4191 X"$ac_file" : 'X\(//\)$' \| \
4192 X"$ac_file" : 'X\(/\)' \| \
4193 . : '\(.\)' 2>/dev/null ||
4194 echo X"$ac_file" |
4195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4197 /^X\(\/\/\)$/{ s//\1/; q; }
4198 /^X\(\/\).*/{ s//\1/; q; }
4199 s/.*/./; q'`
4200 { if $as_mkdir_p; then
4201 mkdir -p "$ac_dir"
4202 else
4203 as_dir="$ac_dir"
4204 as_dirs=
4205 while test ! -d "$as_dir"; do
4206 as_dirs="$as_dir $as_dirs"
4207 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4209 X"$as_dir" : 'X\(//\)[^/]' \| \
4210 X"$as_dir" : 'X\(//\)$' \| \
4211 X"$as_dir" : 'X\(/\)' \| \
4212 . : '\(.\)' 2>/dev/null ||
4213 echo X"$as_dir" |
4214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4215 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4216 /^X\(\/\/\)$/{ s//\1/; q; }
4217 /^X\(\/\).*/{ s//\1/; q; }
4218 s/.*/./; q'`
4219 done
4220 test ! -n "$as_dirs" || mkdir $as_dirs
4221 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4222 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4223 { (exit 1); exit 1; }; }; }
4225 ac_builddir=.
4227 if test "$ac_dir" != .; then
4228 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4229 # A "../" for each directory in $ac_dir_suffix.
4230 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4231 else
4232 ac_dir_suffix= ac_top_builddir=
4233 fi
4235 case $srcdir in
4236 .) # No --srcdir option. We are building in place.
4237 ac_srcdir=.
4238 if test -z "$ac_top_builddir"; then
4239 ac_top_srcdir=.
4240 else
4241 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4242 fi ;;
4243 [\\/]* | ?:[\\/]* ) # Absolute path.
4244 ac_srcdir=$srcdir$ac_dir_suffix;
4245 ac_top_srcdir=$srcdir ;;
4246 *) # Relative path.
4247 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4248 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4249 esac
4250 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4251 # absolute.
4252 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4253 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4254 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4255 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4258 case $INSTALL in
4259 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4260 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4261 esac
4263 if test x"$ac_file" != x-; then
4264 { echo "$as_me:$LINENO: creating $ac_file" >&5
4265 echo "$as_me: creating $ac_file" >&6;}
4266 rm -f "$ac_file"
4267 fi
4268 # Let's still pretend it is `configure' which instantiates (i.e., don't
4269 # use $as_me), people would be surprised to read:
4270 # /* config.h. Generated by config.status. */
4271 if test x"$ac_file" = x-; then
4272 configure_input=
4273 else
4274 configure_input="$ac_file. "
4275 fi
4276 configure_input=$configure_input"Generated from `echo $ac_file_in |
4277 sed 's,.*/,,'` by configure."
4279 # First look for the input files in the build tree, otherwise in the
4280 # src tree.
4281 ac_file_inputs=`IFS=:
4282 for f in $ac_file_in; do
4283 case $f in
4284 -) echo $tmp/stdin ;;
4285 [\\/$]*)
4286 # Absolute (can't be DOS-style, as IFS=:)
4287 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4288 echo "$as_me: error: cannot find input file: $f" >&2;}
4289 { (exit 1); exit 1; }; }
4290 echo $f;;
4291 *) # Relative
4292 if test -f "$f"; then
4293 # Build tree
4294 echo $f
4295 elif test -f "$srcdir/$f"; then
4296 # Source tree
4297 echo $srcdir/$f
4298 else
4299 # /dev/null tree
4300 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4301 echo "$as_me: error: cannot find input file: $f" >&2;}
4302 { (exit 1); exit 1; }; }
4303 fi;;
4304 esac
4305 done` || { (exit 1); exit 1; }
4306 _ACEOF
4307 cat >>$CONFIG_STATUS <<_ACEOF
4308 sed "$ac_vpsub
4309 $extrasub
4310 _ACEOF
4311 cat >>$CONFIG_STATUS <<\_ACEOF
4312 :t
4313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4314 s,@configure_input@,$configure_input,;t t
4315 s,@srcdir@,$ac_srcdir,;t t
4316 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4317 s,@top_srcdir@,$ac_top_srcdir,;t t
4318 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4319 s,@builddir@,$ac_builddir,;t t
4320 s,@abs_builddir@,$ac_abs_builddir,;t t
4321 s,@top_builddir@,$ac_top_builddir,;t t
4322 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4323 s,@INSTALL@,$ac_INSTALL,;t t
4324 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4325 rm -f $tmp/stdin
4326 if test x"$ac_file" != x-; then
4327 mv $tmp/out $ac_file
4328 else
4329 cat $tmp/out
4330 rm -f $tmp/out
4331 fi
4333 done
4334 _ACEOF
4335 cat >>$CONFIG_STATUS <<\_ACEOF
4338 # CONFIG_HEADER section.
4341 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4342 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4344 # ac_d sets the value in "#define NAME VALUE" lines.
4345 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4346 ac_dB='[ ].*$,\1#\2'
4347 ac_dC=' '
4348 ac_dD=',;t'
4349 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4350 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4351 ac_uB='$,\1#\2define\3'
4352 ac_uC=' '
4353 ac_uD=',;t'
4355 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4356 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4357 case $ac_file in
4358 - | *:- | *:-:* ) # input from stdin
4359 cat >$tmp/stdin
4360 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4361 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4362 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4363 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4364 * ) ac_file_in=$ac_file.in ;;
4365 esac
4367 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4368 echo "$as_me: creating $ac_file" >&6;}
4370 # First look for the input files in the build tree, otherwise in the
4371 # src tree.
4372 ac_file_inputs=`IFS=:
4373 for f in $ac_file_in; do
4374 case $f in
4375 -) echo $tmp/stdin ;;
4376 [\\/$]*)
4377 # Absolute (can't be DOS-style, as IFS=:)
4378 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4379 echo "$as_me: error: cannot find input file: $f" >&2;}
4380 { (exit 1); exit 1; }; }
4381 echo $f;;
4382 *) # Relative
4383 if test -f "$f"; then
4384 # Build tree
4385 echo $f
4386 elif test -f "$srcdir/$f"; then
4387 # Source tree
4388 echo $srcdir/$f
4389 else
4390 # /dev/null tree
4391 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4392 echo "$as_me: error: cannot find input file: $f" >&2;}
4393 { (exit 1); exit 1; }; }
4394 fi;;
4395 esac
4396 done` || { (exit 1); exit 1; }
4397 # Remove the trailing spaces.
4398 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4400 _ACEOF
4402 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4403 # `conftest.undefs', that substitutes the proper values into
4404 # config.h.in to produce config.h. The first handles `#define'
4405 # templates, and the second `#undef' templates.
4406 # And first: Protect against being on the right side of a sed subst in
4407 # config.status. Protect against being in an unquoted here document
4408 # in config.status.
4409 rm -f conftest.defines conftest.undefs
4410 # Using a here document instead of a string reduces the quoting nightmare.
4411 # Putting comments in sed scripts is not portable.
4413 # `end' is used to avoid that the second main sed command (meant for
4414 # 0-ary CPP macros) applies to n-ary macro definitions.
4415 # See the Autoconf documentation for `clear'.
4416 cat >confdef2sed.sed <<\_ACEOF
4417 s/[\\&,]/\\&/g
4418 s,[\\$`],\\&,g
4419 t clear
4420 : clear
4421 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4422 t end
4423 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4424 : end
4425 _ACEOF
4426 # If some macros were called several times there might be several times
4427 # the same #defines, which is useless. Nevertheless, we may not want to
4428 # sort them, since we want the *last* AC-DEFINE to be honored.
4429 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4430 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4431 rm -f confdef2sed.sed
4433 # This sed command replaces #undef with comments. This is necessary, for
4434 # example, in the case of _POSIX_SOURCE, which is predefined and required
4435 # on some systems where configure will not decide to define it.
4436 cat >>conftest.undefs <<\_ACEOF
4437 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4438 _ACEOF
4440 # Break up conftest.defines because some shells have a limit on the size
4441 # of here documents, and old seds have small limits too (100 cmds).
4442 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4443 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4444 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4445 echo ' :' >>$CONFIG_STATUS
4446 rm -f conftest.tail
4447 while grep . conftest.defines >/dev/null
4448 do
4449 # Write a limited-size here document to $tmp/defines.sed.
4450 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4451 # Speed up: don't consider the non `#define' lines.
4452 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4453 # Work around the forget-to-reset-the-flag bug.
4454 echo 't clr' >>$CONFIG_STATUS
4455 echo ': clr' >>$CONFIG_STATUS
4456 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4457 echo 'CEOF
4458 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4459 rm -f $tmp/in
4460 mv $tmp/out $tmp/in
4461 ' >>$CONFIG_STATUS
4462 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4463 rm -f conftest.defines
4464 mv conftest.tail conftest.defines
4465 done
4466 rm -f conftest.defines
4467 echo ' fi # grep' >>$CONFIG_STATUS
4468 echo >>$CONFIG_STATUS
4470 # Break up conftest.undefs because some shells have a limit on the size
4471 # of here documents, and old seds have small limits too (100 cmds).
4472 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4473 rm -f conftest.tail
4474 while grep . conftest.undefs >/dev/null
4475 do
4476 # Write a limited-size here document to $tmp/undefs.sed.
4477 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4478 # Speed up: don't consider the non `#undef'
4479 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4480 # Work around the forget-to-reset-the-flag bug.
4481 echo 't clr' >>$CONFIG_STATUS
4482 echo ': clr' >>$CONFIG_STATUS
4483 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4484 echo 'CEOF
4485 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4486 rm -f $tmp/in
4487 mv $tmp/out $tmp/in
4488 ' >>$CONFIG_STATUS
4489 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4490 rm -f conftest.undefs
4491 mv conftest.tail conftest.undefs
4492 done
4493 rm -f conftest.undefs
4495 cat >>$CONFIG_STATUS <<\_ACEOF
4496 # Let's still pretend it is `configure' which instantiates (i.e., don't
4497 # use $as_me), people would be surprised to read:
4498 # /* config.h. Generated by config.status. */
4499 if test x"$ac_file" = x-; then
4500 echo "/* Generated by configure. */" >$tmp/config.h
4501 else
4502 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4503 fi
4504 cat $tmp/in >>$tmp/config.h
4505 rm -f $tmp/in
4506 if test x"$ac_file" != x-; then
4507 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4508 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4509 echo "$as_me: $ac_file is unchanged" >&6;}
4510 else
4511 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4512 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4513 X"$ac_file" : 'X\(//\)[^/]' \| \
4514 X"$ac_file" : 'X\(//\)$' \| \
4515 X"$ac_file" : 'X\(/\)' \| \
4516 . : '\(.\)' 2>/dev/null ||
4517 echo X"$ac_file" |
4518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4519 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4520 /^X\(\/\/\)$/{ s//\1/; q; }
4521 /^X\(\/\).*/{ s//\1/; q; }
4522 s/.*/./; q'`
4523 { if $as_mkdir_p; then
4524 mkdir -p "$ac_dir"
4525 else
4526 as_dir="$ac_dir"
4527 as_dirs=
4528 while test ! -d "$as_dir"; do
4529 as_dirs="$as_dir $as_dirs"
4530 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4531 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4532 X"$as_dir" : 'X\(//\)[^/]' \| \
4533 X"$as_dir" : 'X\(//\)$' \| \
4534 X"$as_dir" : 'X\(/\)' \| \
4535 . : '\(.\)' 2>/dev/null ||
4536 echo X"$as_dir" |
4537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4539 /^X\(\/\/\)$/{ s//\1/; q; }
4540 /^X\(\/\).*/{ s//\1/; q; }
4541 s/.*/./; q'`
4542 done
4543 test ! -n "$as_dirs" || mkdir $as_dirs
4544 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4545 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4546 { (exit 1); exit 1; }; }; }
4548 rm -f $ac_file
4549 mv $tmp/config.h $ac_file
4550 fi
4551 else
4552 cat $tmp/config.h
4553 rm -f $tmp/config.h
4554 fi
4555 done
4556 _ACEOF
4557 cat >>$CONFIG_STATUS <<\_ACEOF
4560 # CONFIG_COMMANDS section.
4562 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4563 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4564 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4565 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4566 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4567 X"$ac_dest" : 'X\(//\)[^/]' \| \
4568 X"$ac_dest" : 'X\(//\)$' \| \
4569 X"$ac_dest" : 'X\(/\)' \| \
4570 . : '\(.\)' 2>/dev/null ||
4571 echo X"$ac_dest" |
4572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4574 /^X\(\/\/\)$/{ s//\1/; q; }
4575 /^X\(\/\).*/{ s//\1/; q; }
4576 s/.*/./; q'`
4577 ac_builddir=.
4579 if test "$ac_dir" != .; then
4580 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4581 # A "../" for each directory in $ac_dir_suffix.
4582 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4583 else
4584 ac_dir_suffix= ac_top_builddir=
4585 fi
4587 case $srcdir in
4588 .) # No --srcdir option. We are building in place.
4589 ac_srcdir=.
4590 if test -z "$ac_top_builddir"; then
4591 ac_top_srcdir=.
4592 else
4593 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4594 fi ;;
4595 [\\/]* | ?:[\\/]* ) # Absolute path.
4596 ac_srcdir=$srcdir$ac_dir_suffix;
4597 ac_top_srcdir=$srcdir ;;
4598 *) # Relative path.
4599 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4600 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4601 esac
4602 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4603 # absolute.
4604 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4605 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
4606 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4607 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4610 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4611 echo "$as_me: executing $ac_dest commands" >&6;}
4612 case $ac_dest in
4613 default ) case x$CONFIG_HEADERS in
4614 xconfig.h:config.in)
4615 echo > stamp-h ;;
4616 esac
4617 ;;
4618 esac
4619 done
4620 _ACEOF
4622 cat >>$CONFIG_STATUS <<\_ACEOF
4624 { (exit 0); exit 0; }
4625 _ACEOF
4626 chmod +x $CONFIG_STATUS
4627 ac_clean_files=$ac_clean_files_save
4630 # configure is writing to config.log, and then calls config.status.
4631 # config.status does its own redirection, appending to config.log.
4632 # Unfortunately, on DOS this fails, as config.log is still kept open
4633 # by configure, so config.status won't be able to write to it; its
4634 # output is simply discarded. So we exec the FD to /dev/null,
4635 # effectively closing config.log, so it can be properly (re)opened and
4636 # appended to by config.status. When coming back to configure, we
4637 # need to make the FD available again.
4638 if test "$no_create" != yes; then
4639 ac_cs_success=:
4640 ac_config_status_args=
4641 test "$silent" = yes &&
4642 ac_config_status_args="$ac_config_status_args --quiet"
4643 exec 5>/dev/null
4644 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4645 exec 5>>config.log
4646 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4647 # would make configure fail if this is the last instruction.
4648 $ac_cs_success || { (exit 1); exit 1; }
4649 fi