* configure.in: X_INCDIR and X_LIBDIR added.
[deliverable/binutils-gdb.git] / gdb / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.4
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:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-netrom "
16 ac_help="$ac_help
17 --enable-gdbtk "
18 ac_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.
24 build=NONE
25 cache_file=./config.cache
26 exec_prefix=NONE
27 host=NONE
28 no_create=
29 nonopt=NONE
30 no_recursion=
31 prefix=NONE
32 program_prefix=NONE
33 program_suffix=NONE
34 program_transform_name=s,x,x,
35 silent=
36 site=
37 srcdir=
38 target=NONE
39 verbose=
40 x_includes=NONE
41 x_libraries=NONE
42
43 # Initialize some other variables.
44 subdirs=
45
46 ac_prev=
47 for ac_option
48 do
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
117 Usage: configure [options] [host]
118 Options: [defaults in brackets after descriptions]
119 Configuration:
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
125 Directory 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
134 Host 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]
138 Features 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
146 EOF
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.4"
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
282 done
283
284 if test -n "$ac_prev"; then
285 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
286 fi
287
288 trap '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
298 if test "$silent" = yes; then
299 exec 6>/dev/null
300 else
301 exec 6>&1
302 fi
303 exec 5>./config.log
304
305 echo "\
306 This file contains any messages produced by compilers while
307 running 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.
312 ac_configure_args=
313 for ac_arg
314 do
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
324 done
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).
330 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
331 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
332
333 # confdefs.h avoids OS command line length limits that DEFS can exceed.
334 rm -rf conftest* confdefs.h
335 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
336 echo > 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.
340 ac_unique_file=main.c
341
342 # Find the source files, if location was not specified.
343 if 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
353 else
354 ac_srcdir_defaulted=no
355 fi
356 if 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
362 fi
363 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
364
365 # Prefer explicitly selected file to automatically selected ones.
366 if 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
372 fi
373 for 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
378 done
379
380 if test -r "$cache_file"; then
381 echo "loading cache $cache_file"
382 . $cache_file
383 else
384 echo "creating cache $cache_file"
385 > $cache_file
386 fi
387
388 ac_ext=c
389 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
390 ac_cpp='$CPP $CPPFLAGS'
391 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
392 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
393
394 if (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
402 else
403 ac_n= ac_c='\c' ac_t=
404 fi
405
406
407
408 CC=${CC-cc}
409 # Extract the first word of "gcc", so it can be a program name with args.
410 set dummy gcc; ac_word=$2
411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
412 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
413 echo $ac_n "(cached) $ac_c" 1>&6
414 else
415 if test -n "$CC"; then
416 ac_cv_prog_CC="$CC" # Let the user override the test.
417 else
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"
428 fi
429 fi
430 CC="$ac_cv_prog_CC"
431 if test -n "$CC"; then
432 echo "$ac_t""$CC" 1>&6
433 else
434 echo "$ac_t""no" 1>&6
435 fi
436
437
438 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
439 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
440 echo $ac_n "(cached) $ac_c" 1>&6
441 else
442 cat > conftest.c <<EOF
443 #ifdef __GNUC__
444 yes;
445 #endif
446 EOF
447 if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
448 ac_cv_prog_gcc=yes
449 else
450 ac_cv_prog_gcc=no
451 fi
452 fi
453 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
454 if 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
458 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
459 echo $ac_n "(cached) $ac_c" 1>&6
460 else
461 echo 'void f(){}' > conftest.c
462 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
463 ac_cv_prog_gcc_g=yes
464 else
465 ac_cv_prog_gcc_g=no
466 fi
467 rm -f conftest*
468
469 fi
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
477 else
478 GCC=
479 test "${CFLAGS+set}" = set || CFLAGS="-g"
480 fi
481
482 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
483 # On Suns, sometimes $CPP names a directory.
484 if test -n "$CPP" && test -d "$CPP"; then
485 CPP=
486 fi
487 if test -z "$CPP"; then
488 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
489 echo $ac_n "(cached) $ac_c" 1>&6
490 else
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>
500 Syntax Error
501 EOF
502 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
503 ac_err=`grep -v '^ *+' conftest.out`
504 if test -z "$ac_err"; then
505 :
506 else
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>
514 Syntax Error
515 EOF
516 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
517 ac_err=`grep -v '^ *+' conftest.out`
518 if test -z "$ac_err"; then
519 :
520 else
521 echo "$ac_err" >&5
522 rm -rf conftest*
523 CPP=/lib/cpp
524 fi
525 rm -f conftest*
526 fi
527 rm -f conftest*
528 ac_cv_prog_CPP="$CPP"
529 fi
530 CPP="$ac_cv_prog_CPP"
531 else
532 ac_cv_prog_CPP="$CPP"
533 fi
534 echo "$ac_t""$CPP" 1>&6
535
536 echo $ac_n "checking for AIX""... $ac_c" 1>&6
537 cat > conftest.$ac_ext <<EOF
538 #line 539 "configure"
539 #include "confdefs.h"
540 #ifdef _AIX
541 yes
542 #endif
543
544 EOF
545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
546 egrep "yes" >/dev/null 2>&1; then
547 rm -rf conftest*
548 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
549 #define _ALL_SOURCE 1
550 EOF
551
552 else
553 rm -rf conftest*
554 echo "$ac_t""no" 1>&6
555 fi
556 rm -f conftest*
557
558
559 ac_safe=`echo "minix/config.h" | tr './\055' '___'`
560 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
561 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
562 echo $ac_n "(cached) $ac_c" 1>&6
563 else
564 cat > conftest.$ac_ext <<EOF
565 #line 566 "configure"
566 #include "confdefs.h"
567 #include <minix/config.h>
568 EOF
569 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
570 ac_err=`grep -v '^ *+' conftest.out`
571 if test -z "$ac_err"; then
572 rm -rf conftest*
573 eval "ac_cv_header_$ac_safe=yes"
574 else
575 echo "$ac_err" >&5
576 rm -rf conftest*
577 eval "ac_cv_header_$ac_safe=no"
578 fi
579 rm -f conftest*
580 fi
581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
582 echo "$ac_t""yes" 1>&6
583 MINIX=yes
584 else
585 echo "$ac_t""no" 1>&6
586 MINIX=
587 fi
588
589 if test "$MINIX" = yes; then
590 cat >> confdefs.h <<\EOF
591 #define _POSIX_SOURCE 1
592 EOF
593
594 cat >> confdefs.h <<\EOF
595 #define _POSIX_1_SOURCE 2
596 EOF
597
598 cat >> confdefs.h <<\EOF
599 #define _MINIX 1
600 EOF
601
602 fi
603
604 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
605 if test -d /etc/conf/kconfig.d &&
606 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
607 then
608 echo "$ac_t""yes" 1>&6
609 ISC=yes # If later tests want to check for ISC.
610 cat >> confdefs.h <<\EOF
611 #define _POSIX_SOURCE 1
612 EOF
613
614 if test "$GCC" = yes; then
615 CC="$CC -posix"
616 else
617 CC="$CC -Xp"
618 fi
619 else
620 echo "$ac_t""no" 1>&6
621 ISC=
622 fi
623
624
625 ac_aux_dir=
626 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
627 if test -f $ac_dir/install-sh; then
628 ac_aux_dir=$ac_dir
629 ac_install_sh="$ac_aux_dir/install-sh -c"
630 break
631 elif test -f $ac_dir/install.sh; then
632 ac_aux_dir=$ac_dir
633 ac_install_sh="$ac_aux_dir/install.sh -c"
634 break
635 fi
636 done
637 if test -z "$ac_aux_dir"; then
638 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
639 fi
640 ac_config_guess=$ac_aux_dir/config.guess
641 ac_config_sub=$ac_aux_dir/config.sub
642 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
643
644 # Find a good install program. We prefer a C program (faster),
645 # so one script is as good as another. But avoid the broken or
646 # incompatible versions:
647 # SysV /etc/install, /usr/sbin/install
648 # SunOS /usr/etc/install
649 # IRIX /sbin/install
650 # AIX /bin/install
651 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
652 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
653 # ./install, which can be erroneously created by make from ./install.sh.
654 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
655 if test -z "$INSTALL"; then
656 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
657 echo $ac_n "(cached) $ac_c" 1>&6
658 else
659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
660 for ac_dir in $PATH; do
661 # Account for people who put trailing slashes in PATH elements.
662 case "$ac_dir/" in
663 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
664 *)
665 # OSF1 and SCO ODT 3.0 have their own names for install.
666 for ac_prog in ginstall installbsd scoinst install; do
667 if test -f $ac_dir/$ac_prog; then
668 if test $ac_prog = install &&
669 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
670 # AIX install. It has an incompatible calling convention.
671 # OSF/1 installbsd also uses dspmsg, but is usable.
672 :
673 else
674 ac_cv_path_install="$ac_dir/$ac_prog -c"
675 break 2
676 fi
677 fi
678 done
679 ;;
680 esac
681 done
682 IFS="$ac_save_ifs"
683 # As a last resort, use the slow shell script.
684 test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
685 fi
686 INSTALL="$ac_cv_path_install"
687 fi
688 echo "$ac_t""$INSTALL" 1>&6
689
690 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
691 # It thinks the first close brace ends the variable substitution.
692 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
693
694 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
695
696 # Extract the first word of "ranlib", so it can be a program name with args.
697 set dummy ranlib; ac_word=$2
698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
699 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
700 echo $ac_n "(cached) $ac_c" 1>&6
701 else
702 if test -n "$RANLIB"; then
703 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
704 else
705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
706 for ac_dir in $PATH; do
707 test -z "$ac_dir" && ac_dir=.
708 if test -f $ac_dir/$ac_word; then
709 ac_cv_prog_RANLIB="ranlib"
710 break
711 fi
712 done
713 IFS="$ac_save_ifs"
714 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
715 fi
716 fi
717 RANLIB="$ac_cv_prog_RANLIB"
718 if test -n "$RANLIB"; then
719 echo "$ac_t""$RANLIB" 1>&6
720 else
721 echo "$ac_t""no" 1>&6
722 fi
723
724
725 ac_aux_dir=
726 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
727 if test -f $ac_dir/install-sh; then
728 ac_aux_dir=$ac_dir
729 ac_install_sh="$ac_aux_dir/install-sh -c"
730 break
731 elif test -f $ac_dir/install.sh; then
732 ac_aux_dir=$ac_dir
733 ac_install_sh="$ac_aux_dir/install.sh -c"
734 break
735 fi
736 done
737 if test -z "$ac_aux_dir"; then
738 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
739 fi
740 ac_config_guess=$ac_aux_dir/config.guess
741 ac_config_sub=$ac_aux_dir/config.sub
742 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
743
744
745 # Do some error checking and defaulting for the host and target type.
746 # The inputs are:
747 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
748 #
749 # The rules are:
750 # 1. You are not allowed to specify --host, --target, and nonopt at the
751 # same time.
752 # 2. Host defaults to nonopt.
753 # 3. If nonopt is not specified, then host defaults to the current host,
754 # as determined by config.guess.
755 # 4. Target and build default to nonopt.
756 # 5. If nonopt is not specified, then target and build default to host.
757
758 # The aliases save the names the user supplied, while $host etc.
759 # will get canonicalized.
760 case $host---$target---$nonopt in
761 NONE---*---* | *---NONE---* | *---*---NONE) ;;
762 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
763 esac
764
765
766 # Make sure we can run config.sub.
767 if $ac_config_sub sun4 >/dev/null 2>&1; then :
768 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
769 fi
770
771 echo $ac_n "checking host system type""... $ac_c" 1>&6
772
773 host_alias=$host
774 case "$host_alias" in
775 NONE)
776 case $nonopt in
777 NONE)
778 if host_alias=`$ac_config_guess`; then :
779 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
780 fi ;;
781 *) host_alias=$nonopt ;;
782 esac ;;
783 esac
784
785 host=`$ac_config_sub $host_alias`
786 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
787 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
788 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
789 echo "$ac_t""$host" 1>&6
790
791 echo $ac_n "checking target system type""... $ac_c" 1>&6
792
793 target_alias=$target
794 case "$target_alias" in
795 NONE)
796 case $nonopt in
797 NONE) target_alias=$host_alias ;;
798 *) target_alias=$nonopt ;;
799 esac ;;
800 esac
801
802 target=`$ac_config_sub $target_alias`
803 target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
804 target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
805 target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
806 echo "$ac_t""$target" 1>&6
807
808 echo $ac_n "checking build system type""... $ac_c" 1>&6
809
810 build_alias=$build
811 case "$build_alias" in
812 NONE)
813 case $nonopt in
814 NONE) build_alias=$host_alias ;;
815 *) build_alias=$nonopt ;;
816 esac ;;
817 esac
818
819 build=`$ac_config_sub $build_alias`
820 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
821 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
822 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
823 echo "$ac_t""$build" 1>&6
824
825 test "$host_alias" != "$target_alias" &&
826 test "$program_prefix$program_suffix$program_transform_name" = \
827 NONENONEs,x,x, &&
828 program_prefix=${target_alias}-
829
830 if test "$program_transform_name" = s,x,x,; then
831 program_transform_name=
832 else
833 # Double any \ or $.
834 echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
835 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
836 rm -f conftestsed
837 fi
838 test "$program_prefix" != NONE &&
839 program_transform_name="s,^,${program_prefix},; $program_transform_name"
840 # Use a double $ so make ignores it.
841 test "$program_suffix" != NONE &&
842 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
843
844 # sed with no file args requires a program.
845 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
846
847
848 # If we cannot run a trivial program, we must be cross compiling.
849 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
850 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
852 else
853 if test "$cross_compiling" = yes; then
854 ac_cv_c_cross=yes
855 else
856 cat > conftest.$ac_ext <<EOF
857 #line 858 "configure"
858 #include "confdefs.h"
859 main(){return(0);}
860 EOF
861 eval $ac_link
862 if test -s conftest && (./conftest; exit) 2>/dev/null; then
863 ac_cv_c_cross=no
864 else
865 ac_cv_c_cross=yes
866 fi
867 fi
868 rm -fr conftest*
869 fi
870 cross_compiling=$ac_cv_c_cross
871 echo "$ac_t""$ac_cv_c_cross" 1>&6
872
873 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
874 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
875 echo $ac_n "(cached) $ac_c" 1>&6
876 else
877 cat > conftest.$ac_ext <<EOF
878 #line 879 "configure"
879 #include "confdefs.h"
880 #include <stdlib.h>
881 #include <stdarg.h>
882 #include <string.h>
883 #include <float.h>
884 EOF
885 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
886 ac_err=`grep -v '^ *+' conftest.out`
887 if test -z "$ac_err"; then
888 rm -rf conftest*
889 ac_cv_header_stdc=yes
890 else
891 echo "$ac_err" >&5
892 rm -rf conftest*
893 ac_cv_header_stdc=no
894 fi
895 rm -f conftest*
896
897 if test $ac_cv_header_stdc = yes; then
898 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
899 cat > conftest.$ac_ext <<EOF
900 #line 901 "configure"
901 #include "confdefs.h"
902 #include <string.h>
903 EOF
904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
905 egrep "memchr" >/dev/null 2>&1; then
906 :
907 else
908 rm -rf conftest*
909 ac_cv_header_stdc=no
910 fi
911 rm -f conftest*
912
913 fi
914
915 if test $ac_cv_header_stdc = yes; then
916 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
917 cat > conftest.$ac_ext <<EOF
918 #line 919 "configure"
919 #include "confdefs.h"
920 #include <stdlib.h>
921 EOF
922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
923 egrep "free" >/dev/null 2>&1; then
924 :
925 else
926 rm -rf conftest*
927 ac_cv_header_stdc=no
928 fi
929 rm -f conftest*
930
931 fi
932
933 if test $ac_cv_header_stdc = yes; then
934 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
935 if test "$cross_compiling" = yes; then
936 ac_cv_header_stdc=no
937 else
938 cat > conftest.$ac_ext <<EOF
939 #line 940 "configure"
940 #include "confdefs.h"
941 #include <ctype.h>
942 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
943 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
945 int main () { int i; for (i = 0; i < 256; i++)
946 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
947 exit (0); }
948
949 EOF
950 eval $ac_link
951 if test -s conftest && (./conftest; exit) 2>/dev/null; then
952 :
953 else
954 ac_cv_header_stdc=no
955 fi
956 fi
957 rm -fr conftest*
958 fi
959 fi
960 echo "$ac_t""$ac_cv_header_stdc" 1>&6
961 if test $ac_cv_header_stdc = yes; then
962 cat >> confdefs.h <<\EOF
963 #define STDC_HEADERS 1
964 EOF
965
966 fi
967
968 for ac_hdr in memory.h string.h strings.h unistd.h termios.h termio.h sgtty.h
969 do
970 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
971 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
972 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
974 else
975 cat > conftest.$ac_ext <<EOF
976 #line 977 "configure"
977 #include "confdefs.h"
978 #include <$ac_hdr>
979 EOF
980 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
981 ac_err=`grep -v '^ *+' conftest.out`
982 if test -z "$ac_err"; then
983 rm -rf conftest*
984 eval "ac_cv_header_$ac_safe=yes"
985 else
986 echo "$ac_err" >&5
987 rm -rf conftest*
988 eval "ac_cv_header_$ac_safe=no"
989 fi
990 rm -f conftest*
991 fi
992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
993 echo "$ac_t""yes" 1>&6
994 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
995 cat >> confdefs.h <<EOF
996 #define $ac_tr_hdr 1
997 EOF
998
999 else
1000 echo "$ac_t""no" 1>&6
1001 fi
1002 done
1003
1004 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1005 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1007 else
1008 cat > conftest.$ac_ext <<EOF
1009 #line 1010 "configure"
1010 #include "confdefs.h"
1011 #include <sys/types.h>
1012 #include <sys/stat.h>
1013
1014 #if defined(S_ISBLK) && defined(S_IFDIR)
1015 # if S_ISBLK (S_IFDIR)
1016 You lose.
1017 # endif
1018 #endif
1019
1020 #if defined(S_ISBLK) && defined(S_IFCHR)
1021 # if S_ISBLK (S_IFCHR)
1022 You lose.
1023 # endif
1024 #endif
1025
1026 #if defined(S_ISLNK) && defined(S_IFREG)
1027 # if S_ISLNK (S_IFREG)
1028 You lose.
1029 # endif
1030 #endif
1031
1032 #if defined(S_ISSOCK) && defined(S_IFREG)
1033 # if S_ISSOCK (S_IFREG)
1034 You lose.
1035 # endif
1036 #endif
1037
1038 EOF
1039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1040 egrep "You lose" >/dev/null 2>&1; then
1041 rm -rf conftest*
1042 ac_cv_header_stat_broken=yes
1043 else
1044 rm -rf conftest*
1045 ac_cv_header_stat_broken=no
1046 fi
1047 rm -f conftest*
1048
1049 fi
1050 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1051 if test $ac_cv_header_stat_broken = yes; then
1052 cat >> confdefs.h <<\EOF
1053 #define STAT_MACROS_BROKEN 1
1054 EOF
1055
1056 fi
1057
1058
1059 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1060 if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
1061 echo $ac_n "(cached) $ac_c" 1>&6
1062 else
1063 if test "$cross_compiling" = yes; then
1064 ac_cv_func_mmap=no
1065 else
1066 cat > conftest.$ac_ext <<EOF
1067 #line 1068 "configure"
1068 #include "confdefs.h"
1069
1070 /* Thanks to Mike Haertel and Jim Avera for this test. */
1071 #include <sys/types.h>
1072 #include <fcntl.h>
1073 #include <sys/mman.h>
1074
1075 #ifdef BSD
1076 # ifndef BSD4_1
1077 # define HAVE_GETPAGESIZE
1078 # endif
1079 #endif
1080
1081 #ifndef HAVE_GETPAGESIZE
1082 # include <sys/param.h>
1083 # ifdef EXEC_PAGESIZE
1084 # define getpagesize() EXEC_PAGESIZE
1085 # else
1086 # ifdef NBPG
1087 # define getpagesize() NBPG * CLSIZE
1088 # ifndef CLSIZE
1089 # define CLSIZE 1
1090 # endif
1091 # else
1092 # ifdef NBPC
1093 # define getpagesize() NBPC
1094 # else
1095 # define getpagesize() PAGESIZE /* SVR4 */
1096 # endif
1097 # endif
1098 # endif
1099 #endif
1100
1101 #ifdef __osf__
1102 # define valloc malloc
1103 #endif
1104
1105 #ifdef __cplusplus
1106 extern "C" { void *valloc(unsigned), *malloc(unsigned); }
1107 #else
1108 char *valloc(), *malloc();
1109 #endif
1110
1111 int
1112 main()
1113 {
1114 char *buf1, *buf2, *buf3;
1115 int i = getpagesize(), j;
1116 int i2 = getpagesize()*2;
1117 int fd;
1118
1119 buf1 = (char *)valloc(i2);
1120 buf2 = (char *)valloc(i);
1121 buf3 = (char *)malloc(i2);
1122 for (j = 0; j < i2; ++j)
1123 *(buf1 + j) = rand();
1124 fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
1125 write(fd, buf1, i2);
1126 mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
1127 for (j = 0; j < i; ++j)
1128 if (*(buf1 + j) != *(buf2 + j))
1129 exit(1);
1130 lseek(fd, (long)i, 0);
1131 read(fd, buf2, i); /* read into mapped memory -- file should not change */
1132 /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
1133 lseek(fd, (long)0, 0);
1134 read(fd, buf3, i2);
1135 for (j = 0; j < i2; ++j)
1136 if (*(buf1 + j) != *(buf3 + j))
1137 exit(1);
1138 exit(0);
1139 }
1140
1141 EOF
1142 eval $ac_link
1143 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1144 ac_cv_func_mmap=yes
1145 else
1146 ac_cv_func_mmap=no
1147 fi
1148 fi
1149 rm -fr conftest*
1150 fi
1151 echo "$ac_t""$ac_cv_func_mmap" 1>&6
1152 if test $ac_cv_func_mmap = yes; then
1153 cat >> confdefs.h <<\EOF
1154 #define HAVE_MMAP 1
1155 EOF
1156
1157 fi
1158
1159
1160 ENABLE_CFLAGS=
1161 ENABLE_CLIBS=
1162 ENABLE_OBS=
1163
1164 # Check whether --enable-netrom or --disable-netrom was given.
1165 enableval="$enable_netrom"
1166 if test -n "$enableval"; then
1167 case "${enableval}" in
1168 yes) enable_netrom=yes ;;
1169 no) enable_netrom=no ;;
1170 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
1171 esac
1172 fi
1173
1174
1175 if test "${enable_netrom}" = "yes"; then
1176 ENABLE_OBS="${ENABLE_OBS} remote-nrom.o"
1177 fi
1178
1179 # start-sanitize-gdbtk
1180 ENABLE_GDBTK=
1181
1182 # Check whether --enable-gdbtk or --disable-gdbtk was given.
1183 enableval="$enable_gdbtk"
1184 if test -n "$enableval"; then
1185 case "${enableval}" in
1186 yes) enable_gdbtk=yes ;;
1187 no) enable_gdbtk=no ;;
1188 *) { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
1189 esac
1190 fi
1191
1192
1193 if test "${enable_gdbtk}" = "yes"; then
1194 # If we find X, set shell vars x_includes and x_libraries to the
1195 # paths, otherwise set no_x=yes.
1196 # Uses ac_ vars as temps to allow command line to override cache and checks.
1197 # --without-x overrides everything else, but does not touch the cache.
1198 echo $ac_n "checking for X""... $ac_c" 1>&6
1199
1200 # Check whether --with-x or --without-x was given.
1201 withval="$with_x"
1202 if test -n "$withval"; then
1203 :
1204 fi
1205
1206 if test "x$with_x" = xno; then
1207 no_x=yes
1208 else
1209 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1210 no_x=
1211 else
1212 if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1214 else
1215 # One or both of the vars are not set, and there is no cached value.
1216 no_x=yes
1217 rm -fr conftestdir
1218 if mkdir conftestdir; then
1219 cd conftestdir
1220 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1221 cat > Imakefile <<'EOF'
1222 acfindx:
1223 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1224 EOF
1225 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1226 no_x=
1227 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1228 eval `make acfindx 2>/dev/null | grep -v make`
1229 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1230 for ac_extension in a so sl; do
1231 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1232 test -f $ac_im_libdir/libX11.$ac_extension; then
1233 ac_im_usrlibdir=$ac_im_libdir; break
1234 fi
1235 done
1236 # Screen out bogus values from the imake configuration.
1237 case "$ac_im_incroot" in
1238 /usr/include) ;;
1239 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1240 esac
1241 case "$ac_im_usrlibdir" in
1242 /usr/lib | /lib) ;;
1243 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1244 esac
1245 fi
1246 cd ..
1247 rm -fr conftestdir
1248 fi
1249
1250 if test "$no_x" = yes; then
1251 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1252 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1253 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1254 cat > conftest.$ac_ext <<EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1257 #include <$x_direct_test_include>
1258 EOF
1259 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1260 ac_err=`grep -v '^ *+' conftest.out`
1261 if test -z "$ac_err"; then
1262 rm -rf conftest*
1263 no_x= ac_x_includes=
1264 else
1265 echo "$ac_err" >&5
1266 rm -rf conftest*
1267 for ac_dir in \
1268 /usr/X11R6/include \
1269 /usr/X11R5/include \
1270 /usr/X11R4/include \
1271 \
1272 /usr/include/X11R6 \
1273 /usr/include/X11R5 \
1274 /usr/include/X11R4 \
1275 \
1276 /usr/local/X11R6/include \
1277 /usr/local/X11R5/include \
1278 /usr/local/X11R4/include \
1279 \
1280 /usr/local/include/X11R6 \
1281 /usr/local/include/X11R5 \
1282 /usr/local/include/X11R4 \
1283 \
1284 /usr/X11/include \
1285 /usr/include/X11 \
1286 /usr/local/X11/include \
1287 /usr/local/include/X11 \
1288 \
1289 /usr/X386/include \
1290 /usr/x386/include \
1291 /usr/XFree86/include/X11 \
1292 \
1293 /usr/include \
1294 /usr/local/include \
1295 /usr/unsupported/include \
1296 /usr/athena/include \
1297 /usr/local/x11r5/include \
1298 /usr/lpp/Xamples/include \
1299 \
1300 /usr/openwin/include \
1301 /usr/openwin/share/include \
1302 ; \
1303 do
1304 if test -r "$ac_dir/$x_direct_test_include"; then
1305 no_x= ac_x_includes=$ac_dir
1306 break
1307 fi
1308 done
1309 fi
1310 rm -f conftest*
1311
1312 # Check for the libraries.
1313 # See if we find them without any special options.
1314 # Don't add to $LIBS permanently.
1315 ac_save_LIBS="$LIBS"
1316 LIBS="-l$x_direct_test_library $LIBS"
1317 cat > conftest.$ac_ext <<EOF
1318 #line 1319 "configure"
1319 #include "confdefs.h"
1320
1321 int main() { return 0; }
1322 int t() {
1323 ${x_direct_test_function}()
1324 ; return 0; }
1325 EOF
1326 if eval $ac_link; then
1327 rm -rf conftest*
1328 LIBS="$ac_save_LIBS" no_x= ac_x_libraries=
1329 else
1330 rm -rf conftest*
1331 LIBS="$ac_save_LIBS"
1332 # First see if replacing the include by lib works.
1333 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1334 /usr/X11R6/lib \
1335 /usr/X11R5/lib \
1336 /usr/X11R4/lib \
1337 \
1338 /usr/lib/X11R6 \
1339 /usr/lib/X11R5 \
1340 /usr/lib/X11R4 \
1341 \
1342 /usr/local/X11R6/lib \
1343 /usr/local/X11R5/lib \
1344 /usr/local/X11R4/lib \
1345 \
1346 /usr/local/lib/X11R6 \
1347 /usr/local/lib/X11R5 \
1348 /usr/local/lib/X11R4 \
1349 \
1350 /usr/X11/lib \
1351 /usr/lib/X11 \
1352 /usr/local/X11/lib \
1353 /usr/local/lib/X11 \
1354 \
1355 /usr/X386/lib \
1356 /usr/x386/lib \
1357 /usr/XFree86/lib/X11 \
1358 \
1359 /usr/lib \
1360 /usr/local/lib \
1361 /usr/unsupported/lib \
1362 /usr/athena/lib \
1363 /usr/local/x11r5/lib \
1364 /usr/lpp/Xamples/lib \
1365 \
1366 /usr/openwin/lib \
1367 /usr/openwin/share/lib \
1368 ; \
1369 do
1370 for ac_extension in a so sl; do
1371 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1372 no_x= ac_x_libraries=$ac_dir
1373 break 2
1374 fi
1375 done
1376 done
1377 fi
1378 rm -f conftest*
1379
1380 fi
1381 if test "$no_x" = yes; then
1382 ac_cv_path_x="no_x=yes"
1383 else
1384 ac_cv_path_x="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1385 fi
1386 fi
1387 fi
1388 eval "$ac_cv_path_x"
1389 fi # $with_x != no
1390
1391 if test "$no_x" = yes; then
1392 echo "$ac_t""no" 1>&6
1393 else
1394 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1395 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1396 ac_cv_path_x="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1397 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1398 fi
1399
1400 if test "$no_x" = yes; then
1401 # Not all programs may use this symbol, but it does not hurt to define it.
1402 X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"
1403 else
1404 if test -n "$x_includes"; then
1405 X_CFLAGS="$X_CFLAGS -I$x_includes"
1406 fi
1407
1408 # It would be nice to have a more robust check for the -R ld option than
1409 # just checking for Solaris.
1410 # It would also be nice to do this for all -L options, not just this one.
1411 if test -n "$x_libraries"; then
1412 X_LIBS="$X_LIBS -L$x_libraries"
1413 if test "`(uname) 2>/dev/null`" = SunOS &&
1414 uname -r | grep '^5' >/dev/null; then
1415 X_LIBS="$X_LIBS -R$x_libraries"
1416 fi
1417 fi
1418
1419 # Check for libraries that X11R6 Xt/Xaw programs need.
1420
1421 ac_save_LDFLAGS="$LDFLAGS"
1422 LDFLAGS="$LDFLAGS -L$x_libraries"
1423 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1424 # check for ICE first), but we must link in the order -lSM -lICE or
1425 # we get undefined symbols. So assume we have SM if we have ICE.
1426 # These have to be linked with before -lX11, unlike the other
1427 # libraries we check for below, so use a different variable.
1428 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1429 echo $ac_n "checking for -lICE""... $ac_c" 1>&6
1430 if eval "test \"`echo '$''{'ac_cv_lib_ICE'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1432 else
1433 ac_save_LIBS="$LIBS"
1434 LIBS="-lICE $LIBS"
1435 cat > conftest.$ac_ext <<EOF
1436 #line 1437 "configure"
1437 #include "confdefs.h"
1438
1439 int main() { return 0; }
1440 int t() {
1441 IceConnectionNumber()
1442 ; return 0; }
1443 EOF
1444 if eval $ac_link; then
1445 rm -rf conftest*
1446 eval "ac_cv_lib_ICE=yes"
1447 else
1448 rm -rf conftest*
1449 eval "ac_cv_lib_ICE=no"
1450 fi
1451 rm -f conftest*
1452 LIBS="$ac_save_LIBS"
1453
1454 fi
1455 if eval "test \"`echo '$ac_cv_lib_'ICE`\" = yes"; then
1456 echo "$ac_t""yes" 1>&6
1457 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1458 else
1459 echo "$ac_t""no" 1>&6
1460 fi
1461
1462 LDFLAGS="$ac_save_LDFLAGS"
1463
1464 # Check for system-dependent libraries X programs must link with.
1465
1466 if test "$ISC" = yes; then
1467 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1468 else
1469 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1470 # libraries were built with DECnet support. And karl@cs.umb.edu says
1471 # the Alpha needs dnet_stub (dnet does not exist).
1472 echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
1473 if eval "test \"`echo '$''{'ac_cv_lib_dnet'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1475 else
1476 ac_save_LIBS="$LIBS"
1477 LIBS="-ldnet $LIBS"
1478 cat > conftest.$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1481
1482 int main() { return 0; }
1483 int t() {
1484 dnet_ntoa()
1485 ; return 0; }
1486 EOF
1487 if eval $ac_link; then
1488 rm -rf conftest*
1489 eval "ac_cv_lib_dnet=yes"
1490 else
1491 rm -rf conftest*
1492 eval "ac_cv_lib_dnet=no"
1493 fi
1494 rm -f conftest*
1495 LIBS="$ac_save_LIBS"
1496
1497 fi
1498 if eval "test \"`echo '$ac_cv_lib_'dnet`\" = yes"; then
1499 echo "$ac_t""yes" 1>&6
1500 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1501 else
1502 echo "$ac_t""no" 1>&6
1503 fi
1504
1505 if test $ac_cv_lib_dnet = no; then
1506 echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
1507 if eval "test \"`echo '$''{'ac_cv_lib_dnet_stub'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1509 else
1510 ac_save_LIBS="$LIBS"
1511 LIBS="-ldnet_stub $LIBS"
1512 cat > conftest.$ac_ext <<EOF
1513 #line 1514 "configure"
1514 #include "confdefs.h"
1515
1516 int main() { return 0; }
1517 int t() {
1518 dnet_ntoa()
1519 ; return 0; }
1520 EOF
1521 if eval $ac_link; then
1522 rm -rf conftest*
1523 eval "ac_cv_lib_dnet_stub=yes"
1524 else
1525 rm -rf conftest*
1526 eval "ac_cv_lib_dnet_stub=no"
1527 fi
1528 rm -f conftest*
1529 LIBS="$ac_save_LIBS"
1530
1531 fi
1532 if eval "test \"`echo '$ac_cv_lib_'dnet_stub`\" = yes"; then
1533 echo "$ac_t""yes" 1>&6
1534 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1535 else
1536 echo "$ac_t""no" 1>&6
1537 fi
1538
1539 fi
1540
1541 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1542 # to get the SysV transport functions.
1543 # Not sure which flavor of 386 UNIX this is, but it seems harmless to
1544 # check for it.
1545 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
1546 if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1548 else
1549 ac_save_LIBS="$LIBS"
1550 LIBS="-lnsl $LIBS"
1551 cat > conftest.$ac_ext <<EOF
1552 #line 1553 "configure"
1553 #include "confdefs.h"
1554
1555 int main() { return 0; }
1556 int t() {
1557 t_accept()
1558 ; return 0; }
1559 EOF
1560 if eval $ac_link; then
1561 rm -rf conftest*
1562 eval "ac_cv_lib_nsl=yes"
1563 else
1564 rm -rf conftest*
1565 eval "ac_cv_lib_nsl=no"
1566 fi
1567 rm -f conftest*
1568 LIBS="$ac_save_LIBS"
1569
1570 fi
1571 if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
1572 echo "$ac_t""yes" 1>&6
1573 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1574 else
1575 echo "$ac_t""no" 1>&6
1576 fi
1577
1578
1579 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1580 # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
1581 # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
1582 if test "`(uname) 2>/dev/null`" != IRIX; then
1583 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
1584 if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1586 else
1587 ac_save_LIBS="$LIBS"
1588 LIBS="-lsocket $LIBS"
1589 cat > conftest.$ac_ext <<EOF
1590 #line 1591 "configure"
1591 #include "confdefs.h"
1592
1593 int main() { return 0; }
1594 int t() {
1595 socket()
1596 ; return 0; }
1597 EOF
1598 if eval $ac_link; then
1599 rm -rf conftest*
1600 eval "ac_cv_lib_socket=yes"
1601 else
1602 rm -rf conftest*
1603 eval "ac_cv_lib_socket=no"
1604 fi
1605 rm -f conftest*
1606 LIBS="$ac_save_LIBS"
1607
1608 fi
1609 if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
1610 echo "$ac_t""yes" 1>&6
1611 X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
1612 else
1613 echo "$ac_t""no" 1>&6
1614 fi
1615
1616 fi
1617 fi
1618 fi
1619
1620
1621
1622 #
1623 # Ok, lets find the tk source trees so we can use the headers
1624 # If the directory (presumably symlink) named "tk" exists, use that one
1625 # in preference to any others. Same logic is used when choosing library
1626 # and again with Tcl.
1627 #
1628 echo "checking for Tk source directory" 1>&6
1629 TKHDIR=""
1630 for i in `ls -d ${srcdir}/../tk* 2>/dev/null` ${srcdir}/../tk ; do
1631 if test -f $i/tk.h ; then
1632 TKHDIR="-I$i"
1633 fi
1634 done
1635 # if we can't find it, see if one is installed
1636 if test x"$TKHDIR" = x ; then
1637 installed=0
1638 if test -f $prefix/include/tk.h; then
1639 installed=1 TKHDIR="-I$prefix/include"
1640 else
1641 ac_safe=`echo "tk.h" | tr './\055' '___'`
1642 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
1643 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1645 else
1646 cat > conftest.$ac_ext <<EOF
1647 #line 1648 "configure"
1648 #include "confdefs.h"
1649 #include <tk.h>
1650 EOF
1651 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1652 ac_err=`grep -v '^ *+' conftest.out`
1653 if test -z "$ac_err"; then
1654 rm -rf conftest*
1655 eval "ac_cv_header_$ac_safe=yes"
1656 else
1657 echo "$ac_err" >&5
1658 rm -rf conftest*
1659 eval "ac_cv_header_$ac_safe=no"
1660 fi
1661 rm -f conftest*
1662 fi
1663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1664 echo "$ac_t""yes" 1>&6
1665 installed=1
1666 else
1667 echo "$ac_t""no" 1>&6
1668 fi
1669
1670 fi
1671 if test $installed -eq 0 ; then
1672 TKHDIR="# no Tk directory found"
1673 echo "configure: warning: Can't find Tk directory" 1>&2
1674 fi
1675 fi
1676 if test x"$TKHDIR" != x ; then
1677 echo "$ac_t""Setting TKHDIR to be $i" 1>&6
1678 fi
1679
1680 #
1681 # Ok, lets find the tk library
1682 # First, look for one uninstalled.
1683 #
1684 TKLIB=""
1685 echo "checking for Tk library" 1>&6
1686 for i in `ls -d ../tk* 2>/dev/null` ../tk ; do
1687 if test -f "$i/Makefile" ; then
1688 TKLIB=$i/libtk.a
1689 fi
1690 done
1691 # If not found, look for installed version
1692 if test x"$TKLIB" = x ; then
1693 if test -f $prefix/lib/libtk.a; then
1694 installed=1
1695 else
1696 installed=0
1697 fi
1698 if test $installed -eq 1 ; then
1699 TKLIB="-ltk"
1700 fi
1701 fi
1702
1703 # If still not found, assume Tk simply hasn't been built yet
1704 if test x"$TKLIB" = x ; then
1705 for i in `ls -d ../tk* 2>/dev/null` ../tk ; do
1706 if test -f "$i/tk.h" ; then
1707 TKLIB=$i/libtk.a
1708 fi
1709 done
1710 fi
1711
1712 if test x"$TKLIB" = x ; then
1713 TKLIB="# no Tk library found"
1714 echo "configure: warning: Can't find Tk library" 1>&2
1715 else
1716 echo "$ac_t""setting TKLIB to be $TKLIB" 1>&6
1717 no_tk=
1718 fi
1719
1720
1721
1722
1723
1724 #
1725 # Ok, lets find the tcl source trees so we can use the headers
1726 #
1727 # Warning: transition of version 9 to 10 will break this algorithm
1728 # because 10 sorts before 9.
1729 #
1730 echo "checking for Tcl source directory" 1>&6
1731 TCLHDIR=""
1732 for i in `ls -d ${srcdir}/../tcl* 2>/dev/null` ${srcdir}/../tcl ; do
1733 if test -f $i/tclInt.h ; then
1734 TCLHDIR="-I$i"
1735 fi
1736 done
1737 # if we can't find it, see if one is installed
1738 if test x"$TCLHDIR" = x ; then
1739 installed=0
1740 if test -f $prefix/include/tclInt.h; then
1741 installed=1 TCLHDIR="-I$prefix/include"
1742 else
1743 ac_safe=`echo "tclInt.h" | tr './\055' '___'`
1744 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
1745 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1747 else
1748 cat > conftest.$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1751 #include <tclInt.h>
1752 EOF
1753 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1754 ac_err=`grep -v '^ *+' conftest.out`
1755 if test -z "$ac_err"; then
1756 rm -rf conftest*
1757 eval "ac_cv_header_$ac_safe=yes"
1758 else
1759 echo "$ac_err" >&5
1760 rm -rf conftest*
1761 eval "ac_cv_header_$ac_safe=no"
1762 fi
1763 rm -f conftest*
1764 fi
1765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1766 echo "$ac_t""yes" 1>&6
1767 installed=1
1768 else
1769 echo "$ac_t""no" 1>&6
1770 fi
1771
1772 fi
1773 if test $installed -eq 0 ; then
1774 TCLHDIR="# no Tcl directory found"
1775 echo "configure: warning: Can't find Tcl directory" 1>&2
1776 fi
1777 else
1778 echo "$ac_t""setting TCLHDIR to be $i" 1>&6
1779 fi
1780
1781 #
1782 # Ok, lets find the tcl library
1783 # First, look for the latest uninstalled
1784 #
1785 TCLLIB=""
1786 echo "checking for Tcl library" 1>&6
1787 for i in `ls -d ../tcl* 2>/dev/null` ../tcl ; do
1788 if test -f "$i/Makefile" ; then
1789 TCLLIB=$i/libtcl.a
1790 fi
1791 done
1792 # If not found, look for installed version
1793 if test x"$TCLLIB" = x ; then
1794 if test -f $prefix/lib/libtcl.a; then installed=1; else installed=0; fi
1795 if test $installed -eq 1 ; then
1796 TCLLIB="-ltcl"
1797 fi
1798 fi
1799 # If still not found, assume Tcl simply hasn't been built yet
1800 if test x"$TCLLIB" = x ; then
1801 for i in `ls -d ../tcl* 2>/dev/null` ../tcl ; do
1802 if test -f "$i/tcl.h" ; then
1803 TCLLIB=$i/libtcl.a
1804 fi
1805 done
1806 fi
1807
1808 if test x"$TCLLIB" = x ; then
1809 TCLLIB="# no Tcl library found"
1810 echo "configure: warning: Can't find Tcl library" 1>&2
1811 else
1812 echo "$ac_t""setting TCLLIB to be $TCLLIB" 1>&6
1813 fi
1814
1815
1816
1817
1818
1819 ENABLE_GDBTK=1
1820
1821 if test "x$x_includes" != "x" ;
1822 then
1823 X_INCDIR="-I$x_includes"
1824 else
1825 X_INCDIR=""
1826 fi
1827
1828 if test "x$x_libraries" != "x" ;
1829 then
1830 X_LIBDIR="-L$x_libraries"
1831 else
1832 X_LIBDIR=""
1833 fi
1834
1835 TCL_LIBS='$(TCL) $(TK) $(X11)'
1836 ENABLE_CLIBS="${ENABLE_CLIBS} ${TCL_LIBS} -lm"
1837 ENABLE_OBS="${ENABLE_OBS} gdbtk.o"
1838 fi
1839
1840
1841
1842 # end-sanitize-gdbtk
1843
1844
1845
1846
1847
1848
1849 configdirs="doc testsuite"
1850
1851
1852 # Map host cpu into the config cpu subdirectory name.
1853 # The default is $host_cpu.
1854
1855 case "${host_cpu}" in
1856
1857 c[12]) gdb_host_cpu=convex ;;
1858 hppa*) gdb_host_cpu=pa ;;
1859 i[345]86) gdb_host_cpu=i386 ;;
1860 m68*) gdb_host_cpu=m68k ;;
1861 m88*) gdb_host_cpu=m88k ;;
1862 np1) gdb_host_cpu=gould ;;
1863 pyramid) gdb_host_cpu=pyr ;;
1864 powerpc*) gdb_host_cpu=powerpc ;;
1865 *) gdb_host_cpu=$host_cpu ;;
1866
1867 esac
1868
1869 # map host info into gdb names.
1870
1871 case "${host}" in
1872
1873 a29k-*-*) gdb_host=ultra3 ;;
1874
1875 alpha-*-osf1*) gdb_host=alpha-osf1 ;;
1876 alpha-*-osf2*) gdb_host=alpha-osf2 ;;
1877 alpha-*-osf[3456789]*) gdb_host=alpha-osf3 ;;
1878
1879 arm-*-*) gdb_host=arm ;;
1880
1881 c[12]-*-*) gdb_host=convex ;;
1882
1883 hppa*-*-bsd*) gdb_host=hppabsd ;;
1884 hppa*-*-hiux*) gdb_host=hppahpux ;;
1885 hppa*-*-hpux*) gdb_host=hppahpux ;;
1886 hppa*-*-osf*) gdb_host=hppaosf ;;
1887
1888 i[345]86-ncr-*) gdb_host=ncr3000 ;;
1889 i[345]86-sequent-bsd*) gdb_host=symmetry ;; # dynix
1890 i[345]86-sequent-sysv4*) gdb_host=ptx4 ;;
1891 i[345]86-sequent-sysv*) gdb_host=ptx ;;
1892 i[345]86-*-aix*) gdb_host=i386aix ;;
1893 i[345]86-*-bsd*) gdb_host=i386bsd ;;
1894 i[345]86-*-freebsd*) gdb_host=fbsd ;;
1895 i[345]86-*-netbsd*) gdb_host=nbsd ;;
1896 i[345]86-*-go32*) gdb_host=go32 ;;
1897 i[345]86-*-linux*) gdb_host=linux ;;
1898 i[345]86-*-lynxos*) gdb_host=i386lynx ;;
1899 i[345]86-*-mach3*) gdb_host=i386m3 ;;
1900 i[345]86-*-mach*) gdb_host=i386mach ;;
1901 i[345]86-*-osf1mk*) gdb_host=osf1mk ;;
1902 i[345]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
1903 i[345]86-*-sco*) gdb_host=i386sco ;;
1904 i[345]86-*-solaris*) gdb_host=i386sol2 ;;
1905 i[345]86-*-sunos*) gdb_host=sun386 ;;
1906 i[345]86-*-sysv3.2*) gdb_host=i386v32 ;;
1907 i[345]86-*-sysv32*) gdb_host=i386v32 ;;
1908 i[345]86-*-sysv4*) gdb_host=i386v4 ;;
1909 i[345]86-*-unixware) gdb_host=i386v4 ;;
1910 i[345]86-*-sysv*) gdb_host=i386v ;;
1911 i[345]86-*-isc*) gdb_host=i386v32 ;;
1912 i[345]86-*-os9k) gdb_host=i386os9k ;;
1913 i[345]86-*-win32*) gdb_host=i386win32 ;;
1914 m680[01]0-sun-sunos3*) gdb_host=sun2os3 ;;
1915 m680[01]0-sun-sunos4*) gdb_host=sun2os4 ;;
1916 m68030-sony-*) gdb_host=news1000 ;;
1917
1918 m68*-altos-*) gdb_host=altos ;;
1919 m68*-apollo*-sysv*) gdb_host=apollo68v ;;
1920 m68*-apollo*-bsd*) gdb_host=apollo68b ;;
1921 m68*-att-*) gdb_host=3b1 ;;
1922 m68*-bull*-sysv*) gdb_host=dpx2 ;;
1923 m68*-hp-bsd*) gdb_host=hp300bsd ;;
1924 m68*-hp-hpux*) gdb_host=hp300hpux ;;
1925 m68*-isi-*) gdb_host=isi ;;
1926 m68*-*-lynxos*) gdb_host=m68klynx ;;
1927 m68*-*-sysv4*) gdb_host=m68kv4 ;;
1928 m68*-motorola-*) gdb_host=delta68 ;;
1929 m68*-sony-*) gdb_host=news ;;
1930 m68*-sun-sunos3*) gdb_host=sun3os3 ;;
1931 m68*-sun-sunos4*) gdb_host=sun3os4 ;;
1932 m68*-sun-*) gdb_host=sun3os4 ;;
1933
1934 m88*-harris-cxux*) gdb_host=cxux ;;
1935 m88*-motorola-sysv4*) gdb_host=delta88v4 ;;
1936 m88*-motorola-sysv*) gdb_host=delta88 ;;
1937 m88*-*-mach3*) gdb_host=mach3 ;;
1938 m88*-*-*) gdb_host=m88k ;;
1939
1940 mips-dec-mach3*) gdb_host=mach3 ;;
1941 mips-dec-*) gdb_host=decstation ;;
1942 mips-little-*) gdb_host=littlemips ;;
1943 mips-sgi-irix3*) gdb_host=irix3 ;;
1944 mips-sgi-irix4*) gdb_host=irix4 ;;
1945 mips-sgi-irix5*) gdb_host=irix5 ;;
1946 mips-sony-*) gdb_host=news-mips ;;
1947 mips-*-mach3*) gdb_host=mach3 ;;
1948 mips-*-sysv4*) gdb_host=mipsv4 ;;
1949 mips-*-sysv*) gdb_host=riscos ;;
1950 mips-*-riscos*) gdb_host=riscos ;;
1951
1952 none-*-*) gdb_host=none ;;
1953
1954 np1-*-*) gdb_host=np1 ;;
1955
1956 ns32k-*-mach3*) gdb_host=mach3 ;;
1957 ns32k-*-netbsd*) gdb_host=nbsd ;;
1958 ns32k-umax-*) gdb_host=umax ;;
1959 ns32k-utek-sysv*) gdb_host=merlin ;;
1960
1961 powerpc-*-aix*) gdb_host=aix ;;
1962
1963 pn-*-*) gdb_host=pn ;;
1964
1965 pyramid-*-*) gdb_host=pyramid ;;
1966
1967 romp-*-*) gdb_host=rtbsd ;;
1968
1969 rs6000-*-lynxos*) gdb_host=rs6000lynx ;;
1970 rs6000-*-*) gdb_host=rs6000 ;;
1971
1972 sparc-*-lynxos*) gdb_host=sparclynx ;;
1973 sparc-*-netbsd*) gdb_host=nbsd ;;
1974 sparc-*-solaris2*) gdb_host=sun4sol2 ;;
1975 sparc-*-sunos4*) gdb_host=sun4os4 ;;
1976 sparc-*-sunos5*) gdb_host=sun4sol2 ;;
1977 sparc-*-*) gdb_host=sun4os4 ;;
1978
1979 tahoe-*-*) gdb_host=tahoe ;;
1980
1981 vax-*-bsd*) gdb_host=vaxbsd ;;
1982 vax-*-ultrix2*) gdb_host=vaxult2 ;;
1983 vax-*-ultrix*) gdb_host=vaxult ;;
1984
1985 w65-*-*) gdb_host=w65 ;;
1986
1987 esac
1988
1989
1990 # Map target cpu into the config cpu subdirectory name.
1991 # The default is $target_cpu.
1992
1993 case "${target_cpu}" in
1994
1995 alpha) gdb_target_cpu=alpha ;;
1996 c[12]) gdb_target_cpu=convex ;;
1997 hppa*) gdb_target_cpu=pa ;;
1998 i[345]86) gdb_target_cpu=i386 ;;
1999 m68*) gdb_target_cpu=m68k ;;
2000 m88*) gdb_target_cpu=m88k ;;
2001 mips*) gdb_target_cpu=mips ;;
2002 np1) gdb_target_cpu=gould ;;
2003 powerpc*) gdb_target_cpu=powerpc ;;
2004 pn) gdb_target_cpu=gould ;;
2005 pyramid) gdb_target_cpu=pyr ;;
2006 sparc*) gdb_target_cpu=sparc ;;
2007 *) gdb_target_cpu=$target_cpu ;;
2008
2009 esac
2010
2011 # map target info into gdb names.
2012
2013 case "${target}" in
2014
2015 a29k-*-aout*) gdb_target=a29k ;;
2016 a29k-*-coff*) gdb_target=a29k ;;
2017 a29k-*-elf*) gdb_target=a29k ;;
2018 a29k-*-ebmon*) gdb_target=a29k ;;
2019 a29k-*-kern*) gdb_target=a29k-kern ;;
2020 a29k-*-none*) gdb_target=a29k ;;
2021 a29k-*-sym1*) gdb_target=ultra3 ;;
2022 a29k-*-udi*) gdb_target=a29k-udi ;;
2023 a29k-*-vxworks*) gdb_target=vx29k ;;
2024
2025 alpha-*-osf*) gdb_target=alpha-osf1 ;;
2026
2027 # start-sanitize-arc
2028 arc-*-*) gdb_target=arc ;;
2029 # end-sanitize-arc
2030
2031 arm-*-*) gdb_target=arm ;;
2032
2033 c1-*-*) gdb_target=convex ;;
2034 c2-*-*) gdb_target=convex ;;
2035
2036 h8300-*-*) gdb_target=h8300 ;;
2037 h8500-*-*) gdb_target=h8500 ;;
2038
2039 sh-*-*) gdb_target=sh ;;
2040
2041 # start-sanitize-r16
2042 r16-*-*) gdb_target=r16 ;;
2043 # end-sanitize-r16
2044
2045 hppa*-*-bsd*) gdb_target=hppabsd ;;
2046 hppa*-*-pro*) gdb_target=hppapro ;;
2047 hppa*-*-hpux*) gdb_target=hppahpux ;;
2048 hppa*-*-hiux*) gdb_target=hppahpux ;;
2049 hppa*-*-osf*) gdb_target=hppaosf ;;
2050
2051 i[345]86-sequent-bsd*) gdb_target=symmetry ;;
2052 i[345]86-sequent-sysv4*) gdb_target=ptx4 ;;
2053 i[345]86-sequent-sysv*) gdb_target=ptx ;;
2054 i[345]86-ncr-*) gdb_target=ncr3000 ;;
2055 i[345]86-*-aout*) gdb_target=i386aout ;;
2056 i[345]86-*-coff*) gdb_target=i386v ;;
2057 i[345]86-*-elf*) gdb_target=i386v ;;
2058 i[345]86-*-aix*) gdb_target=i386aix ;;
2059 i[345]86-*-bsd*) gdb_target=i386bsd ;;
2060 i[345]86-*-freebsd*) gdb_target=fbsd ;;
2061 i[345]86-*-netbsd*) gdb_target=nbsd ;;
2062 i[345]86-*-os9k) gdb_target=i386os9k ;;
2063 i[345]86-*-go32*) gdb_target=i386aout ;;
2064 i[345]86-*-lynxos*) gdb_target=i386lynx
2065 configdirs="${configdirs} gdbserver" ;;
2066 i[345]86-*-solaris*) gdb_target=i386sol2 ;;
2067 i[345]86-*-sunos*) gdb_target=sun386 ;;
2068 i[345]86-*-sysv4*) gdb_target=i386v4 ;;
2069 i[345]86-*-sco*) gdb_target=i386v ;;
2070 i[345]86-*-sysv*) gdb_target=i386v ;;
2071 i[345]86-*-linux*) gdb_target=linux ;;
2072 i[345]86-*-isc*) gdb_target=i386v ;;
2073 i[345]86-*-mach3*) gdb_target=i386m3 ;;
2074 i[345]86-*-mach*) gdb_target=i386mach ;;
2075 i[345]86-*-netware*) gdb_target=i386nw
2076 configdirs="${configdirs} nlm" ;;
2077 i[345]86-*-osf1mk*) gdb_target=i386mk ;;
2078
2079 i960-*-bout*) gdb_target=vxworks960 ;;
2080 i960-*-coff*) gdb_target=nindy960 ;;
2081 i960-*-elf*) gdb_target=nindy960 ;;
2082
2083 i960-*-nindy*) gdb_target=nindy960 ;;
2084 i960-*-vxworks*) gdb_target=vxworks960 ;;
2085
2086 m68000-*-sunos3*) gdb_target=sun2os3 ;;
2087 m68000-*-sunos4*) gdb_target=sun2os4 ;;
2088
2089 m68*-apollo*-bsd*) gdb_target=apollo68b ;;
2090 m68*-bull-sysv*) gdb_target=dpx2 ;;
2091 m68*-hp-bsd*) gdb_target=hp300bsd ;;
2092 m68*-hp-hpux*) gdb_target=hp300hpux ;;
2093 m68*-altos-*) gdb_target=altos ;;
2094 m68*-att-*) gdb_target=3b1 ;;
2095 m68*-cisco*-*) gdb_target=cisco ;;
2096 m68*-ericsson-*) gdb_target=es1800 ;;
2097 m68*-isi-*) gdb_target=isi ;;
2098 m68*-motorola-*) gdb_target=delta68 ;;
2099 m68*-netx-*) gdb_target=vxworks68 ;;
2100 m68*-sony-*) gdb_target=news ;;
2101 m68*-tandem-*) gdb_target=st2000 ;;
2102 m68*-rom68k-*) gdb_target=monitor ;;
2103 m68*-*bug-*) gdb_target=monitor ;;
2104 m68*-monitor-*) gdb_target=monitor ;;
2105 m68*-est-*) gdb_target=monitor ;;
2106 m68*-*-aout*) gdb_target=monitor ;;
2107 m68*-*-coff*) gdb_target=monitor ;;
2108 m68*-*-elf*) gdb_target=monitor ;;
2109 m68*-*-lynxos*) gdb_target=m68klynx
2110 configdirs="${configdirs} gdbserver" ;;
2111 m68*-*-os68k*) gdb_target=os68k ;;
2112 m68*-*-sunos3*) gdb_target=sun3os3 ;;
2113 m68*-*-sunos4*) gdb_target=sun3os4 ;;
2114 m68*-*-sysv4*) gdb_target=m68kv4 ;;
2115 m68*-*-vxworks*) gdb_target=vxworks68 ;;
2116
2117 m88*-harris-cxux*) gdb_target=cxux ;;
2118 m88*-motorola-sysv4*) gdb_target=delta88v4 ;;
2119 m88*-*-mach3*) gdb_target=mach3 ;;
2120 m88*-motorola-*) gdb_target=delta88 ;;
2121 m88*-*-*) gdb_target=m88k ;;
2122
2123 mips64*-big-*) gdb_target=bigmips64 ;;
2124 mips*-big-*) gdb_target=bigmips ;;
2125 mips*-dec-mach3*) gdb_target=mach3 ;;
2126 mips*-dec-*) gdb_target=decstation ;;
2127 mips64*el-*-ecoff*) gdb_target=idtl64 ;;
2128 mips64*-idt-ecoff*) gdb_target=idt64 ;;
2129 mips64*el-*-elf*) gdb_target=idtl64 ;;
2130 mips64*-*-elf*) gdb_target=idt64 ;;
2131 mips*el-*-ecoff*) gdb_target=idtl ;;
2132 mips*-*-ecoff*) gdb_target=idt ;;
2133 mips*el-*-elf*) gdb_target=idtl ;;
2134 mips*-*-elf*) gdb_target=idt ;;
2135 mips*-little-*) gdb_target=littlemips ;;
2136 mips*-sgi-irix5*) gdb_target=irix5 ;;
2137 mips*-sgi-*) gdb_target=irix3 ;;
2138 mips*-sony-*) gdb_target=bigmips ;;
2139 mips*-*-mach3*) gdb_target=mach3 ;;
2140 mips*-*-sysv4*) gdb_target=mipsv4 ;;
2141 mips*-*-sysv*) gdb_target=bigmips ;;
2142 mips*-*-riscos*) gdb_target=bigmips ;;
2143
2144 none-*-*) gdb_target=none ;;
2145
2146 np1-*-*) gdb_target=np1 ;;
2147
2148 ns32k-*-mach3*) gdb_target=mach3 ;;
2149 ns32k-*-netbsd*) gdb_target=nbsd ;;
2150 ns32k-utek-sysv*) gdb_target=merlin ;;
2151 ns32k-utek-*) gdb_target=umax ;;
2152
2153 pn-*-*) gdb_target=pn ;;
2154 powerpc-*-netware*) gdb_target=ppc-nw
2155 configdirs="${configdirs} nlm" ;;
2156
2157 powerpc-*-aix4*) gdb_target=aix4 ;;
2158 powerpc-*-aix*) gdb_target=aix ;;
2159 powerpc-*-eabisim*) gdb_target=ppc-sim ;;
2160 powerpc-*-eabi*) gdb_target=ppc-eabi ;;
2161 powerpcle-*-eabisim*) gdb_target=ppcle-sim ;;
2162 powerpcle-*-eabi*) gdb_target=ppcle-eabi ;;
2163
2164 pyramid-*-*) gdb_target=pyramid ;;
2165
2166 rs6000-*-lynxos*) gdb_target=rs6000lynx ;;
2167 rs6000-*-aix4*) gdb_target=aix4 ;;
2168 rs6000-*-*) gdb_target=rs6000 ;;
2169
2170 sparc-*-aout*) gdb_target=sparc-em ;;
2171 sparc-*-coff*) gdb_target=sparc-em ;;
2172 sparc-*-elf*) gdb_target=sparc-em ;;
2173 sparc-*-lynxos*) gdb_target=sparclynx
2174 configdirs="${configdirs} gdbserver" ;;
2175 sparc-*-netbsd*) gdb_target=nbsd ;;
2176 sparc-*-solaris2*) gdb_target=sun4sol2 ;;
2177 sparc-*-sunos4*) gdb_target=sun4os4 ;;
2178 sparc-*-sunos5*) gdb_target=sun4sol2 ;;
2179 sparc-*-vxworks*) gdb_target=vxsparc ;;
2180 sparc-*-*) gdb_target=sun4os4 ;;
2181 sparclite*-*-*) gdb_target=sparclite ;;
2182 sparc64-*-*) gdb_target=sp64 ;;
2183
2184 tahoe-*-*) gdb_target=tahoe ;;
2185
2186 vax-*-*) gdb_target=vax ;;
2187
2188 w65-*-*) gdb_target=w65 ;;
2189
2190 z8k-*-coff*) gdb_target=z8k ;;
2191
2192 esac
2193
2194
2195 frags=
2196 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
2197 if test ! -f ${host_makefile_frag}; then
2198 { echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; }
2199 fi
2200 frags="$frags $host_makefile_frag"
2201
2202 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
2203 if test ! -f ${target_makefile_frag}; then
2204 { echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
2205 fi
2206 frags="$frags $target_makefile_frag"
2207
2208
2209
2210
2211
2212 hostfile=`sed -n '
2213 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
2214 ' ${host_makefile_frag}`
2215
2216 targetfile=`sed -n '
2217 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
2218 ' ${target_makefile_frag}`
2219
2220 # these really aren't orthogonal true/false values of the same condition,
2221 # but shells are slow enough that I like to reuse the test conditions
2222 # whenever possible
2223 if test "${target}" = "${host}"; then
2224 nativefile=`sed -n '
2225 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
2226 ' ${host_makefile_frag}`
2227 else
2228 # GDBserver is only useful in a "native" enviroment
2229 configdirs=`echo $configdirs | sed 's/gdbserver//'`
2230 fi
2231
2232
2233 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
2234 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
2235 # corresponding links. But we have to remove the xm.h files and tm.h
2236 # files anyway, e.g. when switching from "configure host" to
2237 # "configure none".
2238
2239 files=
2240 links=
2241 rm -f xm.h
2242 if test "${hostfile}" != ""; then
2243 files="${files} config/${gdb_host_cpu}/${hostfile}"
2244 links="${links} xm.h"
2245 fi
2246 rm -f tm.h
2247 if test "${targetfile}" != ""; then
2248 files="${files} config/${gdb_target_cpu}/${targetfile}"
2249 links="${links} tm.h"
2250 fi
2251 rm -f nm.h
2252 if test "${nativefile}" != ""; then
2253 files="${files} config/${gdb_host_cpu}/${nativefile}"
2254 links="${links} nm.h"
2255 else
2256 # A cross-only configuration.
2257 files="${files} config/nm-empty.h"
2258 links="${links} nm.h"
2259 fi
2260 # start-sanitize-gdbtk
2261
2262 # Make it possible to use the GUI without doing a full install
2263 if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl ; then
2264 files="${files} gdbtk.tcl"
2265 links="${links} gdbtk.tcl"
2266 fi
2267 # end-sanitize-gdbtk
2268
2269
2270
2271 subdirs="$configdirs"
2272
2273 trap '' 1 2 15
2274 cat > confcache <<\EOF
2275 # This file is a shell script that caches the results of configure
2276 # tests run on this system so they can be shared between configure
2277 # scripts and configure runs. It is not useful on other systems.
2278 # If it contains results you don't want to keep, you may remove or edit it.
2279 #
2280 # By default, configure uses ./config.cache as the cache file,
2281 # creating it if it does not exist already. You can give configure
2282 # the --cache-file=FILE option to use a different cache file; that is
2283 # what configure does when it calls configure scripts in
2284 # subdirectories, so they share the cache.
2285 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2286 # config.status only pays attention to the cache file if you give it the
2287 # --recheck option to rerun configure.
2288 #
2289 EOF
2290 # Ultrix sh set writes to stderr and can't be redirected directly,
2291 # and sets the high bit in the cache file unless we assign to the vars.
2292 (set) 2>&1 |
2293 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2294 >> confcache
2295 if cmp -s $cache_file confcache; then
2296 :
2297 else
2298 if test -w $cache_file; then
2299 echo "updating cache $cache_file"
2300 cat confcache > $cache_file
2301 else
2302 echo "not updating unwritable cache $cache_file"
2303 fi
2304 fi
2305 rm -f confcache
2306
2307 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2308
2309 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2310 # Let make expand exec_prefix.
2311 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2312
2313 # Any assignment to VPATH causes Sun make to only execute
2314 # the first set of double-colon rules, so remove it if not needed.
2315 # If there is a colon in the path, we need to keep it.
2316 if test "x$srcdir" = x.; then
2317 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2318 fi
2319
2320 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2321
2322 # Transform confdefs.h into DEFS.
2323 # Protect against shell expansion while executing Makefile rules.
2324 # Protect against Makefile macro expansion.
2325 cat > conftest.defs <<\EOF
2326 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
2327 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2328 s%\[%\\&%g
2329 s%\]%\\&%g
2330 s%\$%$$%g
2331 EOF
2332 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2333 rm -f conftest.defs
2334
2335
2336 # Without the "./", some shells look in PATH for config.status.
2337 : ${CONFIG_STATUS=./config.status}
2338
2339 echo creating $CONFIG_STATUS
2340 rm -f $CONFIG_STATUS
2341 cat > $CONFIG_STATUS <<EOF
2342 #! /bin/sh
2343 # Generated automatically by configure.
2344 # Run this file to recreate the current configuration.
2345 # This directory was configured as follows,
2346 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2347 #
2348 # $0 $ac_configure_args
2349 #
2350 # Compiler output produced by configure, useful for debugging
2351 # configure, is in ./config.log if it exists.
2352
2353 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2354 for ac_option
2355 do
2356 case "\$ac_option" in
2357 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2358 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2359 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2360 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2361 echo "$CONFIG_STATUS generated by autoconf version 2.4"
2362 exit 0 ;;
2363 -help | --help | --hel | --he | --h)
2364 echo "\$ac_cs_usage"; exit 0 ;;
2365 *) echo "\$ac_cs_usage"; exit 1 ;;
2366 esac
2367 done
2368
2369 ac_given_srcdir=$srcdir
2370 ac_given_INSTALL="$INSTALL"
2371
2372 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2373
2374 # Protect against being on the right side of a sed subst in config.status.
2375 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
2376 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
2377 $ac_vpsub
2378 $extrasub
2379 s%@CFLAGS@%$CFLAGS%g
2380 s%@CPPFLAGS@%$CPPFLAGS%g
2381 s%@CXXFLAGS@%$CXXFLAGS%g
2382 s%@DEFS@%$DEFS%g
2383 s%@LDFLAGS@%$LDFLAGS%g
2384 s%@LIBS@%$LIBS%g
2385 s%@exec_prefix@%$exec_prefix%g
2386 s%@prefix@%$prefix%g
2387 s%@program_transform_name@%$program_transform_name%g
2388 s%@CC@%$CC%g
2389 s%@CPP@%$CPP%g
2390 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2391 s%@INSTALL_DATA@%$INSTALL_DATA%g
2392 s%@RANLIB@%$RANLIB%g
2393 s%@host@%$host%g
2394 s%@host_alias@%$host_alias%g
2395 s%@host_cpu@%$host_cpu%g
2396 s%@host_vendor@%$host_vendor%g
2397 s%@host_os@%$host_os%g
2398 s%@target@%$target%g
2399 s%@target_alias@%$target_alias%g
2400 s%@target_cpu@%$target_cpu%g
2401 s%@target_vendor@%$target_vendor%g
2402 s%@target_os@%$target_os%g
2403 s%@build@%$build%g
2404 s%@build_alias@%$build_alias%g
2405 s%@build_cpu@%$build_cpu%g
2406 s%@build_vendor@%$build_vendor%g
2407 s%@build_os@%$build_os%g
2408 s%@X_CFLAGS@%$X_CFLAGS%g
2409 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2410 s%@X_LIBS@%$X_LIBS%g
2411 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2412 s%@TKHDIR@%$TKHDIR%g
2413 s%@TKLIB@%$TKLIB%g
2414 s%@TCLHDIR@%$TCLHDIR%g
2415 s%@TCLLIB@%$TCLLIB%g
2416 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
2417 s%@X_INCDIR@%$X_INCDIR%g
2418 s%@X_LIBDIR@%$X_LIBDIR%g
2419 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
2420 s%@ENABLE_CLIBS@%$ENABLE_CLIBS%g
2421 s%@ENABLE_OBS@%$ENABLE_OBS%g
2422 /@host_makefile_frag@/r $host_makefile_frag
2423 s%@host_makefile_frag@%%g
2424 /@target_makefile_frag@/r $target_makefile_frag
2425 s%@target_makefile_frag@%%g
2426 s%@frags@%$frags%g
2427 s%@subdirs@%$subdirs%g
2428
2429 CEOF
2430 EOF
2431 cat >> $CONFIG_STATUS <<EOF
2432
2433 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2434 EOF
2435 cat >> $CONFIG_STATUS <<\EOF
2436 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2437 # Support "outfile[:infile]", defaulting infile="outfile.in".
2438 case "$ac_file" in
2439 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2440 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2441 *) ac_file_in="${ac_file}.in" ;;
2442 esac
2443
2444 # Adjust relative srcdir, etc. for subdirectories.
2445
2446 # Remove last slash and all that follows it. Not all systems have dirname.
2447 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2448 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2449 # The file is in a subdirectory.
2450 test ! -d "$ac_dir" && mkdir "$ac_dir"
2451 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2452 # A "../" for each directory in $ac_dir_suffix.
2453 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2454 else
2455 ac_dir_suffix= ac_dots=
2456 fi
2457
2458 case "$ac_given_srcdir" in
2459 .) srcdir=.
2460 if test -z "$ac_dots"; then top_srcdir=.
2461 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2462 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2463 *) # Relative path.
2464 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2465 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2466 esac
2467
2468 case "$ac_given_INSTALL" in
2469 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2470 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2471 esac
2472 echo creating "$ac_file"
2473 rm -f "$ac_file"
2474 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2475 case "$ac_file" in
2476 *Makefile*) ac_comsub="1i\\
2477 # $configure_input" ;;
2478 *) ac_comsub= ;;
2479 esac
2480 sed -e "$ac_comsub
2481 s%@configure_input@%$configure_input%g
2482 s%@srcdir@%$srcdir%g
2483 s%@top_srcdir@%$top_srcdir%g
2484 s%@INSTALL@%$INSTALL%g
2485 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2486 fi; done
2487 rm -f conftest.subs
2488
2489 EOF
2490
2491 cat >> $CONFIG_STATUS <<EOF
2492 ac_sources="$files"
2493 ac_dests="$links"
2494 EOF
2495
2496 cat >> $CONFIG_STATUS <<\EOF
2497 srcdir=$ac_given_srcdir
2498 while test -n "$ac_sources"; do
2499 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2500 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2501
2502 echo "linking $srcdir/$ac_source to $ac_dest"
2503
2504 if test ! -r $srcdir/$ac_source; then
2505 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2506 fi
2507 rm -f $ac_dest
2508
2509 # Make relative symlinks.
2510 # Remove last slash and all that follows it. Not all systems have dirname.
2511 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2512 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2513 # The dest file is in a subdirectory.
2514 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2515 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2516 # A "../" for each directory in $ac_dest_dir_suffix.
2517 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2518 else
2519 ac_dest_dir_suffix= ac_dots=
2520 fi
2521
2522 case "$srcdir" in
2523 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2524 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2525 esac
2526
2527 # Make a symlink if possible; otherwise try a hard link.
2528 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2529 ln $srcdir/$ac_source $ac_dest; then :
2530 else
2531 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2532 fi
2533 done
2534 EOF
2535 cat >> $CONFIG_STATUS <<EOF
2536
2537 gdb_host_cpu=$gdb_host_cpu
2538 gdb_target_cpu=$gdb_target_cpu
2539 nativefile=$nativefile
2540
2541 EOF
2542 cat >> $CONFIG_STATUS <<\EOF
2543
2544 if test "${nativefile}" = ""; then
2545 sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
2546 < Makefile > Makefile.tem
2547 mv -f Makefile.tem Makefile
2548 fi
2549
2550 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
2551 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
2552 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
2553 mv -f Makefile.tmp Makefile
2554
2555 case ${srcdir} in
2556 .)
2557 ;;
2558 *)
2559 grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
2560 echo "source ${srcdir}/.gdbinit" >> .gdbinit
2561 esac
2562
2563 exit 0
2564 EOF
2565 chmod +x $CONFIG_STATUS
2566 rm -fr confdefs* $ac_clean_files
2567 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2568
2569 if test "$no_recursion" != yes; then
2570
2571 # Remove --cache-file and --srcdir arguments so they do not pile up.
2572 ac_sub_configure_args=
2573 ac_prev=
2574 for ac_arg in $ac_configure_args; do
2575 if test -n "$ac_prev"; then
2576 ac_prev=
2577 continue
2578 fi
2579 case "$ac_arg" in
2580 -cache-file | --cache-file | --cache-fil | --cache-fi \
2581 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2582 ac_prev=cache_file ;;
2583 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2584 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2585 ;;
2586 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2587 ac_prev=srcdir ;;
2588 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2589 ;;
2590 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2591 esac
2592 done
2593
2594 for ac_config_dir in $configdirs; do
2595
2596 # Do not complain, so a configure script can configure whichever
2597 # parts of a large source tree are present.
2598 if test ! -d $srcdir/$ac_config_dir; then
2599 continue
2600 fi
2601
2602 echo configuring in $ac_config_dir
2603
2604 case "$srcdir" in
2605 .) ;;
2606 *)
2607 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2608 else
2609 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2610 fi
2611 ;;
2612 esac
2613
2614 ac_popdir=`pwd`
2615 cd $ac_config_dir
2616
2617 case "$srcdir" in
2618 .) # No --srcdir option. We are building in place.
2619 ac_sub_srcdir=$srcdir ;;
2620 /*) # Absolute path.
2621 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2622 *) # Relative path.
2623 ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
2624 esac
2625
2626 # Check for guested configure; otherwise get Cygnus style configure.
2627 if test -f $ac_sub_srcdir/configure; then
2628 ac_sub_configure=$ac_sub_srcdir/configure
2629 elif test -f $ac_sub_srcdir/configure.in; then
2630 ac_sub_configure=$ac_configure
2631 else
2632 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2633 ac_sub_configure=
2634 fi
2635
2636 # The recursion is here.
2637 if test -n "$ac_sub_configure"; then
2638
2639 # Make the cache file name correct relative to the subdirectory.
2640 # A "../" for each directory in /$ac_config_dir.
2641 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2642 case "$cache_file" in
2643 /*) ac_sub_cache_file=$cache_file ;;
2644 *) # Relative path.
2645 ac_sub_cache_file="$ac_dots$cache_file" ;;
2646 esac
2647 case "$ac_given_INSTALL" in
2648 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2649 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2650 esac
2651
2652 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2653 # The eval makes quoting arguments work.
2654 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2655 then :
2656 else
2657 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2658 fi
2659 fi
2660
2661 cd $ac_popdir
2662 done
2663 fi
2664
2665
2666 exit 0
This page took 0.091074 seconds and 5 git commands to generate.