3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
5 # Copyright (C) 1992, 93, 94, 95, 96 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:
17 --enable-ide Enable IDE support"
21 --with-tclconfig directory containing tcl configuration (tclConfig.sh)"
23 --with-tkconfig directory containing tk configuration (tkConfig.sh)"
25 --with-tclinclude directory where tcl private headers are"
27 --with-tkinclude directory where tk private headers are"
29 --enable-shared use shared libraries"
31 # Initialize some variables set by options.
32 # The variables have the same names as the options, with
33 # dashes changed to underlines.
35 cache_file
=.
/config.cache
44 program_transform_name
=s
,x
,x
,
52 bindir
='${exec_prefix}/bin'
53 sbindir
='${exec_prefix}/sbin'
54 libexecdir
='${exec_prefix}/libexec'
55 datadir
='${prefix}/share'
56 sysconfdir
='${prefix}/etc'
57 sharedstatedir
='${prefix}/com'
58 localstatedir
='${prefix}/var'
59 libdir
='${exec_prefix}/lib'
60 includedir
='${prefix}/include'
61 oldincludedir
='/usr/include'
62 infodir
='${prefix}/info'
63 mandir
='${prefix}/man'
65 # Initialize some other variables.
68 SHELL
=${CONFIG_SHELL-/bin/sh}
69 # Maximum number of lines to put in a shell here document.
76 # If the previous option needs an argument, assign it.
77 if test -n "$ac_prev"; then
78 eval "$ac_prev=\$ac_option"
84 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 # Accept the important Cygnus configure options, so we can diagnose typos.
92 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
94 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
95 bindir
="$ac_optarg" ;;
97 -build |
--build |
--buil |
--bui |
--bu)
99 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
100 build
="$ac_optarg" ;;
102 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
103 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
104 ac_prev
=cache_file
;;
105 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
106 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
107 cache_file
="$ac_optarg" ;;
109 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
111 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
113 datadir
="$ac_optarg" ;;
115 -disable-* |
--disable-*)
116 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}=no" ;;
124 -enable-* |
--enable-*)
125 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}='$ac_optarg'" ;;
137 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
138 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
139 |
--exec |
--exe |
--ex)
140 ac_prev
=exec_prefix
;;
141 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
142 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
143 |
--exec=* |
--exe=* |
--ex=*)
144 exec_prefix
="$ac_optarg" ;;
146 -gas |
--gas |
--ga |
--g)
147 # Obsolete; use --with-gas.
150 -help |
--help |
--hel |
--he)
151 # Omit some internal or obsolete options to make the list less imposing.
152 # This message is too long to be a string in the A/UX 3.1 sh.
154 Usage: configure [options] [host]
155 Options: [defaults in brackets after descriptions]
157 --cache-file=FILE cache test results in FILE
158 --help print this message
159 --no-create do not create output files
160 --quiet, --silent do not print \`checking...' messages
161 --version print the version of autoconf that created configure
162 Directory and file names:
163 --prefix=PREFIX install architecture-independent files in PREFIX
165 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 --bindir=DIR user executables in DIR [EPREFIX/bin]
168 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
169 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
170 --datadir=DIR read-only architecture-independent data in DIR
172 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
173 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
176 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
177 --includedir=DIR C header files in DIR [PREFIX/include]
178 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
179 --infodir=DIR info documentation in DIR [PREFIX/info]
180 --mandir=DIR man documentation in DIR [PREFIX/man]
181 --srcdir=DIR find the sources in DIR [configure dir or ..]
182 --program-prefix=PREFIX prepend PREFIX to installed program names
183 --program-suffix=SUFFIX append SUFFIX to installed program names
184 --program-transform-name=PROGRAM
185 run sed PROGRAM on installed program names
189 --build=BUILD configure for building on BUILD [BUILD=HOST]
190 --host=HOST configure for HOST [guessed]
191 --target=TARGET configure for TARGET [TARGET=HOST]
192 Features and packages:
193 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
194 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
195 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
196 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
197 --x-includes=DIR X include files are in DIR
198 --x-libraries=DIR X library files are in DIR
200 if test -n "$ac_help"; then
201 echo "--enable and --with options recognized:$ac_help"
205 -host |
--host |
--hos |
--ho)
207 -host=* |
--host=* |
--hos=* |
--ho=*)
210 -includedir |
--includedir |
--includedi |
--included |
--include \
211 |
--includ |
--inclu |
--incl |
--inc)
212 ac_prev
=includedir
;;
213 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
214 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
215 includedir
="$ac_optarg" ;;
217 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
219 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
220 infodir
="$ac_optarg" ;;
222 -libdir |
--libdir |
--libdi |
--libd)
224 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
225 libdir
="$ac_optarg" ;;
227 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
228 |
--libexe |
--libex |
--libe)
229 ac_prev
=libexecdir
;;
230 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
231 |
--libexe=* |
--libex=* |
--libe=*)
232 libexecdir
="$ac_optarg" ;;
234 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
235 |
--localstate |
--localstat |
--localsta |
--localst \
236 |
--locals |
--local |
--loca |
--loc |
--lo)
237 ac_prev
=localstatedir
;;
238 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
239 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
240 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
241 localstatedir
="$ac_optarg" ;;
243 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
245 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
246 mandir
="$ac_optarg" ;;
249 # Obsolete; use --without-fp.
252 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
256 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
257 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
260 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
261 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
262 |
--oldin |
--oldi |
--old |
--ol |
--o)
263 ac_prev
=oldincludedir
;;
264 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
265 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
266 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
267 oldincludedir
="$ac_optarg" ;;
269 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
271 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
272 prefix
="$ac_optarg" ;;
274 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
275 |
--program-pre |
--program-pr |
--program-p)
276 ac_prev
=program_prefix
;;
277 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
278 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
279 program_prefix
="$ac_optarg" ;;
281 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
282 |
--program-suf |
--program-su |
--program-s)
283 ac_prev
=program_suffix
;;
284 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
285 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
286 program_suffix
="$ac_optarg" ;;
288 -program-transform-name |
--program-transform-name \
289 |
--program-transform-nam |
--program-transform-na \
290 |
--program-transform-n |
--program-transform- \
291 |
--program-transform |
--program-transfor \
292 |
--program-transfo |
--program-transf \
293 |
--program-trans |
--program-tran \
294 |
--progr-tra |
--program-tr |
--program-t)
295 ac_prev
=program_transform_name
;;
296 -program-transform-name=* |
--program-transform-name=* \
297 |
--program-transform-nam=* |
--program-transform-na=* \
298 |
--program-transform-n=* |
--program-transform-=* \
299 |
--program-transform=* |
--program-transfor=* \
300 |
--program-transfo=* |
--program-transf=* \
301 |
--program-trans=* |
--program-tran=* \
302 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
303 program_transform_name
="$ac_optarg" ;;
305 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
306 |
-silent |
--silent |
--silen |
--sile |
--sil)
309 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
311 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
313 sbindir
="$ac_optarg" ;;
315 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
316 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
317 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
319 ac_prev
=sharedstatedir
;;
320 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
321 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
322 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
324 sharedstatedir
="$ac_optarg" ;;
326 -site |
--site |
--sit)
328 -site=* |
--site=* |
--sit=*)
331 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
333 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
334 srcdir
="$ac_optarg" ;;
336 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
337 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
338 ac_prev
=sysconfdir
;;
339 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
340 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
341 sysconfdir
="$ac_optarg" ;;
343 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
345 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
346 target
="$ac_optarg" ;;
348 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
351 -version |
--version |
--versio |
--versi |
--vers)
352 echo "configure generated by autoconf version 2.12.1"
356 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package
=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}='$ac_optarg'" ;;
368 -without-* |
--without-*)
369 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package
=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}=no" ;;
378 # Obsolete; use --with-x.
381 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
382 |
--x-incl |
--x-inc |
--x-in |
--x-i)
383 ac_prev
=x_includes
;;
384 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
385 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
386 x_includes
="$ac_optarg" ;;
388 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
389 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
390 ac_prev
=x_libraries
;;
391 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
392 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
393 x_libraries
="$ac_optarg" ;;
395 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
400 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 if test "x$nonopt" != xNONE
; then
403 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411 if test -n "$ac_prev"; then
412 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417 # File descriptor usage:
420 # 2 errors and warnings
421 # 3 some systems may open it to /dev/tty
422 # 4 used on the Kubota Titan
423 # 6 checking for... messages and results
424 # 5 compiler messages saved in config.log
425 if test "$silent" = yes; then
433 This file contains any messages produced by compilers while
434 running configure, to aid debugging if configure makes a mistake.
437 # Strip out --no-create and --no-recursion so they do not pile up.
438 # Also quote any args containing shell metacharacters.
443 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
444 |
--no-cr |
--no-c) ;;
445 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
446 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
447 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
448 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
449 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
454 # Only set these to C if already set. These must not be set unconditionally
455 # because not all systems understand e.g. LANG=C (notably SCO).
456 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
457 # Non-C LC_CTYPE values break the ctype check.
458 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
459 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
460 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
461 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
464 rm -rf conftest
* confdefs.h
465 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 # A filename unique to this package, relative to the directory that
469 # configure is in, which we can look for to find out if srcdir is correct.
470 ac_unique_file
=main.c
472 # Find the source files, if location was not specified.
473 if test -z "$srcdir"; then
474 ac_srcdir_defaulted
=yes
475 # Try the directory containing this script, then its parent.
477 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
478 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
480 if test ! -r $srcdir/$ac_unique_file; then
484 ac_srcdir_defaulted
=no
486 if test ! -r $srcdir/$ac_unique_file; then
487 if test "$ac_srcdir_defaulted" = yes; then
488 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495 # Prefer explicitly selected file to automatically selected ones.
496 if test -z "$CONFIG_SITE"; then
497 if test "x$prefix" != xNONE
; then
498 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
500 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503 for ac_site_file
in $CONFIG_SITE; do
504 if test -r "$ac_site_file"; then
505 echo "loading site script $ac_site_file"
510 if test -r "$cache_file"; then
511 echo "loading cache $cache_file"
514 echo "creating cache $cache_file"
519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
520 ac_cpp
='$CPP $CPPFLAGS'
521 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
522 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
523 cross_compiling
=$ac_cv_prog_cc_cross
525 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
526 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
527 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
534 ac_n
= ac_c
='\c' ac_t
=
540 # Extract the first word of "gcc", so it can be a program name with args.
541 set dummy gcc
; ac_word
=$2
542 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
543 echo "configure:544: checking for $ac_word" >&5
544 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
545 echo $ac_n "(cached) $ac_c" 1>&6
547 if test -n "$CC"; then
548 ac_cv_prog_CC
="$CC" # Let the user override the test.
550 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
551 for ac_dir
in $PATH; do
552 test -z "$ac_dir" && ac_dir
=.
553 if test -f $ac_dir/$ac_word; then
562 if test -n "$CC"; then
563 echo "$ac_t""$CC" 1>&6
565 echo "$ac_t""no" 1>&6
568 if test -z "$CC"; then
569 # Extract the first word of "cc", so it can be a program name with args.
570 set dummy cc
; ac_word
=$2
571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
572 echo "configure:573: checking for $ac_word" >&5
573 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
574 echo $ac_n "(cached) $ac_c" 1>&6
576 if test -n "$CC"; then
577 ac_cv_prog_CC
="$CC" # Let the user override the test.
579 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
581 for ac_dir
in $PATH; do
582 test -z "$ac_dir" && ac_dir
=.
583 if test -f $ac_dir/$ac_word; then
584 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
593 if test $ac_prog_rejected = yes; then
594 # We found a bogon in the path, so make sure we never use it.
595 set dummy
$ac_cv_prog_CC
597 if test $# -gt 0; then
598 # We chose a different compiler from the bogus one.
599 # However, it has the same basename, so the bogon will be chosen
600 # first if we set CC to just the basename; use the full file name.
602 set dummy
"$ac_dir/$ac_word" "$@"
610 if test -n "$CC"; then
611 echo "$ac_t""$CC" 1>&6
613 echo "$ac_t""no" 1>&6
616 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
619 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
620 echo "configure:621: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
624 ac_cpp
='$CPP $CPPFLAGS'
625 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
626 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
627 cross_compiling
=$ac_cv_prog_cc_cross
629 cat > conftest.
$ac_ext <<EOF
630 #line 631 "configure"
631 #include "confdefs.h"
634 if { (eval echo configure
:635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
635 ac_cv_prog_cc_works
=yes
636 # If we can't run a trivial program, we are probably using a cross compiler.
637 if (.
/conftest
; exit) 2>/dev
/null
; then
638 ac_cv_prog_cc_cross
=no
640 ac_cv_prog_cc_cross
=yes
643 echo "configure: failed program was:" >&5
644 cat conftest.
$ac_ext >&5
645 ac_cv_prog_cc_works
=no
649 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
650 if test $ac_cv_prog_cc_works = no
; then
651 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
653 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
654 echo "configure:655: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
655 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
656 cross_compiling
=$ac_cv_prog_cc_cross
658 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
659 echo "configure:660: checking whether we are using GNU C" >&5
660 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
661 echo $ac_n "(cached) $ac_c" 1>&6
663 cat > conftest.c
<<EOF
668 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
675 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
677 if test $ac_cv_prog_gcc = yes; then
679 ac_test_CFLAGS
="${CFLAGS+set}"
680 ac_save_CFLAGS
="$CFLAGS"
682 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
683 echo "configure:684: checking whether ${CC-cc} accepts -g" >&5
684 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
685 echo $ac_n "(cached) $ac_c" 1>&6
687 echo 'void f(){}' > conftest.c
688 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
697 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
698 if test "$ac_test_CFLAGS" = set; then
699 CFLAGS
="$ac_save_CFLAGS"
700 elif test $ac_cv_prog_cc_g = yes; then
707 test "${CFLAGS+set}" = set || CFLAGS
="-g"
710 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
711 echo "configure:712: checking how to run the C preprocessor" >&5
712 # On Suns, sometimes $CPP names a directory.
713 if test -n "$CPP" && test -d "$CPP"; then
716 if test -z "$CPP"; then
717 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
718 echo $ac_n "(cached) $ac_c" 1>&6
720 # This must be in double quotes, not single quotes, because CPP may get
721 # substituted into the Makefile and "${CC-cc}" will confuse make.
723 # On the NeXT, cc -E runs the code through the compiler's parser,
724 # not just through cpp.
725 cat > conftest.
$ac_ext <<EOF
726 #line 727 "configure"
727 #include "confdefs.h"
731 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
732 { (eval echo configure
:733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
733 ac_err
=`grep -v '^ *+' conftest.out`
734 if test -z "$ac_err"; then
738 echo "configure: failed program was:" >&5
739 cat conftest.
$ac_ext >&5
741 CPP
="${CC-cc} -E -traditional-cpp"
742 cat > conftest.
$ac_ext <<EOF
743 #line 744 "configure"
744 #include "confdefs.h"
748 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
749 { (eval echo configure
:750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
750 ac_err
=`grep -v '^ *+' conftest.out`
751 if test -z "$ac_err"; then
755 echo "configure: failed program was:" >&5
756 cat conftest.
$ac_ext >&5
763 ac_cv_prog_CPP
="$CPP"
765 CPP
="$ac_cv_prog_CPP"
767 ac_cv_prog_CPP
="$CPP"
769 echo "$ac_t""$CPP" 1>&6
771 echo $ac_n "checking for AIX""... $ac_c" 1>&6
772 echo "configure:773: checking for AIX" >&5
773 cat > conftest.
$ac_ext <<EOF
774 #line 775 "configure"
775 #include "confdefs.h"
781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
782 egrep "yes" >/dev
/null
2>&1; then
784 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
785 #define _ALL_SOURCE 1
790 echo "$ac_t""no" 1>&6
795 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
796 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
797 echo "configure:798: checking for minix/config.h" >&5
798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
801 cat > conftest.
$ac_ext <<EOF
802 #line 803 "configure"
803 #include "confdefs.h"
804 #include <minix/config.h>
806 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
807 { (eval echo configure
:808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
808 ac_err
=`grep -v '^ *+' conftest.out`
809 if test -z "$ac_err"; then
811 eval "ac_cv_header_$ac_safe=yes"
814 echo "configure: failed program was:" >&5
815 cat conftest.
$ac_ext >&5
817 eval "ac_cv_header_$ac_safe=no"
821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
822 echo "$ac_t""yes" 1>&6
825 echo "$ac_t""no" 1>&6
829 if test "$MINIX" = yes; then
830 cat >> confdefs.h
<<\EOF
831 #define _POSIX_SOURCE 1
834 cat >> confdefs.h
<<\EOF
835 #define _POSIX_1_SOURCE 2
838 cat >> confdefs.h
<<\EOF
844 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
845 echo "configure:846: checking for POSIXized ISC" >&5
846 if test -d /etc
/conf
/kconfig.d
&&
847 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
849 echo "$ac_t""yes" 1>&6
850 ISC
=yes # If later tests want to check for ISC.
851 cat >> confdefs.h
<<\EOF
852 #define _POSIX_SOURCE 1
855 if test "$GCC" = yes; then
861 echo "$ac_t""no" 1>&6
866 DLLTOOL
=${DLLTOOL-dlltool}
870 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
871 if test -f $ac_dir/install-sh
; then
873 ac_install_sh
="$ac_aux_dir/install-sh -c"
875 elif test -f $ac_dir/install.sh
; then
877 ac_install_sh
="$ac_aux_dir/install.sh -c"
881 if test -z "$ac_aux_dir"; then
882 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
884 ac_config_guess
=$ac_aux_dir/config.guess
885 ac_config_sub
=$ac_aux_dir/config.sub
886 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
889 # Do some error checking and defaulting for the host and target type.
891 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
894 # 1. You are not allowed to specify --host, --target, and nonopt at the
896 # 2. Host defaults to nonopt.
897 # 3. If nonopt is not specified, then host defaults to the current host,
898 # as determined by config.guess.
899 # 4. Target and build default to nonopt.
900 # 5. If nonopt is not specified, then target and build default to host.
902 # The aliases save the names the user supplied, while $host etc.
903 # will get canonicalized.
904 case $host---$target---$nonopt in
905 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
906 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
910 # Make sure we can run config.sub.
911 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
912 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
915 echo $ac_n "checking host system type""... $ac_c" 1>&6
916 echo "configure:917: checking host system type" >&5
919 case "$host_alias" in
923 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
924 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
926 *) host_alias
=$nonopt ;;
930 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
931 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
932 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
933 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
934 echo "$ac_t""$host" 1>&6
936 echo $ac_n "checking target system type""... $ac_c" 1>&6
937 echo "configure:938: checking target system type" >&5
940 case "$target_alias" in
943 NONE
) target_alias
=$host_alias ;;
944 *) target_alias
=$nonopt ;;
948 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
949 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
950 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
951 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
952 echo "$ac_t""$target" 1>&6
954 echo $ac_n "checking build system type""... $ac_c" 1>&6
955 echo "configure:956: checking build system type" >&5
958 case "$build_alias" in
961 NONE
) build_alias
=$host_alias ;;
962 *) build_alias
=$nonopt ;;
966 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
967 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
968 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
969 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
970 echo "$ac_t""$build" 1>&6
972 test "$host_alias" != "$target_alias" &&
973 test "$program_prefix$program_suffix$program_transform_name" = \
975 program_prefix
=${target_alias}-
981 configdirs
="doc testsuite"
984 .
${srcdir}/configure.
host
986 .
${srcdir}/configure.tgt
989 # Find a good install program. We prefer a C program (faster),
990 # so one script is as good as another. But avoid the broken or
991 # incompatible versions:
992 # SysV /etc/install, /usr/sbin/install
993 # SunOS /usr/etc/install
996 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
997 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
998 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
999 # ./install, which can be erroneously created by make from ./install.sh.
1000 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1001 echo "configure:1002: checking for a BSD compatible install" >&5
1002 if test -z "$INSTALL"; then
1003 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1006 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1007 for ac_dir
in $PATH; do
1008 # Account for people who put trailing slashes in PATH elements.
1010 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1012 # OSF1 and SCO ODT 3.0 have their own names for install.
1013 # Don't use installbsd from OSF since it installs stuff as root
1015 for ac_prog
in ginstall scoinst
install; do
1016 if test -f $ac_dir/$ac_prog; then
1017 if test $ac_prog = install &&
1018 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1019 # AIX install. It has an incompatible calling convention.
1022 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1033 if test "${ac_cv_path_install+set}" = set; then
1034 INSTALL
="$ac_cv_path_install"
1036 # As a last resort, use the slow shell script. We don't cache a
1037 # path for INSTALL within a source directory, because that will
1038 # break other packages using the cache if that directory is
1039 # removed, or if the path is relative.
1040 INSTALL
="$ac_install_sh"
1043 echo "$ac_t""$INSTALL" 1>&6
1045 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1046 # It thinks the first close brace ends the variable substitution.
1047 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1049 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1051 if test $host != $build; then
1052 ac_tool_prefix
=${host_alias}-
1057 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1058 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1060 echo "configure:1061: checking for $ac_word" >&5
1061 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&6
1064 if test -n "$AR"; then
1065 ac_cv_prog_AR
="$AR" # Let the user override the test.
1067 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1068 for ac_dir
in $PATH; do
1069 test -z "$ac_dir" && ac_dir
=.
1070 if test -f $ac_dir/$ac_word; then
1071 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1076 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1080 if test -n "$AR"; then
1081 echo "$ac_t""$AR" 1>&6
1083 echo "$ac_t""no" 1>&6
1088 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1089 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1091 echo "configure:1092: checking for $ac_word" >&5
1092 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 if test -n "$RANLIB"; then
1096 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1098 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1099 for ac_dir
in $PATH; do
1100 test -z "$ac_dir" && ac_dir
=.
1101 if test -f $ac_dir/$ac_word; then
1102 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1109 RANLIB
="$ac_cv_prog_RANLIB"
1110 if test -n "$RANLIB"; then
1111 echo "$ac_t""$RANLIB" 1>&6
1113 echo "$ac_t""no" 1>&6
1117 if test -z "$ac_cv_prog_RANLIB"; then
1118 if test -n "$ac_tool_prefix"; then
1119 # Extract the first word of "ranlib", so it can be a program name with args.
1120 set dummy ranlib
; ac_word
=$2
1121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1122 echo "configure:1123: checking for $ac_word" >&5
1123 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1126 if test -n "$RANLIB"; then
1127 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1129 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1130 for ac_dir
in $PATH; do
1131 test -z "$ac_dir" && ac_dir
=.
1132 if test -f $ac_dir/$ac_word; then
1133 ac_cv_prog_RANLIB
="ranlib"
1138 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1141 RANLIB
="$ac_cv_prog_RANLIB"
1142 if test -n "$RANLIB"; then
1143 echo "$ac_t""$RANLIB" 1>&6
1145 echo "$ac_t""no" 1>&6
1153 for ac_prog
in 'bison -y' byacc
1155 # Extract the first word of "$ac_prog", so it can be a program name with args.
1156 set dummy
$ac_prog; ac_word
=$2
1157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1158 echo "configure:1159: checking for $ac_word" >&5
1159 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 if test -n "$YACC"; then
1163 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1165 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1166 for ac_dir
in $PATH; do
1167 test -z "$ac_dir" && ac_dir
=.
1168 if test -f $ac_dir/$ac_word; then
1169 ac_cv_prog_YACC
="$ac_prog"
1176 YACC
="$ac_cv_prog_YACC"
1177 if test -n "$YACC"; then
1178 echo "$ac_t""$YACC" 1>&6
1180 echo "$ac_t""no" 1>&6
1183 test -n "$YACC" && break
1185 test -n "$YACC" || YACC
="yacc"
1187 for ac_prog
in mawk gawk nawk
awk
1189 # Extract the first word of "$ac_prog", so it can be a program name with args.
1190 set dummy
$ac_prog; ac_word
=$2
1191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1192 echo "configure:1193: checking for $ac_word" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 if test -n "$AWK"; then
1197 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1199 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1200 for ac_dir
in $PATH; do
1201 test -z "$ac_dir" && ac_dir
=.
1202 if test -f $ac_dir/$ac_word; then
1203 ac_cv_prog_AWK
="$ac_prog"
1210 AWK
="$ac_cv_prog_AWK"
1211 if test -n "$AWK"; then
1212 echo "$ac_t""$AWK" 1>&6
1214 echo "$ac_t""no" 1>&6
1217 test -n "$AWK" && break
1221 if test "$program_transform_name" = s
,x
,x
,; then
1222 program_transform_name
=
1224 # Double any \ or $. echo might interpret backslashes.
1225 cat <<\EOF_SED
> conftestsed
1226 s
,\\,\\\\,g
; s
,\$
,$$
,g
1228 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1231 test "$program_prefix" != NONE
&&
1232 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1233 # Use a double $ so make ignores it.
1234 test "$program_suffix" != NONE
&&
1235 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1237 # sed with no file args requires a program.
1238 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1241 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1242 echo "configure:1243: checking return type of signal handlers" >&5
1243 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6
1246 cat > conftest.
$ac_ext <<EOF
1247 #line 1248 "configure"
1248 #include "confdefs.h"
1249 #include <sys/types.h>
1255 extern "C" void (*signal (int, void (*)(int)))(int);
1257 void (*signal ()) ();
1264 if { (eval echo configure
:1265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1266 ac_cv_type_signal
=void
1268 echo "configure: failed program was:" >&5
1269 cat conftest.
$ac_ext >&5
1271 ac_cv_type_signal
=int
1276 echo "$ac_t""$ac_cv_type_signal" 1>&6
1277 cat >> confdefs.h
<<EOF
1278 #define RETSIGTYPE $ac_cv_type_signal
1283 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1284 echo "configure:1285: checking for ANSI C header files" >&5
1285 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1288 cat > conftest.
$ac_ext <<EOF
1289 #line 1290 "configure"
1290 #include "confdefs.h"
1296 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1297 { (eval echo configure
:1298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1298 ac_err
=`grep -v '^ *+' conftest.out`
1299 if test -z "$ac_err"; then
1301 ac_cv_header_stdc
=yes
1304 echo "configure: failed program was:" >&5
1305 cat conftest.
$ac_ext >&5
1307 ac_cv_header_stdc
=no
1311 if test $ac_cv_header_stdc = yes; then
1312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1313 cat > conftest.
$ac_ext <<EOF
1314 #line 1315 "configure"
1315 #include "confdefs.h"
1318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1319 egrep "memchr" >/dev
/null
2>&1; then
1323 ac_cv_header_stdc
=no
1329 if test $ac_cv_header_stdc = yes; then
1330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1331 cat > conftest.
$ac_ext <<EOF
1332 #line 1333 "configure"
1333 #include "confdefs.h"
1336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1337 egrep "free" >/dev
/null
2>&1; then
1341 ac_cv_header_stdc
=no
1347 if test $ac_cv_header_stdc = yes; then
1348 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1349 if test "$cross_compiling" = yes; then
1352 cat > conftest.
$ac_ext <<EOF
1353 #line 1354 "configure"
1354 #include "confdefs.h"
1356 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1357 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1359 int main () { int i; for (i = 0; i < 256; i++)
1360 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1364 if { (eval echo configure
:1365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1368 echo "configure: failed program was:" >&5
1369 cat conftest.
$ac_ext >&5
1371 ac_cv_header_stdc
=no
1379 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1380 if test $ac_cv_header_stdc = yes; then
1381 cat >> confdefs.h
<<\EOF
1382 #define STDC_HEADERS 1
1387 for ac_hdr
in limits.h memory.h string.h
strings.h unistd.h termios.h termio.h sgtty.h stddef.h stdlib.h sys
/procfs.h link.h endian.h objlist.h
1389 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1390 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1391 echo "configure:1392: checking for $ac_hdr" >&5
1392 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 cat > conftest.
$ac_ext <<EOF
1396 #line 1397 "configure"
1397 #include "confdefs.h"
1400 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1401 { (eval echo configure
:1402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1402 ac_err
=`grep -v '^ *+' conftest.out`
1403 if test -z "$ac_err"; then
1405 eval "ac_cv_header_$ac_safe=yes"
1408 echo "configure: failed program was:" >&5
1409 cat conftest.
$ac_ext >&5
1411 eval "ac_cv_header_$ac_safe=no"
1415 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1416 echo "$ac_t""yes" 1>&6
1417 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1418 cat >> confdefs.h
<<EOF
1419 #define $ac_tr_hdr 1
1423 echo "$ac_t""no" 1>&6
1427 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1428 echo "configure:1429: checking whether stat file-mode macros are broken" >&5
1429 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 cat > conftest.
$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1435 #include <sys/types.h>
1436 #include <sys/stat.h>
1438 #if defined(S_ISBLK) && defined(S_IFDIR)
1439 # if S_ISBLK (S_IFDIR)
1444 #if defined(S_ISBLK) && defined(S_IFCHR)
1445 # if S_ISBLK (S_IFCHR)
1450 #if defined(S_ISLNK) && defined(S_IFREG)
1451 # if S_ISLNK (S_IFREG)
1456 #if defined(S_ISSOCK) && defined(S_IFREG)
1457 # if S_ISSOCK (S_IFREG)
1463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1464 egrep "You lose" >/dev
/null
2>&1; then
1466 ac_cv_header_stat_broken
=yes
1469 ac_cv_header_stat_broken
=no
1475 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1476 if test $ac_cv_header_stat_broken = yes; then
1477 cat >> confdefs.h
<<\EOF
1478 #define STAT_MACROS_BROKEN 1
1484 echo $ac_n "checking for working const""... $ac_c" 1>&6
1485 echo "configure:1486: checking for working const" >&5
1486 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 cat > conftest.
$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1495 /* Ultrix mips cc rejects this. */
1496 typedef int charset[2]; const charset x;
1497 /* SunOS 4.1.1 cc rejects this. */
1498 char const *const *ccp;
1500 /* NEC SVR4.0.2 mips cc rejects this. */
1501 struct point {int x, y;};
1502 static struct point const zero = {0,0};
1503 /* AIX XL C 1.02.0.0 rejects this.
1504 It does not let you subtract one const X* pointer from another in an arm
1505 of an if-expression whose if-part is not a constant expression */
1506 const char *g = "string";
1507 ccp = &g + (g ? g-g : 0);
1508 /* HPUX 7.0 cc rejects these. */
1511 ccp = (char const *const *) p;
1512 { /* SCO 3.2v4 cc rejects this. */
1514 char const *s = 0 ? (char *) 0 : (char const *) 0;
1518 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1520 const int *foo = &x[0];
1523 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1524 typedef const int *iptr;
1528 { /* AIX XL C 1.02.0.0 rejects this saying
1529 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1530 struct s { int j; const int *ap[3]; };
1531 struct s *b; b->j = 5;
1533 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1539 if { (eval echo configure
:1540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1543 echo "configure: failed program was:" >&5
1544 cat conftest.
$ac_ext >&5
1551 echo "$ac_t""$ac_cv_c_const" 1>&6
1552 if test $ac_cv_c_const = no
; then
1553 cat >> confdefs.h
<<\EOF
1560 for ac_func
in setpgid sbrk
select poll
1562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1563 echo "configure:1564: checking for $ac_func" >&5
1564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1567 cat > conftest.
$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1570 /* System header to define __stub macros and hopefully few prototypes,
1571 which can conflict with char $ac_func(); below. */
1573 /* Override any gcc2 internal prototype to avoid an error. */
1574 /* We use char because int might match the return type of a gcc2
1575 builtin and then its argument prototype would still apply. */
1580 /* The GNU C library defines this for functions which it implements
1581 to always fail with ENOSYS. Some functions are actually named
1582 something starting with __ and the normal name is an alias. */
1583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1591 if { (eval echo configure
:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1593 eval "ac_cv_func_$ac_func=yes"
1595 echo "configure: failed program was:" >&5
1596 cat conftest.
$ac_ext >&5
1598 eval "ac_cv_func_$ac_func=no"
1603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1604 echo "$ac_t""yes" 1>&6
1605 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1606 cat >> confdefs.h
<<EOF
1607 #define $ac_tr_func 1
1611 echo "$ac_t""no" 1>&6
1616 # If we are configured native on Linux, work around problems with sys/procfs.h
1617 if test "${target}" = "${host}"; then
1620 cat >> confdefs.h
<<\EOF
1621 #define START_INFERIOR_TRAPS_EXPECTED "2"
1624 cat >> confdefs.h
<<\EOF
1625 #define sys_quotactl 1
1632 echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6
1633 echo "configure:1634: checking for gregset_t type" >&5
1634 if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1637 cat > conftest.
$ac_ext <<EOF
1638 #line 1639 "configure"
1639 #include "confdefs.h"
1640 #include <sys/procfs.h>
1642 gregset_t *gregsetp = 0
1645 if { (eval echo configure
:1646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1647 gdb_cv_have_gregset_t
=yes
1649 echo "configure: failed program was:" >&5
1650 cat conftest.
$ac_ext >&5
1652 gdb_cv_have_gregset_t
=no
1657 echo "$ac_t""$gdb_cv_have_gregset_t" 1>&6
1658 if test $gdb_cv_have_gregset_t = yes; then
1659 cat >> confdefs.h
<<\EOF
1660 #define HAVE_GREGSET_T 1
1665 echo $ac_n "checking for fpregset_t type""... $ac_c" 1>&6
1666 echo "configure:1667: checking for fpregset_t type" >&5
1667 if eval "test \"`echo '$''{'gdb_cv_have_fpregset_t'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1670 cat > conftest.
$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1673 #include <sys/procfs.h>
1675 fpregset_t *fpregsetp = 0
1678 if { (eval echo configure
:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1680 gdb_cv_have_fpregset_t
=yes
1682 echo "configure: failed program was:" >&5
1683 cat conftest.
$ac_ext >&5
1685 gdb_cv_have_fpregset_t
=no
1690 echo "$ac_t""$gdb_cv_have_fpregset_t" 1>&6
1691 if test $gdb_cv_have_fpregset_t = yes; then
1692 cat >> confdefs.h
<<\EOF
1693 #define HAVE_FPREGSET_T 1
1698 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1699 echo "configure:1700: checking for main in -lm" >&5
1700 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
1701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1704 ac_save_LIBS
="$LIBS"
1706 cat > conftest.
$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1714 if { (eval echo configure
:1715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1716 eval "ac_cv_lib_$ac_lib_var=yes"
1718 echo "configure: failed program was:" >&5
1719 cat conftest.
$ac_ext >&5
1721 eval "ac_cv_lib_$ac_lib_var=no"
1724 LIBS
="$ac_save_LIBS"
1727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1728 echo "$ac_t""yes" 1>&6
1729 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1730 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1731 cat >> confdefs.h
<<EOF
1732 #define $ac_tr_lib 1
1738 echo "$ac_t""no" 1>&6
1743 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
1744 echo "configure:1745: checking for long long support in compiler" >&5
1745 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1748 cat > conftest.
$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1754 extern long long foo;
1755 switch (foo & 2) { case 0: return 1; }
1759 if { (eval echo configure
:1760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1761 gdb_cv_c_long_long
=yes
1763 echo "configure: failed program was:" >&5
1764 cat conftest.
$ac_ext >&5
1766 gdb_cv_c_long_long
=no
1771 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
1772 if test $gdb_cv_c_long_long = yes; then
1773 cat >> confdefs.h
<<\EOF
1774 #define CC_HAS_LONG_LONG 1
1780 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
1781 echo "configure:1782: checking for long long support in printf" >&5
1782 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1785 if test "$cross_compiling" = yes; then
1786 gdb_cv_printf_has_long_long
=no
1788 cat > conftest.
$ac_ext <<EOF
1789 #line 1790 "configure"
1790 #include "confdefs.h"
1794 long long l = 0x12345;
1795 sprintf (buf, "%llx", l);
1796 return (strcmp ("12345", buf));
1799 if { (eval echo configure
:1800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1801 gdb_cv_printf_has_long_long
=yes
1803 echo "configure: failed program was:" >&5
1804 cat conftest.
$ac_ext >&5
1806 gdb_cv_printf_has_long_long
=no
1813 if test $gdb_cv_printf_has_long_long = yes; then
1814 cat >> confdefs.h
<<\EOF
1815 #define PRINTF_HAS_LONG_LONG 1
1819 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
1822 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
1823 echo "configure:1824: checking for long double support in compiler" >&5
1824 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1827 cat > conftest.
$ac_ext <<EOF
1828 #line 1829 "configure"
1829 #include "confdefs.h"
1835 if { (eval echo configure
:1836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1837 ac_cv_c_long_double
=yes
1839 echo "configure: failed program was:" >&5
1840 cat conftest.
$ac_ext >&5
1842 ac_cv_c_long_double
=no
1847 echo "$ac_t""$ac_cv_c_long_double" 1>&6
1848 if test $ac_cv_c_long_double = yes; then
1849 cat >> confdefs.h
<<\EOF
1850 #define HAVE_LONG_DOUBLE 1
1856 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
1857 echo "configure:1858: checking for long double support in printf" >&5
1858 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1861 if test "$cross_compiling" = yes; then
1862 gdb_cv_printf_has_long_double
=no
1864 cat > conftest.
$ac_ext <<EOF
1865 #line 1866 "configure"
1866 #include "confdefs.h"
1870 long double f = 3.141592653;
1871 sprintf (buf, "%Lg", f);
1872 return (strncmp ("3.14159", buf, 7));
1875 if { (eval echo configure
:1876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1877 gdb_cv_printf_has_long_double
=yes
1879 echo "configure: failed program was:" >&5
1880 cat conftest.
$ac_ext >&5
1882 gdb_cv_printf_has_long_double
=no
1889 if test $gdb_cv_printf_has_long_double = yes; then
1890 cat >> confdefs.h
<<\EOF
1891 #define PRINTF_HAS_LONG_DOUBLE 1
1895 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
1897 for ac_hdr
in unistd.h
1899 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1901 echo "configure:1902: checking for $ac_hdr" >&5
1902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 cat > conftest.
$ac_ext <<EOF
1906 #line 1907 "configure"
1907 #include "confdefs.h"
1910 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1911 { (eval echo configure
:1912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1912 ac_err
=`grep -v '^ *+' conftest.out`
1913 if test -z "$ac_err"; then
1915 eval "ac_cv_header_$ac_safe=yes"
1918 echo "configure: failed program was:" >&5
1919 cat conftest.
$ac_ext >&5
1921 eval "ac_cv_header_$ac_safe=no"
1925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1926 echo "$ac_t""yes" 1>&6
1927 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1928 cat >> confdefs.h
<<EOF
1929 #define $ac_tr_hdr 1
1933 echo "$ac_t""no" 1>&6
1937 for ac_func
in getpagesize
1939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1940 echo "configure:1941: checking for $ac_func" >&5
1941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1942 echo $ac_n "(cached) $ac_c" 1>&6
1944 cat > conftest.
$ac_ext <<EOF
1945 #line 1946 "configure"
1946 #include "confdefs.h"
1947 /* System header to define __stub macros and hopefully few prototypes,
1948 which can conflict with char $ac_func(); below. */
1950 /* Override any gcc2 internal prototype to avoid an error. */
1951 /* We use char because int might match the return type of a gcc2
1952 builtin and then its argument prototype would still apply. */
1957 /* The GNU C library defines this for functions which it implements
1958 to always fail with ENOSYS. Some functions are actually named
1959 something starting with __ and the normal name is an alias. */
1960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1968 if { (eval echo configure
:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1970 eval "ac_cv_func_$ac_func=yes"
1972 echo "configure: failed program was:" >&5
1973 cat conftest.
$ac_ext >&5
1975 eval "ac_cv_func_$ac_func=no"
1980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1981 echo "$ac_t""yes" 1>&6
1982 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1983 cat >> confdefs.h
<<EOF
1984 #define $ac_tr_func 1
1988 echo "$ac_t""no" 1>&6
1992 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1993 echo "configure:1994: checking for working mmap" >&5
1994 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1997 if test "$cross_compiling" = yes; then
1998 ac_cv_func_mmap_fixed_mapped
=no
2000 cat > conftest.
$ac_ext <<EOF
2001 #line 2002 "configure"
2002 #include "confdefs.h"
2004 /* Thanks to Mike Haertel and Jim Avera for this test.
2005 Here is a matrix of mmap possibilities:
2006 mmap private not fixed
2007 mmap private fixed at somewhere currently unmapped
2008 mmap private fixed at somewhere already mapped
2009 mmap shared not fixed
2010 mmap shared fixed at somewhere currently unmapped
2011 mmap shared fixed at somewhere already mapped
2012 For private mappings, we should verify that changes cannot be read()
2013 back from the file, nor mmap's back from the file at a different
2014 address. (There have been systems where private was not correctly
2015 implemented like the infamous i386 svr4.0, and systems where the
2016 VM page cache was not coherent with the filesystem buffer cache
2017 like early versions of FreeBSD and possibly contemporary NetBSD.)
2018 For shared mappings, we should conversely verify that changes get
2019 propogated back to all the places they're supposed to be.
2021 Grep wants private fixed already mapped.
2022 The main things grep needs to know about mmap are:
2023 * does it exist and is it safe to write into the mmap'd area
2024 * how to use it (BSD variants) */
2025 #include <sys/types.h>
2027 #include <sys/mman.h>
2029 /* This mess was copied from the GNU getpagesize.h. */
2030 #ifndef HAVE_GETPAGESIZE
2031 # ifdef HAVE_UNISTD_H
2032 # include <unistd.h>
2035 /* Assume that all systems that can run configure have sys/param.h. */
2036 # ifndef HAVE_SYS_PARAM_H
2037 # define HAVE_SYS_PARAM_H 1
2040 # ifdef _SC_PAGESIZE
2041 # define getpagesize() sysconf(_SC_PAGESIZE)
2042 # else /* no _SC_PAGESIZE */
2043 # ifdef HAVE_SYS_PARAM_H
2044 # include <sys/param.h>
2045 # ifdef EXEC_PAGESIZE
2046 # define getpagesize() EXEC_PAGESIZE
2047 # else /* no EXEC_PAGESIZE */
2049 # define getpagesize() NBPG * CLSIZE
2052 # endif /* no CLSIZE */
2053 # else /* no NBPG */
2055 # define getpagesize() NBPC
2056 # else /* no NBPC */
2058 # define getpagesize() PAGESIZE
2059 # endif /* PAGESIZE */
2060 # endif /* no NBPC */
2061 # endif /* no NBPG */
2062 # endif /* no EXEC_PAGESIZE */
2063 # else /* no HAVE_SYS_PARAM_H */
2064 # define getpagesize() 8192 /* punt totally */
2065 # endif /* no HAVE_SYS_PARAM_H */
2066 # endif /* no _SC_PAGESIZE */
2068 #endif /* no HAVE_GETPAGESIZE */
2071 extern "C" { void *malloc(unsigned); }
2079 char *data, *data2, *data3;
2083 pagesize = getpagesize();
2086 * First, make a file with some known garbage in it.
2088 data = malloc(pagesize);
2091 for (i = 0; i < pagesize; ++i)
2092 *(data + i) = rand();
2094 fd = creat("conftestmmap", 0600);
2097 if (write(fd, data, pagesize) != pagesize)
2102 * Next, try to mmap the file at a fixed address which
2103 * already has something else allocated at it. If we can,
2104 * also make sure that we see the same garbage.
2106 fd = open("conftestmmap", O_RDWR);
2109 data2 = malloc(2 * pagesize);
2112 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2113 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2114 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2116 for (i = 0; i < pagesize; ++i)
2117 if (*(data + i) != *(data2 + i))
2121 * Finally, make sure that changes to the mapped area
2122 * do not percolate back to the file as seen by read().
2123 * (This is a bug on some variants of i386 svr4.0.)
2125 for (i = 0; i < pagesize; ++i)
2126 *(data2 + i) = *(data2 + i) + 1;
2127 data3 = malloc(pagesize);
2130 if (read(fd, data3, pagesize) != pagesize)
2132 for (i = 0; i < pagesize; ++i)
2133 if (*(data + i) != *(data3 + i))
2136 unlink("conftestmmap");
2141 if { (eval echo configure
:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2143 ac_cv_func_mmap_fixed_mapped
=yes
2145 echo "configure: failed program was:" >&5
2146 cat conftest.
$ac_ext >&5
2148 ac_cv_func_mmap_fixed_mapped
=no
2155 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2156 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2157 cat >> confdefs.h
<<\EOF
2164 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
2165 echo "configure:2166: checking whether malloc must be declared" >&5
2166 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2169 cat > conftest.
$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2174 #ifdef HAVE_STRING_H
2177 #ifdef HAVE_STRINGS_H
2178 #include <strings.h>
2181 #ifdef HAVE_STDLIB_H
2184 #ifdef HAVE_UNISTD_H
2188 char *(*pfn) = (char *(*)) malloc
2191 if { (eval echo configure
:2192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2193 bfd_cv_decl_needed_malloc
=no
2195 echo "configure: failed program was:" >&5
2196 cat conftest.
$ac_ext >&5
2198 bfd_cv_decl_needed_malloc
=yes
2203 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
2204 if test $bfd_cv_decl_needed_malloc = yes; then
2205 bfd_tr_decl
=NEED_DECLARATION_
`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2206 cat >> confdefs.h
<<EOF
2207 #define $bfd_tr_decl 1
2212 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
2213 echo "configure:2214: checking whether realloc must be declared" >&5
2214 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
2215 echo $ac_n "(cached) $ac_c" 1>&6
2217 cat > conftest.
$ac_ext <<EOF
2218 #line 2219 "configure"
2219 #include "confdefs.h"
2222 #ifdef HAVE_STRING_H
2225 #ifdef HAVE_STRINGS_H
2226 #include <strings.h>
2229 #ifdef HAVE_STDLIB_H
2232 #ifdef HAVE_UNISTD_H
2236 char *(*pfn) = (char *(*)) realloc
2239 if { (eval echo configure
:2240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2241 bfd_cv_decl_needed_realloc
=no
2243 echo "configure: failed program was:" >&5
2244 cat conftest.
$ac_ext >&5
2246 bfd_cv_decl_needed_realloc
=yes
2251 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
2252 if test $bfd_cv_decl_needed_realloc = yes; then
2253 bfd_tr_decl
=NEED_DECLARATION_
`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2254 cat >> confdefs.h
<<EOF
2255 #define $bfd_tr_decl 1
2260 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
2261 echo "configure:2262: checking whether free must be declared" >&5
2262 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2265 cat > conftest.
$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2270 #ifdef HAVE_STRING_H
2273 #ifdef HAVE_STRINGS_H
2274 #include <strings.h>
2277 #ifdef HAVE_STDLIB_H
2280 #ifdef HAVE_UNISTD_H
2284 char *(*pfn) = (char *(*)) free
2287 if { (eval echo configure
:2288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2289 bfd_cv_decl_needed_free
=no
2291 echo "configure: failed program was:" >&5
2292 cat conftest.
$ac_ext >&5
2294 bfd_cv_decl_needed_free
=yes
2299 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
2300 if test $bfd_cv_decl_needed_free = yes; then
2301 bfd_tr_decl
=NEED_DECLARATION_
`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2302 cat >> confdefs.h
<<EOF
2303 #define $bfd_tr_decl 1
2311 if test ${build} = ${host} -a ${host} = ${target} ; then
2314 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
2315 echo "configure:2316: checking for HPUX/OSF thread support" >&5
2316 if test -f /usr
/include
/dce
/cma_config.h
; then
2317 if test "$GCC" = "yes" ; then
2318 echo "$ac_t""yes" 1>&6
2319 cat >> confdefs.h
<<\EOF
2320 #define HAVE_HPUX_THREAD_SUPPORT 1
2323 CONFIG_OBS
="${CONFIG_OJS} hpux-thread.o"
2325 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
2328 echo "$ac_t""no" 1>&6
2332 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
2333 echo "configure:2334: checking for Solaris thread debugging library" >&5
2334 if test -f /usr
/lib
/libthread_db.so
.1 ; then
2335 echo "$ac_t""yes" 1>&6
2336 cat >> confdefs.h
<<\EOF
2337 #define HAVE_THREAD_DB_LIB 1
2340 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
2341 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2342 echo "configure:2343: checking for dlopen in -ldl" >&5
2343 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2345 echo $ac_n "(cached) $ac_c" 1>&6
2347 ac_save_LIBS
="$LIBS"
2349 cat > conftest.
$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2352 /* Override any gcc2 internal prototype to avoid an error. */
2353 /* We use char because int might match the return type of a gcc2
2354 builtin and then its argument prototype would still apply. */
2361 if { (eval echo configure
:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2363 eval "ac_cv_lib_$ac_lib_var=yes"
2365 echo "configure: failed program was:" >&5
2366 cat conftest.
$ac_ext >&5
2368 eval "ac_cv_lib_$ac_lib_var=no"
2371 LIBS
="$ac_save_LIBS"
2374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2375 echo "$ac_t""yes" 1>&6
2376 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2377 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2378 cat >> confdefs.h
<<EOF
2379 #define $ac_tr_lib 1
2385 echo "$ac_t""no" 1>&6
2388 if test "$GCC" = "yes" ; then
2389 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Xlinker -export-dynamic"
2392 echo "$ac_t""no" 1>&6
2401 # Check whether --enable-netrom or --disable-netrom was given.
2402 if test "${enable_netrom+set}" = set; then
2403 enableval
="$enable_netrom"
2404 case "${enableval}" in
2405 yes) enable_netrom
=yes ;;
2406 no
) enable_netrom
=no
;;
2407 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
2412 if test "${enable_netrom}" = "yes"; then
2413 CONFIG_OBS
="${CONFIG_OBS} remote-nrom.o"
2416 # start-sanitize-gdbtk
2418 # Check whether --enable-ide or --disable-ide was given.
2419 if test "${enable_ide+set}" = set; then
2420 enableval
="$enable_ide"
2424 if test "$enable_ide" = yes; then
2434 # Check whether --enable-gdbtk or --disable-gdbtk was given.
2435 if test "${enable_gdbtk+set}" = set; then
2436 enableval
="$enable_gdbtk"
2437 case "${enableval}" in
2441 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
2444 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
2452 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
2456 # Default is on for everything but go32 and cygwin32
2467 # In the cygwin32 environment, we need some additional flags.
2468 echo $ac_n "checking for cygwin32""... $ac_c" 1>&6
2469 echo "configure:2470: checking for cygwin32" >&5
2470 if eval "test \"`echo '$''{'gdb_cv_os_cygwin32'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 cat > conftest.
$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2482 egrep "lose" >/dev
/null
2>&1; then
2484 gdb_cv_os_cygwin32
=yes
2487 gdb_cv_os_cygwin32
=no
2493 echo "$ac_t""$gdb_cv_os_cygwin32" 1>&6
2500 if test x
$gdb_cv_os_cygwin32 = xyes
; then
2501 if test x
$enable_ide = xyes
; then
2502 WIN32LIBS
="-ladvapi32"
2508 if test "${enable_gdbtk}" = "yes"; then
2512 # Ok, lets find the tcl configuration
2513 # First, look for one uninstalled.
2514 # the alternative search directory is invoked by --with-tclconfig
2517 if test x
"${no_tcl}" = x
; then
2518 # we reset no_tcl in case something fails here
2520 # Check whether --with-tclconfig or --without-tclconfig was given.
2521 if test "${with_tclconfig+set}" = set; then
2522 withval
="$with_tclconfig"
2523 with_tclconfig
=${withval}
2526 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
2527 echo "configure:2528: checking for Tcl configuration" >&5
2528 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
2529 echo $ac_n "(cached) $ac_c" 1>&6
2533 # First check to see if --with-tclconfig was specified.
2534 if test x
"${with_tclconfig}" != x
; then
2535 if test -f "${with_tclconfig}/tclConfig.sh" ; then
2536 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
2538 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
2542 # then check for a private Tcl installation
2543 if test x
"${ac_cv_c_tclconfig}" = x
; then
2546 `ls -dr ../tcl[7-9]* 2>/dev/null` \
2548 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
2550 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
2551 if test -f "$i/${configdir}/tclConfig.sh" ; then
2552 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
2557 # check in a few common install locations
2558 if test x
"${ac_cv_c_tclconfig}" = x
; then
2559 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
2560 if test -f "$i/tclConfig.sh" ; then
2561 ac_cv_c_tclconfig
=`(cd $i; pwd)`
2566 # check in a few other private locations
2567 if test x
"${ac_cv_c_tclconfig}" = x
; then
2570 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
2571 if test -f "$i/${configdir}/tclConfig.sh" ; then
2572 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
2580 if test x
"${ac_cv_c_tclconfig}" = x
; then
2581 TCLCONFIG
="# no Tcl configs found"
2582 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
2585 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
2586 echo "$ac_t""found $TCLCONFIG" 1>&6
2590 if test -z "${no_tcl}"; then
2620 # Ok, lets find the tk configuration
2621 # First, look for one uninstalled.
2622 # the alternative search directory is invoked by --with-tkconfig
2625 if test x
"${no_tk}" = x
; then
2626 # we reset no_tk in case something fails here
2628 # Check whether --with-tkconfig or --without-tkconfig was given.
2629 if test "${with_tkconfig+set}" = set; then
2630 withval
="$with_tkconfig"
2631 with_tkconfig
=${withval}
2634 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
2635 echo "configure:2636: checking for Tk configuration" >&5
2636 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
2637 echo $ac_n "(cached) $ac_c" 1>&6
2641 # First check to see if --with-tkconfig was specified.
2642 if test x
"${with_tkconfig}" != x
; then
2643 if test -f "${with_tkconfig}/tkConfig.sh" ; then
2644 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
2646 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
2650 # then check for a private Tk library
2651 if test x
"${ac_cv_c_tkconfig}" = x
; then
2654 `ls -dr ../tk[4-9]* 2>/dev/null` \
2656 `ls -dr ../../tk[4-9]* 2>/dev/null` \
2658 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
2659 if test -f "$i/${configdir}/tkConfig.sh" ; then
2660 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
2665 # check in a few common install locations
2666 if test x
"${ac_cv_c_tkconfig}" = x
; then
2667 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
2668 if test -f "$i/tkConfig.sh" ; then
2669 ac_cv_c_tkconfig
=`(cd $i; pwd)`
2674 # check in a few other private locations
2675 if test x
"${ac_cv_c_tkconfig}" = x
; then
2678 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
2679 if test -f "$i/${configdir}/tkConfig.sh" ; then
2680 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
2688 if test x
"${ac_cv_c_tkconfig}" = x
; then
2689 TKCONFIG
="# no Tk configs found"
2690 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
2693 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
2694 echo "$ac_t""found $TKCONFIG" 1>&6
2700 # If $no_tk is nonempty, then we can't do Tk, and there is no
2701 # point to doing Tcl.
2702 if test -z "${no_tk}"; then
2704 if test -f "$TKCONFIG" ; then
2722 # Ok, lets find the tcl source trees so we can use the headers
2723 # Warning: transition of version 9 to 10 will break this algorithm
2724 # because 10 sorts before 9. We also look for just tcl. We have to
2725 # be careful that we don't match stuff like tclX by accident.
2726 # the alternative search directory is involked by --with-tclinclude
2730 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
2731 echo "configure:2732: checking for Tcl private headers. dir=${configdir}" >&5
2732 # Check whether --with-tclinclude or --without-tclinclude was given.
2733 if test "${with_tclinclude+set}" = set; then
2734 withval
="$with_tclinclude"
2735 with_tclinclude
=${withval}
2738 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2742 # first check to see if --with-tclinclude was specified
2743 if test x
"${with_tclinclude}" != x
; then
2744 if test -f ${with_tclinclude}/tclInt.h
; then
2745 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
2746 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
2747 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
2749 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
2753 # next check if it came with Tcl configuration file
2754 if test x
"${ac_cv_c_tclconfig}" = x
; then
2755 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
2756 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
2760 # next check in private source directory
2762 # since ls returns lowest version numbers first, reverse its output
2763 if test x
"${ac_cv_c_tclh}" = x
; then
2766 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
2767 ${srcdir}/..
/..
/tcl \
2768 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
2769 ${srcdir}/..
/..
/..
/tcl \
2770 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
2771 if test -f $i/generic
/tclInt.h
; then
2772 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
2777 # finally check in a few common install locations
2779 # since ls returns lowest version numbers first, reverse its output
2780 if test x
"${ac_cv_c_tclh}" = x
; then
2782 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
2783 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
2784 /usr
/local
/src
/tcl \
2785 /usr
/local
/lib
/tcl \
2786 ${prefix}/include
; do
2787 if test -f $i/generic
/tclInt.h
; then
2788 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
2793 # see if one is installed
2794 if test x
"${ac_cv_c_tclh}" = x
; then
2795 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
2796 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
2797 echo "configure:2798: checking for tclInt.h" >&5
2798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2799 echo $ac_n "(cached) $ac_c" 1>&6
2801 cat > conftest.
$ac_ext <<EOF
2802 #line 2803 "configure"
2803 #include "confdefs.h"
2806 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2807 { (eval echo configure
:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2808 ac_err
=`grep -v '^ *+' conftest.out`
2809 if test -z "$ac_err"; then
2811 eval "ac_cv_header_$ac_safe=yes"
2814 echo "configure: failed program was:" >&5
2815 cat conftest.
$ac_ext >&5
2817 eval "ac_cv_header_$ac_safe=no"
2821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2822 echo "$ac_t""yes" 1>&6
2823 ac_cv_c_tclh
=installed
2825 echo "$ac_t""no" 1>&6
2833 if test x
"${ac_cv_c_tclh}" = x
; then
2834 TCLHDIR
="# no Tcl private headers found"
2835 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
2837 if test x
"${ac_cv_c_tclh}" != x
; then
2839 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
2840 echo "$ac_t""is installed" 1>&6
2843 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
2844 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
2845 TCLHDIR
="-I${ac_cv_c_tclh}"
2853 # Ok, lets find the tk source trees so we can use the headers
2854 # If the directory (presumably symlink) named "tk" exists, use that one
2855 # in preference to any others. Same logic is used when choosing library
2856 # and again with Tcl. The search order is the best place to look first, then in
2857 # decreasing significance. The loop breaks if the trigger file is found.
2858 # Note the gross little conversion here of srcdir by cd'ing to the found
2859 # directory. This converts the path from a relative to an absolute, so
2860 # recursive cache variables for the path will work right. We check all
2861 # the possible paths in one loop rather than many seperate loops to speed
2863 # the alternative search directory is involked by --with-tkinclude
2866 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
2867 echo "configure:2868: checking for Tk private headers" >&5
2868 # Check whether --with-tkinclude or --without-tkinclude was given.
2869 if test "${with_tkinclude+set}" = set; then
2870 withval
="$with_tkinclude"
2871 with_tkinclude
=${withval}
2874 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
2875 echo $ac_n "(cached) $ac_c" 1>&6
2878 # first check to see if --with-tkinclude was specified
2879 if test x
"${with_tkinclude}" != x
; then
2880 if test -f ${with_tkinclude}/tk.h
; then
2881 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
2882 elif test -f ${with_tkinclude}/generic
/tk.h
; then
2883 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
2885 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
2889 # next check if it came with Tk configuration file
2890 if test x
"${ac_cv_c_tkconfig}" = x
; then
2891 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
2892 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
2896 # next check in private source directory
2898 # since ls returns lowest version numbers first, reverse its output
2899 if test x
"${ac_cv_c_tkh}" = x
; then
2902 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
2903 ${srcdir}/..
/..
/tk \
2904 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
2905 ${srcdir}/..
/..
/..
/tk \
2906 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
2907 if test -f $i/generic
/tk.h
; then
2908 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
2913 # finally check in a few common install locations
2915 # since ls returns lowest version numbers first, reverse its output
2916 if test x
"${ac_cv_c_tkh}" = x
; then
2918 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
2919 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
2922 ${prefix}/include
; do
2923 if test -f $i/generic
/tk.h
; then
2924 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
2929 # see if one is installed
2930 if test x
"${ac_cv_c_tkh}" = x
; then
2931 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
2932 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
2933 echo "configure:2934: checking for tk.h" >&5
2934 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2935 echo $ac_n "(cached) $ac_c" 1>&6
2937 cat > conftest.
$ac_ext <<EOF
2938 #line 2939 "configure"
2939 #include "confdefs.h"
2942 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2943 { (eval echo configure
:2944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2944 ac_err
=`grep -v '^ *+' conftest.out`
2945 if test -z "$ac_err"; then
2947 eval "ac_cv_header_$ac_safe=yes"
2950 echo "configure: failed program was:" >&5
2951 cat conftest.
$ac_ext >&5
2953 eval "ac_cv_header_$ac_safe=no"
2957 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2958 echo "$ac_t""yes" 1>&6
2959 ac_cv_c_tkh
=installed
2961 echo "$ac_t""no" 1>&6
2969 if test x
"${ac_cv_c_tkh}" != x
; then
2971 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
2972 echo "$ac_t""is installed" 1>&6
2975 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
2976 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
2977 TKHDIR
="-I${ac_cv_c_tkh}"
2980 TKHDIR
="# no Tk directory found"
2981 echo "configure: warning: Can't find Tk private headers" 1>&2
2988 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
2989 echo "configure:2990: checking for Itcl private headers. srcdir=${srcdir}" >&5
2990 if test x
"${ac_cv_c_itclh}" = x
; then
2991 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/..
/..
/..
/itcl
; do
2992 if test -f $i/src
/itcl.h
; then
2993 ac_cv_c_itclh
=`(cd $i/src; pwd)`
2998 if test x
"${ac_cv_c_itclh}" = x
; then
2999 ITCLHDIR
="# no Itcl private headers found"
3000 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
3002 if test x
"${ac_cv_c_itclh}" != x
; then
3003 ITCLHDIR
="-I${ac_cv_c_itclh}"
3005 # should always be here
3006 ITCLLIB
="../itcl/src/libitcl.a"
3011 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
3012 echo "configure:3013: checking for Tix private headers. srcdir=${srcdir}" >&5
3013 if test x
"${ac_cv_c_tixh}" = x
; then
3014 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
3015 if test -f $i/generic
/tix.h
; then
3016 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
3021 if test x
"${ac_cv_c_tixh}" = x
; then
3022 TIXHDIR
="# no Tix private headers found"
3023 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
3025 if test x
"${ac_cv_c_tixh}" != x
; then
3026 TIXHDIR
="-I${ac_cv_c_tixh}"
3031 # now look for tix library stuff
3033 .
${ac_cv_c_tclconfig}/tclConfig.sh
3036 tixdir
=..
/tix
/win
/tcl8.0
3039 tixdir
=..
/tix
/unix
/tk8.0
3042 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
3043 TIXLIB
="-L${tixdir} -ltix${TIXVERSION}"
3045 TIXLIB
="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`"
3050 # Include some libraries that Tcl and Tk want.
3051 if test "${enable_ide}" = "yes"; then
3052 TCL_LIBS
='$(IDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3054 TCL_LIBS
='$(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3056 # Yes, the ordering seems wrong here. But it isn't.
3057 # TK_LIBS is the list of libraries that need to be linked
3059 LIBS
="${LIBS} ${TCL_LIBS} ${TK_LIBS}"
3060 CONFIG_OBS
="${CONFIG_OBS} gdbtk.o"
3062 if test x
$gdb_cv_os_cygwin32 = xyes
; then
3063 WIN32LIBS
="${WIN32LIBS} -luser32"
3064 WIN32LDAPP
="-Wl,--subsystem,windows"
3075 # end-sanitize-gdbtk
3081 # Begin stuff to support --enable-shared
3082 # Check whether --enable-shared or --disable-shared was given.
3083 if test "${enable_shared+set}" = set; then
3084 enableval
="$enable_shared"
3085 case "${enableval}" in
3094 # If we have shared libraries, try to set rpath reasonably.
3095 if test "${shared}" = "true"; then
3098 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
3100 *-*-irix5* |
*-*-irix6*)
3101 HLDFLAGS
='-Wl,-rpath,$(libdir)'
3105 *-*-linux* |
*-pc-linux-gnu)
3106 HLDFLAGS
='-Wl,-rpath,$(libdir)'
3109 HLDFLAGS
='-R $(libdir)'
3112 HLDENV
='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
3117 # On SunOS, if the linker supports the -rpath option, use it to
3118 # prevent ../bfd and ../opcodes from being included in the run time
3122 echo 'main () { }' > conftest.c
3123 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
3124 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
3126 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
3128 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
3130 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
3132 elif test "${shared}" = "true"; then
3133 HLDFLAGS
='-Wl,-rpath=$(libdir)'
3135 HLDFLAGS
='-Wl,-rpath='
3137 rm -f conftest.t conftest.c conftest
3142 # End stuff to support --enable-shared
3144 # target_subdir is used by the testsuite to find the target libraries.
3146 if test "${host}" != "${target}"; then
3147 target_subdir
="${target_alias}/"
3152 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
3153 if test ! -f ${host_makefile_frag}; then
3154 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
3156 frags
="$frags $host_makefile_frag"
3158 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
3159 if test ! -f ${target_makefile_frag}; then
3160 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
3162 frags
="$frags $target_makefile_frag"
3169 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
3170 ' ${host_makefile_frag}`
3172 targetfile
=`sed -n '
3173 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
3174 ' ${target_makefile_frag}`
3176 # these really aren't orthogonal true/false values of the same condition,
3177 # but shells are slow enough that I like to reuse the test conditions
3179 if test "${target}" = "${host}"; then
3180 nativefile
=`sed -n '
3181 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
3182 ' ${host_makefile_frag}`
3184 # GDBserver is only useful in a "native" enviroment
3185 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
3189 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
3190 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
3191 # corresponding links. But we have to remove the xm.h files and tm.h
3192 # files anyway, e.g. when switching from "configure host" to
3198 if test "${hostfile}" != ""; then
3199 files
="${files} config/${gdb_host_cpu}/${hostfile}"
3200 links
="${links} xm.h"
3203 if test "${targetfile}" != ""; then
3204 files
="${files} config/${gdb_target_cpu}/${targetfile}"
3205 links
="${links} tm.h"
3208 if test "${nativefile}" != ""; then
3209 files
="${files} config/${gdb_host_cpu}/${nativefile}"
3210 links
="${links} nm.h"
3212 # A cross-only configuration.
3213 files
="${files} config/nm-empty.h"
3214 links
="${links} nm.h"
3216 # start-sanitize-gdbtk
3217 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3218 echo "configure:3219: checking whether ln -s works" >&5
3219 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3220 echo $ac_n "(cached) $ac_c" 1>&6
3223 if ln -s X conftestdata
2>/dev
/null
3226 ac_cv_prog_LN_S
="ln -s"
3231 LN_S
="$ac_cv_prog_LN_S"
3232 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3233 echo "$ac_t""yes" 1>&6
3235 echo "$ac_t""no" 1>&6
3238 # Make it possible to use the GUI without doing a full install
3239 if test "${enable_gdbtk}" = "yes" -a ! -d gdbtcl
; then
3240 if test "$LN_S" = "ln -s" -a ! -f gdbtcl
; then
3241 echo linking
$srcdir/gdbtcl to gdbtcl
3242 $LN_S $srcdir/gdbtcl gdbtcl
3244 echo Warning
: Unable to link
$srcdir/gdbtcl to gdbtcl. You will need to
do a
3245 echo " " make install before you are able to run the GUI.
3248 # end-sanitize-gdbtk
3252 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
3253 echo "configure:3254: checking for Cygwin32 environment" >&5
3254 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
3255 echo $ac_n "(cached) $ac_c" 1>&6
3257 cat > conftest.
$ac_ext <<EOF
3258 #line 3259 "configure"
3259 #include "confdefs.h"
3262 int main () { return __CYGWIN32__; }
3265 if { (eval echo configure
:3266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3269 echo "configure: failed program was:" >&5
3270 cat conftest.
$ac_ext >&5
3278 echo "$ac_t""$am_cv_cygwin32" 1>&6
3280 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
3282 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3283 echo "configure:3284: checking for executable suffix" >&5
3284 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3287 if test "$CYGWIN32" = yes; then
3290 cat > am_c_test.c
<< 'EOF'
3292 /* Nothing needed here
*/
3295 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
3296 am_cv_exeext
=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
3300 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
3303 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
3304 echo "$ac_t""${am_cv_exeext}" 1>&6
3307 subdirs
="$configdirs"
3310 cat > confcache
<<\EOF
3311 # This file is a shell script that caches the results of configure
3312 # tests run on this system so they can be shared between configure
3313 # scripts and configure runs. It is not useful on other systems.
3314 # If it contains results you don't want to keep, you may remove or edit it.
3316 # By default, configure uses ./config.cache as the cache file,
3317 # creating it if it does not exist already. You can give configure
3318 # the --cache-file=FILE option to use a different cache file; that is
3319 # what configure does when it calls configure scripts in
3320 # subdirectories, so they share the cache.
3321 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3322 # config.status only pays attention to the cache file if you give it the
3323 # --recheck option to rerun configure.
3326 # The following way of writing the cache mishandles newlines in values,
3327 # but we know of no workaround that is simple, portable, and efficient.
3328 # So, don't put newlines in cache variables' values.
3329 # Ultrix sh set writes to stderr and can't be redirected directly,
3330 # and sets the high bit in the cache file unless we assign to the vars.
3332 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
3334 # `set' does not quote correctly, so add quotes (double-quote substitution
3335 # turns \\\\ into \\, and sed turns \\ into \).
3337 -e "s/'/'\\\\''/g" \
3338 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3341 # `set' quotes correctly as required by POSIX, so do not add quotes.
3342 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3345 if cmp -s $cache_file confcache
; then
3348 if test -w $cache_file; then
3349 echo "updating cache $cache_file"
3350 cat confcache
> $cache_file
3352 echo "not updating unwritable cache $cache_file"
3357 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3359 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3360 # Let make expand exec_prefix.
3361 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3363 # Any assignment to VPATH causes Sun make to only execute
3364 # the first set of double-colon rules, so remove it if not needed.
3365 # If there is a colon in the path, we need to keep it.
3366 if test "x$srcdir" = x.
; then
3367 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3370 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3372 DEFS
=-DHAVE_CONFIG_H
3374 # Without the "./", some shells look in PATH for config.status.
3375 : ${CONFIG_STATUS=./config.status}
3377 echo creating
$CONFIG_STATUS
3378 rm -f $CONFIG_STATUS
3379 cat > $CONFIG_STATUS <<EOF
3381 # Generated automatically by configure.
3382 # Run this file to recreate the current configuration.
3383 # This directory was configured as follows,
3384 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3386 # $0 $ac_configure_args
3388 # Compiler output produced by configure, useful for debugging
3389 # configure, is in ./config.log if it exists.
3391 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3394 case "\$ac_option" in
3395 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3396 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3397 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3398 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3399 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
3401 -help | --help | --hel | --he | --h)
3402 echo "\$ac_cs_usage"; exit 0 ;;
3403 *) echo "\$ac_cs_usage"; exit 1 ;;
3407 ac_given_srcdir=$srcdir
3408 ac_given_INSTALL="$INSTALL"
3410 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3412 cat >> $CONFIG_STATUS <<EOF
3414 # Protect against being on the right side of a sed subst in config.status.
3415 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3416 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3420 s%@CFLAGS@%$CFLAGS%g
3421 s%@CPPFLAGS@%$CPPFLAGS%g
3422 s%@CXXFLAGS@%$CXXFLAGS%g
3424 s%@LDFLAGS@%$LDFLAGS%g
3426 s%@exec_prefix@%$exec_prefix%g
3427 s%@prefix@%$prefix%g
3428 s%@program_transform_name@%$program_transform_name%g
3429 s%@bindir@%$bindir%g
3430 s%@sbindir@%$sbindir%g
3431 s%@libexecdir@%$libexecdir%g
3432 s%@datadir@%$datadir%g
3433 s%@sysconfdir@%$sysconfdir%g
3434 s%@sharedstatedir@%$sharedstatedir%g
3435 s%@localstatedir@%$localstatedir%g
3436 s%@libdir@%$libdir%g
3437 s%@includedir@%$includedir%g
3438 s%@oldincludedir@%$oldincludedir%g
3439 s%@infodir@%$infodir%g
3440 s%@mandir@%$mandir%g
3443 s%@DLLTOOL@%$DLLTOOL%g
3445 s%@host_alias@%$host_alias%g
3446 s%@host_cpu@%$host_cpu%g
3447 s%@host_vendor@%$host_vendor%g
3448 s%@host_os@%$host_os%g
3449 s%@target@%$target%g
3450 s%@target_alias@%$target_alias%g
3451 s%@target_cpu@%$target_cpu%g
3452 s%@target_vendor@%$target_vendor%g
3453 s%@target_os@%$target_os%g
3455 s%@build_alias@%$build_alias%g
3456 s%@build_cpu@%$build_cpu%g
3457 s%@build_vendor@%$build_vendor%g
3458 s%@build_os@%$build_os%g
3459 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3460 s%@INSTALL_DATA@%$INSTALL_DATA%g
3462 s%@RANLIB@%$RANLIB%g
3465 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
3466 s%@ENABLE_IDE@%$ENABLE_IDE%g
3467 s%@WIN32LIBS@%$WIN32LIBS%g
3468 s%@WIN32LDAPP@%$WIN32LDAPP%g
3469 s%@TCL_VERSION@%$TCL_VERSION%g
3470 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
3471 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
3472 s%@TCL_CC@%$TCL_CC%g
3473 s%@TCL_DEFS@%$TCL_DEFS%g
3474 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
3475 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
3476 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
3477 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
3478 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
3479 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
3480 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
3481 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
3482 s%@TCL_RANLIB@%$TCL_RANLIB%g
3483 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
3484 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
3485 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
3486 s%@TK_VERSION@%$TK_VERSION%g
3487 s%@TK_DEFS@%$TK_DEFS%g
3488 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
3489 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
3490 s%@TK_XLIBSW@%$TK_XLIBSW%g
3491 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
3492 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
3493 s%@TCLHDIR@%$TCLHDIR%g
3494 s%@TKHDIR@%$TKHDIR%g
3495 s%@ITCLHDIR@%$ITCLHDIR%g
3496 s%@ITCLLIB@%$ITCLLIB%g
3497 s%@TIXHDIR@%$TIXHDIR%g
3498 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
3499 s%@X_CFLAGS@%$X_CFLAGS%g
3500 s%@X_LDFLAGS@%$X_LDFLAGS%g
3501 s%@X_LIBS@%$X_LIBS%g
3502 s%@TIXLIB@%$TIXLIB%g
3503 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
3504 s%@CONFIG_OBS@%$CONFIG_OBS%g
3505 s%@HLDFLAGS@%$HLDFLAGS%g
3506 s%@HLDENV@%$HLDENV%g
3507 s%@target_subdir@%$target_subdir%g
3508 /@host_makefile_frag@/r $host_makefile_frag
3509 s%@host_makefile_frag@%%g
3510 /@target_makefile_frag@/r $target_makefile_frag
3511 s%@target_makefile_frag@%%g
3514 s%@EXEEXT@%$EXEEXT%g
3515 s%@subdirs@%$subdirs%g
3520 cat >> $CONFIG_STATUS <<\EOF
3522 # Split the substitutions into bite-sized pieces for seds with
3523 # small command number limits, like on Digital OSF/1 and HP-UX.
3524 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3525 ac_file
=1 # Number of current file.
3526 ac_beg
=1 # First line for current file.
3527 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3530 while $ac_more_lines; do
3531 if test $ac_beg -gt 1; then
3532 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3534 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3536 if test ! -s conftest.s
$ac_file; then
3538 rm -f conftest.s
$ac_file
3540 if test -z "$ac_sed_cmds"; then
3541 ac_sed_cmds
="sed -f conftest.s$ac_file"
3543 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3545 ac_file
=`expr $ac_file + 1`
3547 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3550 if test -z "$ac_sed_cmds"; then
3555 cat >> $CONFIG_STATUS <<EOF
3557 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
3559 cat >> $CONFIG_STATUS <<\EOF
3560 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3561 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3563 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3564 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3565 *) ac_file_in
="${ac_file}.in" ;;
3568 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3570 # Remove last slash and all that follows it. Not all systems have dirname.
3571 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3572 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3573 # The file is in a subdirectory.
3574 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3575 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3576 # A "../" for each directory in $ac_dir_suffix.
3577 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3579 ac_dir_suffix
= ac_dots
=
3582 case "$ac_given_srcdir" in
3584 if test -z "$ac_dots"; then top_srcdir
=.
3585 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3586 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3588 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3589 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3592 case "$ac_given_INSTALL" in
3593 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3594 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3597 echo creating
"$ac_file"
3599 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3601 *Makefile
*) ac_comsub
="1i\\
3602 # $configure_input" ;;
3606 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3608 s%@configure_input@%$configure_input%g
3609 s%@srcdir@%$srcdir%g
3610 s%@top_srcdir@%$top_srcdir%g
3611 s%@INSTALL@%$INSTALL%g
3612 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3616 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3617 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3619 # ac_d sets the value in "#define NAME VALUE" lines.
3620 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3621 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3624 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3625 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3626 ac_uB
='\([ ]\)%\1#\2define\3'
3629 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3630 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3631 ac_eB
='$%\1#\2define\3'
3635 if test "${CONFIG_HEADERS+set}" != set; then
3637 cat >> $CONFIG_STATUS <<EOF
3638 CONFIG_HEADERS="config.h:config.in"
3640 cat >> $CONFIG_STATUS <<\EOF
3642 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3643 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3645 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3646 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3647 *) ac_file_in
="${ac_file}.in" ;;
3650 echo creating
$ac_file
3652 rm -f conftest.frag conftest.
in conftest.out
3653 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3654 cat $ac_file_inputs > conftest.
in
3658 # Transform confdefs.h into a sed script conftest.vals that substitutes
3659 # the proper values into config.h.in to produce config.h. And first:
3660 # Protect against being on the right side of a sed subst in config.status.
3661 # Protect against being in an unquoted here document in config.status.
3663 cat > conftest.hdr
<<\EOF
3666 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3670 sed -n -f conftest.hdr confdefs.h > conftest.vals
3673 # This sed command replaces #undef with comments. This is necessary, for
3674 # example, in the case of _POSIX_SOURCE, which is predefined and required
3675 # on some systems where configure will not decide to define it.
3676 cat >> conftest.vals <<\EOF
3677 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3680 # Break up conftest.vals because some shells have a limit on
3681 # the size of here documents, and old seds have small limits too.
3686 ac_lines=`grep -c . conftest.vals
`
3687 # grep -c gives empty output for an empty file on some AIX systems.
3688 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3689 # Write a limited-size here document to conftest.frag.
3690 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3691 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3693 sed -f conftest.frag conftest.in > conftest.out
3695 mv conftest.out conftest.in
3697 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3699 mv conftest.tail conftest.vals
3703 cat >> $CONFIG_STATUS <<\EOF
3704 rm -f conftest.frag conftest.h
3705 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3706 cat conftest.in >> conftest.h
3708 if cmp -s $ac_file conftest.h 2>/dev/null; then
3709 echo "$ac_file is unchanged"
3712 # Remove last slash and all that follows it. Not all systems have dirname.
3713 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3714 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3715 # The file is in a subdirectory.
3716 test ! -d "$ac_dir" && mkdir "$ac_dir"
3719 mv conftest.h $ac_file
3725 cat >> $CONFIG_STATUS <<EOF
3730 cat >> $CONFIG_STATUS <<\EOF
3731 srcdir=$ac_given_srcdir
3732 while test -n "$ac_sources"; do
3733 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3734 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3736 echo "linking $srcdir/$ac_source to $ac_dest"
3738 if test ! -r $srcdir/$ac_source; then
3739 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3743 # Make relative symlinks.
3744 # Remove last slash and all that follows it. Not all systems have dirname.
3745 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
3746 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3747 # The dest file is in a subdirectory.
3748 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3749 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
3750 # A "../" for each directory in $ac_dest_dir_suffix.
3751 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
3753 ac_dest_dir_suffix= ac_dots=
3757 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3758 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3761 # Make a symlink if possible; otherwise try a hard link.
3762 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3763 ln $srcdir/$ac_source $ac_dest; then :
3765 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3769 cat >> $CONFIG_STATUS <<EOF
3771 gdb_host_cpu=$gdb_host_cpu
3772 gdb_target_cpu=$gdb_target_cpu
3773 nativefile=$nativefile
3776 cat >> $CONFIG_STATUS <<\EOF
3778 if test "${nativefile}" = ""; then
3779 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
3780 < Makefile > Makefile.tem
3781 mv -f Makefile.tem Makefile
3784 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
3785 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
3786 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
3787 mv -f Makefile.tmp Makefile
3789 case x$CONFIG_HEADERS in
3790 xconfig.h:config.in)
3796 chmod +x $CONFIG_STATUS
3797 rm -fr confdefs* $ac_clean_files
3798 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3800 if test "$no_recursion" != yes; then
3802 # Remove --cache-file and --srcdir arguments so they do not pile up.
3803 ac_sub_configure_args=
3805 for ac_arg in $ac_configure_args; do
3806 if test -n "$ac_prev"; then
3811 -cache-file | --cache-file | --cache-fil | --cache-fi \
3812 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3813 ac_prev=cache_file ;;
3814 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3815 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3817 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3819 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3821 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3825 for ac_config_dir in $configdirs; do
3827 # Do not complain, so a configure script can configure whichever
3828 # parts of a large source tree are present.
3829 if test ! -d $srcdir/$ac_config_dir; then
3833 echo configuring in $ac_config_dir
3838 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3840 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3848 # A "../" for each directory in /$ac_config_dir.
3849 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3852 .) # No --srcdir option. We are building in place.
3853 ac_sub_srcdir=$srcdir ;;
3854 /*) # Absolute path.
3855 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3857 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3860 # Check for guested configure; otherwise get Cygnus style configure.
3861 if test -f $ac_sub_srcdir/configure; then
3862 ac_sub_configure=$ac_sub_srcdir/configure
3863 elif test -f $ac_sub_srcdir/configure.in; then
3864 ac_sub_configure=$ac_configure
3866 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3870 # The recursion is here.
3871 if test -n "$ac_sub_configure"; then
3873 # Make the cache file name correct relative to the subdirectory.
3874 case "$cache_file" in
3875 /*) ac_sub_cache_file=$cache_file ;;
3877 ac_sub_cache_file="$ac_dots$cache_file" ;;
3879 case "$ac_given_INSTALL" in
3880 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3881 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3884 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3885 # The eval makes quoting arguments work.
3886 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3889 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }