3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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 --disable-nls do not use Native Language Support"
17 --with-included-gettext use the GNU gettext library included here"
21 --with-mmalloc use memory mapped malloc package"
23 --enable-ide Enable IDE support"
25 --with-foundry-libs=directory use the Foundry SDK in directory"
29 --with-tclconfig directory containing tcl configuration (tclConfig.sh)"
31 --with-tkconfig directory containing tk configuration (tkConfig.sh)"
33 --with-tclinclude directory where tcl private headers are"
35 --with-tkinclude directory where tk private headers are"
37 --with-x use the X Window System"
39 --with-sim-gpu2=path Use GPU2 library under given directory"
41 --with-sim-funit=path Use target FP lib under given directory"
43 --enable-shared use shared libraries"
45 # Initialize some variables set by options.
46 # The variables have the same names as the options, with
47 # dashes changed to underlines.
49 cache_file=./config.cache
58 program_transform_name=s,x,x,
66 bindir='${exec_prefix}/bin'
67 sbindir='${exec_prefix}/sbin'
68 libexecdir='${exec_prefix}/libexec'
69 datadir='${prefix}/share'
70 sysconfdir='${prefix}/etc'
71 sharedstatedir='${prefix}/com'
72 localstatedir='${prefix}/var'
73 libdir='${exec_prefix}/lib'
74 includedir='${prefix}/include'
75 oldincludedir='/usr/include'
76 infodir='${prefix}/info'
77 mandir='${prefix}/man'
79 # Initialize some other variables.
82 # Maximum number of lines to put in a shell here document.
89 # If the previous option needs an argument, assign it.
90 if test -n "$ac_prev"; then
91 eval "$ac_prev=\$ac_option"
97 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
101 # Accept the important Cygnus configure options, so we can diagnose typos.
105 -bindir | --bindir | --bindi | --bind | --bin | --bi)
107 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
108 bindir="$ac_optarg" ;;
110 -build | --build | --buil | --bui | --bu)
112 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
113 build="$ac_optarg" ;;
115 -cache-file | --cache-file | --cache-fil | --cache-fi \
116 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
117 ac_prev=cache_file ;;
118 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
119 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
120 cache_file="$ac_optarg" ;;
122 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
124 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
126 datadir="$ac_optarg" ;;
128 -disable-* | --disable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}=no" ;;
137 -enable-* | --enable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
148 eval "enable_${ac_feature}='$ac_optarg'" ;;
150 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
151 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
152 | --exec | --exe | --ex)
153 ac_prev=exec_prefix ;;
154 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
155 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
156 | --exec=* | --exe=* | --ex=*)
157 exec_prefix="$ac_optarg" ;;
159 -gas | --gas | --ga | --g)
160 # Obsolete; use --with-gas.
163 -help | --help | --hel | --he)
164 # Omit some internal or obsolete options to make the list less imposing.
165 # This message is too long to be a string in the A/UX 3.1 sh.
167 Usage: configure [options] [host]
168 Options: [defaults in brackets after descriptions]
170 --cache-file=FILE cache test results in FILE
171 --help print this message
172 --no-create do not create output files
173 --quiet, --silent do not print \`checking...' messages
174 --version print the version of autoconf that created configure
175 Directory and file names:
176 --prefix=PREFIX install architecture-independent files in PREFIX
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
180 --bindir=DIR user executables in DIR [EPREFIX/bin]
181 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
182 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
183 --datadir=DIR read-only architecture-independent data in DIR
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
189 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
190 --includedir=DIR C header files in DIR [PREFIX/include]
191 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
192 --infodir=DIR info documentation in DIR [PREFIX/info]
193 --mandir=DIR man documentation in DIR [PREFIX/man]
194 --srcdir=DIR find the sources in DIR [configure dir or ..]
195 --program-prefix=PREFIX prepend PREFIX to installed program names
196 --program-suffix=SUFFIX append SUFFIX to installed program names
197 --program-transform-name=PROGRAM
198 run sed PROGRAM on installed program names
202 --build=BUILD configure for building on BUILD [BUILD=HOST]
203 --host=HOST configure for HOST [guessed]
204 --target=TARGET configure for TARGET [TARGET=HOST]
205 Features and packages:
206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
208 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
209 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
210 --x-includes=DIR X include files are in DIR
211 --x-libraries=DIR X library files are in DIR
213 if test -n "$ac_help"; then
214 echo "--enable and --with options recognized:$ac_help"
218 -host | --host | --hos | --ho)
220 -host=* | --host=* | --hos=* | --ho=*)
223 -includedir | --includedir | --includedi | --included | --include \
224 | --includ | --inclu | --incl | --inc)
225 ac_prev=includedir ;;
226 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
227 | --includ=* | --inclu=* | --incl=* | --inc=*)
228 includedir="$ac_optarg" ;;
230 -infodir | --infodir | --infodi | --infod | --info | --inf)
232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233 infodir="$ac_optarg" ;;
235 -libdir | --libdir | --libdi | --libd)
237 -libdir=* | --libdir=* | --libdi=* | --libd=*)
238 libdir="$ac_optarg" ;;
240 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
241 | --libexe | --libex | --libe)
242 ac_prev=libexecdir ;;
243 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
244 | --libexe=* | --libex=* | --libe=*)
245 libexecdir="$ac_optarg" ;;
247 -localstatedir | --localstatedir | --localstatedi | --localstated \
248 | --localstate | --localstat | --localsta | --localst \
249 | --locals | --local | --loca | --loc | --lo)
250 ac_prev=localstatedir ;;
251 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
252 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
253 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
254 localstatedir="$ac_optarg" ;;
256 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
259 mandir="$ac_optarg" ;;
262 # Obsolete; use --without-fp.
265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
274 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
275 | --oldin | --oldi | --old | --ol | --o)
276 ac_prev=oldincludedir ;;
277 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
278 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
279 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
280 oldincludedir="$ac_optarg" ;;
282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
285 prefix="$ac_optarg" ;;
287 -program-prefix | --program-prefix | --program-prefi | --program-pref \
288 | --program-pre | --program-pr | --program-p)
289 ac_prev=program_prefix ;;
290 -program-prefix=* | --program-prefix=* | --program-prefi=* \
291 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
292 program_prefix="$ac_optarg" ;;
294 -program-suffix | --program-suffix | --program-suffi | --program-suff \
295 | --program-suf | --program-su | --program-s)
296 ac_prev=program_suffix ;;
297 -program-suffix=* | --program-suffix=* | --program-suffi=* \
298 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
299 program_suffix="$ac_optarg" ;;
301 -program-transform-name | --program-transform-name \
302 | --program-transform-nam | --program-transform-na \
303 | --program-transform-n | --program-transform- \
304 | --program-transform | --program-transfor \
305 | --program-transfo | --program-transf \
306 | --program-trans | --program-tran \
307 | --progr-tra | --program-tr | --program-t)
308 ac_prev=program_transform_name ;;
309 -program-transform-name=* | --program-transform-name=* \
310 | --program-transform-nam=* | --program-transform-na=* \
311 | --program-transform-n=* | --program-transform-=* \
312 | --program-transform=* | --program-transfor=* \
313 | --program-transfo=* | --program-transf=* \
314 | --program-trans=* | --program-tran=* \
315 | --progr-tra=* | --program-tr=* | --program-t=*)
316 program_transform_name="$ac_optarg" ;;
318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319 | -silent | --silent | --silen | --sile | --sil)
322 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
324 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
326 sbindir="$ac_optarg" ;;
328 -sharedstatedir | --sharedstatedir | --sharedstatedi \
329 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
330 | --sharedst | --shareds | --shared | --share | --shar \
332 ac_prev=sharedstatedir ;;
333 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
334 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
335 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
337 sharedstatedir="$ac_optarg" ;;
339 -site | --site | --sit)
341 -site=* | --site=* | --sit=*)
344 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
346 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
347 srcdir="$ac_optarg" ;;
349 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
350 | --syscon | --sysco | --sysc | --sys | --sy)
351 ac_prev=sysconfdir ;;
352 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
353 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
354 sysconfdir="$ac_optarg" ;;
356 -target | --target | --targe | --targ | --tar | --ta | --t)
358 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
359 target="$ac_optarg" ;;
361 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 -version | --version | --versio | --versi | --vers)
365 echo "configure generated by autoconf version 2.12"
369 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}='$ac_optarg'" ;;
381 -without-* | --without-*)
382 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}=no" ;;
391 # Obsolete; use --with-x.
394 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
395 | --x-incl | --x-inc | --x-in | --x-i)
396 ac_prev=x_includes ;;
397 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
398 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
399 x_includes="$ac_optarg" ;;
401 -x-libraries | --x-libraries | --x-librarie | --x-librari \
402 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
403 ac_prev=x_libraries ;;
404 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
405 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
406 x_libraries="$ac_optarg" ;;
408 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
412 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413 echo "configure: warning: $ac_option: invalid host type" 1>&2
415 if test "x$nonopt" != xNONE; then
416 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
424 if test -n "$ac_prev"; then
425 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430 # File descriptor usage:
433 # 2 errors and warnings
434 # 3 some systems may open it to /dev/tty
435 # 4 used on the Kubota Titan
436 # 6 checking for... messages and results
437 # 5 compiler messages saved in config.log
438 if test "$silent" = yes; then
446 This file contains any messages produced by compilers while
447 running configure, to aid debugging if configure makes a mistake.
450 # Strip out --no-create and --no-recursion so they do not pile up.
451 # Also quote any args containing shell metacharacters.
456 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
457 | --no-cr | --no-c) ;;
458 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
459 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
462 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
467 # Only set these to C if already set. These must not be set unconditionally
468 # because not all systems understand e.g. LANG=C (notably SCO).
469 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470 # Non-C LC_CTYPE values break the ctype check.
471 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
472 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
473 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
474 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
477 rm -rf conftest* confdefs.h
478 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 # A filename unique to this package, relative to the directory that
482 # configure is in, which we can look for to find out if srcdir is correct.
483 ac_unique_file=main.c
485 # Find the source files, if location was not specified.
486 if test -z "$srcdir"; then
487 ac_srcdir_defaulted=yes
488 # Try the directory containing this script, then its parent.
490 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
493 if test ! -r $srcdir/$ac_unique_file; then
497 ac_srcdir_defaulted=no
499 if test ! -r $srcdir/$ac_unique_file; then
500 if test "$ac_srcdir_defaulted" = yes; then
501 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
508 # Prefer explicitly selected file to automatically selected ones.
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE; then
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516 for ac_site_file in $CONFIG_SITE; do
517 if test -r "$ac_site_file"; then
518 echo "loading site script $ac_site_file"
523 if test -r "$cache_file"; then
524 echo "loading cache $cache_file"
527 echo "creating cache $cache_file"
532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533 ac_cpp='$CPP $CPPFLAGS'
534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536 cross_compiling=$ac_cv_prog_cc_cross
538 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
539 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
540 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
547 ac_n= ac_c='\c' ac_t=
553 # Extract the first word of "gcc", so it can be a program name with args.
554 set dummy gcc; ac_word=$2
555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
556 echo "configure:557: checking for $ac_word" >&5
557 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
558 echo $ac_n "(cached) $ac_c" 1>&6
560 if test -n "$CC"; then
561 ac_cv_prog_CC="$CC" # Let the user override the test.
563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
564 for ac_dir in $PATH; do
565 test -z "$ac_dir" && ac_dir=.
566 if test -f $ac_dir/$ac_word; then
575 if test -n "$CC"; then
576 echo "$ac_t""$CC" 1>&6
578 echo "$ac_t""no" 1>&6
581 if test -z "$CC"; then
582 # Extract the first word of "cc", so it can be a program name with args.
583 set dummy cc; ac_word=$2
584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
585 echo "configure:586: checking for $ac_word" >&5
586 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
587 echo $ac_n "(cached) $ac_c" 1>&6
589 if test -n "$CC"; then
590 ac_cv_prog_CC="$CC" # Let the user override the test.
592 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
594 for ac_dir in $PATH; do
595 test -z "$ac_dir" && ac_dir=.
596 if test -f $ac_dir/$ac_word; then
597 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
606 if test $ac_prog_rejected = yes; then
607 # We found a bogon in the path, so make sure we never use it.
608 set dummy $ac_cv_prog_CC
610 if test $# -gt 0; then
611 # We chose a different compiler from the bogus one.
612 # However, it has the same basename, so the bogon will be chosen
613 # first if we set CC to just the basename; use the full file name.
615 set dummy "$ac_dir/$ac_word" "$@"
623 if test -n "$CC"; then
624 echo "$ac_t""$CC" 1>&6
626 echo "$ac_t""no" 1>&6
629 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
632 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
633 echo "configure:634: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
636 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
637 ac_cpp='$CPP $CPPFLAGS'
638 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
639 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
640 cross_compiling=$ac_cv_prog_cc_cross
642 cat > conftest.$ac_ext <<EOF
643 #line 644 "configure"
644 #include "confdefs.h"
647 if { (eval echo configure:648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
648 ac_cv_prog_cc_works=yes
649 # If we can't run a trivial program, we are probably using a cross compiler.
650 if (./conftest; exit) 2>/dev/null; then
651 ac_cv_prog_cc_cross=no
653 ac_cv_prog_cc_cross=yes
656 echo "configure: failed program was:" >&5
657 cat conftest.$ac_ext >&5
658 ac_cv_prog_cc_works=no
662 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
663 if test $ac_cv_prog_cc_works = no; then
664 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
666 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
667 echo "configure:668: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
668 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
669 cross_compiling=$ac_cv_prog_cc_cross
671 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
672 echo "configure:673: checking whether we are using GNU C" >&5
673 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
676 cat > conftest.c <<EOF
681 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
688 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
690 if test $ac_cv_prog_gcc = yes; then
692 ac_test_CFLAGS="${CFLAGS+set}"
693 ac_save_CFLAGS="$CFLAGS"
695 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
696 echo "configure:697: checking whether ${CC-cc} accepts -g" >&5
697 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
698 echo $ac_n "(cached) $ac_c" 1>&6
700 echo 'void f(){}' > conftest.c
701 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
710 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
711 if test "$ac_test_CFLAGS" = set; then
712 CFLAGS="$ac_save_CFLAGS"
713 elif test $ac_cv_prog_cc_g = yes; then
720 test "${CFLAGS+set}" = set || CFLAGS="-g"
723 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
724 echo "configure:725: checking how to run the C preprocessor" >&5
725 # On Suns, sometimes $CPP names a directory.
726 if test -n "$CPP" && test -d "$CPP"; then
729 if test -z "$CPP"; then
730 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
733 # This must be in double quotes, not single quotes, because CPP may get
734 # substituted into the Makefile and "${CC-cc}" will confuse make.
736 # On the NeXT, cc -E runs the code through the compiler's parser,
737 # not just through cpp.
738 cat > conftest.$ac_ext <<EOF
739 #line 740 "configure"
740 #include "confdefs.h"
744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
745 { (eval echo configure:746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
746 ac_err=`grep -v '^ *+' conftest.out`
747 if test -z "$ac_err"; then
751 echo "configure: failed program was:" >&5
752 cat conftest.$ac_ext >&5
754 CPP="${CC-cc} -E -traditional-cpp"
755 cat > conftest.$ac_ext <<EOF
756 #line 757 "configure"
757 #include "confdefs.h"
761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
762 { (eval echo configure:763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
763 ac_err=`grep -v '^ *+' conftest.out`
764 if test -z "$ac_err"; then
768 echo "configure: failed program was:" >&5
769 cat conftest.$ac_ext >&5
776 ac_cv_prog_CPP="$CPP"
778 CPP="$ac_cv_prog_CPP"
780 ac_cv_prog_CPP="$CPP"
782 echo "$ac_t""$CPP" 1>&6
784 echo $ac_n "checking for AIX""... $ac_c" 1>&6
785 echo "configure:786: checking for AIX" >&5
786 cat > conftest.$ac_ext <<EOF
787 #line 788 "configure"
788 #include "confdefs.h"
794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
795 egrep "yes" >/dev/null 2>&1; then
797 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
798 #define _ALL_SOURCE 1
803 echo "$ac_t""no" 1>&6
808 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
809 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
810 echo "configure:811: checking for minix/config.h" >&5
811 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
814 cat > conftest.$ac_ext <<EOF
815 #line 816 "configure"
816 #include "confdefs.h"
817 #include <minix/config.h>
819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
820 { (eval echo configure:821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
821 ac_err=`grep -v '^ *+' conftest.out`
822 if test -z "$ac_err"; then
824 eval "ac_cv_header_$ac_safe=yes"
827 echo "configure: failed program was:" >&5
828 cat conftest.$ac_ext >&5
830 eval "ac_cv_header_$ac_safe=no"
834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
835 echo "$ac_t""yes" 1>&6
838 echo "$ac_t""no" 1>&6
842 if test "$MINIX" = yes; then
843 cat >> confdefs.h <<\EOF
844 #define _POSIX_SOURCE 1
847 cat >> confdefs.h <<\EOF
848 #define _POSIX_1_SOURCE 2
851 cat >> confdefs.h <<\EOF
857 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
858 echo "configure:859: checking for POSIXized ISC" >&5
859 if test -d /etc/conf/kconfig.d &&
860 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
862 echo "$ac_t""yes" 1>&6
863 ISC=yes # If later tests want to check for ISC.
864 cat >> confdefs.h <<\EOF
865 #define _POSIX_SOURCE 1
868 if test "$GCC" = yes; then
874 echo "$ac_t""no" 1>&6
879 DLLTOOL=${DLLTOOL-dlltool}
883 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
884 if test -f $ac_dir/install-sh; then
886 ac_install_sh="$ac_aux_dir/install-sh -c"
888 elif test -f $ac_dir/install.sh; then
890 ac_install_sh="$ac_aux_dir/install.sh -c"
894 if test -z "$ac_aux_dir"; then
895 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
897 ac_config_guess=$ac_aux_dir/config.guess
898 ac_config_sub=$ac_aux_dir/config.sub
899 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
902 # Do some error checking and defaulting for the host and target type.
904 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
907 # 1. You are not allowed to specify --host, --target, and nonopt at the
909 # 2. Host defaults to nonopt.
910 # 3. If nonopt is not specified, then host defaults to the current host,
911 # as determined by config.guess.
912 # 4. Target and build default to nonopt.
913 # 5. If nonopt is not specified, then target and build default to host.
915 # The aliases save the names the user supplied, while $host etc.
916 # will get canonicalized.
917 case $host---$target---$nonopt in
918 NONE---*---* | *---NONE---* | *---*---NONE) ;;
919 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
923 # Make sure we can run config.sub.
924 if $ac_config_sub sun4 >/dev/null 2>&1; then :
925 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
928 echo $ac_n "checking host system type""... $ac_c" 1>&6
929 echo "configure:930: checking host system type" >&5
932 case "$host_alias" in
936 if host_alias=`$ac_config_guess`; then :
937 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
939 *) host_alias=$nonopt ;;
943 host=`$ac_config_sub $host_alias`
944 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
945 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
946 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
947 echo "$ac_t""$host" 1>&6
949 echo $ac_n "checking target system type""... $ac_c" 1>&6
950 echo "configure:951: checking target system type" >&5
953 case "$target_alias" in
956 NONE) target_alias=$host_alias ;;
957 *) target_alias=$nonopt ;;
961 target=`$ac_config_sub $target_alias`
962 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
963 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
964 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
965 echo "$ac_t""$target" 1>&6
967 echo $ac_n "checking build system type""... $ac_c" 1>&6
968 echo "configure:969: checking build system type" >&5
971 case "$build_alias" in
974 NONE) build_alias=$host_alias ;;
975 *) build_alias=$nonopt ;;
979 build=`$ac_config_sub $build_alias`
980 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
981 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
982 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
983 echo "$ac_t""$build" 1>&6
985 test "$host_alias" != "$target_alias" &&
986 test "$program_prefix$program_suffix$program_transform_name" = \
988 program_prefix=${target_alias}-
992 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
993 echo "configure:994: checking whether ${MAKE-make} sets \${MAKE}" >&5
994 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
995 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
998 cat > conftestmake <<\EOF
1000 @echo 'ac_maketemp="${MAKE}"'
1002 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1003 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1004 if test -n "$ac_maketemp"; then
1005 eval ac_cv_prog_make_${ac_make}_set=yes
1007 eval ac_cv_prog_make_${ac_make}_set=no
1011 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1012 echo "$ac_t""yes" 1>&6
1015 echo "$ac_t""no" 1>&6
1016 SET_MAKE="MAKE=${MAKE-make}"
1019 # Extract the first word of "ranlib", so it can be a program name with args.
1020 set dummy ranlib; ac_word=$2
1021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1022 echo "configure:1023: checking for $ac_word" >&5
1023 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1026 if test -n "$RANLIB"; then
1027 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1030 for ac_dir in $PATH; do
1031 test -z "$ac_dir" && ac_dir=.
1032 if test -f $ac_dir/$ac_word; then
1033 ac_cv_prog_RANLIB="ranlib"
1038 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1041 RANLIB="$ac_cv_prog_RANLIB"
1042 if test -n "$RANLIB"; then
1043 echo "$ac_t""$RANLIB" 1>&6
1045 echo "$ac_t""no" 1>&6
1048 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1049 echo "configure:1050: checking for ANSI C header files" >&5
1050 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1053 cat > conftest.$ac_ext <<EOF
1054 #line 1055 "configure"
1055 #include "confdefs.h"
1061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1062 { (eval echo configure:1063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1063 ac_err=`grep -v '^ *+' conftest.out`
1064 if test -z "$ac_err"; then
1066 ac_cv_header_stdc=yes
1069 echo "configure: failed program was:" >&5
1070 cat conftest.$ac_ext >&5
1072 ac_cv_header_stdc=no
1076 if test $ac_cv_header_stdc = yes; then
1077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1078 cat > conftest.$ac_ext <<EOF
1079 #line 1080 "configure"
1080 #include "confdefs.h"
1083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1084 egrep "memchr" >/dev/null 2>&1; then
1088 ac_cv_header_stdc=no
1094 if test $ac_cv_header_stdc = yes; then
1095 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1096 cat > conftest.$ac_ext <<EOF
1097 #line 1098 "configure"
1098 #include "confdefs.h"
1101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1102 egrep "free" >/dev/null 2>&1; then
1106 ac_cv_header_stdc=no
1112 if test $ac_cv_header_stdc = yes; then
1113 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1114 if test "$cross_compiling" = yes; then
1117 cat > conftest.$ac_ext <<EOF
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1121 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1122 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1123 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1124 int main () { int i; for (i = 0; i < 256; i++)
1125 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1129 if { (eval echo configure:1130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1133 echo "configure: failed program was:" >&5
1134 cat conftest.$ac_ext >&5
1136 ac_cv_header_stdc=no
1144 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1145 if test $ac_cv_header_stdc = yes; then
1146 cat >> confdefs.h <<\EOF
1147 #define STDC_HEADERS 1
1152 echo $ac_n "checking for working const""... $ac_c" 1>&6
1153 echo "configure:1154: checking for working const" >&5
1154 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1157 cat > conftest.$ac_ext <<EOF
1158 #line 1159 "configure"
1159 #include "confdefs.h"
1163 /* Ultrix mips cc rejects this. */
1164 typedef int charset[2]; const charset x;
1165 /* SunOS 4.1.1 cc rejects this. */
1166 char const *const *ccp;
1168 /* NEC SVR4.0.2 mips cc rejects this. */
1169 struct point {int x, y;};
1170 static struct point const zero = {0,0};
1171 /* AIX XL C 1.02.0.0 rejects this.
1172 It does not let you subtract one const X* pointer from another in an arm
1173 of an if-expression whose if-part is not a constant expression */
1174 const char *g = "string";
1175 ccp = &g + (g ? g-g : 0);
1176 /* HPUX 7.0 cc rejects these. */
1179 ccp = (char const *const *) p;
1180 { /* SCO 3.2v4 cc rejects this. */
1182 char const *s = 0 ? (char *) 0 : (char const *) 0;
1186 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1188 const int *foo = &x[0];
1191 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1192 typedef const int *iptr;
1196 { /* AIX XL C 1.02.0.0 rejects this saying
1197 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1198 struct s { int j; const int *ap[3]; };
1199 struct s *b; b->j = 5;
1201 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1207 if { (eval echo configure:1208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1211 echo "configure: failed program was:" >&5
1212 cat conftest.$ac_ext >&5
1219 echo "$ac_t""$ac_cv_c_const" 1>&6
1220 if test $ac_cv_c_const = no; then
1221 cat >> confdefs.h <<\EOF
1227 echo $ac_n "checking for inline""... $ac_c" 1>&6
1228 echo "configure:1229: checking for inline" >&5
1229 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1233 for ac_kw in inline __inline__ __inline; do
1234 cat > conftest.$ac_ext <<EOF
1235 #line 1236 "configure"
1236 #include "confdefs.h"
1242 if { (eval echo configure:1243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1244 ac_cv_c_inline=$ac_kw; break
1246 echo "configure: failed program was:" >&5
1247 cat conftest.$ac_ext >&5
1254 echo "$ac_t""$ac_cv_c_inline" 1>&6
1255 case "$ac_cv_c_inline" in
1257 no) cat >> confdefs.h <<\EOF
1261 *) cat >> confdefs.h <<EOF
1262 #define inline $ac_cv_c_inline
1267 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1268 echo "configure:1269: checking for off_t" >&5
1269 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1272 cat > conftest.$ac_ext <<EOF
1273 #line 1274 "configure"
1274 #include "confdefs.h"
1275 #include <sys/types.h>
1281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1282 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1284 ac_cv_type_off_t=yes
1292 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1293 if test $ac_cv_type_off_t = no; then
1294 cat >> confdefs.h <<\EOF
1300 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1301 echo "configure:1302: checking for size_t" >&5
1302 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1305 cat > conftest.$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1308 #include <sys/types.h>
1314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1315 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1317 ac_cv_type_size_t=yes
1320 ac_cv_type_size_t=no
1325 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1326 if test $ac_cv_type_size_t = no; then
1327 cat >> confdefs.h <<\EOF
1328 #define size_t unsigned
1333 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1334 # for constant arguments. Useless!
1335 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1336 echo "configure:1337: checking for working alloca.h" >&5
1337 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1340 cat > conftest.$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1345 char *p = alloca(2 * sizeof(int));
1348 if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1350 ac_cv_header_alloca_h=yes
1352 echo "configure: failed program was:" >&5
1353 cat conftest.$ac_ext >&5
1355 ac_cv_header_alloca_h=no
1360 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1361 if test $ac_cv_header_alloca_h = yes; then
1362 cat >> confdefs.h <<\EOF
1363 #define HAVE_ALLOCA_H 1
1368 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1369 echo "configure:1370: checking for alloca" >&5
1370 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1371 echo $ac_n "(cached) $ac_c" 1>&6
1373 cat > conftest.$ac_ext <<EOF
1374 #line 1375 "configure"
1375 #include "confdefs.h"
1378 # define alloca __builtin_alloca
1381 # include <alloca.h>
1386 # ifndef alloca /* predefined by HP cc +Olibcalls */
1394 char *p = (char *) alloca(1);
1397 if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1399 ac_cv_func_alloca_works=yes
1401 echo "configure: failed program was:" >&5
1402 cat conftest.$ac_ext >&5
1404 ac_cv_func_alloca_works=no
1409 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1410 if test $ac_cv_func_alloca_works = yes; then
1411 cat >> confdefs.h <<\EOF
1412 #define HAVE_ALLOCA 1
1417 if test $ac_cv_func_alloca_works = no; then
1418 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1419 # that cause trouble. Some versions do not even contain alloca or
1420 # contain a buggy version. If you still want to use their alloca,
1421 # use ar to extract alloca.o from them instead of compiling alloca.c.
1423 cat >> confdefs.h <<\EOF
1428 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1429 echo "configure:1430: checking whether alloca needs Cray hooks" >&5
1430 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 cat > conftest.$ac_ext <<EOF
1434 #line 1435 "configure"
1435 #include "confdefs.h"
1436 #if defined(CRAY) && ! defined(CRAY2)
1443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1444 egrep "webecray" >/dev/null 2>&1; then
1455 echo "$ac_t""$ac_cv_os_cray" 1>&6
1456 if test $ac_cv_os_cray = yes; then
1457 for ac_func in _getb67 GETB67 getb67; do
1458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1459 echo "configure:1460: checking for $ac_func" >&5
1460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1463 cat > conftest.$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1466 /* System header to define __stub macros and hopefully few prototypes,
1467 which can conflict with char $ac_func(); below. */
1469 /* Override any gcc2 internal prototype to avoid an error. */
1470 /* We use char because int might match the return type of a gcc2
1471 builtin and then its argument prototype would still apply. */
1476 /* The GNU C library defines this for functions which it implements
1477 to always fail with ENOSYS. Some functions are actually named
1478 something starting with __ and the normal name is an alias. */
1479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1487 if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1489 eval "ac_cv_func_$ac_func=yes"
1491 echo "configure: failed program was:" >&5
1492 cat conftest.$ac_ext >&5
1494 eval "ac_cv_func_$ac_func=no"
1499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1500 echo "$ac_t""yes" 1>&6
1501 cat >> confdefs.h <<EOF
1502 #define CRAY_STACKSEG_END $ac_func
1507 echo "$ac_t""no" 1>&6
1513 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1514 echo "configure:1515: checking stack direction for C alloca" >&5
1515 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1516 echo $ac_n "(cached) $ac_c" 1>&6
1518 if test "$cross_compiling" = yes; then
1519 ac_cv_c_stack_direction=0
1521 cat > conftest.$ac_ext <<EOF
1522 #line 1523 "configure"
1523 #include "confdefs.h"
1524 find_stack_direction ()
1526 static char *addr = 0;
1531 return find_stack_direction ();
1534 return (&dummy > addr) ? 1 : -1;
1538 exit (find_stack_direction() < 0);
1541 if { (eval echo configure:1542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1543 ac_cv_c_stack_direction=1
1545 echo "configure: failed program was:" >&5
1546 cat conftest.$ac_ext >&5
1548 ac_cv_c_stack_direction=-1
1555 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1556 cat >> confdefs.h <<EOF
1557 #define STACK_DIRECTION $ac_cv_c_stack_direction
1562 for ac_hdr in unistd.h
1564 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1566 echo "configure:1567: checking for $ac_hdr" >&5
1567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1568 echo $ac_n "(cached) $ac_c" 1>&6
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1576 { (eval echo configure:1577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1577 ac_err=`grep -v '^ *+' conftest.out`
1578 if test -z "$ac_err"; then
1580 eval "ac_cv_header_$ac_safe=yes"
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1586 eval "ac_cv_header_$ac_safe=no"
1590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1591 echo "$ac_t""yes" 1>&6
1592 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1593 cat >> confdefs.h <<EOF
1594 #define $ac_tr_hdr 1
1598 echo "$ac_t""no" 1>&6
1602 for ac_func in getpagesize
1604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1605 echo "configure:1606: checking for $ac_func" >&5
1606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1607 echo $ac_n "(cached) $ac_c" 1>&6
1609 cat > conftest.$ac_ext <<EOF
1610 #line 1611 "configure"
1611 #include "confdefs.h"
1612 /* System header to define __stub macros and hopefully few prototypes,
1613 which can conflict with char $ac_func(); below. */
1615 /* Override any gcc2 internal prototype to avoid an error. */
1616 /* We use char because int might match the return type of a gcc2
1617 builtin and then its argument prototype would still apply. */
1622 /* The GNU C library defines this for functions which it implements
1623 to always fail with ENOSYS. Some functions are actually named
1624 something starting with __ and the normal name is an alias. */
1625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1633 if { (eval echo configure:1634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1635 eval "ac_cv_func_$ac_func=yes"
1637 echo "configure: failed program was:" >&5
1638 cat conftest.$ac_ext >&5
1640 eval "ac_cv_func_$ac_func=no"
1645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1646 echo "$ac_t""yes" 1>&6
1647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1648 cat >> confdefs.h <<EOF
1649 #define $ac_tr_func 1
1653 echo "$ac_t""no" 1>&6
1657 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1658 echo "configure:1659: checking for working mmap" >&5
1659 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1662 if test "$cross_compiling" = yes; then
1663 ac_cv_func_mmap_fixed_mapped=no
1665 cat > conftest.$ac_ext <<EOF
1666 #line 1667 "configure"
1667 #include "confdefs.h"
1669 /* Thanks to Mike Haertel and Jim Avera for this test.
1670 Here is a matrix of mmap possibilities:
1671 mmap private not fixed
1672 mmap private fixed at somewhere currently unmapped
1673 mmap private fixed at somewhere already mapped
1674 mmap shared not fixed
1675 mmap shared fixed at somewhere currently unmapped
1676 mmap shared fixed at somewhere already mapped
1677 For private mappings, we should verify that changes cannot be read()
1678 back from the file, nor mmap's back from the file at a different
1679 address. (There have been systems where private was not correctly
1680 implemented like the infamous i386 svr4.0, and systems where the
1681 VM page cache was not coherent with the filesystem buffer cache
1682 like early versions of FreeBSD and possibly contemporary NetBSD.)
1683 For shared mappings, we should conversely verify that changes get
1684 propogated back to all the places they're supposed to be.
1686 Grep wants private fixed already mapped.
1687 The main things grep needs to know about mmap are:
1688 * does it exist and is it safe to write into the mmap'd area
1689 * how to use it (BSD variants) */
1690 #include <sys/types.h>
1692 #include <sys/mman.h>
1694 /* This mess was copied from the GNU getpagesize.h. */
1695 #ifndef HAVE_GETPAGESIZE
1696 # ifdef HAVE_UNISTD_H
1697 # include <unistd.h>
1700 /* Assume that all systems that can run configure have sys/param.h. */
1701 # ifndef HAVE_SYS_PARAM_H
1702 # define HAVE_SYS_PARAM_H 1
1705 # ifdef _SC_PAGESIZE
1706 # define getpagesize() sysconf(_SC_PAGESIZE)
1707 # else /* no _SC_PAGESIZE */
1708 # ifdef HAVE_SYS_PARAM_H
1709 # include <sys/param.h>
1710 # ifdef EXEC_PAGESIZE
1711 # define getpagesize() EXEC_PAGESIZE
1712 # else /* no EXEC_PAGESIZE */
1714 # define getpagesize() NBPG * CLSIZE
1717 # endif /* no CLSIZE */
1718 # else /* no NBPG */
1720 # define getpagesize() NBPC
1721 # else /* no NBPC */
1723 # define getpagesize() PAGESIZE
1724 # endif /* PAGESIZE */
1725 # endif /* no NBPC */
1726 # endif /* no NBPG */
1727 # endif /* no EXEC_PAGESIZE */
1728 # else /* no HAVE_SYS_PARAM_H */
1729 # define getpagesize() 8192 /* punt totally */
1730 # endif /* no HAVE_SYS_PARAM_H */
1731 # endif /* no _SC_PAGESIZE */
1733 #endif /* no HAVE_GETPAGESIZE */
1736 extern "C" { void *malloc(unsigned); }
1744 char *data, *data2, *data3;
1748 pagesize = getpagesize();
1751 * First, make a file with some known garbage in it.
1753 data = malloc(pagesize);
1756 for (i = 0; i < pagesize; ++i)
1757 *(data + i) = rand();
1759 fd = creat("conftestmmap", 0600);
1762 if (write(fd, data, pagesize) != pagesize)
1767 * Next, try to mmap the file at a fixed address which
1768 * already has something else allocated at it. If we can,
1769 * also make sure that we see the same garbage.
1771 fd = open("conftestmmap", O_RDWR);
1774 data2 = malloc(2 * pagesize);
1777 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1778 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1779 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1781 for (i = 0; i < pagesize; ++i)
1782 if (*(data + i) != *(data2 + i))
1786 * Finally, make sure that changes to the mapped area
1787 * do not percolate back to the file as seen by read().
1788 * (This is a bug on some variants of i386 svr4.0.)
1790 for (i = 0; i < pagesize; ++i)
1791 *(data2 + i) = *(data2 + i) + 1;
1792 data3 = malloc(pagesize);
1795 if (read(fd, data3, pagesize) != pagesize)
1797 for (i = 0; i < pagesize; ++i)
1798 if (*(data + i) != *(data3 + i))
1801 unlink("conftestmmap");
1806 if { (eval echo configure:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1808 ac_cv_func_mmap_fixed_mapped=yes
1810 echo "configure: failed program was:" >&5
1811 cat conftest.$ac_ext >&5
1813 ac_cv_func_mmap_fixed_mapped=no
1820 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1821 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1822 cat >> confdefs.h <<\EOF
1829 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1830 unistd.h values.h sys/param.h
1832 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1833 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1834 echo "configure:1835: checking for $ac_hdr" >&5
1835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1838 cat > conftest.$ac_ext <<EOF
1839 #line 1840 "configure"
1840 #include "confdefs.h"
1843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1844 { (eval echo configure:1845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1845 ac_err=`grep -v '^ *+' conftest.out`
1846 if test -z "$ac_err"; then
1848 eval "ac_cv_header_$ac_safe=yes"
1851 echo "configure: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
1854 eval "ac_cv_header_$ac_safe=no"
1858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1859 echo "$ac_t""yes" 1>&6
1860 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1861 cat >> confdefs.h <<EOF
1862 #define $ac_tr_hdr 1
1866 echo "$ac_t""no" 1>&6
1870 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
1871 __argz_count __argz_stringify __argz_next
1873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1874 echo "configure:1875: checking for $ac_func" >&5
1875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1876 echo $ac_n "(cached) $ac_c" 1>&6
1878 cat > conftest.$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1881 /* System header to define __stub macros and hopefully few prototypes,
1882 which can conflict with char $ac_func(); below. */
1884 /* Override any gcc2 internal prototype to avoid an error. */
1885 /* We use char because int might match the return type of a gcc2
1886 builtin and then its argument prototype would still apply. */
1891 /* The GNU C library defines this for functions which it implements
1892 to always fail with ENOSYS. Some functions are actually named
1893 something starting with __ and the normal name is an alias. */
1894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1902 if { (eval echo configure:1903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1904 eval "ac_cv_func_$ac_func=yes"
1906 echo "configure: failed program was:" >&5
1907 cat conftest.$ac_ext >&5
1909 eval "ac_cv_func_$ac_func=no"
1914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1915 echo "$ac_t""yes" 1>&6
1916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1917 cat >> confdefs.h <<EOF
1918 #define $ac_tr_func 1
1922 echo "$ac_t""no" 1>&6
1927 if test "${ac_cv_func_stpcpy+set}" != "set"; then
1928 for ac_func in stpcpy
1930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1931 echo "configure:1932: checking for $ac_func" >&5
1932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1933 echo $ac_n "(cached) $ac_c" 1>&6
1935 cat > conftest.$ac_ext <<EOF
1936 #line 1937 "configure"
1937 #include "confdefs.h"
1938 /* System header to define __stub macros and hopefully few prototypes,
1939 which can conflict with char $ac_func(); below. */
1941 /* Override any gcc2 internal prototype to avoid an error. */
1942 /* We use char because int might match the return type of a gcc2
1943 builtin and then its argument prototype would still apply. */
1948 /* The GNU C library defines this for functions which it implements
1949 to always fail with ENOSYS. Some functions are actually named
1950 something starting with __ and the normal name is an alias. */
1951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1959 if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1961 eval "ac_cv_func_$ac_func=yes"
1963 echo "configure: failed program was:" >&5
1964 cat conftest.$ac_ext >&5
1966 eval "ac_cv_func_$ac_func=no"
1971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1972 echo "$ac_t""yes" 1>&6
1973 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1974 cat >> confdefs.h <<EOF
1975 #define $ac_tr_func 1
1979 echo "$ac_t""no" 1>&6
1984 if test "${ac_cv_func_stpcpy}" = "yes"; then
1985 cat >> confdefs.h <<\EOF
1986 #define HAVE_STPCPY 1
1991 if test $ac_cv_header_locale_h = yes; then
1992 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
1993 echo "configure:1994: checking for LC_MESSAGES" >&5
1994 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1997 cat > conftest.$ac_ext <<EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2005 if { (eval echo configure:2006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2007 am_cv_val_LC_MESSAGES=yes
2009 echo "configure: failed program was:" >&5
2010 cat conftest.$ac_ext >&5
2012 am_cv_val_LC_MESSAGES=no
2017 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2018 if test $am_cv_val_LC_MESSAGES = yes; then
2019 cat >> confdefs.h <<\EOF
2020 #define HAVE_LC_MESSAGES 1
2025 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2026 echo "configure:2027: checking whether NLS is requested" >&5
2027 # Check whether --enable-nls or --disable-nls was given.
2028 if test "${enable_nls+set}" = set; then
2029 enableval="$enable_nls"
2035 echo "$ac_t""$USE_NLS" 1>&6
2038 USE_INCLUDED_LIBINTL=no
2040 if test "$USE_NLS" = "yes"; then
2041 cat >> confdefs.h <<\EOF
2042 #define ENABLE_NLS 1
2045 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2046 echo "configure:2047: checking whether included gettext is requested" >&5
2047 # Check whether --with-included-gettext or --without-included-gettext was given.
2048 if test "${with_included_gettext+set}" = set; then
2049 withval="$with_included_gettext"
2050 nls_cv_force_use_gnu_gettext=$withval
2052 nls_cv_force_use_gnu_gettext=no
2055 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2057 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2058 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2060 nls_cv_header_libgt=
2063 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2064 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2065 echo "configure:2066: checking for libintl.h" >&5
2066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 cat > conftest.$ac_ext <<EOF
2070 #line 2071 "configure"
2071 #include "confdefs.h"
2072 #include <libintl.h>
2074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2075 { (eval echo configure:2076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2076 ac_err=`grep -v '^ *+' conftest.out`
2077 if test -z "$ac_err"; then
2079 eval "ac_cv_header_$ac_safe=yes"
2082 echo "configure: failed program was:" >&5
2083 cat conftest.$ac_ext >&5
2085 eval "ac_cv_header_$ac_safe=no"
2089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2090 echo "$ac_t""yes" 1>&6
2091 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2092 echo "configure:2093: checking for gettext in libc" >&5
2093 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2096 cat > conftest.$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2099 #include <libintl.h>
2101 return (int) gettext ("")
2104 if { (eval echo configure:2105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2106 gt_cv_func_gettext_libc=yes
2108 echo "configure: failed program was:" >&5
2109 cat conftest.$ac_ext >&5
2111 gt_cv_func_gettext_libc=no
2116 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2118 if test "$gt_cv_func_gettext_libc" != "yes"; then
2119 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2120 echo "configure:2121: checking for bindtextdomain in -lintl" >&5
2121 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2125 ac_save_LIBS="$LIBS"
2127 cat > conftest.$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2130 /* Override any gcc2 internal prototype to avoid an error. */
2131 /* We use char because int might match the return type of a gcc2
2132 builtin and then its argument prototype would still apply. */
2133 char bindtextdomain();
2139 if { (eval echo configure:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2141 eval "ac_cv_lib_$ac_lib_var=yes"
2143 echo "configure: failed program was:" >&5
2144 cat conftest.$ac_ext >&5
2146 eval "ac_cv_lib_$ac_lib_var=no"
2149 LIBS="$ac_save_LIBS"
2152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2153 echo "$ac_t""yes" 1>&6
2154 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2155 echo "configure:2156: checking for gettext in libintl" >&5
2156 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2159 cat > conftest.$ac_ext <<EOF
2160 #line 2161 "configure"
2161 #include "confdefs.h"
2164 return (int) gettext ("")
2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2169 gt_cv_func_gettext_libintl=yes
2171 echo "configure: failed program was:" >&5
2172 cat conftest.$ac_ext >&5
2174 gt_cv_func_gettext_libintl=no
2179 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2181 echo "$ac_t""no" 1>&6
2186 if test "$gt_cv_func_gettext_libc" = "yes" \
2187 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2188 cat >> confdefs.h <<\EOF
2189 #define HAVE_GETTEXT 1
2192 # Extract the first word of "msgfmt", so it can be a program name with args.
2193 set dummy msgfmt; ac_word=$2
2194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2195 echo "configure:2196: checking for $ac_word" >&5
2196 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2201 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2205 for ac_dir in $PATH; do
2206 test -z "$ac_dir" && ac_dir=.
2207 if test -f $ac_dir/$ac_word; then
2208 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2209 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2215 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2219 MSGFMT="$ac_cv_path_MSGFMT"
2220 if test -n "$MSGFMT"; then
2221 echo "$ac_t""$MSGFMT" 1>&6
2223 echo "$ac_t""no" 1>&6
2225 if test "$MSGFMT" != "no"; then
2226 for ac_func in dcgettext
2228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2229 echo "configure:2230: checking for $ac_func" >&5
2230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2233 cat > conftest.$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2236 /* System header to define __stub macros and hopefully few prototypes,
2237 which can conflict with char $ac_func(); below. */
2239 /* Override any gcc2 internal prototype to avoid an error. */
2240 /* We use char because int might match the return type of a gcc2
2241 builtin and then its argument prototype would still apply. */
2246 /* The GNU C library defines this for functions which it implements
2247 to always fail with ENOSYS. Some functions are actually named
2248 something starting with __ and the normal name is an alias. */
2249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2257 if { (eval echo configure:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2259 eval "ac_cv_func_$ac_func=yes"
2261 echo "configure: failed program was:" >&5
2262 cat conftest.$ac_ext >&5
2264 eval "ac_cv_func_$ac_func=no"
2269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2270 echo "$ac_t""yes" 1>&6
2271 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2272 cat >> confdefs.h <<EOF
2273 #define $ac_tr_func 1
2277 echo "$ac_t""no" 1>&6
2281 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2282 set dummy gmsgfmt; ac_word=$2
2283 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2284 echo "configure:2285: checking for $ac_word" >&5
2285 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2290 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2294 for ac_dir in $PATH; do
2295 test -z "$ac_dir" && ac_dir=.
2296 if test -f $ac_dir/$ac_word; then
2297 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2302 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2306 GMSGFMT="$ac_cv_path_GMSGFMT"
2307 if test -n "$GMSGFMT"; then
2308 echo "$ac_t""$GMSGFMT" 1>&6
2310 echo "$ac_t""no" 1>&6
2313 # Extract the first word of "xgettext", so it can be a program name with args.
2314 set dummy xgettext; ac_word=$2
2315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2316 echo "configure:2317: checking for $ac_word" >&5
2317 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2322 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2326 for ac_dir in $PATH; do
2327 test -z "$ac_dir" && ac_dir=.
2328 if test -f $ac_dir/$ac_word; then
2329 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2330 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2336 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2340 XGETTEXT="$ac_cv_path_XGETTEXT"
2341 if test -n "$XGETTEXT"; then
2342 echo "$ac_t""$XGETTEXT" 1>&6
2344 echo "$ac_t""no" 1>&6
2347 cat > conftest.$ac_ext <<EOF
2348 #line 2349 "configure"
2349 #include "confdefs.h"
2352 extern int _nl_msg_cat_cntr;
2353 return _nl_msg_cat_cntr
2356 if { (eval echo configure:2357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2361 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2373 echo "$ac_t""no" 1>&6
2378 if test "$CATOBJEXT" = "NONE"; then
2379 nls_cv_use_gnu_gettext=yes
2383 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2384 INTLOBJS="\$(GETTOBJS)"
2385 # Extract the first word of "msgfmt", so it can be a program name with args.
2386 set dummy msgfmt; ac_word=$2
2387 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2388 echo "configure:2389: checking for $ac_word" >&5
2389 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2394 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2397 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2398 for ac_dir in $PATH; do
2399 test -z "$ac_dir" && ac_dir=.
2400 if test -f $ac_dir/$ac_word; then
2401 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2402 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2408 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2412 MSGFMT="$ac_cv_path_MSGFMT"
2413 if test -n "$MSGFMT"; then
2414 echo "$ac_t""$MSGFMT" 1>&6
2416 echo "$ac_t""no" 1>&6
2419 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2420 set dummy gmsgfmt; ac_word=$2
2421 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2422 echo "configure:2423: checking for $ac_word" >&5
2423 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2428 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2431 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2432 for ac_dir in $PATH; do
2433 test -z "$ac_dir" && ac_dir=.
2434 if test -f $ac_dir/$ac_word; then
2435 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2440 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2444 GMSGFMT="$ac_cv_path_GMSGFMT"
2445 if test -n "$GMSGFMT"; then
2446 echo "$ac_t""$GMSGFMT" 1>&6
2448 echo "$ac_t""no" 1>&6
2451 # Extract the first word of "xgettext", so it can be a program name with args.
2452 set dummy xgettext; ac_word=$2
2453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2454 echo "configure:2455: checking for $ac_word" >&5
2455 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2456 echo $ac_n "(cached) $ac_c" 1>&6
2460 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2463 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2464 for ac_dir in $PATH; do
2465 test -z "$ac_dir" && ac_dir=.
2466 if test -f $ac_dir/$ac_word; then
2467 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2468 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2474 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2478 XGETTEXT="$ac_cv_path_XGETTEXT"
2479 if test -n "$XGETTEXT"; then
2480 echo "$ac_t""$XGETTEXT" 1>&6
2482 echo "$ac_t""no" 1>&6
2486 USE_INCLUDED_LIBINTL=yes
2490 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2492 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2493 nls_cv_header_intl=libintl.h
2494 nls_cv_header_libgt=libgettext.h
2497 if test "$XGETTEXT" != ":"; then
2498 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2501 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2506 # We need to process the po/ directory.
2510 nls_cv_header_intl=libintl.h
2511 nls_cv_header_libgt=libgettext.h
2514 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2515 # because some of the sources are only built for this goal.
2516 if test "$PACKAGE" = gettext; then
2518 USE_INCLUDED_LIBINTL=yes
2521 for lang in $ALL_LINGUAS; do
2522 GMOFILES="$GMOFILES $lang.gmo"
2523 POFILES="$POFILES $lang.po"
2539 if test "x$CATOBJEXT" != "x"; then
2540 if test "x$ALL_LINGUAS" = "x"; then
2543 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2544 echo "configure:2545: checking for catalogs to be installed" >&5
2546 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2547 case "$ALL_LINGUAS" in
2548 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2551 LINGUAS=$NEW_LINGUAS
2552 echo "$ac_t""$LINGUAS" 1>&6
2555 if test -n "$LINGUAS"; then
2556 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2560 if test $ac_cv_header_locale_h = yes; then
2561 INCLUDE_LOCALE_H="#include <locale.h>"
2564 /* The system does not provide the header <locale.h>. Take care yourself. */"
2568 if test -f $srcdir/po2tbl.sed.in; then
2569 if test "$CATOBJEXT" = ".cat"; then
2570 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2571 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2572 echo "configure:2573: checking for linux/version.h" >&5
2573 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2576 cat > conftest.$ac_ext <<EOF
2577 #line 2578 "configure"
2578 #include "confdefs.h"
2579 #include <linux/version.h>
2581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2582 { (eval echo configure:2583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2583 ac_err=`grep -v '^ *+' conftest.out`
2584 if test -z "$ac_err"; then
2586 eval "ac_cv_header_$ac_safe=yes"
2589 echo "configure: failed program was:" >&5
2590 cat conftest.$ac_ext >&5
2592 eval "ac_cv_header_$ac_safe=no"
2596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2597 echo "$ac_t""yes" 1>&6
2600 echo "$ac_t""no" 1>&6
2605 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2607 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2608 $srcdir/po2tbl.sed.in > po2tbl.sed
2611 if test "$PACKAGE" = "gettext"; then
2621 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2627 if test -d $srcdir/po; then
2628 test -d po || mkdir po
2629 if test "x$srcdir" != "x."; then
2630 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2631 posrcprefix="$srcdir/"
2633 posrcprefix="../$srcdir/"
2639 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2640 < $srcdir/po/POTFILES.in > po/POTFILES
2649 configdirs="doc testsuite"
2652 . ${srcdir}/configure.host
2654 . ${srcdir}/configure.tgt
2657 # Find a good install program. We prefer a C program (faster),
2658 # so one script is as good as another. But avoid the broken or
2659 # incompatible versions:
2660 # SysV /etc/install, /usr/sbin/install
2661 # SunOS /usr/etc/install
2662 # IRIX /sbin/install
2664 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2665 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2666 # ./install, which can be erroneously created by make from ./install.sh.
2667 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2668 echo "configure:2669: checking for a BSD compatible install" >&5
2669 if test -z "$INSTALL"; then
2670 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2673 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2674 for ac_dir in $PATH; do
2675 # Account for people who put trailing slashes in PATH elements.
2677 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2679 # OSF1 and SCO ODT 3.0 have their own names for install.
2680 for ac_prog in ginstall installbsd scoinst install; do
2681 if test -f $ac_dir/$ac_prog; then
2682 if test $ac_prog = install &&
2683 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2684 # AIX install. It has an incompatible calling convention.
2685 # OSF/1 installbsd also uses dspmsg, but is usable.
2688 ac_cv_path_install="$ac_dir/$ac_prog -c"
2699 if test "${ac_cv_path_install+set}" = set; then
2700 INSTALL="$ac_cv_path_install"
2702 # As a last resort, use the slow shell script. We don't cache a
2703 # path for INSTALL within a source directory, because that will
2704 # break other packages using the cache if that directory is
2705 # removed, or if the path is relative.
2706 INSTALL="$ac_install_sh"
2709 echo "$ac_t""$INSTALL" 1>&6
2711 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2712 # It thinks the first close brace ends the variable substitution.
2713 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2715 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2717 if test $host != $build; then
2718 ac_tool_prefix=${host_alias}-
2723 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2724 set dummy ${ac_tool_prefix}ar; ac_word=$2
2725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2726 echo "configure:2727: checking for $ac_word" >&5
2727 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2728 echo $ac_n "(cached) $ac_c" 1>&6
2730 if test -n "$AR"; then
2731 ac_cv_prog_AR="$AR" # Let the user override the test.
2733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2734 for ac_dir in $PATH; do
2735 test -z "$ac_dir" && ac_dir=.
2736 if test -f $ac_dir/$ac_word; then
2737 ac_cv_prog_AR="${ac_tool_prefix}ar"
2742 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
2746 if test -n "$AR"; then
2747 echo "$ac_t""$AR" 1>&6
2749 echo "$ac_t""no" 1>&6
2754 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2755 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2757 echo "configure:2758: checking for $ac_word" >&5
2758 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2761 if test -n "$RANLIB"; then
2762 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2765 for ac_dir in $PATH; do
2766 test -z "$ac_dir" && ac_dir=.
2767 if test -f $ac_dir/$ac_word; then
2768 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2775 RANLIB="$ac_cv_prog_RANLIB"
2776 if test -n "$RANLIB"; then
2777 echo "$ac_t""$RANLIB" 1>&6
2779 echo "$ac_t""no" 1>&6
2783 if test -z "$ac_cv_prog_RANLIB"; then
2784 if test -n "$ac_tool_prefix"; then
2785 # Extract the first word of "ranlib", so it can be a program name with args.
2786 set dummy ranlib; ac_word=$2
2787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2788 echo "configure:2789: checking for $ac_word" >&5
2789 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2792 if test -n "$RANLIB"; then
2793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2796 for ac_dir in $PATH; do
2797 test -z "$ac_dir" && ac_dir=.
2798 if test -f $ac_dir/$ac_word; then
2799 ac_cv_prog_RANLIB="ranlib"
2804 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2807 RANLIB="$ac_cv_prog_RANLIB"
2808 if test -n "$RANLIB"; then
2809 echo "$ac_t""$RANLIB" 1>&6
2811 echo "$ac_t""no" 1>&6
2819 for ac_prog in 'bison -y' byacc
2821 # Extract the first word of "$ac_prog", so it can be a program name with args.
2822 set dummy $ac_prog; ac_word=$2
2823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2824 echo "configure:2825: checking for $ac_word" >&5
2825 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2828 if test -n "$YACC"; then
2829 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2832 for ac_dir in $PATH; do
2833 test -z "$ac_dir" && ac_dir=.
2834 if test -f $ac_dir/$ac_word; then
2835 ac_cv_prog_YACC="$ac_prog"
2842 YACC="$ac_cv_prog_YACC"
2843 if test -n "$YACC"; then
2844 echo "$ac_t""$YACC" 1>&6
2846 echo "$ac_t""no" 1>&6
2849 test -n "$YACC" && break
2851 test -n "$YACC" || YACC="yacc"
2853 for ac_prog in mawk gawk nawk awk
2855 # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2858 echo "configure:2859: checking for $ac_word" >&5
2859 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2862 if test -n "$AWK"; then
2863 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2866 for ac_dir in $PATH; do
2867 test -z "$ac_dir" && ac_dir=.
2868 if test -f $ac_dir/$ac_word; then
2869 ac_cv_prog_AWK="$ac_prog"
2876 AWK="$ac_cv_prog_AWK"
2877 if test -n "$AWK"; then
2878 echo "$ac_t""$AWK" 1>&6
2880 echo "$ac_t""no" 1>&6
2883 test -n "$AWK" && break
2887 if test "$program_transform_name" = s,x,x,; then
2888 program_transform_name=
2890 # Double any \ or $. echo might interpret backslashes.
2891 cat <<\EOF_SED > conftestsed
2892 s,\\,\\\\,g; s,\$,$$,g
2894 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2897 test "$program_prefix" != NONE &&
2898 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2899 # Use a double $ so make ignores it.
2900 test "$program_suffix" != NONE &&
2901 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2903 # sed with no file args requires a program.
2904 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2907 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2908 echo "configure:2909: checking return type of signal handlers" >&5
2909 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2912 cat > conftest.$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2915 #include <sys/types.h>
2921 extern "C" void (*signal (int, void (*)(int)))(int);
2923 void (*signal ()) ();
2930 if { (eval echo configure:2931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2932 ac_cv_type_signal=void
2934 echo "configure: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2937 ac_cv_type_signal=int
2942 echo "$ac_t""$ac_cv_type_signal" 1>&6
2943 cat >> confdefs.h <<EOF
2944 #define RETSIGTYPE $ac_cv_type_signal
2949 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2950 echo "configure:2951: checking for ANSI C header files" >&5
2951 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2952 echo $ac_n "(cached) $ac_c" 1>&6
2954 cat > conftest.$ac_ext <<EOF
2955 #line 2956 "configure"
2956 #include "confdefs.h"
2962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2963 { (eval echo configure:2964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2964 ac_err=`grep -v '^ *+' conftest.out`
2965 if test -z "$ac_err"; then
2967 ac_cv_header_stdc=yes
2970 echo "configure: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2973 ac_cv_header_stdc=no
2977 if test $ac_cv_header_stdc = yes; then
2978 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2985 egrep "memchr" >/dev/null 2>&1; then
2989 ac_cv_header_stdc=no
2995 if test $ac_cv_header_stdc = yes; then
2996 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2997 cat > conftest.$ac_ext <<EOF
2998 #line 2999 "configure"
2999 #include "confdefs.h"
3002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3003 egrep "free" >/dev/null 2>&1; then
3007 ac_cv_header_stdc=no
3013 if test $ac_cv_header_stdc = yes; then
3014 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3015 if test "$cross_compiling" = yes; then
3018 cat > conftest.$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3022 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3023 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3024 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3025 int main () { int i; for (i = 0; i < 256; i++)
3026 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3030 if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3034 echo "configure: failed program was:" >&5
3035 cat conftest.$ac_ext >&5
3037 ac_cv_header_stdc=no
3045 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3046 if test $ac_cv_header_stdc = yes; then
3047 cat >> confdefs.h <<\EOF
3048 #define STDC_HEADERS 1
3053 for ac_hdr in ctype.h curses.h endian.h libintl.h limits.h link.h \
3054 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3055 string.h strings.h sys/procfs.h sys/ptrace.h sys/reg.h \
3056 term.h termio.h termios.h unistd.h wait.h sys/wait.h \
3059 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3060 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3061 echo "configure:3062: checking for $ac_hdr" >&5
3062 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3065 cat > conftest.$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3071 { (eval echo configure:3072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3072 ac_err=`grep -v '^ *+' conftest.out`
3073 if test -z "$ac_err"; then
3075 eval "ac_cv_header_$ac_safe=yes"
3078 echo "configure: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3081 eval "ac_cv_header_$ac_safe=no"
3085 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3086 echo "$ac_t""yes" 1>&6
3087 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3088 cat >> confdefs.h <<EOF
3089 #define $ac_tr_hdr 1
3093 echo "$ac_t""no" 1>&6
3098 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3099 echo "configure:3100: checking whether stat file-mode macros are broken" >&5
3100 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3101 echo $ac_n "(cached) $ac_c" 1>&6
3103 cat > conftest.$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3106 #include <sys/types.h>
3107 #include <sys/stat.h>
3109 #if defined(S_ISBLK) && defined(S_IFDIR)
3110 # if S_ISBLK (S_IFDIR)
3115 #if defined(S_ISBLK) && defined(S_IFCHR)
3116 # if S_ISBLK (S_IFCHR)
3121 #if defined(S_ISLNK) && defined(S_IFREG)
3122 # if S_ISLNK (S_IFREG)
3127 #if defined(S_ISSOCK) && defined(S_IFREG)
3128 # if S_ISSOCK (S_IFREG)
3134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3135 egrep "You lose" >/dev/null 2>&1; then
3137 ac_cv_header_stat_broken=yes
3140 ac_cv_header_stat_broken=no
3146 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3147 if test $ac_cv_header_stat_broken = yes; then
3148 cat >> confdefs.h <<\EOF
3149 #define STAT_MACROS_BROKEN 1
3155 echo $ac_n "checking for working const""... $ac_c" 1>&6
3156 echo "configure:3157: checking for working const" >&5
3157 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3158 echo $ac_n "(cached) $ac_c" 1>&6
3160 cat > conftest.$ac_ext <<EOF
3161 #line 3162 "configure"
3162 #include "confdefs.h"
3166 /* Ultrix mips cc rejects this. */
3167 typedef int charset[2]; const charset x;
3168 /* SunOS 4.1.1 cc rejects this. */
3169 char const *const *ccp;
3171 /* NEC SVR4.0.2 mips cc rejects this. */
3172 struct point {int x, y;};
3173 static struct point const zero = {0,0};
3174 /* AIX XL C 1.02.0.0 rejects this.
3175 It does not let you subtract one const X* pointer from another in an arm
3176 of an if-expression whose if-part is not a constant expression */
3177 const char *g = "string";
3178 ccp = &g + (g ? g-g : 0);
3179 /* HPUX 7.0 cc rejects these. */
3182 ccp = (char const *const *) p;
3183 { /* SCO 3.2v4 cc rejects this. */
3185 char const *s = 0 ? (char *) 0 : (char const *) 0;
3189 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3191 const int *foo = &x[0];
3194 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3195 typedef const int *iptr;
3199 { /* AIX XL C 1.02.0.0 rejects this saying
3200 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3201 struct s { int j; const int *ap[3]; };
3202 struct s *b; b->j = 5;
3204 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3210 if { (eval echo configure:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3214 echo "configure: failed program was:" >&5
3215 cat conftest.$ac_ext >&5
3222 echo "$ac_t""$ac_cv_c_const" 1>&6
3223 if test $ac_cv_c_const = no; then
3224 cat >> confdefs.h <<\EOF
3231 for ac_func in setpgid sbrk select poll sigaction isascii bzero bcopy memcpy btowc
3233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3234 echo "configure:3235: checking for $ac_func" >&5
3235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 cat > conftest.$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 /* System header to define __stub macros and hopefully few prototypes,
3242 which can conflict with char $ac_func(); below. */
3244 /* Override any gcc2 internal prototype to avoid an error. */
3245 /* We use char because int might match the return type of a gcc2
3246 builtin and then its argument prototype would still apply. */
3251 /* The GNU C library defines this for functions which it implements
3252 to always fail with ENOSYS. Some functions are actually named
3253 something starting with __ and the normal name is an alias. */
3254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3262 if { (eval echo configure:3263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3264 eval "ac_cv_func_$ac_func=yes"
3266 echo "configure: failed program was:" >&5
3267 cat conftest.$ac_ext >&5
3269 eval "ac_cv_func_$ac_func=no"
3274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3275 echo "$ac_t""yes" 1>&6
3276 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3277 cat >> confdefs.h <<EOF
3278 #define $ac_tr_func 1
3282 echo "$ac_t""no" 1>&6
3286 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3287 # for constant arguments. Useless!
3288 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3289 echo "configure:3290: checking for working alloca.h" >&5
3290 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3293 cat > conftest.$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3298 char *p = alloca(2 * sizeof(int));
3301 if { (eval echo configure:3302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3303 ac_cv_header_alloca_h=yes
3305 echo "configure: failed program was:" >&5
3306 cat conftest.$ac_ext >&5
3308 ac_cv_header_alloca_h=no
3313 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3314 if test $ac_cv_header_alloca_h = yes; then
3315 cat >> confdefs.h <<\EOF
3316 #define HAVE_ALLOCA_H 1
3321 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3322 echo "configure:3323: checking for alloca" >&5
3323 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3324 echo $ac_n "(cached) $ac_c" 1>&6
3326 cat > conftest.$ac_ext <<EOF
3327 #line 3328 "configure"
3328 #include "confdefs.h"
3331 # define alloca __builtin_alloca
3334 # include <alloca.h>
3339 # ifndef alloca /* predefined by HP cc +Olibcalls */
3347 char *p = (char *) alloca(1);
3350 if { (eval echo configure:3351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3352 ac_cv_func_alloca_works=yes
3354 echo "configure: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3357 ac_cv_func_alloca_works=no
3362 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3363 if test $ac_cv_func_alloca_works = yes; then
3364 cat >> confdefs.h <<\EOF
3365 #define HAVE_ALLOCA 1
3370 if test $ac_cv_func_alloca_works = no; then
3371 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3372 # that cause trouble. Some versions do not even contain alloca or
3373 # contain a buggy version. If you still want to use their alloca,
3374 # use ar to extract alloca.o from them instead of compiling alloca.c.
3376 cat >> confdefs.h <<\EOF
3381 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3382 echo "configure:3383: checking whether alloca needs Cray hooks" >&5
3383 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3386 cat > conftest.$ac_ext <<EOF
3387 #line 3388 "configure"
3388 #include "confdefs.h"
3389 #if defined(CRAY) && ! defined(CRAY2)
3396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3397 egrep "webecray" >/dev/null 2>&1; then
3408 echo "$ac_t""$ac_cv_os_cray" 1>&6
3409 if test $ac_cv_os_cray = yes; then
3410 for ac_func in _getb67 GETB67 getb67; do
3411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3412 echo "configure:3413: checking for $ac_func" >&5
3413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3414 echo $ac_n "(cached) $ac_c" 1>&6
3416 cat > conftest.$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3419 /* System header to define __stub macros and hopefully few prototypes,
3420 which can conflict with char $ac_func(); below. */
3422 /* Override any gcc2 internal prototype to avoid an error. */
3423 /* We use char because int might match the return type of a gcc2
3424 builtin and then its argument prototype would still apply. */
3429 /* The GNU C library defines this for functions which it implements
3430 to always fail with ENOSYS. Some functions are actually named
3431 something starting with __ and the normal name is an alias. */
3432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3440 if { (eval echo configure:3441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3442 eval "ac_cv_func_$ac_func=yes"
3444 echo "configure: failed program was:" >&5
3445 cat conftest.$ac_ext >&5
3447 eval "ac_cv_func_$ac_func=no"
3452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3453 echo "$ac_t""yes" 1>&6
3454 cat >> confdefs.h <<EOF
3455 #define CRAY_STACKSEG_END $ac_func
3460 echo "$ac_t""no" 1>&6
3466 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3467 echo "configure:3468: checking stack direction for C alloca" >&5
3468 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3471 if test "$cross_compiling" = yes; then
3472 ac_cv_c_stack_direction=0
3474 cat > conftest.$ac_ext <<EOF
3475 #line 3476 "configure"
3476 #include "confdefs.h"
3477 find_stack_direction ()
3479 static char *addr = 0;
3484 return find_stack_direction ();
3487 return (&dummy > addr) ? 1 : -1;
3491 exit (find_stack_direction() < 0);
3494 if { (eval echo configure:3495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3496 ac_cv_c_stack_direction=1
3498 echo "configure: failed program was:" >&5
3499 cat conftest.$ac_ext >&5
3501 ac_cv_c_stack_direction=-1
3508 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3509 cat >> confdefs.h <<EOF
3510 #define STACK_DIRECTION $ac_cv_c_stack_direction
3516 # If we are configured native on GNU/Linux, work around problems with sys/procfs.h
3517 if test "${target}" = "${host}"; then
3520 cat >> confdefs.h <<\EOF
3521 #define START_INFERIOR_TRAPS_EXPECTED 2
3524 cat >> confdefs.h <<\EOF
3525 #define sys_quotactl 1
3532 echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6
3533 echo "configure:3534: checking for gregset_t type" >&5
3534 if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then
3535 echo $ac_n "(cached) $ac_c" 1>&6
3537 cat > conftest.$ac_ext <<EOF
3538 #line 3539 "configure"
3539 #include "confdefs.h"
3540 #include <sys/procfs.h>
3542 gregset_t *gregsetp = 0
3545 if { (eval echo configure:3546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3547 gdb_cv_have_gregset_t=yes
3549 echo "configure: failed program was:" >&5
3550 cat conftest.$ac_ext >&5
3552 gdb_cv_have_gregset_t=no
3557 echo "$ac_t""$gdb_cv_have_gregset_t" 1>&6
3558 if test $gdb_cv_have_gregset_t = yes; then
3559 cat >> confdefs.h <<\EOF
3560 #define HAVE_GREGSET_T 1
3565 echo $ac_n "checking for fpregset_t type""... $ac_c" 1>&6
3566 echo "configure:3567: checking for fpregset_t type" >&5
3567 if eval "test \"`echo '$''{'gdb_cv_have_fpregset_t'+set}'`\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3573 #include <sys/procfs.h>
3575 fpregset_t *fpregsetp = 0
3578 if { (eval echo configure:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3580 gdb_cv_have_fpregset_t=yes
3582 echo "configure: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3585 gdb_cv_have_fpregset_t=no
3590 echo "$ac_t""$gdb_cv_have_fpregset_t" 1>&6
3591 if test $gdb_cv_have_fpregset_t = yes; then
3592 cat >> confdefs.h <<\EOF
3593 #define HAVE_FPREGSET_T 1
3598 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3599 echo "configure:3600: checking for main in -lm" >&5
3600 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3602 echo $ac_n "(cached) $ac_c" 1>&6
3604 ac_save_LIBS="$LIBS"
3606 cat > conftest.$ac_ext <<EOF
3607 #line 3608 "configure"
3608 #include "confdefs.h"
3614 if { (eval echo configure:3615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3616 eval "ac_cv_lib_$ac_lib_var=yes"
3618 echo "configure: failed program was:" >&5
3619 cat conftest.$ac_ext >&5
3621 eval "ac_cv_lib_$ac_lib_var=no"
3624 LIBS="$ac_save_LIBS"
3627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3628 echo "$ac_t""yes" 1>&6
3629 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3630 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3631 cat >> confdefs.h <<EOF
3632 #define $ac_tr_lib 1
3638 echo "$ac_t""no" 1>&6
3643 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
3644 echo "configure:3645: checking for long long support in compiler" >&5
3645 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
3646 echo $ac_n "(cached) $ac_c" 1>&6
3648 cat > conftest.$ac_ext <<EOF
3649 #line 3650 "configure"
3650 #include "confdefs.h"
3654 extern long long foo;
3655 switch (foo & 2) { case 0: return 1; }
3659 if { (eval echo configure:3660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3661 gdb_cv_c_long_long=yes
3663 echo "configure: failed program was:" >&5
3664 cat conftest.$ac_ext >&5
3666 gdb_cv_c_long_long=no
3671 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
3672 if test $gdb_cv_c_long_long = yes; then
3673 cat >> confdefs.h <<\EOF
3674 #define CC_HAS_LONG_LONG 1
3680 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
3681 echo "configure:3682: checking for long long support in printf" >&5
3682 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3685 if test "$cross_compiling" = yes; then
3686 gdb_cv_printf_has_long_long=no
3688 cat > conftest.$ac_ext <<EOF
3689 #line 3690 "configure"
3690 #include "confdefs.h"
3695 l = (l << 16) + 0x0123;
3696 l = (l << 16) + 0x4567;
3697 l = (l << 16) + 0x89ab;
3698 l = (l << 16) + 0xcdef;
3699 sprintf (buf, "0x%016llx", l);
3700 return (strcmp ("0x0123456789abcdef", buf));
3703 if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3705 gdb_cv_printf_has_long_long=yes
3707 echo "configure: failed program was:" >&5
3708 cat conftest.$ac_ext >&5
3710 gdb_cv_printf_has_long_long=no
3717 if test $gdb_cv_printf_has_long_long = yes; then
3718 cat >> confdefs.h <<\EOF
3719 #define PRINTF_HAS_LONG_LONG 1
3723 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
3726 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
3727 echo "configure:3728: checking for long double support in compiler" >&5
3728 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
3729 echo $ac_n "(cached) $ac_c" 1>&6
3731 cat > conftest.$ac_ext <<EOF
3732 #line 3733 "configure"
3733 #include "confdefs.h"
3739 if { (eval echo configure:3740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3741 ac_cv_c_long_double=yes
3743 echo "configure: failed program was:" >&5
3744 cat conftest.$ac_ext >&5
3746 ac_cv_c_long_double=no
3751 echo "$ac_t""$ac_cv_c_long_double" 1>&6
3752 if test $ac_cv_c_long_double = yes; then
3753 cat >> confdefs.h <<\EOF
3754 #define HAVE_LONG_DOUBLE 1
3760 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
3761 echo "configure:3762: checking for long double support in printf" >&5
3762 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6
3765 if test "$cross_compiling" = yes; then
3766 gdb_cv_printf_has_long_double=no
3768 cat > conftest.$ac_ext <<EOF
3769 #line 3770 "configure"
3770 #include "confdefs.h"
3774 long double f = 3.141592653;
3775 sprintf (buf, "%Lg", f);
3776 return (strncmp ("3.14159", buf, 7));
3779 if { (eval echo configure:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3781 gdb_cv_printf_has_long_double=yes
3783 echo "configure: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3786 gdb_cv_printf_has_long_double=no
3793 if test $gdb_cv_printf_has_long_double = yes; then
3794 cat >> confdefs.h <<\EOF
3795 #define PRINTF_HAS_LONG_DOUBLE 1
3799 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
3802 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
3803 echo "configure:3804: checking for long double support in scanf" >&5
3804 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
3805 echo $ac_n "(cached) $ac_c" 1>&6
3807 if test "$cross_compiling" = yes; then
3808 gdb_cv_scanf_has_long_double=no
3810 cat > conftest.$ac_ext <<EOF
3811 #line 3812 "configure"
3812 #include "confdefs.h"
3815 char *buf = "3.141592653";
3817 sscanf (buf, "%Lg", &f);
3818 return !(f > 3.14159 && f < 3.14160);
3821 if { (eval echo configure:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3823 gdb_cv_scanf_has_long_double=yes
3825 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3828 gdb_cv_scanf_has_long_double=no
3835 if test $gdb_cv_scanf_has_long_double = yes; then
3836 cat >> confdefs.h <<\EOF
3837 #define SCANF_HAS_LONG_DOUBLE 1
3841 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
3843 for ac_hdr in unistd.h
3845 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3846 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3847 echo "configure:3848: checking for $ac_hdr" >&5
3848 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3851 cat > conftest.$ac_ext <<EOF
3852 #line 3853 "configure"
3853 #include "confdefs.h"
3856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3857 { (eval echo configure:3858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3858 ac_err=`grep -v '^ *+' conftest.out`
3859 if test -z "$ac_err"; then
3861 eval "ac_cv_header_$ac_safe=yes"
3864 echo "configure: failed program was:" >&5
3865 cat conftest.$ac_ext >&5
3867 eval "ac_cv_header_$ac_safe=no"
3871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3872 echo "$ac_t""yes" 1>&6
3873 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3874 cat >> confdefs.h <<EOF
3875 #define $ac_tr_hdr 1
3879 echo "$ac_t""no" 1>&6
3883 for ac_func in getpagesize
3885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3886 echo "configure:3887: checking for $ac_func" >&5
3887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3888 echo $ac_n "(cached) $ac_c" 1>&6
3890 cat > conftest.$ac_ext <<EOF
3891 #line 3892 "configure"
3892 #include "confdefs.h"
3893 /* System header to define __stub macros and hopefully few prototypes,
3894 which can conflict with char $ac_func(); below. */
3896 /* Override any gcc2 internal prototype to avoid an error. */
3897 /* We use char because int might match the return type of a gcc2
3898 builtin and then its argument prototype would still apply. */
3903 /* The GNU C library defines this for functions which it implements
3904 to always fail with ENOSYS. Some functions are actually named
3905 something starting with __ and the normal name is an alias. */
3906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3914 if { (eval echo configure:3915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3916 eval "ac_cv_func_$ac_func=yes"
3918 echo "configure: failed program was:" >&5
3919 cat conftest.$ac_ext >&5
3921 eval "ac_cv_func_$ac_func=no"
3926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3927 echo "$ac_t""yes" 1>&6
3928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3929 cat >> confdefs.h <<EOF
3930 #define $ac_tr_func 1
3934 echo "$ac_t""no" 1>&6
3938 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3939 echo "configure:3940: checking for working mmap" >&5
3940 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3943 if test "$cross_compiling" = yes; then
3944 ac_cv_func_mmap_fixed_mapped=no
3946 cat > conftest.$ac_ext <<EOF
3947 #line 3948 "configure"
3948 #include "confdefs.h"
3950 /* Thanks to Mike Haertel and Jim Avera for this test.
3951 Here is a matrix of mmap possibilities:
3952 mmap private not fixed
3953 mmap private fixed at somewhere currently unmapped
3954 mmap private fixed at somewhere already mapped
3955 mmap shared not fixed
3956 mmap shared fixed at somewhere currently unmapped
3957 mmap shared fixed at somewhere already mapped
3958 For private mappings, we should verify that changes cannot be read()
3959 back from the file, nor mmap's back from the file at a different
3960 address. (There have been systems where private was not correctly
3961 implemented like the infamous i386 svr4.0, and systems where the
3962 VM page cache was not coherent with the filesystem buffer cache
3963 like early versions of FreeBSD and possibly contemporary NetBSD.)
3964 For shared mappings, we should conversely verify that changes get
3965 propogated back to all the places they're supposed to be.
3967 Grep wants private fixed already mapped.
3968 The main things grep needs to know about mmap are:
3969 * does it exist and is it safe to write into the mmap'd area
3970 * how to use it (BSD variants) */
3971 #include <sys/types.h>
3973 #include <sys/mman.h>
3975 /* This mess was copied from the GNU getpagesize.h. */
3976 #ifndef HAVE_GETPAGESIZE
3977 # ifdef HAVE_UNISTD_H
3978 # include <unistd.h>
3981 /* Assume that all systems that can run configure have sys/param.h. */
3982 # ifndef HAVE_SYS_PARAM_H
3983 # define HAVE_SYS_PARAM_H 1
3986 # ifdef _SC_PAGESIZE
3987 # define getpagesize() sysconf(_SC_PAGESIZE)
3988 # else /* no _SC_PAGESIZE */
3989 # ifdef HAVE_SYS_PARAM_H
3990 # include <sys/param.h>
3991 # ifdef EXEC_PAGESIZE
3992 # define getpagesize() EXEC_PAGESIZE
3993 # else /* no EXEC_PAGESIZE */
3995 # define getpagesize() NBPG * CLSIZE
3998 # endif /* no CLSIZE */
3999 # else /* no NBPG */
4001 # define getpagesize() NBPC
4002 # else /* no NBPC */
4004 # define getpagesize() PAGESIZE
4005 # endif /* PAGESIZE */
4006 # endif /* no NBPC */
4007 # endif /* no NBPG */
4008 # endif /* no EXEC_PAGESIZE */
4009 # else /* no HAVE_SYS_PARAM_H */
4010 # define getpagesize() 8192 /* punt totally */
4011 # endif /* no HAVE_SYS_PARAM_H */
4012 # endif /* no _SC_PAGESIZE */
4014 #endif /* no HAVE_GETPAGESIZE */
4017 extern "C" { void *malloc(unsigned); }
4025 char *data, *data2, *data3;
4029 pagesize = getpagesize();
4032 * First, make a file with some known garbage in it.
4034 data = malloc(pagesize);
4037 for (i = 0; i < pagesize; ++i)
4038 *(data + i) = rand();
4040 fd = creat("conftestmmap", 0600);
4043 if (write(fd, data, pagesize) != pagesize)
4048 * Next, try to mmap the file at a fixed address which
4049 * already has something else allocated at it. If we can,
4050 * also make sure that we see the same garbage.
4052 fd = open("conftestmmap", O_RDWR);
4055 data2 = malloc(2 * pagesize);
4058 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4059 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4060 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4062 for (i = 0; i < pagesize; ++i)
4063 if (*(data + i) != *(data2 + i))
4067 * Finally, make sure that changes to the mapped area
4068 * do not percolate back to the file as seen by read().
4069 * (This is a bug on some variants of i386 svr4.0.)
4071 for (i = 0; i < pagesize; ++i)
4072 *(data2 + i) = *(data2 + i) + 1;
4073 data3 = malloc(pagesize);
4076 if (read(fd, data3, pagesize) != pagesize)
4078 for (i = 0; i < pagesize; ++i)
4079 if (*(data + i) != *(data3 + i))
4082 unlink("conftestmmap");
4087 if { (eval echo configure:4088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4089 ac_cv_func_mmap_fixed_mapped=yes
4091 echo "configure: failed program was:" >&5
4092 cat conftest.$ac_ext >&5
4094 ac_cv_func_mmap_fixed_mapped=no
4101 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4102 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4103 cat >> confdefs.h <<\EOF
4110 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4111 echo "configure:4112: checking whether malloc must be declared" >&5
4112 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4113 echo $ac_n "(cached) $ac_c" 1>&6
4115 cat > conftest.$ac_ext <<EOF
4116 #line 4117 "configure"
4117 #include "confdefs.h"
4120 #ifdef HAVE_STRING_H
4123 #ifdef HAVE_STRINGS_H
4124 #include <strings.h>
4127 #ifdef HAVE_STDLIB_H
4130 #ifdef HAVE_UNISTD_H
4134 char *(*pfn) = (char *(*)) malloc
4137 if { (eval echo configure:4138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4139 bfd_cv_decl_needed_malloc=no
4141 echo "configure: failed program was:" >&5
4142 cat conftest.$ac_ext >&5
4144 bfd_cv_decl_needed_malloc=yes
4149 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4150 if test $bfd_cv_decl_needed_malloc = yes; then
4151 bfd_tr_decl=NEED_DECLARATION_`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4152 cat >> confdefs.h <<EOF
4153 #define $bfd_tr_decl 1
4158 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4159 echo "configure:4160: checking whether realloc must be declared" >&5
4160 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4161 echo $ac_n "(cached) $ac_c" 1>&6
4163 cat > conftest.$ac_ext <<EOF
4164 #line 4165 "configure"
4165 #include "confdefs.h"
4168 #ifdef HAVE_STRING_H
4171 #ifdef HAVE_STRINGS_H
4172 #include <strings.h>
4175 #ifdef HAVE_STDLIB_H
4178 #ifdef HAVE_UNISTD_H
4182 char *(*pfn) = (char *(*)) realloc
4185 if { (eval echo configure:4186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4187 bfd_cv_decl_needed_realloc=no
4189 echo "configure: failed program was:" >&5
4190 cat conftest.$ac_ext >&5
4192 bfd_cv_decl_needed_realloc=yes
4197 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4198 if test $bfd_cv_decl_needed_realloc = yes; then
4199 bfd_tr_decl=NEED_DECLARATION_`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4200 cat >> confdefs.h <<EOF
4201 #define $bfd_tr_decl 1
4206 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4207 echo "configure:4208: checking whether free must be declared" >&5
4208 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4209 echo $ac_n "(cached) $ac_c" 1>&6
4211 cat > conftest.$ac_ext <<EOF
4212 #line 4213 "configure"
4213 #include "confdefs.h"
4216 #ifdef HAVE_STRING_H
4219 #ifdef HAVE_STRINGS_H
4220 #include <strings.h>
4223 #ifdef HAVE_STDLIB_H
4226 #ifdef HAVE_UNISTD_H
4230 char *(*pfn) = (char *(*)) free
4233 if { (eval echo configure:4234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4235 bfd_cv_decl_needed_free=no
4237 echo "configure: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4240 bfd_cv_decl_needed_free=yes
4245 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4246 if test $bfd_cv_decl_needed_free = yes; then
4247 bfd_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4248 cat >> confdefs.h <<EOF
4249 #define $bfd_tr_decl 1
4255 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4256 echo "configure:4257: checking whether strerror must be declared" >&5
4257 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4258 echo $ac_n "(cached) $ac_c" 1>&6
4260 cat > conftest.$ac_ext <<EOF
4261 #line 4262 "configure"
4262 #include "confdefs.h"
4265 #ifdef HAVE_STRING_H
4268 #ifdef HAVE_STRINGS_H
4269 #include <strings.h>
4272 #ifdef HAVE_STDLIB_H
4275 #ifdef HAVE_UNISTD_H
4279 char *(*pfn) = (char *(*)) strerror
4282 if { (eval echo configure:4283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4284 bfd_cv_decl_needed_strerror=no
4286 echo "configure: failed program was:" >&5
4287 cat conftest.$ac_ext >&5
4289 bfd_cv_decl_needed_strerror=yes
4294 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4295 if test $bfd_cv_decl_needed_strerror = yes; then
4296 bfd_tr_decl=NEED_DECLARATION_`echo strerror | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4297 cat >> confdefs.h <<EOF
4298 #define $bfd_tr_decl 1
4306 if test ${build} = ${host} -a ${host} = ${target} ; then
4309 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
4310 echo "configure:4311: checking for HPUX/OSF thread support" >&5
4311 if test -f /usr/include/dce/cma_config.h ; then
4312 if test "$GCC" = "yes" ; then
4313 echo "$ac_t""yes" 1>&6
4314 cat >> confdefs.h <<\EOF
4315 #define HAVE_HPUX_THREAD_SUPPORT 1
4318 CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
4319 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
4321 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
4324 echo "$ac_t""no" 1>&6
4328 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
4329 echo "configure:4330: checking for Solaris thread debugging library" >&5
4330 if test -f /usr/lib/libthread_db.so.1 ; then
4331 echo "$ac_t""yes" 1>&6
4332 cat >> confdefs.h <<\EOF
4333 #define HAVE_THREAD_DB_LIB 1
4336 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
4337 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
4338 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4339 echo "configure:4340: checking for dlopen in -ldl" >&5
4340 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4342 echo $ac_n "(cached) $ac_c" 1>&6
4344 ac_save_LIBS="$LIBS"
4346 cat > conftest.$ac_ext <<EOF
4347 #line 4348 "configure"
4348 #include "confdefs.h"
4349 /* Override any gcc2 internal prototype to avoid an error. */
4350 /* We use char because int might match the return type of a gcc2
4351 builtin and then its argument prototype would still apply. */
4358 if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4360 eval "ac_cv_lib_$ac_lib_var=yes"
4362 echo "configure: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4365 eval "ac_cv_lib_$ac_lib_var=no"
4368 LIBS="$ac_save_LIBS"
4371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4372 echo "$ac_t""yes" 1>&6
4373 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4374 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4375 cat >> confdefs.h <<EOF
4376 #define $ac_tr_lib 1
4382 echo "$ac_t""no" 1>&6
4385 if test "$GCC" = "yes" ; then
4386 # The GNU linker requires the -export-dynamic option to make
4387 # all symbols visible in the dynamic symbol table.
4388 hold_ldflags=$LDFLAGS
4389 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
4390 echo "configure:4391: checking for the ld -export-dynamic flag" >&5
4391 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
4392 cat > conftest.$ac_ext <<EOF
4393 #line 4394 "configure"
4394 #include "confdefs.h"
4400 if { (eval echo configure:4401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4404 echo "configure: failed program was:" >&5
4405 cat conftest.$ac_ext >&5
4410 LDFLAGS=$hold_ldflags
4411 echo "$ac_t""$found" 1>&6
4412 if test $found = yes; then
4413 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
4417 echo "$ac_t""no" 1>&6
4426 # Check whether --enable-netrom or --disable-netrom was given.
4427 if test "${enable_netrom+set}" = set; then
4428 enableval="$enable_netrom"
4429 case "${enableval}" in
4430 yes) enable_netrom=yes ;;
4431 no) enable_netrom=no ;;
4432 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
4437 if test "${enable_netrom}" = "yes"; then
4438 CONFIG_OBS="${CONFIG_OBS} remote-nrom.o"
4439 CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
4447 # Check whether --with-mmalloc or --without-mmalloc was given.
4448 if test "${with_mmalloc+set}" = set; then
4449 withval="$with_mmalloc"
4450 case "${withval}" in
4451 yes) want_mmalloc=true ;;
4452 no) want_mmalloc=false;;
4453 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
4459 if test x$want_mmalloc = xtrue; then
4460 cat >> confdefs.h <<\EOF
4461 #define USE_MMALLOC 1
4464 cat >> confdefs.h <<\EOF
4465 #define MMCHECK_FORCE 1
4468 MMALLOC_CFLAGS="-I$srcdir/../mmalloc"
4469 MMALLOC='../mmalloc/libmmalloc.a'
4472 # start-sanitize-gdbtk
4474 # Check whether --enable-ide or --disable-ide was given.
4475 if test "${enable_ide+set}" = set; then
4476 enableval="$enable_ide"
4480 if test "$enable_ide" = yes; then
4488 # Check whether --with-foundry-libs or --without-foundry-libs was given.
4489 if test "${with_foundry_libs+set}" = set; then
4490 withval="$with_foundry_libs"
4491 FOUNDRY_LIB_BASE=${withval}
4497 # This is the Foundry SDK
4499 # These variables are used to determine where the Foundry libs and
4500 # header files are located.
4502 if test "$FOUNDRY_LIB_BASE" != ""; then
4503 LIBGUI="${FOUNDRY_LIB_BASE}/lib/libgui.a"
4504 GUI_CFLAGS_X="-I${FOUNDRY_LIB_BASE}/include"
4505 if test x$enable_ide = xyes; then
4506 IDE_CFLAGS_X="-I${FOUNDRY_LIB_BASE}/include -DIDE"
4507 IDE_X="-L${FOUNDRY_LIB_BASE}/lib -lilu-Tk -lilu-c -lilu"
4509 IDE_CFLAGS_X="-I${FOUNDRY_LIB_BASE}/include"
4511 LIBIDETCL="${FOUNDRY_LIB_BASE}/lib/libidetcl.a"
4512 LIBIDE="${FOUNDRY_LIB_BASE}/lib/libide.a"
4513 IDE_DEPS="${FOUNDRY_LIB_BASE}/lib/libilu-Tk.a ${FOUNDRY_LIB_BASE}/lib/libilu-c.a ${FOUNDRY_LIB_BASE}/lib/libilu.a"
4515 LIBGUI="../libgui/src/libgui.a"
4516 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
4517 if test x$enable_ide = xyes; then
4518 IDE_CFLAGS_X="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src -DIDE -I${srcdir}/../ilu/runtime/mainloop"
4519 IDE_X="-L../ilu/runtime/mainloop -lilu-Tk -L../ilu/runtime/c -lilu-c -L../ilu/runtime/kernel -lilu"
4521 IDE_CFLAGS_X="-I${srcdir}/../libidetcl/src -I${srcdir}/../libide/src"
4523 LIBIDETCL="../libidetcl/src/libidetcl.a"
4524 LIBIDE="../libide/src/libide.a"
4525 IDE_DEPS="../ilu/runtime/mainloop/libilu-Tk.a ../ilu/runtime/c/libilu-c.a ../ilu/runtime/kernel/libilu.a"
4537 # Check whether --enable-gdbtk or --disable-gdbtk was given.
4538 if test "${enable_gdbtk+set}" = set; then
4539 enableval="$enable_gdbtk"
4540 case "${enableval}" in
4544 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
4547 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
4555 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
4559 # Default is on for everything but go32 and cygwin32
4570 # In the cygwin32 environment, we need some additional flags.
4571 echo $ac_n "checking for cygwin32""... $ac_c" 1>&6
4572 echo "configure:4573: checking for cygwin32" >&5
4573 if eval "test \"`echo '$''{'gdb_cv_os_cygwin32'+set}'`\" = set"; then
4574 echo $ac_n "(cached) $ac_c" 1>&6
4576 cat > conftest.$ac_ext <<EOF
4577 #line 4578 "configure"
4578 #include "confdefs.h"
4584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4585 egrep "lose" >/dev/null 2>&1; then
4587 gdb_cv_os_cygwin32=yes
4590 gdb_cv_os_cygwin32=no
4596 echo "$ac_t""$gdb_cv_os_cygwin32" 1>&6
4603 WINDRES=${WINDRES-windres}
4606 if test x$gdb_cv_os_cygwin32 = xyes; then
4607 if test x$enable_ide = xyes; then
4608 WIN32LIBS="-ladvapi32"
4615 if test "${enable_gdbtk}" = "yes"; then
4619 # Ok, lets find the tcl configuration
4620 # First, look for one uninstalled.
4621 # the alternative search directory is invoked by --with-tclconfig
4624 if test x"${no_tcl}" = x ; then
4625 # we reset no_tcl in case something fails here
4627 # Check whether --with-tclconfig or --without-tclconfig was given.
4628 if test "${with_tclconfig+set}" = set; then
4629 withval="$with_tclconfig"
4630 with_tclconfig=${withval}
4633 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
4634 echo "configure:4635: checking for Tcl configuration" >&5
4635 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
4636 echo $ac_n "(cached) $ac_c" 1>&6
4640 # First check to see if --with-tclconfig was specified.
4641 if test x"${with_tclconfig}" != x ; then
4642 if test -f "${with_tclconfig}/tclConfig.sh" ; then
4643 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
4645 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
4649 # then check for a private Tcl installation
4650 if test x"${ac_cv_c_tclconfig}" = x ; then
4653 `ls -dr ../tcl[7-9]* 2>/dev/null` \
4655 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
4657 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
4658 if test -f "$i/${configdir}/tclConfig.sh" ; then
4659 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
4664 # check in a few common install locations
4665 if test x"${ac_cv_c_tclconfig}" = x ; then
4666 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
4667 if test -f "$i/tclConfig.sh" ; then
4668 ac_cv_c_tclconfig=`(cd $i; pwd)`
4673 # check in a few other private locations
4674 if test x"${ac_cv_c_tclconfig}" = x ; then
4677 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
4678 if test -f "$i/${configdir}/tclConfig.sh" ; then
4679 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
4687 if test x"${ac_cv_c_tclconfig}" = x ; then
4688 TCLCONFIG="# no Tcl configs found"
4689 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
4692 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
4693 echo "$ac_t""found $TCLCONFIG" 1>&6
4697 if test -z "${no_tcl}"; then
4727 # Ok, lets find the tk configuration
4728 # First, look for one uninstalled.
4729 # the alternative search directory is invoked by --with-tkconfig
4732 if test x"${no_tk}" = x ; then
4733 # we reset no_tk in case something fails here
4735 # Check whether --with-tkconfig or --without-tkconfig was given.
4736 if test "${with_tkconfig+set}" = set; then
4737 withval="$with_tkconfig"
4738 with_tkconfig=${withval}
4741 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
4742 echo "configure:4743: checking for Tk configuration" >&5
4743 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
4744 echo $ac_n "(cached) $ac_c" 1>&6
4748 # First check to see if --with-tkconfig was specified.
4749 if test x"${with_tkconfig}" != x ; then
4750 if test -f "${with_tkconfig}/tkConfig.sh" ; then
4751 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
4753 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
4757 # then check for a private Tk library
4758 if test x"${ac_cv_c_tkconfig}" = x ; then
4761 `ls -dr ../tk[4-9]* 2>/dev/null` \
4763 `ls -dr ../../tk[4-9]* 2>/dev/null` \
4765 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
4766 if test -f "$i/${configdir}/tkConfig.sh" ; then
4767 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
4772 # check in a few common install locations
4773 if test x"${ac_cv_c_tkconfig}" = x ; then
4774 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
4775 if test -f "$i/tkConfig.sh" ; then
4776 ac_cv_c_tkconfig=`(cd $i; pwd)`
4781 # check in a few other private locations
4782 if test x"${ac_cv_c_tkconfig}" = x ; then
4785 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
4786 if test -f "$i/${configdir}/tkConfig.sh" ; then
4787 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
4795 if test x"${ac_cv_c_tkconfig}" = x ; then
4796 TKCONFIG="# no Tk configs found"
4797 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
4800 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
4801 echo "$ac_t""found $TKCONFIG" 1>&6
4807 # If $no_tk is nonempty, then we can't do Tk, and there is no
4808 # point to doing Tcl.
4809 if test -z "${no_tk}"; then
4811 if test -f "$TKCONFIG" ; then
4829 # Ok, lets find the tcl source trees so we can use the headers
4830 # Warning: transition of version 9 to 10 will break this algorithm
4831 # because 10 sorts before 9. We also look for just tcl. We have to
4832 # be careful that we don't match stuff like tclX by accident.
4833 # the alternative search directory is involked by --with-tclinclude
4837 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
4838 echo "configure:4839: checking for Tcl private headers. dir=${configdir}" >&5
4839 # Check whether --with-tclinclude or --without-tclinclude was given.
4840 if test "${with_tclinclude+set}" = set; then
4841 withval="$with_tclinclude"
4842 with_tclinclude=${withval}
4845 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
4846 echo $ac_n "(cached) $ac_c" 1>&6
4849 # first check to see if --with-tclinclude was specified
4850 if test x"${with_tclinclude}" != x ; then
4851 if test -f ${with_tclinclude}/tclInt.h ; then
4852 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
4853 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
4854 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
4856 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
4860 # next check if it came with Tcl configuration file
4861 if test x"${ac_cv_c_tclconfig}" = x ; then
4862 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
4863 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
4867 # next check in private source directory
4869 # since ls returns lowest version numbers first, reverse its output
4870 if test x"${ac_cv_c_tclh}" = x ; then
4873 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
4874 ${srcdir}/../../tcl \
4875 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
4876 ${srcdir}/../../../tcl \
4877 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
4878 if test -f $i/generic/tclInt.h ; then
4879 ac_cv_c_tclh=`(cd $i/generic; pwd)`
4884 # finally check in a few common install locations
4886 # since ls returns lowest version numbers first, reverse its output
4887 if test x"${ac_cv_c_tclh}" = x ; then
4889 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
4890 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
4891 /usr/local/src/tcl \
4892 /usr/local/lib/tcl \
4893 ${prefix}/include ; do
4894 if test -f $i/generic/tclInt.h ; then
4895 ac_cv_c_tclh=`(cd $i/generic; pwd)`
4900 # see if one is installed
4901 if test x"${ac_cv_c_tclh}" = x ; then
4902 ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
4903 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
4904 echo "configure:4905: checking for tclInt.h" >&5
4905 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4906 echo $ac_n "(cached) $ac_c" 1>&6
4908 cat > conftest.$ac_ext <<EOF
4909 #line 4910 "configure"
4910 #include "confdefs.h"
4913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4914 { (eval echo configure:4915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4915 ac_err=`grep -v '^ *+' conftest.out`
4916 if test -z "$ac_err"; then
4918 eval "ac_cv_header_$ac_safe=yes"
4921 echo "configure: failed program was:" >&5
4922 cat conftest.$ac_ext >&5
4924 eval "ac_cv_header_$ac_safe=no"
4928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4929 echo "$ac_t""yes" 1>&6
4930 ac_cv_c_tclh=installed
4932 echo "$ac_t""no" 1>&6
4940 if test x"${ac_cv_c_tclh}" = x ; then
4941 TCLHDIR="# no Tcl private headers found"
4942 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
4944 if test x"${ac_cv_c_tclh}" != x ; then
4946 if test x"${ac_cv_c_tclh}" = x"installed" ; then
4947 echo "$ac_t""is installed" 1>&6
4950 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
4951 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
4952 TCLHDIR="-I${ac_cv_c_tclh}"
4960 # Ok, lets find the tk source trees so we can use the headers
4961 # If the directory (presumably symlink) named "tk" exists, use that one
4962 # in preference to any others. Same logic is used when choosing library
4963 # and again with Tcl. The search order is the best place to look first, then in
4964 # decreasing significance. The loop breaks if the trigger file is found.
4965 # Note the gross little conversion here of srcdir by cd'ing to the found
4966 # directory. This converts the path from a relative to an absolute, so
4967 # recursive cache variables for the path will work right. We check all
4968 # the possible paths in one loop rather than many seperate loops to speed
4970 # the alternative search directory is involked by --with-tkinclude
4973 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
4974 echo "configure:4975: checking for Tk private headers" >&5
4975 # Check whether --with-tkinclude or --without-tkinclude was given.
4976 if test "${with_tkinclude+set}" = set; then
4977 withval="$with_tkinclude"
4978 with_tkinclude=${withval}
4981 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
4982 echo $ac_n "(cached) $ac_c" 1>&6
4985 # first check to see if --with-tkinclude was specified
4986 if test x"${with_tkinclude}" != x ; then
4987 if test -f ${with_tkinclude}/tk.h ; then
4988 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
4989 elif test -f ${with_tkinclude}/generic/tk.h ; then
4990 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
4992 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
4996 # next check if it came with Tk configuration file
4997 if test x"${ac_cv_c_tkconfig}" = x ; then
4998 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
4999 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
5003 # next check in private source directory
5005 # since ls returns lowest version numbers first, reverse its output
5006 if test x"${ac_cv_c_tkh}" = x ; then
5009 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
5010 ${srcdir}/../../tk \
5011 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
5012 ${srcdir}/../../../tk \
5013 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
5014 if test -f $i/generic/tk.h ; then
5015 ac_cv_c_tkh=`(cd $i/generic; pwd)`
5020 # finally check in a few common install locations
5022 # since ls returns lowest version numbers first, reverse its output
5023 if test x"${ac_cv_c_tkh}" = x ; then
5025 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
5026 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
5029 ${prefix}/include ; do
5030 if test -f $i/generic/tk.h ; then
5031 ac_cv_c_tkh=`(cd $i/generic; pwd)`
5036 # see if one is installed
5037 if test x"${ac_cv_c_tkh}" = x ; then
5038 ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
5039 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
5040 echo "configure:5041: checking for tk.h" >&5
5041 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5042 echo $ac_n "(cached) $ac_c" 1>&6
5044 cat > conftest.$ac_ext <<EOF
5045 #line 5046 "configure"
5046 #include "confdefs.h"
5049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5050 { (eval echo configure:5051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5051 ac_err=`grep -v '^ *+' conftest.out`
5052 if test -z "$ac_err"; then
5054 eval "ac_cv_header_$ac_safe=yes"
5057 echo "configure: failed program was:" >&5
5058 cat conftest.$ac_ext >&5
5060 eval "ac_cv_header_$ac_safe=no"
5064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5065 echo "$ac_t""yes" 1>&6
5066 ac_cv_c_tkh=installed
5068 echo "$ac_t""no" 1>&6
5076 if test x"${ac_cv_c_tkh}" != x ; then
5078 if test x"${ac_cv_c_tkh}" = x"installed" ; then
5079 echo "$ac_t""is installed" 1>&6
5082 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
5083 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
5084 TKHDIR="-I${ac_cv_c_tkh}"
5087 TKHDIR="# no Tk directory found"
5088 echo "configure: warning: Can't find Tk private headers" 1>&2
5095 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
5096 echo "configure:5097: checking for Itcl private headers. srcdir=${srcdir}" >&5
5097 if test x"${ac_cv_c_itclh}" = x ; then
5098 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ; do
5099 if test -f $i/src/itcl.h ; then
5100 ac_cv_c_itclh=`(cd $i/src; pwd)`
5105 if test x"${ac_cv_c_itclh}" = x ; then
5106 ITCLHDIR="# no Itcl private headers found"
5107 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
5109 if test x"${ac_cv_c_itclh}" != x ; then
5110 ITCLHDIR="-I${ac_cv_c_itclh}"
5112 # should always be here
5113 ITCLLIB="../itcl/src/libitcl.a"
5118 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
5119 echo "configure:5120: checking for Tix private headers. srcdir=${srcdir}" >&5
5120 if test x"${ac_cv_c_tixh}" = x ; then
5121 for i in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/../../../tix ; do
5122 if test -f $i/generic/tix.h ; then
5123 ac_cv_c_tixh=`(cd $i/generic; pwd)`
5128 if test x"${ac_cv_c_tixh}" = x ; then
5129 TIXHDIR="# no Tix private headers found"
5130 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
5132 if test x"${ac_cv_c_tixh}" != x ; then
5133 TIXHDIR="-I${ac_cv_c_tixh}"
5138 # now look for tix library stuff
5140 . ${ac_cv_c_tclconfig}/tclConfig.sh
5143 tixdir=../tix/win/tcl8.0
5146 tixdir=../tix/unix/tk8.0
5149 if test "${TCL_SHARED_BUILD}" = "1"; then
5150 TIX_LIB_EXT="${TCL_SHLIB_SUFFIX}"
5152 # Can't win them all: SunOS 4 (others?) appends a version
5153 # number after the ".so"
5156 TIX_LIB_EXT="${TIX_LIB_EXT}.1.0" ;;
5163 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
5164 TIXLIB="-L${tixdir} -ltix${TIXVERSION}"
5165 TIX_DEPS="${tixdir}/libtix${TIXVERSION}${TIX_LIB_EXT}"
5167 TIXLIB="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`"
5168 TIX_DEPS="${tixdir}/libtix`echo ${TIXVERSION} | tr -d .`${TIX_LIB_EXT}"
5172 ENABLE_CFLAGS="${ENABLE_CFLAGS} -DGDBTK"
5174 # Include some libraries that Tcl and Tk want.
5175 if test "${enable_ide}" = "yes"; then
5176 TCL_LIBS='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
5177 CONFIG_DEPS='$(LIBIDETCL) $(LIBIDE) $(LIBGUI) $(IDE_DEPS) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
5179 TCL_LIBS='$(LIBGUI) $(ITCL) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
5180 CONFIG_DEPS='$(LIBGUI) $(ITCL_DEPS) $(TIX_DEPS) $(TK_DEPS) $(TCL_DEPS)'
5182 # Yes, the ordering seems wrong here. But it isn't.
5183 # TK_LIBS is the list of libraries that need to be linked
5184 # after Tcl/Tk. Note that this isn't put into LIBS. If it
5185 # were in LIBS then any link tests after this point would
5186 # try to include things like `$(LIBGUI)', which wouldn't work.
5187 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
5188 CONFIG_OBS="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o"
5190 if test x$gdb_cv_os_cygwin32 = xyes; then
5191 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32 -luser32"
5192 WIN32LDAPP="-Wl,--subsystem,console"
5193 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
5206 # end-sanitize-gdbtk
5208 # If we find X, set shell vars x_includes and x_libraries to the
5209 # paths, otherwise set no_x=yes.
5210 # Uses ac_ vars as temps to allow command line to override cache and checks.
5211 # --without-x overrides everything else, but does not touch the cache.
5212 echo $ac_n "checking for X""... $ac_c" 1>&6
5213 echo "configure:5214: checking for X" >&5
5215 # Check whether --with-x or --without-x was given.
5216 if test "${with_x+set}" = set; then
5221 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5222 if test "x$with_x" = xno; then
5223 # The user explicitly disabled X.
5226 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5227 # Both variables are already set.
5230 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5231 echo $ac_n "(cached) $ac_c" 1>&6
5233 # One or both of the vars are not set, and there is no cached value.
5234 ac_x_includes=NO ac_x_libraries=NO
5236 if mkdir conftestdir; then
5238 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5239 cat > Imakefile <<'EOF'
5241 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5243 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5244 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5245 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5246 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5247 for ac_extension in a so sl; do
5248 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5249 test -f $ac_im_libdir/libX11.$ac_extension; then
5250 ac_im_usrlibdir=$ac_im_libdir; break
5253 # Screen out bogus values from the imake configuration. They are
5254 # bogus both because they are the default anyway, and because
5255 # using them would break gcc on systems where it needs fixed includes.
5256 case "$ac_im_incroot" in
5258 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5260 case "$ac_im_usrlibdir" in
5262 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5269 if test "$ac_x_includes" = NO; then
5270 # Guess where to find include files, by looking for this one X11 .h file.
5271 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5273 # First, try using that file with no special directory specified.
5274 cat > conftest.$ac_ext <<EOF
5275 #line 5276 "configure"
5276 #include "confdefs.h"
5277 #include <$x_direct_test_include>
5279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5280 { (eval echo configure:5281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5281 ac_err=`grep -v '^ *+' conftest.out`
5282 if test -z "$ac_err"; then
5284 # We can compile using X headers with no special include directory.
5288 echo "configure: failed program was:" >&5
5289 cat conftest.$ac_ext >&5
5291 # Look for the header file in a standard set of common directories.
5292 # Check X11 before X11Rn because it is often a symlink to the current release.
5295 /usr/X11R6/include \
5296 /usr/X11R5/include \
5297 /usr/X11R4/include \
5300 /usr/include/X11R6 \
5301 /usr/include/X11R5 \
5302 /usr/include/X11R4 \
5304 /usr/local/X11/include \
5305 /usr/local/X11R6/include \
5306 /usr/local/X11R5/include \
5307 /usr/local/X11R4/include \
5309 /usr/local/include/X11 \
5310 /usr/local/include/X11R6 \
5311 /usr/local/include/X11R5 \
5312 /usr/local/include/X11R4 \
5316 /usr/XFree86/include/X11 \
5319 /usr/local/include \
5320 /usr/unsupported/include \
5321 /usr/athena/include \
5322 /usr/local/x11r5/include \
5323 /usr/lpp/Xamples/include \
5325 /usr/openwin/include \
5326 /usr/openwin/share/include \
5329 if test -r "$ac_dir/$x_direct_test_include"; then
5330 ac_x_includes=$ac_dir
5336 fi # $ac_x_includes = NO
5338 if test "$ac_x_libraries" = NO; then
5339 # Check for the libraries.
5341 test -z "$x_direct_test_library" && x_direct_test_library=Xt
5342 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
5344 # See if we find them without any special options.
5345 # Don't add to $LIBS permanently.
5346 ac_save_LIBS="$LIBS"
5347 LIBS="-l$x_direct_test_library $LIBS"
5348 cat > conftest.$ac_ext <<EOF
5349 #line 5350 "configure"
5350 #include "confdefs.h"
5353 ${x_direct_test_function}()
5356 if { (eval echo configure:5357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5358 LIBS="$ac_save_LIBS"
5359 # We can link X programs with no special library path.
5362 echo "configure: failed program was:" >&5
5363 cat conftest.$ac_ext >&5
5365 LIBS="$ac_save_LIBS"
5366 # First see if replacing the include by lib works.
5367 # Check X11 before X11Rn because it is often a symlink to the current release.
5368 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
5379 /usr/local/X11/lib \
5380 /usr/local/X11R6/lib \
5381 /usr/local/X11R5/lib \
5382 /usr/local/X11R4/lib \
5384 /usr/local/lib/X11 \
5385 /usr/local/lib/X11R6 \
5386 /usr/local/lib/X11R5 \
5387 /usr/local/lib/X11R4 \
5391 /usr/XFree86/lib/X11 \
5395 /usr/unsupported/lib \
5397 /usr/local/x11r5/lib \
5398 /usr/lpp/Xamples/lib \
5402 /usr/openwin/share/lib \
5405 for ac_extension in a so sl; do
5406 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
5407 ac_x_libraries=$ac_dir
5414 fi # $ac_x_libraries = NO
5416 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
5417 # Didn't find X anywhere. Cache the known absence of X.
5418 ac_cv_have_x="have_x=no"
5420 # Record where we found X for the cache.
5421 ac_cv_have_x="have_x=yes \
5422 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5426 eval "$ac_cv_have_x"
5429 if test "$have_x" != yes; then
5430 echo "$ac_t""$have_x" 1>&6
5433 # If each of the values was on the command line, it overrides each guess.
5434 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5435 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5436 # Update the cache value to reflect the command line values.
5437 ac_cv_have_x="have_x=yes \
5438 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5439 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
5442 # start-sanitize-sky
5443 # Enable GPU2 library for MIPS simulator
5444 # Check whether --with-sim-gpu2 or --without-sim-gpu2 was given.
5445 if test "${with_sim_gpu2+set}" = set; then
5446 withval="$with_sim_gpu2"
5449 if test -d "${withval}"
5451 LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext"
5453 echo "configure: warning: Directory ${withval} does not exist." 1>&2
5455 *) echo "configure: warning: --with-sim-gpu2 option invalid for target ${target}" 1>&2
5459 # Enable target accurate FP library
5460 # Check whether --with-sim-funit or --without-sim-funit was given.
5461 if test "${with_sim_funit+set}" = set; then
5462 withval="$with_sim_funit"
5465 if test -d "${withval}"
5467 LIBS="${LIBS} -L${withval}/lib -lfunit"
5469 echo "configure: warning: Directory ${withval} does not exist." 1>&2
5471 *) echo "configure: warning: --with-sim-funit option invalid for target ${target}" 1>&2
5476 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
5477 echo "configure:5478: checking for wctype in -lw" >&5
5478 ac_lib_var=`echo w'_'wctype | sed 'y%./+-%__p_%'`
5479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5480 echo $ac_n "(cached) $ac_c" 1>&6
5482 ac_save_LIBS="$LIBS"
5484 cat > conftest.$ac_ext <<EOF
5485 #line 5486 "configure"
5486 #include "confdefs.h"
5487 /* Override any gcc2 internal prototype to avoid an error. */
5488 /* We use char because int might match the return type of a gcc2
5489 builtin and then its argument prototype would still apply. */
5496 if { (eval echo configure:5497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5498 eval "ac_cv_lib_$ac_lib_var=yes"
5500 echo "configure: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5503 eval "ac_cv_lib_$ac_lib_var=no"
5506 LIBS="$ac_save_LIBS"
5509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5510 echo "$ac_t""yes" 1>&6
5513 echo "$ac_t""no" 1>&6
5523 # Begin stuff to support --enable-shared
5524 # Check whether --enable-shared or --disable-shared was given.
5525 if test "${enable_shared+set}" = set; then
5526 enableval="$enable_shared"
5527 case "${enableval}" in
5536 # If we have shared libraries, try to set rpath reasonably.
5537 if test "${shared}" = "true"; then
5540 HLDFLAGS='-Wl,+s,+b,$(libdir)'
5542 *-*-irix5* | *-*-irix6*)
5543 HLDFLAGS='-Wl,-rpath,$(libdir)'
5547 *-*-linux* | *-pc-linux-gnu)
5548 HLDFLAGS='-Wl,-rpath,$(libdir)'
5551 HLDFLAGS='-R $(libdir)'
5554 HLDENV='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
5559 # On SunOS, if the linker supports the -rpath option, use it to
5560 # prevent ../bfd and ../opcodes from being included in the run time
5564 echo 'main () { }' > conftest.c
5565 ${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t
5566 if grep 'unrecognized' conftest.t >/dev/null 2>&1; then
5568 elif grep 'No such file' conftest.t >/dev/null 2>&1; then
5570 elif grep 'do not mix' conftest.t >/dev/null 2>&1; then
5572 elif grep 'some text already loaded' conftest.t >/dev/null 2>&1; then
5574 elif test "${shared}" = "true"; then
5575 HLDFLAGS='-Wl,-rpath=$(libdir)'
5577 HLDFLAGS='-Wl,-rpath='
5579 rm -f conftest.t conftest.c conftest
5584 # End stuff to support --enable-shared
5586 # target_subdir is used by the testsuite to find the target libraries.
5588 if test "${host}" != "${target}"; then
5589 target_subdir="${target_alias}/"
5594 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
5595 if test ! -f ${host_makefile_frag}; then
5596 { echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; }
5598 frags="$frags $host_makefile_frag"
5600 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
5601 if test ! -f ${target_makefile_frag}; then
5602 { echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
5604 frags="$frags $target_makefile_frag"
5611 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5612 ' ${host_makefile_frag}`
5614 targetfile=`sed -n '
5615 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5616 ' ${target_makefile_frag}`
5618 # these really aren't orthogonal true/false values of the same condition,
5619 # but shells are slow enough that I like to reuse the test conditions
5621 if test "${target}" = "${host}"; then
5622 nativefile=`sed -n '
5623 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
5624 ' ${host_makefile_frag}`
5626 # GDBserver is only useful in a "native" enviroment
5627 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
5631 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
5632 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
5633 # corresponding links. But we have to remove the xm.h files and tm.h
5634 # files anyway, e.g. when switching from "configure host" to
5640 if test "${hostfile}" != ""; then
5641 files="${files} config/${gdb_host_cpu}/${hostfile}"
5642 links="${links} xm.h"
5645 if test "${targetfile}" != ""; then
5646 files="${files} config/${gdb_target_cpu}/${targetfile}"
5647 links="${links} tm.h"
5650 if test "${nativefile}" != ""; then
5651 files="${files} config/${gdb_host_cpu}/${nativefile}"
5652 links="${links} nm.h"
5654 # A cross-only configuration.
5655 files="${files} config/nm-empty.h"
5656 links="${links} nm.h"
5658 # start-sanitize-gdbtk
5659 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
5660 echo "configure:5661: checking whether ln -s works" >&5
5661 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
5662 echo $ac_n "(cached) $ac_c" 1>&6
5665 if ln -s X conftestdata 2>/dev/null
5668 ac_cv_prog_LN_S="ln -s"
5673 LN_S="$ac_cv_prog_LN_S"
5674 if test "$ac_cv_prog_LN_S" = "ln -s"; then
5675 echo "$ac_t""yes" 1>&6
5677 echo "$ac_t""no" 1>&6
5680 # Make it possible to use the GUI without doing a full install
5681 if test "${enable_gdbtk}" = "yes" -a ! -d gdbtcl ; then
5682 if test "$LN_S" = "ln -s" -a ! -f gdbtcl ; then
5683 echo linking $srcdir/gdbtcl to gdbtcl
5684 $LN_S $srcdir/gdbtcl gdbtcl
5686 echo Warning: Unable to link $srcdir/gdbtcl to gdbtcl. You will need to do a
5687 echo " " make install before you are able to run the GUI.
5690 # end-sanitize-gdbtk
5694 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
5695 echo "configure:5696: checking for Cygwin32 environment" >&5
5696 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
5697 echo $ac_n "(cached) $ac_c" 1>&6
5699 cat > conftest.$ac_ext <<EOF
5700 #line 5701 "configure"
5701 #include "confdefs.h"
5704 return __CYGWIN32__;
5707 if { (eval echo configure:5708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5711 echo "configure: failed program was:" >&5
5712 cat conftest.$ac_ext >&5
5720 echo "$ac_t""$am_cv_cygwin32" 1>&6
5722 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
5723 echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
5724 echo "configure:5725: checking for Mingw32 environment" >&5
5725 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
5726 echo $ac_n "(cached) $ac_c" 1>&6
5728 cat > conftest.$ac_ext <<EOF
5729 #line 5730 "configure"
5730 #include "confdefs.h"
5736 if { (eval echo configure:5737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5740 echo "configure: failed program was:" >&5
5741 cat conftest.$ac_ext >&5
5749 echo "$ac_t""$am_cv_mingw32" 1>&6
5751 test "$am_cv_mingw32" = yes && MINGW32=yes
5754 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5755 echo "configure:5756: checking for executable suffix" >&5
5756 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
5757 echo $ac_n "(cached) $ac_c" 1>&6
5759 if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
5762 cat > am_c_test.c << 'EOF'
5764 /* Nothing needed here */
5767 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
5769 for file in am_c_test.*; do
5773 *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
5779 test x"${am_cv_exeext}" = x && am_cv_exeext=no
5782 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
5783 echo "$ac_t""${am_cv_exeext}" 1>&6
5786 subdirs="$configdirs"
5789 cat > confcache <<\EOF
5790 # This file is a shell script that caches the results of configure
5791 # tests run on this system so they can be shared between configure
5792 # scripts and configure runs. It is not useful on other systems.
5793 # If it contains results you don't want to keep, you may remove or edit it.
5795 # By default, configure uses ./config.cache as the cache file,
5796 # creating it if it does not exist already. You can give configure
5797 # the --cache-file=FILE option to use a different cache file; that is
5798 # what configure does when it calls configure scripts in
5799 # subdirectories, so they share the cache.
5800 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5801 # config.status only pays attention to the cache file if you give it the
5802 # --recheck option to rerun configure.
5805 # The following way of writing the cache mishandles newlines in values,
5806 # but we know of no workaround that is simple, portable, and efficient.
5807 # So, don't put newlines in cache variables' values.
5808 # Ultrix sh set writes to stderr and can't be redirected directly,
5809 # and sets the high bit in the cache file unless we assign to the vars.
5811 case `(ac_space=' '; set) 2>&1` in
5813 # `set' does not quote correctly, so add quotes (double-quote substitution
5814 # turns \\\\ into \\, and sed turns \\ into \).
5816 -e "s/'/'\\\\''/g" \
5817 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5820 # `set' quotes correctly as required by POSIX, so do not add quotes.
5821 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5824 if cmp -s $cache_file confcache; then
5827 if test -w $cache_file; then
5828 echo "updating cache $cache_file"
5829 cat confcache > $cache_file
5831 echo "not updating unwritable cache $cache_file"
5836 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5838 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5839 # Let make expand exec_prefix.
5840 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5842 # Any assignment to VPATH causes Sun make to only execute
5843 # the first set of double-colon rules, so remove it if not needed.
5844 # If there is a colon in the path, we need to keep it.
5845 if test "x$srcdir" = x.; then
5846 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5849 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5851 DEFS=-DHAVE_CONFIG_H
5853 # Without the "./", some shells look in PATH for config.status.
5854 : ${CONFIG_STATUS=./config.status}
5856 echo creating $CONFIG_STATUS
5857 rm -f $CONFIG_STATUS
5858 cat > $CONFIG_STATUS <<EOF
5860 # Generated automatically by configure.
5861 # Run this file to recreate the current configuration.
5862 # This directory was configured as follows,
5863 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5865 # $0 $ac_configure_args
5867 # Compiler output produced by configure, useful for debugging
5868 # configure, is in ./config.log if it exists.
5870 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5873 case "\$ac_option" in
5874 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5875 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5876 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5877 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5878 echo "$CONFIG_STATUS generated by autoconf version 2.12"
5880 -help | --help | --hel | --he | --h)
5881 echo "\$ac_cs_usage"; exit 0 ;;
5882 *) echo "\$ac_cs_usage"; exit 1 ;;
5886 ac_given_srcdir=$srcdir
5887 ac_given_INSTALL="$INSTALL"
5889 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5891 cat >> $CONFIG_STATUS <<EOF
5893 # Protect against being on the right side of a sed subst in config.status.
5894 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5895 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5898 s%@CFLAGS@%$CFLAGS%g
5899 s%@CPPFLAGS@%$CPPFLAGS%g
5900 s%@CXXFLAGS@%$CXXFLAGS%g
5902 s%@LDFLAGS@%$LDFLAGS%g
5904 s%@exec_prefix@%$exec_prefix%g
5905 s%@prefix@%$prefix%g
5906 s%@program_transform_name@%$program_transform_name%g
5907 s%@bindir@%$bindir%g
5908 s%@sbindir@%$sbindir%g
5909 s%@libexecdir@%$libexecdir%g
5910 s%@datadir@%$datadir%g
5911 s%@sysconfdir@%$sysconfdir%g
5912 s%@sharedstatedir@%$sharedstatedir%g
5913 s%@localstatedir@%$localstatedir%g
5914 s%@libdir@%$libdir%g
5915 s%@includedir@%$includedir%g
5916 s%@oldincludedir@%$oldincludedir%g
5917 s%@infodir@%$infodir%g
5918 s%@mandir@%$mandir%g
5921 s%@DLLTOOL@%$DLLTOOL%g
5923 s%@host_alias@%$host_alias%g
5924 s%@host_cpu@%$host_cpu%g
5925 s%@host_vendor@%$host_vendor%g
5926 s%@host_os@%$host_os%g
5927 s%@target@%$target%g
5928 s%@target_alias@%$target_alias%g
5929 s%@target_cpu@%$target_cpu%g
5930 s%@target_vendor@%$target_vendor%g
5931 s%@target_os@%$target_os%g
5933 s%@build_alias@%$build_alias%g
5934 s%@build_cpu@%$build_cpu%g
5935 s%@build_vendor@%$build_vendor%g
5936 s%@build_os@%$build_os%g
5937 s%@SET_MAKE@%$SET_MAKE%g
5938 s%@RANLIB@%$RANLIB%g
5939 s%@ALLOCA@%$ALLOCA%g
5940 s%@USE_NLS@%$USE_NLS%g
5941 s%@MSGFMT@%$MSGFMT%g
5942 s%@GMSGFMT@%$GMSGFMT%g
5943 s%@XGETTEXT@%$XGETTEXT%g
5944 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5945 s%@CATALOGS@%$CATALOGS%g
5946 s%@CATOBJEXT@%$CATOBJEXT%g
5947 s%@DATADIRNAME@%$DATADIRNAME%g
5948 s%@GMOFILES@%$GMOFILES%g
5949 s%@INSTOBJEXT@%$INSTOBJEXT%g
5950 s%@INTLDEPS@%$INTLDEPS%g
5951 s%@INTLLIBS@%$INTLLIBS%g
5952 s%@INTLOBJS@%$INTLOBJS%g
5953 s%@POFILES@%$POFILES%g
5955 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5957 s%@GT_YES@%$GT_YES%g
5958 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5960 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5961 s%@INSTALL_DATA@%$INSTALL_DATA%g
5965 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
5966 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
5967 s%@MMALLOC@%$MMALLOC%g
5968 s%@ENABLE_IDE@%$ENABLE_IDE%g
5969 s%@FOUNDRY_LIB_BASE@%$FOUNDRY_LIB_BASE%g
5970 s%@LIBGUI@%$LIBGUI%g
5971 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
5972 s%@IDE_CFLAGS_X@%$IDE_CFLAGS_X%g
5974 s%@LIBIDETCL@%$LIBIDETCL%g
5975 s%@LIBIDE@%$LIBIDE%g
5976 s%@IDE_DEPS@%$IDE_DEPS%g
5977 s%@WIN32LIBS@%$WIN32LIBS%g
5978 s%@WIN32LDAPP@%$WIN32LDAPP%g
5979 s%@WINDRES@%$WINDRES%g
5980 s%@TCL_VERSION@%$TCL_VERSION%g
5981 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
5982 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
5983 s%@TCL_CC@%$TCL_CC%g
5984 s%@TCL_DEFS@%$TCL_DEFS%g
5985 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
5986 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
5987 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
5988 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
5989 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
5990 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
5991 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
5992 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
5993 s%@TCL_RANLIB@%$TCL_RANLIB%g
5994 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
5995 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
5996 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
5997 s%@TK_VERSION@%$TK_VERSION%g
5998 s%@TK_DEFS@%$TK_DEFS%g
5999 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
6000 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
6001 s%@TK_XLIBSW@%$TK_XLIBSW%g
6002 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
6003 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
6004 s%@TCLHDIR@%$TCLHDIR%g
6005 s%@TKHDIR@%$TKHDIR%g
6006 s%@ITCLHDIR@%$ITCLHDIR%g
6007 s%@ITCLLIB@%$ITCLLIB%g
6008 s%@TIXHDIR@%$TIXHDIR%g
6009 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
6010 s%@X_CFLAGS@%$X_CFLAGS%g
6011 s%@X_LDFLAGS@%$X_LDFLAGS%g
6012 s%@X_LIBS@%$X_LIBS%g
6013 s%@TIXLIB@%$TIXLIB%g
6014 s%@TIX_DEPS@%$TIX_DEPS%g
6015 s%@GDBTKLIBS@%$GDBTKLIBS%g
6016 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
6017 s%@CONFIG_OBS@%$CONFIG_OBS%g
6018 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
6019 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
6020 s%@HLDFLAGS@%$HLDFLAGS%g
6021 s%@HLDENV@%$HLDENV%g
6022 s%@target_subdir@%$target_subdir%g
6023 /@host_makefile_frag@/r $host_makefile_frag
6024 s%@host_makefile_frag@%%g
6025 /@target_makefile_frag@/r $target_makefile_frag
6026 s%@target_makefile_frag@%%g
6029 s%@EXEEXT@%$EXEEXT%g
6030 s%@subdirs@%$subdirs%g
6035 cat >> $CONFIG_STATUS <<\EOF
6037 # Split the substitutions into bite-sized pieces for seds with
6038 # small command number limits, like on Digital OSF/1 and HP-UX.
6039 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6040 ac_file=1 # Number of current file.
6041 ac_beg=1 # First line for current file.
6042 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6045 while $ac_more_lines; do
6046 if test $ac_beg -gt 1; then
6047 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6049 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6051 if test ! -s conftest.s$ac_file; then
6053 rm -f conftest.s$ac_file
6055 if test -z "$ac_sed_cmds"; then
6056 ac_sed_cmds="sed -f conftest.s$ac_file"
6058 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6060 ac_file=`expr $ac_file + 1`
6062 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6065 if test -z "$ac_sed_cmds"; then
6070 cat >> $CONFIG_STATUS <<EOF
6072 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
6074 cat >> $CONFIG_STATUS <<\EOF
6075 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6076 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6078 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6079 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6080 *) ac_file_in="${ac_file}.in" ;;
6083 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6085 # Remove last slash and all that follows it. Not all systems have dirname.
6086 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6087 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6088 # The file is in a subdirectory.
6089 test ! -d "$ac_dir" && mkdir "$ac_dir"
6090 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6091 # A "../" for each directory in $ac_dir_suffix.
6092 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6094 ac_dir_suffix= ac_dots=
6097 case "$ac_given_srcdir" in
6099 if test -z "$ac_dots"; then top_srcdir=.
6100 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6101 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6103 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6104 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6107 case "$ac_given_INSTALL" in
6108 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6109 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6112 echo creating "$ac_file"
6114 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6116 *Makefile*) ac_comsub="1i\\
6117 # $configure_input" ;;
6121 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6123 s%@configure_input@%$configure_input%g
6124 s%@srcdir@%$srcdir%g
6125 s%@top_srcdir@%$top_srcdir%g
6126 s%@INSTALL@%$INSTALL%g
6127 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6131 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6132 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6134 # ac_d sets the value in "#define NAME VALUE" lines.
6135 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6136 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6139 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6140 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6141 ac_uB='\([ ]\)%\1#\2define\3'
6144 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6145 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6146 ac_eB='$%\1#\2define\3'
6150 if test "${CONFIG_HEADERS+set}" != set; then
6152 cat >> $CONFIG_STATUS <<EOF
6153 CONFIG_HEADERS="config.h:config.in"
6155 cat >> $CONFIG_STATUS <<\EOF
6157 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6158 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6160 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6161 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6162 *) ac_file_in="${ac_file}.in" ;;
6165 echo creating $ac_file
6167 rm -f conftest.frag conftest.in conftest.out
6168 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6169 cat $ac_file_inputs > conftest.in
6173 # Transform confdefs.h into a sed script conftest.vals that substitutes
6174 # the proper values into config.h.in to produce config.h. And first:
6175 # Protect against being on the right side of a sed subst in config.status.
6176 # Protect against being in an unquoted here document in config.status.
6178 cat > conftest.hdr <<\EOF
6181 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6185 sed -n -f conftest.hdr confdefs.h > conftest.vals
6188 # This sed command replaces #undef with comments. This is necessary, for
6189 # example, in the case of _POSIX_SOURCE, which is predefined and required
6190 # on some systems where configure will not decide to define it.
6191 cat >> conftest.vals <<\EOF
6192 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6195 # Break up conftest.vals because some shells have a limit on
6196 # the size of here documents, and old seds have small limits too.
6201 ac_lines=`grep -c . conftest.vals`
6202 # grep -c gives empty output for an empty file on some AIX systems.
6203 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6204 # Write a limited-size here document to conftest.frag.
6205 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6206 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6208 sed -f conftest.frag conftest.in > conftest.out
6210 mv conftest.out conftest.in
6212 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6214 mv conftest.tail conftest.vals
6218 cat >> $CONFIG_STATUS <<\EOF
6219 rm -f conftest.frag conftest.h
6220 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6221 cat conftest.in >> conftest.h
6223 if cmp -s $ac_file conftest.h 2>/dev/null; then
6224 echo "$ac_file is unchanged"
6227 # Remove last slash and all that follows it. Not all systems have dirname.
6228 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6229 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6230 # The file is in a subdirectory.
6231 test ! -d "$ac_dir" && mkdir "$ac_dir"
6234 mv conftest.h $ac_file
6240 cat >> $CONFIG_STATUS <<EOF
6245 cat >> $CONFIG_STATUS <<\EOF
6246 srcdir=$ac_given_srcdir
6247 while test -n "$ac_sources"; do
6248 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6249 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6251 echo "linking $srcdir/$ac_source to $ac_dest"
6253 if test ! -r $srcdir/$ac_source; then
6254 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6258 # Make relative symlinks.
6259 # Remove last slash and all that follows it. Not all systems have dirname.
6260 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
6261 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6262 # The dest file is in a subdirectory.
6263 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6264 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
6265 # A "../" for each directory in $ac_dest_dir_suffix.
6266 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
6268 ac_dest_dir_suffix= ac_dots=
6272 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6273 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6276 # Make a symlink if possible; otherwise try a hard link.
6277 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6278 ln $srcdir/$ac_source $ac_dest; then :
6280 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6284 cat >> $CONFIG_STATUS <<EOF
6286 gdb_host_cpu=$gdb_host_cpu
6287 gdb_target_cpu=$gdb_target_cpu
6288 nativefile=$nativefile
6291 cat >> $CONFIG_STATUS <<\EOF
6293 if test "${nativefile}" = ""; then
6294 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
6295 < Makefile > Makefile.tem
6296 mv -f Makefile.tem Makefile
6299 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
6300 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
6301 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
6302 mv -f Makefile.tmp Makefile
6304 case x$CONFIG_HEADERS in
6305 xconfig.h:config.in)
6311 chmod +x $CONFIG_STATUS
6312 rm -fr confdefs* $ac_clean_files
6313 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6315 if test "$no_recursion" != yes; then
6317 # Remove --cache-file and --srcdir arguments so they do not pile up.
6318 ac_sub_configure_args=
6320 for ac_arg in $ac_configure_args; do
6321 if test -n "$ac_prev"; then
6326 -cache-file | --cache-file | --cache-fil | --cache-fi \
6327 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6328 ac_prev=cache_file ;;
6329 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6330 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6336 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6340 for ac_config_dir in $configdirs; do
6342 # Do not complain, so a configure script can configure whichever
6343 # parts of a large source tree are present.
6344 if test ! -d $srcdir/$ac_config_dir; then
6348 echo configuring in $ac_config_dir
6353 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
6355 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
6363 # A "../" for each directory in /$ac_config_dir.
6364 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
6367 .) # No --srcdir option. We are building in place.
6368 ac_sub_srcdir=$srcdir ;;
6369 /*) # Absolute path.
6370 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
6372 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
6375 # Check for guested configure; otherwise get Cygnus style configure.
6376 if test -f $ac_sub_srcdir/configure; then
6377 ac_sub_configure=$ac_sub_srcdir/configure
6378 elif test -f $ac_sub_srcdir/configure.in; then
6379 ac_sub_configure=$ac_configure
6381 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
6385 # The recursion is here.
6386 if test -n "$ac_sub_configure"; then
6388 # Make the cache file name correct relative to the subdirectory.
6389 case "$cache_file" in
6390 /*) ac_sub_cache_file=$cache_file ;;
6392 ac_sub_cache_file="$ac_dots$cache_file" ;;
6394 case "$ac_given_INSTALL" in
6395 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6396 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6399 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
6400 # The eval makes quoting arguments work.
6401 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
6404 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }