3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.4.2
5 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
19 --with-x use the X Window System"
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
25 cache_file
=.
/config.cache
34 program_transform_name
=s
,x
,x
,
42 bindir
='${exec_prefix}/bin'
43 sbindir
='${exec_prefix}/sbin'
44 libexecdir
='${exec_prefix}/libexec'
45 datadir
='${prefix}/share'
46 sysconfdir
='${prefix}/etc'
47 sharedstatedir
='${prefix}/com'
48 localstatedir
='${prefix}/var'
49 libdir
='${exec_prefix}/lib'
50 includedir
='${prefix}/include'
51 oldincludedir
='/usr/include'
52 infodir
='${prefix}/info'
53 mandir
='${prefix}/man'
55 # Initialize some other variables.
62 # If the previous option needs an argument, assign it.
63 if test -n "$ac_prev"; then
64 eval "$ac_prev=\$ac_option"
70 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
74 # Accept the important Cygnus configure options, so we can diagnose typos.
78 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
80 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
81 bindir
="$ac_optarg" ;;
83 -build |
--build |
--buil |
--bui |
--bu)
85 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
88 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
89 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
91 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
92 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
93 cache_file
="$ac_optarg" ;;
95 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
97 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
99 datadir
="$ac_optarg" ;;
101 -disable-* |
--disable-*)
102 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
103 # Reject names that are not valid shell variable names.
104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
107 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
108 eval "enable_${ac_feature}=no" ;;
110 -enable-* |
--enable-*)
111 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112 # Reject names that are not valid shell variable names.
113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}='$ac_optarg'" ;;
123 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
124 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
125 |
--exec |
--exe |
--ex)
126 ac_prev
=exec_prefix
;;
127 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
128 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
129 |
--exec=* |
--exe=* |
--ex=*)
130 exec_prefix
="$ac_optarg" ;;
132 -gas |
--gas |
--ga |
--g)
133 # Obsolete; use --with-gas.
136 -help |
--help |
--hel |
--he)
137 # Omit some internal or obsolete options to make the list less imposing.
138 # This message is too long to be a string in the A/UX 3.1 sh.
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
143 --cache-file=FILE cache test results in FILE
144 --help print this message
145 --no-create do not create output files
146 --quiet, --silent do not print \`checking...' messages
147 --version print the version of autoconf that created configure
148 Directory and file names:
149 --prefix=PREFIX install architecture-independent files in PREFIX
151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
153 --bindir=DIR user executables in DIR [EPREFIX/bin]
154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
156 --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share]
157 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
158 --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com]
159 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
160 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
161 --includedir=DIR C header files in DIR [PREFIX/include]
162 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
163 --infodir=DIR info documentation in DIR [PREFIX/info]
164 --mandir=DIR man documentation in DIR [PREFIX/man]
165 --srcdir=DIR find the sources in DIR [configure dir or ..]
166 --program-prefix=PREFIX prepend PREFIX to installed program names
167 --program-suffix=SUFFIX append SUFFIX to installed program names
168 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
172 --build=BUILD configure for building on BUILD [BUILD=HOST]
173 --host=HOST configure for HOST [guessed]
174 --target=TARGET configure for TARGET [TARGET=HOST]
175 Features and packages:
176 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
177 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
178 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
179 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
180 --x-includes=DIR X include files are in DIR
181 --x-libraries=DIR X library files are in DIR
182 --enable and --with options recognized:$ac_help
186 -host |
--host |
--hos |
--ho)
188 -host=* |
--host=* |
--hos=* |
--ho=*)
191 -includedir |
--includedir |
--includedi |
--included |
--include \
192 |
--includ |
--inclu |
--incl |
--inc)
193 ac_prev
=includedir
;;
194 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
195 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
196 includedir
="$ac_optarg" ;;
198 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
200 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
201 infodir
="$ac_optarg" ;;
203 -libdir |
--libdir |
--libdi |
--libd)
205 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
206 libdir
="$ac_optarg" ;;
208 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
209 |
--libexe |
--libex |
--libe)
210 ac_prev
=libexecdir
;;
211 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
212 |
--libexe=* |
--libex=* |
--libe=*)
213 libexecdir
="$ac_optarg" ;;
215 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
216 |
--localstate |
--localstat |
--localsta |
--localst \
217 |
--locals |
--local |
--loca |
--loc |
--lo)
218 ac_prev
=localstatedir
;;
219 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
220 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
221 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
222 localstatedir
="$ac_optarg" ;;
224 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
226 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
227 mandir
="$ac_optarg" ;;
230 # Obsolete; use --without-fp.
233 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
237 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
238 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
241 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
242 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
243 |
--oldin |
--oldi |
--old |
--ol |
--o)
244 ac_prev
=oldincludedir
;;
245 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
246 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
247 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
248 oldincludedir
="$ac_optarg" ;;
250 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
252 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
253 prefix
="$ac_optarg" ;;
255 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
256 |
--program-pre |
--program-pr |
--program-p)
257 ac_prev
=program_prefix
;;
258 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
259 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
260 program_prefix
="$ac_optarg" ;;
262 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
263 |
--program-suf |
--program-su |
--program-s)
264 ac_prev
=program_suffix
;;
265 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
266 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
267 program_suffix
="$ac_optarg" ;;
269 -program-transform-name |
--program-transform-name \
270 |
--program-transform-nam |
--program-transform-na \
271 |
--program-transform-n |
--program-transform- \
272 |
--program-transform |
--program-transfor \
273 |
--program-transfo |
--program-transf \
274 |
--program-trans |
--program-tran \
275 |
--progr-tra |
--program-tr |
--program-t)
276 ac_prev
=program_transform_name
;;
277 -program-transform-name=* |
--program-transform-name=* \
278 |
--program-transform-nam=* |
--program-transform-na=* \
279 |
--program-transform-n=* |
--program-transform-=* \
280 |
--program-transform=* |
--program-transfor=* \
281 |
--program-transfo=* |
--program-transf=* \
282 |
--program-trans=* |
--program-tran=* \
283 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
284 program_transform_name
="$ac_optarg" ;;
286 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
287 |
-silent |
--silent |
--silen |
--sile |
--sil)
290 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
292 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
294 sbindir
="$ac_optarg" ;;
296 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
297 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
298 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
300 ac_prev
=sharedstatedir
;;
301 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
302 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
303 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
305 sharedstatedir
="$ac_optarg" ;;
307 -site |
--site |
--sit)
309 -site=* |
--site=* |
--sit=*)
312 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
314 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
315 srcdir
="$ac_optarg" ;;
317 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
318 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
319 ac_prev
=sysconfdir
;;
320 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
321 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
322 sysconfdir
="$ac_optarg" ;;
324 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
326 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
327 target
="$ac_optarg" ;;
329 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
332 -version |
--version |
--versio |
--versi |
--vers)
333 echo "configure generated by autoconf version 2.4.2"
337 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
338 # Reject names that are not valid shell variable names.
339 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
340 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
342 ac_package
=`echo $ac_package| sed 's/-/_/g'`
347 eval "with_${ac_package}='$ac_optarg'" ;;
349 -without-* |
--without-*)
350 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
351 # Reject names that are not valid shell variable names.
352 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
355 ac_package
=`echo $ac_package| sed 's/-/_/g'`
356 eval "with_${ac_package}=no" ;;
359 # Obsolete; use --with-x.
362 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
363 |
--x-incl |
--x-inc |
--x-in |
--x-i)
364 ac_prev
=x_includes
;;
365 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
366 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
367 x_includes
="$ac_optarg" ;;
369 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
370 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
371 ac_prev
=x_libraries
;;
372 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
373 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
374 x_libraries
="$ac_optarg" ;;
376 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
380 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
381 echo "configure: warning: $ac_option: invalid host type" 1>&2
383 if test "x$nonopt" != xNONE
; then
384 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
392 if test -n "$ac_prev"; then
393 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
396 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
398 # File descriptor usage:
401 # 2 errors and warnings
402 # 3 some systems may open it to /dev/tty
403 # 4 used on the Kubota Titan
404 # 6 checking for... messages and results
405 # 5 compiler messages saved in config.log
406 if test "$silent" = yes; then
414 This file contains any messages produced by compilers while
415 running configure, to aid debugging if configure makes a mistake.
418 # Strip out --no-create and --no-recursion so they do not pile up.
419 # Also quote any args containing shell metacharacters.
424 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
425 |
--no-cr |
--no-c) ;;
426 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
427 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
428 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
429 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
430 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
435 # Only set LANG and LC_ALL to C if already set.
436 # These must not be set unconditionally because not all systems understand
437 # e.g. LANG=C (notably SCO).
438 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
439 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
441 # confdefs.h avoids OS command line length limits that DEFS can exceed.
442 rm -rf conftest
* confdefs.h
443 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
446 # A filename unique to this package, relative to the directory that
447 # configure is in, which we can look for to find out if srcdir is correct.
448 ac_unique_file
=main.c
450 # Find the source files, if location was not specified.
451 if test -z "$srcdir"; then
452 ac_srcdir_defaulted
=yes
453 # Try the directory containing this script, then its parent.
455 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
456 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
458 if test ! -r $srcdir/$ac_unique_file; then
462 ac_srcdir_defaulted
=no
464 if test ! -r $srcdir/$ac_unique_file; then
465 if test "$ac_srcdir_defaulted" = yes; then
466 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
468 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
471 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
473 # Prefer explicitly selected file to automatically selected ones.
474 if test -z "$CONFIG_SITE"; then
475 if test "x$prefix" != xNONE
; then
476 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
478 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
481 for ac_site_file
in $CONFIG_SITE; do
482 if test -r "$ac_site_file"; then
483 echo "loading site script $ac_site_file"
488 if test -r "$cache_file"; then
489 echo "loading cache $cache_file"
492 echo "creating cache $cache_file"
497 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
498 ac_cpp
='echo $CPP $CPPFLAGS 1>&5;
500 ac_compile
='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
501 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
502 ac_link
='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
503 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
505 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
506 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
507 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
514 ac_n
= ac_c
='\c' ac_t
=
520 # Extract the first word of "gcc", so it can be a program name with args.
521 set dummy gcc
; ac_word
=$2
522 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
523 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
524 echo $ac_n "(cached) $ac_c" 1>&6
526 if test -n "$CC"; then
527 ac_cv_prog_CC
="$CC" # Let the user override the test.
529 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
530 for ac_dir
in $PATH; do
531 test -z "$ac_dir" && ac_dir
=.
532 if test -f $ac_dir/$ac_word; then
538 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="cc"
542 if test -n "$CC"; then
543 echo "$ac_t""$CC" 1>&6
545 echo "$ac_t""no" 1>&6
549 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
550 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
551 echo $ac_n "(cached) $ac_c" 1>&6
553 cat > conftest.c
<<EOF
558 if ${CC-cc} -E conftest.c
2>&5 |
egrep yes >/dev
/null
2>&1; then
565 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
566 if test $ac_cv_prog_gcc = yes; then
568 if test "${CFLAGS+set}" != set; then
569 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
570 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
571 echo $ac_n "(cached) $ac_c" 1>&6
573 echo 'void f(){}' > conftest.c
574 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
583 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
584 if test $ac_cv_prog_gcc_g = yes; then
592 test "${CFLAGS+set}" = set || CFLAGS
="-g"
595 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
596 # On Suns, sometimes $CPP names a directory.
597 if test -n "$CPP" && test -d "$CPP"; then
600 if test -z "$CPP"; then
601 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
602 echo $ac_n "(cached) $ac_c" 1>&6
604 # This must be in double quotes, not single quotes, because CPP may get
605 # substituted into the Makefile and "${CC-cc}" will confuse make.
607 # On the NeXT, cc -E runs the code through the compiler's parser,
608 # not just through cpp.
609 cat > conftest.
$ac_ext <<EOF
610 #line 611 "configure"
611 #include "confdefs.h"
615 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
616 ac_err
=`grep -v '^ *+' conftest.out`
617 if test -z "$ac_err"; then
622 CPP
="${CC-cc} -E -traditional-cpp"
623 cat > conftest.
$ac_ext <<EOF
624 #line 625 "configure"
625 #include "confdefs.h"
629 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
630 ac_err
=`grep -v '^ *+' conftest.out`
631 if test -z "$ac_err"; then
641 ac_cv_prog_CPP
="$CPP"
643 CPP
="$ac_cv_prog_CPP"
645 ac_cv_prog_CPP
="$CPP"
647 echo "$ac_t""$CPP" 1>&6
649 echo $ac_n "checking for AIX""... $ac_c" 1>&6
650 cat > conftest.
$ac_ext <<EOF
651 #line 652 "configure"
652 #include "confdefs.h"
658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
659 egrep "yes" >/dev
/null
2>&1; then
661 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
662 #define _ALL_SOURCE 1
667 echo "$ac_t""no" 1>&6
672 ac_safe
=`echo "minix/config.h" | tr './\055' '___'`
673 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
677 cat > conftest.
$ac_ext <<EOF
678 #line 679 "configure"
679 #include "confdefs.h"
680 #include <minix/config.h>
682 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683 ac_err
=`grep -v '^ *+' conftest.out`
684 if test -z "$ac_err"; then
686 eval "ac_cv_header_$ac_safe=yes"
690 eval "ac_cv_header_$ac_safe=no"
694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
695 echo "$ac_t""yes" 1>&6
698 echo "$ac_t""no" 1>&6
702 if test "$MINIX" = yes; then
703 cat >> confdefs.h
<<\EOF
704 #define _POSIX_SOURCE 1
707 cat >> confdefs.h
<<\EOF
708 #define _POSIX_1_SOURCE 2
711 cat >> confdefs.h
<<\EOF
717 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
718 if test -d /etc
/conf
/kconfig.d
&&
719 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
721 echo "$ac_t""yes" 1>&6
722 ISC
=yes # If later tests want to check for ISC.
723 cat >> confdefs.h
<<\EOF
724 #define _POSIX_SOURCE 1
727 if test "$GCC" = yes; then
733 echo "$ac_t""no" 1>&6
739 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
740 if test -f $ac_dir/install-sh
; then
742 ac_install_sh
="$ac_aux_dir/install-sh -c"
744 elif test -f $ac_dir/install.sh
; then
746 ac_install_sh
="$ac_aux_dir/install.sh -c"
750 if test -z "$ac_aux_dir"; then
751 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
753 ac_config_guess
=$ac_aux_dir/config.guess
754 ac_config_sub
=$ac_aux_dir/config.sub
755 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
757 # Find a good install program. We prefer a C program (faster),
758 # so one script is as good as another. But avoid the broken or
759 # incompatible versions:
760 # SysV /etc/install, /usr/sbin/install
761 # SunOS /usr/etc/install
764 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
765 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
766 # ./install, which can be erroneously created by make from ./install.sh.
767 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
768 if test -z "$INSTALL"; then
769 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
770 echo $ac_n "(cached) $ac_c" 1>&6
772 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
773 for ac_dir
in $PATH; do
774 # Account for people who put trailing slashes in PATH elements.
776 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
778 # OSF1 and SCO ODT 3.0 have their own names for install.
779 for ac_prog
in ginstall installbsd scoinst
install; do
780 if test -f $ac_dir/$ac_prog; then
781 if test $ac_prog = install &&
782 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
783 # AIX install. It has an incompatible calling convention.
784 # OSF/1 installbsd also uses dspmsg, but is usable.
787 ac_cv_path_install
="$ac_dir/$ac_prog -c"
798 if test "${ac_cv_path_install+set}" = set; then
799 INSTALL
="$ac_cv_path_install"
801 # As a last resort, use the slow shell script. We don't cache a
802 # path for INSTALL within a source directory, because that will
803 # break other packages using the cache if that directory is
804 # removed, or if the path is relative.
805 INSTALL
="$ac_install_sh"
808 echo "$ac_t""$INSTALL" 1>&6
810 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
811 # It thinks the first close brace ends the variable substitution.
812 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
814 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
816 # Extract the first word of "ranlib", so it can be a program name with args.
817 set dummy ranlib
; ac_word
=$2
818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
819 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
820 echo $ac_n "(cached) $ac_c" 1>&6
822 if test -n "$RANLIB"; then
823 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
825 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
826 for ac_dir
in $PATH; do
827 test -z "$ac_dir" && ac_dir
=.
828 if test -f $ac_dir/$ac_word; then
829 ac_cv_prog_RANLIB
="ranlib"
834 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
837 RANLIB
="$ac_cv_prog_RANLIB"
838 if test -n "$RANLIB"; then
839 echo "$ac_t""$RANLIB" 1>&6
841 echo "$ac_t""no" 1>&6
844 for ac_prog
in 'bison -y' byacc
846 # Extract the first word of "$ac_prog", so it can be a program name with args.
847 set dummy
$ac_prog; ac_word
=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
852 if test -n "$YACC"; then
853 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
855 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
856 for ac_dir
in $PATH; do
857 test -z "$ac_dir" && ac_dir
=.
858 if test -f $ac_dir/$ac_word; then
859 ac_cv_prog_YACC
="$ac_prog"
866 YACC
="$ac_cv_prog_YACC"
867 if test -n "$YACC"; then
868 echo "$ac_t""$YACC" 1>&6
870 echo "$ac_t""no" 1>&6
873 test -n "$YACC" && break
875 test -n "$YACC" || YACC
="yacc"
879 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
880 if test -f $ac_dir/install-sh
; then
882 ac_install_sh
="$ac_aux_dir/install-sh -c"
884 elif test -f $ac_dir/install.sh
; then
886 ac_install_sh
="$ac_aux_dir/install.sh -c"
890 if test -z "$ac_aux_dir"; then
891 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
893 ac_config_guess
=$ac_aux_dir/config.guess
894 ac_config_sub
=$ac_aux_dir/config.sub
895 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
898 # Do some error checking and defaulting for the host and target type.
900 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
903 # 1. You are not allowed to specify --host, --target, and nonopt at the
905 # 2. Host defaults to nonopt.
906 # 3. If nonopt is not specified, then host defaults to the current host,
907 # as determined by config.guess.
908 # 4. Target and build default to nonopt.
909 # 5. If nonopt is not specified, then target and build default to host.
911 # The aliases save the names the user supplied, while $host etc.
912 # will get canonicalized.
913 case $host---$target---$nonopt in
914 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
915 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
919 # Make sure we can run config.sub.
920 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
921 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
924 echo $ac_n "checking host system type""... $ac_c" 1>&6
927 case "$host_alias" in
931 if host_alias
=`$ac_config_guess`; then :
932 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
934 *) host_alias
=$nonopt ;;
938 host=`$ac_config_sub $host_alias`
939 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
940 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
941 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
942 echo "$ac_t""$host" 1>&6
944 echo $ac_n "checking target system type""... $ac_c" 1>&6
947 case "$target_alias" in
950 NONE
) target_alias
=$host_alias ;;
951 *) target_alias
=$nonopt ;;
955 target
=`$ac_config_sub $target_alias`
956 target_cpu
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
957 target_vendor
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
958 target_os
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
959 echo "$ac_t""$target" 1>&6
961 echo $ac_n "checking build system type""... $ac_c" 1>&6
964 case "$build_alias" in
967 NONE
) build_alias
=$host_alias ;;
968 *) build_alias
=$nonopt ;;
972 build
=`$ac_config_sub $build_alias`
973 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
974 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
975 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
976 echo "$ac_t""$build" 1>&6
978 test "$host_alias" != "$target_alias" &&
979 test "$program_prefix$program_suffix$program_transform_name" = \
981 program_prefix
=${target_alias}-
983 if test "$program_transform_name" = s
,x
,x
,; then
984 program_transform_name
=
987 echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
988 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
991 test "$program_prefix" != NONE
&&
992 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
993 # Use a double $ so make ignores it.
994 test "$program_suffix" != NONE
&&
995 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
997 # sed with no file args requires a program.
998 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1001 # If we cannot run a trivial program, we must be cross compiling.
1002 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1003 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1006 if test "$cross_compiling" = yes; then
1009 cat > conftest.
$ac_ext <<EOF
1010 #line 1011 "configure"
1011 #include "confdefs.h"
1015 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1024 echo "$ac_t""$ac_cv_c_cross" 1>&6
1025 cross_compiling
=$ac_cv_c_cross
1027 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1028 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1031 cat > conftest.
$ac_ext <<EOF
1032 #line 1033 "configure"
1033 #include "confdefs.h"
1039 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1040 ac_err
=`grep -v '^ *+' conftest.out`
1041 if test -z "$ac_err"; then
1043 ac_cv_header_stdc
=yes
1047 ac_cv_header_stdc
=no
1051 if test $ac_cv_header_stdc = yes; then
1052 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1053 cat > conftest.
$ac_ext <<EOF
1054 #line 1055 "configure"
1055 #include "confdefs.h"
1058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1059 egrep "memchr" >/dev
/null
2>&1; then
1063 ac_cv_header_stdc
=no
1069 if test $ac_cv_header_stdc = yes; then
1070 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1071 cat > conftest.
$ac_ext <<EOF
1072 #line 1073 "configure"
1073 #include "confdefs.h"
1076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1077 egrep "free" >/dev
/null
2>&1; then
1081 ac_cv_header_stdc
=no
1087 if test $ac_cv_header_stdc = yes; then
1088 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1089 if test "$cross_compiling" = yes; then
1090 ac_cv_header_stdc
=no
1092 cat > conftest.
$ac_ext <<EOF
1093 #line 1094 "configure"
1094 #include "confdefs.h"
1096 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1097 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1099 int main () { int i; for (i = 0; i < 256; i++)
1100 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1105 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1108 ac_cv_header_stdc
=no
1115 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1116 if test $ac_cv_header_stdc = yes; then
1117 cat >> confdefs.h
<<\EOF
1118 #define STDC_HEADERS 1
1123 for ac_hdr
in memory.h string.h
strings.h unistd.h termios.h termio.h sgtty.h
1125 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1127 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1128 echo $ac_n "(cached) $ac_c" 1>&6
1130 cat > conftest.
$ac_ext <<EOF
1131 #line 1132 "configure"
1132 #include "confdefs.h"
1135 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1136 ac_err
=`grep -v '^ *+' conftest.out`
1137 if test -z "$ac_err"; then
1139 eval "ac_cv_header_$ac_safe=yes"
1143 eval "ac_cv_header_$ac_safe=no"
1147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1148 echo "$ac_t""yes" 1>&6
1149 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
1150 cat >> confdefs.h
<<EOF
1151 #define $ac_tr_hdr 1
1155 echo "$ac_t""no" 1>&6
1159 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1160 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1163 cat > conftest.
$ac_ext <<EOF
1164 #line 1165 "configure"
1165 #include "confdefs.h"
1166 #include <sys/types.h>
1167 #include <sys/stat.h>
1169 #if defined(S_ISBLK) && defined(S_IFDIR)
1170 # if S_ISBLK (S_IFDIR)
1175 #if defined(S_ISBLK) && defined(S_IFCHR)
1176 # if S_ISBLK (S_IFCHR)
1181 #if defined(S_ISLNK) && defined(S_IFREG)
1182 # if S_ISLNK (S_IFREG)
1187 #if defined(S_ISSOCK) && defined(S_IFREG)
1188 # if S_ISSOCK (S_IFREG)
1194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1195 egrep "You lose" >/dev
/null
2>&1; then
1197 ac_cv_header_stat_broken
=yes
1200 ac_cv_header_stat_broken
=no
1206 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1207 if test $ac_cv_header_stat_broken = yes; then
1208 cat >> confdefs.h
<<\EOF
1209 #define STAT_MACROS_BROKEN 1
1215 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1216 if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 if test "$cross_compiling" = yes; then
1222 cat > conftest.
$ac_ext <<EOF
1223 #line 1224 "configure"
1224 #include "confdefs.h"
1226 /* Thanks to Mike Haertel and Jim Avera for this test. */
1227 #include <sys/types.h>
1229 #include <sys/mman.h>
1233 # define HAVE_GETPAGESIZE
1237 #ifndef HAVE_GETPAGESIZE
1238 # include <sys/param.h>
1239 # ifdef EXEC_PAGESIZE
1240 # define getpagesize() EXEC_PAGESIZE
1243 # define getpagesize() NBPG * CLSIZE
1249 # define getpagesize() NBPC
1251 # define getpagesize() PAGESIZE /* SVR4 */
1258 # define valloc malloc
1262 extern "C" { void *valloc(unsigned), *malloc(unsigned); }
1264 char *valloc(), *malloc();
1270 char *buf1, *buf2, *buf3;
1271 int i = getpagesize(), j;
1272 int i2 = getpagesize()*2;
1275 buf1 = (char *)valloc(i2);
1276 buf2 = (char *)valloc(i);
1277 buf3 = (char *)malloc(i2);
1278 for (j = 0; j < i2; ++j)
1279 *(buf1 + j) = rand();
1280 fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
1281 write(fd, buf1, i2);
1282 mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
1283 for (j = 0; j < i; ++j)
1284 if (*(buf1 + j) != *(buf2 + j))
1286 lseek(fd, (long)i, 0);
1287 read(fd, buf2, i); /* read into mapped memory -- file should not change */
1288 /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
1289 lseek(fd, (long)0, 0);
1291 for (j = 0; j < i2; ++j)
1292 if (*(buf1 + j) != *(buf3 + j))
1299 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1308 echo "$ac_t""$ac_cv_func_mmap" 1>&6
1309 if test $ac_cv_func_mmap = yes; then
1310 cat >> confdefs.h
<<\EOF
1321 # Check whether --enable-netrom or --disable-netrom was given.
1322 if test "${enable_netrom+set}" = set; then
1323 enableval
="$enable_netrom"
1324 case "${enableval}" in
1325 yes) enable_netrom
=yes ;;
1326 no
) enable_netrom
=no
;;
1327 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
1332 if test "${enable_netrom}" = "yes"; then
1333 ENABLE_OBS
="${ENABLE_OBS} remote-nrom.o"
1336 # start-sanitize-gdbtk
1339 # Check whether --enable-gdbtk or --disable-gdbtk was given.
1340 if test "${enable_gdbtk+set}" = set; then
1341 enableval
="$enable_gdbtk"
1342 case "${enableval}" in
1343 yes) enable_gdbtk
=yes ;;
1344 no
) enable_gdbtk
=no
;;
1345 *) { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
1350 if test "${enable_gdbtk}" = "yes"; then
1351 # If we find X, set shell vars x_includes and x_libraries to the
1352 # paths, otherwise set no_x=yes.
1353 # Uses ac_ vars as temps to allow command line to override cache and checks.
1354 # --without-x overrides everything else, but does not touch the cache.
1355 echo $ac_n "checking for X""... $ac_c" 1>&6
1357 # Check whether --with-x or --without-x was given.
1358 if test "${with_x+set}" = set; then
1363 if test "x$with_x" = xno
; then
1366 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1369 if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1372 # One or both of the vars are not set, and there is no cached value.
1375 if mkdir conftestdir
; then
1377 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1378 cat > Imakefile
<<'EOF'
1380 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1382 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1384 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1385 eval `make acfindx 2>/dev/null | grep -v make`
1386 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1387 for ac_extension
in a so sl
; do
1388 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1389 test -f $ac_im_libdir/libX11.
$ac_extension; then
1390 ac_im_usrlibdir
=$ac_im_libdir; break
1393 # Screen out bogus values from the imake configuration.
1394 case "$ac_im_incroot" in
1396 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1398 case "$ac_im_usrlibdir" in
1400 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1407 if test "$no_x" = yes; then
1408 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1409 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1410 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1411 cat > conftest.
$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1414 #include <$x_direct_test_include>
1416 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1417 ac_err
=`grep -v '^ *+' conftest.out`
1418 if test -z "$ac_err"; then
1420 no_x
= ac_x_includes
=
1425 /usr
/X11R
6/include \
1426 /usr
/X11R
5/include \
1427 /usr
/X11R
4/include \
1429 /usr
/include
/X11R6 \
1430 /usr
/include
/X11R5 \
1431 /usr
/include
/X11R4 \
1433 /usr
/local
/X11R
6/include \
1434 /usr
/local
/X11R
5/include \
1435 /usr
/local
/X11R
4/include \
1437 /usr
/local
/include
/X11R6 \
1438 /usr
/local
/include
/X11R5 \
1439 /usr
/local
/include
/X11R4 \
1443 /usr
/local
/X11
/include \
1444 /usr
/local
/include
/X11 \
1448 /usr
/XFree86
/include
/X11 \
1451 /usr
/local
/include \
1452 /usr
/unsupported
/include \
1453 /usr
/athena
/include \
1454 /usr
/local
/x11r
5/include \
1455 /usr
/lpp
/Xamples
/include \
1457 /usr
/openwin
/include \
1458 /usr
/openwin
/share
/include \
1461 if test -r "$ac_dir/$x_direct_test_include"; then
1462 no_x
= ac_x_includes
=$ac_dir
1469 # Check for the libraries.
1470 # See if we find them without any special options.
1471 # Don't add to $LIBS permanently.
1472 ac_save_LIBS
="$LIBS"
1473 LIBS
="-l$x_direct_test_library $LIBS"
1474 cat > conftest.
$ac_ext <<EOF
1475 #line 1476 "configure"
1476 #include "confdefs.h"
1478 int main() { return 0; }
1480 ${x_direct_test_function}()
1483 if eval $ac_link; then
1485 LIBS
="$ac_save_LIBS" no_x
= ac_x_libraries
=
1488 LIBS
="$ac_save_LIBS"
1489 # First see if replacing the include by lib works.
1490 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1499 /usr
/local
/X11R
6/lib \
1500 /usr
/local
/X11R
5/lib \
1501 /usr
/local
/X11R
4/lib \
1503 /usr
/local
/lib
/X11R6 \
1504 /usr
/local
/lib
/X11R5 \
1505 /usr
/local
/lib
/X11R4 \
1509 /usr
/local
/X11
/lib \
1510 /usr
/local
/lib
/X11 \
1514 /usr
/XFree86
/lib
/X11 \
1518 /usr
/unsupported
/lib \
1520 /usr
/local
/x11r
5/lib \
1521 /usr
/lpp
/Xamples
/lib \
1524 /usr
/openwin
/share
/lib \
1527 for ac_extension
in a so sl
; do
1528 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1529 no_x
= ac_x_libraries
=$ac_dir
1538 if test "$no_x" = yes; then
1539 ac_cv_path_x
="no_x=yes"
1541 ac_cv_path_x
="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1545 eval "$ac_cv_path_x"
1548 if test "$no_x" = yes; then
1549 echo "$ac_t""no" 1>&6
1551 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1552 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1553 ac_cv_path_x
="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1554 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1557 if test "$no_x" = yes; then
1558 # Not all programs may use this symbol, but it does not hurt to define it.
1559 X_CFLAGS
="$X_CFLAGS -DX_DISPLAY_MISSING"
1561 if test -n "$x_includes"; then
1562 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1565 # It would be nice to have a more robust check for the -R ld option than
1566 # just checking for Solaris.
1567 # It would also be nice to do this for all -L options, not just this one.
1568 if test -n "$x_libraries"; then
1569 X_LIBS
="$X_LIBS -L$x_libraries"
1570 if test "`(uname) 2>/dev/null`" = SunOS
&&
1571 uname
-r |
grep '^5' >/dev
/null
; then
1572 X_LIBS
="$X_LIBS -R$x_libraries"
1576 # Check for libraries that X11R6 Xt/Xaw programs need.
1578 ac_save_LDFLAGS
="$LDFLAGS"
1579 LDFLAGS
="$LDFLAGS -L$x_libraries"
1580 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1581 # check for ICE first), but we must link in the order -lSM -lICE or
1582 # we get undefined symbols. So assume we have SM if we have ICE.
1583 # These have to be linked with before -lX11, unlike the other
1584 # libraries we check for below, so use a different variable.
1585 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1586 echo $ac_n "checking for -lICE""... $ac_c" 1>&6
1587 ac_lib_var
=`echo ICE | tr './+' '__p'`
1588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1591 ac_save_LIBS
="$LIBS"
1593 cat > conftest.
$ac_ext <<EOF
1594 #line 1595 "configure"
1595 #include "confdefs.h"
1597 int main() { return 0; }
1599 IceConnectionNumber()
1602 if eval $ac_link; then
1604 eval "ac_cv_lib_$ac_lib_var=yes"
1607 eval "ac_cv_lib_$ac_lib_var=no"
1610 LIBS
="$ac_save_LIBS"
1613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1614 echo "$ac_t""yes" 1>&6
1615 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1617 echo "$ac_t""no" 1>&6
1620 LDFLAGS
="$ac_save_LDFLAGS"
1622 # Check for system-dependent libraries X programs must link with.
1624 if test "$ISC" = yes; then
1625 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1627 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1628 # libraries were built with DECnet support. And karl@cs.umb.edu says
1629 # the Alpha needs dnet_stub (dnet does not exist).
1630 echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
1631 ac_lib_var
=`echo dnet | tr './+' '__p'`
1632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1635 ac_save_LIBS
="$LIBS"
1637 cat > conftest.
$ac_ext <<EOF
1638 #line 1639 "configure"
1639 #include "confdefs.h"
1641 int main() { return 0; }
1646 if eval $ac_link; then
1648 eval "ac_cv_lib_$ac_lib_var=yes"
1651 eval "ac_cv_lib_$ac_lib_var=no"
1654 LIBS
="$ac_save_LIBS"
1657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1658 echo "$ac_t""yes" 1>&6
1659 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1661 echo "$ac_t""no" 1>&6
1664 if test $ac_cv_lib_dnet = no
; then
1665 echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
1666 ac_lib_var
=`echo dnet_stub | tr './+' '__p'`
1667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1670 ac_save_LIBS
="$LIBS"
1671 LIBS
="-ldnet_stub $LIBS"
1672 cat > conftest.
$ac_ext <<EOF
1673 #line 1674 "configure"
1674 #include "confdefs.h"
1676 int main() { return 0; }
1681 if eval $ac_link; then
1683 eval "ac_cv_lib_$ac_lib_var=yes"
1686 eval "ac_cv_lib_$ac_lib_var=no"
1689 LIBS
="$ac_save_LIBS"
1692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1693 echo "$ac_t""yes" 1>&6
1694 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1696 echo "$ac_t""no" 1>&6
1701 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1702 # to get the SysV transport functions.
1703 # Not sure which flavor of 386 UNIX this is, but it seems harmless to
1705 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
1706 ac_lib_var
=`echo nsl | tr './+' '__p'`
1707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1710 ac_save_LIBS
="$LIBS"
1712 cat > conftest.
$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1716 int main() { return 0; }
1721 if eval $ac_link; then
1723 eval "ac_cv_lib_$ac_lib_var=yes"
1726 eval "ac_cv_lib_$ac_lib_var=no"
1729 LIBS
="$ac_save_LIBS"
1732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1733 echo "$ac_t""yes" 1>&6
1734 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1736 echo "$ac_t""no" 1>&6
1740 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1741 # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
1742 # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
1743 if test "`(uname) 2>/dev/null`" != IRIX
; then
1744 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
1745 ac_lib_var
=`echo socket | tr './+' '__p'`
1746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1749 ac_save_LIBS
="$LIBS"
1750 LIBS
="-lsocket $LIBS"
1751 cat > conftest.
$ac_ext <<EOF
1752 #line 1753 "configure"
1753 #include "confdefs.h"
1755 int main() { return 0; }
1760 if eval $ac_link; then
1762 eval "ac_cv_lib_$ac_lib_var=yes"
1765 eval "ac_cv_lib_$ac_lib_var=no"
1768 LIBS
="$ac_save_LIBS"
1771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1772 echo "$ac_t""yes" 1>&6
1773 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lsocket"
1775 echo "$ac_t""no" 1>&6
1785 # Ok, lets find the tk source trees so we can use the headers
1786 # If the directory (presumably symlink) named "tk" exists, use that one
1787 # in preference to any others. Same logic is used when choosing library
1788 # and again with Tcl.
1790 echo "checking for Tk source directory" 1>&6
1792 for i
in `ls -d ${srcdir}/../tk* 2>/dev/null` ${srcdir}/..
/tk
; do
1793 if test -f $i/tk.h
; then
1797 # if we can't find it, see if one is installed
1798 if test x
"$TKHDIR" = x
; then
1800 if test -f $prefix/include
/tk.h
; then
1801 installed
=1 TKHDIR
="-I$prefix/include"
1803 ac_safe
=`echo "tk.h" | tr './\055' '___'`
1804 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
1805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1808 cat > conftest.
$ac_ext <<EOF
1809 #line 1810 "configure"
1810 #include "confdefs.h"
1813 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1814 ac_err
=`grep -v '^ *+' conftest.out`
1815 if test -z "$ac_err"; then
1817 eval "ac_cv_header_$ac_safe=yes"
1821 eval "ac_cv_header_$ac_safe=no"
1825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1826 echo "$ac_t""yes" 1>&6
1829 echo "$ac_t""no" 1>&6
1833 if test $installed -eq 0 ; then
1834 TKHDIR
="# no Tk directory found"
1835 echo "configure: warning: Can't find Tk directory" 1>&2
1838 if test x
"$TKHDIR" != x
; then
1839 echo "$ac_t""Setting TKHDIR to be $i" 1>&6
1843 # Ok, lets find the tk library
1844 # First, look for one uninstalled.
1847 echo "checking for Tk library" 1>&6
1848 for i
in `ls -d ../tk* 2>/dev/null` ..
/tk
; do
1849 if test -f "$i/Makefile" ; then
1853 # If not found, look for installed version
1854 if test x
"$TKLIB" = x
; then
1855 if test -f $prefix/lib
/libtk.a
; then
1860 if test $installed -eq 1 ; then
1865 # If still not found, assume Tk simply hasn't been built yet
1866 if test x
"$TKLIB" = x
; then
1867 for i
in `ls -d ../tk* 2>/dev/null` ..
/tk
; do
1868 if test -f "$i/tk.h" ; then
1874 if test x
"$TKLIB" = x
; then
1875 TKLIB
="# no Tk library found"
1876 echo "configure: warning: Can't find Tk library" 1>&2
1878 echo "$ac_t""setting TKLIB to be $TKLIB" 1>&6
1887 # Ok, lets find the tcl source trees so we can use the headers
1889 # Warning: transition of version 9 to 10 will break this algorithm
1890 # because 10 sorts before 9.
1892 echo "checking for Tcl source directory" 1>&6
1894 for i
in `ls -d ${srcdir}/../tcl* 2>/dev/null` ${srcdir}/..
/tcl
; do
1895 if test -f $i/tclInt.h
; then
1899 # if we can't find it, see if one is installed
1900 if test x
"$TCLHDIR" = x
; then
1902 if test -f $prefix/include
/tclInt.h
; then
1903 installed
=1 TCLHDIR
="-I$prefix/include"
1905 ac_safe
=`echo "tclInt.h" | tr './\055' '___'`
1906 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
1907 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1910 cat > conftest.
$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1915 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1916 ac_err
=`grep -v '^ *+' conftest.out`
1917 if test -z "$ac_err"; then
1919 eval "ac_cv_header_$ac_safe=yes"
1923 eval "ac_cv_header_$ac_safe=no"
1927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1928 echo "$ac_t""yes" 1>&6
1931 echo "$ac_t""no" 1>&6
1935 if test $installed -eq 0 ; then
1936 TCLHDIR
="# no Tcl directory found"
1937 echo "configure: warning: Can't find Tcl directory" 1>&2
1940 echo "$ac_t""setting TCLHDIR to be $i" 1>&6
1944 # Ok, lets find the tcl library
1945 # First, look for the latest uninstalled
1948 echo "checking for Tcl library" 1>&6
1949 for i
in `ls -d ../tcl* 2>/dev/null` ..
/tcl
; do
1950 if test -f "$i/Makefile" ; then
1954 # If not found, look for installed version
1955 if test x
"$TCLLIB" = x
; then
1956 if test -f $prefix/lib
/libtcl.a
; then installed
=1; else installed
=0; fi
1957 if test $installed -eq 1 ; then
1961 # If still not found, assume Tcl simply hasn't been built yet
1962 if test x
"$TCLLIB" = x
; then
1963 for i
in `ls -d ../tcl* 2>/dev/null` ..
/tcl
; do
1964 if test -f "$i/tcl.h" ; then
1970 if test x
"$TCLLIB" = x
; then
1971 TCLLIB
="# no Tcl library found"
1972 echo "configure: warning: Can't find Tcl library" 1>&2
1974 echo "$ac_t""setting TCLLIB to be $TCLLIB" 1>&6
1983 if test "x$x_includes" != "x" ;
1985 X_INCDIR
="-I$x_includes"
1990 if test "x$x_libraries" != "x" ;
1992 X_LIBDIR
="-L$x_libraries"
1997 TCL_LIBS
='$(TCL) $(TK) $(X11)'
1998 ENABLE_CLIBS
="${ENABLE_CLIBS} ${TCL_LIBS} -lm"
1999 ENABLE_OBS
="${ENABLE_OBS} gdbtk.o"
2004 # end-sanitize-gdbtk
2011 configdirs
="doc testsuite"
2014 # Map host cpu into the config cpu subdirectory name.
2015 # The default is $host_cpu.
2017 case "${host_cpu}" in
2019 c
[12]) gdb_host_cpu
=convex
;;
2020 hppa
*) gdb_host_cpu
=pa
;;
2021 i
[345]86) gdb_host_cpu
=i386
;;
2022 m68
*) gdb_host_cpu
=m68k
;;
2023 m88
*) gdb_host_cpu
=m88k
;;
2024 np1
) gdb_host_cpu
=gould
;;
2025 pyramid
) gdb_host_cpu
=pyr
;;
2026 powerpc
*) gdb_host_cpu
=powerpc
;;
2027 *) gdb_host_cpu
=$host_cpu ;;
2031 # map host info into gdb names.
2035 a29k-
*-*) gdb_host
=ultra3
;;
2037 alpha-
*-osf1*) gdb_host
=alpha-osf1
;;
2038 alpha-
*-osf2*) gdb_host
=alpha-osf2
;;
2039 alpha-
*-osf[3456789]*) gdb_host
=alpha-osf3
;;
2041 arm-
*-*) gdb_host
=arm
;;
2043 c
[12]-*-*) gdb_host
=convex
;;
2045 hppa
*-*-bsd*) gdb_host
=hppabsd
;;
2046 hppa
*-*-hiux*) gdb_host
=hppahpux
;;
2047 hppa
*-*-hpux*) gdb_host
=hppahpux
;;
2048 hppa
*-*-osf*) gdb_host
=hppaosf
;;
2050 i
[345]86-ncr-*) gdb_host
=ncr3000
;;
2051 i
[345]86-sequent-bsd*) gdb_host
=symmetry
;; # dynix
2052 i
[345]86-sequent-sysv4*) gdb_host
=ptx4
;;
2053 i
[345]86-sequent-sysv*) gdb_host
=ptx ;;
2054 i
[345]86-*-aix*) gdb_host
=i386aix
;;
2055 i
[345]86-*-bsd*) gdb_host
=i386bsd
;;
2056 i
[345]86-*-freebsd*) gdb_host
=fbsd
;;
2057 i
[345]86-*-netbsd*) gdb_host
=nbsd
;;
2058 i
[345]86-*-go32*) gdb_host
=go32
;;
2059 i
[345]86-*-linux*) gdb_host
=linux
;;
2060 i
[345]86-*-lynxos*) gdb_host
=i386lynx
;;
2061 i
[345]86-*-mach3*) gdb_host
=i386m3
;;
2062 i
[345]86-*-mach*) gdb_host
=i386mach
;;
2063 i
[345]86-*-osf1mk*) gdb_host
=osf1mk
;;
2064 i
[345]86-*-sco3.2v4
*) gdb_host
=i386sco4
;;
2065 i
[345]86-*-sco*) gdb_host
=i386sco
;;
2066 i
[345]86-*-solaris*) gdb_host
=i386sol2
;;
2067 i
[345]86-*-sunos*) gdb_host
=sun386
;;
2068 i
[345]86-*-sysv3.2
*) gdb_host
=i386v32
;;
2069 i
[345]86-*-sysv32*) gdb_host
=i386v32
;;
2070 i
[345]86-*-sysv4*) gdb_host
=i386v4
;;
2071 i
[345]86-*-unixware) gdb_host
=i386v4
;;
2072 i
[345]86-*-sysv*) gdb_host
=i386v
;;
2073 i
[345]86-*-isc*) gdb_host
=i386v32
;;
2074 i
[345]86-*-os9k) gdb_host
=i386os9k
;;
2075 i
[345]86-*-win32*) gdb_host
=win32
;;
2076 m680
[01]0-sun-sunos3*) gdb_host
=sun2os3
;;
2077 m680
[01]0-sun-sunos4*) gdb_host
=sun2os4
;;
2078 m68030-sony-
*) gdb_host
=news1000
;;
2080 m68
*-altos-*) gdb_host
=altos
;;
2081 m68
*-apollo*-sysv*) gdb_host
=apollo68v
;;
2082 m68
*-apollo*-bsd*) gdb_host
=apollo68b
;;
2083 m68
*-att-*) gdb_host
=3b1
;;
2084 m68
*-bull*-sysv*) gdb_host
=dpx2
;;
2085 m68
*-hp-bsd*) gdb_host
=hp300bsd
;;
2086 m68
*-hp-hpux*) gdb_host
=hp300hpux
;;
2087 m68
*-isi-*) gdb_host
=isi
;;
2088 m68
*-*-lynxos*) gdb_host
=m68klynx
;;
2089 m68
*-*-sysv4*) gdb_host
=m68kv4
;;
2090 m68
*-motorola-*) gdb_host
=delta68
;;
2091 m68
*-sony-*) gdb_host
=news
;;
2092 m68
*-sun-sunos3*) gdb_host
=sun3os3
;;
2093 m68
*-sun-sunos4*) gdb_host
=sun3os4
;;
2094 m68
*-sun-*) gdb_host
=sun3os4
;;
2096 m88
*-harris-cxux*) gdb_host
=cxux
;;
2097 m88
*-motorola-sysv4*) gdb_host
=delta88v4
;;
2098 m88
*-motorola-sysv*) gdb_host
=delta88
;;
2099 m88
*-*-mach3*) gdb_host
=mach3
;;
2100 m88
*-*-*) gdb_host
=m88k
;;
2102 mips-dec-mach3
*) gdb_host
=mach3
;;
2103 mips-dec-
*) gdb_host
=decstation
;;
2104 mips-little-
*) gdb_host
=littlemips
;;
2105 mips-sgi-irix3
*) gdb_host
=irix3
;;
2106 mips-sgi-irix4
*) gdb_host
=irix4
;;
2107 mips-sgi-irix5
*) gdb_host
=irix5
;;
2108 mips-sony-
*) gdb_host
=news-mips
;;
2109 mips-
*-mach3*) gdb_host
=mach3
;;
2110 mips-
*-sysv4*) gdb_host
=mipsv4
;;
2111 mips-
*-sysv*) gdb_host
=riscos
;;
2112 mips-
*-riscos*) gdb_host
=riscos
;;
2114 none-
*-*) gdb_host
=none
;;
2116 np1-
*-*) gdb_host
=np1
;;
2118 ns32k-
*-mach3*) gdb_host
=mach3
;;
2119 ns32k-
*-netbsd*) gdb_host
=nbsd
;;
2120 ns32k-umax-
*) gdb_host
=umax
;;
2121 ns32k-utek-sysv
*) gdb_host
=merlin
;;
2123 powerpc-
*-aix*) gdb_host
=aix
;;
2125 pn-
*-*) gdb_host
=pn
;;
2127 pyramid-
*-*) gdb_host
=pyramid
;;
2129 romp-
*-*) gdb_host
=rtbsd
;;
2131 rs6000-
*-lynxos*) gdb_host
=rs6000lynx
;;
2132 rs6000-
*-*) gdb_host
=rs6000
;;
2134 sparc-
*-lynxos*) gdb_host
=sparclynx
;;
2135 sparc-
*-netbsd*) gdb_host
=nbsd
;;
2136 sparc-
*-solaris2*) gdb_host
=sun4sol2
;;
2137 sparc-
*-sunos4*) gdb_host
=sun4os4
;;
2138 sparc-
*-sunos5*) gdb_host
=sun4sol2
;;
2139 sparc-
*-*) gdb_host
=sun4os4
;;
2141 tahoe-
*-*) gdb_host
=tahoe
;;
2143 vax-
*-bsd*) gdb_host
=vaxbsd
;;
2144 vax-
*-ultrix2*) gdb_host
=vaxult2
;;
2145 vax-
*-ultrix*) gdb_host
=vaxult
;;
2147 w65-
*-*) gdb_host
=w65
;;
2152 # Map target cpu into the config cpu subdirectory name.
2153 # The default is $target_cpu.
2155 case "${target_cpu}" in
2157 alpha
) gdb_target_cpu
=alpha
;;
2158 c
[12]) gdb_target_cpu
=convex
;;
2159 hppa
*) gdb_target_cpu
=pa
;;
2160 i
[345]86) gdb_target_cpu
=i386
;;
2161 m68
*) gdb_target_cpu
=m68k
;;
2162 m88
*) gdb_target_cpu
=m88k
;;
2163 mips
*) gdb_target_cpu
=mips
;;
2164 np1
) gdb_target_cpu
=gould
;;
2165 powerpc
*) gdb_target_cpu
=powerpc
;;
2166 pn
) gdb_target_cpu
=gould
;;
2167 pyramid
) gdb_target_cpu
=pyr
;;
2168 sparc
*) gdb_target_cpu
=sparc
;;
2169 *) gdb_target_cpu
=$target_cpu ;;
2173 # map target info into gdb names.
2177 a29k-
*-aout*) gdb_target
=a29k
;;
2178 a29k-
*-coff*) gdb_target
=a29k
;;
2179 a29k-
*-elf*) gdb_target
=a29k
;;
2180 a29k-
*-ebmon*) gdb_target
=a29k
;;
2181 a29k-
*-kern*) gdb_target
=a29k-kern
;;
2182 a29k-
*-none*) gdb_target
=a29k
;;
2183 a29k-
*-sym1*) gdb_target
=ultra3
;;
2184 a29k-
*-udi*) gdb_target
=a29k-udi
;;
2185 a29k-
*-vxworks*) gdb_target
=vx29k
;;
2187 alpha-
*-osf*) gdb_target
=alpha-osf1
;;
2189 # start-sanitize-arc
2190 arc-
*-*) gdb_target
=arc
;;
2193 arm-
*-*) gdb_target
=arm
;;
2195 c1-
*-*) gdb_target
=convex
;;
2196 c2-
*-*) gdb_target
=convex
;;
2198 h8300-
*-*) gdb_target
=h8300
;;
2199 h8500-
*-*) gdb_target
=h8500
;;
2201 sh-
*-*) gdb_target
=sh
;;
2203 # start-sanitize-r16
2204 r16-
*-*) gdb_target
=r16
;;
2207 hppa
*-*-bsd*) gdb_target
=hppabsd
;;
2208 hppa
*-*-pro*) gdb_target
=hppapro
;;
2209 hppa
*-*-hpux*) gdb_target
=hppahpux
;;
2210 hppa
*-*-hiux*) gdb_target
=hppahpux
;;
2211 hppa
*-*-osf*) gdb_target
=hppaosf
;;
2213 i
[345]86-sequent-bsd*) gdb_target
=symmetry
;;
2214 i
[345]86-sequent-sysv4*) gdb_target
=ptx4
;;
2215 i
[345]86-sequent-sysv*) gdb_target
=ptx ;;
2216 i
[345]86-ncr-*) gdb_target
=ncr3000
;;
2217 i
[345]86-*-aout*) gdb_target
=i386aout
;;
2218 i
[345]86-*-coff*) gdb_target
=i386v
;;
2219 i
[345]86-*-elf*) gdb_target
=i386v
;;
2220 i
[345]86-*-aix*) gdb_target
=i386aix
;;
2221 i
[345]86-*-bsd*) gdb_target
=i386bsd
;;
2222 i
[345]86-*-freebsd*) gdb_target
=fbsd
;;
2223 i
[345]86-*-netbsd*) gdb_target
=nbsd
;;
2224 i
[345]86-*-os9k) gdb_target
=i386os9k
;;
2225 i
[345]86-*-go32*) gdb_target
=i386aout
;;
2226 i
[345]86-*-lynxos*) gdb_target
=i386lynx
2227 configdirs
="${configdirs} gdbserver" ;;
2228 i
[345]86-*-solaris*) gdb_target
=i386sol2
;;
2229 i
[345]86-*-sunos*) gdb_target
=sun386
;;
2230 i
[345]86-*-sysv4*) gdb_target
=i386v4
;;
2231 i
[345]86-*-sco*) gdb_target
=i386v
;;
2232 i
[345]86-*-sysv*) gdb_target
=i386v
;;
2233 i
[345]86-*-linux*) gdb_target
=linux
;;
2234 i
[345]86-*-isc*) gdb_target
=i386v
;;
2235 i
[345]86-*-mach3*) gdb_target
=i386m3
;;
2236 i
[345]86-*-mach*) gdb_target
=i386mach
;;
2237 i
[345]86-*-netware*) gdb_target
=i386nw
2238 configdirs
="${configdirs} nlm" ;;
2239 i
[345]86-*-osf1mk*) gdb_target
=i386mk
;;
2240 i
[345]86-*-win32) gdb_target
=win32
;;
2242 i960-
*-bout*) gdb_target
=vxworks960
;;
2243 i960-
*-coff*) gdb_target
=nindy960
;;
2244 i960-
*-elf*) gdb_target
=nindy960
;;
2246 i960-
*-nindy*) gdb_target
=nindy960
;;
2247 i960-
*-vxworks*) gdb_target
=vxworks960
;;
2249 m68000-
*-sunos3*) gdb_target
=sun2os3
;;
2250 m68000-
*-sunos4*) gdb_target
=sun2os4
;;
2252 m68
*-apollo*-bsd*) gdb_target
=apollo68b
;;
2253 m68
*-bull-sysv*) gdb_target
=dpx2
;;
2254 m68
*-hp-bsd*) gdb_target
=hp300bsd
;;
2255 m68
*-hp-hpux*) gdb_target
=hp300hpux
;;
2256 m68
*-altos-*) gdb_target
=altos
;;
2257 m68
*-att-*) gdb_target
=3b1
;;
2258 m68
*-cisco*-*) gdb_target
=cisco
;;
2259 m68
*-ericsson-*) gdb_target
=es1800
;;
2260 m68
*-isi-*) gdb_target
=isi
;;
2261 m68
*-motorola-*) gdb_target
=delta68
;;
2262 m68
*-netx-*) gdb_target
=vxworks68
;;
2263 m68
*-sony-*) gdb_target
=news
;;
2264 m68
*-tandem-*) gdb_target
=st2000
;;
2265 m68
*-rom68k-*) gdb_target
=monitor
;;
2266 m68
*-*bug-
*) gdb_target
=monitor
;;
2267 m68
*-monitor-*) gdb_target
=monitor
;;
2268 m68
*-est-*) gdb_target
=monitor
;;
2269 m68
*-*-aout*) gdb_target
=monitor
;;
2270 m68
*-*-coff*) gdb_target
=monitor
;;
2271 m68
*-*-elf*) gdb_target
=monitor
;;
2272 m68
*-*-lynxos*) gdb_target
=m68klynx
2273 configdirs
="${configdirs} gdbserver" ;;
2274 m68
*-*-os68k*) gdb_target
=os68k
;;
2275 m68
*-*-sunos3*) gdb_target
=sun3os3
;;
2276 m68
*-*-sunos4*) gdb_target
=sun3os4
;;
2277 m68
*-*-sysv4*) gdb_target
=m68kv4
;;
2278 m68
*-*-vxworks*) gdb_target
=vxworks68
;;
2280 m88
*-harris-cxux*) gdb_target
=cxux
;;
2281 m88
*-motorola-sysv4*) gdb_target
=delta88v4
;;
2282 m88
*-*-mach3*) gdb_target
=mach3
;;
2283 m88
*-motorola-*) gdb_target
=delta88
;;
2284 m88
*-*-*) gdb_target
=m88k
;;
2286 mips64
*-big-*) gdb_target
=bigmips64
;;
2287 mips
*-big-*) gdb_target
=bigmips
;;
2288 mips
*-dec-mach3*) gdb_target
=mach3
;;
2289 mips
*-dec-*) gdb_target
=decstation
;;
2290 mips64
*el-
*-ecoff*) gdb_target
=idtl64
;;
2291 mips64
*-idt-ecoff*) gdb_target
=idt64
;;
2292 mips64
*vr4300
*el-
*-elf*) gdb_target
=vr4300el
;;
2293 mips64
*vr4300
*-*-elf*) gdb_target
=vr4300
;;
2294 mips64
*el-
*-elf*) gdb_target
=idtl64
;;
2295 mips64
*-*-elf*) gdb_target
=idt64
;;
2296 mips
*el-
*-ecoff*) gdb_target
=idtl
;;
2297 mips
*-*-ecoff*) gdb_target
=idt
;;
2298 mips
*el-
*-elf*) gdb_target
=idtl
;;
2299 mips
*-*-elf*) gdb_target
=idt
;;
2300 mips
*-little-*) gdb_target
=littlemips
;;
2301 mips
*-sgi-irix5*) gdb_target
=irix5
;;
2302 mips
*-sgi-*) gdb_target
=irix3
;;
2303 mips
*-sony-*) gdb_target
=bigmips
;;
2304 mips
*-*-mach3*) gdb_target
=mach3
;;
2305 mips
*-*-sysv4*) gdb_target
=mipsv4
;;
2306 mips
*-*-sysv*) gdb_target
=bigmips
;;
2307 mips
*-*-riscos*) gdb_target
=bigmips
;;
2309 none-
*-*) gdb_target
=none
;;
2311 np1-
*-*) gdb_target
=np1
;;
2313 ns32k-
*-mach3*) gdb_target
=mach3
;;
2314 ns32k-
*-netbsd*) gdb_target
=nbsd
;;
2315 ns32k-utek-sysv
*) gdb_target
=merlin
;;
2316 ns32k-utek-
*) gdb_target
=umax
;;
2318 pn-
*-*) gdb_target
=pn
;;
2319 powerpc-
*-netware*) gdb_target
=ppc-nw
2320 configdirs
="${configdirs} nlm" ;;
2322 powerpc-
*-aix4*) gdb_target
=aix4
;;
2323 powerpc-
*-aix*) gdb_target
=aix
;;
2324 powerpc-
*-eabisim*) gdb_target
=ppc-sim
;;
2325 powerpc-
*-eabi*) gdb_target
=ppc-eabi
;;
2326 powerpcle-
*-eabisim*) gdb_target
=ppcle-sim
;;
2327 powerpcle-
*-eabi*) gdb_target
=ppcle-eabi
;;
2329 pyramid-
*-*) gdb_target
=pyramid
;;
2331 rs6000-
*-lynxos*) gdb_target
=rs6000lynx
;;
2332 rs6000-
*-aix4*) gdb_target
=aix4
;;
2333 rs6000-
*-*) gdb_target
=rs6000
;;
2335 sparc-
*-aout*) gdb_target
=sparc-em
;;
2336 sparc-
*-coff*) gdb_target
=sparc-em
;;
2337 sparc-
*-elf*) gdb_target
=sparc-em
;;
2338 sparc-
*-lynxos*) gdb_target
=sparclynx
2339 configdirs
="${configdirs} gdbserver" ;;
2340 sparc-
*-netbsd*) gdb_target
=nbsd
;;
2341 sparc-
*-solaris2*) gdb_target
=sun4sol2
;;
2342 sparc-
*-sunos4*) gdb_target
=sun4os4
;;
2343 sparc-
*-sunos5*) gdb_target
=sun4sol2
;;
2344 sparc-
*-vxworks*) gdb_target
=vxsparc
;;
2345 sparc-
*-*) gdb_target
=sun4os4
;;
2346 sparclite
*-*-*) gdb_target
=sparclite
;;
2347 sparc64-
*-*) gdb_target
=sp64
;;
2349 tahoe-
*-*) gdb_target
=tahoe
;;
2351 vax-
*-*) gdb_target
=vax
;;
2353 w65-
*-*) gdb_target
=w65
;;
2355 z8k-
*-coff*) gdb_target
=z8k
;;
2361 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
2362 if test ! -f ${host_makefile_frag}; then
2363 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
2365 frags
="$frags $host_makefile_frag"
2367 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
2368 if test ! -f ${target_makefile_frag}; then
2369 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
2371 frags
="$frags $target_makefile_frag"
2378 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
2379 ' ${host_makefile_frag}`
2381 targetfile
=`sed -n '
2382 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
2383 ' ${target_makefile_frag}`
2385 # these really aren't orthogonal true/false values of the same condition,
2386 # but shells are slow enough that I like to reuse the test conditions
2388 if test "${target}" = "${host}"; then
2389 nativefile
=`sed -n '
2390 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
2391 ' ${host_makefile_frag}`
2393 # GDBserver is only useful in a "native" enviroment
2394 configdirs
=`echo $configdirs | sed 's/gdbserver//'`
2398 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
2399 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
2400 # corresponding links. But we have to remove the xm.h files and tm.h
2401 # files anyway, e.g. when switching from "configure host" to
2407 if test "${hostfile}" != ""; then
2408 files
="${files} config/${gdb_host_cpu}/${hostfile}"
2409 links
="${links} xm.h"
2412 if test "${targetfile}" != ""; then
2413 files
="${files} config/${gdb_target_cpu}/${targetfile}"
2414 links
="${links} tm.h"
2417 if test "${nativefile}" != ""; then
2418 files
="${files} config/${gdb_host_cpu}/${nativefile}"
2419 links
="${links} nm.h"
2421 # A cross-only configuration.
2422 files
="${files} config/nm-empty.h"
2423 links
="${links} nm.h"
2425 # start-sanitize-gdbtk
2427 # Make it possible to use the GUI without doing a full install
2428 if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl
; then
2429 files
="${files} gdbtk.tcl"
2430 links
="${links} gdbtk.tcl"
2432 # end-sanitize-gdbtk
2436 subdirs
="$configdirs"
2439 cat > confcache
<<\EOF
2440 # This file is a shell script that caches the results of configure
2441 # tests run on this system so they can be shared between configure
2442 # scripts and configure runs. It is not useful on other systems.
2443 # If it contains results you don't want to keep, you may remove or edit it.
2445 # By default, configure uses ./config.cache as the cache file,
2446 # creating it if it does not exist already. You can give configure
2447 # the --cache-file=FILE option to use a different cache file; that is
2448 # what configure does when it calls configure scripts in
2449 # subdirectories, so they share the cache.
2450 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2451 # config.status only pays attention to the cache file if you give it the
2452 # --recheck option to rerun configure.
2455 # Ultrix sh set writes to stderr and can't be redirected directly,
2456 # and sets the high bit in the cache file unless we assign to the vars.
2458 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2460 if cmp -s $cache_file confcache
; then
2463 if test -w $cache_file; then
2464 echo "updating cache $cache_file"
2465 cat confcache
> $cache_file
2467 echo "not updating unwritable cache $cache_file"
2472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2474 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2475 # Let make expand exec_prefix.
2476 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2478 # Any assignment to VPATH causes Sun make to only execute
2479 # the first set of double-colon rules, so remove it if not needed.
2480 # If there is a colon in the path, we need to keep it.
2481 if test "x$srcdir" = x.
; then
2482 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2485 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2487 # Transform confdefs.h into DEFS.
2488 # Protect against shell expansion while executing Makefile rules.
2489 # Protect against Makefile macro expansion.
2490 cat > conftest.defs
<<\EOF
2491 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
2492 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2497 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
2501 # Without the "./", some shells look in PATH for config.status.
2502 : ${CONFIG_STATUS=./config.status}
2504 echo creating $CONFIG_STATUS
2505 rm -f $CONFIG_STATUS
2506 cat > $CONFIG_STATUS <<EOF
2508 # Generated automatically by configure.
2509 # Run this file to recreate the current configuration.
2510 # This directory was configured as follows,
2511 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
2513 # $0 $ac_configure_args
2515 # Compiler output produced by configure, useful for debugging
2516 # configure, is in ./config.log if it exists.
2518 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2521 case "\$ac_option" in
2522 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2523 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2524 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2525 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2526 echo "$CONFIG_STATUS generated by autoconf version 2.4.2"
2528 -help | --help | --hel | --he | --h)
2529 echo "\$ac_cs_usage"; exit 0 ;;
2530 *) echo "\$ac_cs_usage"; exit 1 ;;
2534 ac_given_srcdir=$srcdir
2535 ac_given_INSTALL="$INSTALL"
2537 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2539 # Protect against being on the right side of a sed subst in config.status.
2540 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
2541 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
2544 s%@CFLAGS@%$CFLAGS%g
2545 s%@CPPFLAGS@%$CPPFLAGS%g
2546 s%@CXXFLAGS@%$CXXFLAGS%g
2548 s%@LDFLAGS@%$LDFLAGS%g
2550 s%@exec_prefix@%$exec_prefix%g
2551 s%@prefix@%$prefix%g
2552 s%@program_transform_name@%$program_transform_name%g
2553 s%@bindir@%$bindir%g
2554 s%@sbindir@%$sbindir%g
2555 s%@libexecdir@%$libexecdir%g
2556 s%@datadir@%$datadir%g
2557 s%@sysconfdir@%$sysconfdir%g
2558 s%@sharedstatedir@%$sharedstatedir%g
2559 s%@localstatedir@%$localstatedir%g
2560 s%@libdir@%$libdir%g
2561 s%@includedir@%$includedir%g
2562 s%@oldincludedir@%$oldincludedir%g
2563 s%@infodir@%$infodir%g
2564 s%@mandir@%$mandir%g
2567 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2568 s%@INSTALL_DATA@%$INSTALL_DATA%g
2569 s%@RANLIB@%$RANLIB%g
2572 s%@host_alias@%$host_alias%g
2573 s%@host_cpu@%$host_cpu%g
2574 s%@host_vendor@%$host_vendor%g
2575 s%@host_os@%$host_os%g
2576 s%@target@%$target%g
2577 s%@target_alias@%$target_alias%g
2578 s%@target_cpu@%$target_cpu%g
2579 s%@target_vendor@%$target_vendor%g
2580 s%@target_os@%$target_os%g
2582 s%@build_alias@%$build_alias%g
2583 s%@build_cpu@%$build_cpu%g
2584 s%@build_vendor@%$build_vendor%g
2585 s%@build_os@%$build_os%g
2586 s%@X_CFLAGS@%$X_CFLAGS%g
2587 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2588 s%@X_LIBS@%$X_LIBS%g
2589 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2590 s%@TKHDIR@%$TKHDIR%g
2592 s%@TCLHDIR@%$TCLHDIR%g
2593 s%@TCLLIB@%$TCLLIB%g
2594 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
2595 s%@X_INCDIR@%$X_INCDIR%g
2596 s%@X_LIBDIR@%$X_LIBDIR%g
2597 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
2598 s%@ENABLE_CLIBS@%$ENABLE_CLIBS%g
2599 s%@ENABLE_OBS@%$ENABLE_OBS%g
2600 /@host_makefile_frag@/r $host_makefile_frag
2601 s%@host_makefile_frag@%%g
2602 /@target_makefile_frag@/r $target_makefile_frag
2603 s%@target_makefile_frag@%%g
2605 s%@subdirs@%$subdirs%g
2609 cat >> $CONFIG_STATUS <<EOF
2611 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2613 cat >> $CONFIG_STATUS <<\EOF
2614 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2615 # Support "outfile[:infile]", defaulting infile="outfile.in".
2617 *:*) ac_file_in=`echo "$ac_file"|
sed 's%.*:%%'`
2618 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
2619 *) ac_file_in="${ac_file}.in" ;;
2622 # Adjust relative srcdir, etc. for subdirectories.
2624 # Remove last slash and all that follows it. Not all systems have dirname.
2625 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2626 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2627 # The file is in a subdirectory.
2628 test ! -d "$ac_dir" && mkdir "$ac_dir"
2629 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
2630 # A "../" for each directory in $ac_dir_suffix.
2631 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
2633 ac_dir_suffix= ac_dots=
2636 case "$ac_given_srcdir" in
2638 if test -z "$ac_dots"; then top_srcdir=.
2639 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
2640 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2642 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2643 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2646 case "$ac_given_INSTALL" in
2647 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2648 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2650 echo creating "$ac_file"
2652 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
2654 *Makefile*) ac_comsub="1i\\
2655 # $configure_input" ;;
2659 s%@configure_input@%$configure_input%g
2660 s%@srcdir@%$srcdir%g
2661 s%@top_srcdir@%$top_srcdir%g
2662 s%@INSTALL@%$INSTALL%g
2663 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2669 cat >> $CONFIG_STATUS <<EOF
2674 cat >> $CONFIG_STATUS <<\EOF
2675 srcdir=$ac_given_srcdir
2676 while test -n "$ac_sources"; do
2677 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2678 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2680 echo "linking $srcdir/$ac_source to $ac_dest"
2682 if test ! -r $srcdir/$ac_source; then
2683 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2687 # Make relative symlinks.
2688 # Remove last slash and all that follows it. Not all systems have dirname.
2689 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
2690 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2691 # The dest file is in a subdirectory.
2692 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2693 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
2694 # A "../" for each directory in $ac_dest_dir_suffix.
2695 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
2697 ac_dest_dir_suffix= ac_dots=
2701 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2702 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2705 # Make a symlink if possible; otherwise try a hard link.
2706 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2707 ln $srcdir/$ac_source $ac_dest; then :
2709 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2713 cat >> $CONFIG_STATUS <<EOF
2715 gdb_host_cpu=$gdb_host_cpu
2716 gdb_target_cpu=$gdb_target_cpu
2717 nativefile=$nativefile
2720 cat >> $CONFIG_STATUS <<\EOF
2722 if test "${nativefile}" = ""; then
2723 sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
2724 < Makefile > Makefile.tem
2725 mv -f Makefile.tem Makefile
2728 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
2729 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
2730 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
2731 mv -f Makefile.tmp Makefile
2737 grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
2738 echo "source ${srcdir}/.gdbinit" >> .gdbinit
2743 chmod +x $CONFIG_STATUS
2744 rm -fr confdefs* $ac_clean_files
2745 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2747 if test "$no_recursion" != yes; then
2749 # Remove --cache-file and --srcdir arguments so they do not pile up.
2750 ac_sub_configure_args=
2752 for ac_arg in $ac_configure_args; do
2753 if test -n "$ac_prev"; then
2758 -cache-file | --cache-file | --cache-fil | --cache-fi \
2759 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2760 ac_prev=cache_file ;;
2761 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2762 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2764 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2766 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2768 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2772 for ac_config_dir in $configdirs; do
2774 # Do not complain, so a configure script can configure whichever
2775 # parts of a large source tree are present.
2776 if test ! -d $srcdir/$ac_config_dir; then
2780 echo configuring in $ac_config_dir
2785 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2787 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2796 .) # No --srcdir option. We are building in place.
2797 ac_sub_srcdir=$srcdir ;;
2798 /*) # Absolute path.
2799 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2801 ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
2804 # Check for guested configure; otherwise get Cygnus style configure.
2805 if test -f $ac_sub_srcdir/configure; then
2806 ac_sub_configure=$ac_sub_srcdir/configure
2807 elif test -f $ac_sub_srcdir/configure.in; then
2808 ac_sub_configure=$ac_configure
2810 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2814 # The recursion is here.
2815 if test -n "$ac_sub_configure"; then
2817 # Make the cache file name correct relative to the subdirectory.
2818 # A "../" for each directory in /$ac_config_dir.
2819 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2820 case "$cache_file" in
2821 /*) ac_sub_cache_file=$cache_file ;;
2823 ac_sub_cache_file="$ac_dots$cache_file" ;;
2825 case "$ac_given_INSTALL" in
2826 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2827 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2830 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2831 # The eval makes quoting arguments work.
2832 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2835 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }