* dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
[deliverable/binutils-gdb.git] / gdb / testsuite / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-stabs arrange to use stabs instead of host debug format"
16 ac_help="$ac_help
17 --enable-gtk enable gdbtk graphical user interface (GUI)"
18 ac_help="$ac_help
19 --enable-shared build shared libraries [deault=yes]"
20
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
24 build=NONE
25 cache_file=./config.cache
26 exec_prefix=NONE
27 host=NONE
28 no_create=
29 nonopt=NONE
30 no_recursion=
31 prefix=NONE
32 program_prefix=NONE
33 program_suffix=NONE
34 program_transform_name=s,x,x,
35 silent=
36 site=
37 sitefile=
38 srcdir=
39 target=NONE
40 verbose=
41 x_includes=NONE
42 x_libraries=NONE
43 bindir='${exec_prefix}/bin'
44 sbindir='${exec_prefix}/sbin'
45 libexecdir='${exec_prefix}/libexec'
46 datadir='${prefix}/share'
47 sysconfdir='${prefix}/etc'
48 sharedstatedir='${prefix}/com'
49 localstatedir='${prefix}/var'
50 libdir='${exec_prefix}/lib'
51 includedir='${prefix}/include'
52 oldincludedir='/usr/include'
53 infodir='${prefix}/info'
54 mandir='${prefix}/man'
55
56 # Initialize some other variables.
57 subdirs=
58 MFLAGS= MAKEFLAGS=
59 SHELL=${CONFIG_SHELL-/bin/sh}
60 # Maximum number of lines to put in a shell here document.
61 ac_max_here_lines=12
62
63 ac_prev=
64 for ac_option
65 do
66
67 # If the previous option needs an argument, assign it.
68 if test -n "$ac_prev"; then
69 eval "$ac_prev=\$ac_option"
70 ac_prev=
71 continue
72 fi
73
74 case "$ac_option" in
75 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 *) ac_optarg= ;;
77 esac
78
79 # Accept the important Cygnus configure options, so we can diagnose typos.
80
81 case "$ac_option" in
82
83 -bindir | --bindir | --bindi | --bind | --bin | --bi)
84 ac_prev=bindir ;;
85 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
86 bindir="$ac_optarg" ;;
87
88 -build | --build | --buil | --bui | --bu)
89 ac_prev=build ;;
90 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
91 build="$ac_optarg" ;;
92
93 -cache-file | --cache-file | --cache-fil | --cache-fi \
94 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95 ac_prev=cache_file ;;
96 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
98 cache_file="$ac_optarg" ;;
99
100 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101 ac_prev=datadir ;;
102 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103 | --da=*)
104 datadir="$ac_optarg" ;;
105
106 -disable-* | --disable-*)
107 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 fi
112 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
113 eval "enable_${ac_feature}=no" ;;
114
115 -enable-* | --enable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 fi
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 case "$ac_option" in
123 *=*) ;;
124 *) ac_optarg=yes ;;
125 esac
126 eval "enable_${ac_feature}='$ac_optarg'" ;;
127
128 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
129 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
130 | --exec | --exe | --ex)
131 ac_prev=exec_prefix ;;
132 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
133 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
134 | --exec=* | --exe=* | --ex=*)
135 exec_prefix="$ac_optarg" ;;
136
137 -gas | --gas | --ga | --g)
138 # Obsolete; use --with-gas.
139 with_gas=yes ;;
140
141 -help | --help | --hel | --he)
142 # Omit some internal or obsolete options to make the list less imposing.
143 # This message is too long to be a string in the A/UX 3.1 sh.
144 cat << EOF
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
147 Configuration:
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --site-file=FILE use FILE as the site file
153 --version print the version of autoconf that created configure
154 Directory and file names:
155 --prefix=PREFIX install architecture-independent files in PREFIX
156 [$ac_default_prefix]
157 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
158 [same as prefix]
159 --bindir=DIR user executables in DIR [EPREFIX/bin]
160 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
161 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
162 --datadir=DIR read-only architecture-independent data in DIR
163 [PREFIX/share]
164 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
165 --sharedstatedir=DIR modifiable architecture-independent data in DIR
166 [PREFIX/com]
167 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
168 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
169 --includedir=DIR C header files in DIR [PREFIX/include]
170 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
171 --infodir=DIR info documentation in DIR [PREFIX/info]
172 --mandir=DIR man documentation in DIR [PREFIX/man]
173 --srcdir=DIR find the sources in DIR [configure dir or ..]
174 --program-prefix=PREFIX prepend PREFIX to installed program names
175 --program-suffix=SUFFIX append SUFFIX to installed program names
176 --program-transform-name=PROGRAM
177 run sed PROGRAM on installed program names
178 EOF
179 cat << EOF
180 Host type:
181 --build=BUILD configure for building on BUILD [BUILD=HOST]
182 --host=HOST configure for HOST [guessed]
183 --target=TARGET configure for TARGET [TARGET=HOST]
184 Features and packages:
185 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
186 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
187 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
188 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
189 --x-includes=DIR X include files are in DIR
190 --x-libraries=DIR X library files are in DIR
191 EOF
192 if test -n "$ac_help"; then
193 echo "--enable and --with options recognized:$ac_help"
194 fi
195 exit 0 ;;
196
197 -host | --host | --hos | --ho)
198 ac_prev=host ;;
199 -host=* | --host=* | --hos=* | --ho=*)
200 host="$ac_optarg" ;;
201
202 -includedir | --includedir | --includedi | --included | --include \
203 | --includ | --inclu | --incl | --inc)
204 ac_prev=includedir ;;
205 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206 | --includ=* | --inclu=* | --incl=* | --inc=*)
207 includedir="$ac_optarg" ;;
208
209 -infodir | --infodir | --infodi | --infod | --info | --inf)
210 ac_prev=infodir ;;
211 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212 infodir="$ac_optarg" ;;
213
214 -libdir | --libdir | --libdi | --libd)
215 ac_prev=libdir ;;
216 -libdir=* | --libdir=* | --libdi=* | --libd=*)
217 libdir="$ac_optarg" ;;
218
219 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220 | --libexe | --libex | --libe)
221 ac_prev=libexecdir ;;
222 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223 | --libexe=* | --libex=* | --libe=*)
224 libexecdir="$ac_optarg" ;;
225
226 -localstatedir | --localstatedir | --localstatedi | --localstated \
227 | --localstate | --localstat | --localsta | --localst \
228 | --locals | --local | --loca | --loc | --lo)
229 ac_prev=localstatedir ;;
230 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
232 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233 localstatedir="$ac_optarg" ;;
234
235 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
236 ac_prev=mandir ;;
237 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238 mandir="$ac_optarg" ;;
239
240 -nfp | --nfp | --nf)
241 # Obsolete; use --without-fp.
242 with_fp=no ;;
243
244 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
245 | --no-cr | --no-c)
246 no_create=yes ;;
247
248 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
249 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250 no_recursion=yes ;;
251
252 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
253 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
254 | --oldin | --oldi | --old | --ol | --o)
255 ac_prev=oldincludedir ;;
256 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259 oldincludedir="$ac_optarg" ;;
260
261 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
262 ac_prev=prefix ;;
263 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264 prefix="$ac_optarg" ;;
265
266 -program-prefix | --program-prefix | --program-prefi | --program-pref \
267 | --program-pre | --program-pr | --program-p)
268 ac_prev=program_prefix ;;
269 -program-prefix=* | --program-prefix=* | --program-prefi=* \
270 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271 program_prefix="$ac_optarg" ;;
272
273 -program-suffix | --program-suffix | --program-suffi | --program-suff \
274 | --program-suf | --program-su | --program-s)
275 ac_prev=program_suffix ;;
276 -program-suffix=* | --program-suffix=* | --program-suffi=* \
277 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278 program_suffix="$ac_optarg" ;;
279
280 -program-transform-name | --program-transform-name \
281 | --program-transform-nam | --program-transform-na \
282 | --program-transform-n | --program-transform- \
283 | --program-transform | --program-transfor \
284 | --program-transfo | --program-transf \
285 | --program-trans | --program-tran \
286 | --progr-tra | --program-tr | --program-t)
287 ac_prev=program_transform_name ;;
288 -program-transform-name=* | --program-transform-name=* \
289 | --program-transform-nam=* | --program-transform-na=* \
290 | --program-transform-n=* | --program-transform-=* \
291 | --program-transform=* | --program-transfor=* \
292 | --program-transfo=* | --program-transf=* \
293 | --program-trans=* | --program-tran=* \
294 | --progr-tra=* | --program-tr=* | --program-t=*)
295 program_transform_name="$ac_optarg" ;;
296
297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
298 | -silent | --silent | --silen | --sile | --sil)
299 silent=yes ;;
300
301 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
302 ac_prev=sbindir ;;
303 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
304 | --sbi=* | --sb=*)
305 sbindir="$ac_optarg" ;;
306
307 -sharedstatedir | --sharedstatedir | --sharedstatedi \
308 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
309 | --sharedst | --shareds | --shared | --share | --shar \
310 | --sha | --sh)
311 ac_prev=sharedstatedir ;;
312 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
313 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
315 | --sha=* | --sh=*)
316 sharedstatedir="$ac_optarg" ;;
317
318 -site | --site | --sit)
319 ac_prev=site ;;
320 -site=* | --site=* | --sit=*)
321 site="$ac_optarg" ;;
322
323 -site-file | --site-file | --site-fil | --site-fi | --site-f)
324 ac_prev=sitefile ;;
325 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
326 sitefile="$ac_optarg" ;;
327
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 ac_prev=srcdir ;;
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
332
333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334 | --syscon | --sysco | --sysc | --sys | --sy)
335 ac_prev=sysconfdir ;;
336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338 sysconfdir="$ac_optarg" ;;
339
340 -target | --target | --targe | --targ | --tar | --ta | --t)
341 ac_prev=target ;;
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
344
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
346 verbose=yes ;;
347
348 -version | --version | --versio | --versi | --vers)
349 echo "configure generated by autoconf version 2.13"
350 exit 0 ;;
351
352 -with-* | --with-*)
353 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 fi
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 case "$ac_option" in
360 *=*) ;;
361 *) ac_optarg=yes ;;
362 esac
363 eval "with_${ac_package}='$ac_optarg'" ;;
364
365 -without-* | --without-*)
366 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 fi
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
373
374 --x)
375 # Obsolete; use --with-x.
376 with_x=yes ;;
377
378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379 | --x-incl | --x-inc | --x-in | --x-i)
380 ac_prev=x_includes ;;
381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383 x_includes="$ac_optarg" ;;
384
385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387 ac_prev=x_libraries ;;
388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390 x_libraries="$ac_optarg" ;;
391
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 ;;
394
395 *)
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 fi
399 if test "x$nonopt" != xNONE; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401 fi
402 nonopt="$ac_option"
403 ;;
404
405 esac
406 done
407
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410 fi
411
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413
414 # File descriptor usage:
415 # 0 standard input
416 # 1 file creation
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
423 exec 6>/dev/null
424 else
425 exec 6>&1
426 fi
427 exec 5>./config.log
428
429 echo "\
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
432 " 1>&5
433
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
436 ac_configure_args=
437 for ac_arg
438 do
439 case "$ac_arg" in
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441 | --no-cr | --no-c) ;;
442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447 esac
448 done
449
450 # NLS nuisances.
451 # Only set these to C if already set. These must not be set unconditionally
452 # because not all systems understand e.g. LANG=C (notably SCO).
453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454 # Non-C LC_CTYPE values break the ctype check.
455 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
459
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
463 echo > confdefs.h
464
465 # A filename unique to this package, relative to the directory that
466 # configure is in, which we can look for to find out if srcdir is correct.
467 ac_unique_file=gdb.base
468
469 # Find the source files, if location was not specified.
470 if test -z "$srcdir"; then
471 ac_srcdir_defaulted=yes
472 # Try the directory containing this script, then its parent.
473 ac_prog=$0
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476 srcdir=$ac_confdir
477 if test ! -r $srcdir/$ac_unique_file; then
478 srcdir=..
479 fi
480 else
481 ac_srcdir_defaulted=no
482 fi
483 if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 else
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488 fi
489 fi
490 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$sitefile"; then
494 if test -z "$CONFIG_SITE"; then
495 if test "x$prefix" != xNONE; then
496 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497 else
498 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499 fi
500 fi
501 else
502 CONFIG_SITE="$sitefile"
503 fi
504 for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
507 . "$ac_site_file"
508 fi
509 done
510
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
513 . $cache_file
514 else
515 echo "creating cache $cache_file"
516 > $cache_file
517 fi
518
519 ac_ext=c
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
525
526 ac_exeext=
527 ac_objext=o
528 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
531 ac_n= ac_c='
532 ' ac_t=' '
533 else
534 ac_n=-n ac_c= ac_t=
535 fi
536 else
537 ac_n= ac_c='\c' ac_t=
538 fi
539
540
541
542 ac_aux_dir=
543 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
544 if test -f $ac_dir/install-sh; then
545 ac_aux_dir=$ac_dir
546 ac_install_sh="$ac_aux_dir/install-sh -c"
547 break
548 elif test -f $ac_dir/install.sh; then
549 ac_aux_dir=$ac_dir
550 ac_install_sh="$ac_aux_dir/install.sh -c"
551 break
552 fi
553 done
554 if test -z "$ac_aux_dir"; then
555 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
556 fi
557 ac_config_guess=$ac_aux_dir/config.guess
558 ac_config_sub=$ac_aux_dir/config.sub
559 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
560
561 echo $ac_n "checking build system type""... $ac_c" 1>&6
562 echo "configure:563: checking build system type" >&5
563
564 build_alias=$build
565 case "$build_alias" in
566 NONE)
567 case $nonopt in
568 NONE) build_alias=$host_alias ;;
569 *) build_alias=$nonopt ;;
570 esac ;;
571 esac
572
573 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
574 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
575 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
576 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
577 echo "$ac_t""$build" 1>&6
578
579
580 # Make sure we can run config.sub.
581 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
582 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
583 fi
584
585 echo $ac_n "checking host system type""... $ac_c" 1>&6
586 echo "configure:587: checking host system type" >&5
587
588 host_alias=$host
589 case "$host_alias" in
590 NONE)
591 case $nonopt in
592 NONE)
593 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
594 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
595 fi ;;
596 *) host_alias=$nonopt ;;
597 esac ;;
598 esac
599
600 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
601 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
602 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
603 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
604 echo "$ac_t""$host" 1>&6
605
606 echo $ac_n "checking target system type""... $ac_c" 1>&6
607 echo "configure:608: checking target system type" >&5
608
609 target_alias=$target
610 case "$target_alias" in
611 NONE)
612 case $nonopt in
613 NONE) target_alias=$host_alias ;;
614 *) target_alias=$nonopt ;;
615 esac ;;
616 esac
617
618 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
619 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$target" 1>&6
623
624
625 # Directories that need to be configured in all configurations.
626 configdirs=
627
628 # Add HP-specific tests when appropriate.
629 case $target in
630 hppa*-*-hpux*)
631 configdirs="$configdirs gdb.hp" ;;
632 esac
633
634 # With stabs.
635 # Check whether --with-stabs or --without-stabs was given.
636 if test "${with_stabs+set}" = set; then
637 withval="$with_stabs"
638 :
639 else
640 # We enable stabs tests by default on selected targets.
641 case $target in
642 powerpc-*-aix* \
643 | rs6000-*-aix* \
644 | *-*-*bsd* \
645 | *-*-go32* \
646 | *-*-linux* \
647 | *-*-lynxos* \
648 | *-sun-* \
649 | hppa*-*-* \
650 | *-*-elf* \
651 )
652 with_stabs=yes ;;
653 *)
654 with_stabs=no ;;
655 esac
656 fi
657
658
659 # Add stabs tests when appropriate.
660 if test $with_stabs = yes; then
661 configdirs="$configdirs gdb.stabs"
662 fi
663
664 # Enable gdbtk.
665 # Check whether --enable-gdbtk or --disable-gdbtk was given.
666 if test "${enable_gdbtk+set}" = set; then
667 enableval="$enable_gdbtk"
668 :
669 else
670 if test -d $srcdir/gdb.gdbtk; then
671 enable_gdbtk=yes
672 else
673 enable_gdbtk=no
674 fi
675 fi
676
677 # We unconditionally disable gdbtk tests on selected platforms.
678 case $host_os in
679 go32* | windows*)
680 enable_gdbtk=no ;;
681 esac
682
683 # Add gdbtk tests when appropriate.
684 if test $enable_gdbtk = yes; then
685 configdirs="$configdirs gdb.gdbtk"
686 fi
687
688 # Enable shared libraries.
689 # Check whether --enable-shared or --disable-shared was given.
690 if test "${enable_shared+set}" = set; then
691 enableval="$enable_shared"
692 :
693 else
694 enable_shared=yes
695 fi
696
697
698 # If we have shared libraries, try to set RPATH_ENVVAR reasonably,
699 # such that we can find the shared libraries in the build tree.
700 if test $enable_shared = no; then
701 # The variable `RPATH_ENVVAR' itself is not likely to be used on any
702 # platform.
703 RPATH_ENVVAR=RPATH_ENVVAR
704 else
705 # The variable `LD_LIBRARY_PATH' is used on most platforms.
706 RPATH_ENVVAR=LD_LIBRARY_PATH
707 # The following exceptions are taken from Libtool 1.4.3.
708 case $host_os in
709 aix*)
710 if test $host_cpu != ia64; then
711 RPATH_ENVVAR=LIBPATH
712 fi ;;
713 darwin* | rhapsody*)
714 RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
715 hpux*)
716 RPATH_ENVVAR=SHLIB_PATH ;;
717 esac
718 fi
719
720
721 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
722 echo "configure:723: checking how to run the C preprocessor" >&5
723 # On Suns, sometimes $CPP names a directory.
724 if test -n "$CPP" && test -d "$CPP"; then
725 CPP=
726 fi
727 if test -z "$CPP"; then
728 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
730 else
731 # This must be in double quotes, not single quotes, because CPP may get
732 # substituted into the Makefile and "${CC-cc}" will confuse make.
733 CPP="${CC-cc} -E"
734 # On the NeXT, cc -E runs the code through the compiler's parser,
735 # not just through cpp.
736 cat > conftest.$ac_ext <<EOF
737 #line 738 "configure"
738 #include "confdefs.h"
739 #include <assert.h>
740 Syntax Error
741 EOF
742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
743 { (eval echo configure:744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
745 if test -z "$ac_err"; then
746 :
747 else
748 echo "$ac_err" >&5
749 echo "configure: failed program was:" >&5
750 cat conftest.$ac_ext >&5
751 rm -rf conftest*
752 CPP="${CC-cc} -E -traditional-cpp"
753 cat > conftest.$ac_ext <<EOF
754 #line 755 "configure"
755 #include "confdefs.h"
756 #include <assert.h>
757 Syntax Error
758 EOF
759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
760 { (eval echo configure:761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
762 if test -z "$ac_err"; then
763 :
764 else
765 echo "$ac_err" >&5
766 echo "configure: failed program was:" >&5
767 cat conftest.$ac_ext >&5
768 rm -rf conftest*
769 CPP="${CC-cc} -nologo -E"
770 cat > conftest.$ac_ext <<EOF
771 #line 772 "configure"
772 #include "confdefs.h"
773 #include <assert.h>
774 Syntax Error
775 EOF
776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
777 { (eval echo configure:778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
779 if test -z "$ac_err"; then
780 :
781 else
782 echo "$ac_err" >&5
783 echo "configure: failed program was:" >&5
784 cat conftest.$ac_ext >&5
785 rm -rf conftest*
786 CPP=/lib/cpp
787 fi
788 rm -f conftest*
789 fi
790 rm -f conftest*
791 fi
792 rm -f conftest*
793 ac_cv_prog_CPP="$CPP"
794 fi
795 CPP="$ac_cv_prog_CPP"
796 else
797 ac_cv_prog_CPP="$CPP"
798 fi
799 echo "$ac_t""$CPP" 1>&6
800
801 for ac_hdr in pthread.h
802 do
803 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
805 echo "configure:806: checking for $ac_hdr" >&5
806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
808 else
809 cat > conftest.$ac_ext <<EOF
810 #line 811 "configure"
811 #include "confdefs.h"
812 #include <$ac_hdr>
813 EOF
814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
815 { (eval echo configure:816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
817 if test -z "$ac_err"; then
818 rm -rf conftest*
819 eval "ac_cv_header_$ac_safe=yes"
820 else
821 echo "$ac_err" >&5
822 echo "configure: failed program was:" >&5
823 cat conftest.$ac_ext >&5
824 rm -rf conftest*
825 eval "ac_cv_header_$ac_safe=no"
826 fi
827 rm -f conftest*
828 fi
829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
830 echo "$ac_t""yes" 1>&6
831 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
832 cat >> confdefs.h <<EOF
833 #define $ac_tr_hdr 1
834 EOF
835
836 else
837 echo "$ac_t""no" 1>&6
838 fi
839 done
840
841
842 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
843 echo "configure:844: checking for Cygwin environment" >&5
844 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
845 echo $ac_n "(cached) $ac_c" 1>&6
846 else
847 cat > conftest.$ac_ext <<EOF
848 #line 849 "configure"
849 #include "confdefs.h"
850
851 int main() {
852
853 #ifndef __CYGWIN__
854 #define __CYGWIN__ __CYGWIN32__
855 #endif
856 return __CYGWIN__;
857 ; return 0; }
858 EOF
859 if { (eval echo configure:860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
860 rm -rf conftest*
861 ac_cv_cygwin=yes
862 else
863 echo "configure: failed program was:" >&5
864 cat conftest.$ac_ext >&5
865 rm -rf conftest*
866 ac_cv_cygwin=no
867 fi
868 rm -f conftest*
869 rm -f conftest*
870 fi
871
872 echo "$ac_t""$ac_cv_cygwin" 1>&6
873 CYGWIN=
874 test "$ac_cv_cygwin" = yes && CYGWIN=yes
875 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
876 echo "configure:877: checking for mingw32 environment" >&5
877 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
878 echo $ac_n "(cached) $ac_c" 1>&6
879 else
880 cat > conftest.$ac_ext <<EOF
881 #line 882 "configure"
882 #include "confdefs.h"
883
884 int main() {
885 return __MINGW32__;
886 ; return 0; }
887 EOF
888 if { (eval echo configure:889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
889 rm -rf conftest*
890 ac_cv_mingw32=yes
891 else
892 echo "configure: failed program was:" >&5
893 cat conftest.$ac_ext >&5
894 rm -rf conftest*
895 ac_cv_mingw32=no
896 fi
897 rm -f conftest*
898 rm -f conftest*
899 fi
900
901 echo "$ac_t""$ac_cv_mingw32" 1>&6
902 MINGW32=
903 test "$ac_cv_mingw32" = yes && MINGW32=yes
904
905
906 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
907 echo "configure:908: checking for executable suffix" >&5
908 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
910 else
911 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
912 ac_cv_exeext=.exe
913 else
914 rm -f conftest*
915 echo 'int main () { return 0; }' > conftest.$ac_ext
916 ac_cv_exeext=
917 if { (eval echo configure:918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
918 for file in conftest.*; do
919 case $file in
920 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
921 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
922 esac
923 done
924 else
925 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
926 fi
927 rm -f conftest*
928 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
929 fi
930 fi
931
932 EXEEXT=""
933 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
934 echo "$ac_t""${ac_cv_exeext}" 1>&6
935 ac_exeext=$EXEEXT
936
937
938 subdirs="$configdirs"
939
940 trap '' 1 2 15
941 cat > confcache <<\EOF
942 # This file is a shell script that caches the results of configure
943 # tests run on this system so they can be shared between configure
944 # scripts and configure runs. It is not useful on other systems.
945 # If it contains results you don't want to keep, you may remove or edit it.
946 #
947 # By default, configure uses ./config.cache as the cache file,
948 # creating it if it does not exist already. You can give configure
949 # the --cache-file=FILE option to use a different cache file; that is
950 # what configure does when it calls configure scripts in
951 # subdirectories, so they share the cache.
952 # Giving --cache-file=/dev/null disables caching, for debugging configure.
953 # config.status only pays attention to the cache file if you give it the
954 # --recheck option to rerun configure.
955 #
956 EOF
957 # The following way of writing the cache mishandles newlines in values,
958 # but we know of no workaround that is simple, portable, and efficient.
959 # So, don't put newlines in cache variables' values.
960 # Ultrix sh set writes to stderr and can't be redirected directly,
961 # and sets the high bit in the cache file unless we assign to the vars.
962 (set) 2>&1 |
963 case `(ac_space=' '; set | grep ac_space) 2>&1` in
964 *ac_space=\ *)
965 # `set' does not quote correctly, so add quotes (double-quote substitution
966 # turns \\\\ into \\, and sed turns \\ into \).
967 sed -n \
968 -e "s/'/'\\\\''/g" \
969 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
970 ;;
971 *)
972 # `set' quotes correctly as required by POSIX, so do not add quotes.
973 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
974 ;;
975 esac >> confcache
976 if cmp -s $cache_file confcache; then
977 :
978 else
979 if test -w $cache_file; then
980 echo "updating cache $cache_file"
981 cat confcache > $cache_file
982 else
983 echo "not updating unwritable cache $cache_file"
984 fi
985 fi
986 rm -f confcache
987
988 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
989
990 test "x$prefix" = xNONE && prefix=$ac_default_prefix
991 # Let make expand exec_prefix.
992 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
993
994 # Any assignment to VPATH causes Sun make to only execute
995 # the first set of double-colon rules, so remove it if not needed.
996 # If there is a colon in the path, we need to keep it.
997 if test "x$srcdir" = x.; then
998 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
999 fi
1000
1001 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1002
1003 # Transform confdefs.h into DEFS.
1004 # Protect against shell expansion while executing Makefile rules.
1005 # Protect against Makefile macro expansion.
1006 cat > conftest.defs <<\EOF
1007 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1008 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1009 s%\[%\\&%g
1010 s%\]%\\&%g
1011 s%\$%$$%g
1012 EOF
1013 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1014 rm -f conftest.defs
1015
1016
1017 # Without the "./", some shells look in PATH for config.status.
1018 : ${CONFIG_STATUS=./config.status}
1019
1020 echo creating $CONFIG_STATUS
1021 rm -f $CONFIG_STATUS
1022 cat > $CONFIG_STATUS <<EOF
1023 #! /bin/sh
1024 # Generated automatically by configure.
1025 # Run this file to recreate the current configuration.
1026 # This directory was configured as follows,
1027 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1028 #
1029 # $0 $ac_configure_args
1030 #
1031 # Compiler output produced by configure, useful for debugging
1032 # configure, is in ./config.log if it exists.
1033
1034 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1035 for ac_option
1036 do
1037 case "\$ac_option" in
1038 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1039 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1040 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1041 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1042 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1043 exit 0 ;;
1044 -help | --help | --hel | --he | --h)
1045 echo "\$ac_cs_usage"; exit 0 ;;
1046 *) echo "\$ac_cs_usage"; exit 1 ;;
1047 esac
1048 done
1049
1050 ac_given_srcdir=$srcdir
1051
1052 trap 'rm -fr `echo "Makefile \
1053 gdb.ada/Makefile gdb.ada/gnat_ada.gpr:gdb.ada/gnat_ada.gin \
1054 gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \
1055 gdb.cp/Makefile gdb.disasm/Makefile gdb.java/Makefile gdb.mi/Makefile \
1056 gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1057 EOF
1058 cat >> $CONFIG_STATUS <<EOF
1059
1060 # Protect against being on the right side of a sed subst in config.status.
1061 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1062 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1063 $ac_vpsub
1064 $extrasub
1065 s%@SHELL@%$SHELL%g
1066 s%@CFLAGS@%$CFLAGS%g
1067 s%@CPPFLAGS@%$CPPFLAGS%g
1068 s%@CXXFLAGS@%$CXXFLAGS%g
1069 s%@FFLAGS@%$FFLAGS%g
1070 s%@DEFS@%$DEFS%g
1071 s%@LDFLAGS@%$LDFLAGS%g
1072 s%@LIBS@%$LIBS%g
1073 s%@exec_prefix@%$exec_prefix%g
1074 s%@prefix@%$prefix%g
1075 s%@program_transform_name@%$program_transform_name%g
1076 s%@bindir@%$bindir%g
1077 s%@sbindir@%$sbindir%g
1078 s%@libexecdir@%$libexecdir%g
1079 s%@datadir@%$datadir%g
1080 s%@sysconfdir@%$sysconfdir%g
1081 s%@sharedstatedir@%$sharedstatedir%g
1082 s%@localstatedir@%$localstatedir%g
1083 s%@libdir@%$libdir%g
1084 s%@includedir@%$includedir%g
1085 s%@oldincludedir@%$oldincludedir%g
1086 s%@infodir@%$infodir%g
1087 s%@mandir@%$mandir%g
1088 s%@build@%$build%g
1089 s%@build_alias@%$build_alias%g
1090 s%@build_cpu@%$build_cpu%g
1091 s%@build_vendor@%$build_vendor%g
1092 s%@build_os@%$build_os%g
1093 s%@host@%$host%g
1094 s%@host_alias@%$host_alias%g
1095 s%@host_cpu@%$host_cpu%g
1096 s%@host_vendor@%$host_vendor%g
1097 s%@host_os@%$host_os%g
1098 s%@target@%$target%g
1099 s%@target_alias@%$target_alias%g
1100 s%@target_cpu@%$target_cpu%g
1101 s%@target_vendor@%$target_vendor%g
1102 s%@target_os@%$target_os%g
1103 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
1104 s%@CPP@%$CPP%g
1105 s%@EXEEXT@%$EXEEXT%g
1106 s%@subdirs@%$subdirs%g
1107
1108 CEOF
1109 EOF
1110
1111 cat >> $CONFIG_STATUS <<\EOF
1112
1113 # Split the substitutions into bite-sized pieces for seds with
1114 # small command number limits, like on Digital OSF/1 and HP-UX.
1115 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1116 ac_file=1 # Number of current file.
1117 ac_beg=1 # First line for current file.
1118 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1119 ac_more_lines=:
1120 ac_sed_cmds=""
1121 while $ac_more_lines; do
1122 if test $ac_beg -gt 1; then
1123 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1124 else
1125 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1126 fi
1127 if test ! -s conftest.s$ac_file; then
1128 ac_more_lines=false
1129 rm -f conftest.s$ac_file
1130 else
1131 if test -z "$ac_sed_cmds"; then
1132 ac_sed_cmds="sed -f conftest.s$ac_file"
1133 else
1134 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1135 fi
1136 ac_file=`expr $ac_file + 1`
1137 ac_beg=$ac_end
1138 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1139 fi
1140 done
1141 if test -z "$ac_sed_cmds"; then
1142 ac_sed_cmds=cat
1143 fi
1144 EOF
1145
1146 cat >> $CONFIG_STATUS <<EOF
1147
1148 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
1149 gdb.ada/Makefile gdb.ada/gnat_ada.gpr:gdb.ada/gnat_ada.gin \
1150 gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \
1151 gdb.cp/Makefile gdb.disasm/Makefile gdb.java/Makefile gdb.mi/Makefile \
1152 gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile"}
1153 EOF
1154 cat >> $CONFIG_STATUS <<\EOF
1155 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1156 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1157 case "$ac_file" in
1158 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1159 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1160 *) ac_file_in="${ac_file}.in" ;;
1161 esac
1162
1163 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1164
1165 # Remove last slash and all that follows it. Not all systems have dirname.
1166 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1167 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1168 # The file is in a subdirectory.
1169 test ! -d "$ac_dir" && mkdir "$ac_dir"
1170 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1171 # A "../" for each directory in $ac_dir_suffix.
1172 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1173 else
1174 ac_dir_suffix= ac_dots=
1175 fi
1176
1177 case "$ac_given_srcdir" in
1178 .) srcdir=.
1179 if test -z "$ac_dots"; then top_srcdir=.
1180 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1181 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1182 *) # Relative path.
1183 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1184 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1185 esac
1186
1187
1188 echo creating "$ac_file"
1189 rm -f "$ac_file"
1190 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1191 case "$ac_file" in
1192 *Makefile*) ac_comsub="1i\\
1193 # $configure_input" ;;
1194 *) ac_comsub= ;;
1195 esac
1196
1197 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1198 sed -e "$ac_comsub
1199 s%@configure_input@%$configure_input%g
1200 s%@srcdir@%$srcdir%g
1201 s%@top_srcdir@%$top_srcdir%g
1202 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1203 fi; done
1204 rm -f conftest.s*
1205
1206 EOF
1207 cat >> $CONFIG_STATUS <<EOF
1208
1209 EOF
1210 cat >> $CONFIG_STATUS <<\EOF
1211
1212 exit 0
1213 EOF
1214 chmod +x $CONFIG_STATUS
1215 rm -fr confdefs* $ac_clean_files
1216 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1217
1218 if test "$no_recursion" != yes; then
1219
1220 # Remove --cache-file and --srcdir arguments so they do not pile up.
1221 ac_sub_configure_args=
1222 ac_prev=
1223 for ac_arg in $ac_configure_args; do
1224 if test -n "$ac_prev"; then
1225 ac_prev=
1226 continue
1227 fi
1228 case "$ac_arg" in
1229 -cache-file | --cache-file | --cache-fil | --cache-fi \
1230 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1231 ac_prev=cache_file ;;
1232 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1233 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1234 ;;
1235 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1236 ac_prev=srcdir ;;
1237 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1238 ;;
1239 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1240 esac
1241 done
1242
1243 for ac_config_dir in $configdirs; do
1244
1245 # Do not complain, so a configure script can configure whichever
1246 # parts of a large source tree are present.
1247 if test ! -d $srcdir/$ac_config_dir; then
1248 continue
1249 fi
1250
1251 echo configuring in $ac_config_dir
1252
1253 case "$srcdir" in
1254 .) ;;
1255 *)
1256 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1257 else
1258 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1259 fi
1260 ;;
1261 esac
1262
1263 ac_popdir=`pwd`
1264 cd $ac_config_dir
1265
1266 # A "../" for each directory in /$ac_config_dir.
1267 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1268
1269 case "$srcdir" in
1270 .) # No --srcdir option. We are building in place.
1271 ac_sub_srcdir=$srcdir ;;
1272 /*) # Absolute path.
1273 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1274 *) # Relative path.
1275 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1276 esac
1277
1278 # Check for guested configure; otherwise get Cygnus style configure.
1279 if test -f $ac_sub_srcdir/configure; then
1280 ac_sub_configure=$ac_sub_srcdir/configure
1281 elif test -f $ac_sub_srcdir/configure.in; then
1282 ac_sub_configure=$ac_configure
1283 else
1284 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1285 ac_sub_configure=
1286 fi
1287
1288 # The recursion is here.
1289 if test -n "$ac_sub_configure"; then
1290
1291 # Make the cache file name correct relative to the subdirectory.
1292 case "$cache_file" in
1293 /*) ac_sub_cache_file=$cache_file ;;
1294 *) # Relative path.
1295 ac_sub_cache_file="$ac_dots$cache_file" ;;
1296 esac
1297
1298 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1299 # The eval makes quoting arguments work.
1300 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1301 then :
1302 else
1303 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1304 fi
1305 fi
1306
1307 cd $ac_popdir
1308 done
1309 fi
1310
This page took 0.063972 seconds and 4 git commands to generate.