3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
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:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --disable-nls do not use Native Language Support"
20 --with-included-gettext use the GNU gettext library included here"
22 --with-separate-debug-dir=path Look for global separate debug info in this path [LIBDIR/debug]"
24 --disable-gdbcli disable command-line interface (CLI)"
26 --disable-gdbmi disable machine-interface (MI)"
28 --enable-tui enable full-screen terminal user interface (TUI)"
30 --enable-gdbtk enable gdbtk graphical user interface (GUI)"
32 --with-libunwind Use libunwind frame unwinding support"
34 --enable-profiling enable profiling of GDB"
36 --without-included-regex don't use included regex; this is the default
37 on systems with version 2 of the GNU C library
38 (use with caution on other system)"
40 --with-sysroot[=DIR] Search for usr/lib et al within DIR."
42 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
44 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
46 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
48 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
50 --with-tclinclude=DIR Directory where tcl private headers are"
52 --with-tkinclude=DIR Directory where tk private headers are"
54 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
56 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
58 --with-x use the X Window System"
60 --enable-sim Link gdb with simulator"
62 --enable-multi-ice build the multi-ice-gdb-server"
64 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
70 cache_file=./config.cache
79 program_transform_name=s,x,x,
88 bindir='${exec_prefix}/bin'
89 sbindir='${exec_prefix}/sbin'
90 libexecdir='${exec_prefix}/libexec'
91 datadir='${prefix}/share'
92 sysconfdir='${prefix}/etc'
93 sharedstatedir='${prefix}/com'
94 localstatedir='${prefix}/var'
95 libdir='${exec_prefix}/lib'
96 includedir='${prefix}/include'
97 oldincludedir='/usr/include'
98 infodir='${prefix}/info'
99 mandir='${prefix}/man'
101 # Initialize some other variables.
104 SHELL=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
120 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 # Accept the important Cygnus configure options, so we can diagnose typos.
128 -bindir | --bindir | --bindi | --bind | --bin | --bi)
130 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
131 bindir="$ac_optarg" ;;
133 -build | --build | --buil | --bui | --bu)
135 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
136 build="$ac_optarg" ;;
138 -cache-file | --cache-file | --cache-fil | --cache-fi \
139 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
140 ac_prev=cache_file ;;
141 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
142 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
143 cache_file="$ac_optarg" ;;
145 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
147 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
149 datadir="$ac_optarg" ;;
151 -disable-* | --disable-*)
152 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
160 -enable-* | --enable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
173 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
174 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
175 | --exec | --exe | --ex)
176 ac_prev=exec_prefix ;;
177 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
178 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
179 | --exec=* | --exe=* | --ex=*)
180 exec_prefix="$ac_optarg" ;;
182 -gas | --gas | --ga | --g)
183 # Obsolete; use --with-gas.
186 -help | --help | --hel | --he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
190 Usage: configure [options] [host]
191 Options: [defaults in brackets after descriptions]
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --site-file=FILE use FILE as the site file
198 --version print the version of autoconf that created configure
199 Directory and file names:
200 --prefix=PREFIX install architecture-independent files in PREFIX
202 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 --bindir=DIR user executables in DIR [EPREFIX/bin]
205 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
206 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
207 --datadir=DIR read-only architecture-independent data in DIR
209 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
210 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
213 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
214 --includedir=DIR C header files in DIR [PREFIX/include]
215 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
216 --infodir=DIR info documentation in DIR [PREFIX/info]
217 --mandir=DIR man documentation in DIR [PREFIX/man]
218 --srcdir=DIR find the sources in DIR [configure dir or ..]
219 --program-prefix=PREFIX prepend PREFIX to installed program names
220 --program-suffix=SUFFIX append SUFFIX to installed program names
221 --program-transform-name=PROGRAM
222 run sed PROGRAM on installed program names
226 --build=BUILD configure for building on BUILD [BUILD=HOST]
227 --host=HOST configure for HOST [guessed]
228 --target=TARGET configure for TARGET [TARGET=HOST]
229 Features and packages:
230 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
231 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
232 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
233 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
234 --x-includes=DIR X include files are in DIR
235 --x-libraries=DIR X library files are in DIR
237 if test -n "$ac_help"; then
238 echo "--enable and --with options recognized:$ac_help"
242 -host | --host | --hos | --ho)
244 -host=* | --host=* | --hos=* | --ho=*)
247 -includedir | --includedir | --includedi | --included | --include \
248 | --includ | --inclu | --incl | --inc)
249 ac_prev=includedir ;;
250 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
251 | --includ=* | --inclu=* | --incl=* | --inc=*)
252 includedir="$ac_optarg" ;;
254 -infodir | --infodir | --infodi | --infod | --info | --inf)
256 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
257 infodir="$ac_optarg" ;;
259 -libdir | --libdir | --libdi | --libd)
261 -libdir=* | --libdir=* | --libdi=* | --libd=*)
262 libdir="$ac_optarg" ;;
264 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
265 | --libexe | --libex | --libe)
266 ac_prev=libexecdir ;;
267 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
268 | --libexe=* | --libex=* | --libe=*)
269 libexecdir="$ac_optarg" ;;
271 -localstatedir | --localstatedir | --localstatedi | --localstated \
272 | --localstate | --localstat | --localsta | --localst \
273 | --locals | --local | --loca | --loc | --lo)
274 ac_prev=localstatedir ;;
275 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
276 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
277 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
278 localstatedir="$ac_optarg" ;;
280 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283 mandir="$ac_optarg" ;;
286 # Obsolete; use --without-fp.
289 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
293 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
294 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
297 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
298 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
299 | --oldin | --oldi | --old | --ol | --o)
300 ac_prev=oldincludedir ;;
301 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
302 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
303 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
304 oldincludedir="$ac_optarg" ;;
306 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
309 prefix="$ac_optarg" ;;
311 -program-prefix | --program-prefix | --program-prefi | --program-pref \
312 | --program-pre | --program-pr | --program-p)
313 ac_prev=program_prefix ;;
314 -program-prefix=* | --program-prefix=* | --program-prefi=* \
315 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
316 program_prefix="$ac_optarg" ;;
318 -program-suffix | --program-suffix | --program-suffi | --program-suff \
319 | --program-suf | --program-su | --program-s)
320 ac_prev=program_suffix ;;
321 -program-suffix=* | --program-suffix=* | --program-suffi=* \
322 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
323 program_suffix="$ac_optarg" ;;
325 -program-transform-name | --program-transform-name \
326 | --program-transform-nam | --program-transform-na \
327 | --program-transform-n | --program-transform- \
328 | --program-transform | --program-transfor \
329 | --program-transfo | --program-transf \
330 | --program-trans | --program-tran \
331 | --progr-tra | --program-tr | --program-t)
332 ac_prev=program_transform_name ;;
333 -program-transform-name=* | --program-transform-name=* \
334 | --program-transform-nam=* | --program-transform-na=* \
335 | --program-transform-n=* | --program-transform-=* \
336 | --program-transform=* | --program-transfor=* \
337 | --program-transfo=* | --program-transf=* \
338 | --program-trans=* | --program-tran=* \
339 | --progr-tra=* | --program-tr=* | --program-t=*)
340 program_transform_name="$ac_optarg" ;;
342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
343 | -silent | --silent | --silen | --sile | --sil)
346 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350 sbindir="$ac_optarg" ;;
352 -sharedstatedir | --sharedstatedir | --sharedstatedi \
353 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
354 | --sharedst | --shareds | --shared | --share | --shar \
356 ac_prev=sharedstatedir ;;
357 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
358 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
359 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361 sharedstatedir="$ac_optarg" ;;
363 -site | --site | --sit)
365 -site=* | --site=* | --sit=*)
368 -site-file | --site-file | --site-fil | --site-fi | --site-f)
370 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
371 sitefile="$ac_optarg" ;;
373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
376 srcdir="$ac_optarg" ;;
378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
379 | --syscon | --sysco | --sysc | --sys | --sy)
380 ac_prev=sysconfdir ;;
381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
383 sysconfdir="$ac_optarg" ;;
385 -target | --target | --targe | --targ | --tar | --ta | --t)
387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
388 target="$ac_optarg" ;;
390 -v | -verbose | --verbose | --verbos | --verbo | --verb)
393 -version | --version | --versio | --versi | --vers)
394 echo "configure generated by autoconf version 2.13"
398 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}='$ac_optarg'" ;;
410 -without-* | --without-*)
411 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}=no" ;;
420 # Obsolete; use --with-x.
423 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
424 | --x-incl | --x-inc | --x-in | --x-i)
425 ac_prev=x_includes ;;
426 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
427 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
428 x_includes="$ac_optarg" ;;
430 -x-libraries | --x-libraries | --x-librarie | --x-librari \
431 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
432 ac_prev=x_libraries ;;
433 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
434 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
435 x_libraries="$ac_optarg" ;;
437 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442 echo "configure: warning: $ac_option: invalid host type" 1>&2
444 if test "x$nonopt" != xNONE; then
445 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
453 if test -n "$ac_prev"; then
454 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459 # File descriptor usage:
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c) ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
489 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
491 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
496 # Only set these to C if already set. These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
501 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
503 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file=main.c
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516 ac_srcdir_defaulted=yes
517 # Try the directory containing this script, then its parent.
519 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
522 if test ! -r $srcdir/$ac_unique_file; then
526 ac_srcdir_defaulted=no
528 if test ! -r $srcdir/$ac_unique_file; then
529 if test "$ac_srcdir_defaulted" = yes; then
530 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
532 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$sitefile"; then
539 if test -z "$CONFIG_SITE"; then
540 if test "x$prefix" != xNONE; then
541 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
543 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 CONFIG_SITE="$sitefile"
549 for ac_site_file in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
560 echo "creating cache $cache_file"
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cc_cross
573 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
575 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582 ac_n= ac_c='\c' ac_t=
587 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
588 echo "configure:589: checking whether to enable maintainer-specific portions of Makefiles" >&5
589 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
590 if test "${enable_maintainer_mode+set}" = set; then
591 enableval="$enable_maintainer_mode"
592 USE_MAINTAINER_MODE=$enableval
594 USE_MAINTAINER_MODE=no
597 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
600 if test $USE_MAINTAINER_MODE = yes; then
601 MAINTAINER_MODE_TRUE=
602 MAINTAINER_MODE_FALSE='#'
604 MAINTAINER_MODE_TRUE='#'
605 MAINTAINER_MODE_FALSE=
607 MAINT=$MAINTAINER_MODE_TRUE
611 # Extract the first word of "gcc", so it can be a program name with args.
612 set dummy gcc; ac_word=$2
613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
614 echo "configure:615: checking for $ac_word" >&5
615 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
616 echo $ac_n "(cached) $ac_c" 1>&6
618 if test -n "$CC"; then
619 ac_cv_prog_CC="$CC" # Let the user override the test.
621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
623 for ac_dir in $ac_dummy; do
624 test -z "$ac_dir" && ac_dir=.
625 if test -f $ac_dir/$ac_word; then
634 if test -n "$CC"; then
635 echo "$ac_t""$CC" 1>&6
637 echo "$ac_t""no" 1>&6
640 if test -z "$CC"; then
641 # Extract the first word of "cc", so it can be a program name with args.
642 set dummy cc; ac_word=$2
643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
644 echo "configure:645: checking for $ac_word" >&5
645 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
646 echo $ac_n "(cached) $ac_c" 1>&6
648 if test -n "$CC"; then
649 ac_cv_prog_CC="$CC" # Let the user override the test.
651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
654 for ac_dir in $ac_dummy; do
655 test -z "$ac_dir" && ac_dir=.
656 if test -f $ac_dir/$ac_word; then
657 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
666 if test $ac_prog_rejected = yes; then
667 # We found a bogon in the path, so make sure we never use it.
668 set dummy $ac_cv_prog_CC
670 if test $# -gt 0; then
671 # We chose a different compiler from the bogus one.
672 # However, it has the same basename, so the bogon will be chosen
673 # first if we set CC to just the basename; use the full file name.
675 set dummy "$ac_dir/$ac_word" "$@"
683 if test -n "$CC"; then
684 echo "$ac_t""$CC" 1>&6
686 echo "$ac_t""no" 1>&6
689 if test -z "$CC"; then
692 # Extract the first word of "cl", so it can be a program name with args.
693 set dummy cl; ac_word=$2
694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
695 echo "configure:696: checking for $ac_word" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 if test -n "$CC"; then
700 ac_cv_prog_CC="$CC" # Let the user override the test.
702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
704 for ac_dir in $ac_dummy; do
705 test -z "$ac_dir" && ac_dir=.
706 if test -f $ac_dir/$ac_word; then
715 if test -n "$CC"; then
716 echo "$ac_t""$CC" 1>&6
718 echo "$ac_t""no" 1>&6
723 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
726 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
727 echo "configure:728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
731 ac_cpp='$CPP $CPPFLAGS'
732 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
733 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
734 cross_compiling=$ac_cv_prog_cc_cross
736 cat > conftest.$ac_ext << EOF
738 #line 739 "configure"
739 #include "confdefs.h"
743 if { (eval echo configure:744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
744 ac_cv_prog_cc_works=yes
745 # If we can't run a trivial program, we are probably using a cross compiler.
746 if (./conftest; exit) 2>/dev/null; then
747 ac_cv_prog_cc_cross=no
749 ac_cv_prog_cc_cross=yes
752 echo "configure: failed program was:" >&5
753 cat conftest.$ac_ext >&5
754 ac_cv_prog_cc_works=no
758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
759 ac_cpp='$CPP $CPPFLAGS'
760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
762 cross_compiling=$ac_cv_prog_cc_cross
764 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
765 if test $ac_cv_prog_cc_works = no; then
766 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
768 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
769 echo "configure:770: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
770 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
771 cross_compiling=$ac_cv_prog_cc_cross
773 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
774 echo "configure:775: checking whether we are using GNU C" >&5
775 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
778 cat > conftest.c <<EOF
783 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
790 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
792 if test $ac_cv_prog_gcc = yes; then
798 ac_test_CFLAGS="${CFLAGS+set}"
799 ac_save_CFLAGS="$CFLAGS"
801 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
802 echo "configure:803: checking whether ${CC-cc} accepts -g" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 echo 'void f(){}' > conftest.c
807 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
816 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
817 if test "$ac_test_CFLAGS" = set; then
818 CFLAGS="$ac_save_CFLAGS"
819 elif test $ac_cv_prog_cc_g = yes; then
820 if test "$GCC" = yes; then
826 if test "$GCC" = yes; then
833 cat >> confdefs.h <<\EOF
834 #define _GNU_SOURCE 1
838 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
839 echo "configure:840: checking how to run the C preprocessor" >&5
840 # On Suns, sometimes $CPP names a directory.
841 if test -n "$CPP" && test -d "$CPP"; then
844 if test -z "$CPP"; then
845 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 # This must be in double quotes, not single quotes, because CPP may get
849 # substituted into the Makefile and "${CC-cc}" will confuse make.
851 # On the NeXT, cc -E runs the code through the compiler's parser,
852 # not just through cpp.
853 cat > conftest.$ac_ext <<EOF
854 #line 855 "configure"
855 #include "confdefs.h"
859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
860 { (eval echo configure:861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
862 if test -z "$ac_err"; then
866 echo "configure: failed program was:" >&5
867 cat conftest.$ac_ext >&5
869 CPP="${CC-cc} -E -traditional-cpp"
870 cat > conftest.$ac_ext <<EOF
871 #line 872 "configure"
872 #include "confdefs.h"
876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
877 { (eval echo configure:878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
879 if test -z "$ac_err"; then
883 echo "configure: failed program was:" >&5
884 cat conftest.$ac_ext >&5
886 CPP="${CC-cc} -nologo -E"
887 cat > conftest.$ac_ext <<EOF
888 #line 889 "configure"
889 #include "confdefs.h"
893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
894 { (eval echo configure:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
896 if test -z "$ac_err"; then
900 echo "configure: failed program was:" >&5
901 cat conftest.$ac_ext >&5
910 ac_cv_prog_CPP="$CPP"
912 CPP="$ac_cv_prog_CPP"
914 ac_cv_prog_CPP="$CPP"
916 echo "$ac_t""$CPP" 1>&6
918 echo $ac_n "checking for AIX""... $ac_c" 1>&6
919 echo "configure:920: checking for AIX" >&5
920 cat > conftest.$ac_ext <<EOF
921 #line 922 "configure"
922 #include "confdefs.h"
928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
929 egrep "yes" >/dev/null 2>&1; then
931 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
932 #define _ALL_SOURCE 1
937 echo "$ac_t""no" 1>&6
942 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
943 echo "configure:944: checking for POSIXized ISC" >&5
944 if test -d /etc/conf/kconfig.d &&
945 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
947 echo "$ac_t""yes" 1>&6
948 ISC=yes # If later tests want to check for ISC.
949 cat >> confdefs.h <<\EOF
950 #define _POSIX_SOURCE 1
953 if test "$GCC" = yes; then
959 echo "$ac_t""no" 1>&6
966 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
967 echo "configure:968: checking for ${CC-cc} option to accept ANSI C" >&5
968 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 am_cv_prog_cc_stdc=no
973 # Don't try gcc -ansi; that turns off useful extensions and
974 # breaks some systems' header files.
976 # Ultrix and OSF/1 -std1
977 # HP-UX 10.20 and later -Ae
978 # HP-UX older versions -Aa -D_HPUX_SOURCE
979 # SVR4 -Xc -D__EXTENSIONS__
980 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
982 CC="$ac_save_CC $ac_arg"
983 cat > conftest.$ac_ext <<EOF
984 #line 985 "configure"
985 #include "confdefs.h"
988 #include <sys/types.h>
989 #include <sys/stat.h>
990 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
991 struct buf { int x; };
992 FILE * (*rcsopen) (struct buf *, struct stat *, int);
993 static char *e (p, i)
999 static char *f (char * (*g) (char **, int), char **p, ...)
1004 s = g (p, va_arg (v,int));
1008 int test (int i, double x);
1009 struct s1 {int (*f) (int a);};
1010 struct s2 {int (*f) (double a);};
1011 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1017 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1021 if { (eval echo configure:1022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1023 am_cv_prog_cc_stdc="$ac_arg"; break
1025 echo "configure: failed program was:" >&5
1026 cat conftest.$ac_ext >&5
1034 if test -z "$am_cv_prog_cc_stdc"; then
1035 echo "$ac_t""none needed" 1>&6
1037 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1039 case "x$am_cv_prog_cc_stdc" in
1041 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1046 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
1047 if test -f $ac_dir/install-sh; then
1049 ac_install_sh="$ac_aux_dir/install-sh -c"
1051 elif test -f $ac_dir/install.sh; then
1053 ac_install_sh="$ac_aux_dir/install.sh -c"
1057 if test -z "$ac_aux_dir"; then
1058 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1060 ac_config_guess=$ac_aux_dir/config.guess
1061 ac_config_sub=$ac_aux_dir/config.sub
1062 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1065 # Do some error checking and defaulting for the host and target type.
1067 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1070 # 1. You are not allowed to specify --host, --target, and nonopt at the
1072 # 2. Host defaults to nonopt.
1073 # 3. If nonopt is not specified, then host defaults to the current host,
1074 # as determined by config.guess.
1075 # 4. Target and build default to nonopt.
1076 # 5. If nonopt is not specified, then target and build default to host.
1078 # The aliases save the names the user supplied, while $host etc.
1079 # will get canonicalized.
1080 case $host---$target---$nonopt in
1081 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1082 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1086 # Make sure we can run config.sub.
1087 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1088 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1091 echo $ac_n "checking host system type""... $ac_c" 1>&6
1092 echo "configure:1093: checking host system type" >&5
1095 case "$host_alias" in
1099 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1100 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1102 *) host_alias=$nonopt ;;
1106 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1107 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1108 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1109 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1110 echo "$ac_t""$host" 1>&6
1112 echo $ac_n "checking target system type""... $ac_c" 1>&6
1113 echo "configure:1114: checking target system type" >&5
1115 target_alias=$target
1116 case "$target_alias" in
1119 NONE) target_alias=$host_alias ;;
1120 *) target_alias=$nonopt ;;
1124 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1125 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1126 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1127 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1128 echo "$ac_t""$target" 1>&6
1130 echo $ac_n "checking build system type""... $ac_c" 1>&6
1131 echo "configure:1132: checking build system type" >&5
1134 case "$build_alias" in
1137 NONE) build_alias=$host_alias ;;
1138 *) build_alias=$nonopt ;;
1142 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1143 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1144 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1145 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1146 echo "$ac_t""$build" 1>&6
1148 test "$host_alias" != "$target_alias" &&
1149 test "$program_prefix$program_suffix$program_transform_name" = \
1151 program_prefix=${target_alias}-
1154 # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
1155 # doesn't support cross-compilation, but the one from Autoconf 2.5x
1156 # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
1157 # deal with the lossage. Note that CY_GNU_GETTEXT currently calls
1158 # AC_PROG_RANLIB. This can be removed when we switch to Autoconf
1160 if test $host != $build; then
1161 ac_tool_prefix=${host_alias}-
1166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1169 echo "configure:1170: checking for $ac_word" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 if test -n "$RANLIB"; then
1174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1178 for ac_dir in $ac_dummy; do
1179 test -z "$ac_dir" && ac_dir=.
1180 if test -f $ac_dir/$ac_word; then
1181 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1188 RANLIB="$ac_cv_prog_RANLIB"
1189 if test -n "$RANLIB"; then
1190 echo "$ac_t""$RANLIB" 1>&6
1192 echo "$ac_t""no" 1>&6
1196 if test -z "$ac_cv_prog_RANLIB"; then
1197 if test -n "$ac_tool_prefix"; then
1198 # Extract the first word of "ranlib", so it can be a program name with args.
1199 set dummy ranlib; ac_word=$2
1200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1201 echo "configure:1202: checking for $ac_word" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 if test -n "$RANLIB"; then
1206 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1210 for ac_dir in $ac_dummy; do
1211 test -z "$ac_dir" && ac_dir=.
1212 if test -f $ac_dir/$ac_word; then
1213 ac_cv_prog_RANLIB="ranlib"
1218 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1221 RANLIB="$ac_cv_prog_RANLIB"
1222 if test -n "$RANLIB"; then
1223 echo "$ac_t""$RANLIB" 1>&6
1225 echo "$ac_t""no" 1>&6
1235 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1236 echo "configure:1237: checking whether ${MAKE-make} sets \${MAKE}" >&5
1237 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1238 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 cat > conftestmake <<\EOF
1243 @echo 'ac_maketemp="${MAKE}"'
1245 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1246 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1247 if test -n "$ac_maketemp"; then
1248 eval ac_cv_prog_make_${ac_make}_set=yes
1250 eval ac_cv_prog_make_${ac_make}_set=no
1254 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1255 echo "$ac_t""yes" 1>&6
1258 echo "$ac_t""no" 1>&6
1259 SET_MAKE="MAKE=${MAKE-make}"
1262 # Extract the first word of "ranlib", so it can be a program name with args.
1263 set dummy ranlib; ac_word=$2
1264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1265 echo "configure:1266: checking for $ac_word" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 if test -n "$RANLIB"; then
1270 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1274 for ac_dir in $ac_dummy; do
1275 test -z "$ac_dir" && ac_dir=.
1276 if test -f $ac_dir/$ac_word; then
1277 ac_cv_prog_RANLIB="ranlib"
1282 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1285 RANLIB="$ac_cv_prog_RANLIB"
1286 if test -n "$RANLIB"; then
1287 echo "$ac_t""$RANLIB" 1>&6
1289 echo "$ac_t""no" 1>&6
1292 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1293 echo "configure:1294: checking for ANSI C header files" >&5
1294 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 cat > conftest.$ac_ext <<EOF
1298 #line 1299 "configure"
1299 #include "confdefs.h"
1305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1306 { (eval echo configure:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1308 if test -z "$ac_err"; then
1310 ac_cv_header_stdc=yes
1313 echo "configure: failed program was:" >&5
1314 cat conftest.$ac_ext >&5
1316 ac_cv_header_stdc=no
1320 if test $ac_cv_header_stdc = yes; then
1321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1322 cat > conftest.$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1328 egrep "memchr" >/dev/null 2>&1; then
1332 ac_cv_header_stdc=no
1338 if test $ac_cv_header_stdc = yes; then
1339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1340 cat > conftest.$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1346 egrep "free" >/dev/null 2>&1; then
1350 ac_cv_header_stdc=no
1356 if test $ac_cv_header_stdc = yes; then
1357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1358 if test "$cross_compiling" = yes; then
1361 cat > conftest.$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1365 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1366 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1368 int main () { int i; for (i = 0; i < 256; i++)
1369 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1373 if { (eval echo configure:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1377 echo "configure: failed program was:" >&5
1378 cat conftest.$ac_ext >&5
1380 ac_cv_header_stdc=no
1388 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1389 if test $ac_cv_header_stdc = yes; then
1390 cat >> confdefs.h <<\EOF
1391 #define STDC_HEADERS 1
1396 echo $ac_n "checking for working const""... $ac_c" 1>&6
1397 echo "configure:1398: checking for working const" >&5
1398 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 cat > conftest.$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1407 /* Ultrix mips cc rejects this. */
1408 typedef int charset[2]; const charset x;
1409 /* SunOS 4.1.1 cc rejects this. */
1410 char const *const *ccp;
1412 /* NEC SVR4.0.2 mips cc rejects this. */
1413 struct point {int x, y;};
1414 static struct point const zero = {0,0};
1415 /* AIX XL C 1.02.0.0 rejects this.
1416 It does not let you subtract one const X* pointer from another in an arm
1417 of an if-expression whose if-part is not a constant expression */
1418 const char *g = "string";
1419 ccp = &g + (g ? g-g : 0);
1420 /* HPUX 7.0 cc rejects these. */
1423 ccp = (char const *const *) p;
1424 { /* SCO 3.2v4 cc rejects this. */
1426 char const *s = 0 ? (char *) 0 : (char const *) 0;
1430 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1432 const int *foo = &x[0];
1435 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1436 typedef const int *iptr;
1440 { /* AIX XL C 1.02.0.0 rejects this saying
1441 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1442 struct s { int j; const int *ap[3]; };
1443 struct s *b; b->j = 5;
1445 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1451 if { (eval echo configure:1452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1455 echo "configure: failed program was:" >&5
1456 cat conftest.$ac_ext >&5
1463 echo "$ac_t""$ac_cv_c_const" 1>&6
1464 if test $ac_cv_c_const = no; then
1465 cat >> confdefs.h <<\EOF
1471 echo $ac_n "checking for inline""... $ac_c" 1>&6
1472 echo "configure:1473: checking for inline" >&5
1473 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1477 for ac_kw in inline __inline__ __inline; do
1478 cat > conftest.$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1486 if { (eval echo configure:1487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1488 ac_cv_c_inline=$ac_kw; break
1490 echo "configure: failed program was:" >&5
1491 cat conftest.$ac_ext >&5
1498 echo "$ac_t""$ac_cv_c_inline" 1>&6
1499 case "$ac_cv_c_inline" in
1501 no) cat >> confdefs.h <<\EOF
1505 *) cat >> confdefs.h <<EOF
1506 #define inline $ac_cv_c_inline
1511 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1512 echo "configure:1513: checking for off_t" >&5
1513 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1516 cat > conftest.$ac_ext <<EOF
1517 #line 1518 "configure"
1518 #include "confdefs.h"
1519 #include <sys/types.h>
1525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1526 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1528 ac_cv_type_off_t=yes
1536 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1537 if test $ac_cv_type_off_t = no; then
1538 cat >> confdefs.h <<\EOF
1544 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1545 echo "configure:1546: checking for size_t" >&5
1546 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1549 cat > conftest.$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1552 #include <sys/types.h>
1558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1559 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1561 ac_cv_type_size_t=yes
1564 ac_cv_type_size_t=no
1569 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1570 if test $ac_cv_type_size_t = no; then
1571 cat >> confdefs.h <<\EOF
1572 #define size_t unsigned
1577 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1578 # for constant arguments. Useless!
1579 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1580 echo "configure:1581: checking for working alloca.h" >&5
1581 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 cat > conftest.$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1589 char *p = alloca(2 * sizeof(int));
1592 if { (eval echo configure:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1594 ac_cv_header_alloca_h=yes
1596 echo "configure: failed program was:" >&5
1597 cat conftest.$ac_ext >&5
1599 ac_cv_header_alloca_h=no
1604 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1605 if test $ac_cv_header_alloca_h = yes; then
1606 cat >> confdefs.h <<\EOF
1607 #define HAVE_ALLOCA_H 1
1612 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1613 echo "configure:1614: checking for alloca" >&5
1614 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 cat > conftest.$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1622 # define alloca __builtin_alloca
1625 # include <malloc.h>
1626 # define alloca _alloca
1629 # include <alloca.h>
1634 # ifndef alloca /* predefined by HP cc +Olibcalls */
1643 char *p = (char *) alloca(1);
1646 if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1648 ac_cv_func_alloca_works=yes
1650 echo "configure: failed program was:" >&5
1651 cat conftest.$ac_ext >&5
1653 ac_cv_func_alloca_works=no
1658 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1659 if test $ac_cv_func_alloca_works = yes; then
1660 cat >> confdefs.h <<\EOF
1661 #define HAVE_ALLOCA 1
1666 if test $ac_cv_func_alloca_works = no; then
1667 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1668 # that cause trouble. Some versions do not even contain alloca or
1669 # contain a buggy version. If you still want to use their alloca,
1670 # use ar to extract alloca.o from them instead of compiling alloca.c.
1671 ALLOCA=alloca.${ac_objext}
1672 cat >> confdefs.h <<\EOF
1677 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1678 echo "configure:1679: checking whether alloca needs Cray hooks" >&5
1679 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 cat > conftest.$ac_ext <<EOF
1683 #line 1684 "configure"
1684 #include "confdefs.h"
1685 #if defined(CRAY) && ! defined(CRAY2)
1692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1693 egrep "webecray" >/dev/null 2>&1; then
1704 echo "$ac_t""$ac_cv_os_cray" 1>&6
1705 if test $ac_cv_os_cray = yes; then
1706 for ac_func in _getb67 GETB67 getb67; do
1707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1708 echo "configure:1709: checking for $ac_func" >&5
1709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 cat > conftest.$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1715 /* System header to define __stub macros and hopefully few prototypes,
1716 which can conflict with char $ac_func(); below. */
1718 /* Override any gcc2 internal prototype to avoid an error. */
1719 /* We use char because int might match the return type of a gcc2
1720 builtin and then its argument prototype would still apply. */
1725 /* The GNU C library defines this for functions which it implements
1726 to always fail with ENOSYS. Some functions are actually named
1727 something starting with __ and the normal name is an alias. */
1728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1736 if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1738 eval "ac_cv_func_$ac_func=yes"
1740 echo "configure: failed program was:" >&5
1741 cat conftest.$ac_ext >&5
1743 eval "ac_cv_func_$ac_func=no"
1748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1749 echo "$ac_t""yes" 1>&6
1750 cat >> confdefs.h <<EOF
1751 #define CRAY_STACKSEG_END $ac_func
1756 echo "$ac_t""no" 1>&6
1762 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1763 echo "configure:1764: checking stack direction for C alloca" >&5
1764 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1767 if test "$cross_compiling" = yes; then
1768 ac_cv_c_stack_direction=0
1770 cat > conftest.$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1773 find_stack_direction ()
1775 static char *addr = 0;
1780 return find_stack_direction ();
1783 return (&dummy > addr) ? 1 : -1;
1787 exit (find_stack_direction() < 0);
1790 if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1792 ac_cv_c_stack_direction=1
1794 echo "configure: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1797 ac_cv_c_stack_direction=-1
1804 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1805 cat >> confdefs.h <<EOF
1806 #define STACK_DIRECTION $ac_cv_c_stack_direction
1811 for ac_hdr in unistd.h
1813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1815 echo "configure:1816: checking for $ac_hdr" >&5
1816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 cat > conftest.$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1825 { (eval echo configure:1826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1827 if test -z "$ac_err"; then
1829 eval "ac_cv_header_$ac_safe=yes"
1832 echo "configure: failed program was:" >&5
1833 cat conftest.$ac_ext >&5
1835 eval "ac_cv_header_$ac_safe=no"
1839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1840 echo "$ac_t""yes" 1>&6
1841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1842 cat >> confdefs.h <<EOF
1843 #define $ac_tr_hdr 1
1847 echo "$ac_t""no" 1>&6
1851 for ac_func in getpagesize
1853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1854 echo "configure:1855: checking for $ac_func" >&5
1855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 cat > conftest.$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1861 /* System header to define __stub macros and hopefully few prototypes,
1862 which can conflict with char $ac_func(); below. */
1864 /* Override any gcc2 internal prototype to avoid an error. */
1865 /* We use char because int might match the return type of a gcc2
1866 builtin and then its argument prototype would still apply. */
1871 /* The GNU C library defines this for functions which it implements
1872 to always fail with ENOSYS. Some functions are actually named
1873 something starting with __ and the normal name is an alias. */
1874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1882 if { (eval echo configure:1883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1884 eval "ac_cv_func_$ac_func=yes"
1886 echo "configure: failed program was:" >&5
1887 cat conftest.$ac_ext >&5
1889 eval "ac_cv_func_$ac_func=no"
1894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1895 echo "$ac_t""yes" 1>&6
1896 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1897 cat >> confdefs.h <<EOF
1898 #define $ac_tr_func 1
1902 echo "$ac_t""no" 1>&6
1906 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1907 echo "configure:1908: checking for working mmap" >&5
1908 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 if test "$cross_compiling" = yes; then
1912 ac_cv_func_mmap_fixed_mapped=no
1914 cat > conftest.$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1918 /* Thanks to Mike Haertel and Jim Avera for this test.
1919 Here is a matrix of mmap possibilities:
1920 mmap private not fixed
1921 mmap private fixed at somewhere currently unmapped
1922 mmap private fixed at somewhere already mapped
1923 mmap shared not fixed
1924 mmap shared fixed at somewhere currently unmapped
1925 mmap shared fixed at somewhere already mapped
1926 For private mappings, we should verify that changes cannot be read()
1927 back from the file, nor mmap's back from the file at a different
1928 address. (There have been systems where private was not correctly
1929 implemented like the infamous i386 svr4.0, and systems where the
1930 VM page cache was not coherent with the filesystem buffer cache
1931 like early versions of FreeBSD and possibly contemporary NetBSD.)
1932 For shared mappings, we should conversely verify that changes get
1933 propogated back to all the places they're supposed to be.
1935 Grep wants private fixed already mapped.
1936 The main things grep needs to know about mmap are:
1937 * does it exist and is it safe to write into the mmap'd area
1938 * how to use it (BSD variants) */
1939 #include <sys/types.h>
1941 #include <sys/mman.h>
1943 /* This mess was copied from the GNU getpagesize.h. */
1944 #ifndef HAVE_GETPAGESIZE
1945 # ifdef HAVE_UNISTD_H
1946 # include <unistd.h>
1949 /* Assume that all systems that can run configure have sys/param.h. */
1950 # ifndef HAVE_SYS_PARAM_H
1951 # define HAVE_SYS_PARAM_H 1
1954 # ifdef _SC_PAGESIZE
1955 # define getpagesize() sysconf(_SC_PAGESIZE)
1956 # else /* no _SC_PAGESIZE */
1957 # ifdef HAVE_SYS_PARAM_H
1958 # include <sys/param.h>
1959 # ifdef EXEC_PAGESIZE
1960 # define getpagesize() EXEC_PAGESIZE
1961 # else /* no EXEC_PAGESIZE */
1963 # define getpagesize() NBPG * CLSIZE
1966 # endif /* no CLSIZE */
1967 # else /* no NBPG */
1969 # define getpagesize() NBPC
1970 # else /* no NBPC */
1972 # define getpagesize() PAGESIZE
1973 # endif /* PAGESIZE */
1974 # endif /* no NBPC */
1975 # endif /* no NBPG */
1976 # endif /* no EXEC_PAGESIZE */
1977 # else /* no HAVE_SYS_PARAM_H */
1978 # define getpagesize() 8192 /* punt totally */
1979 # endif /* no HAVE_SYS_PARAM_H */
1980 # endif /* no _SC_PAGESIZE */
1982 #endif /* no HAVE_GETPAGESIZE */
1985 extern "C" { void *malloc(unsigned); }
1993 char *data, *data2, *data3;
1997 pagesize = getpagesize();
2000 * First, make a file with some known garbage in it.
2002 data = malloc(pagesize);
2005 for (i = 0; i < pagesize; ++i)
2006 *(data + i) = rand();
2008 fd = creat("conftestmmap", 0600);
2011 if (write(fd, data, pagesize) != pagesize)
2016 * Next, try to mmap the file at a fixed address which
2017 * already has something else allocated at it. If we can,
2018 * also make sure that we see the same garbage.
2020 fd = open("conftestmmap", O_RDWR);
2023 data2 = malloc(2 * pagesize);
2026 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2027 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2028 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2030 for (i = 0; i < pagesize; ++i)
2031 if (*(data + i) != *(data2 + i))
2035 * Finally, make sure that changes to the mapped area
2036 * do not percolate back to the file as seen by read().
2037 * (This is a bug on some variants of i386 svr4.0.)
2039 for (i = 0; i < pagesize; ++i)
2040 *(data2 + i) = *(data2 + i) + 1;
2041 data3 = malloc(pagesize);
2044 if (read(fd, data3, pagesize) != pagesize)
2046 for (i = 0; i < pagesize; ++i)
2047 if (*(data + i) != *(data3 + i))
2050 unlink("conftestmmap");
2055 if { (eval echo configure:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2057 ac_cv_func_mmap_fixed_mapped=yes
2059 echo "configure: failed program was:" >&5
2060 cat conftest.$ac_ext >&5
2062 ac_cv_func_mmap_fixed_mapped=no
2069 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2070 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2071 cat >> confdefs.h <<\EOF
2078 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2079 unistd.h values.h sys/param.h
2081 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2083 echo "configure:2084: checking for $ac_hdr" >&5
2084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 cat > conftest.$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2093 { (eval echo configure:2094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2095 if test -z "$ac_err"; then
2097 eval "ac_cv_header_$ac_safe=yes"
2100 echo "configure: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2103 eval "ac_cv_header_$ac_safe=no"
2107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2108 echo "$ac_t""yes" 1>&6
2109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2110 cat >> confdefs.h <<EOF
2111 #define $ac_tr_hdr 1
2115 echo "$ac_t""no" 1>&6
2119 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2120 __argz_count __argz_stringify __argz_next
2122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_func" >&5
2124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2127 cat > conftest.$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2130 /* System header to define __stub macros and hopefully few prototypes,
2131 which can conflict with char $ac_func(); below. */
2133 /* Override any gcc2 internal prototype to avoid an error. */
2134 /* We use char because int might match the return type of a gcc2
2135 builtin and then its argument prototype would still apply. */
2140 /* The GNU C library defines this for functions which it implements
2141 to always fail with ENOSYS. Some functions are actually named
2142 something starting with __ and the normal name is an alias. */
2143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2151 if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2153 eval "ac_cv_func_$ac_func=yes"
2155 echo "configure: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2158 eval "ac_cv_func_$ac_func=no"
2163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2164 echo "$ac_t""yes" 1>&6
2165 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2166 cat >> confdefs.h <<EOF
2167 #define $ac_tr_func 1
2171 echo "$ac_t""no" 1>&6
2176 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2177 for ac_func in stpcpy
2179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2180 echo "configure:2181: checking for $ac_func" >&5
2181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 cat > conftest.$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2187 /* System header to define __stub macros and hopefully few prototypes,
2188 which can conflict with char $ac_func(); below. */
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2197 /* The GNU C library defines this for functions which it implements
2198 to always fail with ENOSYS. Some functions are actually named
2199 something starting with __ and the normal name is an alias. */
2200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2208 if { (eval echo configure:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2210 eval "ac_cv_func_$ac_func=yes"
2212 echo "configure: failed program was:" >&5
2213 cat conftest.$ac_ext >&5
2215 eval "ac_cv_func_$ac_func=no"
2220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2221 echo "$ac_t""yes" 1>&6
2222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2223 cat >> confdefs.h <<EOF
2224 #define $ac_tr_func 1
2228 echo "$ac_t""no" 1>&6
2233 if test "${ac_cv_func_stpcpy}" = "yes"; then
2234 cat >> confdefs.h <<\EOF
2235 #define HAVE_STPCPY 1
2240 if test $ac_cv_header_locale_h = yes; then
2241 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2242 echo "configure:2243: checking for LC_MESSAGES" >&5
2243 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2246 cat > conftest.$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2254 if { (eval echo configure:2255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2256 am_cv_val_LC_MESSAGES=yes
2258 echo "configure: failed program was:" >&5
2259 cat conftest.$ac_ext >&5
2261 am_cv_val_LC_MESSAGES=no
2266 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2267 if test $am_cv_val_LC_MESSAGES = yes; then
2268 cat >> confdefs.h <<\EOF
2269 #define HAVE_LC_MESSAGES 1
2274 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2275 echo "configure:2276: checking whether NLS is requested" >&5
2276 # Check whether --enable-nls or --disable-nls was given.
2277 if test "${enable_nls+set}" = set; then
2278 enableval="$enable_nls"
2284 echo "$ac_t""$USE_NLS" 1>&6
2287 USE_INCLUDED_LIBINTL=no
2289 if test "$USE_NLS" = "yes"; then
2290 cat >> confdefs.h <<\EOF
2291 #define ENABLE_NLS 1
2294 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2295 echo "configure:2296: checking whether included gettext is requested" >&5
2296 # Check whether --with-included-gettext or --without-included-gettext was given.
2297 if test "${with_included_gettext+set}" = set; then
2298 withval="$with_included_gettext"
2299 nls_cv_force_use_gnu_gettext=$withval
2301 nls_cv_force_use_gnu_gettext=no
2304 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2306 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2307 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2309 nls_cv_header_libgt=
2312 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2313 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2314 echo "configure:2315: checking for libintl.h" >&5
2315 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2321 #include <libintl.h>
2323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2324 { (eval echo configure:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2326 if test -z "$ac_err"; then
2328 eval "ac_cv_header_$ac_safe=yes"
2331 echo "configure: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2334 eval "ac_cv_header_$ac_safe=no"
2338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2339 echo "$ac_t""yes" 1>&6
2340 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2341 echo "configure:2342: checking for gettext in libc" >&5
2342 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2345 cat > conftest.$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2348 #include <libintl.h>
2350 return (int) gettext ("")
2353 if { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2355 gt_cv_func_gettext_libc=yes
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2360 gt_cv_func_gettext_libc=no
2365 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2367 if test "$gt_cv_func_gettext_libc" != "yes"; then
2368 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2369 echo "configure:2370: checking for bindtextdomain in -lintl" >&5
2370 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 ac_save_LIBS="$LIBS"
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382 char bindtextdomain();
2388 if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2390 eval "ac_cv_lib_$ac_lib_var=yes"
2392 echo "configure: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2395 eval "ac_cv_lib_$ac_lib_var=no"
2398 LIBS="$ac_save_LIBS"
2401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2404 echo "configure:2405: checking for gettext in libintl" >&5
2405 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 cat > conftest.$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2413 return (int) gettext ("")
2416 if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2418 gt_cv_func_gettext_libintl=yes
2420 echo "configure: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2423 gt_cv_func_gettext_libintl=no
2428 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2430 echo "$ac_t""no" 1>&6
2435 if test "$gt_cv_func_gettext_libc" = "yes" \
2436 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2437 cat >> confdefs.h <<\EOF
2438 #define HAVE_GETTEXT 1
2441 # Extract the first word of "msgfmt", so it can be a program name with args.
2442 set dummy msgfmt; ac_word=$2
2443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2444 echo "configure:2445: checking for $ac_word" >&5
2445 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2450 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2454 for ac_dir in $PATH; do
2455 test -z "$ac_dir" && ac_dir=.
2456 if test -f $ac_dir/$ac_word; then
2457 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2458 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2464 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2468 MSGFMT="$ac_cv_path_MSGFMT"
2469 if test -n "$MSGFMT"; then
2470 echo "$ac_t""$MSGFMT" 1>&6
2472 echo "$ac_t""no" 1>&6
2474 if test "$MSGFMT" != "no"; then
2475 for ac_func in dcgettext
2477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_func" >&5
2479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 /* System header to define __stub macros and hopefully few prototypes,
2486 which can conflict with char $ac_func(); below. */
2488 /* Override any gcc2 internal prototype to avoid an error. */
2489 /* We use char because int might match the return type of a gcc2
2490 builtin and then its argument prototype would still apply. */
2495 /* The GNU C library defines this for functions which it implements
2496 to always fail with ENOSYS. Some functions are actually named
2497 something starting with __ and the normal name is an alias. */
2498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2506 if { (eval echo configure:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2508 eval "ac_cv_func_$ac_func=yes"
2510 echo "configure: failed program was:" >&5
2511 cat conftest.$ac_ext >&5
2513 eval "ac_cv_func_$ac_func=no"
2518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2519 echo "$ac_t""yes" 1>&6
2520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2521 cat >> confdefs.h <<EOF
2522 #define $ac_tr_func 1
2526 echo "$ac_t""no" 1>&6
2530 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2531 set dummy gmsgfmt; ac_word=$2
2532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2533 echo "configure:2534: checking for $ac_word" >&5
2534 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2539 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2542 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2547 for ac_dir in $ac_dummy; do
2548 test -z "$ac_dir" && ac_dir=.
2549 if test -f $ac_dir/$ac_word; then
2550 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2555 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2559 GMSGFMT="$ac_cv_path_GMSGFMT"
2560 if test -n "$GMSGFMT"; then
2561 echo "$ac_t""$GMSGFMT" 1>&6
2563 echo "$ac_t""no" 1>&6
2566 # Extract the first word of "xgettext", so it can be a program name with args.
2567 set dummy xgettext; ac_word=$2
2568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2569 echo "configure:2570: checking for $ac_word" >&5
2570 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2575 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2579 for ac_dir in $PATH; do
2580 test -z "$ac_dir" && ac_dir=.
2581 if test -f $ac_dir/$ac_word; then
2582 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2583 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2589 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2593 XGETTEXT="$ac_cv_path_XGETTEXT"
2594 if test -n "$XGETTEXT"; then
2595 echo "$ac_t""$XGETTEXT" 1>&6
2597 echo "$ac_t""no" 1>&6
2600 cat > conftest.$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2605 extern int _nl_msg_cat_cntr;
2606 return _nl_msg_cat_cntr
2609 if { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2614 echo "configure: failed program was:" >&5
2615 cat conftest.$ac_ext >&5
2626 echo "$ac_t""no" 1>&6
2631 if test "$CATOBJEXT" = "NONE"; then
2632 nls_cv_use_gnu_gettext=yes
2636 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2637 INTLOBJS="\$(GETTOBJS)"
2638 # Extract the first word of "msgfmt", so it can be a program name with args.
2639 set dummy msgfmt; ac_word=$2
2640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2641 echo "configure:2642: checking for $ac_word" >&5
2642 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2647 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2651 for ac_dir in $PATH; do
2652 test -z "$ac_dir" && ac_dir=.
2653 if test -f $ac_dir/$ac_word; then
2654 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2655 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2661 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2665 MSGFMT="$ac_cv_path_MSGFMT"
2666 if test -n "$MSGFMT"; then
2667 echo "$ac_t""$MSGFMT" 1>&6
2669 echo "$ac_t""no" 1>&6
2672 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2673 set dummy gmsgfmt; ac_word=$2
2674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2675 echo "configure:2676: checking for $ac_word" >&5
2676 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2681 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2684 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2689 for ac_dir in $ac_dummy; do
2690 test -z "$ac_dir" && ac_dir=.
2691 if test -f $ac_dir/$ac_word; then
2692 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2697 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2701 GMSGFMT="$ac_cv_path_GMSGFMT"
2702 if test -n "$GMSGFMT"; then
2703 echo "$ac_t""$GMSGFMT" 1>&6
2705 echo "$ac_t""no" 1>&6
2708 # Extract the first word of "xgettext", so it can be a program name with args.
2709 set dummy xgettext; ac_word=$2
2710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $ac_word" >&5
2712 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2717 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2721 for ac_dir in $PATH; do
2722 test -z "$ac_dir" && ac_dir=.
2723 if test -f $ac_dir/$ac_word; then
2724 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2725 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2731 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2735 XGETTEXT="$ac_cv_path_XGETTEXT"
2736 if test -n "$XGETTEXT"; then
2737 echo "$ac_t""$XGETTEXT" 1>&6
2739 echo "$ac_t""no" 1>&6
2743 USE_INCLUDED_LIBINTL=yes
2747 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2749 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2750 nls_cv_header_intl=libintl.h
2751 nls_cv_header_libgt=libgettext.h
2754 if test "$XGETTEXT" != ":"; then
2755 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2758 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2763 # We need to process the po/ directory.
2767 nls_cv_header_intl=libintl.h
2768 nls_cv_header_libgt=libgettext.h
2771 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2772 # because some of the sources are only built for this goal.
2773 if test "$PACKAGE" = gettext; then
2775 USE_INCLUDED_LIBINTL=yes
2778 for lang in $ALL_LINGUAS; do
2779 GMOFILES="$GMOFILES $lang.gmo"
2780 POFILES="$POFILES $lang.po"
2796 if test "x$CATOBJEXT" != "x"; then
2797 if test "x$ALL_LINGUAS" = "x"; then
2800 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2801 echo "configure:2802: checking for catalogs to be installed" >&5
2803 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2804 case "$ALL_LINGUAS" in
2805 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2808 LINGUAS=$NEW_LINGUAS
2809 echo "$ac_t""$LINGUAS" 1>&6
2812 if test -n "$LINGUAS"; then
2813 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2817 if test $ac_cv_header_locale_h = yes; then
2818 INCLUDE_LOCALE_H="#include <locale.h>"
2821 /* The system does not provide the header <locale.h>. Take care yourself. */"
2825 if test -f $srcdir/po2tbl.sed.in; then
2826 if test "$CATOBJEXT" = ".cat"; then
2827 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2828 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2829 echo "configure:2830: checking for linux/version.h" >&5
2830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2833 cat > conftest.$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 #include <linux/version.h>
2838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2839 { (eval echo configure:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2841 if test -z "$ac_err"; then
2843 eval "ac_cv_header_$ac_safe=yes"
2846 echo "configure: failed program was:" >&5
2847 cat conftest.$ac_ext >&5
2849 eval "ac_cv_header_$ac_safe=no"
2853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2854 echo "$ac_t""yes" 1>&6
2857 echo "$ac_t""no" 1>&6
2862 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2864 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2865 $srcdir/po2tbl.sed.in > po2tbl.sed
2868 if test "$PACKAGE" = "gettext"; then
2878 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2884 if test -f $srcdir/po/POTFILES.in; then
2885 test -d po || mkdir po
2886 if test "x$srcdir" != "x."; then
2887 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2888 posrcprefix="$srcdir/"
2890 posrcprefix="../$srcdir/"
2896 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2897 < $srcdir/po/POTFILES.in > po/POTFILES
2900 cat >> confdefs.h <<\EOF
2901 #define PACKAGE "gdb"
2905 debugdir=${libdir}/debug
2907 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
2908 if test "${with_separate_debug_dir+set}" = set; then
2909 withval="$with_separate_debug_dir"
2910 debugdir="${withval}"
2915 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
2916 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2917 ac_define_dir=`eval echo $debugdir`
2918 ac_define_dir=`eval echo $ac_define_dir`
2919 cat >> confdefs.h <<EOF
2920 #define DEBUGDIR "$ac_define_dir"
2924 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
2936 subdirs="doc testsuite"
2940 . $srcdir/configure.host
2942 . $srcdir/configure.tgt
2944 # Fetch the default architecture and default target vector from BFD.
2945 targ=$target; . $srcdir/../bfd/config.bfd
2947 # We only want the first architecture, so strip off the others if
2948 # there is more than one.
2949 targ_archs=`echo $targ_archs | sed 's/ .*//'`
2951 if test "x$targ_archs" != x; then
2952 cat >> confdefs.h <<EOF
2953 #define DEFAULT_BFD_ARCH $targ_archs
2957 if test "x$targ_defvec" != x; then
2958 cat >> confdefs.h <<EOF
2959 #define DEFAULT_BFD_VEC $targ_defvec
2964 if test "$program_transform_name" = s,x,x,; then
2965 program_transform_name=
2967 # Double any \ or $. echo might interpret backslashes.
2968 cat <<\EOF_SED > conftestsed
2969 s,\\,\\\\,g; s,\$,$$,g
2971 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2974 test "$program_prefix" != NONE &&
2975 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2976 # Use a double $ so make ignores it.
2977 test "$program_suffix" != NONE &&
2978 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2980 # sed with no file args requires a program.
2981 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2984 # The CLI cannot be disabled yet, but may be in the future.
2987 # Check whether --enable-gdbcli or --disable-gdbcli was given.
2988 if test "${enable_gdbcli+set}" = set; then
2989 enableval="$enable_gdbcli"
2994 { echo "configure: error: the command-line interface cannot be disabled yet" 1>&2; exit 1; } ;;
2996 { echo "configure: error: bad value $enableval for --enable-gdbcli" 1>&2; exit 1; } ;;
3002 if test x"$enable_gdbcli" = xyes; then
3003 if test -d $srcdir/cli; then
3004 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3005 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3006 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3007 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3012 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3013 if test "${enable_gdbmi+set}" = set; then
3014 enableval="$enable_gdbmi"
3019 { echo "configure: error: bad value $enableval for --enable-gdbmi" 1>&2; exit 1; } ;;
3025 if test x"$enable_gdbmi" = xyes; then
3026 if test -d $srcdir/mi; then
3027 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3028 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3029 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3030 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3034 # FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
3035 # Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
3036 # Makefile fragments. That's why we need to have `Hcurses' before
3037 # `curses'. I don't see why we should use HP curses if a more
3038 # standard curses is available, except that according to HP's
3039 # documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
3040 # HP-UX 10.10 and 10.20.
3043 echo $ac_n "checking for library containing initscr""... $ac_c" 1>&6
3044 echo "configure:3045: checking for library containing initscr" >&5
3045 if eval "test \"`echo '$''{'ac_cv_search_initscr'+set}'`\" = set"; then
3046 echo $ac_n "(cached) $ac_c" 1>&6
3048 ac_func_search_save_LIBS="$LIBS"
3049 ac_cv_search_initscr="no"
3050 cat > conftest.$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3053 /* Override any gcc2 internal prototype to avoid an error. */
3054 /* We use char because int might match the return type of a gcc2
3055 builtin and then its argument prototype would still apply. */
3062 if { (eval echo configure:3063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3064 ac_cv_search_initscr="none required"
3066 echo "configure: failed program was:" >&5
3067 cat conftest.$ac_ext >&5
3070 test "$ac_cv_search_initscr" = "no" && for i in ncurses Hcurses curses pdcurses; do
3071 LIBS="-l$i $ac_func_search_save_LIBS"
3072 cat > conftest.$ac_ext <<EOF
3073 #line 3074 "configure"
3074 #include "confdefs.h"
3075 /* Override any gcc2 internal prototype to avoid an error. */
3076 /* We use char because int might match the return type of a gcc2
3077 builtin and then its argument prototype would still apply. */
3084 if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3086 ac_cv_search_initscr="-l$i"
3089 echo "configure: failed program was:" >&5
3090 cat conftest.$ac_ext >&5
3094 LIBS="$ac_func_search_save_LIBS"
3097 echo "$ac_t""$ac_cv_search_initscr" 1>&6
3098 if test "$ac_cv_search_initscr" != "no"; then
3099 test "$ac_cv_search_initscr" = "none required" || LIBS="$ac_cv_search_initscr $LIBS"
3102 echo "configure: warning: no curses library found" 1>&2
3105 # Check whether the wborder function is provided by the curses
3106 # library detected above. In certain implementations such as
3107 # the HP/UX Hcurses for instance, this function is provided by an
3108 # additional library. So if we did not find this function inside
3109 # the curses library, try some alternate libraries we know might
3112 echo $ac_n "checking for library containing wborder""... $ac_c" 1>&6
3113 echo "configure:3114: checking for library containing wborder" >&5
3114 if eval "test \"`echo '$''{'ac_cv_search_wborder'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3117 ac_func_search_save_LIBS="$LIBS"
3118 ac_cv_search_wborder="no"
3119 cat > conftest.$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3122 /* Override any gcc2 internal prototype to avoid an error. */
3123 /* We use char because int might match the return type of a gcc2
3124 builtin and then its argument prototype would still apply. */
3131 if { (eval echo configure:3132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3133 ac_cv_search_wborder="none required"
3135 echo "configure: failed program was:" >&5
3136 cat conftest.$ac_ext >&5
3139 test "$ac_cv_search_wborder" = "no" && for i in cur_colr; do
3140 LIBS="-l$i $ac_func_search_save_LIBS"
3141 cat > conftest.$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3144 /* Override any gcc2 internal prototype to avoid an error. */
3145 /* We use char because int might match the return type of a gcc2
3146 builtin and then its argument prototype would still apply. */
3153 if { (eval echo configure:3154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3155 ac_cv_search_wborder="-l$i"
3158 echo "configure: failed program was:" >&5
3159 cat conftest.$ac_ext >&5
3163 LIBS="$ac_func_search_save_LIBS"
3166 echo "$ac_t""$ac_cv_search_wborder" 1>&6
3167 if test "$ac_cv_search_wborder" != "no"; then
3168 test "$ac_cv_search_wborder" = "none required" || LIBS="$ac_cv_search_wborder $LIBS"
3171 echo "configure: warning: wborder function not found, tui will be disabled" 1>&2
3175 # Check whether --enable-tui or --disable-tui was given.
3176 if test "${enable_tui+set}" = set; then
3177 enableval="$enable_tui"
3182 { echo "configure: error: bad value $enableval for --enable-tui" 1>&2; exit 1; } ;;
3188 if test x"$enable_tui" = xyes; then
3189 if test -d $srcdir/tui; then
3190 if test "$ac_cv_search_initscr" != no -a "$ac_cv_search_wborder" != no; then
3191 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
3192 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
3193 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
3194 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
3195 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
3196 CONFIG_ALL="${CONFIG_ALL} all-tui"
3197 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
3198 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
3199 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
3205 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3206 if test "${enable_gdbtk+set}" = set; then
3207 enableval="$enable_gdbtk"
3212 { echo "configure: error: bad value $enableval for --enable-gdbtk" 1>&2; exit 1; } ;;
3215 if test -d $srcdir/gdbtk; then
3222 # We unconditionally disable gdbtk tests on selected platforms.
3225 echo "configure: warning: gdbtk isn't supported on $host; disabling" 1>&2
3229 # Libunwind support.
3230 # Check whether --with-libunwind or --without-libunwind was given.
3231 if test "${with_libunwind+set}" = set; then
3232 withval="$with_libunwind"
3233 case "${withval}" in
3234 yes) enable_libunwind=yes ;;
3235 no) enable_libunwind=no ;;
3236 *) { echo "configure: error: bad value ${withval} for GDB with-libunwind option" 1>&2; exit 1; } ;;
3240 for ac_hdr in libunwind.h
3242 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3244 echo "configure:3245: checking for $ac_hdr" >&5
3245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3246 echo $ac_n "(cached) $ac_c" 1>&6
3248 cat > conftest.$ac_ext <<EOF
3249 #line 3250 "configure"
3250 #include "confdefs.h"
3253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3254 { (eval echo configure:3255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3256 if test -z "$ac_err"; then
3258 eval "ac_cv_header_$ac_safe=yes"
3261 echo "configure: failed program was:" >&5
3262 cat conftest.$ac_ext >&5
3264 eval "ac_cv_header_$ac_safe=no"
3268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3269 echo "$ac_t""yes" 1>&6
3270 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3271 cat >> confdefs.h <<EOF
3272 #define $ac_tr_hdr 1
3276 echo "$ac_t""no" 1>&6
3280 for ac_hdr in libunwind-ia64.h
3282 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3283 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3284 echo "configure:3285: checking for $ac_hdr" >&5
3285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3288 cat > conftest.$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3294 { (eval echo configure:3295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3296 if test -z "$ac_err"; then
3298 eval "ac_cv_header_$ac_safe=yes"
3301 echo "configure: failed program was:" >&5
3302 cat conftest.$ac_ext >&5
3304 eval "ac_cv_header_$ac_safe=no"
3308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3309 echo "$ac_t""yes" 1>&6
3310 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3311 cat >> confdefs.h <<EOF
3312 #define $ac_tr_hdr 1
3316 echo "$ac_t""no" 1>&6
3320 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3321 enable_libunwind=yes;
3327 if test x"$enable_libunwind" = xyes; then
3328 for ac_hdr in libunwind.h
3330 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3332 echo "configure:3333: checking for $ac_hdr" >&5
3333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3334 echo $ac_n "(cached) $ac_c" 1>&6
3336 cat > conftest.$ac_ext <<EOF
3337 #line 3338 "configure"
3338 #include "confdefs.h"
3341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3342 { (eval echo configure:3343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3344 if test -z "$ac_err"; then
3346 eval "ac_cv_header_$ac_safe=yes"
3349 echo "configure: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3352 eval "ac_cv_header_$ac_safe=no"
3356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3357 echo "$ac_t""yes" 1>&6
3358 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3359 cat >> confdefs.h <<EOF
3360 #define $ac_tr_hdr 1
3364 echo "$ac_t""no" 1>&6
3368 for ac_hdr in libunwind-ia64.h
3370 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3372 echo "configure:3373: checking for $ac_hdr" >&5
3373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3374 echo $ac_n "(cached) $ac_c" 1>&6
3376 cat > conftest.$ac_ext <<EOF
3377 #line 3378 "configure"
3378 #include "confdefs.h"
3381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3382 { (eval echo configure:3383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3384 if test -z "$ac_err"; then
3386 eval "ac_cv_header_$ac_safe=yes"
3389 echo "configure: failed program was:" >&5
3390 cat conftest.$ac_ext >&5
3392 eval "ac_cv_header_$ac_safe=no"
3396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3397 echo "$ac_t""yes" 1>&6
3398 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3399 cat >> confdefs.h <<EOF
3400 #define $ac_tr_hdr 1
3404 echo "$ac_t""no" 1>&6
3408 cat >> confdefs.h <<\EOF
3409 #define HAVE_LIBUNWIND 1
3412 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
3413 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
3414 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
3417 # Profiling support.
3418 # Check whether --enable-profiling or --disable-profiling was given.
3419 if test "${enable_profiling+set}" = set; then
3420 enableval="$enable_profiling"
3425 { echo "configure: error: bad value $enableval for --enable-profile" 1>&2; exit 1; } ;;
3432 for ac_func in monstartup _mcleanup
3434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3435 echo "configure:3436: checking for $ac_func" >&5
3436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3437 echo $ac_n "(cached) $ac_c" 1>&6
3439 cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 /* System header to define __stub macros and hopefully few prototypes,
3443 which can conflict with char $ac_func(); below. */
3445 /* Override any gcc2 internal prototype to avoid an error. */
3446 /* We use char because int might match the return type of a gcc2
3447 builtin and then its argument prototype would still apply. */
3452 /* The GNU C library defines this for functions which it implements
3453 to always fail with ENOSYS. Some functions are actually named
3454 something starting with __ and the normal name is an alias. */
3455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3463 if { (eval echo configure:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3465 eval "ac_cv_func_$ac_func=yes"
3467 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3470 eval "ac_cv_func_$ac_func=no"
3475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3476 echo "$ac_t""yes" 1>&6
3477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3478 cat >> confdefs.h <<EOF
3479 #define $ac_tr_func 1
3483 echo "$ac_t""no" 1>&6
3487 echo $ac_n "checking for _etext""... $ac_c" 1>&6
3488 echo "configure:3489: checking for _etext" >&5
3489 if eval "test \"`echo '$''{'ac_cv_var__etext'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3492 cat > conftest.$ac_ext <<EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3502 if { (eval echo configure:3503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3504 ac_cv_var__etext=yes
3506 echo "configure: failed program was:" >&5
3507 cat conftest.$ac_ext >&5
3514 echo "$ac_t""$ac_cv_var__etext" 1>&6
3515 if test $ac_cv_var__etext = yes; then
3516 cat >> confdefs.h <<\EOF
3517 #define HAVE__ETEXT 1
3521 if test "$enable_profiling" = yes ; then
3522 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
3523 { echo "configure: error: --enable-profiling requires monstartup and _mcleanup" 1>&2; exit 1; }
3526 OLD_CFLAGS="$CFLAGS"
3527 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
3529 echo $ac_n "checking whether $CC supports -pg""... $ac_c" 1>&6
3530 echo "configure:3531: checking whether $CC supports -pg" >&5
3531 if eval "test \"`echo '$''{'ac_cv_cc_supports_pg'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3534 cat > conftest.$ac_ext <<EOF
3535 #line 3536 "configure"
3536 #include "confdefs.h"
3542 if { (eval echo configure:3543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3544 ac_cv_cc_supports_pg=yes
3546 echo "configure: failed program was:" >&5
3547 cat conftest.$ac_ext >&5
3549 ac_cv_cc_supports_pg=no
3554 echo "$ac_t""$ac_cv_cc_supports_pg" 1>&6
3556 if test $ac_cv_cc_supports_pg = no; then
3557 { echo "configure: error: --enable-profiling requires a compiler which supports -pg" 1>&2; exit 1; }
3560 CFLAGS="$OLD_CFLAGS"
3563 # --------------------- #
3564 # Checks for programs. #
3565 # --------------------- #
3567 for ac_prog in mawk gawk nawk awk
3569 # Extract the first word of "$ac_prog", so it can be a program name with args.
3570 set dummy $ac_prog; ac_word=$2
3571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3572 echo "configure:3573: checking for $ac_word" >&5
3573 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3574 echo $ac_n "(cached) $ac_c" 1>&6
3576 if test -n "$AWK"; then
3577 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3581 for ac_dir in $ac_dummy; do
3582 test -z "$ac_dir" && ac_dir=.
3583 if test -f $ac_dir/$ac_word; then
3584 ac_cv_prog_AWK="$ac_prog"
3591 AWK="$ac_cv_prog_AWK"
3592 if test -n "$AWK"; then
3593 echo "$ac_t""$AWK" 1>&6
3595 echo "$ac_t""no" 1>&6
3598 test -n "$AWK" && break
3601 # Find a good install program. We prefer a C program (faster),
3602 # so one script is as good as another. But avoid the broken or
3603 # incompatible versions:
3604 # SysV /etc/install, /usr/sbin/install
3605 # SunOS /usr/etc/install
3606 # IRIX /sbin/install
3608 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3609 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3610 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3611 # ./install, which can be erroneously created by make from ./install.sh.
3612 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3613 echo "configure:3614: checking for a BSD compatible install" >&5
3614 if test -z "$INSTALL"; then
3615 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3619 for ac_dir in $PATH; do
3620 # Account for people who put trailing slashes in PATH elements.
3622 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3624 # OSF1 and SCO ODT 3.0 have their own names for install.
3625 # Don't use installbsd from OSF since it installs stuff as root
3627 for ac_prog in ginstall scoinst install; do
3628 if test -f $ac_dir/$ac_prog; then
3629 if test $ac_prog = install &&
3630 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3631 # AIX install. It has an incompatible calling convention.
3634 ac_cv_path_install="$ac_dir/$ac_prog -c"
3645 if test "${ac_cv_path_install+set}" = set; then
3646 INSTALL="$ac_cv_path_install"
3648 # As a last resort, use the slow shell script. We don't cache a
3649 # path for INSTALL within a source directory, because that will
3650 # break other packages using the cache if that directory is
3651 # removed, or if the path is relative.
3652 INSTALL="$ac_install_sh"
3655 echo "$ac_t""$INSTALL" 1>&6
3657 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3658 # It thinks the first close brace ends the variable substitution.
3659 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3661 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3663 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3665 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3666 echo "configure:3667: checking whether ln -s works" >&5
3667 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3671 if ln -s X conftestdata 2>/dev/null
3674 ac_cv_prog_LN_S="ln -s"
3679 LN_S="$ac_cv_prog_LN_S"
3680 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3681 echo "$ac_t""yes" 1>&6
3683 echo "$ac_t""no" 1>&6
3686 # Extract the first word of "ranlib", so it can be a program name with args.
3687 set dummy ranlib; ac_word=$2
3688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3689 echo "configure:3690: checking for $ac_word" >&5
3690 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3693 if test -n "$RANLIB"; then
3694 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3698 for ac_dir in $ac_dummy; do
3699 test -z "$ac_dir" && ac_dir=.
3700 if test -f $ac_dir/$ac_word; then
3701 ac_cv_prog_RANLIB="ranlib"
3706 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3709 RANLIB="$ac_cv_prog_RANLIB"
3710 if test -n "$RANLIB"; then
3711 echo "$ac_t""$RANLIB" 1>&6
3713 echo "$ac_t""no" 1>&6
3716 for ac_prog in 'bison -y' byacc
3718 # Extract the first word of "$ac_prog", so it can be a program name with args.
3719 set dummy $ac_prog; ac_word=$2
3720 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3721 echo "configure:3722: checking for $ac_word" >&5
3722 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6
3725 if test -n "$YACC"; then
3726 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3730 for ac_dir in $ac_dummy; do
3731 test -z "$ac_dir" && ac_dir=.
3732 if test -f $ac_dir/$ac_word; then
3733 ac_cv_prog_YACC="$ac_prog"
3740 YACC="$ac_cv_prog_YACC"
3741 if test -n "$YACC"; then
3742 echo "$ac_t""$YACC" 1>&6
3744 echo "$ac_t""no" 1>&6
3747 test -n "$YACC" && break
3749 test -n "$YACC" || YACC="yacc"
3752 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3753 set dummy ${ac_tool_prefix}ar; ac_word=$2
3754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3755 echo "configure:3756: checking for $ac_word" >&5
3756 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3757 echo $ac_n "(cached) $ac_c" 1>&6
3759 if test -n "$AR"; then
3760 ac_cv_prog_AR="$AR" # Let the user override the test.
3762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3764 for ac_dir in $ac_dummy; do
3765 test -z "$ac_dir" && ac_dir=.
3766 if test -f $ac_dir/$ac_word; then
3767 ac_cv_prog_AR="${ac_tool_prefix}ar"
3772 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3776 if test -n "$AR"; then
3777 echo "$ac_t""$AR" 1>&6
3779 echo "$ac_t""no" 1>&6
3784 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3785 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3787 echo "configure:3788: checking for $ac_word" >&5
3788 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3789 echo $ac_n "(cached) $ac_c" 1>&6
3791 if test -n "$DLLTOOL"; then
3792 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3796 for ac_dir in $ac_dummy; do
3797 test -z "$ac_dir" && ac_dir=.
3798 if test -f $ac_dir/$ac_word; then
3799 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3804 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="dlltool"
3807 DLLTOOL="$ac_cv_prog_DLLTOOL"
3808 if test -n "$DLLTOOL"; then
3809 echo "$ac_t""$DLLTOOL" 1>&6
3811 echo "$ac_t""no" 1>&6
3816 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3817 set dummy ${ac_tool_prefix}windres; ac_word=$2
3818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3819 echo "configure:3820: checking for $ac_word" >&5
3820 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3821 echo $ac_n "(cached) $ac_c" 1>&6
3823 if test -n "$WINDRES"; then
3824 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3828 for ac_dir in $ac_dummy; do
3829 test -z "$ac_dir" && ac_dir=.
3830 if test -f $ac_dir/$ac_word; then
3831 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3836 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES="windres"
3839 WINDRES="$ac_cv_prog_WINDRES"
3840 if test -n "$WINDRES"; then
3841 echo "$ac_t""$WINDRES" 1>&6
3843 echo "$ac_t""no" 1>&6
3849 # Needed for GNU/Hurd.
3850 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3851 set dummy ${ac_tool_prefix}mig; ac_word=$2
3852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3853 echo "configure:3854: checking for $ac_word" >&5
3854 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3857 if test -n "$MIG"; then
3858 ac_cv_prog_MIG="$MIG" # Let the user override the test.
3860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3862 for ac_dir in $ac_dummy; do
3863 test -z "$ac_dir" && ac_dir=.
3864 if test -f $ac_dir/$ac_word; then
3865 ac_cv_prog_MIG="${ac_tool_prefix}mig"
3870 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
3873 MIG="$ac_cv_prog_MIG"
3874 if test -n "$MIG"; then
3875 echo "$ac_t""$MIG" 1>&6
3877 echo "$ac_t""no" 1>&6
3883 # ---------------------- #
3884 # Checks for libraries. #
3885 # ---------------------- #
3887 # We might need to link with -lm; most simulators need it.
3888 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3889 echo "configure:3890: checking for main in -lm" >&5
3890 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
3894 ac_save_LIBS="$LIBS"
3896 cat > conftest.$ac_ext <<EOF
3897 #line 3898 "configure"
3898 #include "confdefs.h"
3904 if { (eval echo configure:3905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3906 eval "ac_cv_lib_$ac_lib_var=yes"
3908 echo "configure: failed program was:" >&5
3909 cat conftest.$ac_ext >&5
3911 eval "ac_cv_lib_$ac_lib_var=no"
3914 LIBS="$ac_save_LIBS"
3917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3918 echo "$ac_t""yes" 1>&6
3919 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3920 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3921 cat >> confdefs.h <<EOF
3922 #define $ac_tr_lib 1
3928 echo "$ac_t""no" 1>&6
3932 # We need to link with -lw to get `wctype' on Solaris before Solaris
3933 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
3934 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
3935 # is known to have this problem). Therefore we avoid libw if we can.
3936 echo $ac_n "checking for wctype""... $ac_c" 1>&6
3937 echo "configure:3938: checking for wctype" >&5
3938 if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then
3939 echo $ac_n "(cached) $ac_c" 1>&6
3941 cat > conftest.$ac_ext <<EOF
3942 #line 3943 "configure"
3943 #include "confdefs.h"
3944 /* System header to define __stub macros and hopefully few prototypes,
3945 which can conflict with char wctype(); below. */
3947 /* Override any gcc2 internal prototype to avoid an error. */
3948 /* We use char because int might match the return type of a gcc2
3949 builtin and then its argument prototype would still apply. */
3954 /* The GNU C library defines this for functions which it implements
3955 to always fail with ENOSYS. Some functions are actually named
3956 something starting with __ and the normal name is an alias. */
3957 #if defined (__stub_wctype) || defined (__stub___wctype)
3965 if { (eval echo configure:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3967 eval "ac_cv_func_wctype=yes"
3969 echo "configure: failed program was:" >&5
3970 cat conftest.$ac_ext >&5
3972 eval "ac_cv_func_wctype=no"
3977 if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then
3978 echo "$ac_t""yes" 1>&6
3981 echo "$ac_t""no" 1>&6
3982 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
3983 echo "configure:3984: checking for wctype in -lw" >&5
3984 ac_lib_var=`echo w'_'wctype | sed 'y%./+-%__p_%'`
3985 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3986 echo $ac_n "(cached) $ac_c" 1>&6
3988 ac_save_LIBS="$LIBS"
3990 cat > conftest.$ac_ext <<EOF
3991 #line 3992 "configure"
3992 #include "confdefs.h"
3993 /* Override any gcc2 internal prototype to avoid an error. */
3994 /* We use char because int might match the return type of a gcc2
3995 builtin and then its argument prototype would still apply. */
4002 if { (eval echo configure:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4004 eval "ac_cv_lib_$ac_lib_var=yes"
4006 echo "configure: failed program was:" >&5
4007 cat conftest.$ac_ext >&5
4009 eval "ac_cv_lib_$ac_lib_var=no"
4012 LIBS="$ac_save_LIBS"
4015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4016 echo "$ac_t""yes" 1>&6
4017 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4018 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4019 cat >> confdefs.h <<EOF
4020 #define $ac_tr_lib 1
4026 echo "$ac_t""no" 1>&6
4032 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
4034 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
4035 echo "configure:4036: checking for library containing gethostbyname" >&5
4036 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
4037 echo $ac_n "(cached) $ac_c" 1>&6
4039 ac_func_search_save_LIBS="$LIBS"
4040 ac_cv_search_gethostbyname="no"
4041 cat > conftest.$ac_ext <<EOF
4042 #line 4043 "configure"
4043 #include "confdefs.h"
4044 /* Override any gcc2 internal prototype to avoid an error. */
4045 /* We use char because int might match the return type of a gcc2
4046 builtin and then its argument prototype would still apply. */
4047 char gethostbyname();
4053 if { (eval echo configure:4054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4055 ac_cv_search_gethostbyname="none required"
4057 echo "configure: failed program was:" >&5
4058 cat conftest.$ac_ext >&5
4061 test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do
4062 LIBS="-l$i $ac_func_search_save_LIBS"
4063 cat > conftest.$ac_ext <<EOF
4064 #line 4065 "configure"
4065 #include "confdefs.h"
4066 /* Override any gcc2 internal prototype to avoid an error. */
4067 /* We use char because int might match the return type of a gcc2
4068 builtin and then its argument prototype would still apply. */
4069 char gethostbyname();
4075 if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4077 ac_cv_search_gethostbyname="-l$i"
4080 echo "configure: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4085 LIBS="$ac_func_search_save_LIBS"
4088 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
4089 if test "$ac_cv_search_gethostbyname" != "no"; then
4090 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
4096 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
4098 echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6
4099 echo "configure:4100: checking for library containing socketpair" >&5
4100 if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then
4101 echo $ac_n "(cached) $ac_c" 1>&6
4103 ac_func_search_save_LIBS="$LIBS"
4104 ac_cv_search_socketpair="no"
4105 cat > conftest.$ac_ext <<EOF
4106 #line 4107 "configure"
4107 #include "confdefs.h"
4108 /* Override any gcc2 internal prototype to avoid an error. */
4109 /* We use char because int might match the return type of a gcc2
4110 builtin and then its argument prototype would still apply. */
4117 if { (eval echo configure:4118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4119 ac_cv_search_socketpair="none required"
4121 echo "configure: failed program was:" >&5
4122 cat conftest.$ac_ext >&5
4125 test "$ac_cv_search_socketpair" = "no" && for i in socket; do
4126 LIBS="-l$i $ac_func_search_save_LIBS"
4127 cat > conftest.$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4130 /* Override any gcc2 internal prototype to avoid an error. */
4131 /* We use char because int might match the return type of a gcc2
4132 builtin and then its argument prototype would still apply. */
4139 if { (eval echo configure:4140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4141 ac_cv_search_socketpair="-l$i"
4144 echo "configure: failed program was:" >&5
4145 cat conftest.$ac_ext >&5
4149 LIBS="$ac_func_search_save_LIBS"
4152 echo "$ac_t""$ac_cv_search_socketpair" 1>&6
4153 if test "$ac_cv_search_socketpair" != "no"; then
4154 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
4160 # Since GDB uses Readline, we need termcap functionality, so we need
4161 # to find a library that provides that. When GDB is configured with
4162 # the TUI, we need full curses functionality.
4166 if test -d $srcdir/libtermcap; then
4167 LIBS="../libtermcap/libtermcap.a $LIBS"
4168 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
4171 ac_cv_search_tgetent="none required"
4174 # Readline prefers curses over termcap on AIX.
4177 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
4178 echo "configure:4179: checking for library containing tgetent" >&5
4179 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4182 ac_func_search_save_LIBS="$LIBS"
4183 ac_cv_search_tgetent="no"
4184 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4187 /* Override any gcc2 internal prototype to avoid an error. */
4188 /* We use char because int might match the return type of a gcc2
4189 builtin and then its argument prototype would still apply. */
4196 if { (eval echo configure:4197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4198 ac_cv_search_tgetent="none required"
4200 echo "configure: failed program was:" >&5
4201 cat conftest.$ac_ext >&5
4204 test "$ac_cv_search_tgetent" = "no" && for i in tinfo ncurses curses termcap; do
4205 LIBS="-l$i $ac_func_search_save_LIBS"
4206 cat > conftest.$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4209 /* Override any gcc2 internal prototype to avoid an error. */
4210 /* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4218 if { (eval echo configure:4219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4220 ac_cv_search_tgetent="-l$i"
4223 echo "configure: failed program was:" >&5
4224 cat conftest.$ac_ext >&5
4228 LIBS="$ac_func_search_save_LIBS"
4231 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
4232 if test "$ac_cv_search_tgetent" != "no"; then
4233 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
4241 # Note: We used to check for libtermlib and libterminfo too, but
4242 # Readline doesn't, so I think we're safe with leaving them out.
4244 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
4245 echo "configure:4246: checking for library containing tgetent" >&5
4246 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
4247 echo $ac_n "(cached) $ac_c" 1>&6
4249 ac_func_search_save_LIBS="$LIBS"
4250 ac_cv_search_tgetent="no"
4251 cat > conftest.$ac_ext <<EOF
4252 #line 4253 "configure"
4253 #include "confdefs.h"
4254 /* Override any gcc2 internal prototype to avoid an error. */
4255 /* We use char because int might match the return type of a gcc2
4256 builtin and then its argument prototype would still apply. */
4263 if { (eval echo configure:4264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4265 ac_cv_search_tgetent="none required"
4267 echo "configure: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4271 test "$ac_cv_search_tgetent" = "no" && for i in termcap tinfo ncurses Hcurses curses; do
4272 LIBS="-l$i $ac_func_search_save_LIBS"
4273 cat > conftest.$ac_ext <<EOF
4274 #line 4275 "configure"
4275 #include "confdefs.h"
4276 /* Override any gcc2 internal prototype to avoid an error. */
4277 /* We use char because int might match the return type of a gcc2
4278 builtin and then its argument prototype would still apply. */
4285 if { (eval echo configure:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4287 ac_cv_search_tgetent="-l$i"
4290 echo "configure: failed program was:" >&5
4291 cat conftest.$ac_ext >&5
4295 LIBS="$ac_func_search_save_LIBS"
4298 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
4299 if test "$ac_cv_search_tgetent" != "no"; then
4300 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
4306 if test "$ac_cv_search_tgetent" = no; then
4307 { echo "configure: error: no termcap library found" 1>&2; exit 1; }
4310 # ------------------------- #
4311 # Checks for header files. #
4312 # ------------------------- #
4315 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4317 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4318 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4319 echo "configure:4320: checking for $ac_hdr that defines DIR" >&5
4320 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4323 cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4326 #include <sys/types.h>
4332 if { (eval echo configure:4333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4334 eval "ac_cv_header_dirent_$ac_safe=yes"
4336 echo "configure: failed program was:" >&5
4337 cat conftest.$ac_ext >&5
4339 eval "ac_cv_header_dirent_$ac_safe=no"
4343 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4344 echo "$ac_t""yes" 1>&6
4345 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4346 cat >> confdefs.h <<EOF
4347 #define $ac_tr_hdr 1
4349 ac_header_dirent=$ac_hdr; break
4351 echo "$ac_t""no" 1>&6
4354 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4355 if test $ac_header_dirent = dirent.h; then
4356 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4357 echo "configure:4358: checking for opendir in -ldir" >&5
4358 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4360 echo $ac_n "(cached) $ac_c" 1>&6
4362 ac_save_LIBS="$LIBS"
4364 cat > conftest.$ac_ext <<EOF
4365 #line 4366 "configure"
4366 #include "confdefs.h"
4367 /* Override any gcc2 internal prototype to avoid an error. */
4368 /* We use char because int might match the return type of a gcc2
4369 builtin and then its argument prototype would still apply. */
4376 if { (eval echo configure:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4378 eval "ac_cv_lib_$ac_lib_var=yes"
4380 echo "configure: failed program was:" >&5
4381 cat conftest.$ac_ext >&5
4383 eval "ac_cv_lib_$ac_lib_var=no"
4386 LIBS="$ac_save_LIBS"
4389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4390 echo "$ac_t""yes" 1>&6
4393 echo "$ac_t""no" 1>&6
4397 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4398 echo "configure:4399: checking for opendir in -lx" >&5
4399 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4401 echo $ac_n "(cached) $ac_c" 1>&6
4403 ac_save_LIBS="$LIBS"
4405 cat > conftest.$ac_ext <<EOF
4406 #line 4407 "configure"
4407 #include "confdefs.h"
4408 /* Override any gcc2 internal prototype to avoid an error. */
4409 /* We use char because int might match the return type of a gcc2
4410 builtin and then its argument prototype would still apply. */
4417 if { (eval echo configure:4418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4419 eval "ac_cv_lib_$ac_lib_var=yes"
4421 echo "configure: failed program was:" >&5
4422 cat conftest.$ac_ext >&5
4424 eval "ac_cv_lib_$ac_lib_var=no"
4427 LIBS="$ac_save_LIBS"
4430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4431 echo "$ac_t""yes" 1>&6
4434 echo "$ac_t""no" 1>&6
4439 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4440 echo "configure:4441: checking whether stat file-mode macros are broken" >&5
4441 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4442 echo $ac_n "(cached) $ac_c" 1>&6
4444 cat > conftest.$ac_ext <<EOF
4445 #line 4446 "configure"
4446 #include "confdefs.h"
4447 #include <sys/types.h>
4448 #include <sys/stat.h>
4450 #if defined(S_ISBLK) && defined(S_IFDIR)
4451 # if S_ISBLK (S_IFDIR)
4456 #if defined(S_ISBLK) && defined(S_IFCHR)
4457 # if S_ISBLK (S_IFCHR)
4462 #if defined(S_ISLNK) && defined(S_IFREG)
4463 # if S_ISLNK (S_IFREG)
4468 #if defined(S_ISSOCK) && defined(S_IFREG)
4469 # if S_ISSOCK (S_IFREG)
4475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4476 egrep "You lose" >/dev/null 2>&1; then
4478 ac_cv_header_stat_broken=yes
4481 ac_cv_header_stat_broken=no
4487 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4488 if test $ac_cv_header_stat_broken = yes; then
4489 cat >> confdefs.h <<\EOF
4490 #define STAT_MACROS_BROKEN 1
4495 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4496 echo "configure:4497: checking for ANSI C header files" >&5
4497 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4500 cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4509 { (eval echo configure:4510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4511 if test -z "$ac_err"; then
4513 ac_cv_header_stdc=yes
4516 echo "configure: failed program was:" >&5
4517 cat conftest.$ac_ext >&5
4519 ac_cv_header_stdc=no
4523 if test $ac_cv_header_stdc = yes; then
4524 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4531 egrep "memchr" >/dev/null 2>&1; then
4535 ac_cv_header_stdc=no
4541 if test $ac_cv_header_stdc = yes; then
4542 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4543 cat > conftest.$ac_ext <<EOF
4544 #line 4545 "configure"
4545 #include "confdefs.h"
4548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4549 egrep "free" >/dev/null 2>&1; then
4553 ac_cv_header_stdc=no
4559 if test $ac_cv_header_stdc = yes; then
4560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4561 if test "$cross_compiling" = yes; then
4564 cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4568 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4569 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4570 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4571 int main () { int i; for (i = 0; i < 256; i++)
4572 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4576 if { (eval echo configure:4577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4580 echo "configure: failed program was:" >&5
4581 cat conftest.$ac_ext >&5
4583 ac_cv_header_stdc=no
4591 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4592 if test $ac_cv_header_stdc = yes; then
4593 cat >> confdefs.h <<\EOF
4594 #define STDC_HEADERS 1
4599 for ac_hdr in link.h
4601 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4602 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4603 echo "configure:4604: checking for $ac_hdr" >&5
4604 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4605 echo $ac_n "(cached) $ac_c" 1>&6
4607 cat > conftest.$ac_ext <<EOF
4608 #line 4609 "configure"
4609 #include "confdefs.h"
4612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4613 { (eval echo configure:4614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4615 if test -z "$ac_err"; then
4617 eval "ac_cv_header_$ac_safe=yes"
4620 echo "configure: failed program was:" >&5
4621 cat conftest.$ac_ext >&5
4623 eval "ac_cv_header_$ac_safe=no"
4627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4628 echo "$ac_t""yes" 1>&6
4629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4630 cat >> confdefs.h <<EOF
4631 #define $ac_tr_hdr 1
4635 echo "$ac_t""no" 1>&6
4639 for ac_hdr in machine/reg.h
4641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4643 echo "configure:4644: checking for $ac_hdr" >&5
4644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4645 echo $ac_n "(cached) $ac_c" 1>&6
4647 cat > conftest.$ac_ext <<EOF
4648 #line 4649 "configure"
4649 #include "confdefs.h"
4652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4653 { (eval echo configure:4654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4655 if test -z "$ac_err"; then
4657 eval "ac_cv_header_$ac_safe=yes"
4660 echo "configure: failed program was:" >&5
4661 cat conftest.$ac_ext >&5
4663 eval "ac_cv_header_$ac_safe=no"
4667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4668 echo "$ac_t""yes" 1>&6
4669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4670 cat >> confdefs.h <<EOF
4671 #define $ac_tr_hdr 1
4675 echo "$ac_t""no" 1>&6
4679 for ac_hdr in nlist.h
4681 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4682 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4683 echo "configure:4684: checking for $ac_hdr" >&5
4684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
4687 cat > conftest.$ac_ext <<EOF
4688 #line 4689 "configure"
4689 #include "confdefs.h"
4692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4693 { (eval echo configure:4694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4695 if test -z "$ac_err"; then
4697 eval "ac_cv_header_$ac_safe=yes"
4700 echo "configure: failed program was:" >&5
4701 cat conftest.$ac_ext >&5
4703 eval "ac_cv_header_$ac_safe=no"
4707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4708 echo "$ac_t""yes" 1>&6
4709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4710 cat >> confdefs.h <<EOF
4711 #define $ac_tr_hdr 1
4715 echo "$ac_t""no" 1>&6
4719 for ac_hdr in poll.h sys/poll.h
4721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4723 echo "configure:4724: checking for $ac_hdr" >&5
4724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4725 echo $ac_n "(cached) $ac_c" 1>&6
4727 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4733 { (eval echo configure:4734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4735 if test -z "$ac_err"; then
4737 eval "ac_cv_header_$ac_safe=yes"
4740 echo "configure: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4743 eval "ac_cv_header_$ac_safe=no"
4747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4748 echo "$ac_t""yes" 1>&6
4749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4750 cat >> confdefs.h <<EOF
4751 #define $ac_tr_hdr 1
4755 echo "$ac_t""no" 1>&6
4759 for ac_hdr in proc_service.h thread_db.h gnu/libc-version.h
4761 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4762 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4763 echo "configure:4764: checking for $ac_hdr" >&5
4764 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4765 echo $ac_n "(cached) $ac_c" 1>&6
4767 cat > conftest.$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4773 { (eval echo configure:4774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4775 if test -z "$ac_err"; then
4777 eval "ac_cv_header_$ac_safe=yes"
4780 echo "configure: failed program was:" >&5
4781 cat conftest.$ac_ext >&5
4783 eval "ac_cv_header_$ac_safe=no"
4787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4788 echo "$ac_t""yes" 1>&6
4789 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4790 cat >> confdefs.h <<EOF
4791 #define $ac_tr_hdr 1
4795 echo "$ac_t""no" 1>&6
4799 for ac_hdr in stddef.h
4801 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4802 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4803 echo "configure:4804: checking for $ac_hdr" >&5
4804 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4805 echo $ac_n "(cached) $ac_c" 1>&6
4807 cat > conftest.$ac_ext <<EOF
4808 #line 4809 "configure"
4809 #include "confdefs.h"
4812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4813 { (eval echo configure:4814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4815 if test -z "$ac_err"; then
4817 eval "ac_cv_header_$ac_safe=yes"
4820 echo "configure: failed program was:" >&5
4821 cat conftest.$ac_ext >&5
4823 eval "ac_cv_header_$ac_safe=no"
4827 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4828 echo "$ac_t""yes" 1>&6
4829 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4830 cat >> confdefs.h <<EOF
4831 #define $ac_tr_hdr 1
4835 echo "$ac_t""no" 1>&6
4839 for ac_hdr in stdlib.h
4841 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4842 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4843 echo "configure:4844: checking for $ac_hdr" >&5
4844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4845 echo $ac_n "(cached) $ac_c" 1>&6
4847 cat > conftest.$ac_ext <<EOF
4848 #line 4849 "configure"
4849 #include "confdefs.h"
4852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4853 { (eval echo configure:4854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4855 if test -z "$ac_err"; then
4857 eval "ac_cv_header_$ac_safe=yes"
4860 echo "configure: failed program was:" >&5
4861 cat conftest.$ac_ext >&5
4863 eval "ac_cv_header_$ac_safe=no"
4867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4868 echo "$ac_t""yes" 1>&6
4869 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4870 cat >> confdefs.h <<EOF
4871 #define $ac_tr_hdr 1
4875 echo "$ac_t""no" 1>&6
4879 for ac_hdr in stdint.h
4881 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4882 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4883 echo "configure:4884: checking for $ac_hdr" >&5
4884 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4885 echo $ac_n "(cached) $ac_c" 1>&6
4887 cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4893 { (eval echo configure:4894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4895 if test -z "$ac_err"; then
4897 eval "ac_cv_header_$ac_safe=yes"
4900 echo "configure: failed program was:" >&5
4901 cat conftest.$ac_ext >&5
4903 eval "ac_cv_header_$ac_safe=no"
4907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4908 echo "$ac_t""yes" 1>&6
4909 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4910 cat >> confdefs.h <<EOF
4911 #define $ac_tr_hdr 1
4915 echo "$ac_t""no" 1>&6
4919 for ac_hdr in string.h memory.h strings.h
4921 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4922 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4923 echo "configure:4924: checking for $ac_hdr" >&5
4924 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4925 echo $ac_n "(cached) $ac_c" 1>&6
4927 cat > conftest.$ac_ext <<EOF
4928 #line 4929 "configure"
4929 #include "confdefs.h"
4932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4933 { (eval echo configure:4934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4935 if test -z "$ac_err"; then
4937 eval "ac_cv_header_$ac_safe=yes"
4940 echo "configure: failed program was:" >&5
4941 cat conftest.$ac_ext >&5
4943 eval "ac_cv_header_$ac_safe=no"
4947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4948 echo "$ac_t""yes" 1>&6
4949 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4950 cat >> confdefs.h <<EOF
4951 #define $ac_tr_hdr 1
4955 echo "$ac_t""no" 1>&6
4959 for ac_hdr in sys/fault.h
4961 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4962 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4963 echo "configure:4964: checking for $ac_hdr" >&5
4964 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4965 echo $ac_n "(cached) $ac_c" 1>&6
4967 cat > conftest.$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4973 { (eval echo configure:4974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4975 if test -z "$ac_err"; then
4977 eval "ac_cv_header_$ac_safe=yes"
4980 echo "configure: failed program was:" >&5
4981 cat conftest.$ac_ext >&5
4983 eval "ac_cv_header_$ac_safe=no"
4987 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4988 echo "$ac_t""yes" 1>&6
4989 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4990 cat >> confdefs.h <<EOF
4991 #define $ac_tr_hdr 1
4995 echo "$ac_t""no" 1>&6
4999 for ac_hdr in sys/file.h
5001 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5002 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5003 echo "configure:5004: checking for $ac_hdr" >&5
5004 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5005 echo $ac_n "(cached) $ac_c" 1>&6
5007 cat > conftest.$ac_ext <<EOF
5008 #line 5009 "configure"
5009 #include "confdefs.h"
5012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5013 { (eval echo configure:5014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5015 if test -z "$ac_err"; then
5017 eval "ac_cv_header_$ac_safe=yes"
5020 echo "configure: failed program was:" >&5
5021 cat conftest.$ac_ext >&5
5023 eval "ac_cv_header_$ac_safe=no"
5027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5028 echo "$ac_t""yes" 1>&6
5029 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5030 cat >> confdefs.h <<EOF
5031 #define $ac_tr_hdr 1
5035 echo "$ac_t""no" 1>&6
5039 for ac_hdr in sys/filio.h
5041 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5042 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5043 echo "configure:5044: checking for $ac_hdr" >&5
5044 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5045 echo $ac_n "(cached) $ac_c" 1>&6
5047 cat > conftest.$ac_ext <<EOF
5048 #line 5049 "configure"
5049 #include "confdefs.h"
5052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5053 { (eval echo configure:5054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5055 if test -z "$ac_err"; then
5057 eval "ac_cv_header_$ac_safe=yes"
5060 echo "configure: failed program was:" >&5
5061 cat conftest.$ac_ext >&5
5063 eval "ac_cv_header_$ac_safe=no"
5067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5068 echo "$ac_t""yes" 1>&6
5069 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5070 cat >> confdefs.h <<EOF
5071 #define $ac_tr_hdr 1
5075 echo "$ac_t""no" 1>&6
5079 for ac_hdr in sys/ioctl.h
5081 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5083 echo "configure:5084: checking for $ac_hdr" >&5
5084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5085 echo $ac_n "(cached) $ac_c" 1>&6
5087 cat > conftest.$ac_ext <<EOF
5088 #line 5089 "configure"
5089 #include "confdefs.h"
5092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5093 { (eval echo configure:5094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5095 if test -z "$ac_err"; then
5097 eval "ac_cv_header_$ac_safe=yes"
5100 echo "configure: failed program was:" >&5
5101 cat conftest.$ac_ext >&5
5103 eval "ac_cv_header_$ac_safe=no"
5107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5108 echo "$ac_t""yes" 1>&6
5109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5110 cat >> confdefs.h <<EOF
5111 #define $ac_tr_hdr 1
5115 echo "$ac_t""no" 1>&6
5119 for ac_hdr in sys/param.h
5121 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5122 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5123 echo "configure:5124: checking for $ac_hdr" >&5
5124 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5125 echo $ac_n "(cached) $ac_c" 1>&6
5127 cat > conftest.$ac_ext <<EOF
5128 #line 5129 "configure"
5129 #include "confdefs.h"
5132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5133 { (eval echo configure:5134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5135 if test -z "$ac_err"; then
5137 eval "ac_cv_header_$ac_safe=yes"
5140 echo "configure: failed program was:" >&5
5141 cat conftest.$ac_ext >&5
5143 eval "ac_cv_header_$ac_safe=no"
5147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5148 echo "$ac_t""yes" 1>&6
5149 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5150 cat >> confdefs.h <<EOF
5151 #define $ac_tr_hdr 1
5155 echo "$ac_t""no" 1>&6
5159 for ac_hdr in sys/proc.h
5161 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5163 echo "configure:5164: checking for $ac_hdr" >&5
5164 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5165 echo $ac_n "(cached) $ac_c" 1>&6
5167 cat > conftest.$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5173 { (eval echo configure:5174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5175 if test -z "$ac_err"; then
5177 eval "ac_cv_header_$ac_safe=yes"
5180 echo "configure: failed program was:" >&5
5181 cat conftest.$ac_ext >&5
5183 eval "ac_cv_header_$ac_safe=no"
5187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5188 echo "$ac_t""yes" 1>&6
5189 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5190 cat >> confdefs.h <<EOF
5191 #define $ac_tr_hdr 1
5195 echo "$ac_t""no" 1>&6
5199 for ac_hdr in sys/procfs.h
5201 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5203 echo "configure:5204: checking for $ac_hdr" >&5
5204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5205 echo $ac_n "(cached) $ac_c" 1>&6
5207 cat > conftest.$ac_ext <<EOF
5208 #line 5209 "configure"
5209 #include "confdefs.h"
5212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5213 { (eval echo configure:5214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5215 if test -z "$ac_err"; then
5217 eval "ac_cv_header_$ac_safe=yes"
5220 echo "configure: failed program was:" >&5
5221 cat conftest.$ac_ext >&5
5223 eval "ac_cv_header_$ac_safe=no"
5227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5228 echo "$ac_t""yes" 1>&6
5229 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5230 cat >> confdefs.h <<EOF
5231 #define $ac_tr_hdr 1
5235 echo "$ac_t""no" 1>&6
5239 for ac_hdr in sys/ptrace.h ptrace.h
5241 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5242 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5243 echo "configure:5244: checking for $ac_hdr" >&5
5244 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5245 echo $ac_n "(cached) $ac_c" 1>&6
5247 cat > conftest.$ac_ext <<EOF
5248 #line 5249 "configure"
5249 #include "confdefs.h"
5252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5253 { (eval echo configure:5254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5255 if test -z "$ac_err"; then
5257 eval "ac_cv_header_$ac_safe=yes"
5260 echo "configure: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5263 eval "ac_cv_header_$ac_safe=no"
5267 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5268 echo "$ac_t""yes" 1>&6
5269 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5270 cat >> confdefs.h <<EOF
5271 #define $ac_tr_hdr 1
5275 echo "$ac_t""no" 1>&6
5279 for ac_hdr in sys/reg.h sys/debugreg.h
5281 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5282 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5283 echo "configure:5284: checking for $ac_hdr" >&5
5284 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5285 echo $ac_n "(cached) $ac_c" 1>&6
5287 cat > conftest.$ac_ext <<EOF
5288 #line 5289 "configure"
5289 #include "confdefs.h"
5292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5293 { (eval echo configure:5294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5295 if test -z "$ac_err"; then
5297 eval "ac_cv_header_$ac_safe=yes"
5300 echo "configure: failed program was:" >&5
5301 cat conftest.$ac_ext >&5
5303 eval "ac_cv_header_$ac_safe=no"
5307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5308 echo "$ac_t""yes" 1>&6
5309 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5310 cat >> confdefs.h <<EOF
5311 #define $ac_tr_hdr 1
5315 echo "$ac_t""no" 1>&6
5319 for ac_hdr in sys/select.h
5321 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5322 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5323 echo "configure:5324: checking for $ac_hdr" >&5
5324 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5325 echo $ac_n "(cached) $ac_c" 1>&6
5327 cat > conftest.$ac_ext <<EOF
5328 #line 5329 "configure"
5329 #include "confdefs.h"
5332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5333 { (eval echo configure:5334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5335 if test -z "$ac_err"; then
5337 eval "ac_cv_header_$ac_safe=yes"
5340 echo "configure: failed program was:" >&5
5341 cat conftest.$ac_ext >&5
5343 eval "ac_cv_header_$ac_safe=no"
5347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5348 echo "$ac_t""yes" 1>&6
5349 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5350 cat >> confdefs.h <<EOF
5351 #define $ac_tr_hdr 1
5355 echo "$ac_t""no" 1>&6
5359 for ac_hdr in sys/syscall.h
5361 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5362 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5363 echo "configure:5364: checking for $ac_hdr" >&5
5364 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5365 echo $ac_n "(cached) $ac_c" 1>&6
5367 cat > conftest.$ac_ext <<EOF
5368 #line 5369 "configure"
5369 #include "confdefs.h"
5372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5373 { (eval echo configure:5374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5375 if test -z "$ac_err"; then
5377 eval "ac_cv_header_$ac_safe=yes"
5380 echo "configure: failed program was:" >&5
5381 cat conftest.$ac_ext >&5
5383 eval "ac_cv_header_$ac_safe=no"
5387 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5388 echo "$ac_t""yes" 1>&6
5389 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5390 cat >> confdefs.h <<EOF
5391 #define $ac_tr_hdr 1
5395 echo "$ac_t""no" 1>&6
5399 for ac_hdr in sys/user.h
5401 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5402 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5403 echo "configure:5404: checking for $ac_hdr" >&5
5404 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5405 echo $ac_n "(cached) $ac_c" 1>&6
5407 cat > conftest.$ac_ext <<EOF
5408 #line 5409 "configure"
5409 #include "confdefs.h"
5412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5413 { (eval echo configure:5414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5415 if test -z "$ac_err"; then
5417 eval "ac_cv_header_$ac_safe=yes"
5420 echo "configure: failed program was:" >&5
5421 cat conftest.$ac_ext >&5
5423 eval "ac_cv_header_$ac_safe=no"
5427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5428 echo "$ac_t""yes" 1>&6
5429 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5430 cat >> confdefs.h <<EOF
5431 #define $ac_tr_hdr 1
5435 echo "$ac_t""no" 1>&6
5439 for ac_hdr in sys/wait.h wait.h
5441 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5442 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5443 echo "configure:5444: checking for $ac_hdr" >&5
5444 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5445 echo $ac_n "(cached) $ac_c" 1>&6
5447 cat > conftest.$ac_ext <<EOF
5448 #line 5449 "configure"
5449 #include "confdefs.h"
5452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5453 { (eval echo configure:5454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5455 if test -z "$ac_err"; then
5457 eval "ac_cv_header_$ac_safe=yes"
5460 echo "configure: failed program was:" >&5
5461 cat conftest.$ac_ext >&5
5463 eval "ac_cv_header_$ac_safe=no"
5467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5468 echo "$ac_t""yes" 1>&6
5469 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5470 cat >> confdefs.h <<EOF
5471 #define $ac_tr_hdr 1
5475 echo "$ac_t""no" 1>&6
5479 for ac_hdr in termios.h termio.h sgtty.h
5481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5483 echo "configure:5484: checking for $ac_hdr" >&5
5484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5485 echo $ac_n "(cached) $ac_c" 1>&6
5487 cat > conftest.$ac_ext <<EOF
5488 #line 5489 "configure"
5489 #include "confdefs.h"
5492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5493 { (eval echo configure:5494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5495 if test -z "$ac_err"; then
5497 eval "ac_cv_header_$ac_safe=yes"
5500 echo "configure: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5503 eval "ac_cv_header_$ac_safe=no"
5507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5508 echo "$ac_t""yes" 1>&6
5509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5510 cat >> confdefs.h <<EOF
5511 #define $ac_tr_hdr 1
5515 echo "$ac_t""no" 1>&6
5519 for ac_hdr in unistd.h
5521 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5522 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5523 echo "configure:5524: checking for $ac_hdr" >&5
5524 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5525 echo $ac_n "(cached) $ac_c" 1>&6
5527 cat > conftest.$ac_ext <<EOF
5528 #line 5529 "configure"
5529 #include "confdefs.h"
5532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5533 { (eval echo configure:5534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5535 if test -z "$ac_err"; then
5537 eval "ac_cv_header_$ac_safe=yes"
5540 echo "configure: failed program was:" >&5
5541 cat conftest.$ac_ext >&5
5543 eval "ac_cv_header_$ac_safe=no"
5547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5548 echo "$ac_t""yes" 1>&6
5549 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5550 cat >> confdefs.h <<EOF
5551 #define $ac_tr_hdr 1
5555 echo "$ac_t""no" 1>&6
5560 # On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash
5561 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
5562 # think that we don't have <curses.h> if we're using GCC.
5565 if test "$GCC" = yes; then
5566 cat >> confdefs.h <<\EOF
5567 #define _MSE_INT_H 1
5572 for ac_hdr in curses.h ncurses.h term.h
5574 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5576 echo "configure:5577: checking for $ac_hdr" >&5
5577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5580 cat > conftest.$ac_ext <<EOF
5581 #line 5582 "configure"
5582 #include "confdefs.h"
5585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5586 { (eval echo configure:5587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5588 if test -z "$ac_err"; then
5590 eval "ac_cv_header_$ac_safe=yes"
5593 echo "configure: failed program was:" >&5
5594 cat conftest.$ac_ext >&5
5596 eval "ac_cv_header_$ac_safe=no"
5600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5601 echo "$ac_t""yes" 1>&6
5602 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5603 cat >> confdefs.h <<EOF
5604 #define $ac_tr_hdr 1
5608 echo "$ac_t""no" 1>&6
5613 # FIXME: kettenis/20030102: In most cases we include these
5614 # unconditionally, so what's the point in checking these?
5615 for ac_hdr in ctype.h time.h
5617 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5618 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5619 echo "configure:5620: checking for $ac_hdr" >&5
5620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5621 echo $ac_n "(cached) $ac_c" 1>&6
5623 cat > conftest.$ac_ext <<EOF
5624 #line 5625 "configure"
5625 #include "confdefs.h"
5628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5629 { (eval echo configure:5630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5631 if test -z "$ac_err"; then
5633 eval "ac_cv_header_$ac_safe=yes"
5636 echo "configure: failed program was:" >&5
5637 cat conftest.$ac_ext >&5
5639 eval "ac_cv_header_$ac_safe=no"
5643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5644 echo "$ac_t""yes" 1>&6
5645 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5646 cat >> confdefs.h <<EOF
5647 #define $ac_tr_hdr 1
5651 echo "$ac_t""no" 1>&6
5656 echo $ac_n "checking for member st_blocks in struct stat""... $ac_c" 1>&6
5657 echo "configure:5658: checking for member st_blocks in struct stat" >&5
5658 if eval "test \"`echo '$''{'gdb_cv_have_struct_stat_with_st_blocks_member'+set}'`\" = set"; then
5659 echo $ac_n "(cached) $ac_c" 1>&6
5661 cat > conftest.$ac_ext <<EOF
5662 #line 5663 "configure"
5663 #include "confdefs.h"
5664 #include <sys/types.h>
5665 #include <sys/stat.h>
5667 struct stat st; (void) st.st_blocks;
5670 if { (eval echo configure:5671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5672 gdb_cv_have_struct_stat_with_st_blocks_member=yes
5674 echo "configure: failed program was:" >&5
5675 cat conftest.$ac_ext >&5
5677 gdb_cv_have_struct_stat_with_st_blocks_member=no
5682 echo "$ac_t""$gdb_cv_have_struct_stat_with_st_blocks_member" 1>&6
5683 if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then
5684 cat >> confdefs.h <<\EOF
5685 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5689 # ------------------------- #
5690 # Checks for declarations. #
5691 # ------------------------- #
5693 for ac_func in getopt
5695 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5696 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
5697 echo "configure:5698: checking whether $ac_func is declared" >&5
5698 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
5699 echo $ac_n "(cached) $ac_c" 1>&6
5701 cat > conftest.$ac_ext <<EOF
5702 #line 5703 "configure"
5703 #include "confdefs.h"
5705 #define $ac_tr_decl 1
5710 char *(*pfn) = (char *(*)) $ac_func ;
5714 if { (eval echo configure:5715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5716 eval "gcc_cv_have_decl_$ac_func=yes"
5718 echo "configure: failed program was:" >&5
5719 cat conftest.$ac_ext >&5
5721 eval "gcc_cv_have_decl_$ac_func=no"
5726 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
5727 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
5728 #define $ac_tr_decl 1
5732 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
5733 #define $ac_tr_decl 0
5739 if test x = y ; then
5740 cat >> confdefs.h <<\EOF
5741 #define HAVE_DECL_GETOPT 1
5746 # ------------------ #
5747 # Checks for types. #
5748 # ------------------ #
5750 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5751 echo "configure:5752: checking return type of signal handlers" >&5
5752 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5753 echo $ac_n "(cached) $ac_c" 1>&6
5755 cat > conftest.$ac_ext <<EOF
5756 #line 5757 "configure"
5757 #include "confdefs.h"
5758 #include <sys/types.h>
5764 extern "C" void (*signal (int, void (*)(int)))(int);
5766 void (*signal ()) ();
5773 if { (eval echo configure:5774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5775 ac_cv_type_signal=void
5777 echo "configure: failed program was:" >&5
5778 cat conftest.$ac_ext >&5
5780 ac_cv_type_signal=int
5785 echo "$ac_t""$ac_cv_type_signal" 1>&6
5786 cat >> confdefs.h <<EOF
5787 #define RETSIGTYPE $ac_cv_type_signal
5792 # ------------------------------------- #
5793 # Checks for compiler characteristics. #
5794 # ------------------------------------- #
5796 echo $ac_n "checking for working const""... $ac_c" 1>&6
5797 echo "configure:5798: checking for working const" >&5
5798 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5799 echo $ac_n "(cached) $ac_c" 1>&6
5801 cat > conftest.$ac_ext <<EOF
5802 #line 5803 "configure"
5803 #include "confdefs.h"
5807 /* Ultrix mips cc rejects this. */
5808 typedef int charset[2]; const charset x;
5809 /* SunOS 4.1.1 cc rejects this. */
5810 char const *const *ccp;
5812 /* NEC SVR4.0.2 mips cc rejects this. */
5813 struct point {int x, y;};
5814 static struct point const zero = {0,0};
5815 /* AIX XL C 1.02.0.0 rejects this.
5816 It does not let you subtract one const X* pointer from another in an arm
5817 of an if-expression whose if-part is not a constant expression */
5818 const char *g = "string";
5819 ccp = &g + (g ? g-g : 0);
5820 /* HPUX 7.0 cc rejects these. */
5823 ccp = (char const *const *) p;
5824 { /* SCO 3.2v4 cc rejects this. */
5826 char const *s = 0 ? (char *) 0 : (char const *) 0;
5830 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5832 const int *foo = &x[0];
5835 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5836 typedef const int *iptr;
5840 { /* AIX XL C 1.02.0.0 rejects this saying
5841 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5842 struct s { int j; const int *ap[3]; };
5843 struct s *b; b->j = 5;
5845 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5851 if { (eval echo configure:5852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5855 echo "configure: failed program was:" >&5
5856 cat conftest.$ac_ext >&5
5863 echo "$ac_t""$ac_cv_c_const" 1>&6
5864 if test $ac_cv_c_const = no; then
5865 cat >> confdefs.h <<\EOF
5871 echo $ac_n "checking for inline""... $ac_c" 1>&6
5872 echo "configure:5873: checking for inline" >&5
5873 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5874 echo $ac_n "(cached) $ac_c" 1>&6
5877 for ac_kw in inline __inline__ __inline; do
5878 cat > conftest.$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5886 if { (eval echo configure:5887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5888 ac_cv_c_inline=$ac_kw; break
5890 echo "configure: failed program was:" >&5
5891 cat conftest.$ac_ext >&5
5898 echo "$ac_t""$ac_cv_c_inline" 1>&6
5899 case "$ac_cv_c_inline" in
5901 no) cat >> confdefs.h <<\EOF
5905 *) cat >> confdefs.h <<EOF
5906 #define inline $ac_cv_c_inline
5912 # ------------------------------ #
5913 # Checks for library functions. #
5914 # ------------------------------ #
5916 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5917 # for constant arguments. Useless!
5918 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5919 echo "configure:5920: checking for working alloca.h" >&5
5920 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5921 echo $ac_n "(cached) $ac_c" 1>&6
5923 cat > conftest.$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5928 char *p = alloca(2 * sizeof(int));
5931 if { (eval echo configure:5932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5933 ac_cv_header_alloca_h=yes
5935 echo "configure: failed program was:" >&5
5936 cat conftest.$ac_ext >&5
5938 ac_cv_header_alloca_h=no
5943 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5944 if test $ac_cv_header_alloca_h = yes; then
5945 cat >> confdefs.h <<\EOF
5946 #define HAVE_ALLOCA_H 1
5951 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5952 echo "configure:5953: checking for alloca" >&5
5953 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5954 echo $ac_n "(cached) $ac_c" 1>&6
5956 cat > conftest.$ac_ext <<EOF
5957 #line 5958 "configure"
5958 #include "confdefs.h"
5961 # define alloca __builtin_alloca
5964 # include <malloc.h>
5965 # define alloca _alloca
5968 # include <alloca.h>
5973 # ifndef alloca /* predefined by HP cc +Olibcalls */
5982 char *p = (char *) alloca(1);
5985 if { (eval echo configure:5986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5987 ac_cv_func_alloca_works=yes
5989 echo "configure: failed program was:" >&5
5990 cat conftest.$ac_ext >&5
5992 ac_cv_func_alloca_works=no
5997 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5998 if test $ac_cv_func_alloca_works = yes; then
5999 cat >> confdefs.h <<\EOF
6000 #define HAVE_ALLOCA 1
6005 if test $ac_cv_func_alloca_works = no; then
6006 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6007 # that cause trouble. Some versions do not even contain alloca or
6008 # contain a buggy version. If you still want to use their alloca,
6009 # use ar to extract alloca.o from them instead of compiling alloca.c.
6010 ALLOCA=alloca.${ac_objext}
6011 cat >> confdefs.h <<\EOF
6016 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6017 echo "configure:6018: checking whether alloca needs Cray hooks" >&5
6018 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6019 echo $ac_n "(cached) $ac_c" 1>&6
6021 cat > conftest.$ac_ext <<EOF
6022 #line 6023 "configure"
6023 #include "confdefs.h"
6024 #if defined(CRAY) && ! defined(CRAY2)
6031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6032 egrep "webecray" >/dev/null 2>&1; then
6043 echo "$ac_t""$ac_cv_os_cray" 1>&6
6044 if test $ac_cv_os_cray = yes; then
6045 for ac_func in _getb67 GETB67 getb67; do
6046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6047 echo "configure:6048: checking for $ac_func" >&5
6048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6049 echo $ac_n "(cached) $ac_c" 1>&6
6051 cat > conftest.$ac_ext <<EOF
6052 #line 6053 "configure"
6053 #include "confdefs.h"
6054 /* System header to define __stub macros and hopefully few prototypes,
6055 which can conflict with char $ac_func(); below. */
6057 /* Override any gcc2 internal prototype to avoid an error. */
6058 /* We use char because int might match the return type of a gcc2
6059 builtin and then its argument prototype would still apply. */
6064 /* The GNU C library defines this for functions which it implements
6065 to always fail with ENOSYS. Some functions are actually named
6066 something starting with __ and the normal name is an alias. */
6067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6075 if { (eval echo configure:6076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6077 eval "ac_cv_func_$ac_func=yes"
6079 echo "configure: failed program was:" >&5
6080 cat conftest.$ac_ext >&5
6082 eval "ac_cv_func_$ac_func=no"
6087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6088 echo "$ac_t""yes" 1>&6
6089 cat >> confdefs.h <<EOF
6090 #define CRAY_STACKSEG_END $ac_func
6095 echo "$ac_t""no" 1>&6
6101 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6102 echo "configure:6103: checking stack direction for C alloca" >&5
6103 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6104 echo $ac_n "(cached) $ac_c" 1>&6
6106 if test "$cross_compiling" = yes; then
6107 ac_cv_c_stack_direction=0
6109 cat > conftest.$ac_ext <<EOF
6110 #line 6111 "configure"
6111 #include "confdefs.h"
6112 find_stack_direction ()
6114 static char *addr = 0;
6119 return find_stack_direction ();
6122 return (&dummy > addr) ? 1 : -1;
6126 exit (find_stack_direction() < 0);
6129 if { (eval echo configure:6130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6131 ac_cv_c_stack_direction=1
6133 echo "configure: failed program was:" >&5
6134 cat conftest.$ac_ext >&5
6136 ac_cv_c_stack_direction=-1
6143 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6144 cat >> confdefs.h <<EOF
6145 #define STACK_DIRECTION $ac_cv_c_stack_direction
6150 for ac_hdr in unistd.h
6152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6154 echo "configure:6155: checking for $ac_hdr" >&5
6155 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6156 echo $ac_n "(cached) $ac_c" 1>&6
6158 cat > conftest.$ac_ext <<EOF
6159 #line 6160 "configure"
6160 #include "confdefs.h"
6163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6164 { (eval echo configure:6165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6166 if test -z "$ac_err"; then
6168 eval "ac_cv_header_$ac_safe=yes"
6171 echo "configure: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6174 eval "ac_cv_header_$ac_safe=no"
6178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6179 echo "$ac_t""yes" 1>&6
6180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6181 cat >> confdefs.h <<EOF
6182 #define $ac_tr_hdr 1
6186 echo "$ac_t""no" 1>&6
6190 for ac_func in getpagesize
6192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6193 echo "configure:6194: checking for $ac_func" >&5
6194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6197 cat > conftest.$ac_ext <<EOF
6198 #line 6199 "configure"
6199 #include "confdefs.h"
6200 /* System header to define __stub macros and hopefully few prototypes,
6201 which can conflict with char $ac_func(); below. */
6203 /* Override any gcc2 internal prototype to avoid an error. */
6204 /* We use char because int might match the return type of a gcc2
6205 builtin and then its argument prototype would still apply. */
6210 /* The GNU C library defines this for functions which it implements
6211 to always fail with ENOSYS. Some functions are actually named
6212 something starting with __ and the normal name is an alias. */
6213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6221 if { (eval echo configure:6222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6223 eval "ac_cv_func_$ac_func=yes"
6225 echo "configure: failed program was:" >&5
6226 cat conftest.$ac_ext >&5
6228 eval "ac_cv_func_$ac_func=no"
6233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6234 echo "$ac_t""yes" 1>&6
6235 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6236 cat >> confdefs.h <<EOF
6237 #define $ac_tr_func 1
6241 echo "$ac_t""no" 1>&6
6245 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6246 echo "configure:6247: checking for working mmap" >&5
6247 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6248 echo $ac_n "(cached) $ac_c" 1>&6
6250 if test "$cross_compiling" = yes; then
6251 ac_cv_func_mmap_fixed_mapped=no
6253 cat > conftest.$ac_ext <<EOF
6254 #line 6255 "configure"
6255 #include "confdefs.h"
6257 /* Thanks to Mike Haertel and Jim Avera for this test.
6258 Here is a matrix of mmap possibilities:
6259 mmap private not fixed
6260 mmap private fixed at somewhere currently unmapped
6261 mmap private fixed at somewhere already mapped
6262 mmap shared not fixed
6263 mmap shared fixed at somewhere currently unmapped
6264 mmap shared fixed at somewhere already mapped
6265 For private mappings, we should verify that changes cannot be read()
6266 back from the file, nor mmap's back from the file at a different
6267 address. (There have been systems where private was not correctly
6268 implemented like the infamous i386 svr4.0, and systems where the
6269 VM page cache was not coherent with the filesystem buffer cache
6270 like early versions of FreeBSD and possibly contemporary NetBSD.)
6271 For shared mappings, we should conversely verify that changes get
6272 propogated back to all the places they're supposed to be.
6274 Grep wants private fixed already mapped.
6275 The main things grep needs to know about mmap are:
6276 * does it exist and is it safe to write into the mmap'd area
6277 * how to use it (BSD variants) */
6278 #include <sys/types.h>
6280 #include <sys/mman.h>
6282 /* This mess was copied from the GNU getpagesize.h. */
6283 #ifndef HAVE_GETPAGESIZE
6284 # ifdef HAVE_UNISTD_H
6285 # include <unistd.h>
6288 /* Assume that all systems that can run configure have sys/param.h. */
6289 # ifndef HAVE_SYS_PARAM_H
6290 # define HAVE_SYS_PARAM_H 1
6293 # ifdef _SC_PAGESIZE
6294 # define getpagesize() sysconf(_SC_PAGESIZE)
6295 # else /* no _SC_PAGESIZE */
6296 # ifdef HAVE_SYS_PARAM_H
6297 # include <sys/param.h>
6298 # ifdef EXEC_PAGESIZE
6299 # define getpagesize() EXEC_PAGESIZE
6300 # else /* no EXEC_PAGESIZE */
6302 # define getpagesize() NBPG * CLSIZE
6305 # endif /* no CLSIZE */
6306 # else /* no NBPG */
6308 # define getpagesize() NBPC
6309 # else /* no NBPC */
6311 # define getpagesize() PAGESIZE
6312 # endif /* PAGESIZE */
6313 # endif /* no NBPC */
6314 # endif /* no NBPG */
6315 # endif /* no EXEC_PAGESIZE */
6316 # else /* no HAVE_SYS_PARAM_H */
6317 # define getpagesize() 8192 /* punt totally */
6318 # endif /* no HAVE_SYS_PARAM_H */
6319 # endif /* no _SC_PAGESIZE */
6321 #endif /* no HAVE_GETPAGESIZE */
6324 extern "C" { void *malloc(unsigned); }
6332 char *data, *data2, *data3;
6336 pagesize = getpagesize();
6339 * First, make a file with some known garbage in it.
6341 data = malloc(pagesize);
6344 for (i = 0; i < pagesize; ++i)
6345 *(data + i) = rand();
6347 fd = creat("conftestmmap", 0600);
6350 if (write(fd, data, pagesize) != pagesize)
6355 * Next, try to mmap the file at a fixed address which
6356 * already has something else allocated at it. If we can,
6357 * also make sure that we see the same garbage.
6359 fd = open("conftestmmap", O_RDWR);
6362 data2 = malloc(2 * pagesize);
6365 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6366 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6367 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6369 for (i = 0; i < pagesize; ++i)
6370 if (*(data + i) != *(data2 + i))
6374 * Finally, make sure that changes to the mapped area
6375 * do not percolate back to the file as seen by read().
6376 * (This is a bug on some variants of i386 svr4.0.)
6378 for (i = 0; i < pagesize; ++i)
6379 *(data2 + i) = *(data2 + i) + 1;
6380 data3 = malloc(pagesize);
6383 if (read(fd, data3, pagesize) != pagesize)
6385 for (i = 0; i < pagesize; ++i)
6386 if (*(data + i) != *(data3 + i))
6389 unlink("conftestmmap");
6394 if { (eval echo configure:6395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6396 ac_cv_func_mmap_fixed_mapped=yes
6398 echo "configure: failed program was:" >&5
6399 cat conftest.$ac_ext >&5
6401 ac_cv_func_mmap_fixed_mapped=no
6408 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6409 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6410 cat >> confdefs.h <<\EOF
6416 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6417 echo "configure:6418: checking for pid_t" >&5
6418 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6419 echo $ac_n "(cached) $ac_c" 1>&6
6421 cat > conftest.$ac_ext <<EOF
6422 #line 6423 "configure"
6423 #include "confdefs.h"
6424 #include <sys/types.h>
6430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6431 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6433 ac_cv_type_pid_t=yes
6441 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6442 if test $ac_cv_type_pid_t = no; then
6443 cat >> confdefs.h <<\EOF
6449 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
6450 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
6451 echo "configure:6452: checking for vfork.h" >&5
6452 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6453 echo $ac_n "(cached) $ac_c" 1>&6
6455 cat > conftest.$ac_ext <<EOF
6456 #line 6457 "configure"
6457 #include "confdefs.h"
6460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6461 { (eval echo configure:6462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6463 if test -z "$ac_err"; then
6465 eval "ac_cv_header_$ac_safe=yes"
6468 echo "configure: failed program was:" >&5
6469 cat conftest.$ac_ext >&5
6471 eval "ac_cv_header_$ac_safe=no"
6475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6476 echo "$ac_t""yes" 1>&6
6477 cat >> confdefs.h <<\EOF
6478 #define HAVE_VFORK_H 1
6482 echo "$ac_t""no" 1>&6
6485 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
6486 echo "configure:6487: checking for working vfork" >&5
6487 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
6488 echo $ac_n "(cached) $ac_c" 1>&6
6490 if test "$cross_compiling" = yes; then
6491 echo $ac_n "checking for vfork""... $ac_c" 1>&6
6492 echo "configure:6493: checking for vfork" >&5
6493 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
6494 echo $ac_n "(cached) $ac_c" 1>&6
6496 cat > conftest.$ac_ext <<EOF
6497 #line 6498 "configure"
6498 #include "confdefs.h"
6499 /* System header to define __stub macros and hopefully few prototypes,
6500 which can conflict with char vfork(); below. */
6502 /* Override any gcc2 internal prototype to avoid an error. */
6503 /* We use char because int might match the return type of a gcc2
6504 builtin and then its argument prototype would still apply. */
6509 /* The GNU C library defines this for functions which it implements
6510 to always fail with ENOSYS. Some functions are actually named
6511 something starting with __ and the normal name is an alias. */
6512 #if defined (__stub_vfork) || defined (__stub___vfork)
6520 if { (eval echo configure:6521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6522 eval "ac_cv_func_vfork=yes"
6524 echo "configure: failed program was:" >&5
6525 cat conftest.$ac_ext >&5
6527 eval "ac_cv_func_vfork=no"
6532 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
6533 echo "$ac_t""yes" 1>&6
6536 echo "$ac_t""no" 1>&6
6539 ac_cv_func_vfork_works=$ac_cv_func_vfork
6541 cat > conftest.$ac_ext <<EOF
6542 #line 6543 "configure"
6543 #include "confdefs.h"
6544 /* Thanks to Paul Eggert for this test. */
6546 #include <sys/types.h>
6547 #include <sys/stat.h>
6548 #ifdef HAVE_UNISTD_H
6554 /* On some sparc systems, changes by the child to local and incoming
6555 argument registers are propagated back to the parent.
6556 The compiler is told about this with #include <vfork.h>,
6557 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
6558 Test for this by using a static variable whose address
6559 is put into a register that is clobbered by the vfork. */
6562 sparc_address_test (int arg)
6564 sparc_address_test (arg) int arg;
6582 pid_t parent = getpid ();
6585 sparc_address_test ();
6590 /* Here is another test for sparc vfork register problems.
6591 This test uses lots of local variables, at least
6592 as many local variables as main has allocated so far
6593 including compiler temporaries. 4 locals are enough for
6594 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
6595 A buggy compiler should reuse the register of parent
6596 for one of the local variables, since it will think that
6597 parent can't possibly be used any more in this routine.
6598 Assigning to the local variable will thus munge parent
6599 in the parent process. */
6601 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6602 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6603 /* Convince the compiler that p..p7 are live; otherwise, it might
6604 use the same hardware register for all 8 local variables. */
6605 if (p != p1 || p != p2 || p != p3 || p != p4
6606 || p != p5 || p != p6 || p != p7)
6609 /* On some systems (e.g. IRIX 3.3),
6610 vfork doesn't separate parent from child file descriptors.
6611 If the child closes a descriptor before it execs or exits,
6612 this munges the parent's descriptor as well.
6613 Test for this by closing stdout in the child. */
6614 _exit(close(fileno(stdout)) != 0);
6619 while (wait(&status) != child)
6622 /* Was there some problem with vforking? */
6625 /* Did the child fail? (This shouldn't happen.) */
6628 /* Did the vfork/compiler bug occur? */
6629 || parent != getpid()
6631 /* Did the file descriptor bug occur? */
6632 || fstat(fileno(stdout), &st) != 0
6637 if { (eval echo configure:6638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6639 ac_cv_func_vfork_works=yes
6641 echo "configure: failed program was:" >&5
6642 cat conftest.$ac_ext >&5
6644 ac_cv_func_vfork_works=no
6651 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
6652 if test $ac_cv_func_vfork_works = no; then
6653 cat >> confdefs.h <<\EOF
6659 for ac_func in canonicalize_file_name realpath
6661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6662 echo "configure:6663: checking for $ac_func" >&5
6663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6664 echo $ac_n "(cached) $ac_c" 1>&6
6666 cat > conftest.$ac_ext <<EOF
6667 #line 6668 "configure"
6668 #include "confdefs.h"
6669 /* System header to define __stub macros and hopefully few prototypes,
6670 which can conflict with char $ac_func(); below. */
6672 /* Override any gcc2 internal prototype to avoid an error. */
6673 /* We use char because int might match the return type of a gcc2
6674 builtin and then its argument prototype would still apply. */
6679 /* The GNU C library defines this for functions which it implements
6680 to always fail with ENOSYS. Some functions are actually named
6681 something starting with __ and the normal name is an alias. */
6682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6690 if { (eval echo configure:6691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6692 eval "ac_cv_func_$ac_func=yes"
6694 echo "configure: failed program was:" >&5
6695 cat conftest.$ac_ext >&5
6697 eval "ac_cv_func_$ac_func=no"
6702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6703 echo "$ac_t""yes" 1>&6
6704 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6705 cat >> confdefs.h <<EOF
6706 #define $ac_tr_func 1
6710 echo "$ac_t""no" 1>&6
6716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6717 echo "configure:6718: checking for $ac_func" >&5
6718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6719 echo $ac_n "(cached) $ac_c" 1>&6
6721 cat > conftest.$ac_ext <<EOF
6722 #line 6723 "configure"
6723 #include "confdefs.h"
6724 /* System header to define __stub macros and hopefully few prototypes,
6725 which can conflict with char $ac_func(); below. */
6727 /* Override any gcc2 internal prototype to avoid an error. */
6728 /* We use char because int might match the return type of a gcc2
6729 builtin and then its argument prototype would still apply. */
6734 /* The GNU C library defines this for functions which it implements
6735 to always fail with ENOSYS. Some functions are actually named
6736 something starting with __ and the normal name is an alias. */
6737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6745 if { (eval echo configure:6746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6747 eval "ac_cv_func_$ac_func=yes"
6749 echo "configure: failed program was:" >&5
6750 cat conftest.$ac_ext >&5
6752 eval "ac_cv_func_$ac_func=no"
6757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6758 echo "$ac_t""yes" 1>&6
6759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6760 cat >> confdefs.h <<EOF
6761 #define $ac_tr_func 1
6765 echo "$ac_t""no" 1>&6
6769 for ac_func in pread64
6771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6772 echo "configure:6773: checking for $ac_func" >&5
6773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6774 echo $ac_n "(cached) $ac_c" 1>&6
6776 cat > conftest.$ac_ext <<EOF
6777 #line 6778 "configure"
6778 #include "confdefs.h"
6779 /* System header to define __stub macros and hopefully few prototypes,
6780 which can conflict with char $ac_func(); below. */
6782 /* Override any gcc2 internal prototype to avoid an error. */
6783 /* We use char because int might match the return type of a gcc2
6784 builtin and then its argument prototype would still apply. */
6789 /* The GNU C library defines this for functions which it implements
6790 to always fail with ENOSYS. Some functions are actually named
6791 something starting with __ and the normal name is an alias. */
6792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6800 if { (eval echo configure:6801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6802 eval "ac_cv_func_$ac_func=yes"
6804 echo "configure: failed program was:" >&5
6805 cat conftest.$ac_ext >&5
6807 eval "ac_cv_func_$ac_func=no"
6812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6813 echo "$ac_t""yes" 1>&6
6814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6815 cat >> confdefs.h <<EOF
6816 #define $ac_tr_func 1
6820 echo "$ac_t""no" 1>&6
6826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6827 echo "configure:6828: checking for $ac_func" >&5
6828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6829 echo $ac_n "(cached) $ac_c" 1>&6
6831 cat > conftest.$ac_ext <<EOF
6832 #line 6833 "configure"
6833 #include "confdefs.h"
6834 /* System header to define __stub macros and hopefully few prototypes,
6835 which can conflict with char $ac_func(); below. */
6837 /* Override any gcc2 internal prototype to avoid an error. */
6838 /* We use char because int might match the return type of a gcc2
6839 builtin and then its argument prototype would still apply. */
6844 /* The GNU C library defines this for functions which it implements
6845 to always fail with ENOSYS. Some functions are actually named
6846 something starting with __ and the normal name is an alias. */
6847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6855 if { (eval echo configure:6856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6857 eval "ac_cv_func_$ac_func=yes"
6859 echo "configure: failed program was:" >&5
6860 cat conftest.$ac_ext >&5
6862 eval "ac_cv_func_$ac_func=no"
6867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6868 echo "$ac_t""yes" 1>&6
6869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6870 cat >> confdefs.h <<EOF
6871 #define $ac_tr_func 1
6875 echo "$ac_t""no" 1>&6
6879 for ac_func in setpgid setpgrp
6881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6882 echo "configure:6883: checking for $ac_func" >&5
6883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6884 echo $ac_n "(cached) $ac_c" 1>&6
6886 cat > conftest.$ac_ext <<EOF
6887 #line 6888 "configure"
6888 #include "confdefs.h"
6889 /* System header to define __stub macros and hopefully few prototypes,
6890 which can conflict with char $ac_func(); below. */
6892 /* Override any gcc2 internal prototype to avoid an error. */
6893 /* We use char because int might match the return type of a gcc2
6894 builtin and then its argument prototype would still apply. */
6899 /* The GNU C library defines this for functions which it implements
6900 to always fail with ENOSYS. Some functions are actually named
6901 something starting with __ and the normal name is an alias. */
6902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6910 if { (eval echo configure:6911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6912 eval "ac_cv_func_$ac_func=yes"
6914 echo "configure: failed program was:" >&5
6915 cat conftest.$ac_ext >&5
6917 eval "ac_cv_func_$ac_func=no"
6922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6923 echo "$ac_t""yes" 1>&6
6924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6925 cat >> confdefs.h <<EOF
6926 #define $ac_tr_func 1
6930 echo "$ac_t""no" 1>&6
6934 for ac_func in sigaction sigprocmask sigsetmask
6936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6937 echo "configure:6938: checking for $ac_func" >&5
6938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6939 echo $ac_n "(cached) $ac_c" 1>&6
6941 cat > conftest.$ac_ext <<EOF
6942 #line 6943 "configure"
6943 #include "confdefs.h"
6944 /* System header to define __stub macros and hopefully few prototypes,
6945 which can conflict with char $ac_func(); below. */
6947 /* Override any gcc2 internal prototype to avoid an error. */
6948 /* We use char because int might match the return type of a gcc2
6949 builtin and then its argument prototype would still apply. */
6954 /* The GNU C library defines this for functions which it implements
6955 to always fail with ENOSYS. Some functions are actually named
6956 something starting with __ and the normal name is an alias. */
6957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6965 if { (eval echo configure:6966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6967 eval "ac_cv_func_$ac_func=yes"
6969 echo "configure: failed program was:" >&5
6970 cat conftest.$ac_ext >&5
6972 eval "ac_cv_func_$ac_func=no"
6977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6978 echo "$ac_t""yes" 1>&6
6979 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6980 cat >> confdefs.h <<EOF
6981 #define $ac_tr_func 1
6985 echo "$ac_t""no" 1>&6
6989 for ac_func in socketpair
6991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6992 echo "configure:6993: checking for $ac_func" >&5
6993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6994 echo $ac_n "(cached) $ac_c" 1>&6
6996 cat > conftest.$ac_ext <<EOF
6997 #line 6998 "configure"
6998 #include "confdefs.h"
6999 /* System header to define __stub macros and hopefully few prototypes,
7000 which can conflict with char $ac_func(); below. */
7002 /* Override any gcc2 internal prototype to avoid an error. */
7003 /* We use char because int might match the return type of a gcc2
7004 builtin and then its argument prototype would still apply. */
7009 /* The GNU C library defines this for functions which it implements
7010 to always fail with ENOSYS. Some functions are actually named
7011 something starting with __ and the normal name is an alias. */
7012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7020 if { (eval echo configure:7021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7022 eval "ac_cv_func_$ac_func=yes"
7024 echo "configure: failed program was:" >&5
7025 cat conftest.$ac_ext >&5
7027 eval "ac_cv_func_$ac_func=no"
7032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7033 echo "$ac_t""yes" 1>&6
7034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7035 cat >> confdefs.h <<EOF
7036 #define $ac_tr_func 1
7040 echo "$ac_t""no" 1>&6
7044 for ac_func in syscall
7046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7047 echo "configure:7048: checking for $ac_func" >&5
7048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7049 echo $ac_n "(cached) $ac_c" 1>&6
7051 cat > conftest.$ac_ext <<EOF
7052 #line 7053 "configure"
7053 #include "confdefs.h"
7054 /* System header to define __stub macros and hopefully few prototypes,
7055 which can conflict with char $ac_func(); below. */
7057 /* Override any gcc2 internal prototype to avoid an error. */
7058 /* We use char because int might match the return type of a gcc2
7059 builtin and then its argument prototype would still apply. */
7064 /* The GNU C library defines this for functions which it implements
7065 to always fail with ENOSYS. Some functions are actually named
7066 something starting with __ and the normal name is an alias. */
7067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7075 if { (eval echo configure:7076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7077 eval "ac_cv_func_$ac_func=yes"
7079 echo "configure: failed program was:" >&5
7080 cat conftest.$ac_ext >&5
7082 eval "ac_cv_func_$ac_func=no"
7087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7088 echo "$ac_t""yes" 1>&6
7089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7090 cat >> confdefs.h <<EOF
7091 #define $ac_tr_func 1
7095 echo "$ac_t""no" 1>&6
7100 if test "$cross_compiling" = no; then
7101 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
7102 echo "configure:7103: checking whether setpgrp takes no argument" >&5
7103 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
7104 echo $ac_n "(cached) $ac_c" 1>&6
7106 if test "$cross_compiling" = yes; then
7107 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
7109 cat > conftest.$ac_ext <<EOF
7110 #line 7111 "configure"
7111 #include "confdefs.h"
7113 #ifdef HAVE_UNISTD_H
7118 * If this system has a BSD-style setpgrp, which takes arguments, exit
7123 if (setpgrp(1,1) == -1)
7130 if { (eval echo configure:7131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7132 ac_cv_func_setpgrp_void=no
7134 echo "configure: failed program was:" >&5
7135 cat conftest.$ac_ext >&5
7137 ac_cv_func_setpgrp_void=yes
7145 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
7146 if test $ac_cv_func_setpgrp_void = yes; then
7147 cat >> confdefs.h <<\EOF
7148 #define SETPGRP_VOID 1
7154 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
7155 echo "configure:7156: checking whether setpgrp takes no argument" >&5
7156 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
7157 echo $ac_n "(cached) $ac_c" 1>&6
7159 cat > conftest.$ac_ext <<EOF
7160 #line 7161 "configure"
7161 #include "confdefs.h"
7167 if (setpgrp(1,1) == -1)
7174 if { (eval echo configure:7175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7176 ac_cv_func_setpgrp_void=no
7178 echo "configure: failed program was:" >&5
7179 cat conftest.$ac_ext >&5
7181 ac_cv_func_setpgrp_void=yes
7186 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
7187 if test $ac_cv_func_setpgrp_void = yes; then
7188 cat >> confdefs.h <<\EOF
7189 #define SETPGRP_VOID 1
7195 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
7196 # since sigsetjmp might only be defined as a macro.
7197 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7198 echo "configure:7199: checking for sigsetjmp" >&5
7199 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
7200 echo $ac_n "(cached) $ac_c" 1>&6
7202 cat > conftest.$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7209 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
7212 if { (eval echo configure:7213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7214 gdb_cv_func_sigsetjmp=yes
7216 echo "configure: failed program was:" >&5
7217 cat conftest.$ac_ext >&5
7219 gdb_cv_func_sigsetjmp=no
7224 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
7225 if test $gdb_cv_func_sigsetjmp = yes; then
7226 cat >> confdefs.h <<\EOF
7227 #define HAVE_SIGSETJMP 1
7232 # Assume we'll default to using the included libiberty regex.
7233 gdb_use_included_regex=yes
7235 # However, if the system regex is GNU regex, then default to *not*
7236 # using the included regex.
7237 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
7238 echo "configure:7239: checking for GNU regex" >&5
7239 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
7240 echo $ac_n "(cached) $ac_c" 1>&6
7242 cat > conftest.$ac_ext <<EOF
7243 #line 7244 "configure"
7244 #include "confdefs.h"
7245 #include <gnu-versions.h>
7247 #define REGEX_INTERFACE_VERSION 1
7248 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
7249 # error "Version mismatch"
7253 if { (eval echo configure:7254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7255 gdb_cv_have_gnu_regex=yes
7257 echo "configure: failed program was:" >&5
7258 cat conftest.$ac_ext >&5
7260 gdb_cv_have_gnu_regex=no
7265 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
7266 if test $gdb_cv_have_gnu_regex = yes; then
7267 gdb_use_included_regex=no
7270 # Check whether --with-included-regex or --without-included-regex was given.
7271 if test "${with_included_regex+set}" = set; then
7272 withval="$with_included_regex"
7273 gdb_with_regex=$withval
7275 gdb_with_regex=$gdb_use_included_regex
7278 if test "$gdb_with_regex" = yes; then
7279 cat >> confdefs.h <<\EOF
7280 #define USE_INCLUDED_REGEX 1
7285 # See if <machine/reg.h> degines `struct reg'.
7286 echo $ac_n "checking for struct reg in machine/reg.h""... $ac_c" 1>&6
7287 echo "configure:7288: checking for struct reg in machine/reg.h" >&5
7288 if eval "test \"`echo '$''{'gdb_cv_struct_reg'+set}'`\" = set"; then
7289 echo $ac_n "(cached) $ac_c" 1>&6
7291 cat > conftest.$ac_ext <<EOF
7292 #line 7293 "configure"
7293 #include "confdefs.h"
7294 #include <sys/types.h>
7295 #include <machine/reg.h>
7300 if { (eval echo configure:7301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7302 gdb_cv_struct_reg=yes
7304 echo "configure: failed program was:" >&5
7305 cat conftest.$ac_ext >&5
7307 gdb_cv_struct_reg=no
7312 echo "$ac_t""$gdb_cv_struct_reg" 1>&6
7313 if test $gdb_cv_struct_reg = yes; then
7314 cat >> confdefs.h <<\EOF
7315 #define HAVE_STRUCT_REG 1
7320 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
7321 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
7322 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
7323 echo "configure:7324: checking for r_fs in struct reg" >&5
7324 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
7325 echo $ac_n "(cached) $ac_c" 1>&6
7327 cat > conftest.$ac_ext <<EOF
7328 #line 7329 "configure"
7329 #include "confdefs.h"
7330 #include <machine/reg.h>
7332 struct reg r; r.r_fs;
7335 if { (eval echo configure:7336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7337 gdb_cv_struct_reg_r_fs=yes
7339 echo "configure: failed program was:" >&5
7340 cat conftest.$ac_ext >&5
7342 gdb_cv_struct_reg_r_fs=no
7347 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
7348 if test $gdb_cv_struct_reg_r_fs = yes; then
7349 cat >> confdefs.h <<\EOF
7350 #define HAVE_STRUCT_REG_R_FS 1
7354 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
7355 echo "configure:7356: checking for r_gs in struct reg" >&5
7356 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
7357 echo $ac_n "(cached) $ac_c" 1>&6
7359 cat > conftest.$ac_ext <<EOF
7360 #line 7361 "configure"
7361 #include "confdefs.h"
7362 #include <machine/reg.h>
7364 struct reg r; r.r_gs;
7367 if { (eval echo configure:7368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7369 gdb_cv_struct_reg_r_gs=yes
7371 echo "configure: failed program was:" >&5
7372 cat conftest.$ac_ext >&5
7374 gdb_cv_struct_reg_r_gs=no
7379 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
7380 if test $gdb_cv_struct_reg_r_gs = yes; then
7381 cat >> confdefs.h <<\EOF
7382 #define HAVE_STRUCT_REG_R_GS 1
7387 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
7388 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
7389 echo "configure:7390: checking for PTRACE_GETREGS" >&5
7390 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
7391 echo $ac_n "(cached) $ac_c" 1>&6
7393 cat > conftest.$ac_ext <<EOF
7394 #line 7395 "configure"
7395 #include "confdefs.h"
7396 #include <sys/ptrace.h>
7401 if { (eval echo configure:7402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7403 gdb_cv_have_ptrace_getregs=yes
7405 echo "configure: failed program was:" >&5
7406 cat conftest.$ac_ext >&5
7408 gdb_cv_have_ptrace_getregs=no
7413 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
7414 if test $gdb_cv_have_ptrace_getregs = yes; then
7415 cat >> confdefs.h <<\EOF
7416 #define HAVE_PTRACE_GETREGS 1
7421 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
7422 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
7423 echo "configure:7424: checking for PTRACE_GETFPXREGS" >&5
7424 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
7425 echo $ac_n "(cached) $ac_c" 1>&6
7427 cat > conftest.$ac_ext <<EOF
7428 #line 7429 "configure"
7429 #include "confdefs.h"
7430 #include <sys/ptrace.h>
7435 if { (eval echo configure:7436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7437 gdb_cv_have_ptrace_getfpxregs=yes
7439 echo "configure: failed program was:" >&5
7440 cat conftest.$ac_ext >&5
7442 gdb_cv_have_ptrace_getfpxregs=no
7447 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
7448 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
7449 cat >> confdefs.h <<\EOF
7450 #define HAVE_PTRACE_GETFPXREGS 1
7455 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
7456 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
7457 echo "configure:7458: checking for PT_GETDBREGS" >&5
7458 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
7459 echo $ac_n "(cached) $ac_c" 1>&6
7461 cat > conftest.$ac_ext <<EOF
7462 #line 7463 "configure"
7463 #include "confdefs.h"
7464 #include <sys/types.h>
7465 #include <sys/ptrace.h>
7470 if { (eval echo configure:7471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7472 gdb_cv_have_pt_getdbregs=yes
7474 echo "configure: failed program was:" >&5
7475 cat conftest.$ac_ext >&5
7477 gdb_cv_have_pt_getdbregs=no
7482 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
7483 if test $gdb_cv_have_pt_getdbregs = yes; then
7484 cat >> confdefs.h <<\EOF
7485 #define HAVE_PT_GETDBREGS 1
7490 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
7491 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
7492 echo "configure:7493: checking for PT_GETXMMREGS" >&5
7493 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
7494 echo $ac_n "(cached) $ac_c" 1>&6
7496 cat > conftest.$ac_ext <<EOF
7497 #line 7498 "configure"
7498 #include "confdefs.h"
7499 #include <sys/types.h>
7500 #include <sys/ptrace.h>
7505 if { (eval echo configure:7506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7507 gdb_cv_have_pt_getxmmregs=yes
7509 echo "configure: failed program was:" >&5
7510 cat conftest.$ac_ext >&5
7512 gdb_cv_have_pt_getxmmregs=no
7517 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
7518 if test $gdb_cv_have_pt_getxmmregs = yes; then
7519 cat >> confdefs.h <<\EOF
7520 #define HAVE_PT_GETXMMREGS 1
7525 # See if stdint.h provides the uintptr_t type.
7526 # Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
7527 echo $ac_n "checking for uintptr_t in stdint.h""... $ac_c" 1>&6
7528 echo "configure:7529: checking for uintptr_t in stdint.h" >&5
7529 if eval "test \"`echo '$''{'gdb_cv_have_uintptr_t'+set}'`\" = set"; then
7530 echo $ac_n "(cached) $ac_c" 1>&6
7532 cat > conftest.$ac_ext <<EOF
7533 #line 7534 "configure"
7534 #include "confdefs.h"
7540 if { (eval echo configure:7541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7542 gdb_cv_have_uintptr_t=yes
7544 echo "configure: failed program was:" >&5
7545 cat conftest.$ac_ext >&5
7547 gdb_cv_have_uintptr_t=no
7552 echo "$ac_t""$gdb_cv_have_uintptr_t" 1>&6
7553 if test $gdb_cv_have_uintptr_t = yes; then
7554 cat >> confdefs.h <<\EOF
7555 #define HAVE_UINTPTR_T 1
7560 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
7561 echo "configure:7562: checking whether malloc must be declared" >&5
7562 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
7563 echo $ac_n "(cached) $ac_c" 1>&6
7565 cat > conftest.$ac_ext <<EOF
7566 #line 7567 "configure"
7567 #include "confdefs.h"
7570 #ifdef HAVE_STRING_H
7573 #ifdef HAVE_STRINGS_H
7574 #include <strings.h>
7577 #ifdef HAVE_STDLIB_H
7580 #ifdef HAVE_UNISTD_H
7584 char *(*pfn) = (char *(*)) malloc
7587 if { (eval echo configure:7588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7589 bfd_cv_decl_needed_malloc=no
7591 echo "configure: failed program was:" >&5
7592 cat conftest.$ac_ext >&5
7594 bfd_cv_decl_needed_malloc=yes
7599 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
7600 if test $bfd_cv_decl_needed_malloc = yes; then
7601 cat >> confdefs.h <<\EOF
7602 #define NEED_DECLARATION_MALLOC 1
7607 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
7608 echo "configure:7609: checking whether realloc must be declared" >&5
7609 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
7610 echo $ac_n "(cached) $ac_c" 1>&6
7612 cat > conftest.$ac_ext <<EOF
7613 #line 7614 "configure"
7614 #include "confdefs.h"
7617 #ifdef HAVE_STRING_H
7620 #ifdef HAVE_STRINGS_H
7621 #include <strings.h>
7624 #ifdef HAVE_STDLIB_H
7627 #ifdef HAVE_UNISTD_H
7631 char *(*pfn) = (char *(*)) realloc
7634 if { (eval echo configure:7635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7636 bfd_cv_decl_needed_realloc=no
7638 echo "configure: failed program was:" >&5
7639 cat conftest.$ac_ext >&5
7641 bfd_cv_decl_needed_realloc=yes
7646 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
7647 if test $bfd_cv_decl_needed_realloc = yes; then
7648 cat >> confdefs.h <<\EOF
7649 #define NEED_DECLARATION_REALLOC 1
7654 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
7655 echo "configure:7656: checking whether free must be declared" >&5
7656 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
7657 echo $ac_n "(cached) $ac_c" 1>&6
7659 cat > conftest.$ac_ext <<EOF
7660 #line 7661 "configure"
7661 #include "confdefs.h"
7664 #ifdef HAVE_STRING_H
7667 #ifdef HAVE_STRINGS_H
7668 #include <strings.h>
7671 #ifdef HAVE_STDLIB_H
7674 #ifdef HAVE_UNISTD_H
7678 char *(*pfn) = (char *(*)) free
7681 if { (eval echo configure:7682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7683 bfd_cv_decl_needed_free=no
7685 echo "configure: failed program was:" >&5
7686 cat conftest.$ac_ext >&5
7688 bfd_cv_decl_needed_free=yes
7693 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
7694 if test $bfd_cv_decl_needed_free = yes; then
7695 cat >> confdefs.h <<\EOF
7696 #define NEED_DECLARATION_FREE 1
7701 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
7702 echo "configure:7703: checking whether strerror must be declared" >&5
7703 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
7704 echo $ac_n "(cached) $ac_c" 1>&6
7706 cat > conftest.$ac_ext <<EOF
7707 #line 7708 "configure"
7708 #include "confdefs.h"
7711 #ifdef HAVE_STRING_H
7714 #ifdef HAVE_STRINGS_H
7715 #include <strings.h>
7718 #ifdef HAVE_STDLIB_H
7721 #ifdef HAVE_UNISTD_H
7725 char *(*pfn) = (char *(*)) strerror
7728 if { (eval echo configure:7729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7730 bfd_cv_decl_needed_strerror=no
7732 echo "configure: failed program was:" >&5
7733 cat conftest.$ac_ext >&5
7735 bfd_cv_decl_needed_strerror=yes
7740 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
7741 if test $bfd_cv_decl_needed_strerror = yes; then
7742 cat >> confdefs.h <<\EOF
7743 #define NEED_DECLARATION_STRERROR 1
7748 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
7749 echo "configure:7750: checking whether strdup must be declared" >&5
7750 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
7751 echo $ac_n "(cached) $ac_c" 1>&6
7753 cat > conftest.$ac_ext <<EOF
7754 #line 7755 "configure"
7755 #include "confdefs.h"
7758 #ifdef HAVE_STRING_H
7761 #ifdef HAVE_STRINGS_H
7762 #include <strings.h>
7765 #ifdef HAVE_STDLIB_H
7768 #ifdef HAVE_UNISTD_H
7772 char *(*pfn) = (char *(*)) strdup
7775 if { (eval echo configure:7776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7777 bfd_cv_decl_needed_strdup=no
7779 echo "configure: failed program was:" >&5
7780 cat conftest.$ac_ext >&5
7782 bfd_cv_decl_needed_strdup=yes
7787 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
7788 if test $bfd_cv_decl_needed_strdup = yes; then
7789 cat >> confdefs.h <<\EOF
7790 #define NEED_DECLARATION_STRDUP 1
7795 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
7796 echo "configure:7797: checking whether strstr must be declared" >&5
7797 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
7798 echo $ac_n "(cached) $ac_c" 1>&6
7800 cat > conftest.$ac_ext <<EOF
7801 #line 7802 "configure"
7802 #include "confdefs.h"
7805 #ifdef HAVE_STRING_H
7808 #ifdef HAVE_STRINGS_H
7809 #include <strings.h>
7812 #ifdef HAVE_STDLIB_H
7815 #ifdef HAVE_UNISTD_H
7819 char *(*pfn) = (char *(*)) strstr
7822 if { (eval echo configure:7823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7824 bfd_cv_decl_needed_strstr=no
7826 echo "configure: failed program was:" >&5
7827 cat conftest.$ac_ext >&5
7829 bfd_cv_decl_needed_strstr=yes
7834 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
7835 if test $bfd_cv_decl_needed_strstr = yes; then
7836 cat >> confdefs.h <<\EOF
7837 #define NEED_DECLARATION_STRSTR 1
7842 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
7843 echo "configure:7844: checking whether canonicalize_file_name must be declared" >&5
7844 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
7845 echo $ac_n "(cached) $ac_c" 1>&6
7847 cat > conftest.$ac_ext <<EOF
7848 #line 7849 "configure"
7849 #include "confdefs.h"
7852 #ifdef HAVE_STRING_H
7855 #ifdef HAVE_STRINGS_H
7856 #include <strings.h>
7859 #ifdef HAVE_STDLIB_H
7862 #ifdef HAVE_UNISTD_H
7866 char *(*pfn) = (char *(*)) canonicalize_file_name
7869 if { (eval echo configure:7870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7871 bfd_cv_decl_needed_canonicalize_file_name=no
7873 echo "configure: failed program was:" >&5
7874 cat conftest.$ac_ext >&5
7876 bfd_cv_decl_needed_canonicalize_file_name=yes
7881 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
7882 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
7883 cat >> confdefs.h <<\EOF
7884 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7890 # The following save_state_t checkery is only necessary for HPUX
7891 # versions earlier than 10.20. When those fade from memory, this
7892 # could be expunged. --jsm 1999-03-22
7894 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
7895 echo "configure:7896: checking for HPUX save_state structure" >&5
7896 cat > conftest.$ac_ext <<EOF
7897 #line 7898 "configure"
7898 #include "confdefs.h"
7899 #include <machine/save_state.h>
7901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7902 egrep "save_state_t" >/dev/null 2>&1; then
7904 gdb_cv_hpux_savestate=yes
7907 gdb_cv_hpux_savestate=no
7911 cat > conftest.$ac_ext <<EOF
7912 #line 7913 "configure"
7913 #include "confdefs.h"
7914 #include <machine/save_state.h>
7916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7917 egrep "ss_wide" >/dev/null 2>&1; then
7919 gdb_cv_hpux_sswide=yes
7922 gdb_cv_hpux_sswide=no
7926 if test $gdb_cv_hpux_savestate = yes
7928 cat >> confdefs.h <<\EOF
7929 #define HAVE_STRUCT_SAVE_STATE_T 1
7933 if test $gdb_cv_hpux_sswide = yes
7935 cat >> confdefs.h <<\EOF
7936 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
7940 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
7943 # If we are configured native on GNU/Linux, work around problems with
7945 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
7947 if test "${target}" = "${host}"; then
7950 cat >> confdefs.h <<\EOF
7951 #define START_INFERIOR_TRAPS_EXPECTED 2
7954 cat >> confdefs.h <<\EOF
7955 #define sys_quotactl 1
7960 cat >> confdefs.h <<\EOF
7961 #define NEW_PROC_API 1
7965 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
7966 cat >> confdefs.h <<\EOF
7967 #define NEW_PROC_API 1
7971 *-*-solaris2.[6789])
7972 cat >> confdefs.h <<\EOF
7973 #define NEW_PROC_API 1
7980 if test "$ac_cv_header_sys_procfs_h" = yes; then
7981 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
7982 echo "configure:7983: checking for pstatus_t in sys/procfs.h" >&5
7983 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
7984 echo $ac_n "(cached) $ac_c" 1>&6
7986 cat > conftest.$ac_ext <<EOF
7987 #line 7988 "configure"
7988 #include "confdefs.h"
7991 #include <sys/procfs.h>
7996 if { (eval echo configure:7997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7998 bfd_cv_have_sys_procfs_type_pstatus_t=yes
8000 echo "configure: failed program was:" >&5
8001 cat conftest.$ac_ext >&5
8003 bfd_cv_have_sys_procfs_type_pstatus_t=no
8009 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
8010 cat >> confdefs.h <<\EOF
8011 #define HAVE_PSTATUS_T 1
8015 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
8017 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
8018 echo "configure:8019: checking for prrun_t in sys/procfs.h" >&5
8019 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
8020 echo $ac_n "(cached) $ac_c" 1>&6
8022 cat > conftest.$ac_ext <<EOF
8023 #line 8024 "configure"
8024 #include "confdefs.h"
8027 #include <sys/procfs.h>
8032 if { (eval echo configure:8033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8034 bfd_cv_have_sys_procfs_type_prrun_t=yes
8036 echo "configure: failed program was:" >&5
8037 cat conftest.$ac_ext >&5
8039 bfd_cv_have_sys_procfs_type_prrun_t=no
8045 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
8046 cat >> confdefs.h <<\EOF
8047 #define HAVE_PRRUN_T 1
8051 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
8053 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
8054 echo "configure:8055: checking for gregset_t in sys/procfs.h" >&5
8055 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
8056 echo $ac_n "(cached) $ac_c" 1>&6
8058 cat > conftest.$ac_ext <<EOF
8059 #line 8060 "configure"
8060 #include "confdefs.h"
8063 #include <sys/procfs.h>
8068 if { (eval echo configure:8069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8070 bfd_cv_have_sys_procfs_type_gregset_t=yes
8072 echo "configure: failed program was:" >&5
8073 cat conftest.$ac_ext >&5
8075 bfd_cv_have_sys_procfs_type_gregset_t=no
8081 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
8082 cat >> confdefs.h <<\EOF
8083 #define HAVE_GREGSET_T 1
8087 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
8089 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
8090 echo "configure:8091: checking for fpregset_t in sys/procfs.h" >&5
8091 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
8092 echo $ac_n "(cached) $ac_c" 1>&6
8094 cat > conftest.$ac_ext <<EOF
8095 #line 8096 "configure"
8096 #include "confdefs.h"
8099 #include <sys/procfs.h>
8104 if { (eval echo configure:8105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8106 bfd_cv_have_sys_procfs_type_fpregset_t=yes
8108 echo "configure: failed program was:" >&5
8109 cat conftest.$ac_ext >&5
8111 bfd_cv_have_sys_procfs_type_fpregset_t=no
8117 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
8118 cat >> confdefs.h <<\EOF
8119 #define HAVE_FPREGSET_T 1
8123 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
8125 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
8126 echo "configure:8127: checking for prgregset_t in sys/procfs.h" >&5
8127 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
8128 echo $ac_n "(cached) $ac_c" 1>&6
8130 cat > conftest.$ac_ext <<EOF
8131 #line 8132 "configure"
8132 #include "confdefs.h"
8135 #include <sys/procfs.h>
8140 if { (eval echo configure:8141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8142 bfd_cv_have_sys_procfs_type_prgregset_t=yes
8144 echo "configure: failed program was:" >&5
8145 cat conftest.$ac_ext >&5
8147 bfd_cv_have_sys_procfs_type_prgregset_t=no
8153 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8154 cat >> confdefs.h <<\EOF
8155 #define HAVE_PRGREGSET_T 1
8159 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
8161 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
8162 echo "configure:8163: checking for prfpregset_t in sys/procfs.h" >&5
8163 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
8164 echo $ac_n "(cached) $ac_c" 1>&6
8166 cat > conftest.$ac_ext <<EOF
8167 #line 8168 "configure"
8168 #include "confdefs.h"
8171 #include <sys/procfs.h>
8176 if { (eval echo configure:8177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8178 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
8180 echo "configure: failed program was:" >&5
8181 cat conftest.$ac_ext >&5
8183 bfd_cv_have_sys_procfs_type_prfpregset_t=no
8189 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8190 cat >> confdefs.h <<\EOF
8191 #define HAVE_PRFPREGSET_T 1
8195 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
8197 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
8198 echo "configure:8199: checking for prgregset32_t in sys/procfs.h" >&5
8199 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
8200 echo $ac_n "(cached) $ac_c" 1>&6
8202 cat > conftest.$ac_ext <<EOF
8203 #line 8204 "configure"
8204 #include "confdefs.h"
8207 #include <sys/procfs.h>
8212 if { (eval echo configure:8213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8214 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
8216 echo "configure: failed program was:" >&5
8217 cat conftest.$ac_ext >&5
8219 bfd_cv_have_sys_procfs_type_prgregset32_t=no
8225 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
8226 cat >> confdefs.h <<\EOF
8227 #define HAVE_PRGREGSET32_T 1
8231 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
8233 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
8234 echo "configure:8235: checking for prfpregset32_t in sys/procfs.h" >&5
8235 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
8236 echo $ac_n "(cached) $ac_c" 1>&6
8238 cat > conftest.$ac_ext <<EOF
8239 #line 8240 "configure"
8240 #include "confdefs.h"
8243 #include <sys/procfs.h>
8248 if { (eval echo configure:8249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8250 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
8252 echo "configure: failed program was:" >&5
8253 cat conftest.$ac_ext >&5
8255 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
8261 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
8262 cat >> confdefs.h <<\EOF
8263 #define HAVE_PRFPREGSET32_T 1
8267 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
8269 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
8270 echo "configure:8271: checking for lwpid_t in sys/procfs.h" >&5
8271 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
8272 echo $ac_n "(cached) $ac_c" 1>&6
8274 cat > conftest.$ac_ext <<EOF
8275 #line 8276 "configure"
8276 #include "confdefs.h"
8279 #include <sys/procfs.h>
8284 if { (eval echo configure:8285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8286 bfd_cv_have_sys_procfs_type_lwpid_t=yes
8288 echo "configure: failed program was:" >&5
8289 cat conftest.$ac_ext >&5
8291 bfd_cv_have_sys_procfs_type_lwpid_t=no
8297 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
8298 cat >> confdefs.h <<\EOF
8299 #define HAVE_LWPID_T 1
8303 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
8305 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
8306 echo "configure:8307: checking for psaddr_t in sys/procfs.h" >&5
8307 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
8308 echo $ac_n "(cached) $ac_c" 1>&6
8310 cat > conftest.$ac_ext <<EOF
8311 #line 8312 "configure"
8312 #include "confdefs.h"
8315 #include <sys/procfs.h>
8320 if { (eval echo configure:8321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8322 bfd_cv_have_sys_procfs_type_psaddr_t=yes
8324 echo "configure: failed program was:" >&5
8325 cat conftest.$ac_ext >&5
8327 bfd_cv_have_sys_procfs_type_psaddr_t=no
8333 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8334 cat >> confdefs.h <<\EOF
8335 #define HAVE_PSADDR_T 1
8339 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
8341 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
8342 echo "configure:8343: checking for prsysent_t in sys/procfs.h" >&5
8343 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
8344 echo $ac_n "(cached) $ac_c" 1>&6
8346 cat > conftest.$ac_ext <<EOF
8347 #line 8348 "configure"
8348 #include "confdefs.h"
8351 #include <sys/procfs.h>
8356 if { (eval echo configure:8357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8358 bfd_cv_have_sys_procfs_type_prsysent_t=yes
8360 echo "configure: failed program was:" >&5
8361 cat conftest.$ac_ext >&5
8363 bfd_cv_have_sys_procfs_type_prsysent_t=no
8369 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
8370 cat >> confdefs.h <<\EOF
8371 #define HAVE_PRSYSENT_T 1
8375 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
8377 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
8378 echo "configure:8379: checking for pr_sigset_t in sys/procfs.h" >&5
8379 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
8380 echo $ac_n "(cached) $ac_c" 1>&6
8382 cat > conftest.$ac_ext <<EOF
8383 #line 8384 "configure"
8384 #include "confdefs.h"
8387 #include <sys/procfs.h>
8392 if { (eval echo configure:8393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8394 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
8396 echo "configure: failed program was:" >&5
8397 cat conftest.$ac_ext >&5
8399 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
8405 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
8406 cat >> confdefs.h <<\EOF
8407 #define HAVE_PR_SIGSET_T 1
8411 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
8413 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
8414 echo "configure:8415: checking for pr_sigaction64_t in sys/procfs.h" >&5
8415 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
8416 echo $ac_n "(cached) $ac_c" 1>&6
8418 cat > conftest.$ac_ext <<EOF
8419 #line 8420 "configure"
8420 #include "confdefs.h"
8423 #include <sys/procfs.h>
8425 pr_sigaction64_t avar
8428 if { (eval echo configure:8429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8430 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
8432 echo "configure: failed program was:" >&5
8433 cat conftest.$ac_ext >&5
8435 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
8441 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
8442 cat >> confdefs.h <<\EOF
8443 #define HAVE_PR_SIGACTION64_T 1
8447 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
8449 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
8450 echo "configure:8451: checking for pr_siginfo64_t in sys/procfs.h" >&5
8451 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
8452 echo $ac_n "(cached) $ac_c" 1>&6
8454 cat > conftest.$ac_ext <<EOF
8455 #line 8456 "configure"
8456 #include "confdefs.h"
8459 #include <sys/procfs.h>
8464 if { (eval echo configure:8465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8466 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
8468 echo "configure: failed program was:" >&5
8469 cat conftest.$ac_ext >&5
8471 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
8477 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
8478 cat >> confdefs.h <<\EOF
8479 #define HAVE_PR_SIGINFO64_T 1
8483 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
8489 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8490 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
8491 echo "configure:8492: checking whether prfpregset_t type is broken" >&5
8492 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
8493 echo $ac_n "(cached) $ac_c" 1>&6
8495 if test "$cross_compiling" = yes; then
8496 gdb_cv_prfpregset_t_broken=yes
8498 cat > conftest.$ac_ext <<EOF
8499 #line 8500 "configure"
8500 #include "confdefs.h"
8501 #include <sys/procfs.h>
8504 if (sizeof (prfpregset_t) == sizeof (void *))
8509 if { (eval echo configure:8510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8511 gdb_cv_prfpregset_t_broken=no
8513 echo "configure: failed program was:" >&5
8514 cat conftest.$ac_ext >&5
8516 gdb_cv_prfpregset_t_broken=yes
8523 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
8524 if test $gdb_cv_prfpregset_t_broken = yes; then
8525 cat >> confdefs.h <<\EOF
8526 #define PRFPREGSET_T_BROKEN 1
8533 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
8534 echo "configure:8535: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
8535 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
8536 echo $ac_n "(cached) $ac_c" 1>&6
8538 cat > conftest.$ac_ext <<EOF
8539 #line 8540 "configure"
8540 #include "confdefs.h"
8542 #include <sys/types.h>
8543 #include <sys/procfs.h>
8548 dummy = ioctl(0, PIOCSET, &dummy);
8552 if { (eval echo configure:8553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8554 gdb_cv_have_procfs_piocset=yes
8556 echo "configure: failed program was:" >&5
8557 cat conftest.$ac_ext >&5
8559 gdb_cv_have_procfs_piocset=no
8564 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
8565 if test $gdb_cv_have_procfs_piocset = yes; then
8566 cat >> confdefs.h <<\EOF
8567 #define HAVE_PROCFS_PIOCSET 1
8573 if test ${host} = ${target} ; then
8575 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
8576 echo "configure:8577: checking for member l_addr in struct link_map" >&5
8577 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
8578 echo $ac_n "(cached) $ac_c" 1>&6
8580 cat > conftest.$ac_ext <<EOF
8581 #line 8582 "configure"
8582 #include "confdefs.h"
8585 struct link_map lm; (void) lm.l_addr;
8588 if { (eval echo configure:8589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8590 gdb_cv_have_struct_link_map_with_l_members=yes
8592 echo "configure: failed program was:" >&5
8593 cat conftest.$ac_ext >&5
8595 gdb_cv_have_struct_link_map_with_l_members=no
8600 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
8601 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
8602 cat >> confdefs.h <<\EOF
8603 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
8609 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
8610 echo "configure:8611: checking for member lm_addr in struct link_map" >&5
8611 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
8612 echo $ac_n "(cached) $ac_c" 1>&6
8614 cat > conftest.$ac_ext <<EOF
8615 #line 8616 "configure"
8616 #include "confdefs.h"
8617 #include <sys/types.h>
8620 struct link_map lm; (void) lm.lm_addr;
8623 if { (eval echo configure:8624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8625 gdb_cv_have_struct_link_map_with_lm_members=yes
8627 echo "configure: failed program was:" >&5
8628 cat conftest.$ac_ext >&5
8630 gdb_cv_have_struct_link_map_with_lm_members=no
8635 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
8636 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
8637 cat >> confdefs.h <<\EOF
8638 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
8644 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
8645 echo "configure:8646: checking for member som_addr in struct so_map" >&5
8646 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
8647 echo $ac_n "(cached) $ac_c" 1>&6
8649 cat > conftest.$ac_ext <<EOF
8650 #line 8651 "configure"
8651 #include "confdefs.h"
8652 #include <sys/types.h>
8658 struct so_map lm; (void) lm.som_addr;
8661 if { (eval echo configure:8662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8663 gdb_cv_have_struct_so_map_with_som_members=yes
8665 echo "configure: failed program was:" >&5
8666 cat conftest.$ac_ext >&5
8668 gdb_cv_have_struct_so_map_with_som_members=no
8673 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
8674 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
8675 cat >> confdefs.h <<\EOF
8676 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
8682 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
8683 echo "configure:8684: checking for struct link_map32 in sys/link.h" >&5
8684 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
8685 echo $ac_n "(cached) $ac_c" 1>&6
8687 cat > conftest.$ac_ext <<EOF
8688 #line 8689 "configure"
8689 #include "confdefs.h"
8691 #include <sys/link.h>
8693 struct link_map32 l;
8696 if { (eval echo configure:8697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8698 gdb_cv_have_struct_link_map32=yes
8700 echo "configure: failed program was:" >&5
8701 cat conftest.$ac_ext >&5
8703 gdb_cv_have_struct_link_map32=no
8708 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
8709 if test $gdb_cv_have_struct_link_map32 = yes; then
8710 cat >> confdefs.h <<\EOF
8711 #define HAVE_STRUCT_LINK_MAP32 1
8714 cat >> confdefs.h <<\EOF
8715 #define _SYSCALL32 1
8722 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
8723 echo "configure:8724: checking for long long support in compiler" >&5
8724 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
8725 echo $ac_n "(cached) $ac_c" 1>&6
8727 cat > conftest.$ac_ext <<EOF
8728 #line 8729 "configure"
8729 #include "confdefs.h"
8733 extern long long foo;
8734 switch (foo & 2) { case 0: return 1; }
8738 if { (eval echo configure:8739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8740 gdb_cv_c_long_long=yes
8742 echo "configure: failed program was:" >&5
8743 cat conftest.$ac_ext >&5
8745 gdb_cv_c_long_long=no
8750 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
8751 if test $gdb_cv_c_long_long = yes; then
8752 cat >> confdefs.h <<\EOF
8753 #define CC_HAS_LONG_LONG 1
8759 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
8760 echo "configure:8761: checking for long long support in printf" >&5
8761 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
8764 if test "$cross_compiling" = yes; then
8765 gdb_cv_printf_has_long_long=no
8767 cat > conftest.$ac_ext <<EOF
8768 #line 8769 "configure"
8769 #include "confdefs.h"
8774 l = (l << 16) + 0x0123;
8775 l = (l << 16) + 0x4567;
8776 l = (l << 16) + 0x89ab;
8777 l = (l << 16) + 0xcdef;
8778 sprintf (buf, "0x%016llx", l);
8779 return (strcmp ("0x0123456789abcdef", buf));
8782 if { (eval echo configure:8783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8784 gdb_cv_printf_has_long_long=yes
8786 echo "configure: failed program was:" >&5
8787 cat conftest.$ac_ext >&5
8789 gdb_cv_printf_has_long_long=no
8796 if test $gdb_cv_printf_has_long_long = yes; then
8797 cat >> confdefs.h <<\EOF
8798 #define PRINTF_HAS_LONG_LONG 1
8802 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
8805 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
8806 echo "configure:8807: checking for long double support in compiler" >&5
8807 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
8808 echo $ac_n "(cached) $ac_c" 1>&6
8810 cat > conftest.$ac_ext <<EOF
8811 #line 8812 "configure"
8812 #include "confdefs.h"
8818 if { (eval echo configure:8819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8820 ac_cv_c_long_double=yes
8822 echo "configure: failed program was:" >&5
8823 cat conftest.$ac_ext >&5
8825 ac_cv_c_long_double=no
8830 echo "$ac_t""$ac_cv_c_long_double" 1>&6
8831 if test $ac_cv_c_long_double = yes; then
8832 cat >> confdefs.h <<\EOF
8833 #define HAVE_LONG_DOUBLE 1
8839 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
8840 echo "configure:8841: checking for long double support in printf" >&5
8841 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
8842 echo $ac_n "(cached) $ac_c" 1>&6
8844 if test "$cross_compiling" = yes; then
8845 gdb_cv_printf_has_long_double=no
8847 cat > conftest.$ac_ext <<EOF
8848 #line 8849 "configure"
8849 #include "confdefs.h"
8853 long double f = 3.141592653;
8854 sprintf (buf, "%Lg", f);
8855 return (strncmp ("3.14159", buf, 7));
8858 if { (eval echo configure:8859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8860 gdb_cv_printf_has_long_double=yes
8862 echo "configure: failed program was:" >&5
8863 cat conftest.$ac_ext >&5
8865 gdb_cv_printf_has_long_double=no
8872 if test $gdb_cv_printf_has_long_double = yes; then
8873 cat >> confdefs.h <<\EOF
8874 #define PRINTF_HAS_LONG_DOUBLE 1
8878 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
8881 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
8882 echo "configure:8883: checking for long double support in scanf" >&5
8883 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
8884 echo $ac_n "(cached) $ac_c" 1>&6
8886 if test "$cross_compiling" = yes; then
8887 gdb_cv_scanf_has_long_double=no
8889 cat > conftest.$ac_ext <<EOF
8890 #line 8891 "configure"
8891 #include "confdefs.h"
8894 char *buf = "3.141592653";
8896 sscanf (buf, "%Lg", &f);
8897 return !(f > 3.14159 && f < 3.14160);
8900 if { (eval echo configure:8901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8902 gdb_cv_scanf_has_long_double=yes
8904 echo "configure: failed program was:" >&5
8905 cat conftest.$ac_ext >&5
8907 gdb_cv_scanf_has_long_double=no
8914 if test $gdb_cv_scanf_has_long_double = yes; then
8915 cat >> confdefs.h <<\EOF
8916 #define SCANF_HAS_LONG_DOUBLE 1
8920 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
8924 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
8925 echo "configure:8926: checking for -bbigtoc option" >&5
8926 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
8927 echo $ac_n "(cached) $ac_c" 1>&6
8930 SAVE_LDFLAGS=$LDFLAGS
8933 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8934 *) gdb_cv_bigtoc=-bbigtoc ;;
8937 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8938 cat > conftest.$ac_ext <<EOF
8939 #line 8940 "configure"
8940 #include "confdefs.h"
8946 if { (eval echo configure:8947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8949 echo "configure: failed program was:" >&5
8950 cat conftest.$ac_ext >&5
8958 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
8959 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
8965 if test ${build} = ${host} -a ${host} = ${target} ; then
8968 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
8969 echo "configure:8970: checking for HPUX/OSF thread support" >&5
8970 if test -f /usr/include/dce/cma_config.h ; then
8971 if test "$GCC" = "yes" ; then
8972 echo "$ac_t""yes" 1>&6
8973 cat >> confdefs.h <<\EOF
8974 #define HAVE_HPUX_THREAD_SUPPORT 1
8977 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
8978 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
8980 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
8983 echo "$ac_t""no" 1>&6
8987 # See if thread_db library is around for Solaris thread debugging.
8988 # Note that we must explicitly test for version 1 of the library
8989 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
8991 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
8992 echo "configure:8993: checking for Solaris thread debugging library" >&5
8993 if test -f /usr/lib/libthread_db.so.1 ; then
8994 echo "$ac_t""yes" 1>&6
8995 cat >> confdefs.h <<\EOF
8996 #define HAVE_THREAD_DB_LIB 1
8999 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
9000 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
9001 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
9002 echo "configure:9003: checking for dlopen in -ldl" >&5
9003 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
9004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9005 echo $ac_n "(cached) $ac_c" 1>&6
9007 ac_save_LIBS="$LIBS"
9009 cat > conftest.$ac_ext <<EOF
9010 #line 9011 "configure"
9011 #include "confdefs.h"
9012 /* Override any gcc2 internal prototype to avoid an error. */
9013 /* We use char because int might match the return type of a gcc2
9014 builtin and then its argument prototype would still apply. */
9021 if { (eval echo configure:9022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9023 eval "ac_cv_lib_$ac_lib_var=yes"
9025 echo "configure: failed program was:" >&5
9026 cat conftest.$ac_ext >&5
9028 eval "ac_cv_lib_$ac_lib_var=no"
9031 LIBS="$ac_save_LIBS"
9034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9035 echo "$ac_t""yes" 1>&6
9036 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9037 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9038 cat >> confdefs.h <<EOF
9039 #define $ac_tr_lib 1
9045 echo "$ac_t""no" 1>&6
9048 if test "$GCC" = "yes" ; then
9049 # The GNU linker requires the -export-dynamic option to make
9050 # all symbols visible in the dynamic symbol table.
9051 hold_ldflags=$LDFLAGS
9052 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
9053 echo "configure:9054: checking for the ld -export-dynamic flag" >&5
9054 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
9055 cat > conftest.$ac_ext <<EOF
9056 #line 9057 "configure"
9057 #include "confdefs.h"
9063 if { (eval echo configure:9064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9067 echo "configure: failed program was:" >&5
9068 cat conftest.$ac_ext >&5
9073 LDFLAGS=$hold_ldflags
9074 echo "$ac_t""$found" 1>&6
9075 if test $found = yes; then
9076 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
9079 # Sun randomly tweaked the prototypes in <proc_service.h>
9081 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
9082 echo "configure:9083: checking if <proc_service.h> is old" >&5
9083 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
9084 echo $ac_n "(cached) $ac_c" 1>&6
9087 cat > conftest.$ac_ext <<EOF
9088 #line 9089 "configure"
9089 #include "confdefs.h"
9091 #include <proc_service.h>
9093 (struct ps_prochandle*, psaddr_t, const void*, size_t);
9099 if { (eval echo configure:9100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9101 gdb_cv_proc_service_is_old=no
9103 echo "configure: failed program was:" >&5
9104 cat conftest.$ac_ext >&5
9106 gdb_cv_proc_service_is_old=yes
9112 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
9113 if test $gdb_cv_proc_service_is_old = yes; then
9114 cat >> confdefs.h <<\EOF
9115 #define PROC_SERVICE_IS_OLD 1
9120 echo "$ac_t""no" 1>&6
9124 echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
9125 echo "configure:9126: checking for AiX thread debugging library" >&5
9126 if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
9127 echo $ac_n "(cached) $ac_c" 1>&6
9129 cat > conftest.$ac_ext <<EOF
9130 #line 9131 "configure"
9131 #include "confdefs.h"
9132 #include <sys/pthdebug.h>
9134 #ifndef PTHDB_VERSION_3
9139 if { (eval echo configure:9140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9141 gdb_cv_have_aix_thread_debug=yes
9143 echo "configure: failed program was:" >&5
9144 cat conftest.$ac_ext >&5
9146 gdb_cv_have_aix_thread_debug=no
9151 echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
9152 if test $gdb_cv_have_aix_thread_debug = yes; then
9153 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
9154 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
9155 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
9162 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
9163 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
9164 echo "configure:9165: checking whether <thread_db.h> has TD_NOTALLOC" >&5
9165 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
9166 echo $ac_n "(cached) $ac_c" 1>&6
9168 cat > conftest.$ac_ext <<EOF
9169 #line 9170 "configure"
9170 #include "confdefs.h"
9171 #include <thread_db.h>
9173 int i = TD_NOTALLOC;
9176 if { (eval echo configure:9177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9178 gdb_cv_thread_db_h_has_td_notalloc=yes
9180 echo "configure: failed program was:" >&5
9181 cat conftest.$ac_ext >&5
9183 gdb_cv_thread_db_h_has_td_notalloc=no
9190 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
9192 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
9193 cat >> confdefs.h <<\EOF
9194 #define THREAD_DB_HAS_TD_NOTALLOC 1
9199 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
9200 echo $ac_n "checking whether <sys/syscall.h> has __NR_tkill""... $ac_c" 1>&6
9201 echo "configure:9202: checking whether <sys/syscall.h> has __NR_tkill" >&5
9202 if eval "test \"`echo '$''{'gdb_cv_sys_syscall_h_has_tkill'+set}'`\" = set"; then
9203 echo $ac_n "(cached) $ac_c" 1>&6
9205 cat > conftest.$ac_ext <<EOF
9206 #line 9207 "configure"
9207 #include "confdefs.h"
9208 #include <sys/syscall.h>
9213 if { (eval echo configure:9214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9215 gdb_cv_sys_syscall_h_has_tkill=yes
9217 echo "configure: failed program was:" >&5
9218 cat conftest.$ac_ext >&5
9220 gdb_cv_sys_syscall_h_has_tkill=no
9227 echo "$ac_t""$gdb_cv_sys_syscall_h_has_tkill" 1>&6
9229 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
9230 cat >> confdefs.h <<\EOF
9231 #define HAVE_TKILL_SYSCALL 1
9237 # Check whether --with-sysroot or --without-sysroot was given.
9238 if test "${with_sysroot+set}" = set; then
9239 withval="$with_sysroot"
9241 case ${with_sysroot} in
9242 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
9243 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
9246 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
9248 if test "x$exec_prefix" = xNONE; then
9249 if test "x$prefix" = xNONE; then
9250 test_prefix=/usr/local
9255 test_prefix=$exec_prefix
9257 case ${TARGET_SYSTEM_ROOT} in
9258 "${test_prefix}"|"${test_prefix}/"*|\
9259 '${exec_prefix}'|'${exec_prefix}/'*)
9260 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
9261 TARGET_SYSTEM_ROOT_DEFINE="$t"
9268 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
9275 # NOTE: Don't add -Wall or -Wunused, they both include
9276 # -Wunused-parameter which reports bogus warnings.
9277 # NOTE: If you add to this list, remember to update
9278 # gdb/doc/gdbint.texinfo.
9279 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
9280 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
9281 -Wunused-label -Wunused-function"
9282 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
9283 # -Wunused-function -Wunused-variable -Wunused-value
9284 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
9285 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
9286 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
9287 # -Woverloaded-virtual -Winline -Werror"
9288 # Check whether --enable-build-warnings or --disable-build-warnings was given.
9289 if test "${enable_build_warnings+set}" = set; then
9290 enableval="$enable_build_warnings"
9291 case "${enableval}" in
9293 no) build_warnings="-w";;
9294 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9295 build_warnings="${build_warnings} ${t}";;
9296 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9297 build_warnings="${t} ${build_warnings}";;
9298 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9300 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
9301 echo "Setting compiler warning flags = $build_warnings" 6>&1
9304 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
9305 if test "${enable_gdb_build_warnings+set}" = set; then
9306 enableval="$enable_gdb_build_warnings"
9307 case "${enableval}" in
9309 no) build_warnings="-w";;
9310 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9311 build_warnings="${build_warnings} ${t}";;
9312 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9313 build_warnings="${t} ${build_warnings}";;
9314 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9316 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
9317 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
9322 if test "x${build_warnings}" != x -a "x$GCC" = xyes
9324 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
9325 echo "configure:9326: checking compiler warning flags" >&5
9326 # Separate out the -Werror flag as some files just cannot be
9327 # compiled with it enabled.
9328 for w in ${build_warnings}; do
9330 -Werr*) WERROR_CFLAGS=-Werror ;;
9331 *) # Check that GCC accepts it
9332 saved_CFLAGS="$CFLAGS"
9334 cat > conftest.$ac_ext <<EOF
9335 #line 9336 "configure"
9336 #include "confdefs.h"
9342 if { (eval echo configure:9343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9344 WARN_CFLAGS="${WARN_CFLAGS} $w"
9346 echo "configure: failed program was:" >&5
9347 cat conftest.$ac_ext >&5
9350 CFLAGS="$saved_CFLAGS"
9353 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
9358 # In the Cygwin environment, we need some additional flags.
9359 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
9360 echo "configure:9361: checking for cygwin" >&5
9361 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
9362 echo $ac_n "(cached) $ac_c" 1>&6
9364 cat > conftest.$ac_ext <<EOF
9365 #line 9366 "configure"
9366 #include "confdefs.h"
9368 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
9372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9373 egrep "lose" >/dev/null 2>&1; then
9375 gdb_cv_os_cygwin=yes
9384 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
9387 SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o"
9389 *go32* ) SER_HARDWIRE=ser-go32.o ;;
9390 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
9394 # libreadline needs libuser32.a in a cygwin environment
9396 if test x$gdb_cv_os_cygwin = xyes; then
9397 WIN32LIBS="-luser32"
9399 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
9405 LIBGUI="../libgui/src/libgui.a"
9406 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
9417 if test "${enable_gdbtk}" = "yes"; then
9419 # Gdbtk must have an absolute path to srcdir in order to run
9420 # properly when not installed.
9428 # Ok, lets find the tcl configuration
9429 # First, look for one uninstalled.
9430 # the alternative search directory is invoked by --with-tclconfig
9433 if test x"${no_tcl}" = x ; then
9434 # we reset no_tcl in case something fails here
9436 # Check whether --with-tclconfig or --without-tclconfig was given.
9437 if test "${with_tclconfig+set}" = set; then
9438 withval="$with_tclconfig"
9439 with_tclconfig=${withval}
9442 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
9443 echo "configure:9444: checking for Tcl configuration" >&5
9444 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
9445 echo $ac_n "(cached) $ac_c" 1>&6
9449 # First check to see if --with-tclconfig was specified.
9450 if test x"${with_tclconfig}" != x ; then
9451 if test -f "${with_tclconfig}/tclConfig.sh" ; then
9452 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
9454 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
9458 # then check for a private Tcl installation
9459 if test x"${ac_cv_c_tclconfig}" = x ; then
9462 `ls -dr ../tcl[7-9]* 2>/dev/null` \
9464 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
9466 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
9467 if test -f "$i/${configdir}/tclConfig.sh" ; then
9468 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
9473 # check in a few common install locations
9474 if test x"${ac_cv_c_tclconfig}" = x ; then
9475 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9476 if test -f "$i/tclConfig.sh" ; then
9477 ac_cv_c_tclconfig=`(cd $i; pwd)`
9482 # check in a few other private locations
9483 if test x"${ac_cv_c_tclconfig}" = x ; then
9486 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
9487 if test -f "$i/${configdir}/tclConfig.sh" ; then
9488 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
9496 if test x"${ac_cv_c_tclconfig}" = x ; then
9497 TCLCONFIG="# no Tcl configs found"
9498 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
9501 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
9502 echo "$ac_t""found $TCLCONFIG" 1>&6
9506 if test -z "${no_tcl}"; then
9537 # Ok, lets find the tk configuration
9538 # First, look for one uninstalled.
9539 # the alternative search directory is invoked by --with-tkconfig
9542 if test x"${no_tk}" = x ; then
9543 # we reset no_tk in case something fails here
9545 # Check whether --with-tkconfig or --without-tkconfig was given.
9546 if test "${with_tkconfig+set}" = set; then
9547 withval="$with_tkconfig"
9548 with_tkconfig=${withval}
9551 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
9552 echo "configure:9553: checking for Tk configuration" >&5
9553 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
9554 echo $ac_n "(cached) $ac_c" 1>&6
9558 # First check to see if --with-tkconfig was specified.
9559 if test x"${with_tkconfig}" != x ; then
9560 if test -f "${with_tkconfig}/tkConfig.sh" ; then
9561 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
9563 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
9567 # then check for a private Tk library
9568 if test x"${ac_cv_c_tkconfig}" = x ; then
9571 `ls -dr ../tk[4-9]* 2>/dev/null` \
9573 `ls -dr ../../tk[4-9]* 2>/dev/null` \
9575 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
9576 if test -f "$i/${configdir}/tkConfig.sh" ; then
9577 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
9582 # check in a few common install locations
9583 if test x"${ac_cv_c_tkconfig}" = x ; then
9584 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9585 if test -f "$i/tkConfig.sh" ; then
9586 ac_cv_c_tkconfig=`(cd $i; pwd)`
9591 # check in a few other private locations
9592 if test x"${ac_cv_c_tkconfig}" = x ; then
9595 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
9596 if test -f "$i/${configdir}/tkConfig.sh" ; then
9597 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
9605 if test x"${ac_cv_c_tkconfig}" = x ; then
9606 TKCONFIG="# no Tk configs found"
9607 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
9610 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
9611 echo "$ac_t""found $TKCONFIG" 1>&6
9617 # now look for Tcl library stuff
9628 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
9630 # If $no_tk is nonempty, then we can't do Tk, and there is no
9631 # point to doing Tcl.
9632 if test -z "${no_tk}"; then
9634 if test -f "$TKCONFIG" ; then
9652 # Ok, lets find the tcl source trees so we can use the headers
9653 # Warning: transition of version 9 to 10 will break this algorithm
9654 # because 10 sorts before 9. We also look for just tcl. We have to
9655 # be careful that we don't match stuff like tclX by accident.
9656 # the alternative search directory is involked by --with-tclinclude
9660 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
9661 echo "configure:9662: checking for Tcl private headers. dir=${configdir}" >&5
9662 # Check whether --with-tclinclude or --without-tclinclude was given.
9663 if test "${with_tclinclude+set}" = set; then
9664 withval="$with_tclinclude"
9665 with_tclinclude=${withval}
9668 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
9669 echo $ac_n "(cached) $ac_c" 1>&6
9672 # first check to see if --with-tclinclude was specified
9673 if test x"${with_tclinclude}" != x ; then
9674 if test -f ${with_tclinclude}/tclInt.h ; then
9675 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
9676 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
9677 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
9679 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9683 # next check if it came with Tcl configuration file
9684 if test x"${ac_cv_c_tclconfig}" = x ; then
9685 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
9686 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
9690 # next check in private source directory
9692 # since ls returns lowest version numbers first, reverse its output
9693 if test x"${ac_cv_c_tclh}" = x ; then
9696 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
9697 ${srcdir}/../../tcl \
9698 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
9699 ${srcdir}/../../../tcl \
9700 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
9701 if test -f $i/generic/tclInt.h ; then
9702 ac_cv_c_tclh=`(cd $i/generic; pwd)`
9707 # finally check in a few common install locations
9709 # since ls returns lowest version numbers first, reverse its output
9710 if test x"${ac_cv_c_tclh}" = x ; then
9712 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
9713 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
9714 /usr/local/src/tcl \
9715 /usr/local/lib/tcl \
9716 ${prefix}/include ; do
9717 if test -f $i/generic/tclInt.h ; then
9718 ac_cv_c_tclh=`(cd $i/generic; pwd)`
9723 # see if one is installed
9724 if test x"${ac_cv_c_tclh}" = x ; then
9725 ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
9726 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
9727 echo "configure:9728: checking for tclInt.h" >&5
9728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9729 echo $ac_n "(cached) $ac_c" 1>&6
9731 cat > conftest.$ac_ext <<EOF
9732 #line 9733 "configure"
9733 #include "confdefs.h"
9736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9737 { (eval echo configure:9738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9739 if test -z "$ac_err"; then
9741 eval "ac_cv_header_$ac_safe=yes"
9744 echo "configure: failed program was:" >&5
9745 cat conftest.$ac_ext >&5
9747 eval "ac_cv_header_$ac_safe=no"
9751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9752 echo "$ac_t""yes" 1>&6
9753 ac_cv_c_tclh=installed
9755 echo "$ac_t""no" 1>&6
9763 if test x"${ac_cv_c_tclh}" = x ; then
9764 TCLHDIR="# no Tcl private headers found"
9765 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
9767 if test x"${ac_cv_c_tclh}" != x ; then
9769 if test x"${ac_cv_c_tclh}" = x"installed" ; then
9770 echo "$ac_t""is installed" 1>&6
9773 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
9774 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
9775 TCLHDIR="-I${ac_cv_c_tclh}"
9783 # Ok, lets find the tk source trees so we can use the headers
9784 # If the directory (presumably symlink) named "tk" exists, use that one
9785 # in preference to any others. Same logic is used when choosing library
9786 # and again with Tcl. The search order is the best place to look first, then in
9787 # decreasing significance. The loop breaks if the trigger file is found.
9788 # Note the gross little conversion here of srcdir by cd'ing to the found
9789 # directory. This converts the path from a relative to an absolute, so
9790 # recursive cache variables for the path will work right. We check all
9791 # the possible paths in one loop rather than many seperate loops to speed
9793 # the alternative search directory is involked by --with-tkinclude
9796 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
9797 echo "configure:9798: checking for Tk private headers" >&5
9798 # Check whether --with-tkinclude or --without-tkinclude was given.
9799 if test "${with_tkinclude+set}" = set; then
9800 withval="$with_tkinclude"
9801 with_tkinclude=${withval}
9804 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
9805 echo $ac_n "(cached) $ac_c" 1>&6
9808 # first check to see if --with-tkinclude was specified
9809 if test x"${with_tkinclude}" != x ; then
9810 if test -f ${with_tkinclude}/tk.h ; then
9811 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
9812 elif test -f ${with_tkinclude}/generic/tk.h ; then
9813 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
9815 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9819 # next check if it came with Tk configuration file
9820 if test x"${ac_cv_c_tkconfig}" = x ; then
9821 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
9822 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
9826 # next check in private source directory
9828 # since ls returns lowest version numbers first, reverse its output
9829 if test x"${ac_cv_c_tkh}" = x ; then
9832 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
9833 ${srcdir}/../../tk \
9834 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
9835 ${srcdir}/../../../tk \
9836 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
9837 if test -f $i/generic/tk.h ; then
9838 ac_cv_c_tkh=`(cd $i/generic; pwd)`
9843 # finally check in a few common install locations
9845 # since ls returns lowest version numbers first, reverse its output
9846 if test x"${ac_cv_c_tkh}" = x ; then
9848 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
9849 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
9852 ${prefix}/include ; do
9853 if test -f $i/generic/tk.h ; then
9854 ac_cv_c_tkh=`(cd $i/generic; pwd)`
9859 # see if one is installed
9860 if test x"${ac_cv_c_tkh}" = x ; then
9861 ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
9862 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
9863 echo "configure:9864: checking for tk.h" >&5
9864 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9865 echo $ac_n "(cached) $ac_c" 1>&6
9867 cat > conftest.$ac_ext <<EOF
9868 #line 9869 "configure"
9869 #include "confdefs.h"
9872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9873 { (eval echo configure:9874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9875 if test -z "$ac_err"; then
9877 eval "ac_cv_header_$ac_safe=yes"
9880 echo "configure: failed program was:" >&5
9881 cat conftest.$ac_ext >&5
9883 eval "ac_cv_header_$ac_safe=no"
9887 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9888 echo "$ac_t""yes" 1>&6
9889 ac_cv_c_tkh=installed
9891 echo "$ac_t""no" 1>&6
9899 if test x"${ac_cv_c_tkh}" != x ; then
9901 if test x"${ac_cv_c_tkh}" = x"installed" ; then
9902 echo "$ac_t""is installed" 1>&6
9905 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
9906 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
9907 TKHDIR="-I${ac_cv_c_tkh}"
9910 TKHDIR="# no Tk directory found"
9911 echo "configure: warning: Can't find Tk private headers" 1>&2
9918 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9919 echo "configure:9920: checking for Itcl private headers. srcdir=${srcdir}" >&5
9920 if test x"${ac_cv_c_itclh}" = x ; then
9921 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
9922 if test -f $i/generic/itcl.h ; then
9923 ac_cv_c_itclh=`(cd $i/generic; pwd)`
9928 if test x"${ac_cv_c_itclh}" = x ; then
9929 ITCLHDIR="# no Itcl private headers found"
9930 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
9932 if test x"${ac_cv_c_itclh}" != x ; then
9933 ITCLHDIR="-I${ac_cv_c_itclh}"
9935 # should always be here
9936 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
9941 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9942 echo "configure:9943: checking for Itk private headers. srcdir=${srcdir}" >&5
9943 if test x"${ac_cv_c_itkh}" = x ; then
9944 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
9945 if test -f $i/generic/itk.h ; then
9946 ac_cv_c_itkh=`(cd $i/generic; pwd)`
9951 if test x"${ac_cv_c_itkh}" = x ; then
9952 ITKHDIR="# no Itk private headers found"
9953 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
9955 if test x"${ac_cv_c_itkh}" != x ; then
9956 ITKHDIR="-I${ac_cv_c_itkh}"
9958 # should always be here
9959 # ITKLIB="../itcl/itk/unix/libitk.a"
9965 # now look for Tk library stuff
9976 TK_DEPS="${tkdir}${TK_LIB_FILE}"
9978 # now look for Itcl library stuff
9982 # Ok, lets find the itcl configuration
9983 # First, look for one uninstalled.
9984 # the alternative search directory is invoked by --with-itclconfig
9987 if test x"${no_itcl}" = x ; then
9988 # we reset no_itcl in case something fails here
9990 # Check whether --with-itclconfig or --without-itclconfig was given.
9991 if test "${with_itclconfig+set}" = set; then
9992 withval="$with_itclconfig"
9993 with_itclconfig=${withval}
9996 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
9997 echo "configure:9998: checking for Itcl configuration" >&5
9998 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
9999 echo $ac_n "(cached) $ac_c" 1>&6
10003 # First check to see if --with-itclconfig was specified.
10004 if test x"${with_itclconfig}" != x ; then
10005 if test -f "${with_itclconfig}/itclConfig.sh" ; then
10006 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
10008 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
10012 # then check for a private Itcl library
10013 if test x"${ac_cv_c_itclconfig}" = x ; then
10016 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
10018 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
10020 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
10021 if test -f "$i/itclConfig.sh" ; then
10022 ac_cv_c_itclconfig=`(cd $i; pwd)`
10027 # check in a few common install locations
10028 if test x"${ac_cv_c_itclconfig}" = x ; then
10029 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10030 if test -f "$i/itclConfig.sh" ; then
10031 ac_cv_c_itclconfig=`(cd $i; pwd)`
10036 # check in a few other private locations
10037 if test x"${ac_cv_c_itclconfig}" = x ; then
10039 ${srcdir}/../itcl/itcl \
10040 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
10041 if test -f "$i/itclConfig.sh" ; then
10042 ac_cv_c_itclconfig=`(cd $i; pwd)`
10050 if test x"${ac_cv_c_itclconfig}" = x ; then
10051 ITCLCONFIG="# no Itcl configs found"
10052 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
10055 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
10056 echo "$ac_t""found $ITCLCONFIG" 1>&6
10060 if test -z "${no_itcl}"; then
10062 if test -f "$ITCLCONFIG" ; then
10077 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
10078 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
10082 # now look for Itk library stuff
10085 # Ok, lets find the itk configuration
10086 # First, look for one uninstalled.
10087 # the alternative search directory is invoked by --with-itkconfig
10090 if test x"${no_itk}" = x ; then
10091 # we reset no_itk in case something fails here
10093 # Check whether --with-itkconfig or --without-itkconfig was given.
10094 if test "${with_itkconfig+set}" = set; then
10095 withval="$with_itkconfig"
10096 with_itkconfig=${withval}
10099 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
10100 echo "configure:10101: checking for Itk configuration" >&5
10101 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
10102 echo $ac_n "(cached) $ac_c" 1>&6
10106 # First check to see if --with-itkconfig was specified.
10107 if test x"${with_itkconfig}" != x ; then
10108 if test -f "${with_itkconfig}/itkConfig.sh" ; then
10109 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
10111 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
10115 # then check for a private Itk library
10116 if test x"${ac_cv_c_itkconfig}" = x ; then
10119 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
10121 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
10123 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
10124 if test -f "$i/itkConfig.sh" ; then
10125 ac_cv_c_itkconfig=`(cd $i; pwd)`
10130 # check in a few common install locations
10131 if test x"${ac_cv_c_itkconfig}" = x ; then
10132 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10133 if test -f "$i/itkConfig.sh" ; then
10134 ac_cv_c_itkconfig=`(cd $i; pwd)`
10139 # check in a few other private locations
10140 if test x"${ac_cv_c_itkconfig}" = x ; then
10142 ${srcdir}/../itcl/itk \
10143 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
10144 if test -f "$i/itkConfig.sh" ; then
10145 ac_cv_c_itkconfig=`(cd $i; pwd)`
10153 if test x"${ac_cv_c_itkconfig}" = x ; then
10154 ITKCONFIG="# no Itk configs found"
10155 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
10158 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
10159 echo "$ac_t""found $ITKCONFIG" 1>&6
10164 if test -z "${no_itcl}"; then
10166 if test -f "$ITKCONFIG" ; then
10181 ITKLIB="${ITK_BUILD_LIB_SPEC}"
10182 ITK_DEPS="${ITK_LIB_FULL_PATH}"
10185 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
10186 # Tcl/Tk 8.1 require -fwritable strings. I don't
10187 # know whether 8.2 will or not, but I bet it will.
10188 # I don't have to worry about 7.x since we don't support it.
10190 if test "$GCC" = "yes"; then
10191 if test "$TCL_VERSION" != "8.0" ; then
10192 GDBTK_CFLAGS="-fwritable-strings"
10196 # Include some libraries that Tcl and Tk want.
10197 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
10198 # Yes, the ordering seems wrong here. But it isn't.
10199 # TK_LIBS is the list of libraries that need to be linked
10200 # after Tcl/Tk. Note that this isn't put into LIBS. If it
10201 # were in LIBS then any link tests after this point would
10202 # try to include things like `$(LIBGUI)', which wouldn't work.
10203 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
10205 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
10206 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
10207 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
10208 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
10209 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
10210 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
10211 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
10213 if test x$gdb_cv_os_cygwin = xyes; then
10214 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
10215 WIN32LDAPP="-Wl,--subsystem,console"
10216 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
10221 configdirs="${configdirs} gdbtk"
10237 # If we find X, set shell vars x_includes and x_libraries to the
10238 # paths, otherwise set no_x=yes.
10239 # Uses ac_ vars as temps to allow command line to override cache and checks.
10240 # --without-x overrides everything else, but does not touch the cache.
10241 echo $ac_n "checking for X""... $ac_c" 1>&6
10242 echo "configure:10243: checking for X" >&5
10244 # Check whether --with-x or --without-x was given.
10245 if test "${with_x+set}" = set; then
10250 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10251 if test "x$with_x" = xno; then
10252 # The user explicitly disabled X.
10255 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10256 # Both variables are already set.
10259 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10260 echo $ac_n "(cached) $ac_c" 1>&6
10262 # One or both of the vars are not set, and there is no cached value.
10263 ac_x_includes=NO ac_x_libraries=NO
10265 if mkdir conftestdir; then
10267 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10268 cat > Imakefile <<'EOF'
10270 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10272 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10273 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10274 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10275 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10276 for ac_extension in a so sl; do
10277 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
10278 test -f $ac_im_libdir/libX11.$ac_extension; then
10279 ac_im_usrlibdir=$ac_im_libdir; break
10282 # Screen out bogus values from the imake configuration. They are
10283 # bogus both because they are the default anyway, and because
10284 # using them would break gcc on systems where it needs fixed includes.
10285 case "$ac_im_incroot" in
10287 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
10289 case "$ac_im_usrlibdir" in
10290 /usr/lib | /lib) ;;
10291 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
10298 if test "$ac_x_includes" = NO; then
10299 # Guess where to find include files, by looking for this one X11 .h file.
10300 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
10302 # First, try using that file with no special directory specified.
10303 cat > conftest.$ac_ext <<EOF
10304 #line 10305 "configure"
10305 #include "confdefs.h"
10306 #include <$x_direct_test_include>
10308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10309 { (eval echo configure:10310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10311 if test -z "$ac_err"; then
10313 # We can compile using X headers with no special include directory.
10317 echo "configure: failed program was:" >&5
10318 cat conftest.$ac_ext >&5
10320 # Look for the header file in a standard set of common directories.
10321 # Check X11 before X11Rn because it is often a symlink to the current release.
10324 /usr/X11R6/include \
10325 /usr/X11R5/include \
10326 /usr/X11R4/include \
10329 /usr/include/X11R6 \
10330 /usr/include/X11R5 \
10331 /usr/include/X11R4 \
10333 /usr/local/X11/include \
10334 /usr/local/X11R6/include \
10335 /usr/local/X11R5/include \
10336 /usr/local/X11R4/include \
10338 /usr/local/include/X11 \
10339 /usr/local/include/X11R6 \
10340 /usr/local/include/X11R5 \
10341 /usr/local/include/X11R4 \
10343 /usr/X386/include \
10344 /usr/x386/include \
10345 /usr/XFree86/include/X11 \
10348 /usr/local/include \
10349 /usr/unsupported/include \
10350 /usr/athena/include \
10351 /usr/local/x11r5/include \
10352 /usr/lpp/Xamples/include \
10354 /usr/openwin/include \
10355 /usr/openwin/share/include \
10358 if test -r "$ac_dir/$x_direct_test_include"; then
10359 ac_x_includes=$ac_dir
10365 fi # $ac_x_includes = NO
10367 if test "$ac_x_libraries" = NO; then
10368 # Check for the libraries.
10370 test -z "$x_direct_test_library" && x_direct_test_library=Xt
10371 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10373 # See if we find them without any special options.
10374 # Don't add to $LIBS permanently.
10375 ac_save_LIBS="$LIBS"
10376 LIBS="-l$x_direct_test_library $LIBS"
10377 cat > conftest.$ac_ext <<EOF
10378 #line 10379 "configure"
10379 #include "confdefs.h"
10382 ${x_direct_test_function}()
10385 if { (eval echo configure:10386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10387 LIBS="$ac_save_LIBS"
10388 # We can link X programs with no special library path.
10391 echo "configure: failed program was:" >&5
10392 cat conftest.$ac_ext >&5
10394 LIBS="$ac_save_LIBS"
10395 # First see if replacing the include by lib works.
10396 # Check X11 before X11Rn because it is often a symlink to the current release.
10397 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10408 /usr/local/X11/lib \
10409 /usr/local/X11R6/lib \
10410 /usr/local/X11R5/lib \
10411 /usr/local/X11R4/lib \
10413 /usr/local/lib/X11 \
10414 /usr/local/lib/X11R6 \
10415 /usr/local/lib/X11R5 \
10416 /usr/local/lib/X11R4 \
10420 /usr/XFree86/lib/X11 \
10424 /usr/unsupported/lib \
10426 /usr/local/x11r5/lib \
10427 /usr/lpp/Xamples/lib \
10431 /usr/openwin/share/lib \
10434 for ac_extension in a so sl; do
10435 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
10436 ac_x_libraries=$ac_dir
10443 fi # $ac_x_libraries = NO
10445 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
10446 # Didn't find X anywhere. Cache the known absence of X.
10447 ac_cv_have_x="have_x=no"
10449 # Record where we found X for the cache.
10450 ac_cv_have_x="have_x=yes \
10451 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10455 eval "$ac_cv_have_x"
10458 if test "$have_x" != yes; then
10459 echo "$ac_t""$have_x" 1>&6
10462 # If each of the values was on the command line, it overrides each guess.
10463 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10464 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10465 # Update the cache value to reflect the command line values.
10466 ac_cv_have_x="have_x=yes \
10467 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10468 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10473 # Unlike the sim directory, whether a simulator is linked is controlled by
10474 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
10475 # This code just checks for a few cases where we'd like to ignore those
10476 # definitions, even when they're present in the '.mt' file. These cases
10477 # are when --disable-sim is specified, or if the simulator directory is
10478 # not part of the source tree.
10480 # Check whether --enable-sim or --disable-sim was given.
10481 if test "${enable_sim+set}" = set; then
10482 enableval="$enable_sim"
10483 echo "enable_sim = $enable_sim";
10484 echo "enableval = ${enableval}";
10485 case "${enableval}" in
10486 yes) ignore_sim=false ;;
10487 no) ignore_sim=true ;;
10488 *) ignore_sim=false ;;
10495 if test ! -d "${srcdir}/../sim"; then
10499 if test "${ignore_sim}" = "true"; then
10501 IGNORE_SIM_OBS="SIM_OBS="
10505 cat >> confdefs.h <<\EOF
10524 # target_subdir is used by the testsuite to find the target libraries.
10526 if test "${host}" != "${target}"; then
10527 target_subdir="${target_alias}/"
10532 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
10533 if test ! -f ${host_makefile_frag}; then
10534 # When building a native debuger the .mh file containing things
10535 # like NATDEPFILES is needed. Cross debuggers don't need .mh
10536 # since it no longer contains anything useful.
10537 if test "${target}" = "${host}"; then
10538 { echo "configure: error: "*** Gdb does not support native target ${host}"" 1>&2; exit 1; }
10540 host_makefile_frag=/dev/null
10543 frags="$frags $host_makefile_frag"
10545 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
10546 if test ! -f ${target_makefile_frag}; then
10547 { echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
10549 frags="$frags $target_makefile_frag"
10556 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10557 ' ${host_makefile_frag}`
10559 targetfile=`sed -n '
10560 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10561 ' ${target_makefile_frag}`
10563 if test "${target}" = "${host}"; then
10564 # We pick this up from the host configuration file (.mh) because we
10565 # do not have a native configuration Makefile fragment.
10566 nativefile=`sed -n '
10567 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10568 ' ${host_makefile_frag}`
10572 if test x"${gdb_osabi}" != x ; then
10573 cat >> confdefs.h <<EOF
10574 #define GDB_OSABI_DEFAULT $gdb_osabi
10579 # Enable multi-ice-gdb-server.
10580 # Check whether --enable-multi-ice or --disable-multi-ice was given.
10581 if test "${enable_multi_ice+set}" = set; then
10582 enableval="$enable_multi_ice"
10586 *) { echo "configure: error: bad value $enableval for --enable-multi-ice" 1>&2; exit 1; } ;;
10590 if test "x$enable_multi_ice" = xyes; then
10591 configdirs="$configdirs multi-ice"
10594 # We only build gdbserver automatically if host and target are the same.
10595 if test "x$target" = "x$host"; then
10596 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
10597 echo "configure:10598: checking whether gdbserver is supported on this host" >&5
10598 if test "x$build_gdbserver" = xyes; then
10599 configdirs="$configdirs gdbserver"
10600 echo "$ac_t""yes" 1>&6
10602 echo "$ac_t""no" 1>&6
10606 subdirs="doc testsuite $configdirs"
10609 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
10610 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
10618 if test "${hostfile}" != ""; then
10620 GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}"
10621 files="${files} ${GDB_XM_FILE}"
10622 links="${links} xm.h"
10623 cat >> confdefs.h <<EOF
10624 #define GDB_XM_FILE ${GDB_XM_FILE}
10632 if test "${targetfile}" != ""; then
10634 GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}"
10635 files="${files} ${GDB_TM_FILE}"
10636 links="${links} tm.h"
10637 cat >> confdefs.h <<EOF
10638 #define GDB_TM_FILE ${GDB_TM_FILE}
10646 if test "${nativefile}" != ""; then
10648 GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}"
10649 files="${files} ${GDB_NM_FILE}"
10650 links="${links} nm.h"
10651 cat >> confdefs.h <<EOF
10652 #define GDB_NM_FILE ${GDB_NM_FILE}
10660 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
10661 echo "configure:10662: checking for Cygwin environment" >&5
10662 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
10663 echo $ac_n "(cached) $ac_c" 1>&6
10665 cat > conftest.$ac_ext <<EOF
10666 #line 10667 "configure"
10667 #include "confdefs.h"
10672 #define __CYGWIN__ __CYGWIN32__
10677 if { (eval echo configure:10678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10681 echo "configure: failed program was:" >&5
10682 cat conftest.$ac_ext >&5
10690 echo "$ac_t""$ac_cv_cygwin" 1>&6
10692 test "$ac_cv_cygwin" = yes && CYGWIN=yes
10693 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
10694 echo "configure:10695: checking for mingw32 environment" >&5
10695 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
10696 echo $ac_n "(cached) $ac_c" 1>&6
10698 cat > conftest.$ac_ext <<EOF
10699 #line 10700 "configure"
10700 #include "confdefs.h"
10703 return __MINGW32__;
10706 if { (eval echo configure:10707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10710 echo "configure: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10719 echo "$ac_t""$ac_cv_mingw32" 1>&6
10721 test "$ac_cv_mingw32" = yes && MINGW32=yes
10724 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
10725 echo "configure:10726: checking for executable suffix" >&5
10726 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
10727 echo $ac_n "(cached) $ac_c" 1>&6
10729 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
10733 echo 'int main () { return 0; }' > conftest.$ac_ext
10735 if { (eval echo configure:10736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
10736 for file in conftest.*; do
10738 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
10739 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
10743 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
10746 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
10751 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
10752 echo "$ac_t""${ac_cv_exeext}" 1>&6
10757 cat >> confdefs.h <<\EOF
10758 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
10764 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10765 if test "${with_libiconv_prefix+set}" = set; then
10766 withval="$with_libiconv_prefix"
10768 for dir in `echo "$withval" | tr : ' '`; do
10769 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
10770 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
10776 echo $ac_n "checking for iconv""... $ac_c" 1>&6
10777 echo "configure:10778: checking for iconv" >&5
10778 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
10779 echo $ac_n "(cached) $ac_c" 1>&6
10782 am_cv_func_iconv="no, consider installing GNU libiconv"
10784 cat > conftest.$ac_ext <<EOF
10785 #line 10786 "configure"
10786 #include "confdefs.h"
10787 #include <stdlib.h>
10790 iconv_t cd = iconv_open("","");
10791 iconv(cd,NULL,NULL,NULL,NULL);
10795 if { (eval echo configure:10796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10797 am_cv_func_iconv=yes
10799 echo "configure: failed program was:" >&5
10800 cat conftest.$ac_ext >&5
10803 if test "$am_cv_func_iconv" != yes; then
10804 am_save_LIBS="$LIBS"
10805 LIBS="$LIBS -liconv"
10806 cat > conftest.$ac_ext <<EOF
10807 #line 10808 "configure"
10808 #include "confdefs.h"
10809 #include <stdlib.h>
10812 iconv_t cd = iconv_open("","");
10813 iconv(cd,NULL,NULL,NULL,NULL);
10817 if { (eval echo configure:10818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10819 am_cv_lib_iconv=yes
10820 am_cv_func_iconv=yes
10822 echo "configure: failed program was:" >&5
10823 cat conftest.$ac_ext >&5
10826 LIBS="$am_save_LIBS"
10831 echo "$ac_t""$am_cv_func_iconv" 1>&6
10832 if test "$am_cv_func_iconv" = yes; then
10833 cat >> confdefs.h <<\EOF
10834 #define HAVE_ICONV 1
10837 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
10838 echo "configure:10839: checking for iconv declaration" >&5
10839 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
10840 echo $ac_n "(cached) $ac_c" 1>&6
10843 cat > conftest.$ac_ext <<EOF
10844 #line 10845 "configure"
10845 #include "confdefs.h"
10847 #include <stdlib.h>
10853 #if defined(__STDC__) || defined(__cplusplus)
10854 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10863 if { (eval echo configure:10864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10865 am_cv_proto_iconv_arg1=""
10867 echo "configure: failed program was:" >&5
10868 cat conftest.$ac_ext >&5
10870 am_cv_proto_iconv_arg1="const"
10873 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10876 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10877 echo "$ac_t""${ac_t:-
10878 }$am_cv_proto_iconv" 1>&6
10879 cat >> confdefs.h <<EOF
10880 #define ICONV_CONST $am_cv_proto_iconv_arg1
10885 if test "$am_cv_lib_iconv" = yes; then
10892 cat > confcache <<\EOF
10893 # This file is a shell script that caches the results of configure
10894 # tests run on this system so they can be shared between configure
10895 # scripts and configure runs. It is not useful on other systems.
10896 # If it contains results you don't want to keep, you may remove or edit it.
10898 # By default, configure uses ./config.cache as the cache file,
10899 # creating it if it does not exist already. You can give configure
10900 # the --cache-file=FILE option to use a different cache file; that is
10901 # what configure does when it calls configure scripts in
10902 # subdirectories, so they share the cache.
10903 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10904 # config.status only pays attention to the cache file if you give it the
10905 # --recheck option to rerun configure.
10908 # The following way of writing the cache mishandles newlines in values,
10909 # but we know of no workaround that is simple, portable, and efficient.
10910 # So, don't put newlines in cache variables' values.
10911 # Ultrix sh set writes to stderr and can't be redirected directly,
10912 # and sets the high bit in the cache file unless we assign to the vars.
10914 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10916 # `set' does not quote correctly, so add quotes (double-quote substitution
10917 # turns \\\\ into \\, and sed turns \\ into \).
10919 -e "s/'/'\\\\''/g" \
10920 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10923 # `set' quotes correctly as required by POSIX, so do not add quotes.
10924 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10927 if cmp -s $cache_file confcache; then
10930 if test -w $cache_file; then
10931 echo "updating cache $cache_file"
10932 cat confcache > $cache_file
10934 echo "not updating unwritable cache $cache_file"
10939 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10941 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10942 # Let make expand exec_prefix.
10943 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10945 # Any assignment to VPATH causes Sun make to only execute
10946 # the first set of double-colon rules, so remove it if not needed.
10947 # If there is a colon in the path, we need to keep it.
10948 if test "x$srcdir" = x.; then
10949 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10952 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10954 DEFS=-DHAVE_CONFIG_H
10956 # Without the "./", some shells look in PATH for config.status.
10957 : ${CONFIG_STATUS=./config.status}
10959 echo creating $CONFIG_STATUS
10960 rm -f $CONFIG_STATUS
10961 cat > $CONFIG_STATUS <<EOF
10963 # Generated automatically by configure.
10964 # Run this file to recreate the current configuration.
10965 # This directory was configured as follows,
10966 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10968 # $0 $ac_configure_args
10970 # Compiler output produced by configure, useful for debugging
10971 # configure, is in ./config.log if it exists.
10973 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10976 case "\$ac_option" in
10977 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10978 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10979 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10980 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10981 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10983 -help | --help | --hel | --he | --h)
10984 echo "\$ac_cs_usage"; exit 0 ;;
10985 *) echo "\$ac_cs_usage"; exit 1 ;;
10989 ac_given_srcdir=$srcdir
10990 ac_given_INSTALL="$INSTALL"
10992 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10994 cat >> $CONFIG_STATUS <<EOF
10996 # Protect against being on the right side of a sed subst in config.status.
10997 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10998 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11002 s%@CFLAGS@%$CFLAGS%g
11003 s%@CPPFLAGS@%$CPPFLAGS%g
11004 s%@CXXFLAGS@%$CXXFLAGS%g
11005 s%@FFLAGS@%$FFLAGS%g
11007 s%@LDFLAGS@%$LDFLAGS%g
11009 s%@exec_prefix@%$exec_prefix%g
11010 s%@prefix@%$prefix%g
11011 s%@program_transform_name@%$program_transform_name%g
11012 s%@bindir@%$bindir%g
11013 s%@sbindir@%$sbindir%g
11014 s%@libexecdir@%$libexecdir%g
11015 s%@datadir@%$datadir%g
11016 s%@sysconfdir@%$sysconfdir%g
11017 s%@sharedstatedir@%$sharedstatedir%g
11018 s%@localstatedir@%$localstatedir%g
11019 s%@libdir@%$libdir%g
11020 s%@includedir@%$includedir%g
11021 s%@oldincludedir@%$oldincludedir%g
11022 s%@infodir@%$infodir%g
11023 s%@mandir@%$mandir%g
11024 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
11025 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
11030 s%@host_alias@%$host_alias%g
11031 s%@host_cpu@%$host_cpu%g
11032 s%@host_vendor@%$host_vendor%g
11033 s%@host_os@%$host_os%g
11034 s%@target@%$target%g
11035 s%@target_alias@%$target_alias%g
11036 s%@target_cpu@%$target_cpu%g
11037 s%@target_vendor@%$target_vendor%g
11038 s%@target_os@%$target_os%g
11040 s%@build_alias@%$build_alias%g
11041 s%@build_cpu@%$build_cpu%g
11042 s%@build_vendor@%$build_vendor%g
11043 s%@build_os@%$build_os%g
11044 s%@RANLIB@%$RANLIB%g
11045 s%@SET_MAKE@%$SET_MAKE%g
11046 s%@ALLOCA@%$ALLOCA%g
11047 s%@USE_NLS@%$USE_NLS%g
11048 s%@MSGFMT@%$MSGFMT%g
11049 s%@GMSGFMT@%$GMSGFMT%g
11050 s%@XGETTEXT@%$XGETTEXT%g
11051 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
11052 s%@CATALOGS@%$CATALOGS%g
11053 s%@CATOBJEXT@%$CATOBJEXT%g
11054 s%@DATADIRNAME@%$DATADIRNAME%g
11055 s%@GMOFILES@%$GMOFILES%g
11056 s%@INSTOBJEXT@%$INSTOBJEXT%g
11057 s%@INTLDEPS@%$INTLDEPS%g
11058 s%@INTLLIBS@%$INTLLIBS%g
11059 s%@INTLOBJS@%$INTLOBJS%g
11060 s%@POFILES@%$POFILES%g
11062 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
11064 s%@GT_YES@%$GT_YES%g
11065 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
11067 s%@subdirs@%$subdirs%g
11069 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11070 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11071 s%@INSTALL_DATA@%$INSTALL_DATA%g
11075 s%@DLLTOOL@%$DLLTOOL%g
11076 s%@WINDRES@%$WINDRES%g
11078 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
11079 s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
11080 s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
11081 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
11082 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
11083 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
11084 s%@WIN32LIBS@%$WIN32LIBS%g
11085 s%@LIBGUI@%$LIBGUI%g
11086 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
11087 s%@WIN32LDAPP@%$WIN32LDAPP%g
11088 s%@TCL_VERSION@%$TCL_VERSION%g
11089 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
11090 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
11091 s%@TCL_CC@%$TCL_CC%g
11092 s%@TCL_DEFS@%$TCL_DEFS%g
11093 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
11094 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
11095 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
11096 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
11097 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
11098 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
11099 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
11100 s%@TCL_CC_SEARCH_FLAGS@%$TCL_CC_SEARCH_FLAGS%g
11101 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
11102 s%@TCL_RANLIB@%$TCL_RANLIB%g
11103 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
11104 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
11105 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
11106 s%@TK_VERSION@%$TK_VERSION%g
11107 s%@TK_DEFS@%$TK_DEFS%g
11108 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
11109 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
11110 s%@TK_XLIBSW@%$TK_XLIBSW%g
11111 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
11112 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
11113 s%@TCLHDIR@%$TCLHDIR%g
11114 s%@TKHDIR@%$TKHDIR%g
11115 s%@ITCLHDIR@%$ITCLHDIR%g
11116 s%@ITKHDIR@%$ITKHDIR%g
11117 s%@ITCL_VERSION@%$ITCL_VERSION%g
11118 s%@ITCL_DEFS@%$ITCL_DEFS%g
11119 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
11120 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
11121 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
11122 s%@ITK_VERSION@%$ITK_VERSION%g
11123 s%@ITK_DEFS@%$ITK_DEFS%g
11124 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
11125 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
11126 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
11127 s%@X_CFLAGS@%$X_CFLAGS%g
11128 s%@X_LDFLAGS@%$X_LDFLAGS%g
11129 s%@X_LIBS@%$X_LIBS%g
11130 s%@TCL_DEPS@%$TCL_DEPS%g
11131 s%@TK_DEPS@%$TK_DEPS%g
11132 s%@ITCLLIB@%$ITCLLIB%g
11133 s%@ITCL_DEPS@%$ITCL_DEPS%g
11134 s%@ITKLIB@%$ITKLIB%g
11135 s%@ITK_DEPS@%$ITK_DEPS%g
11136 s%@GDBTKLIBS@%$GDBTKLIBS%g
11137 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
11138 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
11139 s%@IGNORE_SIM@%$IGNORE_SIM%g
11140 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
11141 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
11142 s%@PROFILE_CFLAGS@%$PROFILE_CFLAGS%g
11143 s%@CONFIG_OBS@%$CONFIG_OBS%g
11144 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
11145 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
11146 s%@CONFIG_ALL@%$CONFIG_ALL%g
11147 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
11148 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
11149 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
11150 s%@target_subdir@%$target_subdir%g
11151 /@host_makefile_frag@/r $host_makefile_frag
11152 s%@host_makefile_frag@%%g
11153 /@target_makefile_frag@/r $target_makefile_frag
11154 s%@target_makefile_frag@%%g
11159 s%@EXEEXT@%$EXEEXT%g
11160 s%@LIBICONV@%$LIBICONV%g
11165 cat >> $CONFIG_STATUS <<\EOF
11167 # Split the substitutions into bite-sized pieces for seds with
11168 # small command number limits, like on Digital OSF/1 and HP-UX.
11169 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11170 ac_file=1 # Number of current file.
11171 ac_beg=1 # First line for current file.
11172 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11175 while $ac_more_lines; do
11176 if test $ac_beg -gt 1; then
11177 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11179 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11181 if test ! -s conftest.s$ac_file; then
11182 ac_more_lines=false
11183 rm -f conftest.s$ac_file
11185 if test -z "$ac_sed_cmds"; then
11186 ac_sed_cmds="sed -f conftest.s$ac_file"
11188 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11190 ac_file=`expr $ac_file + 1`
11192 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11195 if test -z "$ac_sed_cmds"; then
11200 cat >> $CONFIG_STATUS <<EOF
11202 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
11204 cat >> $CONFIG_STATUS <<\EOF
11205 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11206 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11208 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11209 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11210 *) ac_file_in="${ac_file}.in" ;;
11213 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11215 # Remove last slash and all that follows it. Not all systems have dirname.
11216 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11217 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11218 # The file is in a subdirectory.
11219 test ! -d "$ac_dir" && mkdir "$ac_dir"
11220 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11221 # A "../" for each directory in $ac_dir_suffix.
11222 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11224 ac_dir_suffix= ac_dots=
11227 case "$ac_given_srcdir" in
11229 if test -z "$ac_dots"; then top_srcdir=.
11230 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11231 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11232 *) # Relative path.
11233 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11234 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11237 case "$ac_given_INSTALL" in
11238 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11239 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11242 echo creating "$ac_file"
11244 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11246 *Makefile*) ac_comsub="1i\\
11247 # $configure_input" ;;
11251 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11253 s%@configure_input@%$configure_input%g
11254 s%@srcdir@%$srcdir%g
11255 s%@top_srcdir@%$top_srcdir%g
11256 s%@INSTALL@%$INSTALL%g
11257 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11261 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11262 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11264 # ac_d sets the value in "#define NAME VALUE" lines.
11265 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11266 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11269 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11270 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11271 ac_uB='\([ ]\)%\1#\2define\3'
11274 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11275 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11276 ac_eB='$%\1#\2define\3'
11280 if test "${CONFIG_HEADERS+set}" != set; then
11282 cat >> $CONFIG_STATUS <<EOF
11283 CONFIG_HEADERS="config.h:config.in"
11285 cat >> $CONFIG_STATUS <<\EOF
11287 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11288 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11290 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11291 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11292 *) ac_file_in="${ac_file}.in" ;;
11295 echo creating $ac_file
11297 rm -f conftest.frag conftest.in conftest.out
11298 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11299 cat $ac_file_inputs > conftest.in
11303 # Transform confdefs.h into a sed script conftest.vals that substitutes
11304 # the proper values into config.h.in to produce config.h. And first:
11305 # Protect against being on the right side of a sed subst in config.status.
11306 # Protect against being in an unquoted here document in config.status.
11307 rm -f conftest.vals
11308 cat > conftest.hdr <<\EOF
11311 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11315 sed -n -f conftest.hdr confdefs.h > conftest.vals
11318 # This sed command replaces #undef with comments. This is necessary, for
11319 # example, in the case of _POSIX_SOURCE, which is predefined and required
11320 # on some systems where configure will not decide to define it.
11321 cat >> conftest.vals <<\EOF
11322 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11325 # Break up conftest.vals because some shells have a limit on
11326 # the size of here documents, and old seds have small limits too.
11328 rm -f conftest.tail
11331 ac_lines=`grep -c . conftest.vals`
11332 # grep -c gives empty output for an empty file on some AIX systems.
11333 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11334 # Write a limited-size here document to conftest.frag.
11335 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11336 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11338 sed -f conftest.frag conftest.in > conftest.out
11340 mv conftest.out conftest.in
11341 ' >> $CONFIG_STATUS
11342 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11343 rm -f conftest.vals
11344 mv conftest.tail conftest.vals
11346 rm -f conftest.vals
11348 cat >> $CONFIG_STATUS <<\EOF
11349 rm -f conftest.frag conftest.h
11350 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11351 cat conftest.in >> conftest.h
11353 if cmp -s $ac_file conftest.h 2>/dev/null; then
11354 echo "$ac_file is unchanged"
11357 # Remove last slash and all that follows it. Not all systems have dirname.
11358 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11359 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11360 # The file is in a subdirectory.
11361 test ! -d "$ac_dir" && mkdir "$ac_dir"
11364 mv conftest.h $ac_file
11370 cat >> $CONFIG_STATUS <<EOF
11371 ac_sources="$files"
11375 cat >> $CONFIG_STATUS <<\EOF
11376 srcdir=$ac_given_srcdir
11377 while test -n "$ac_sources"; do
11378 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
11379 set $ac_sources; ac_source=$1; shift; ac_sources=$*
11381 echo "linking $srcdir/$ac_source to $ac_dest"
11383 if test ! -r $srcdir/$ac_source; then
11384 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
11388 # Make relative symlinks.
11389 # Remove last slash and all that follows it. Not all systems have dirname.
11390 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
11391 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
11392 # The dest file is in a subdirectory.
11393 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
11394 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
11395 # A "../" for each directory in $ac_dest_dir_suffix.
11396 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
11398 ac_dest_dir_suffix= ac_dots=
11402 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
11403 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
11406 # Make a symlink if possible; otherwise try a hard link.
11407 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
11408 ln $srcdir/$ac_source $ac_dest; then :
11410 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
11414 cat >> $CONFIG_STATUS <<EOF
11416 gdb_host_cpu=$gdb_host_cpu
11417 gdb_target_cpu=$gdb_target_cpu
11418 nativefile=$nativefile
11421 cat >> $CONFIG_STATUS <<\EOF
11423 if test "${nativefile}" = ""; then
11425 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
11426 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
11427 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
11429 mv -f Makefile.tem Makefile
11432 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
11433 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
11434 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
11435 mv -f Makefile.tmp Makefile
11438 case x$CONFIG_HEADERS in
11439 xconfig.h:config.in)
11445 chmod +x $CONFIG_STATUS
11446 rm -fr confdefs* $ac_clean_files
11447 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
11449 if test "$no_recursion" != yes; then
11451 # Remove --cache-file and --srcdir arguments so they do not pile up.
11452 ac_sub_configure_args=
11454 for ac_arg in $ac_configure_args; do
11455 if test -n "$ac_prev"; then
11460 -cache-file | --cache-file | --cache-fil | --cache-fi \
11461 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11462 ac_prev=cache_file ;;
11463 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11464 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
11466 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11468 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11470 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
11474 for ac_config_dir in doc testsuite $configdirs; do
11476 # Do not complain, so a configure script can configure whichever
11477 # parts of a large source tree are present.
11478 if test ! -d $srcdir/$ac_config_dir; then
11482 echo configuring in $ac_config_dir
11487 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
11489 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
11497 # A "../" for each directory in /$ac_config_dir.
11498 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
11501 .) # No --srcdir option. We are building in place.
11502 ac_sub_srcdir=$srcdir ;;
11503 /*) # Absolute path.
11504 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
11505 *) # Relative path.
11506 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
11509 # Check for guested configure; otherwise get Cygnus style configure.
11510 if test -f $ac_sub_srcdir/configure; then
11511 ac_sub_configure=$ac_sub_srcdir/configure
11512 elif test -f $ac_sub_srcdir/configure.in; then
11513 ac_sub_configure=$ac_configure
11515 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
11519 # The recursion is here.
11520 if test -n "$ac_sub_configure"; then
11522 # Make the cache file name correct relative to the subdirectory.
11523 case "$cache_file" in
11524 /*) ac_sub_cache_file=$cache_file ;;
11525 *) # Relative path.
11526 ac_sub_cache_file="$ac_dots$cache_file" ;;
11528 case "$ac_given_INSTALL" in
11529 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11530 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11533 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
11534 # The eval makes quoting arguments work.
11535 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
11538 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }