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