3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR Configuring in a subdirectory for target"
17 --with-build-subdir=SUBDIR Configuring in a subdirectory for build"
19 --with-cross-host=HOST Configuring with a cross compiler"
21 --with-newlib Configuring with newlib"
23 --enable-maintainer-mode
24 enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
27 --enable-install-libiberty Install headers for end users"
29 # Initialize some variables set by options.
30 # The variables have the same names as the options, with
31 # dashes changed to underlines.
33 cache_file
=.
/config.cache
42 program_transform_name
=s
,x
,x
,
50 bindir
='${exec_prefix}/bin'
51 sbindir
='${exec_prefix}/sbin'
52 libexecdir
='${exec_prefix}/libexec'
53 datadir
='${prefix}/share'
54 sysconfdir
='${prefix}/etc'
55 sharedstatedir
='${prefix}/com'
56 localstatedir
='${prefix}/var'
57 libdir
='${exec_prefix}/lib'
58 includedir
='${prefix}/include'
59 oldincludedir
='/usr/include'
60 infodir
='${prefix}/info'
61 mandir
='${prefix}/man'
63 # Initialize some other variables.
66 SHELL
=${CONFIG_SHELL-/bin/sh}
67 # Maximum number of lines to put in a shell here document.
74 # If the previous option needs an argument, assign it.
75 if test -n "$ac_prev"; then
76 eval "$ac_prev=\$ac_option"
82 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86 # Accept the important Cygnus configure options, so we can diagnose typos.
90 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
92 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
93 bindir
="$ac_optarg" ;;
95 -build |
--build |
--buil |
--bui |
--bu)
97 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
100 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
101 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
102 ac_prev
=cache_file
;;
103 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
104 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
105 cache_file
="$ac_optarg" ;;
107 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
109 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
111 datadir
="$ac_optarg" ;;
113 -disable-* |
--disable-*)
114 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}=no" ;;
122 -enable-* |
--enable-*)
123 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}='$ac_optarg'" ;;
135 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
136 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
137 |
--exec |
--exe |
--ex)
138 ac_prev
=exec_prefix
;;
139 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
140 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
141 |
--exec=* |
--exe=* |
--ex=*)
142 exec_prefix
="$ac_optarg" ;;
144 -gas |
--gas |
--ga |
--g)
145 # Obsolete; use --with-gas.
148 -help |
--help |
--hel |
--he)
149 # Omit some internal or obsolete options to make the list less imposing.
150 # This message is too long to be a string in the A/UX 3.1 sh.
152 Usage: configure [options] [host]
153 Options: [defaults in brackets after descriptions]
155 --cache-file=FILE cache test results in FILE
156 --help print this message
157 --no-create do not create output files
158 --quiet, --silent do not print \`checking...' messages
159 --version print the version of autoconf that created configure
160 Directory and file names:
161 --prefix=PREFIX install architecture-independent files in PREFIX
163 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
165 --bindir=DIR user executables in DIR [EPREFIX/bin]
166 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
167 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
168 --datadir=DIR read-only architecture-independent data in DIR
170 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
171 --sharedstatedir=DIR modifiable architecture-independent data in DIR
173 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
174 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
175 --includedir=DIR C header files in DIR [PREFIX/include]
176 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
177 --infodir=DIR info documentation in DIR [PREFIX/info]
178 --mandir=DIR man documentation in DIR [PREFIX/man]
179 --srcdir=DIR find the sources in DIR [configure dir or ..]
180 --program-prefix=PREFIX prepend PREFIX to installed program names
181 --program-suffix=SUFFIX append SUFFIX to installed program names
182 --program-transform-name=PROGRAM
183 run sed PROGRAM on installed program names
187 --build=BUILD configure for building on BUILD [BUILD=HOST]
188 --host=HOST configure for HOST [guessed]
189 --target=TARGET configure for TARGET [TARGET=HOST]
190 Features and packages:
191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195 --x-includes=DIR X include files are in DIR
196 --x-libraries=DIR X library files are in DIR
198 if test -n "$ac_help"; then
199 echo "--enable and --with options recognized:$ac_help"
203 -host |
--host |
--hos |
--ho)
205 -host=* |
--host=* |
--hos=* |
--ho=*)
208 -includedir |
--includedir |
--includedi |
--included |
--include \
209 |
--includ |
--inclu |
--incl |
--inc)
210 ac_prev
=includedir
;;
211 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
212 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
213 includedir
="$ac_optarg" ;;
215 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
217 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
218 infodir
="$ac_optarg" ;;
220 -libdir |
--libdir |
--libdi |
--libd)
222 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
223 libdir
="$ac_optarg" ;;
225 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
226 |
--libexe |
--libex |
--libe)
227 ac_prev
=libexecdir
;;
228 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
229 |
--libexe=* |
--libex=* |
--libe=*)
230 libexecdir
="$ac_optarg" ;;
232 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
233 |
--localstate |
--localstat |
--localsta |
--localst \
234 |
--locals |
--local |
--loca |
--loc |
--lo)
235 ac_prev
=localstatedir
;;
236 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
237 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
238 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
239 localstatedir
="$ac_optarg" ;;
241 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
243 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
244 mandir
="$ac_optarg" ;;
247 # Obsolete; use --without-fp.
250 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
254 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
255 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
258 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
259 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
260 |
--oldin |
--oldi |
--old |
--ol |
--o)
261 ac_prev
=oldincludedir
;;
262 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
263 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
264 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
265 oldincludedir
="$ac_optarg" ;;
267 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
269 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
270 prefix
="$ac_optarg" ;;
272 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
273 |
--program-pre |
--program-pr |
--program-p)
274 ac_prev
=program_prefix
;;
275 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
276 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
277 program_prefix
="$ac_optarg" ;;
279 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
280 |
--program-suf |
--program-su |
--program-s)
281 ac_prev
=program_suffix
;;
282 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
283 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
284 program_suffix
="$ac_optarg" ;;
286 -program-transform-name |
--program-transform-name \
287 |
--program-transform-nam |
--program-transform-na \
288 |
--program-transform-n |
--program-transform- \
289 |
--program-transform |
--program-transfor \
290 |
--program-transfo |
--program-transf \
291 |
--program-trans |
--program-tran \
292 |
--progr-tra |
--program-tr |
--program-t)
293 ac_prev
=program_transform_name
;;
294 -program-transform-name=* |
--program-transform-name=* \
295 |
--program-transform-nam=* |
--program-transform-na=* \
296 |
--program-transform-n=* |
--program-transform-=* \
297 |
--program-transform=* |
--program-transfor=* \
298 |
--program-transfo=* |
--program-transf=* \
299 |
--program-trans=* |
--program-tran=* \
300 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
301 program_transform_name
="$ac_optarg" ;;
303 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
304 |
-silent |
--silent |
--silen |
--sile |
--sil)
307 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
309 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
311 sbindir
="$ac_optarg" ;;
313 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
314 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
315 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
317 ac_prev
=sharedstatedir
;;
318 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
319 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
320 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
322 sharedstatedir
="$ac_optarg" ;;
324 -site |
--site |
--sit)
326 -site=* |
--site=* |
--sit=*)
329 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
331 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
332 srcdir
="$ac_optarg" ;;
334 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
335 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
336 ac_prev
=sysconfdir
;;
337 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
338 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
339 sysconfdir
="$ac_optarg" ;;
341 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
343 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
344 target
="$ac_optarg" ;;
346 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
349 -version |
--version |
--versio |
--versi |
--vers)
350 echo "configure generated by autoconf version 2.13"
354 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package
=`echo $ac_package| sed 's/-/_/g'`
364 eval "with_${ac_package}='$ac_optarg'" ;;
366 -without-* |
--without-*)
367 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package
=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}=no" ;;
376 # Obsolete; use --with-x.
379 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
380 |
--x-incl |
--x-inc |
--x-in |
--x-i)
381 ac_prev
=x_includes
;;
382 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
383 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
384 x_includes
="$ac_optarg" ;;
386 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
387 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
388 ac_prev
=x_libraries
;;
389 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
390 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
391 x_libraries
="$ac_optarg" ;;
393 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
398 echo "configure: warning: $ac_option: invalid host type" 1>&2
400 if test "x$nonopt" != xNONE
; then
401 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409 if test -n "$ac_prev"; then
410 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
413 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415 # File descriptor usage:
418 # 2 errors and warnings
419 # 3 some systems may open it to /dev/tty
420 # 4 used on the Kubota Titan
421 # 6 checking for... messages and results
422 # 5 compiler messages saved in config.log
423 if test "$silent" = yes; then
431 This file contains any messages produced by compilers while
432 running configure, to aid debugging if configure makes a mistake.
435 # Strip out --no-create and --no-recursion so they do not pile up.
436 # Also quote any args containing shell metacharacters.
441 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
442 |
--no-cr |
--no-c) ;;
443 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
444 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
445 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
446 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
447 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
452 # Only set these to C if already set. These must not be set unconditionally
453 # because not all systems understand e.g. LANG=C (notably SCO).
454 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
455 # Non-C LC_CTYPE values break the ctype check.
456 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
457 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
458 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
459 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
462 rm -rf conftest
* confdefs.h
463 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
466 # A filename unique to this package, relative to the directory that
467 # configure is in, which we can look for to find out if srcdir is correct.
468 ac_unique_file
=xmalloc.c
470 # Find the source files, if location was not specified.
471 if test -z "$srcdir"; then
472 ac_srcdir_defaulted
=yes
473 # Try the directory containing this script, then its parent.
475 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
476 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
478 if test ! -r $srcdir/$ac_unique_file; then
482 ac_srcdir_defaulted
=no
484 if test ! -r $srcdir/$ac_unique_file; then
485 if test "$ac_srcdir_defaulted" = yes; then
486 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
491 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493 # Prefer explicitly selected file to automatically selected ones.
494 if test -z "$CONFIG_SITE"; then
495 if test "x$prefix" != xNONE
; then
496 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
498 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
501 for ac_site_file
in $CONFIG_SITE; do
502 if test -r "$ac_site_file"; then
503 echo "loading site script $ac_site_file"
508 if test -r "$cache_file"; then
509 echo "loading cache $cache_file"
512 echo "creating cache $cache_file"
517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
518 ac_cpp
='$CPP $CPPFLAGS'
519 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
520 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
521 cross_compiling
=$ac_cv_prog_cc_cross
525 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
526 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
527 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
534 ac_n
= ac_c
='\c' ac_t
=
539 # This works around the fact that libtool configuration may change LD
540 # for this particular configuration, but some shells, instead of
541 # keeping the changes in LD private, export them just because LD is
542 # exported. We don't use libtool yet, but some day we might, so...
543 ORIGINAL_LD_FOR_MULTILIBS
=$LD
545 # Check whether --with-target-subdir or --without-target-subdir was given.
546 if test "${with_target_subdir+set}" = set; then
547 withval
="$with_target_subdir"
551 # Check whether --with-build-subdir or --without-build-subdir was given.
552 if test "${with_build_subdir+set}" = set; then
553 withval
="$with_build_subdir"
557 # Check whether --with-cross-host or --without-cross-host was given.
558 if test "${with_cross_host+set}" = set; then
559 withval
="$with_cross_host"
563 # Check whether --with-newlib or --without-newlib was given.
564 if test "${with_newlib+set}" = set; then
565 withval
="$with_newlib"
570 if test "${srcdir}" = "."; then
571 if test -n "${with_build_subdir}"; then
572 libiberty_topdir
="${srcdir}/../.."
574 elif test -z "${with_target_subdir}"; then
575 libiberty_topdir
="${srcdir}/.."
577 if test "${with_target_subdir}" != "."; then
578 libiberty_topdir
="${srcdir}/${with_multisrctop}../.."
580 libiberty_topdir
="${srcdir}/${with_multisrctop}.."
584 libiberty_topdir
="${srcdir}/.."
588 for ac_dir
in $libiberty_topdir $srcdir/$libiberty_topdir; do
589 if test -f $ac_dir/install-sh
; then
591 ac_install_sh
="$ac_aux_dir/install-sh -c"
593 elif test -f $ac_dir/install.sh
; then
595 ac_install_sh
="$ac_aux_dir/install.sh -c"
599 if test -z "$ac_aux_dir"; then
600 { echo "configure: error: can not find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" 1>&2; exit 1; }
602 ac_config_guess
=$ac_aux_dir/config.guess
603 ac_config_sub
=$ac_aux_dir/config.sub
604 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
608 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
609 echo "configure:610: checking whether to enable maintainer-specific portions of Makefiles" >&5
610 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
611 if test "${enable_maintainer_mode+set}" = set; then
612 enableval
="$enable_maintainer_mode"
613 maintainer_mode
=$enableval
619 echo "$ac_t""$maintainer_mode" 1>&6
621 if test "$maintainer_mode" = "yes"; then
629 # Do we have a single-tree copy of texinfo? Even if we do, we can't
630 # rely on it - libiberty is built before texinfo.
631 # Extract the first word of "makeinfo", so it can be a program name with args.
632 set dummy makeinfo
; ac_word
=$2
633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
634 echo "configure:635: checking for $ac_word" >&5
635 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
636 echo $ac_n "(cached) $ac_c" 1>&6
638 if test -n "$MAKEINFO"; then
639 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
641 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
643 for ac_dir
in $ac_dummy; do
644 test -z "$ac_dir" && ac_dir
=.
645 if test -f $ac_dir/$ac_word; then
646 ac_cv_prog_MAKEINFO
="makeinfo"
653 MAKEINFO
="$ac_cv_prog_MAKEINFO"
654 if test -n "$MAKEINFO"; then
655 echo "$ac_t""$MAKEINFO" 1>&6
657 echo "$ac_t""no" 1>&6
660 if test "x$MAKEINFO" = "x"; then
661 MAKEINFO
="@echo makeinfo missing; true"
665 case x
"`$MAKEINFO --version | grep 'GNU texinfo'`" in
667 MAKEINFO
="@echo $MAKEINFO is too old, 4.0 or newer required; true"
669 echo "configure: warning:
670 *** Makeinfo is too old. Info documentation will not be built." 1>&2
677 # Extract the first word of "perl", so it can be a program name with args.
678 set dummy perl
; ac_word
=$2
679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
680 echo "configure:681: checking for $ac_word" >&5
681 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
682 echo $ac_n "(cached) $ac_c" 1>&6
684 if test -n "$PERL"; then
685 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
687 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
689 for ac_dir
in $ac_dummy; do
690 test -z "$ac_dir" && ac_dir
=.
691 if test -f $ac_dir/$ac_word; then
692 ac_cv_prog_PERL
="perl"
699 PERL
="$ac_cv_prog_PERL"
700 if test -n "$PERL"; then
701 echo "$ac_t""$PERL" 1>&6
703 echo "$ac_t""no" 1>&6
706 if test x
"$PERL" = x
""; then
714 # Make sure we can run config.sub.
715 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
716 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
719 echo $ac_n "checking host system type""... $ac_c" 1>&6
720 echo "configure:721: checking host system type" >&5
723 case "$host_alias" in
727 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
728 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
730 *) host_alias
=$nonopt ;;
734 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
735 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
736 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
737 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
738 echo "$ac_t""$host" 1>&6
742 echo $ac_n "checking build system type""... $ac_c" 1>&6
743 echo "configure:744: checking build system type" >&5
746 case "$build_alias" in
749 NONE
) build_alias
=$host_alias ;;
750 *) build_alias
=$nonopt ;;
754 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
755 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
756 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
757 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
758 echo "$ac_t""$build" 1>&6
760 if test $host != $build; then
761 ac_tool_prefix
=${host_alias}-
766 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
767 set dummy
${ac_tool_prefix}ar; ac_word
=$2
768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
769 echo "configure:770: checking for $ac_word" >&5
770 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
771 echo $ac_n "(cached) $ac_c" 1>&6
773 if test -n "$AR"; then
774 ac_cv_prog_AR
="$AR" # Let the user override the test.
776 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
778 for ac_dir
in $ac_dummy; do
779 test -z "$ac_dir" && ac_dir
=.
780 if test -f $ac_dir/$ac_word; then
781 ac_cv_prog_AR
="${ac_tool_prefix}ar"
786 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
790 if test -n "$AR"; then
791 echo "$ac_t""$AR" 1>&6
793 echo "$ac_t""no" 1>&6
798 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
799 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
801 echo "configure:802: checking for $ac_word" >&5
802 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
803 echo $ac_n "(cached) $ac_c" 1>&6
805 if test -n "$RANLIB"; then
806 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
808 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
810 for ac_dir
in $ac_dummy; do
811 test -z "$ac_dir" && ac_dir
=.
812 if test -f $ac_dir/$ac_word; then
813 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
820 RANLIB
="$ac_cv_prog_RANLIB"
821 if test -n "$RANLIB"; then
822 echo "$ac_t""$RANLIB" 1>&6
824 echo "$ac_t""no" 1>&6
828 if test -z "$ac_cv_prog_RANLIB"; then
829 if test -n "$ac_tool_prefix"; then
830 # Extract the first word of "ranlib", so it can be a program name with args.
831 set dummy ranlib
; ac_word
=$2
832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
833 echo "configure:834: checking for $ac_word" >&5
834 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
837 if test -n "$RANLIB"; then
838 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
840 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
842 for ac_dir
in $ac_dummy; do
843 test -z "$ac_dir" && ac_dir
=.
844 if test -f $ac_dir/$ac_word; then
845 ac_cv_prog_RANLIB
="ranlib"
850 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
853 RANLIB
="$ac_cv_prog_RANLIB"
854 if test -n "$RANLIB"; then
855 echo "$ac_t""$RANLIB" 1>&6
857 echo "$ac_t""no" 1>&6
867 # Extract the first word of "gcc", so it can be a program name with args.
868 set dummy gcc
; ac_word
=$2
869 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
870 echo "configure:871: checking for $ac_word" >&5
871 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
872 echo $ac_n "(cached) $ac_c" 1>&6
874 if test -n "$CC"; then
875 ac_cv_prog_CC
="$CC" # Let the user override the test.
877 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
879 for ac_dir
in $ac_dummy; do
880 test -z "$ac_dir" && ac_dir
=.
881 if test -f $ac_dir/$ac_word; then
890 if test -n "$CC"; then
891 echo "$ac_t""$CC" 1>&6
893 echo "$ac_t""no" 1>&6
896 if test -z "$CC"; then
897 # Extract the first word of "cc", so it can be a program name with args.
898 set dummy cc
; ac_word
=$2
899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
900 echo "configure:901: checking for $ac_word" >&5
901 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
904 if test -n "$CC"; then
905 ac_cv_prog_CC
="$CC" # Let the user override the test.
907 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
910 for ac_dir
in $ac_dummy; do
911 test -z "$ac_dir" && ac_dir
=.
912 if test -f $ac_dir/$ac_word; then
913 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
922 if test $ac_prog_rejected = yes; then
923 # We found a bogon in the path, so make sure we never use it.
924 set dummy
$ac_cv_prog_CC
926 if test $# -gt 0; then
927 # We chose a different compiler from the bogus one.
928 # However, it has the same basename, so the bogon will be chosen
929 # first if we set CC to just the basename; use the full file name.
931 set dummy
"$ac_dir/$ac_word" "$@"
939 if test -n "$CC"; then
940 echo "$ac_t""$CC" 1>&6
942 echo "$ac_t""no" 1>&6
945 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
948 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
949 echo "configure:950: checking whether we are using GNU C" >&5
950 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
951 echo $ac_n "(cached) $ac_c" 1>&6
953 cat > conftest.c
<<EOF
958 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
965 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
967 if test $ac_cv_prog_gcc = yes; then
969 ac_libiberty_warn_cflags
='-W -Wall -Wtraditional -pedantic'
970 ac_test_CFLAGS
="${CFLAGS+set}"
971 ac_save_CFLAGS
="$CFLAGS"
973 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
974 echo "configure:975: checking whether ${CC-cc} accepts -g" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
978 echo 'void f(){}' > conftest.c
979 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
988 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
989 if test "$ac_test_CFLAGS" = set; then
990 CFLAGS
="$ac_save_CFLAGS"
991 elif test $ac_cv_prog_cc_g = yes; then
998 ac_libiberty_warn_cflags
=
999 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1004 if test "x$CC" != xcc
; then
1005 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1006 echo "configure:1007: checking whether $CC and cc understand -c and -o together" >&5
1008 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1009 echo "configure:1010: checking whether cc understands -c and -o together" >&5
1011 set dummy
$CC; ac_cc
="`echo $2 |
1012 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1013 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1014 echo $ac_n "(cached) $ac_c" 1>&6
1016 echo 'foo(){}' > conftest.c
1017 # Make sure it works both with $CC and with simple cc.
1018 # We do the test twice because some compilers refuse to overwrite an
1019 # existing .o file with -o, though they will create one.
1020 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1021 if { (eval echo configure
:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1022 test -f conftest.o
&& { (eval echo configure
:1023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1024 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1025 if test "x$CC" != xcc
; then
1026 # Test first that cc exists at all.
1027 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1028 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1029 if { (eval echo configure
:1030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1030 test -f conftest.o
&& { (eval echo configure
:1031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1035 # cc exists but doesn't like -o.
1036 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1041 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1046 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1047 echo "$ac_t""yes" 1>&6
1049 echo "$ac_t""no" 1>&6
1050 cat >> confdefs.h
<<\EOF
1051 #define NO_MINUS_C_MINUS_O 1
1056 # autoconf is lame and doesn't give us any substitution variable for this.
1057 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1058 NO_MINUS_C_MINUS_O
=yes
1060 OUTPUT_OPTION
='-o $@'
1065 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1066 echo "configure:1067: checking for POSIXized ISC" >&5
1067 if test -d /etc
/conf
/kconfig.d
&&
1068 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1070 echo "$ac_t""yes" 1>&6
1071 ISC
=yes # If later tests want to check for ISC.
1072 cat >> confdefs.h
<<\EOF
1073 #define _POSIX_SOURCE 1
1076 if test "$GCC" = yes; then
1082 echo "$ac_t""no" 1>&6
1086 echo $ac_n "checking for working const""... $ac_c" 1>&6
1087 echo "configure:1088: checking for working const" >&5
1088 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1089 echo $ac_n "(cached) $ac_c" 1>&6
1091 cat > conftest.
$ac_ext <<EOF
1092 #line 1093 "configure"
1093 #include "confdefs.h"
1097 /* Ultrix mips cc rejects this. */
1098 typedef int charset[2]; const charset x;
1099 /* SunOS 4.1.1 cc rejects this. */
1100 char const *const *ccp;
1102 /* NEC SVR4.0.2 mips cc rejects this. */
1103 struct point {int x, y;};
1104 static struct point const zero = {0,0};
1105 /* AIX XL C 1.02.0.0 rejects this.
1106 It does not let you subtract one const X* pointer from another in an arm
1107 of an if-expression whose if-part is not a constant expression */
1108 const char *g = "string";
1109 ccp = &g + (g ? g-g : 0);
1110 /* HPUX 7.0 cc rejects these. */
1113 ccp = (char const *const *) p;
1114 { /* SCO 3.2v4 cc rejects this. */
1116 char const *s = 0 ? (char *) 0 : (char const *) 0;
1120 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1122 const int *foo = &x[0];
1125 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1126 typedef const int *iptr;
1130 { /* AIX XL C 1.02.0.0 rejects this saying
1131 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1132 struct s { int j; const int *ap[3]; };
1133 struct s *b; b->j = 5;
1135 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1141 if { (eval echo configure
:1142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1145 echo "configure: failed program was:" >&5
1146 cat conftest.
$ac_ext >&5
1153 echo "$ac_t""$ac_cv_c_const" 1>&6
1154 if test $ac_cv_c_const = no
; then
1155 cat >> confdefs.h
<<\EOF
1161 echo $ac_n "checking for inline""... $ac_c" 1>&6
1162 echo "configure:1163: checking for inline" >&5
1163 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1167 for ac_kw
in inline __inline__ __inline
; do
1168 cat > conftest.
$ac_ext <<EOF
1169 #line 1170 "configure"
1170 #include "confdefs.h"
1176 if { (eval echo configure
:1177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1178 ac_cv_c_inline
=$ac_kw; break
1180 echo "configure: failed program was:" >&5
1181 cat conftest.
$ac_ext >&5
1188 echo "$ac_t""$ac_cv_c_inline" 1>&6
1189 case "$ac_cv_c_inline" in
1191 no
) cat >> confdefs.h
<<\EOF
1195 *) cat >> confdefs.h
<<EOF
1196 #define inline $ac_cv_c_inline
1207 # Find a good install program. We prefer a C program (faster),
1208 # so one script is as good as another. But avoid the broken or
1209 # incompatible versions:
1210 # SysV /etc/install, /usr/sbin/install
1211 # SunOS /usr/etc/install
1212 # IRIX /sbin/install
1214 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1215 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1216 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1217 # ./install, which can be erroneously created by make from ./install.sh.
1218 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1219 echo "configure:1220: checking for a BSD compatible install" >&5
1220 if test -z "$INSTALL"; then
1221 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&6
1224 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1225 for ac_dir
in $PATH; do
1226 # Account for people who put trailing slashes in PATH elements.
1228 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1230 # OSF1 and SCO ODT 3.0 have their own names for install.
1231 # Don't use installbsd from OSF since it installs stuff as root
1233 for ac_prog
in ginstall scoinst
install; do
1234 if test -f $ac_dir/$ac_prog; then
1235 if test $ac_prog = install &&
1236 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1237 # AIX install. It has an incompatible calling convention.
1240 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1251 if test "${ac_cv_path_install+set}" = set; then
1252 INSTALL
="$ac_cv_path_install"
1254 # As a last resort, use the slow shell script. We don't cache a
1255 # path for INSTALL within a source directory, because that will
1256 # break other packages using the cache if that directory is
1257 # removed, or if the path is relative.
1258 INSTALL
="$ac_install_sh"
1261 echo "$ac_t""$INSTALL" 1>&6
1263 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1264 # It thinks the first close brace ends the variable substitution.
1265 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1267 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1269 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1272 .
${srcdir}/config.table
1273 host_makefile_frag
=${frag}
1276 # It's OK to check for header files. Although the compiler may not be
1277 # able to link anything, it had better be able to at least compile
1279 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1280 echo "configure:1281: checking how to run the C preprocessor" >&5
1281 # On Suns, sometimes $CPP names a directory.
1282 if test -n "$CPP" && test -d "$CPP"; then
1285 if test -z "$CPP"; then
1286 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 # This must be in double quotes, not single quotes, because CPP may get
1290 # substituted into the Makefile and "${CC-cc}" will confuse make.
1292 # On the NeXT, cc -E runs the code through the compiler's parser,
1293 # not just through cpp.
1294 cat > conftest.
$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1300 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1301 { (eval echo configure
:1302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1302 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1303 if test -z "$ac_err"; then
1307 echo "configure: failed program was:" >&5
1308 cat conftest.
$ac_ext >&5
1310 CPP
="${CC-cc} -E -traditional-cpp"
1311 cat > conftest.
$ac_ext <<EOF
1312 #line 1313 "configure"
1313 #include "confdefs.h"
1317 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1318 { (eval echo configure
:1319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1319 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1320 if test -z "$ac_err"; then
1324 echo "configure: failed program was:" >&5
1325 cat conftest.
$ac_ext >&5
1327 CPP
="${CC-cc} -nologo -E"
1328 cat > conftest.
$ac_ext <<EOF
1329 #line 1330 "configure"
1330 #include "confdefs.h"
1334 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1335 { (eval echo configure
:1336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1336 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1337 if test -z "$ac_err"; then
1341 echo "configure: failed program was:" >&5
1342 cat conftest.
$ac_ext >&5
1351 ac_cv_prog_CPP
="$CPP"
1353 CPP
="$ac_cv_prog_CPP"
1355 ac_cv_prog_CPP
="$CPP"
1357 echo "$ac_t""$CPP" 1>&6
1359 for ac_hdr
in sys
/file.h sys
/param.h limits.h stdlib.h string.h unistd.h
strings.h sys
/time.h
time.h sys
/resource.h sys
/stat.h sys
/mman.h fcntl.h alloca.h sys
/pstat.h sys
/sysmp.h sys
/sysinfo.h machine
/hal_sysinfo.h sys
/table.h sys
/sysctl.h sys
/systemcfg.h
1361 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1362 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1363 echo "configure:1364: checking for $ac_hdr" >&5
1364 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1365 echo $ac_n "(cached) $ac_c" 1>&6
1367 cat > conftest.
$ac_ext <<EOF
1368 #line 1369 "configure"
1369 #include "confdefs.h"
1372 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1373 { (eval echo configure
:1374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1374 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1375 if test -z "$ac_err"; then
1377 eval "ac_cv_header_$ac_safe=yes"
1380 echo "configure: failed program was:" >&5
1381 cat conftest.
$ac_ext >&5
1383 eval "ac_cv_header_$ac_safe=no"
1387 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1388 echo "$ac_t""yes" 1>&6
1389 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1390 cat >> confdefs.h
<<EOF
1391 #define $ac_tr_hdr 1
1395 echo "$ac_t""no" 1>&6
1399 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1400 echo "configure:1401: checking for sys/wait.h that is POSIX.1 compatible" >&5
1401 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1404 cat > conftest.
$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1407 #include <sys/types.h>
1408 #include <sys/wait.h>
1410 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1413 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1418 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1421 if { (eval echo configure
:1422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1423 ac_cv_header_sys_wait_h
=yes
1425 echo "configure: failed program was:" >&5
1426 cat conftest.
$ac_ext >&5
1428 ac_cv_header_sys_wait_h
=no
1433 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1434 if test $ac_cv_header_sys_wait_h = yes; then
1435 cat >> confdefs.h
<<\EOF
1436 #define HAVE_SYS_WAIT_H 1
1441 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1442 echo "configure:1443: checking whether time.h and sys/time.h may both be included" >&5
1443 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1446 cat > conftest.
$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1449 #include <sys/types.h>
1450 #include <sys/time.h>
1456 if { (eval echo configure
:1457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1458 ac_cv_header_time
=yes
1460 echo "configure: failed program was:" >&5
1461 cat conftest.
$ac_ext >&5
1463 ac_cv_header_time
=no
1468 echo "$ac_t""$ac_cv_header_time" 1>&6
1469 if test $ac_cv_header_time = yes; then
1470 cat >> confdefs.h
<<\EOF
1471 #define TIME_WITH_SYS_TIME 1
1477 echo $ac_n "checking whether errno must be declared""... $ac_c" 1>&6
1478 echo "configure:1479: checking whether errno must be declared" >&5
1479 if eval "test \"`echo '$''{'libiberty_cv_declare_errno'+set}'`\" = set"; then
1480 echo $ac_n "(cached) $ac_c" 1>&6
1482 cat > conftest.
$ac_ext <<EOF
1483 #line 1484 "configure"
1484 #include "confdefs.h"
1490 if { (eval echo configure
:1491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1492 libiberty_cv_declare_errno
=no
1494 echo "configure: failed program was:" >&5
1495 cat conftest.
$ac_ext >&5
1497 libiberty_cv_declare_errno
=yes
1502 echo "$ac_t""$libiberty_cv_declare_errno" 1>&6
1503 if test $libiberty_cv_declare_errno = yes
1504 then cat >> confdefs.h
<<\EOF
1505 #define NEED_DECLARATION_ERRNO 1
1511 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1512 echo "configure:1513: checking for ANSI C header files" >&5
1513 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1516 cat > conftest.
$ac_ext <<EOF
1517 #line 1518 "configure"
1518 #include "confdefs.h"
1524 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1525 { (eval echo configure
:1526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1526 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1527 if test -z "$ac_err"; then
1529 ac_cv_header_stdc
=yes
1532 echo "configure: failed program was:" >&5
1533 cat conftest.
$ac_ext >&5
1535 ac_cv_header_stdc
=no
1539 if test $ac_cv_header_stdc = yes; then
1540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1541 cat > conftest.
$ac_ext <<EOF
1542 #line 1543 "configure"
1543 #include "confdefs.h"
1546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1547 egrep "memchr" >/dev
/null
2>&1; then
1551 ac_cv_header_stdc
=no
1557 if test $ac_cv_header_stdc = yes; then
1558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1559 cat > conftest.
$ac_ext <<EOF
1560 #line 1561 "configure"
1561 #include "confdefs.h"
1564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1565 egrep "free" >/dev
/null
2>&1; then
1569 ac_cv_header_stdc
=no
1575 if test $ac_cv_header_stdc = yes; then
1576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1577 if test "$cross_compiling" = yes; then
1580 cat > conftest.
$ac_ext <<EOF
1581 #line 1582 "configure"
1582 #include "confdefs.h"
1584 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1585 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1587 int main () { int i; for (i = 0; i < 256; i++)
1588 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1592 if { (eval echo configure
:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1596 echo "configure: failed program was:" >&5
1597 cat conftest.
$ac_ext >&5
1599 ac_cv_header_stdc
=no
1607 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1608 if test $ac_cv_header_stdc = yes; then
1609 cat >> confdefs.h
<<\EOF
1610 #define STDC_HEADERS 1
1615 echo $ac_n "checking for uintptr_t""... $ac_c" 1>&6
1616 echo "configure:1617: checking for uintptr_t" >&5
1617 if eval "test \"`echo '$''{'ac_cv_type_uintptr_t'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1620 cat > conftest.
$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1623 #include <sys/types.h>
1629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1630 egrep "(^|[^a-zA-Z_0-9])uintptr_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1632 ac_cv_type_uintptr_t
=yes
1635 ac_cv_type_uintptr_t
=no
1640 echo "$ac_t""$ac_cv_type_uintptr_t" 1>&6
1641 if test $ac_cv_type_uintptr_t = no
; then
1642 cat >> confdefs.h
<<\EOF
1643 #define uintptr_t unsigned long
1648 # Given the above check, we always have uintptr_t or a fallback
1649 # definition. So define HAVE_UINTPTR_T in case any imported code
1651 cat >> confdefs.h
<<\EOF
1652 #define HAVE_UINTPTR_T 1
1656 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1657 echo "configure:1658: checking for pid_t" >&5
1658 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1659 echo $ac_n "(cached) $ac_c" 1>&6
1661 cat > conftest.
$ac_ext <<EOF
1662 #line 1663 "configure"
1663 #include "confdefs.h"
1664 #include <sys/types.h>
1670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1671 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1673 ac_cv_type_pid_t
=yes
1681 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1682 if test $ac_cv_type_pid_t = no
; then
1683 cat >> confdefs.h
<<\EOF
1690 # This is the list of functions which libiberty will provide if they
1691 # are not available on the host.
1694 funcs
="$funcs atexit"
1695 funcs
="$funcs basename"
1697 funcs
="$funcs bcopy"
1698 funcs
="$funcs bsearch"
1699 funcs
="$funcs bzero"
1700 funcs
="$funcs calloc"
1701 funcs
="$funcs clock"
1703 funcs
="$funcs getcwd"
1704 funcs
="$funcs getpagesize"
1705 funcs
="$funcs index"
1706 funcs
="$funcs insque"
1707 funcs
="$funcs memchr"
1708 funcs
="$funcs memcmp"
1709 funcs
="$funcs memcpy"
1710 funcs
="$funcs memmove"
1711 funcs
="$funcs memset"
1712 funcs
="$funcs mkstemps"
1713 funcs
="$funcs putenv"
1714 funcs
="$funcs random"
1715 funcs
="$funcs rename"
1716 funcs
="$funcs rindex"
1717 funcs
="$funcs setenv"
1718 funcs
="$funcs sigsetmask"
1719 funcs
="$funcs strcasecmp"
1720 funcs
="$funcs strchr"
1721 funcs
="$funcs strdup"
1722 funcs
="$funcs strncasecmp"
1723 funcs
="$funcs strrchr"
1724 funcs
="$funcs strstr"
1725 funcs
="$funcs strtod"
1726 funcs
="$funcs strtol"
1727 funcs
="$funcs strtoul"
1728 funcs
="$funcs tmpnam"
1729 funcs
="$funcs vasprintf"
1730 funcs
="$funcs vfprintf"
1731 funcs
="$funcs vprintf"
1732 funcs
="$funcs vsprintf"
1733 funcs
="$funcs waitpid"
1735 # Also in the old function.def file: alloca, vfork, getopt.
1737 vars
="sys_errlist sys_nerr sys_siglist _system_configuration"
1739 checkfuncs
="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
1740 checkfuncs
="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
1741 checkfuncs
="$checkfuncs getsysinfo table sysctl"
1743 # These are neither executed nor required, but they help keep
1744 # autoheader happy without adding a bunch of text to acconfig.h.
1745 if test "x" = "y"; then
1746 for ac_func
in asprintf atexit
basename bcmp bcopy bsearch bzero calloc
clock
1748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1749 echo "configure:1750: checking for $ac_func" >&5
1750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1753 cat > conftest.
$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1756 /* System header to define __stub macros and hopefully few prototypes,
1757 which can conflict with char $ac_func(); below. */
1759 /* Override any gcc2 internal prototype to avoid an error. */
1760 /* We use char because int might match the return type of a gcc2
1761 builtin and then its argument prototype would still apply. */
1766 /* The GNU C library defines this for functions which it implements
1767 to always fail with ENOSYS. Some functions are actually named
1768 something starting with __ and the normal name is an alias. */
1769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1777 if { (eval echo configure
:1778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1779 eval "ac_cv_func_$ac_func=yes"
1781 echo "configure: failed program was:" >&5
1782 cat conftest.
$ac_ext >&5
1784 eval "ac_cv_func_$ac_func=no"
1789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1790 echo "$ac_t""yes" 1>&6
1791 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1792 cat >> confdefs.h
<<EOF
1793 #define $ac_tr_func 1
1797 echo "$ac_t""no" 1>&6
1801 for ac_func
in getcwd getpagesize index insque mkstemps memchr memcmp memcpy
1803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1804 echo "configure:1805: checking for $ac_func" >&5
1805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1808 cat > conftest.
$ac_ext <<EOF
1809 #line 1810 "configure"
1810 #include "confdefs.h"
1811 /* System header to define __stub macros and hopefully few prototypes,
1812 which can conflict with char $ac_func(); below. */
1814 /* Override any gcc2 internal prototype to avoid an error. */
1815 /* We use char because int might match the return type of a gcc2
1816 builtin and then its argument prototype would still apply. */
1821 /* The GNU C library defines this for functions which it implements
1822 to always fail with ENOSYS. Some functions are actually named
1823 something starting with __ and the normal name is an alias. */
1824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1832 if { (eval echo configure
:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1834 eval "ac_cv_func_$ac_func=yes"
1836 echo "configure: failed program was:" >&5
1837 cat conftest.
$ac_ext >&5
1839 eval "ac_cv_func_$ac_func=no"
1844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1845 echo "$ac_t""yes" 1>&6
1846 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1847 cat >> confdefs.h
<<EOF
1848 #define $ac_tr_func 1
1852 echo "$ac_t""no" 1>&6
1856 for ac_func
in memmove memset putenv random rename rindex sigsetmask
1858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1859 echo "configure:1860: checking for $ac_func" >&5
1860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1863 cat > conftest.
$ac_ext <<EOF
1864 #line 1865 "configure"
1865 #include "confdefs.h"
1866 /* System header to define __stub macros and hopefully few prototypes,
1867 which can conflict with char $ac_func(); below. */
1869 /* Override any gcc2 internal prototype to avoid an error. */
1870 /* We use char because int might match the return type of a gcc2
1871 builtin and then its argument prototype would still apply. */
1876 /* The GNU C library defines this for functions which it implements
1877 to always fail with ENOSYS. Some functions are actually named
1878 something starting with __ and the normal name is an alias. */
1879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1887 if { (eval echo configure
:1888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1889 eval "ac_cv_func_$ac_func=yes"
1891 echo "configure: failed program was:" >&5
1892 cat conftest.
$ac_ext >&5
1894 eval "ac_cv_func_$ac_func=no"
1899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1900 echo "$ac_t""yes" 1>&6
1901 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1902 cat >> confdefs.h
<<EOF
1903 #define $ac_tr_func 1
1907 echo "$ac_t""no" 1>&6
1911 for ac_func
in strcasecmp setenv strchr strdup strncasecmp strrchr strstr
1913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1914 echo "configure:1915: checking for $ac_func" >&5
1915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1916 echo $ac_n "(cached) $ac_c" 1>&6
1918 cat > conftest.
$ac_ext <<EOF
1919 #line 1920 "configure"
1920 #include "confdefs.h"
1921 /* System header to define __stub macros and hopefully few prototypes,
1922 which can conflict with char $ac_func(); below. */
1924 /* Override any gcc2 internal prototype to avoid an error. */
1925 /* We use char because int might match the return type of a gcc2
1926 builtin and then its argument prototype would still apply. */
1931 /* The GNU C library defines this for functions which it implements
1932 to always fail with ENOSYS. Some functions are actually named
1933 something starting with __ and the normal name is an alias. */
1934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1942 if { (eval echo configure
:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1944 eval "ac_cv_func_$ac_func=yes"
1946 echo "configure: failed program was:" >&5
1947 cat conftest.
$ac_ext >&5
1949 eval "ac_cv_func_$ac_func=no"
1954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1955 echo "$ac_t""yes" 1>&6
1956 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1957 cat >> confdefs.h
<<EOF
1958 #define $ac_tr_func 1
1962 echo "$ac_t""no" 1>&6
1966 for ac_func
in strtod strtol strtoul tmpnam vasprintf vfprintf vprintf
1968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1969 echo "configure:1970: checking for $ac_func" >&5
1970 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1971 echo $ac_n "(cached) $ac_c" 1>&6
1973 cat > conftest.
$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1976 /* System header to define __stub macros and hopefully few prototypes,
1977 which can conflict with char $ac_func(); below. */
1979 /* Override any gcc2 internal prototype to avoid an error. */
1980 /* We use char because int might match the return type of a gcc2
1981 builtin and then its argument prototype would still apply. */
1986 /* The GNU C library defines this for functions which it implements
1987 to always fail with ENOSYS. Some functions are actually named
1988 something starting with __ and the normal name is an alias. */
1989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1997 if { (eval echo configure
:1998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1999 eval "ac_cv_func_$ac_func=yes"
2001 echo "configure: failed program was:" >&5
2002 cat conftest.
$ac_ext >&5
2004 eval "ac_cv_func_$ac_func=no"
2009 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2010 echo "$ac_t""yes" 1>&6
2011 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2012 cat >> confdefs.h
<<EOF
2013 #define $ac_tr_func 1
2017 echo "$ac_t""no" 1>&6
2021 for ac_func
in vsprintf waitpid getrusage on_exit psignal strerror strsignal
2023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2024 echo "configure:2025: checking for $ac_func" >&5
2025 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2028 cat > conftest.
$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2031 /* System header to define __stub macros and hopefully few prototypes,
2032 which can conflict with char $ac_func(); below. */
2034 /* Override any gcc2 internal prototype to avoid an error. */
2035 /* We use char because int might match the return type of a gcc2
2036 builtin and then its argument prototype would still apply. */
2041 /* The GNU C library defines this for functions which it implements
2042 to always fail with ENOSYS. Some functions are actually named
2043 something starting with __ and the normal name is an alias. */
2044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2052 if { (eval echo configure
:2053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2054 eval "ac_cv_func_$ac_func=yes"
2056 echo "configure: failed program was:" >&5
2057 cat conftest.
$ac_ext >&5
2059 eval "ac_cv_func_$ac_func=no"
2064 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2065 echo "$ac_t""yes" 1>&6
2066 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2067 cat >> confdefs.h
<<EOF
2068 #define $ac_tr_func 1
2072 echo "$ac_t""no" 1>&6
2076 for ac_func
in sysconf
times sbrk gettimeofday ffs
2078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2079 echo "configure:2080: checking for $ac_func" >&5
2080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2081 echo $ac_n "(cached) $ac_c" 1>&6
2083 cat > conftest.
$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2086 /* System header to define __stub macros and hopefully few prototypes,
2087 which can conflict with char $ac_func(); below. */
2089 /* Override any gcc2 internal prototype to avoid an error. */
2090 /* We use char because int might match the return type of a gcc2
2091 builtin and then its argument prototype would still apply. */
2096 /* The GNU C library defines this for functions which it implements
2097 to always fail with ENOSYS. Some functions are actually named
2098 something starting with __ and the normal name is an alias. */
2099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2107 if { (eval echo configure
:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2109 eval "ac_cv_func_$ac_func=yes"
2111 echo "configure: failed program was:" >&5
2112 cat conftest.
$ac_ext >&5
2114 eval "ac_cv_func_$ac_func=no"
2119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2120 echo "$ac_t""yes" 1>&6
2121 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2122 cat >> confdefs.h
<<EOF
2123 #define $ac_tr_func 1
2127 echo "$ac_t""no" 1>&6
2131 for ac_func
in pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl
2133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2134 echo "configure:2135: checking for $ac_func" >&5
2135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2138 cat > conftest.
$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2141 /* System header to define __stub macros and hopefully few prototypes,
2142 which can conflict with char $ac_func(); below. */
2144 /* Override any gcc2 internal prototype to avoid an error. */
2145 /* We use char because int might match the return type of a gcc2
2146 builtin and then its argument prototype would still apply. */
2151 /* The GNU C library defines this for functions which it implements
2152 to always fail with ENOSYS. Some functions are actually named
2153 something starting with __ and the normal name is an alias. */
2154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2162 if { (eval echo configure
:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2164 eval "ac_cv_func_$ac_func=yes"
2166 echo "configure: failed program was:" >&5
2167 cat conftest.
$ac_ext >&5
2169 eval "ac_cv_func_$ac_func=no"
2174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2175 echo "$ac_t""yes" 1>&6
2176 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2177 cat >> confdefs.h
<<EOF
2178 #define $ac_tr_func 1
2182 echo "$ac_t""no" 1>&6
2186 for ac_func
in realpath canonicalize_file_name
2188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2189 echo "configure:2190: checking for $ac_func" >&5
2190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2193 cat > conftest.
$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2196 /* System header to define __stub macros and hopefully few prototypes,
2197 which can conflict with char $ac_func(); below. */
2199 /* Override any gcc2 internal prototype to avoid an error. */
2200 /* We use char because int might match the return type of a gcc2
2201 builtin and then its argument prototype would still apply. */
2206 /* The GNU C library defines this for functions which it implements
2207 to always fail with ENOSYS. Some functions are actually named
2208 something starting with __ and the normal name is an alias. */
2209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2217 if { (eval echo configure
:2218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2219 eval "ac_cv_func_$ac_func=yes"
2221 echo "configure: failed program was:" >&5
2222 cat conftest.
$ac_ext >&5
2224 eval "ac_cv_func_$ac_func=no"
2229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2230 echo "$ac_t""yes" 1>&6
2231 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2232 cat >> confdefs.h
<<EOF
2233 #define $ac_tr_func 1
2237 echo "$ac_t""no" 1>&6
2241 cat >> confdefs.h
<<\EOF
2242 #define HAVE_SYS_ERRLIST 1
2245 cat >> confdefs.h
<<\EOF
2246 #define HAVE_SYS_NERR 1
2249 cat >> confdefs.h
<<\EOF
2250 #define HAVE_SYS_SIGLIST 1
2253 cat >> confdefs.h
<<\EOF
2254 #define HAVE__SYSTEM_CONFIGURATION 1
2259 # For each of these functions, if the host does not provide the
2260 # function we want to put FN.o in LIBOBJS, and if the host does
2261 # provide the function, we want to define HAVE_FN in config.h.
2266 if test -n "${with_target_subdir}"; then
2268 # We are being configured as a target library. AC_REPLACE_FUNCS
2269 # may not work correctly, because the compiler may not be able to
2270 # link executables. Note that we may still be being configured
2273 # If we are being configured for newlib, we know which functions
2274 # newlib provide and which ones we will be expected to provide.
2276 if test "x${with_newlib}" = "xyes"; then
2277 LIBOBJS
="asprintf.o basename.o insque.o random.o strdup.o vasprintf.o"
2281 asprintf |
basename | insque | random | strdup | vasprintf
)
2284 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2285 cat >> confdefs.h
<<EOF
2293 # newlib doesnt provide any of the variables in $vars, so we
2294 # dont have to check them here.
2296 # Of the functions in $checkfuncs, newlib only has strerror.
2297 cat >> confdefs.h
<<\EOF
2298 #define HAVE_STRERROR 1
2306 # We may wish to install the target headers somewhere.
2307 # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
2308 if test "${enable_install_libiberty+set}" = set; then
2309 enableval
="$enable_install_libiberty"
2310 enable_install_libiberty
=$enableval
2312 enable_install_libiberty
=no
2315 # Option parsed, now set things appropriately.
2316 case x
"$enable_install_libiberty" in
2318 target_header_dir
=libiberty
2324 # This could be sanity-checked in various ways...
2325 target_header_dir
="${enable_install_libiberty}"
2332 # Not a target library, so we set things up to run the test suite.
2333 CHECK
=check-cplus-dem
2341 *-*-cygwin* |
*-*-mingw*)
2342 cat >> confdefs.h
<<\EOF
2343 #define HAVE_SYS_ERRLIST 1
2346 cat >> confdefs.h
<<\EOF
2347 #define HAVE_SYS_NERR 1
2353 if test -z "${setobjs}"; then
2357 # Handle VxWorks configuration specially, since on VxWorks the
2358 # libraries are actually on the target board, not in the file
2360 LIBOBJS
="basename.o getpagesize.o insque.o random.o strcasecmp.o"
2361 LIBOBJS
="$LIBOBJS strncasecmp.o strdup.o vfork.o waitpid.o vasprintf.o"
2364 basename | getpagesize | insque | random | strcasecmp
)
2366 strncasecmp | strdup | vfork | waitpid | vasprintf
)
2369 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2370 cat >> confdefs.h
<<EOF
2378 # VxWorks doesn't provide any of the variables in $vars, so we
2379 # don't have to check them here.
2381 # Of the functions in $checkfuncs, VxWorks only has strerror.
2382 cat >> confdefs.h
<<\EOF
2383 #define HAVE_STRERROR 1
2393 if test -z "${setobjs}"; then
2398 # The Cygwin library actually uses a couple of files from
2399 # libiberty when it is built. If we are building a native
2400 # Cygwin, and we run the tests, we will appear to have these
2401 # files. However, when we go on to build winsup, we will wind up
2402 # with a library which does not have the files, since they should
2403 # have come from libiberty.
2405 # We handle this by removing the functions the winsup library
2406 # provides from our shell variables, so that they appear to be
2409 # DJ - only if we're *building* cygwin, not just building *with* cygwin
2411 if test -n "${with_target_subdir}"
2413 funcs
="`echo $funcs | sed -e 's/random//'`"
2414 LIBOBJS
="$LIBOBJS random.o"
2415 vars
="`echo $vars | sed -e 's/sys_siglist//'`"
2416 checkfuncs
="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
2421 # Under mingw32, sys_nerr and sys_errlist exist, but they are
2422 # macros, so the test below won't find them.
2423 libiberty_cv_var_sys_nerr
=yes
2424 libiberty_cv_var_sys_errlist
=yes
2428 # Under some versions of uwin, vfork is notoriously buggy and the test
2429 # can hang configure; on other versions, vfork exists just as a stub.
2430 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2431 ac_cv_func_vfork_works
=no
2432 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
2433 # macros (actually, these are imported from a DLL, but the end effect
2434 # is the same), so the test below won't find them.
2435 libiberty_cv_var_sys_nerr
=yes
2436 libiberty_cv_var_sys_errlist
=yes
2440 # Under VMS, vfork works very different than on Unix. The standard test
2441 # won't work, and it isn't easily adaptable. It makes more sense to
2443 ac_cv_func_vfork_works
=yes
2448 # We haven't set the list of objects yet. Use the standard autoconf
2449 # tests. This will only work if the compiler works.
2450 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2451 echo "configure:2452: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2454 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2455 ac_cpp
='$CPP $CPPFLAGS'
2456 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2457 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2458 cross_compiling
=$ac_cv_prog_cc_cross
2460 cat > conftest.
$ac_ext << EOF
2462 #line 2463 "configure"
2463 #include "confdefs.h"
2467 if { (eval echo configure
:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2468 ac_cv_prog_cc_works
=yes
2469 # If we can't run a trivial program, we are probably using a cross compiler.
2470 if (.
/conftest
; exit) 2>/dev
/null
; then
2471 ac_cv_prog_cc_cross
=no
2473 ac_cv_prog_cc_cross
=yes
2476 echo "configure: failed program was:" >&5
2477 cat conftest.
$ac_ext >&5
2478 ac_cv_prog_cc_works
=no
2482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2483 ac_cpp
='$CPP $CPPFLAGS'
2484 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2485 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2486 cross_compiling
=$ac_cv_prog_cc_cross
2488 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2489 if test $ac_cv_prog_cc_works = no
; then
2490 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2492 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2493 echo "configure:2494: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2494 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2495 cross_compiling
=$ac_cv_prog_cc_cross
2497 for ac_func
in $funcs
2499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2500 echo "configure:2501: checking for $ac_func" >&5
2501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6
2504 cat > conftest.
$ac_ext <<EOF
2505 #line 2506 "configure"
2506 #include "confdefs.h"
2507 /* System header to define __stub macros and hopefully few prototypes,
2508 which can conflict with char $ac_func(); below. */
2510 /* Override any gcc2 internal prototype to avoid an error. */
2511 /* We use char because int might match the return type of a gcc2
2512 builtin and then its argument prototype would still apply. */
2517 /* The GNU C library defines this for functions which it implements
2518 to always fail with ENOSYS. Some functions are actually named
2519 something starting with __ and the normal name is an alias. */
2520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2528 if { (eval echo configure
:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2530 eval "ac_cv_func_$ac_func=yes"
2532 echo "configure: failed program was:" >&5
2533 cat conftest.
$ac_ext >&5
2535 eval "ac_cv_func_$ac_func=no"
2540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2541 echo "$ac_t""yes" 1>&6
2542 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2543 cat >> confdefs.h
<<EOF
2544 #define $ac_tr_func 1
2548 echo "$ac_t""no" 1>&6
2549 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2554 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2555 echo "configure:2556: checking whether alloca needs Cray hooks" >&5
2556 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2557 echo $ac_n "(cached) $ac_c" 1>&6
2559 cat > conftest.
$ac_ext <<EOF
2560 #line 2561 "configure"
2561 #include "confdefs.h"
2562 #if defined(CRAY) && ! defined(CRAY2)
2569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2570 egrep "webecray" >/dev
/null
2>&1; then
2581 echo "$ac_t""$ac_cv_os_cray" 1>&6
2582 if test $ac_cv_os_cray = yes; then
2583 for ac_func
in _getb67 GETB67 getb67
; do
2584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2585 echo "configure:2586: checking for $ac_func" >&5
2586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2589 cat > conftest.
$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2592 /* System header to define __stub macros and hopefully few prototypes,
2593 which can conflict with char $ac_func(); below. */
2595 /* Override any gcc2 internal prototype to avoid an error. */
2596 /* We use char because int might match the return type of a gcc2
2597 builtin and then its argument prototype would still apply. */
2602 /* The GNU C library defines this for functions which it implements
2603 to always fail with ENOSYS. Some functions are actually named
2604 something starting with __ and the normal name is an alias. */
2605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2613 if { (eval echo configure
:2614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2615 eval "ac_cv_func_$ac_func=yes"
2617 echo "configure: failed program was:" >&5
2618 cat conftest.
$ac_ext >&5
2620 eval "ac_cv_func_$ac_func=no"
2625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2626 echo "$ac_t""yes" 1>&6
2627 cat >> confdefs.h
<<EOF
2628 #define CRAY_STACKSEG_END $ac_func
2632 echo "$ac_t""no" 1>&6
2638 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2639 echo "configure:2640: checking stack direction for C alloca" >&5
2640 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2643 if test "$cross_compiling" = yes; then
2644 ac_cv_c_stack_direction
=0
2646 cat > conftest.
$ac_ext <<EOF
2647 #line 2648 "configure"
2648 #include "confdefs.h"
2649 find_stack_direction ()
2651 static char *addr = 0;
2656 return find_stack_direction ();
2659 return (&dummy > addr) ? 1 : -1;
2663 exit (find_stack_direction() < 0);
2666 if { (eval echo configure
:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2668 ac_cv_c_stack_direction
=1
2670 echo "configure: failed program was:" >&5
2671 cat conftest.
$ac_ext >&5
2673 ac_cv_c_stack_direction
=-1
2680 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2681 cat >> confdefs.h
<<EOF
2682 #define STACK_DIRECTION $ac_cv_c_stack_direction
2686 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2687 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2688 echo "configure:2689: checking for vfork.h" >&5
2689 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2690 echo $ac_n "(cached) $ac_c" 1>&6
2692 cat > conftest.
$ac_ext <<EOF
2693 #line 2694 "configure"
2694 #include "confdefs.h"
2697 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2698 { (eval echo configure
:2699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2699 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2700 if test -z "$ac_err"; then
2702 eval "ac_cv_header_$ac_safe=yes"
2705 echo "configure: failed program was:" >&5
2706 cat conftest.
$ac_ext >&5
2708 eval "ac_cv_header_$ac_safe=no"
2712 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2713 echo "$ac_t""yes" 1>&6
2714 cat >> confdefs.h
<<\EOF
2715 #define HAVE_VFORK_H 1
2719 echo "$ac_t""no" 1>&6
2722 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2723 echo "configure:2724: checking for working vfork" >&5
2724 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2725 echo $ac_n "(cached) $ac_c" 1>&6
2727 if test "$cross_compiling" = yes; then
2728 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2729 echo "configure:2730: checking for vfork" >&5
2730 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2731 echo $ac_n "(cached) $ac_c" 1>&6
2733 cat > conftest.
$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2736 /* System header to define __stub macros and hopefully few prototypes,
2737 which can conflict with char vfork(); below. */
2739 /* Override any gcc2 internal prototype to avoid an error. */
2740 /* We use char because int might match the return type of a gcc2
2741 builtin and then its argument prototype would still apply. */
2746 /* The GNU C library defines this for functions which it implements
2747 to always fail with ENOSYS. Some functions are actually named
2748 something starting with __ and the normal name is an alias. */
2749 #if defined (__stub_vfork) || defined (__stub___vfork)
2757 if { (eval echo configure
:2758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2759 eval "ac_cv_func_vfork=yes"
2761 echo "configure: failed program was:" >&5
2762 cat conftest.
$ac_ext >&5
2764 eval "ac_cv_func_vfork=no"
2769 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2770 echo "$ac_t""yes" 1>&6
2773 echo "$ac_t""no" 1>&6
2776 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2778 cat > conftest.
$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2781 /* Thanks to Paul Eggert for this test. */
2783 #include <sys/types.h>
2784 #include <sys/stat.h>
2785 #ifdef HAVE_UNISTD_H
2791 /* On some sparc systems, changes by the child to local and incoming
2792 argument registers are propagated back to the parent.
2793 The compiler is told about this with #include <vfork.h>,
2794 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2795 Test for this by using a static variable whose address
2796 is put into a register that is clobbered by the vfork. */
2799 sparc_address_test (int arg)
2801 sparc_address_test (arg) int arg;
2819 pid_t parent = getpid ();
2822 sparc_address_test ();
2827 /* Here is another test for sparc vfork register problems.
2828 This test uses lots of local variables, at least
2829 as many local variables as main has allocated so far
2830 including compiler temporaries. 4 locals are enough for
2831 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2832 A buggy compiler should reuse the register of parent
2833 for one of the local variables, since it will think that
2834 parent can't possibly be used any more in this routine.
2835 Assigning to the local variable will thus munge parent
2836 in the parent process. */
2838 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2839 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2840 /* Convince the compiler that p..p7 are live; otherwise, it might
2841 use the same hardware register for all 8 local variables. */
2842 if (p != p1 || p != p2 || p != p3 || p != p4
2843 || p != p5 || p != p6 || p != p7)
2846 /* On some systems (e.g. IRIX 3.3),
2847 vfork doesn't separate parent from child file descriptors.
2848 If the child closes a descriptor before it execs or exits,
2849 this munges the parent's descriptor as well.
2850 Test for this by closing stdout in the child. */
2851 _exit(close(fileno(stdout)) != 0);
2856 while (wait(&status) != child)
2859 /* Was there some problem with vforking? */
2862 /* Did the child fail? (This shouldn't happen.) */
2865 /* Did the vfork/compiler bug occur? */
2866 || parent != getpid()
2868 /* Did the file descriptor bug occur? */
2869 || fstat(fileno(stdout), &st) != 0
2874 if { (eval echo configure
:2875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2876 ac_cv_func_vfork_works
=yes
2878 echo "configure: failed program was:" >&5
2879 cat conftest.
$ac_ext >&5
2881 ac_cv_func_vfork_works
=no
2888 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2889 if test $ac_cv_func_vfork_works = no
; then
2890 cat >> confdefs.h
<<\EOF
2896 if test $ac_cv_func_vfork_works = no
; then
2897 LIBOBJS
="$LIBOBJS vfork.o"
2899 # We only need _doprnt if we might use it to implement v*printf.
2900 if test $ac_cv_func_vprintf != yes \
2901 ||
test $ac_cv_func_vfprintf != yes \
2902 ||
test $ac_cv_func_vsprintf != yes; then
2903 for ac_func
in _doprnt
2905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2906 echo "configure:2907: checking for $ac_func" >&5
2907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2910 cat > conftest.
$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2913 /* System header to define __stub macros and hopefully few prototypes,
2914 which can conflict with char $ac_func(); below. */
2916 /* Override any gcc2 internal prototype to avoid an error. */
2917 /* We use char because int might match the return type of a gcc2
2918 builtin and then its argument prototype would still apply. */
2923 /* The GNU C library defines this for functions which it implements
2924 to always fail with ENOSYS. Some functions are actually named
2925 something starting with __ and the normal name is an alias. */
2926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2934 if { (eval echo configure
:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2936 eval "ac_cv_func_$ac_func=yes"
2938 echo "configure: failed program was:" >&5
2939 cat conftest.
$ac_ext >&5
2941 eval "ac_cv_func_$ac_func=no"
2946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2947 echo "$ac_t""yes" 1>&6
2948 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2949 cat >> confdefs.h
<<EOF
2950 #define $ac_tr_func 1
2954 echo "$ac_t""no" 1>&6
2955 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2961 for ac_func
in _doprnt
2963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2964 echo "configure:2965: checking for $ac_func" >&5
2965 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2966 echo $ac_n "(cached) $ac_c" 1>&6
2968 cat > conftest.
$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2971 /* System header to define __stub macros and hopefully few prototypes,
2972 which can conflict with char $ac_func(); below. */
2974 /* Override any gcc2 internal prototype to avoid an error. */
2975 /* We use char because int might match the return type of a gcc2
2976 builtin and then its argument prototype would still apply. */
2981 /* The GNU C library defines this for functions which it implements
2982 to always fail with ENOSYS. Some functions are actually named
2983 something starting with __ and the normal name is an alias. */
2984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2992 if { (eval echo configure
:2993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2994 eval "ac_cv_func_$ac_func=yes"
2996 echo "configure: failed program was:" >&5
2997 cat conftest.
$ac_ext >&5
2999 eval "ac_cv_func_$ac_func=no"
3004 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3005 echo "$ac_t""yes" 1>&6
3006 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3007 cat >> confdefs.h
<<EOF
3008 #define $ac_tr_func 1
3012 echo "$ac_t""no" 1>&6
3019 echo $ac_n "checking for $v""... $ac_c" 1>&6
3020 echo "configure:3021: checking for $v" >&5
3021 if eval "test \"`echo '$''{'libiberty_cv_var_$v'+set}'`\" = set"; then
3022 echo $ac_n "(cached) $ac_c" 1>&6
3024 cat > conftest.
$ac_ext <<EOF
3025 #line 3026 "configure"
3026 #include "confdefs.h"
3029 extern int $v []; p = $v;
3032 if { (eval echo configure
:3033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3034 eval "libiberty_cv_var_$v=yes"
3036 echo "configure: failed program was:" >&5
3037 cat conftest.
$ac_ext >&5
3039 eval "libiberty_cv_var_$v=no"
3044 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
3045 echo "$ac_t""yes" 1>&6
3046 n
=HAVE_
`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3047 cat >> confdefs.h
<<EOF
3052 echo "$ac_t""no" 1>&6
3055 for ac_func
in $checkfuncs
3057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3058 echo "configure:3059: checking for $ac_func" >&5
3059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 cat > conftest.
$ac_ext <<EOF
3063 #line 3064 "configure"
3064 #include "confdefs.h"
3065 /* System header to define __stub macros and hopefully few prototypes,
3066 which can conflict with char $ac_func(); below. */
3068 /* Override any gcc2 internal prototype to avoid an error. */
3069 /* We use char because int might match the return type of a gcc2
3070 builtin and then its argument prototype would still apply. */
3075 /* The GNU C library defines this for functions which it implements
3076 to always fail with ENOSYS. Some functions are actually named
3077 something starting with __ and the normal name is an alias. */
3078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3086 if { (eval echo configure
:3087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3088 eval "ac_cv_func_$ac_func=yes"
3090 echo "configure: failed program was:" >&5
3091 cat conftest.
$ac_ext >&5
3093 eval "ac_cv_func_$ac_func=no"
3098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3099 echo "$ac_t""yes" 1>&6
3100 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3101 cat >> confdefs.h
<<EOF
3102 #define $ac_tr_func 1
3106 echo "$ac_t""no" 1>&6
3110 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
3111 echo "configure:3112: checking whether canonicalize_file_name must be declared" >&5
3112 if eval "test \"`echo '$''{'libiberty_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 cat > conftest.
$ac_ext <<EOF
3116 #line 3117 "configure"
3117 #include "confdefs.h"
3119 #include "confdefs.h"
3121 #ifdef HAVE_STRING_H
3124 #ifdef HAVE_STRINGS_H
3125 #include <strings.h>
3128 #ifdef HAVE_STDLIB_H
3131 #ifdef HAVE_UNISTD_H
3135 char *(*pfn) = (char *(*)) canonicalize_file_name
3138 if { (eval echo configure
:3139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3140 libiberty_cv_decl_needed_canonicalize_file_name
=no
3142 echo "configure: failed program was:" >&5
3143 cat conftest.
$ac_ext >&5
3145 libiberty_cv_decl_needed_canonicalize_file_name
=yes
3150 echo "$ac_t""$libiberty_cv_decl_needed_canonicalize_file_name" 1>&6
3151 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
3152 cat >> confdefs.h
<<\EOF
3153 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
3160 # Figure out which version of pexecute to use.
3162 *-*-mingw* |
*-*-winnt*) pexecute
=pex-win32.o
;;
3163 *-*-msdosdjgpp*) pexecute
=pex-djgpp.o
;;
3164 *-*-msdos*) pexecute
=pex-msdos.o
;;
3165 *-*-os2-emx*) pexecute
=pex-os2.o
;;
3166 *) pexecute
=pex-unix.o
;;
3170 for ac_hdr
in unistd.h
3172 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3173 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3174 echo "configure:3175: checking for $ac_hdr" >&5
3175 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3176 echo $ac_n "(cached) $ac_c" 1>&6
3178 cat > conftest.
$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3183 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3184 { (eval echo configure
:3185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3185 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3186 if test -z "$ac_err"; then
3188 eval "ac_cv_header_$ac_safe=yes"
3191 echo "configure: failed program was:" >&5
3192 cat conftest.
$ac_ext >&5
3194 eval "ac_cv_header_$ac_safe=no"
3198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3199 echo "$ac_t""yes" 1>&6
3200 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3201 cat >> confdefs.h
<<EOF
3202 #define $ac_tr_hdr 1
3206 echo "$ac_t""no" 1>&6
3210 for ac_func
in getpagesize
3212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3213 echo "configure:3214: checking for $ac_func" >&5
3214 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3217 cat > conftest.
$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3220 /* System header to define __stub macros and hopefully few prototypes,
3221 which can conflict with char $ac_func(); below. */
3223 /* Override any gcc2 internal prototype to avoid an error. */
3224 /* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
3230 /* The GNU C library defines this for functions which it implements
3231 to always fail with ENOSYS. Some functions are actually named
3232 something starting with __ and the normal name is an alias. */
3233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3241 if { (eval echo configure
:3242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3243 eval "ac_cv_func_$ac_func=yes"
3245 echo "configure: failed program was:" >&5
3246 cat conftest.
$ac_ext >&5
3248 eval "ac_cv_func_$ac_func=no"
3253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3254 echo "$ac_t""yes" 1>&6
3255 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3256 cat >> confdefs.h
<<EOF
3257 #define $ac_tr_func 1
3261 echo "$ac_t""no" 1>&6
3265 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3266 echo "configure:3267: checking for working mmap" >&5
3267 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 if test "$cross_compiling" = yes; then
3271 ac_cv_func_mmap_fixed_mapped
=no
3273 cat > conftest.
$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3277 /* Thanks to Mike Haertel and Jim Avera for this test.
3278 Here is a matrix of mmap possibilities:
3279 mmap private not fixed
3280 mmap private fixed at somewhere currently unmapped
3281 mmap private fixed at somewhere already mapped
3282 mmap shared not fixed
3283 mmap shared fixed at somewhere currently unmapped
3284 mmap shared fixed at somewhere already mapped
3285 For private mappings, we should verify that changes cannot be read()
3286 back from the file, nor mmap's back from the file at a different
3287 address. (There have been systems where private was not correctly
3288 implemented like the infamous i386 svr4.0, and systems where the
3289 VM page cache was not coherent with the filesystem buffer cache
3290 like early versions of FreeBSD and possibly contemporary NetBSD.)
3291 For shared mappings, we should conversely verify that changes get
3292 propogated back to all the places they're supposed to be.
3294 Grep wants private fixed already mapped.
3295 The main things grep needs to know about mmap are:
3296 * does it exist and is it safe to write into the mmap'd area
3297 * how to use it (BSD variants) */
3298 #include <sys/types.h>
3300 #include <sys/mman.h>
3302 /* This mess was copied from the GNU getpagesize.h. */
3303 #ifndef HAVE_GETPAGESIZE
3304 # ifdef HAVE_UNISTD_H
3305 # include <unistd.h>
3308 /* Assume that all systems that can run configure have sys/param.h. */
3309 # ifndef HAVE_SYS_PARAM_H
3310 # define HAVE_SYS_PARAM_H 1
3313 # ifdef _SC_PAGESIZE
3314 # define getpagesize() sysconf(_SC_PAGESIZE)
3315 # else /* no _SC_PAGESIZE */
3316 # ifdef HAVE_SYS_PARAM_H
3317 # include <sys/param.h>
3318 # ifdef EXEC_PAGESIZE
3319 # define getpagesize() EXEC_PAGESIZE
3320 # else /* no EXEC_PAGESIZE */
3322 # define getpagesize() NBPG * CLSIZE
3325 # endif /* no CLSIZE */
3326 # else /* no NBPG */
3328 # define getpagesize() NBPC
3329 # else /* no NBPC */
3331 # define getpagesize() PAGESIZE
3332 # endif /* PAGESIZE */
3333 # endif /* no NBPC */
3334 # endif /* no NBPG */
3335 # endif /* no EXEC_PAGESIZE */
3336 # else /* no HAVE_SYS_PARAM_H */
3337 # define getpagesize() 8192 /* punt totally */
3338 # endif /* no HAVE_SYS_PARAM_H */
3339 # endif /* no _SC_PAGESIZE */
3341 #endif /* no HAVE_GETPAGESIZE */
3344 extern "C" { void *malloc(unsigned); }
3352 char *data, *data2, *data3;
3356 pagesize = getpagesize();
3359 * First, make a file with some known garbage in it.
3361 data = malloc(pagesize);
3364 for (i = 0; i < pagesize; ++i)
3365 *(data + i) = rand();
3367 fd = creat("conftestmmap", 0600);
3370 if (write(fd, data, pagesize) != pagesize)
3375 * Next, try to mmap the file at a fixed address which
3376 * already has something else allocated at it. If we can,
3377 * also make sure that we see the same garbage.
3379 fd = open("conftestmmap", O_RDWR);
3382 data2 = malloc(2 * pagesize);
3385 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3386 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3387 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3389 for (i = 0; i < pagesize; ++i)
3390 if (*(data + i) != *(data2 + i))
3394 * Finally, make sure that changes to the mapped area
3395 * do not percolate back to the file as seen by read().
3396 * (This is a bug on some variants of i386 svr4.0.)
3398 for (i = 0; i < pagesize; ++i)
3399 *(data2 + i) = *(data2 + i) + 1;
3400 data3 = malloc(pagesize);
3403 if (read(fd, data3, pagesize) != pagesize)
3405 for (i = 0; i < pagesize; ++i)
3406 if (*(data + i) != *(data3 + i))
3409 unlink("conftestmmap");
3414 if { (eval echo configure
:3415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3416 ac_cv_func_mmap_fixed_mapped
=yes
3418 echo "configure: failed program was:" >&5
3419 cat conftest.
$ac_ext >&5
3421 ac_cv_func_mmap_fixed_mapped
=no
3428 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3429 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3430 cat >> confdefs.h
<<\EOF
3437 echo $ac_n "checking for working strncmp""... $ac_c" 1>&6
3438 echo "configure:3439: checking for working strncmp" >&5
3439 if eval "test \"`echo '$''{'ac_cv_func_strncmp_works'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3442 if test "$cross_compiling" = yes; then
3443 ac_cv_func_strncmp_works
=no
3445 cat > conftest.
$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3449 /* Test by Jim Wilson and Kaveh Ghazi.
3450 Check whether strncmp reads past the end of its string parameters. */
3451 #include <sys/types.h>
3457 #ifdef HAVE_SYS_MMAN_H
3458 #include <sys/mman.h>
3462 #ifdef MAP_ANONYMOUS
3463 #define MAP_ANON MAP_ANONYMOUS
3465 #define MAP_ANON MAP_FILE
3476 #define MAP_LEN 0x10000
3480 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
3484 dev_zero = open ("/dev/zero", O_RDONLY);
3488 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
3489 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
3490 if (p == (char *)-1)
3491 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
3492 MAP_ANON|MAP_PRIVATE, -1, 0);
3493 if (p == (char *)-1)
3497 char *string = "__si_type_info";
3498 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
3499 char *r = (char *) p + 0xe;
3505 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
3510 if { (eval echo configure
:3511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3512 ac_cv_func_strncmp_works
=yes
3514 echo "configure: failed program was:" >&5
3515 cat conftest.
$ac_ext >&5
3517 ac_cv_func_strncmp_works
=no
3522 rm -f core core.
* *.core
3525 echo "$ac_t""$ac_cv_func_strncmp_works" 1>&6
3526 if test $ac_cv_func_strncmp_works = no
; then
3527 LIBOBJS
="$LIBOBJS strncmp.o"
3531 # Install a library built with a cross compiler in $(tooldir) rather
3533 if test -z "${with_cross_host}"; then
3536 INSTALL_DEST
=tooldir
3540 # We need multilib support, but only if configuring for the target.
3542 cat > confcache
<<\EOF
3543 # This file is a shell script that caches the results of configure
3544 # tests run on this system so they can be shared between configure
3545 # scripts and configure runs. It is not useful on other systems.
3546 # If it contains results you don't want to keep, you may remove or edit it.
3548 # By default, configure uses ./config.cache as the cache file,
3549 # creating it if it does not exist already. You can give configure
3550 # the --cache-file=FILE option to use a different cache file; that is
3551 # what configure does when it calls configure scripts in
3552 # subdirectories, so they share the cache.
3553 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3554 # config.status only pays attention to the cache file if you give it the
3555 # --recheck option to rerun configure.
3558 # The following way of writing the cache mishandles newlines in values,
3559 # but we know of no workaround that is simple, portable, and efficient.
3560 # So, don't put newlines in cache variables' values.
3561 # Ultrix sh set writes to stderr and can't be redirected directly,
3562 # and sets the high bit in the cache file unless we assign to the vars.
3564 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3566 # `set' does not quote correctly, so add quotes (double-quote substitution
3567 # turns \\\\ into \\, and sed turns \\ into \).
3569 -e "s/'/'\\\\''/g" \
3570 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3573 # `set' quotes correctly as required by POSIX, so do not add quotes.
3574 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3577 if cmp -s $cache_file confcache
; then
3580 if test -w $cache_file; then
3581 echo "updating cache $cache_file"
3582 cat confcache
> $cache_file
3584 echo "not updating unwritable cache $cache_file"
3589 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3591 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3592 # Let make expand exec_prefix.
3593 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3595 # Any assignment to VPATH causes Sun make to only execute
3596 # the first set of double-colon rules, so remove it if not needed.
3597 # If there is a colon in the path, we need to keep it.
3598 if test "x$srcdir" = x.
; then
3599 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3602 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3604 DEFS
=-DHAVE_CONFIG_H
3606 # Without the "./", some shells look in PATH for config.status.
3607 : ${CONFIG_STATUS=./config.status}
3609 echo creating
$CONFIG_STATUS
3610 rm -f $CONFIG_STATUS
3611 cat > $CONFIG_STATUS <<EOF
3613 # Generated automatically by configure.
3614 # Run this file to recreate the current configuration.
3615 # This directory was configured as follows,
3616 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3618 # $0 $ac_configure_args
3620 # Compiler output produced by configure, useful for debugging
3621 # configure, is in ./config.log if it exists.
3623 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3626 case "\$ac_option" in
3627 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3628 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3629 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3630 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3631 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3633 -help | --help | --hel | --he | --h)
3634 echo "\$ac_cs_usage"; exit 0 ;;
3635 *) echo "\$ac_cs_usage"; exit 1 ;;
3639 ac_given_srcdir=$srcdir
3640 ac_given_INSTALL="$INSTALL"
3642 trap 'rm -fr `echo "Makefile testsuite/Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3644 cat >> $CONFIG_STATUS <<EOF
3646 # Protect against being on the right side of a sed subst in config.status.
3647 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3648 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3652 s%@CFLAGS@%$CFLAGS%g
3653 s%@CPPFLAGS@%$CPPFLAGS%g
3654 s%@CXXFLAGS@%$CXXFLAGS%g
3655 s%@FFLAGS@%$FFLAGS%g
3657 s%@LDFLAGS@%$LDFLAGS%g
3659 s%@exec_prefix@%$exec_prefix%g
3660 s%@prefix@%$prefix%g
3661 s%@program_transform_name@%$program_transform_name%g
3662 s%@bindir@%$bindir%g
3663 s%@sbindir@%$sbindir%g
3664 s%@libexecdir@%$libexecdir%g
3665 s%@datadir@%$datadir%g
3666 s%@sysconfdir@%$sysconfdir%g
3667 s%@sharedstatedir@%$sharedstatedir%g
3668 s%@localstatedir@%$localstatedir%g
3669 s%@libdir@%$libdir%g
3670 s%@includedir@%$includedir%g
3671 s%@oldincludedir@%$oldincludedir%g
3672 s%@infodir@%$infodir%g
3673 s%@mandir@%$mandir%g
3674 s%@libiberty_topdir@%$libiberty_topdir%g
3676 s%@NOTMAINT@%$NOTMAINT%g
3677 s%@MAKEINFO@%$MAKEINFO%g
3678 s%@BUILD_INFO@%$BUILD_INFO%g
3680 s%@HAVE_PERL@%$HAVE_PERL%g
3682 s%@host_alias@%$host_alias%g
3683 s%@host_cpu@%$host_cpu%g
3684 s%@host_vendor@%$host_vendor%g
3685 s%@host_os@%$host_os%g
3687 s%@build_alias@%$build_alias%g
3688 s%@build_cpu@%$build_cpu%g
3689 s%@build_vendor@%$build_vendor%g
3690 s%@build_os@%$build_os%g
3692 s%@RANLIB@%$RANLIB%g
3694 s%@ac_libiberty_warn_cflags@%$ac_libiberty_warn_cflags%g
3695 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
3696 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
3697 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3698 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3699 s%@INSTALL_DATA@%$INSTALL_DATA%g
3700 /@host_makefile_frag@/r $host_makefile_frag
3701 s%@host_makefile_frag@%%g
3704 s%@target_header_dir@%$target_header_dir%g
3705 s%@LIBOBJS@%$LIBOBJS%g
3706 s%@pexecute@%$pexecute%g
3707 s%@INSTALL_DEST@%$INSTALL_DEST%g
3712 cat >> $CONFIG_STATUS <<\EOF
3714 # Split the substitutions into bite-sized pieces for seds with
3715 # small command number limits, like on Digital OSF/1 and HP-UX.
3716 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3717 ac_file
=1 # Number of current file.
3718 ac_beg
=1 # First line for current file.
3719 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3722 while $ac_more_lines; do
3723 if test $ac_beg -gt 1; then
3724 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3726 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3728 if test ! -s conftest.s
$ac_file; then
3730 rm -f conftest.s
$ac_file
3732 if test -z "$ac_sed_cmds"; then
3733 ac_sed_cmds
="sed -f conftest.s$ac_file"
3735 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3737 ac_file
=`expr $ac_file + 1`
3739 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3742 if test -z "$ac_sed_cmds"; then
3747 cat >> $CONFIG_STATUS <<EOF
3749 CONFIG_FILES=\${CONFIG_FILES-"Makefile testsuite/Makefile"}
3751 cat >> $CONFIG_STATUS <<\EOF
3752 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3753 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3755 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3756 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3757 *) ac_file_in
="${ac_file}.in" ;;
3760 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3762 # Remove last slash and all that follows it. Not all systems have dirname.
3763 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3764 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3765 # The file is in a subdirectory.
3766 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3767 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3768 # A "../" for each directory in $ac_dir_suffix.
3769 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3771 ac_dir_suffix
= ac_dots
=
3774 case "$ac_given_srcdir" in
3776 if test -z "$ac_dots"; then top_srcdir
=.
3777 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3778 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3780 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3781 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3784 case "$ac_given_INSTALL" in
3785 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3786 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3789 echo creating
"$ac_file"
3791 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3793 *Makefile
*) ac_comsub
="1i\\
3794 # $configure_input" ;;
3798 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3800 s%@configure_input@%$configure_input%g
3801 s%@srcdir@%$srcdir%g
3802 s%@top_srcdir@%$top_srcdir%g
3803 s%@INSTALL@%$INSTALL%g
3804 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3808 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3809 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3811 # ac_d sets the value in "#define NAME VALUE" lines.
3812 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3813 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3816 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3817 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3818 ac_uB
='\([ ]\)%\1#\2define\3'
3821 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3822 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3823 ac_eB
='$%\1#\2define\3'
3827 if test "${CONFIG_HEADERS+set}" != set; then
3829 cat >> $CONFIG_STATUS <<EOF
3830 CONFIG_HEADERS="config.h:config.in"
3832 cat >> $CONFIG_STATUS <<\EOF
3834 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3835 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3837 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3838 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3839 *) ac_file_in
="${ac_file}.in" ;;
3842 echo creating
$ac_file
3844 rm -f conftest.frag conftest.
in conftest.out
3845 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3846 cat $ac_file_inputs > conftest.
in
3850 # Transform confdefs.h into a sed script conftest.vals that substitutes
3851 # the proper values into config.h.in to produce config.h. And first:
3852 # Protect against being on the right side of a sed subst in config.status.
3853 # Protect against being in an unquoted here document in config.status.
3855 cat > conftest.hdr
<<\EOF
3858 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3862 sed -n -f conftest.hdr confdefs.h > conftest.vals
3865 # This sed command replaces #undef with comments. This is necessary, for
3866 # example, in the case of _POSIX_SOURCE, which is predefined and required
3867 # on some systems where configure will not decide to define it.
3868 cat >> conftest.vals <<\EOF
3869 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3872 # Break up conftest.vals because some shells have a limit on
3873 # the size of here documents, and old seds have small limits too.
3878 ac_lines=`grep -c . conftest.vals
`
3879 # grep -c gives empty output for an empty file on some AIX systems.
3880 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3881 # Write a limited-size here document to conftest.frag.
3882 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3883 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3885 sed -f conftest.frag conftest.in > conftest.out
3887 mv conftest.out conftest.in
3889 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3891 mv conftest.tail conftest.vals
3895 cat >> $CONFIG_STATUS <<\EOF
3896 rm -f conftest.frag conftest.h
3897 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3898 cat conftest.in >> conftest.h
3900 if cmp -s $ac_file conftest.h 2>/dev/null; then
3901 echo "$ac_file is unchanged"
3904 # Remove last slash and all that follows it. Not all systems have dirname.
3905 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3906 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3907 # The file is in a subdirectory.
3908 test ! -d "$ac_dir" && mkdir "$ac_dir"
3911 mv conftest.h $ac_file
3916 cat >> $CONFIG_STATUS <<EOF
3920 with_target_subdir=${with_target_subdir}
3921 with_build_subdir=${with_build_subdir}
3922 with_multisubdir=${with_multisubdir}
3923 ac_configure_args="--enable-multilib ${ac_configure_args}"
3924 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3925 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
3926 libiberty_topdir=${libiberty_topdir}
3929 cat >> $CONFIG_STATUS <<\EOF
3930 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3931 if test -n "$CONFIG_FILES"; then
3932 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
3933 # FIXME: We shouldn't need to set ac_file
3935 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
3936 . ${libiberty_topdir}/config-ml.in
3941 chmod +x $CONFIG_STATUS
3942 rm -fr confdefs* $ac_clean_files
3943 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1