* inftarg.c (child_thread_alive): New function to see if a
[deliverable/binutils-gdb.git] / gdb / configure
CommitLineData
5436fc65
C
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.3
5# Copyright (C) 1992, 1993, 1994 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-netrom "
16ac_help="$ac_help
17 --enable-gdbtk "
18ac_help="$ac_help
19 --with-x use the X Window System"
20
21# Initialize some variables set by options.
22# The variables have the same names as the options, with
23# dashes changed to underlines.
24build=NONE
25cache_file=./config.cache
26exec_prefix=NONE
27host=NONE
28no_create=
29nonopt=NONE
30no_recursion=
31prefix=NONE
32program_prefix=NONE
33program_suffix=NONE
34program_transform_name=s,x,x,
35silent=
36site=
37srcdir=
38target=NONE
39verbose=
40x_includes=NONE
41x_libraries=NONE
42
43# Initialize some other variables.
44subdirs=
45
46ac_prev=
47for ac_option
48do
49
50 # If the previous option needs an argument, assign it.
51 if test -n "$ac_prev"; then
52 eval "$ac_prev=\$ac_option"
53 ac_prev=
54 continue
55 fi
56
57 case "$ac_option" in
58 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
59 *) ac_optarg= ;;
60 esac
61
62 # Accept the important Cygnus configure options, so we can diagnose typos.
63
64 case "$ac_option" in
65
66 -build | --build | --buil | --bui | --bu | --b)
67 ac_prev=build ;;
68 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
69 build="$ac_optarg" ;;
70
71 -cache-file | --cache-file | --cache-fil | --cache-fi \
72 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
73 ac_prev=cache_file ;;
74 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
75 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
76 cache_file="$ac_optarg" ;;
77
78 -disable-* | --disable-*)
79 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
80 # Reject names that are not valid shell variable names.
81 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
82 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
83 fi
84 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
85 eval "enable_${ac_feature}=no" ;;
86
87 -enable-* | --enable-*)
88 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
89 # Reject names that are not valid shell variable names.
90 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
91 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
92 fi
93 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
94 case "$ac_option" in
95 *=*) ;;
96 *) ac_optarg=yes ;;
97 esac
98 eval "enable_${ac_feature}='$ac_optarg'" ;;
99
100 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
101 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
102 | --exec | --exe | --ex)
103 ac_prev=exec_prefix ;;
104 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
105 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
106 | --exec=* | --exe=* | --ex=*)
107 exec_prefix="$ac_optarg" ;;
108
109 -gas | --gas | --ga | --g)
110 # Obsolete; use --with-gas.
111 with_gas=yes ;;
112
113 -help | --help | --hel | --he)
114 # Omit some internal or obsolete options to make the list less imposing.
115 # This message is too long to be a string in the A/UX 3.1 sh.
116 cat << EOF
117Usage: configure [options] [host]
118Options: [defaults in brackets after descriptions]
119Configuration:
120 --cache-file=FILE cache test results in FILE
121 --help print this message
122 --no-create do not create output files
123 --quiet, --silent do not print \`checking...' messages
124 --version print the version of autoconf that created configure
125Directory and file names:
126 --prefix=PREFIX install architecture-independent files in PREFIX
127 [$ac_default_prefix]
128 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
129 [same as prefix]
130 --srcdir=DIR find the sources in DIR [configure dir or ..]
131 --program-prefix=PREFIX prepend PREFIX to installed program names
132 --program-suffix=SUFFIX append SUFFIX to installed program names
133 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
134Host type:
135 --build=BUILD configure for building on BUILD [BUILD=HOST]
136 --host=HOST configure for HOST [guessed]
137 --target=TARGET configure for TARGET [TARGET=HOST]
138Features and packages:
139 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
140 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
141 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
142 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
143 --x-includes=DIR X include files are in DIR
144 --x-libraries=DIR X library files are in DIR
145--enable and --with options recognized:$ac_help
146EOF
147 exit 0 ;;
148
149 -host | --host | --hos | --ho)
150 ac_prev=host ;;
151 -host=* | --host=* | --hos=* | --ho=*)
152 host="$ac_optarg" ;;
153
154 -nfp | --nfp | --nf)
155 # Obsolete; use --without-fp.
156 with_fp=no ;;
157
158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
159 | --no-cr | --no-c)
160 no_create=yes ;;
161
162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
164 no_recursion=yes ;;
165
166 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
167 ac_prev=prefix ;;
168 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
169 prefix="$ac_optarg" ;;
170
171 -program-prefix | --program-prefix | --program-prefi | --program-pref \
172 | --program-pre | --program-pr | --program-p)
173 ac_prev=program_prefix ;;
174 -program-prefix=* | --program-prefix=* | --program-prefi=* \
175 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
176 program_prefix="$ac_optarg" ;;
177
178 -program-suffix | --program-suffix | --program-suffi | --program-suff \
179 | --program-suf | --program-su | --program-s)
180 ac_prev=program_suffix ;;
181 -program-suffix=* | --program-suffix=* | --program-suffi=* \
182 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
183 program_suffix="$ac_optarg" ;;
184
185 -program-transform-name | --program-transform-name \
186 | --program-transform-nam | --program-transform-na \
187 | --program-transform-n | --program-transform- \
188 | --program-transform | --program-transfor \
189 | --program-transfo | --program-transf \
190 | --program-trans | --program-tran \
191 | --progr-tra | --program-tr | --program-t)
192 ac_prev=program_transform_name ;;
193 -program-transform-name=* | --program-transform-name=* \
194 | --program-transform-nam=* | --program-transform-na=* \
195 | --program-transform-n=* | --program-transform-=* \
196 | --program-transform=* | --program-transfor=* \
197 | --program-transfo=* | --program-transf=* \
198 | --program-trans=* | --program-tran=* \
199 | --progr-tra=* | --program-tr=* | --program-t=*)
200 program_transform_name="$ac_optarg" ;;
201
202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
203 | -silent | --silent | --silen | --sile | --sil)
204 silent=yes ;;
205
206 -site | --site | --sit)
207 ac_prev=site ;;
208 -site=* | --site=* | --sit=*)
209 site="$ac_optarg" ;;
210
211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
212 ac_prev=srcdir ;;
213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
214 srcdir="$ac_optarg" ;;
215
216 -target | --target | --targe | --targ | --tar | --ta | --t)
217 ac_prev=target ;;
218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
219 target="$ac_optarg" ;;
220
221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
222 verbose=yes ;;
223
224 -version | --version | --versio | --versi | --vers)
225 echo "configure generated by autoconf version 2.3"
226 exit 0 ;;
227
228 -with-* | --with-*)
229 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
230 # Reject names that are not valid shell variable names.
231 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
232 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
233 fi
234 ac_package=`echo $ac_package| sed 's/-/_/g'`
235 case "$ac_option" in
236 *=*) ;;
237 *) ac_optarg=yes ;;
238 esac
239 eval "with_${ac_package}='$ac_optarg'" ;;
240
241 -without-* | --without-*)
242 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
243 # Reject names that are not valid shell variable names.
244 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
245 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
246 fi
247 ac_package=`echo $ac_package| sed 's/-/_/g'`
248 eval "with_${ac_package}=no" ;;
249
250 --x)
251 # Obsolete; use --with-x.
252 with_x=yes ;;
253
254 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
255 | --x-incl | --x-inc | --x-in | --x-i)
256 ac_prev=x_includes ;;
257 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
258 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
259 x_includes="$ac_optarg" ;;
260
261 -x-libraries | --x-libraries | --x-librarie | --x-librari \
262 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
263 ac_prev=x_libraries ;;
264 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
265 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
266 x_libraries="$ac_optarg" ;;
267
268 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
269 ;;
270
271 *)
272 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
273 echo "configure: warning: $ac_option: invalid host type" 1>&2
274 fi
275 if test "x$nonopt" != xNONE; then
276 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
277 fi
278 nonopt="$ac_option"
279 ;;
280
281 esac
282done
283
284if test -n "$ac_prev"; then
285 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
286fi
287
288trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
289
290# File descriptor usage:
291# 0 standard input
292# 1 file creation
293# 2 errors and warnings
294# 3 some systems may open it to /dev/tty
295# 4 used on the Kubota Titan
296# 6 checking for... messages and results
297# 5 compiler messages saved in config.log
298if test "$silent" = yes; then
299 exec 6>/dev/null
300else
301 exec 6>&1
302fi
303exec 5>./config.log
304
305echo "\
306This file contains any messages produced by compilers while
307running configure, to aid debugging if configure makes a mistake.
308" 1>&5
309
310# Strip out --no-create and --no-recursion so they do not pile up.
311# Also quote any args containing shell metacharacters.
312ac_configure_args=
313for ac_arg
314do
315 case "$ac_arg" in
316 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
317 | --no-cr | --no-c) ;;
318 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
319 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
320 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
321 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
322 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
323 esac
324done
325
326# NLS nuisances.
327# Only set LANG and LC_ALL to C if already set.
328# These must not be set unconditionally because not all systems understand
329# e.g. LANG=C (notably SCO).
330if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
331if test "${LANG+set}" = set; then LANG=C; export LANG; fi
332
333# confdefs.h avoids OS command line length limits that DEFS can exceed.
334rm -rf conftest* confdefs.h
335# AIX cpp loses on an empty file, so make sure it contains at least a newline.
336echo > confdefs.h
337
338# A filename unique to this package, relative to the directory that
339# configure is in, which we can look for to find out if srcdir is correct.
340ac_unique_file=main.c
341
342# Find the source files, if location was not specified.
343if test -z "$srcdir"; then
344 ac_srcdir_defaulted=yes
345 # Try the directory containing this script, then its parent.
346 ac_prog=$0
347 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
348 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
349 srcdir=$ac_confdir
350 if test ! -r $srcdir/$ac_unique_file; then
351 srcdir=..
352 fi
353else
354 ac_srcdir_defaulted=no
355fi
356if test ! -r $srcdir/$ac_unique_file; then
357 if test "$ac_srcdir_defaulted" = yes; then
358 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
359 else
360 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
361 fi
362fi
363srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
364
365# Prefer explicitly selected file to automatically selected ones.
366if test -z "$CONFIG_SITE"; then
367 if test "x$prefix" != xNONE; then
368 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
369 else
370 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
371 fi
372fi
373for ac_site_file in $CONFIG_SITE; do
374 if test -r "$ac_site_file"; then
375 echo "loading site script $ac_site_file"
376 . "$ac_site_file"
377 fi
378done
379
380if test -r "$cache_file"; then
381 echo "loading cache $cache_file"
382 . $cache_file
383else
384 echo "creating cache $cache_file"
385 > $cache_file
386fi
387
388ac_ext=c
389# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
390ac_cpp='$CPP $CPPFLAGS'
391ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
392ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
393
394if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
395 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
396 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
397 ac_n= ac_c='
398' ac_t=' '
399 else
400 ac_n=-n ac_c= ac_t=
401 fi
402else
403 ac_n= ac_c='\c' ac_t=
404fi
405
406
407
408CC=${CC-cc}
409# Extract the first word of "gcc", so it can be a program name with args.
410set dummy gcc; ac_word=$2
411echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
412if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
413 echo $ac_n "(cached) $ac_c" 1>&6
414else
415 if test -n "$CC"; then
416 ac_cv_prog_CC="$CC" # Let the user override the test.
417else
418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
419 for ac_dir in $PATH; do
420 test -z "$ac_dir" && ac_dir=.
421 if test -f $ac_dir/$ac_word; then
422 ac_cv_prog_CC="gcc"
423 break
424 fi
425 done
426 IFS="$ac_save_ifs"
427 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
428fi
429fi
430CC="$ac_cv_prog_CC"
431if test -n "$CC"; then
432 echo "$ac_t""$CC" 1>&6
433else
434 echo "$ac_t""no" 1>&6
435fi
436
437
438echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
439if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
440 echo $ac_n "(cached) $ac_c" 1>&6
441else
442 cat > conftest.c <<EOF
443#ifdef __GNUC__
444 yes;
445#endif
446EOF
447if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
448 ac_cv_prog_gcc=yes
449else
450 ac_cv_prog_gcc=no
451fi
452fi
453echo "$ac_t""$ac_cv_prog_gcc" 1>&6
454if test $ac_cv_prog_gcc = yes; then
455 GCC=yes
456 if test "${CFLAGS+set}" != set; then
457 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
458if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
459 echo $ac_n "(cached) $ac_c" 1>&6
460else
461 echo 'void f(){}' > conftest.c
462if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
463 ac_cv_prog_gcc_g=yes
464else
465 ac_cv_prog_gcc_g=no
466fi
467rm -f conftest*
468
469fi
470 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
471 if test $ac_cv_prog_gcc_g = yes; then
472 CFLAGS="-g -O"
473 else
474 CFLAGS="-O"
475 fi
476 fi
477else
478 GCC=
479 test "${CFLAGS+set}" = set || CFLAGS="-g"
480fi
481
482echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
483# On Suns, sometimes $CPP names a directory.
484if test -n "$CPP" && test -d "$CPP"; then
485 CPP=
486fi
487if test -z "$CPP"; then
488if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
489 echo $ac_n "(cached) $ac_c" 1>&6
490else
491 # This must be in double quotes, not single quotes, because CPP may get
492 # substituted into the Makefile and "${CC-cc}" will confuse make.
493 CPP="${CC-cc} -E"
494 # On the NeXT, cc -E runs the code through the compiler's parser,
495 # not just through cpp.
496 cat > conftest.$ac_ext <<EOF
497#line 498 "configure"
498#include "confdefs.h"
499#include <assert.h>
500Syntax Error
501EOF
502eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
503ac_err=`grep -v '^ *+' conftest.out`
504if test -z "$ac_err"; then
505 :
506else
507 echo "$ac_err" >&5
508 rm -rf conftest*
509 CPP="${CC-cc} -E -traditional-cpp"
510 cat > conftest.$ac_ext <<EOF
511#line 512 "configure"
512#include "confdefs.h"
513#include <assert.h>
514Syntax Error
515EOF
516eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
517ac_err=`grep -v '^ *+' conftest.out`
518if test -z "$ac_err"; then
519 :
520else
521 echo "$ac_err" >&5
522 rm -rf conftest*
523 CPP=/lib/cpp
524fi
525rm -f conftest*
526fi
527rm -f conftest*
528 ac_cv_prog_CPP="$CPP"
529fi
530fi
531CPP="$ac_cv_prog_CPP"
532echo "$ac_t""$CPP" 1>&6
533
534echo $ac_n "checking for AIX""... $ac_c" 1>&6
535cat > conftest.$ac_ext <<EOF
536#line 537 "configure"
537#include "confdefs.h"
538#ifdef _AIX
539 yes
540#endif
541
542EOF
543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
544 egrep "yes" >/dev/null 2>&1; then
545 rm -rf conftest*
546 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
547#define _ALL_SOURCE 1
548EOF
549
550else
551 rm -rf conftest*
552 echo "$ac_t""no" 1>&6
553fi
554rm -f conftest*
555
556
557ac_safe=`echo "minix/config.h" | tr './\055' '___'`
558echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
559if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
560 echo $ac_n "(cached) $ac_c" 1>&6
561else
562 cat > conftest.$ac_ext <<EOF
563#line 564 "configure"
564#include "confdefs.h"
565#include <minix/config.h>
566EOF
567eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
568ac_err=`grep -v '^ *+' conftest.out`
569if test -z "$ac_err"; then
570 rm -rf conftest*
571 eval "ac_cv_header_$ac_safe=yes"
572else
573 echo "$ac_err" >&5
574 rm -rf conftest*
575 eval "ac_cv_header_$ac_safe=no"
576fi
577rm -f conftest*
578fi
579if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
580 echo "$ac_t""yes" 1>&6
581 MINIX=yes
582else
583 echo "$ac_t""no" 1>&6
584MINIX=
585fi
586
587if test "$MINIX" = yes; then
588 cat >> confdefs.h <<\EOF
589#define _POSIX_SOURCE 1
590EOF
591
592 cat >> confdefs.h <<\EOF
593#define _POSIX_1_SOURCE 2
594EOF
595
596 cat >> confdefs.h <<\EOF
597#define _MINIX 1
598EOF
599
600fi
601
602echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
603if test -d /etc/conf/kconfig.d &&
604 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
605then
606 echo "$ac_t""yes" 1>&6
607 ISC=yes # If later tests want to check for ISC.
608 cat >> confdefs.h <<\EOF
609#define _POSIX_SOURCE 1
610EOF
611
612 if test "$GCC" = yes; then
613 CC="$CC -posix"
614 else
615 CC="$CC -Xp"
616 fi
617else
618 echo "$ac_t""no" 1>&6
619 ISC=
620fi
621
622
623ac_aux_dir=
624for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
625 if test -f $ac_dir/install-sh; then
626 ac_aux_dir=$ac_dir
627 ac_install_sh="$ac_aux_dir/install-sh -c"
628 break
629 elif test -f $ac_dir/install.sh; then
630 ac_aux_dir=$ac_dir
631 ac_install_sh="$ac_aux_dir/install.sh -c"
632 break
633 fi
634done
635if test -z "$ac_aux_dir"; then
636 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
637fi
638ac_config_guess=$ac_aux_dir/config.guess
639ac_config_sub=$ac_aux_dir/config.sub
640ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
641
642# Find a good install program. We prefer a C program (faster),
643# so one script is as good as another. But avoid the broken or
644# incompatible versions:
645# SysV /etc/install, /usr/sbin/install
646# SunOS /usr/etc/install
647# IRIX /sbin/install
648# AIX /bin/install
649# AFS /usr/afsws/bin/install, which mishandles nonexistent args
650# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
651# ./install, which can be erroneously created by make from ./install.sh.
652echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
653if test -z "$INSTALL"; then
654if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
656else
657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
658 for ac_dir in $PATH; do
659 # Account for people who put trailing slashes in PATH elements.
660 case "$ac_dir/" in
661 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
662 *)
663 # OSF1 and SCO ODT 3.0 have their own names for install.
664 for ac_prog in ginstall installbsd scoinst install; do
665 if test -f $ac_dir/$ac_prog; then
666 if test $ac_prog = install &&
667 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
668 # AIX install. It has an incompatible calling convention.
669 # OSF/1 installbsd also uses dspmsg, but is usable.
670 :
671 else
672 ac_cv_path_install="$ac_dir/$ac_prog -c"
673 break 2
674 fi
675 fi
676 done
677 ;;
678 esac
679 done
680 IFS="$ac_save_ifs"
681 # As a last resort, use the slow shell script.
682 test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
683fi
684 INSTALL="$ac_cv_path_install"
685fi
686echo "$ac_t""$INSTALL" 1>&6
687
688# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
689# It thinks the first close brace ends the variable substitution.
690test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
691
692test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
693
694# Extract the first word of "ranlib", so it can be a program name with args.
695set dummy ranlib; ac_word=$2
696echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
697if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
698 echo $ac_n "(cached) $ac_c" 1>&6
699else
700 if test -n "$RANLIB"; then
701 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
702else
703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
704 for ac_dir in $PATH; do
705 test -z "$ac_dir" && ac_dir=.
706 if test -f $ac_dir/$ac_word; then
707 ac_cv_prog_RANLIB="ranlib"
708 break
709 fi
710 done
711 IFS="$ac_save_ifs"
712 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
713fi
714fi
715RANLIB="$ac_cv_prog_RANLIB"
716if test -n "$RANLIB"; then
717 echo "$ac_t""$RANLIB" 1>&6
718else
719 echo "$ac_t""no" 1>&6
720fi
721
722
723ac_aux_dir=
724for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
725 if test -f $ac_dir/install-sh; then
726 ac_aux_dir=$ac_dir
727 ac_install_sh="$ac_aux_dir/install-sh -c"
728 break
729 elif test -f $ac_dir/install.sh; then
730 ac_aux_dir=$ac_dir
731 ac_install_sh="$ac_aux_dir/install.sh -c"
732 break
733 fi
734done
735if test -z "$ac_aux_dir"; then
736 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
737fi
738ac_config_guess=$ac_aux_dir/config.guess
739ac_config_sub=$ac_aux_dir/config.sub
740ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
741
742
743# Do some error checking and defaulting for the host and target type.
744# The inputs are:
745# configure --host=HOST --target=TARGET --build=BUILD NONOPT
746#
747# The rules are:
748# 1. You are not allowed to specify --host, --target, and nonopt at the
749# same time.
750# 2. Host defaults to nonopt.
751# 3. If nonopt is not specified, then host defaults to the current host,
752# as determined by config.guess.
753# 4. Target and build default to nonopt.
754# 5. If nonopt is not specified, then target and build default to host.
755
756# The aliases save the names the user supplied, while $host etc.
757# will get canonicalized.
758case $host---$target---$nonopt in
759NONE---*---* | *---NONE---* | *---*---NONE) ;;
760*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
761esac
762
763
764# Make sure we can run config.sub.
765if $ac_config_sub sun4 >/dev/null 2>&1; then :
766else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
767fi
768
769echo $ac_n "checking host system type""... $ac_c" 1>&6
770
771host_alias=$host
772case "$host_alias" in
773NONE)
774 case $nonopt in
775 NONE)
776 if host_alias=`$ac_config_guess`; then :
777 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
778 fi ;;
779 *) host_alias=$nonopt ;;
780 esac ;;
781esac
782
783host=`$ac_config_sub $host_alias`
784host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
785host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
786host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
787echo "$ac_t""$host" 1>&6
788
789echo $ac_n "checking target system type""... $ac_c" 1>&6
790
791target_alias=$target
792case "$target_alias" in
793NONE)
794 case $nonopt in
795 NONE) target_alias=$host_alias ;;
796 *) target_alias=$nonopt ;;
797 esac ;;
798esac
799
800target=`$ac_config_sub $target_alias`
801target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
802target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
803target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
804echo "$ac_t""$target" 1>&6
805
806echo $ac_n "checking build system type""... $ac_c" 1>&6
807
808build_alias=$build
809case "$build_alias" in
810NONE)
811 case $nonopt in
812 NONE) build_alias=$host_alias ;;
813 *) build_alias=$nonopt ;;
814 esac ;;
815esac
816
817build=`$ac_config_sub $build_alias`
818build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
819build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
820build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
821echo "$ac_t""$build" 1>&6
822
823test "$host_alias" != "$target_alias" &&
824 test "$program_prefix$program_suffix$program_transform_name" = \
825 NONENONEs,x,x, &&
826 program_prefix=${target_alias}-
827
828if test "$program_transform_name" = s,x,x,; then
829 program_transform_name=
830else
831 # Double any \ or $.
832 echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
833 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
834 rm -f conftestsed
835fi
836test "$program_prefix" != NONE &&
837 program_transform_name="s,^,${program_prefix},; $program_transform_name"
838# Use a double $ so make ignores it.
839test "$program_suffix" != NONE &&
840 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
841
842# sed with no file args requires a program.
843test "$program_transform_name" = "" && program_transform_name="s,x,x,"
844
845
846
847ENABLE_CFLAGS=
848ENABLE_CLIBS=
849ENABLE_OBS=
850
851# Check whether --enable-netrom or --disable-netrom was given.
852enableval="$enable_netrom"
853if test -n "$enableval"; then
854 case "${enableval}" in
855yes) enable_netrom=yes ;;
856no) enable_netrom=no ;;
857*) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
858esac
859fi
860
861
862if test "${enable_netrom}" = "yes"; then
863 ENABLE_OBS="${ENABLE_OBS} remote-nrom.o"
864fi
865
866# start-sanitize-gdbtk
867ENABLE_GDBTK=
868
869# Check whether --enable-gdbtk or --disable-gdbtk was given.
870enableval="$enable_gdbtk"
871if test -n "$enableval"; then
872 case "${enableval}" in
873yes) enable_gdbtk=yes ;;
874no) enable_gdbtk=no ;;
875*) { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
876esac
877fi
878
879
880if test "${enable_gdbtk}" = "yes"; then
881 # If we find X, set shell vars x_includes and x_libraries to the
882# paths, otherwise set no_x=yes.
883# Uses ac_ vars as temps to allow command line to override cache and checks.
884# --without-x overrides everything else, but does not touch the cache.
885echo $ac_n "checking for X""... $ac_c" 1>&6
886
887# Check whether --with-x or --without-x was given.
888withval="$with_x"
889if test -n "$withval"; then
890 :
891fi
892
893if test "x$with_x" = xno; then
894 no_x=yes
895else
896 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
897 no_x=
898 else
899if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then
900 echo $ac_n "(cached) $ac_c" 1>&6
901else
902 # One or both of the vars are not set, and there is no cached value.
903no_x=yes
904rm -fr conftestdir
905if mkdir conftestdir; then
906 cd conftestdir
907 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
908 cat > Imakefile <<'EOF'
909acfindx:
910 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
911EOF
912 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
913 no_x=
914 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
915 eval `make acfindx 2>/dev/null | grep -v make`
916 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
917 if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
918 then
919 ac_im_usrlibdir=$ac_im_libdir
920 fi
921 # Screen out bogus values from the imake configuration.
922 case "$ac_im_incroot" in
923 /usr/include) ;;
924 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
925 esac
926 case "$ac_im_usrlibdir" in
927 /usr/lib | /lib) ;;
928 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
929 esac
930 fi
931 cd ..
932 rm -fr conftestdir
933fi
934
935if test "$no_x" = yes; then
936test -z "$x_direct_test_library" && x_direct_test_library=Xt
937test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
938test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
939cat > conftest.$ac_ext <<EOF
940#line 941 "configure"
941#include "confdefs.h"
942#include <$x_direct_test_include>
943EOF
944eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
945ac_err=`grep -v '^ *+' conftest.out`
946if test -z "$ac_err"; then
947 rm -rf conftest*
948 no_x= ac_x_includes=
949else
950 echo "$ac_err" >&5
951 rm -rf conftest*
952 for ac_dir in \
953 /usr/X11R6/include \
954 /usr/X11R5/include \
955 /usr/X11R4/include \
956 \
957 /usr/include/X11R6 \
958 /usr/include/X11R5 \
959 /usr/include/X11R4 \
960 \
961 /usr/local/X11R6/include \
962 /usr/local/X11R5/include \
963 /usr/local/X11R4/include \
964 \
965 /usr/local/include/X11R6 \
966 /usr/local/include/X11R5 \
967 /usr/local/include/X11R4 \
968 \
969 /usr/X11/include \
970 /usr/include/X11 \
971 /usr/local/X11/include \
972 /usr/local/include/X11 \
973 \
974 /usr/X386/include \
975 /usr/x386/include \
976 /usr/XFree86/include/X11 \
977 \
978 /usr/include \
979 /usr/local/include \
980 /usr/unsupported/include \
981 /usr/athena/include \
982 /usr/local/x11r5/include \
983 /usr/lpp/Xamples/include \
984 \
985 /usr/openwin/include \
986 /usr/openwin/share/include \
987 ; \
988 do
989 if test -r "$ac_dir/$x_direct_test_include"; then
990 no_x= ac_x_includes=$ac_dir
991 break
992 fi
993 done
994fi
995rm -f conftest*
996
997# Check for the libraries.
998# See if we find them without any special options.
999# Don't add to $LIBS permanently.
1000ac_save_LIBS="$LIBS"
1001LIBS="-l$x_direct_test_library $LIBS"
1002cat > conftest.$ac_ext <<EOF
1003#line 1004 "configure"
1004#include "confdefs.h"
1005
1006int main() { return 0; }
1007int t() {
1008${x_direct_test_function}()
1009; return 0; }
1010EOF
1011if eval $ac_link; then
1012 rm -rf conftest*
1013 LIBS="$ac_save_LIBS" no_x= ac_x_libraries=
1014else
1015 rm -rf conftest*
1016 LIBS="$ac_save_LIBS"
1017# First see if replacing the include by lib works.
1018for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1019 /usr/X11R6/lib \
1020 /usr/X11R5/lib \
1021 /usr/X11R4/lib \
1022 \
1023 /usr/lib/X11R6 \
1024 /usr/lib/X11R5 \
1025 /usr/lib/X11R4 \
1026 \
1027 /usr/local/X11R6/lib \
1028 /usr/local/X11R5/lib \
1029 /usr/local/X11R4/lib \
1030 \
1031 /usr/local/lib/X11R6 \
1032 /usr/local/lib/X11R5 \
1033 /usr/local/lib/X11R4 \
1034 \
1035 /usr/X11/lib \
1036 /usr/lib/X11 \
1037 /usr/local/X11/lib \
1038 /usr/local/lib/X11 \
1039 \
1040 /usr/X386/lib \
1041 /usr/x386/lib \
1042 /usr/XFree86/lib/X11 \
1043 \
1044 /usr/lib \
1045 /usr/local/lib \
1046 /usr/unsupported/lib \
1047 /usr/athena/lib \
1048 /usr/local/x11r5/lib \
1049 /usr/lpp/Xamples/lib \
1050 \
1051 /usr/openwin/lib \
1052 /usr/openwin/share/lib \
1053 ; \
1054do
1055 for ac_extension in a so sl; do
1056 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1057 no_x= ac_x_libraries=$ac_dir
1058 break 2
1059 fi
1060 done
1061done
1062fi
1063rm -f conftest*
1064
1065fi
1066if test "$no_x" = yes; then
1067 ac_cv_path_x="no_x=yes"
1068else
1069 ac_cv_path_x="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1070fi
1071fi
1072 fi
1073 eval "$ac_cv_path_x"
1074fi # $with_x != no
1075
1076if test "$no_x" = yes; then
1077 echo "$ac_t""no" 1>&6
1078else
1079 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1080 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1081 ac_cv_path_x="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1082 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1083fi
1084
1085 if test "$no_x" = yes; then
1086 # Not all programs may use this symbol, but it does not hurt to define it.
1087 X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"
1088else
1089 if test -n "$x_includes"; then
1090 X_CFLAGS="$X_CFLAGS -I$x_includes"
1091 fi
1092
1093 # It would be nice to have a more robust check for the -R ld option than
1094 # just checking for Solaris.
1095 # It would also be nice to do this for all -L options, not just this one.
1096 if test -n "$x_libraries"; then
1097 X_LIBS="$X_LIBS -L$x_libraries"
1098 if test "`(uname) 2>/dev/null`" = SunOS &&
1099 uname -r | grep '^5' >/dev/null; then
1100 X_LIBS="$X_LIBS -R$x_libraries"
1101 fi
1102 fi
1103
1104 # Check for libraries that X11R6 Xt/Xaw programs need.
1105
1106 ac_save_LDFLAGS="$LDFLAGS"
1107 LDFLAGS="$LDFLAGS -L$x_libraries"
1108 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1109 # check for ICE first), but we must link in the order -lSM -lICE or
1110 # we get undefined symbols. So assume we have SM if we have ICE.
1111 # These have to be linked with before -lX11, unlike the other
1112 # libraries we check for below, so use a different variable.
1113 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1114 echo $ac_n "checking for -lICE""... $ac_c" 1>&6
1115if eval "test \"`echo '$''{'ac_cv_lib_ICE'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1117else
1118 ac_save_LIBS="$LIBS"
1119LIBS="-lICE $LIBS"
1120cat > conftest.$ac_ext <<EOF
1121#line 1122 "configure"
1122#include "confdefs.h"
1123
1124int main() { return 0; }
1125int t() {
1126IceConnectionNumber()
1127; return 0; }
1128EOF
1129if eval $ac_link; then
1130 rm -rf conftest*
1131 eval "ac_cv_lib_ICE=yes"
1132else
1133 rm -rf conftest*
1134 eval "ac_cv_lib_ICE=no"
1135fi
1136rm -f conftest*
1137LIBS="$ac_save_LIBS"
1138
1139fi
1140if eval "test \"`echo '$ac_cv_lib_'ICE`\" = yes"; then
1141 echo "$ac_t""yes" 1>&6
1142 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1143else
1144 echo "$ac_t""no" 1>&6
1145fi
1146
1147 LDFLAGS="$ac_save_LDFLAGS"
1148
1149 # Check for system-dependent libraries X programs must link with.
1150
1151 if test "$ISC" = yes; then
1152 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1153 else
1154 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1155 # libraries were built with DECnet support. And karl@cs.umb.edu says
1156 # the Alpha needs dnet_stub (dnet does not exist).
1157 echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
1158if eval "test \"`echo '$''{'ac_cv_lib_dnet'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1160else
1161 ac_save_LIBS="$LIBS"
1162LIBS="-ldnet $LIBS"
1163cat > conftest.$ac_ext <<EOF
1164#line 1165 "configure"
1165#include "confdefs.h"
1166
1167int main() { return 0; }
1168int t() {
1169dnet_ntoa()
1170; return 0; }
1171EOF
1172if eval $ac_link; then
1173 rm -rf conftest*
1174 eval "ac_cv_lib_dnet=yes"
1175else
1176 rm -rf conftest*
1177 eval "ac_cv_lib_dnet=no"
1178fi
1179rm -f conftest*
1180LIBS="$ac_save_LIBS"
1181
1182fi
1183if eval "test \"`echo '$ac_cv_lib_'dnet`\" = yes"; then
1184 echo "$ac_t""yes" 1>&6
1185 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1186else
1187 echo "$ac_t""no" 1>&6
1188fi
1189
1190 if test $ac_cv_lib_dnet = no; then
1191 echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
1192if eval "test \"`echo '$''{'ac_cv_lib_dnet_stub'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1194else
1195 ac_save_LIBS="$LIBS"
1196LIBS="-ldnet_stub $LIBS"
1197cat > conftest.$ac_ext <<EOF
1198#line 1199 "configure"
1199#include "confdefs.h"
1200
1201int main() { return 0; }
1202int t() {
1203dnet_ntoa()
1204; return 0; }
1205EOF
1206if eval $ac_link; then
1207 rm -rf conftest*
1208 eval "ac_cv_lib_dnet_stub=yes"
1209else
1210 rm -rf conftest*
1211 eval "ac_cv_lib_dnet_stub=no"
1212fi
1213rm -f conftest*
1214LIBS="$ac_save_LIBS"
1215
1216fi
1217if eval "test \"`echo '$ac_cv_lib_'dnet_stub`\" = yes"; then
1218 echo "$ac_t""yes" 1>&6
1219 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1220else
1221 echo "$ac_t""no" 1>&6
1222fi
1223
1224 fi
1225
1226 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1227 # to get the SysV transport functions.
1228 # Not sure which flavor of 386 UNIX this is, but it seems harmless to
1229 # check for it.
1230 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
1231if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1233else
1234 ac_save_LIBS="$LIBS"
1235LIBS="-lnsl $LIBS"
1236cat > conftest.$ac_ext <<EOF
1237#line 1238 "configure"
1238#include "confdefs.h"
1239
1240int main() { return 0; }
1241int t() {
1242t_accept()
1243; return 0; }
1244EOF
1245if eval $ac_link; then
1246 rm -rf conftest*
1247 eval "ac_cv_lib_nsl=yes"
1248else
1249 rm -rf conftest*
1250 eval "ac_cv_lib_nsl=no"
1251fi
1252rm -f conftest*
1253LIBS="$ac_save_LIBS"
1254
1255fi
1256if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
1257 echo "$ac_t""yes" 1>&6
1258 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1259else
1260 echo "$ac_t""no" 1>&6
1261fi
1262
1263
1264 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1265 # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
1266 # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
1267 if test "`(uname) 2>/dev/null`" != IRIX; then
1268 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
1269if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1271else
1272 ac_save_LIBS="$LIBS"
1273LIBS="-lsocket $LIBS"
1274cat > conftest.$ac_ext <<EOF
1275#line 1276 "configure"
1276#include "confdefs.h"
1277
1278int main() { return 0; }
1279int t() {
1280socket()
1281; return 0; }
1282EOF
1283if eval $ac_link; then
1284 rm -rf conftest*
1285 eval "ac_cv_lib_socket=yes"
1286else
1287 rm -rf conftest*
1288 eval "ac_cv_lib_socket=no"
1289fi
1290rm -f conftest*
1291LIBS="$ac_save_LIBS"
1292
1293fi
1294if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
1295 echo "$ac_t""yes" 1>&6
1296 X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
1297else
1298 echo "$ac_t""no" 1>&6
1299fi
1300
1301 fi
1302 fi
1303fi
1304
1305
1306
1307#
1308# Ok, lets find the tk source trees so we can use the headers
1309# If the directory (presumably symlink) named "tk" exists, use that one
1310# in preference to any others. Same logic is used when choosing library
1311# and again with Tcl.
1312#
1313echo "checking for Tk source directory" 1>&6
1314TKHDIR=""
1315for i in `ls -d ${srcdir}/../tk* 2>/dev/null` ${srcdir}/../tk ; do
1316 if test -f $i/tk.h ; then
1317 TKHDIR="-I$i"
1318 fi
1319done
1320# if we can't find it, see if one is installed
1321if test x"$TKHDIR" = x ; then
1322 installed=0
1323 if test -f $prefix/include/tk.h; then
1324 installed=1 TKHDIR="-I$prefix/include"
1325 else
1326 ac_safe=`echo "tk.h" | tr './\055' '___'`
1327echo $ac_n "checking for tk.h""... $ac_c" 1>&6
1328if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1329 echo $ac_n "(cached) $ac_c" 1>&6
1330else
1331 cat > conftest.$ac_ext <<EOF
1332#line 1333 "configure"
1333#include "confdefs.h"
1334#include <tk.h>
1335EOF
1336eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1337ac_err=`grep -v '^ *+' conftest.out`
1338if test -z "$ac_err"; then
1339 rm -rf conftest*
1340 eval "ac_cv_header_$ac_safe=yes"
1341else
1342 echo "$ac_err" >&5
1343 rm -rf conftest*
1344 eval "ac_cv_header_$ac_safe=no"
1345fi
1346rm -f conftest*
1347fi
1348if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1349 echo "$ac_t""yes" 1>&6
1350 installed=1
1351else
1352 echo "$ac_t""no" 1>&6
1353fi
1354
1355 fi
1356 if test $installed -eq 0 ; then
1357 TKHDIR="# no Tk directory found"
1358 echo "configure: warning: Can't find Tk directory" 1>&2
1359 fi
1360fi
1361if test x"$TKHDIR" != x ; then
1362 echo "$ac_t""Setting TKHDIR to be $i" 1>&6
1363fi
1364
1365#
1366# Ok, lets find the tk library
1367# First, look for one uninstalled.
1368#
1369TKLIB=""
1370echo "checking for Tk library" 1>&6
1371for i in `ls -d ../tk* 2>/dev/null` ../tk ; do
1372 if test -f "$i/Makefile" ; then
1373 TKLIB=$i/libtk.a
1374 fi
1375done
1376# If not found, look for installed version
1377if test x"$TKLIB" = x ; then
1378 if test -f $prefix/lib/libtk.a; then
1379 installed=1
1380 else
1381 installed=0
1382 fi
1383 if test $installed -eq 1 ; then
1384 TKLIB="-ltk"
1385 fi
1386fi
1387
1388# If still not found, assume Tk simply hasn't been built yet
1389if test x"$TKLIB" = x ; then
1390 for i in `ls -d ../tk* 2>/dev/null` ../tk ; do
1391 if test -f "$i/tk.h" ; then
1392 TKLIB=$i/libtk.a
1393 fi
1394 done
1395fi
1396
1397if test x"$TKLIB" = x ; then
1398 TKLIB="# no Tk library found"
1399 echo "configure: warning: Can't find Tk library" 1>&2
1400else
1401 echo "$ac_t""setting TKLIB to be $TKLIB" 1>&6
1402 no_tk=
1403fi
1404
1405
1406
1407
1408
1409#
1410# Ok, lets find the tcl source trees so we can use the headers
1411#
1412# Warning: transition of version 9 to 10 will break this algorithm
1413# because 10 sorts before 9.
1414#
1415echo "checking for Tcl source directory" 1>&6
1416TCLHDIR=""
1417for i in `ls -d ${srcdir}/../tcl* 2>/dev/null` ${srcdir}/../tcl ; do
1418 if test -f $i/tclInt.h ; then
1419 TCLHDIR="-I$i"
1420 fi
1421done
1422# if we can't find it, see if one is installed
1423if test x"$TCLHDIR" = x ; then
1424 installed=0
1425 if test -f $prefix/include/tclInt.h; then
1426 installed=1 TCLHDIR="-I$prefix/include"
1427 else
1428 ac_safe=`echo "tclInt.h" | tr './\055' '___'`
1429echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
1430if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1432else
1433 cat > conftest.$ac_ext <<EOF
1434#line 1435 "configure"
1435#include "confdefs.h"
1436#include <tclInt.h>
1437EOF
1438eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1439ac_err=`grep -v '^ *+' conftest.out`
1440if test -z "$ac_err"; then
1441 rm -rf conftest*
1442 eval "ac_cv_header_$ac_safe=yes"
1443else
1444 echo "$ac_err" >&5
1445 rm -rf conftest*
1446 eval "ac_cv_header_$ac_safe=no"
1447fi
1448rm -f conftest*
1449fi
1450if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1451 echo "$ac_t""yes" 1>&6
1452 installed=1
1453else
1454 echo "$ac_t""no" 1>&6
1455fi
1456
1457 fi
1458 if test $installed -eq 0 ; then
1459 TCLHDIR="# no Tcl directory found"
1460 echo "configure: warning: Can't find Tcl directory" 1>&2
1461 fi
1462else
1463 echo "$ac_t""setting TCLHDIR to be $i" 1>&6
1464fi
1465
1466#
1467# Ok, lets find the tcl library
1468# First, look for the latest uninstalled
1469#
1470TCLLIB=""
1471echo "checking for Tcl library" 1>&6
1472for i in `ls -d ../tcl* 2>/dev/null` ../tcl ; do
1473 if test -f "$i/Makefile" ; then
1474 TCLLIB=$i/libtcl.a
1475 fi
1476done
1477# If not found, look for installed version
1478if test x"$TCLLIB" = x ; then
1479 if test -f $prefix/lib/libtcl.a; then installed=1; else installed=0; fi
1480 if test $installed -eq 1 ; then
1481 TCLLIB="-ltcl"
1482 fi
1483fi
1484# If still not found, assume Tcl simply hasn't been built yet
1485if test x"$TCLLIB" = x ; then
1486 for i in `ls -d ../tcl* 2>/dev/null` ../tcl ; do
1487 if test -f "$i/tcl.h" ; then
1488 TCLLIB=$i/libtcl.a
1489 fi
1490 done
1491fi
1492
1493if test x"$TCLLIB" = x ; then
1494 TCLLIB="# no Tcl library found"
1495 echo "configure: warning: Can't find Tcl library" 1>&2
1496else
1497 echo "$ac_t""setting TCLLIB to be $TCLLIB" 1>&6
1498fi
1499
1500
1501
1502
1503
1504 ENABLE_GDBTK=1
1505 ENABLE_CLIBS="${ENABLE_CLIBS} $(TCL) $(TK) $(X11) -lm"
1506 ENABLE_OBS="${ENABLE_OBS} gdbtk.o"
1507fi
1508
1509# end-sanitize-gdbtk
1510
1511
1512
1513
1514
1515
1516configdirs="doc testsuite"
1517
1518
1519# Map host cpu into the config cpu subdirectory name.
1520# The default is $host_cpu.
1521
1522case "${host_cpu}" in
1523
1524c[12]) gdb_host_cpu=convex ;;
1525hppa*) gdb_host_cpu=pa ;;
1526i[345]86) gdb_host_cpu=i386 ;;
1527m68*) gdb_host_cpu=m68k ;;
1528m88*) gdb_host_cpu=m88k ;;
1529np1) gdb_host_cpu=gould ;;
1530pyramid) gdb_host_cpu=pyr ;;
1531powerpc*) gdb_host_cpu=powerpc ;;
1532*) gdb_host_cpu=$host_cpu ;;
1533
1534esac
1535
1536# map host info into gdb names.
1537
1538case "${host}" in
1539
1540a29k-*-*) gdb_host=ultra3 ;;
1541
1542alpha-*-osf1*) gdb_host=alpha-osf1 ;;
1543alpha-*-osf[23456789]*) gdb_host=alpha-osf2 ;;
1544
1545arm-*-*) gdb_host=arm ;;
1546
1547c[12]-*-*) gdb_host=convex ;;
1548
1549hppa*-*-bsd*) gdb_host=hppabsd ;;
1550hppa*-*-hiux*) gdb_host=hppahpux ;;
1551hppa*-*-hpux*) gdb_host=hppahpux ;;
1552hppa*-*-osf*) gdb_host=hppaosf ;;
1553
1554i[345]86-ncr-*) gdb_host=ncr3000 ;;
1555i[345]86-sequent-bsd*) gdb_host=symmetry ;; # dynix
1556i[345]86-sequent-sysv4*) gdb_host=ptx4 ;;
1557i[345]86-sequent-sysv*) gdb_host=ptx ;;
1558i[345]86-*-aix*) gdb_host=i386aix ;;
1559i[345]86-*-bsd*) gdb_host=i386bsd ;;
1560i[345]86-*-freebsd*) gdb_host=fbsd ;;
1561i[345]86-*-netbsd*) gdb_host=nbsd ;;
1562i[345]86-*-go32*) gdb_host=go32 ;;
1563i[345]86-*-linux*) gdb_host=linux ;;
1564i[345]86-*-lynxos*) gdb_host=i386lynx ;;
1565i[345]86-*-mach3*) gdb_host=i386m3 ;;
1566i[345]86-*-mach*) gdb_host=i386mach ;;
1567i[345]86-*-osf1mk*) gdb_host=osf1mk ;;
1568i[345]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
1569i[345]86-*-sco*) gdb_host=i386sco ;;
1570i[345]86-*-solaris*) gdb_host=i386sol2 ;;
1571i[345]86-*-sunos*) gdb_host=sun386 ;;
1572i[345]86-*-sysv3.2*) gdb_host=i386v32 ;;
1573i[345]86-*-sysv32*) gdb_host=i386v32 ;;
1574i[345]86-*-sysv4*) gdb_host=i386v4 ;;
1575i[345]86-*-unixware) gdb_host=i386v4 ;;
1576i[345]86-*-sysv*) gdb_host=i386v ;;
1577i[345]86-*-isc*) gdb_host=i386v32 ;;
1578i[345]86-*-os9k) gdb_host=i386os9k ;;
1579
1580m680[01]0-sun-sunos3*) gdb_host=sun2os3 ;;
1581m680[01]0-sun-sunos4*) gdb_host=sun2os4 ;;
1582m68030-sony-*) gdb_host=news1000 ;;
1583
1584m68*-altos-*) gdb_host=altos ;;
1585m68*-apollo*-sysv*) gdb_host=apollo68v ;;
1586m68*-apollo*-bsd*) gdb_host=apollo68b ;;
1587m68*-att-*) gdb_host=3b1 ;;
1588m68*-bull*-sysv*) gdb_host=dpx2 ;;
1589m68*-hp-bsd*) gdb_host=hp300bsd ;;
1590m68*-hp-hpux*) gdb_host=hp300hpux ;;
1591m68*-isi-*) gdb_host=isi ;;
1592m68*-*-lynxos*) gdb_host=m68klynx ;;
1593m68*-*-sysv4*) gdb_host=m68kv4 ;;
1594m68*-motorola-*) gdb_host=delta68 ;;
1595m68*-sony-*) gdb_host=news ;;
1596m68*-sun-sunos3*) gdb_host=sun3os3 ;;
1597m68*-sun-sunos4*) gdb_host=sun3os4 ;;
1598m68*-sun-*) gdb_host=sun3os4 ;;
1599
1600m88*-harris-cxux*) gdb_host=cxux ;;
1601m88*-motorola-sysv4*) gdb_host=delta88v4 ;;
1602m88*-motorola-sysv*) gdb_host=delta88 ;;
1603m88*-*-mach3*) gdb_host=mach3 ;;
1604m88*-*-*) gdb_host=m88k ;;
1605
1606mips-dec-mach3*) gdb_host=mach3 ;;
1607mips-dec-*) gdb_host=decstation ;;
1608mips-little-*) gdb_host=littlemips ;;
1609mips-sgi-irix3*) gdb_host=irix3 ;;
1610mips-sgi-irix4*) gdb_host=irix4 ;;
1611mips-sgi-irix5*) gdb_host=irix5 ;;
1612mips-sony-*) gdb_host=news-mips ;;
1613mips-*-mach3*) gdb_host=mach3 ;;
1614mips-*-sysv4*) gdb_host=mipsv4 ;;
1615mips-*-sysv*) gdb_host=riscos ;;
1616mips-*-riscos*) gdb_host=riscos ;;
1617
1618none-*-*) gdb_host=none ;;
1619
1620np1-*-*) gdb_host=np1 ;;
1621
1622ns32k-*-mach3*) gdb_host=mach3 ;;
1623ns32k-*-netbsd*) gdb_host=nbsd ;;
1624ns32k-umax-*) gdb_host=umax ;;
1625ns32k-utek-sysv*) gdb_host=merlin ;;
1626
1627pn-*-*) gdb_host=pn ;;
1628
1629pyramid-*-*) gdb_host=pyramid ;;
1630
1631romp-*-*) gdb_host=rtbsd ;;
1632
1633rs6000-*-lynxos*) gdb_host=rs6000lynx ;;
1634rs6000-*-*) gdb_host=rs6000 ;;
1635
1636sparc-*-lynxos*) gdb_host=sparclynx ;;
1637sparc-*-netbsd*) gdb_host=nbsd ;;
1638sparc-*-solaris2*) gdb_host=sun4sol2 ;;
1639sparc-*-sunos4*) gdb_host=sun4os4 ;;
1640sparc-*-sunos5*) gdb_host=sun4sol2 ;;
1641sparc-*-*) gdb_host=sun4os4 ;;
1642
1643tahoe-*-*) gdb_host=tahoe ;;
1644
1645vax-*-bsd*) gdb_host=vaxbsd ;;
1646vax-*-ultrix2*) gdb_host=vaxult2 ;;
1647vax-*-ultrix*) gdb_host=vaxult ;;
1648
1649w65-*-*) gdb_host=w65 ;;
1650
1651esac
1652
1653
1654# Map target cpu into the config cpu subdirectory name.
1655# The default is $target_cpu.
1656
1657case "${target_cpu}" in
1658
1659alpha) gdb_target_cpu=alpha ;;
1660c[12]) gdb_target_cpu=convex ;;
1661hppa*) gdb_target_cpu=pa ;;
1662i[345]86) gdb_target_cpu=i386 ;;
1663m68*) gdb_target_cpu=m68k ;;
1664m88*) gdb_target_cpu=m88k ;;
1665mips*) gdb_target_cpu=mips ;;
1666np1) gdb_target_cpu=gould ;;
1667powerpc*) gdb_target_cpu=powerpc ;;
1668pn) gdb_target_cpu=gould ;;
1669pyramid) gdb_target_cpu=pyr ;;
1670sparclite*) gdb_target_cpu=sparc
1671 configdirs="${configdirs} sparclite" ;;
1672sparc*) gdb_target_cpu=sparc ;;
1673*) gdb_target_cpu=$target_cpu ;;
1674
1675esac
1676
1677# map target info into gdb names.
1678
1679case "${target}" in
1680
1681a29k-*-aout*) gdb_target=a29k ;;
1682a29k-*-coff*) gdb_target=a29k ;;
1683a29k-*-elf*) gdb_target=a29k ;;
1684a29k-*-ebmon*) gdb_target=a29k ;;
1685a29k-*-kern*) gdb_target=a29k-kern ;;
1686a29k-*-none*) gdb_target=a29k ;;
1687a29k-*-sym1*) gdb_target=ultra3 ;;
1688a29k-*-udi*) gdb_target=a29k-udi ;;
1689a29k-*-vxworks*) gdb_target=vx29k ;;
1690
1691alpha-*-osf*) gdb_target=alpha-osf1 ;;
1692
1693# start-sanitize-arc
1694arc-*-*) gdb_target=arc ;;
1695# end-sanitize-arc
1696
1697arm-*-*) gdb_target=arm ;;
1698
1699c1-*-*) gdb_target=convex ;;
1700c2-*-*) gdb_target=convex ;;
1701
fb506180
SS
1702h8300-*-*) gdb_target=h8300 ;;
1703h8500-*-*) gdb_target=h8500 ;;
5436fc65
C
1704
1705sh-*-*) gdb_target=sh ;;
1706
1707# start-sanitize-r16
1708r16-*-*) gdb_target=r16 ;;
1709# end-sanitize-r16
1710
1711hppa*-*-bsd*) gdb_target=hppabsd ;;
1712hppa*-*-pro*) gdb_target=hppapro ;;
1713hppa*-*-hpux*) gdb_target=hppahpux ;;
1714hppa*-*-hiux*) gdb_target=hppahpux ;;
1715hppa*-*-osf*) gdb_target=hppaosf ;;
1716
1717i[345]86-sequent-bsd*) gdb_target=symmetry ;;
1718i[345]86-sequent-sysv4*) gdb_target=ptx4 ;;
1719i[345]86-sequent-sysv*) gdb_target=ptx ;;
1720i[345]86-ncr-*) gdb_target=ncr3000 ;;
1721i[345]86-*-aout*) gdb_target=i386aout ;;
1722i[345]86-*-coff*) gdb_target=i386v ;;
1723i[345]86-*-elf*) gdb_target=i386v ;;
1724i[345]86-*-aix*) gdb_target=i386aix ;;
1725i[345]86-*-bsd*) gdb_target=i386bsd ;;
1726i[345]86-*-freebsd*) gdb_target=fbsd ;;
1727i[345]86-*-netbsd*) gdb_target=nbsd ;;
1728i[345]86-*-os9k) gdb_target=i386os9k ;;
1729i[345]86-*-go32*) gdb_target=i386aout ;;
1730i[345]86-*-lynxos*) gdb_target=i386lynx
1731 configdirs="${configdirs} gdbserver" ;;
1732i[345]86-*-solaris*) gdb_target=i386sol2 ;;
1733i[345]86-*-sunos*) gdb_target=sun386 ;;
1734i[345]86-*-sysv4*) gdb_target=i386v4 ;;
1735i[345]86-*-sco*) gdb_target=i386v ;;
1736i[345]86-*-sysv*) gdb_target=i386v ;;
1737i[345]86-*-linux*) gdb_target=linux ;;
1738i[345]86-*-isc*) gdb_target=i386v ;;
1739i[345]86-*-mach3*) gdb_target=i386m3 ;;
1740i[345]86-*-mach*) gdb_target=i386mach ;;
1741i[345]86-*-netware*) gdb_target=i386nw
1742 configdirs="${configdirs} nlm" ;;
1743i[345]86-*-osf1mk*) gdb_target=i386mk ;;
1744
1745i960-*-bout*) gdb_target=vxworks960 ;;
1746i960-*-coff*) gdb_target=nindy960 ;;
1747i960-*-elf*) gdb_target=nindy960 ;;
1748
1749i960-*-nindy*) gdb_target=nindy960 ;;
1750i960-*-vxworks*) gdb_target=vxworks960 ;;
1751
1752m68000-*-sunos3*) gdb_target=sun2os3 ;;
1753m68000-*-sunos4*) gdb_target=sun2os4 ;;
1754
1755m68*-apollo*-bsd*) gdb_target=apollo68b ;;
1756m68*-bull-sysv*) gdb_target=dpx2 ;;
1757m68*-hp-bsd*) gdb_target=hp300bsd ;;
1758m68*-hp-hpux*) gdb_target=hp300hpux ;;
1759m68*-altos-*) gdb_target=altos ;;
1760m68*-att-*) gdb_target=3b1 ;;
1761m68*-cisco*-*) gdb_target=cisco ;;
1762m68*-ericsson-*) gdb_target=es1800 ;;
1763m68*-isi-*) gdb_target=isi ;;
1764m68*-motorola-*) gdb_target=delta68 ;;
1765m68*-netx-*) gdb_target=vxworks68 ;;
1766m68*-sony-*) gdb_target=news ;;
1767m68*-tandem-*) gdb_target=st2000 ;;
1768m68*-rom68k-*) gdb_target=monitor ;;
1769m68*-*bug-*) gdb_target=monitor ;;
1770m68*-monitor-*) gdb_target=monitor ;;
1771m68*-est-*) gdb_target=est ;;
1772m68*-*-aout*) gdb_target=monitor ;;
1773m68*-*-coff*) gdb_target=monitor ;;
1774m68*-*-elf*) gdb_target=monitor ;;
1775m68*-*-lynxos*) gdb_target=m68klynx
1776 configdirs="${configdirs} gdbserver" ;;
1777m68*-*-os68k*) gdb_target=os68k ;;
1778m68*-*-sunos3*) gdb_target=sun3os3 ;;
1779m68*-*-sunos4*) gdb_target=sun3os4 ;;
1780m68*-*-sysv4*) gdb_target=m68kv4 ;;
1781m68*-*-vxworks*) gdb_target=vxworks68 ;;
1782
1783m88*-harris-cxux*) gdb_target=cxux ;;
1784m88*-motorola-sysv4*) gdb_target=delta88v4 ;;
1785m88*-*-mach3*) gdb_target=mach3 ;;
1786m88*-motorola-*) gdb_target=delta88 ;;
1787m88*-*-*) gdb_target=m88k ;;
1788
1789mips64*-big-*) gdb_target=bigmips64 ;;
1790mips*-big-*) gdb_target=bigmips ;;
1791mips*-dec-mach3*) gdb_target=mach3 ;;
1792mips*-dec-*) gdb_target=decstation ;;
1793mips64*el-*-ecoff*) gdb_target=idtl64 ;;
1794mips64*-idt-ecoff*) gdb_target=idt64 ;;
1795mips64*el-*-elf*) gdb_target=idtl64 ;;
1796mips64*-*-elf*) gdb_target=idt64 ;;
1797mips*el-*-ecoff*) gdb_target=idtl ;;
1798mips*-*-ecoff*) gdb_target=idt ;;
1799mips*el-*-elf*) gdb_target=idtl ;;
1800mips*-*-elf*) gdb_target=idt ;;
1801mips*-little-*) gdb_target=littlemips ;;
1802mips*-sgi-irix5*) gdb_target=irix5 ;;
1803mips*-sgi-*) gdb_target=irix3 ;;
1804mips*-sony-*) gdb_target=bigmips ;;
1805mips*-*-mach3*) gdb_target=mach3 ;;
1806mips*-*-sysv4*) gdb_target=mipsv4 ;;
1807mips*-*-sysv*) gdb_target=bigmips ;;
1808mips*-*-riscos*) gdb_target=bigmips ;;
1809
1810none-*-*) gdb_target=none ;;
1811
1812np1-*-*) gdb_target=np1 ;;
1813
1814ns32k-*-mach3*) gdb_target=mach3 ;;
1815ns32k-*-netbsd*) gdb_target=nbsd ;;
1816ns32k-utek-sysv*) gdb_target=merlin ;;
1817ns32k-utek-*) gdb_target=umax ;;
1818
1819pn-*-*) gdb_target=pn ;;
1820powerpc-*-netware*) gdb_target=ppc-nw
1821 configdirs="${configdirs} nlm" ;;
1822
1823powerpc-*-eabi*) gdb_target=ppc-eabi
1824 configdirs="${configdirs}" ;;
1825
1826powerpcle-*-eabi*) gdb_target=ppcle-eabi
1827 configdirs="${configdirs}" ;;
1828
1829pyramid-*-*) gdb_target=pyramid ;;
1830
1831rs6000-*-lynxos*) gdb_target=rs6000lynx ;;
1832rs6000-*-*) gdb_target=rs6000 ;;
1833
1834sparc-*-aout*) gdb_target=sparc-em ;;
1835sparc-*-coff*) gdb_target=sparc-em ;;
1836sparc-*-elf*) gdb_target=sparc-em ;;
1837sparc-*-lynxos*) gdb_target=sparclynx
1838 configdirs="${configdirs} gdbserver" ;;
1839sparc-*-netbsd*) gdb_target=nbsd ;;
1840sparc-*-solaris2*) gdb_target=sun4sol2 ;;
1841sparc-*-sunos4*) gdb_target=sun4os4 ;;
1842sparc-*-sunos5*) gdb_target=sun4sol2 ;;
1843sparc-*-vxworks*) gdb_target=vxsparc ;;
1844sparc-*-*) gdb_target=sun4os4 ;;
1845sparclite*-*-*) gdb_target=sparclite ;;
1846sparc64-*-*) gdb_target=sp64 ;;
1847
1848tahoe-*-*) gdb_target=tahoe ;;
1849
1850vax-*-*) gdb_target=vax ;;
1851
1852w65-*-*) gdb_target=w65 ;;
1853
fb506180
SS
1854z8k-*-sim*) gdb_target=z8k ;;
1855z8k-*-coff*) gdb_target=z8k ;;
5436fc65
C
1856
1857esac
1858
1859
1860
1861host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
1862if test ! -f ${host_makefile_frag}; then
1863{ echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; }
1864fi
1865
1866target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
1867if test ! -f ${target_makefile_frag}; then
1868{ echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
1869fi
1870
1871host_makefile_frag_path=$host_makefile_frag
1872target_makefile_frag_path=$target_makefile_frag
1873
1874
1875
1876
1877
094fd4ae
C
1878hostfile=`sed -n '
1879s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
1880' ${host_makefile_frag}`
5436fc65 1881
094fd4ae
C
1882targetfile=`sed -n '
1883s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
1884' ${target_makefile_frag}`
5436fc65
C
1885
1886# these really aren't orthogonal true/false values of the same condition,
1887# but shells are slow enough that I like to reuse the test conditions
1888# whenever possible
1889if test "${target}" = "${host}"; then
094fd4ae
C
1890nativefile=`sed -n '
1891s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
1892' ${host_makefile_frag}`
5436fc65
C
1893else
1894# GDBserver is only useful in a "native" enviroment
1895configdirs=`echo $configdirs | sed 's/gdbserver//'`
1896fi
1897
094fd4ae 1898
5436fc65
C
1899# If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
1900# (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
1901# corresponding links. But we have to remove the xm.h files and tm.h
1902# files anyway, e.g. when switching from "configure host" to
1903# "configure none".
1904
1905files=
1906links=
1907rm -f xm.h
1908if test "${hostfile}" != ""; then
1909files="${files} config/${gdb_host_cpu}/${hostfile}"
1910links="${links} xm.h"
1911fi
1912rm -f tm.h
1913if test "${targetfile}" != ""; then
1914files="${files} config/${gdb_target_cpu}/${targetfile}"
1915links="${links} tm.h"
1916fi
1917rm -f nm.h
1918if test "${nativefile}" != ""; then
1919files="${files} config/${gdb_host_cpu}/${nativefile}"
1920links="${links} nm.h"
1921else
1922# A cross-only configuration.
1923files="${files} config/nm-empty.h"
1924links="${links} nm.h"
1925fi
1926# start-sanitize-gdbtk
1927
1928# Make it possible to use the GUI without doing a full install
1929if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl ; then
1930files="${files} gdbtk.tcl"
1931links="${links} gdbtk.tcl"
1932fi
1933# end-sanitize-gdbtk
1934
1935
1936
1937subdirs="$configdirs"
1938
1939trap '' 1 2 15
1940cat > confcache <<\EOF
1941# This file is a shell script that caches the results of configure
1942# tests run on this system so they can be shared between configure
1943# scripts and configure runs. It is not useful on other systems.
1944# If it contains results you don't want to keep, you may remove or edit it.
1945#
1946# By default, configure uses ./config.cache as the cache file,
1947# creating it if it does not exist already. You can give configure
1948# the --cache-file=FILE option to use a different cache file; that is
1949# what configure does when it calls configure scripts in
1950# subdirectories, so they share the cache.
1951# Giving --cache-file=/dev/null disables caching, for debugging configure.
1952# config.status only pays attention to the cache file if you give it the
1953# --recheck option to rerun configure.
1954#
1955EOF
1956# Ultrix sh set writes to stderr and can't be redirected directly,
1957# and sets the high bit in the cache file unless we assign to the vars.
1958(set) 2>&1 |
1959 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1960 >> confcache
1961if cmp -s $cache_file confcache; then
1962 :
1963else
1964 if test -w $cache_file; then
1965 echo "updating cache $cache_file"
1966 cat confcache > $cache_file
1967 else
1968 echo "not updating unwritable cache $cache_file"
1969 fi
1970fi
1971rm -f confcache
1972
1973trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1974
1975test "x$prefix" = xNONE && prefix=$ac_default_prefix
1976# Let make expand exec_prefix.
1977test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1978
1979# Any assignment to VPATH causes Sun make to only execute
1980# the first set of double-colon rules, so remove it if not needed.
1981# If there is a colon in the path, we need to keep it.
1982if test "x$srcdir" = x.; then
1983 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1984fi
1985
1986trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1987
1988# Transform confdefs.h into DEFS.
1989# Protect against shell expansion while executing Makefile rules.
1990# Protect against Makefile macro expansion.
1991cat > conftest.defs <<\EOF
1992s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
1993s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1994s%\[%\\&%g
1995s%\]%\\&%g
1996s%\$%$$%g
1997EOF
1998DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1999rm -f conftest.defs
2000
2001
2002# Without the "./", some shells look in PATH for config.status.
2003: ${CONFIG_STATUS=./config.status}
2004
2005echo creating $CONFIG_STATUS
2006rm -f $CONFIG_STATUS
2007cat > $CONFIG_STATUS <<EOF
2008#! /bin/sh
2009# Generated automatically by configure.
2010# Run this file to recreate the current configuration.
2011# This directory was configured as follows,
2012# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2013#
2014# $0 $ac_configure_args
2015#
2016# Compiler output produced by configure, useful for debugging
2017# configure, is in ./config.log if it exists.
2018
2019ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2020for ac_option
2021do
2022 case "\$ac_option" in
2023 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2024 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2025 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2026 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2027 echo "$CONFIG_STATUS generated by autoconf version 2.3"
2028 exit 0 ;;
2029 -help | --help | --hel | --he | --h)
2030 echo "\$ac_cs_usage"; exit 0 ;;
2031 *) echo "\$ac_cs_usage"; exit 1 ;;
2032 esac
2033done
2034
2035ac_given_srcdir=$srcdir
2036ac_given_INSTALL="$INSTALL"
2037
2038trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2039
2040# Protect against being on the right side of a sed subst in config.status.
2041sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
2042 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
2043$ac_vpsub
2044$extrasub
2045s%@CFLAGS@%$CFLAGS%g
2046s%@CPPFLAGS@%$CPPFLAGS%g
2047s%@CXXFLAGS@%$CXXFLAGS%g
2048s%@DEFS@%$DEFS%g
2049s%@LDFLAGS@%$LDFLAGS%g
2050s%@LIBS@%$LIBS%g
2051s%@exec_prefix@%$exec_prefix%g
2052s%@prefix@%$prefix%g
2053s%@program_transform_name@%$program_transform_name%g
2054s%@CC@%$CC%g
2055s%@CPP@%$CPP%g
2056s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2057s%@INSTALL_DATA@%$INSTALL_DATA%g
2058s%@RANLIB@%$RANLIB%g
2059s%@host@%$host%g
2060s%@host_alias@%$host_alias%g
2061s%@host_cpu@%$host_cpu%g
2062s%@host_vendor@%$host_vendor%g
2063s%@host_os@%$host_os%g
2064s%@target@%$target%g
2065s%@target_alias@%$target_alias%g
2066s%@target_cpu@%$target_cpu%g
2067s%@target_vendor@%$target_vendor%g
2068s%@target_os@%$target_os%g
2069s%@build@%$build%g
2070s%@build_alias@%$build_alias%g
2071s%@build_cpu@%$build_cpu%g
2072s%@build_vendor@%$build_vendor%g
2073s%@build_os@%$build_os%g
2074s%@X_CFLAGS@%$X_CFLAGS%g
2075s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2076s%@X_LIBS@%$X_LIBS%g
2077s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2078s%@TKHDIR@%$TKHDIR%g
2079s%@TKLIB@%$TKLIB%g
2080s%@TCLHDIR@%$TCLHDIR%g
2081s%@TCLLIB@%$TCLLIB%g
2082s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
2083s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
2084s%@ENABLE_CLIBS@%$ENABLE_CLIBS%g
2085s%@ENABLE_OBS@%$ENABLE_OBS%g
2086s%@host_makefile_frag_path@%$host_makefile_frag_path%g
2087s%@target_makefile_frag_path@%$target_makefile_frag_path%g
2088/@host_makefile_frag@/r $host_makefile_frag
2089s%@host_makefile_frag@%%g
2090/@target_makefile_frag@/r $target_makefile_frag
2091s%@target_makefile_frag@%%g
2092s%@subdirs@%$subdirs%g
2093
2094CEOF
2095EOF
2096cat >> $CONFIG_STATUS <<EOF
2097
2098CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2099EOF
2100cat >> $CONFIG_STATUS <<\EOF
2101for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2102 # Support "outfile[:infile]", defaulting infile="outfile.in".
2103 case "$ac_file" in
2104 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2105 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2106 *) ac_file_in="${ac_file}.in" ;;
2107 esac
2108
2109 # Adjust relative srcdir, etc. for subdirectories.
2110
2111 # Remove last slash and all that follows it. Not all systems have dirname.
2112 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2113 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2114 # The file is in a subdirectory.
2115 test ! -d "$ac_dir" && mkdir "$ac_dir"
2116 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2117 # A "../" for each directory in $ac_dir_suffix.
2118 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2119 else
2120 ac_dir_suffix= ac_dots=
2121 fi
2122
2123 case "$ac_given_srcdir" in
2124 .) srcdir=.
2125 if test -z "$ac_dots"; then top_srcdir=.
2126 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2127 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2128 *) # Relative path.
2129 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2130 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2131 esac
2132
2133 case "$ac_given_INSTALL" in
2134 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2135 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2136 esac
2137 echo creating "$ac_file"
2138 rm -f "$ac_file"
2139 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2140 case "$ac_file" in
2141 *Makefile*) ac_comsub="1i\\
2142# $configure_input" ;;
2143 *) ac_comsub= ;;
2144 esac
2145 sed -e "$ac_comsub
2146s%@configure_input@%$configure_input%g
2147s%@srcdir@%$srcdir%g
2148s%@top_srcdir@%$top_srcdir%g
2149s%@INSTALL@%$INSTALL%g
2150" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2151fi; done
2152rm -f conftest.subs
2153
2154EOF
2155
2156cat >> $CONFIG_STATUS <<EOF
2157ac_sources="$files"
2158ac_dests="$links"
2159EOF
2160
2161cat >> $CONFIG_STATUS <<\EOF
2162srcdir=$ac_given_srcdir
2163while test -n "$ac_sources"; do
2164 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2165 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2166
2167 echo "linking $srcdir/$ac_source to $ac_dest"
2168
2169 if test ! -r $srcdir/$ac_source; then
2170 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2171 fi
2172 rm -f $ac_dest
2173
2174 # Make relative symlinks.
2175 # Remove last slash and all that follows it. Not all systems have dirname.
2176 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2177 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2178 # The dest file is in a subdirectory.
2179 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2180 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2181 # A "../" for each directory in $ac_dest_dir_suffix.
2182 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2183 else
2184 ac_dest_dir_suffix= ac_dots=
2185 fi
2186
2187 case "$srcdir" in
2188 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2189 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2190 esac
2191
2192 # Make a symlink if possible; otherwise try a hard link.
2193 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2194 ln $srcdir/$ac_source $ac_dest; then :
2195 else
2196 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2197 fi
2198done
0a5a1821
C
2199EOF
2200cat >> $CONFIG_STATUS <<EOF
5436fc65 2201
0a5a1821
C
2202gdb_host_cpu=$gdb_host_cpu
2203gdb_target_cpu=$gdb_target_cpu
2204nativefile=$nativefile
2205
2206EOF
2207cat >> $CONFIG_STATUS <<\EOF
5436fc65
C
2208
2209if test "${nativefile}" = ""; then
2210sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
2211 < Makefile > Makefile.tem
2212mv -f Makefile.tem Makefile
2213fi
2214
2215sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
2216/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
2217/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
2218mv -f Makefile.tmp Makefile
2219
2220case ${srcdir} in
2221.)
2222;;
2223*)
2224grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
2225echo "source ${srcdir}/.gdbinit" >> .gdbinit
2226esac
2227
2228exit 0
2229EOF
2230chmod +x $CONFIG_STATUS
2231rm -fr confdefs* $ac_clean_files
2232test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2233
2234if test "$no_recursion" != yes; then
2235
2236 # Remove --cache-file and --srcdir arguments so they do not pile up.
2237 ac_sub_configure_args=
2238 ac_prev=
2239 for ac_arg in $ac_configure_args; do
2240 if test -n "$ac_prev"; then
2241 ac_prev=
2242 continue
2243 fi
2244 case "$ac_arg" in
2245 -cache-file | --cache-file | --cache-fil | --cache-fi \
2246 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2247 ac_prev=cache_file ;;
2248 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2249 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2250 ;;
2251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2252 ac_prev=srcdir ;;
2253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2254 ;;
2255 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2256 esac
2257 done
2258
2259 for ac_config_dir in $configdirs; do
2260
2261 # Do not complain, so a configure script can configure whichever
2262 # parts of a large source tree are present.
2263 if test ! -d $srcdir/$ac_config_dir; then
2264 continue
2265 fi
2266
2267 echo configuring in $ac_config_dir
2268
2269 case "$srcdir" in
2270 .) ;;
2271 *)
2272 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2273 else
2274 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2275 fi
2276 ;;
2277 esac
2278
2279 ac_popdir=`pwd`
2280 cd $ac_config_dir
2281
2282 case "$srcdir" in
2283 .) # No --srcdir option. We are building in place.
2284 ac_sub_srcdir=$srcdir ;;
2285 /*) # Absolute path.
2286 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2287 *) # Relative path.
2288 ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
2289 esac
2290
2291 # Check for guested configure; otherwise get Cygnus style configure.
2292 if test -f $ac_sub_srcdir/configure; then
2293 ac_sub_configure=$ac_sub_srcdir/configure
2294 elif test -f $ac_sub_srcdir/configure.in; then
2295 ac_sub_configure=$ac_configure
2296 else
2297 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2298 ac_sub_configure=
2299 fi
2300
2301 # The recursion is here.
2302 if test -n "$ac_sub_configure"; then
2303
2304 # Make the cache file name correct relative to the subdirectory.
2305 # A "../" for each directory in /$ac_config_dir.
2306 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2307 case "$cache_file" in
2308 /*) ac_sub_cache_file=$cache_file ;;
2309 *) # Relative path.
2310 ac_sub_cache_file="$ac_dots$cache_file" ;;
2311 esac
2312 case "$ac_given_INSTALL" in
2313 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2314 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2315 esac
2316
2317 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2318 # The eval makes quoting arguments work.
2319 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2320 then :
2321 else
2322 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2323 fi
2324 fi
2325
2326 cd $ac_popdir
2327 done
2328fi
2329
This page took 0.109776 seconds and 4 git commands to generate.