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
=pexecute.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 # Check whether --with-target-subdir or --without-target-subdir was given.
540 if test "${with_target_subdir+set}" = set; then
541 withval
="$with_target_subdir"
545 # Check whether --with-build-subdir or --without-build-subdir was given.
546 if test "${with_build_subdir+set}" = set; then
547 withval
="$with_build_subdir"
551 # Check whether --with-cross-host or --without-cross-host was given.
552 if test "${with_cross_host+set}" = set; then
553 withval
="$with_cross_host"
557 # Check whether --with-newlib or --without-newlib was given.
558 if test "${with_newlib+set}" = set; then
559 withval
="$with_newlib"
564 if test "${srcdir}" = "."; then
565 if test -n "${with_build_subdir}"; then
566 libiberty_topdir
="${srcdir}/../.."
568 elif test -z "${with_target_subdir}"; then
569 libiberty_topdir
="${srcdir}/.."
571 if test "${with_target_subdir}" != "."; then
572 libiberty_topdir
="${srcdir}/${with_multisrctop}../.."
574 libiberty_topdir
="${srcdir}/${with_multisrctop}.."
578 libiberty_topdir
="${srcdir}/.."
581 for ac_dir
in $libiberty_topdir $srcdir/$libiberty_topdir; do
582 if test -f $ac_dir/install-sh
; then
584 ac_install_sh
="$ac_aux_dir/install-sh -c"
586 elif test -f $ac_dir/install.sh
; then
588 ac_install_sh
="$ac_aux_dir/install.sh -c"
592 if test -z "$ac_aux_dir"; then
593 { echo "configure: error: can not find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" 1>&2; exit 1; }
595 ac_config_guess
=$ac_aux_dir/config.guess
596 ac_config_sub
=$ac_aux_dir/config.sub
597 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
601 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
602 echo "configure:603: checking whether to enable maintainer-specific portions of Makefiles" >&5
603 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
604 if test "${enable_maintainer_mode+set}" = set; then
605 enableval
="$enable_maintainer_mode"
606 maintainer_mode
=$enableval
612 echo "$ac_t""$maintainer_mode" 1>&6
614 if test "$maintainer_mode" = "yes"; then
622 # Do we have a single-tree copy of texinfo? Even if we do, we can't
623 # rely on it - libiberty is built before texinfo.
624 # Extract the first word of "makeinfo", so it can be a program name with args.
625 set dummy makeinfo
; ac_word
=$2
626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
627 echo "configure:628: checking for $ac_word" >&5
628 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
629 echo $ac_n "(cached) $ac_c" 1>&6
631 if test -n "$MAKEINFO"; then
632 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
634 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
636 for ac_dir
in $ac_dummy; do
637 test -z "$ac_dir" && ac_dir
=.
638 if test -f $ac_dir/$ac_word; then
639 ac_cv_prog_MAKEINFO
="makeinfo"
646 MAKEINFO
="$ac_cv_prog_MAKEINFO"
647 if test -n "$MAKEINFO"; then
648 echo "$ac_t""$MAKEINFO" 1>&6
650 echo "$ac_t""no" 1>&6
653 if test "x$MAKEINFO" = "x"; then
654 MAKEINFO
="@echo makeinfo missing; true"
658 case x
"`$MAKEINFO --version | grep 'GNU texinfo'`" in
660 MAKEINFO
="@echo $MAKEINFO is too old, 4.0 or newer required; true"
662 echo "configure: warning:
663 *** Makeinfo is too old. Info documentation will not be built." 1>&2
670 # Extract the first word of "perl", so it can be a program name with args.
671 set dummy perl
; ac_word
=$2
672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
673 echo "configure:674: checking for $ac_word" >&5
674 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
677 if test -n "$PERL"; then
678 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
680 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
682 for ac_dir
in $ac_dummy; do
683 test -z "$ac_dir" && ac_dir
=.
684 if test -f $ac_dir/$ac_word; then
685 ac_cv_prog_PERL
="perl"
692 PERL
="$ac_cv_prog_PERL"
693 if test -n "$PERL"; then
694 echo "$ac_t""$PERL" 1>&6
696 echo "$ac_t""no" 1>&6
699 if test x
"$PERL" = x
""; then
707 # Make sure we can run config.sub.
708 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
709 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
712 echo $ac_n "checking host system type""... $ac_c" 1>&6
713 echo "configure:714: checking host system type" >&5
716 case "$host_alias" in
720 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
721 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
723 *) host_alias
=$nonopt ;;
727 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
728 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
729 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
730 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
731 echo "$ac_t""$host" 1>&6
735 echo $ac_n "checking build system type""... $ac_c" 1>&6
736 echo "configure:737: checking build system type" >&5
739 case "$build_alias" in
742 NONE
) build_alias
=$host_alias ;;
743 *) build_alias
=$nonopt ;;
747 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
748 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
749 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
750 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
751 echo "$ac_t""$build" 1>&6
753 if test $host != $build; then
754 ac_tool_prefix
=${host_alias}-
759 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
760 set dummy
${ac_tool_prefix}ar; ac_word
=$2
761 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
762 echo "configure:763: checking for $ac_word" >&5
763 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
764 echo $ac_n "(cached) $ac_c" 1>&6
766 if test -n "$AR"; then
767 ac_cv_prog_AR
="$AR" # Let the user override the test.
769 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
771 for ac_dir
in $ac_dummy; do
772 test -z "$ac_dir" && ac_dir
=.
773 if test -f $ac_dir/$ac_word; then
774 ac_cv_prog_AR
="${ac_tool_prefix}ar"
779 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
783 if test -n "$AR"; then
784 echo "$ac_t""$AR" 1>&6
786 echo "$ac_t""no" 1>&6
791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
792 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
793 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
794 echo "configure:795: checking for $ac_word" >&5
795 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
796 echo $ac_n "(cached) $ac_c" 1>&6
798 if test -n "$RANLIB"; then
799 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
801 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
803 for ac_dir
in $ac_dummy; do
804 test -z "$ac_dir" && ac_dir
=.
805 if test -f $ac_dir/$ac_word; then
806 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
813 RANLIB
="$ac_cv_prog_RANLIB"
814 if test -n "$RANLIB"; then
815 echo "$ac_t""$RANLIB" 1>&6
817 echo "$ac_t""no" 1>&6
821 if test -z "$ac_cv_prog_RANLIB"; then
822 if test -n "$ac_tool_prefix"; then
823 # Extract the first word of "ranlib", so it can be a program name with args.
824 set dummy ranlib
; ac_word
=$2
825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
826 echo "configure:827: checking for $ac_word" >&5
827 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
830 if test -n "$RANLIB"; then
831 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
833 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
835 for ac_dir
in $ac_dummy; do
836 test -z "$ac_dir" && ac_dir
=.
837 if test -f $ac_dir/$ac_word; then
838 ac_cv_prog_RANLIB
="ranlib"
843 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
846 RANLIB
="$ac_cv_prog_RANLIB"
847 if test -n "$RANLIB"; then
848 echo "$ac_t""$RANLIB" 1>&6
850 echo "$ac_t""no" 1>&6
860 # Extract the first word of "gcc", so it can be a program name with args.
861 set dummy gcc
; ac_word
=$2
862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
863 echo "configure:864: checking for $ac_word" >&5
864 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
865 echo $ac_n "(cached) $ac_c" 1>&6
867 if test -n "$CC"; then
868 ac_cv_prog_CC
="$CC" # Let the user override the test.
870 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
872 for ac_dir
in $ac_dummy; do
873 test -z "$ac_dir" && ac_dir
=.
874 if test -f $ac_dir/$ac_word; then
883 if test -n "$CC"; then
884 echo "$ac_t""$CC" 1>&6
886 echo "$ac_t""no" 1>&6
889 if test -z "$CC"; then
890 # Extract the first word of "cc", so it can be a program name with args.
891 set dummy cc
; ac_word
=$2
892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
893 echo "configure:894: checking for $ac_word" >&5
894 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
895 echo $ac_n "(cached) $ac_c" 1>&6
897 if test -n "$CC"; then
898 ac_cv_prog_CC
="$CC" # Let the user override the test.
900 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
903 for ac_dir
in $ac_dummy; do
904 test -z "$ac_dir" && ac_dir
=.
905 if test -f $ac_dir/$ac_word; then
906 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
915 if test $ac_prog_rejected = yes; then
916 # We found a bogon in the path, so make sure we never use it.
917 set dummy
$ac_cv_prog_CC
919 if test $# -gt 0; then
920 # We chose a different compiler from the bogus one.
921 # However, it has the same basename, so the bogon will be chosen
922 # first if we set CC to just the basename; use the full file name.
924 set dummy
"$ac_dir/$ac_word" "$@"
932 if test -n "$CC"; then
933 echo "$ac_t""$CC" 1>&6
935 echo "$ac_t""no" 1>&6
938 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
941 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
942 echo "configure:943: checking whether we are using GNU C" >&5
943 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
944 echo $ac_n "(cached) $ac_c" 1>&6
946 cat > conftest.c
<<EOF
951 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
958 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
960 if test $ac_cv_prog_gcc = yes; then
962 ac_libiberty_warn_cflags
='-W -Wall -Wtraditional -pedantic'
963 ac_test_CFLAGS
="${CFLAGS+set}"
964 ac_save_CFLAGS
="$CFLAGS"
966 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
967 echo "configure:968: checking whether ${CC-cc} accepts -g" >&5
968 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 echo 'void f(){}' > conftest.c
972 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
981 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
982 if test "$ac_test_CFLAGS" = set; then
983 CFLAGS
="$ac_save_CFLAGS"
984 elif test $ac_cv_prog_cc_g = yes; then
991 ac_libiberty_warn_cflags
=
992 test "${CFLAGS+set}" = set || CFLAGS
="-g"
997 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
998 echo "configure:999: checking for POSIXized ISC" >&5
999 if test -d /etc
/conf
/kconfig.d
&&
1000 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1002 echo "$ac_t""yes" 1>&6
1003 ISC
=yes # If later tests want to check for ISC.
1004 cat >> confdefs.h
<<\EOF
1005 #define _POSIX_SOURCE 1
1008 if test "$GCC" = yes; then
1014 echo "$ac_t""no" 1>&6
1018 echo $ac_n "checking for working const""... $ac_c" 1>&6
1019 echo "configure:1020: checking for working const" >&5
1020 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1021 echo $ac_n "(cached) $ac_c" 1>&6
1023 cat > conftest.
$ac_ext <<EOF
1024 #line 1025 "configure"
1025 #include "confdefs.h"
1029 /* Ultrix mips cc rejects this. */
1030 typedef int charset[2]; const charset x;
1031 /* SunOS 4.1.1 cc rejects this. */
1032 char const *const *ccp;
1034 /* NEC SVR4.0.2 mips cc rejects this. */
1035 struct point {int x, y;};
1036 static struct point const zero = {0,0};
1037 /* AIX XL C 1.02.0.0 rejects this.
1038 It does not let you subtract one const X* pointer from another in an arm
1039 of an if-expression whose if-part is not a constant expression */
1040 const char *g = "string";
1041 ccp = &g + (g ? g-g : 0);
1042 /* HPUX 7.0 cc rejects these. */
1045 ccp = (char const *const *) p;
1046 { /* SCO 3.2v4 cc rejects this. */
1048 char const *s = 0 ? (char *) 0 : (char const *) 0;
1052 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1054 const int *foo = &x[0];
1057 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1058 typedef const int *iptr;
1062 { /* AIX XL C 1.02.0.0 rejects this saying
1063 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1064 struct s { int j; const int *ap[3]; };
1065 struct s *b; b->j = 5;
1067 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1073 if { (eval echo configure
:1074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1077 echo "configure: failed program was:" >&5
1078 cat conftest.
$ac_ext >&5
1085 echo "$ac_t""$ac_cv_c_const" 1>&6
1086 if test $ac_cv_c_const = no
; then
1087 cat >> confdefs.h
<<\EOF
1093 echo $ac_n "checking for inline""... $ac_c" 1>&6
1094 echo "configure:1095: checking for inline" >&5
1095 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1099 for ac_kw
in inline __inline__ __inline
; do
1100 cat > conftest.
$ac_ext <<EOF
1101 #line 1102 "configure"
1102 #include "confdefs.h"
1108 if { (eval echo configure
:1109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1110 ac_cv_c_inline
=$ac_kw; break
1112 echo "configure: failed program was:" >&5
1113 cat conftest.
$ac_ext >&5
1120 echo "$ac_t""$ac_cv_c_inline" 1>&6
1121 case "$ac_cv_c_inline" in
1123 no
) cat >> confdefs.h
<<\EOF
1127 *) cat >> confdefs.h
<<EOF
1128 #define inline $ac_cv_c_inline
1139 # Find a good install program. We prefer a C program (faster),
1140 # so one script is as good as another. But avoid the broken or
1141 # incompatible versions:
1142 # SysV /etc/install, /usr/sbin/install
1143 # SunOS /usr/etc/install
1144 # IRIX /sbin/install
1146 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1147 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1148 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1149 # ./install, which can be erroneously created by make from ./install.sh.
1150 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1151 echo "configure:1152: checking for a BSD compatible install" >&5
1152 if test -z "$INSTALL"; then
1153 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1157 for ac_dir
in $PATH; do
1158 # Account for people who put trailing slashes in PATH elements.
1160 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1162 # OSF1 and SCO ODT 3.0 have their own names for install.
1163 # Don't use installbsd from OSF since it installs stuff as root
1165 for ac_prog
in ginstall scoinst
install; do
1166 if test -f $ac_dir/$ac_prog; then
1167 if test $ac_prog = install &&
1168 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1169 # AIX install. It has an incompatible calling convention.
1172 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1183 if test "${ac_cv_path_install+set}" = set; then
1184 INSTALL
="$ac_cv_path_install"
1186 # As a last resort, use the slow shell script. We don't cache a
1187 # path for INSTALL within a source directory, because that will
1188 # break other packages using the cache if that directory is
1189 # removed, or if the path is relative.
1190 INSTALL
="$ac_install_sh"
1193 echo "$ac_t""$INSTALL" 1>&6
1195 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1196 # It thinks the first close brace ends the variable substitution.
1197 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1199 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1201 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1204 .
${srcdir}/config.table
1205 host_makefile_frag
=${frag}
1208 # It's OK to check for header files. Although the compiler may not be
1209 # able to link anything, it had better be able to at least compile
1211 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1212 echo "configure:1213: checking how to run the C preprocessor" >&5
1213 # On Suns, sometimes $CPP names a directory.
1214 if test -n "$CPP" && test -d "$CPP"; then
1217 if test -z "$CPP"; then
1218 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 # This must be in double quotes, not single quotes, because CPP may get
1222 # substituted into the Makefile and "${CC-cc}" will confuse make.
1224 # On the NeXT, cc -E runs the code through the compiler's parser,
1225 # not just through cpp.
1226 cat > conftest.
$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1232 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1233 { (eval echo configure
:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1234 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1235 if test -z "$ac_err"; then
1239 echo "configure: failed program was:" >&5
1240 cat conftest.
$ac_ext >&5
1242 CPP
="${CC-cc} -E -traditional-cpp"
1243 cat > conftest.
$ac_ext <<EOF
1244 #line 1245 "configure"
1245 #include "confdefs.h"
1249 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1250 { (eval echo configure
:1251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1251 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1252 if test -z "$ac_err"; then
1256 echo "configure: failed program was:" >&5
1257 cat conftest.
$ac_ext >&5
1259 CPP
="${CC-cc} -nologo -E"
1260 cat > conftest.
$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1266 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1267 { (eval echo configure
:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1268 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1269 if test -z "$ac_err"; then
1273 echo "configure: failed program was:" >&5
1274 cat conftest.
$ac_ext >&5
1283 ac_cv_prog_CPP
="$CPP"
1285 CPP
="$ac_cv_prog_CPP"
1287 ac_cv_prog_CPP
="$CPP"
1289 echo "$ac_t""$CPP" 1>&6
1291 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
1293 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1294 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1295 echo "configure:1296: checking for $ac_hdr" >&5
1296 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1299 cat > conftest.
$ac_ext <<EOF
1300 #line 1301 "configure"
1301 #include "confdefs.h"
1304 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1305 { (eval echo configure
:1306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1306 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1307 if test -z "$ac_err"; then
1309 eval "ac_cv_header_$ac_safe=yes"
1312 echo "configure: failed program was:" >&5
1313 cat conftest.
$ac_ext >&5
1315 eval "ac_cv_header_$ac_safe=no"
1319 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1320 echo "$ac_t""yes" 1>&6
1321 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1322 cat >> confdefs.h
<<EOF
1323 #define $ac_tr_hdr 1
1327 echo "$ac_t""no" 1>&6
1331 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1332 echo "configure:1333: checking for sys/wait.h that is POSIX.1 compatible" >&5
1333 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1336 cat > conftest.
$ac_ext <<EOF
1337 #line 1338 "configure"
1338 #include "confdefs.h"
1339 #include <sys/types.h>
1340 #include <sys/wait.h>
1342 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1345 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1350 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1353 if { (eval echo configure
:1354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1355 ac_cv_header_sys_wait_h
=yes
1357 echo "configure: failed program was:" >&5
1358 cat conftest.
$ac_ext >&5
1360 ac_cv_header_sys_wait_h
=no
1365 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1366 if test $ac_cv_header_sys_wait_h = yes; then
1367 cat >> confdefs.h
<<\EOF
1368 #define HAVE_SYS_WAIT_H 1
1373 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1374 echo "configure:1375: checking whether time.h and sys/time.h may both be included" >&5
1375 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 cat > conftest.
$ac_ext <<EOF
1379 #line 1380 "configure"
1380 #include "confdefs.h"
1381 #include <sys/types.h>
1382 #include <sys/time.h>
1388 if { (eval echo configure
:1389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1390 ac_cv_header_time
=yes
1392 echo "configure: failed program was:" >&5
1393 cat conftest.
$ac_ext >&5
1395 ac_cv_header_time
=no
1400 echo "$ac_t""$ac_cv_header_time" 1>&6
1401 if test $ac_cv_header_time = yes; then
1402 cat >> confdefs.h
<<\EOF
1403 #define TIME_WITH_SYS_TIME 1
1409 echo $ac_n "checking whether errno must be declared""... $ac_c" 1>&6
1410 echo "configure:1411: checking whether errno must be declared" >&5
1411 if eval "test \"`echo '$''{'libiberty_cv_declare_errno'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1414 cat > conftest.
$ac_ext <<EOF
1415 #line 1416 "configure"
1416 #include "confdefs.h"
1422 if { (eval echo configure
:1423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1424 libiberty_cv_declare_errno
=no
1426 echo "configure: failed program was:" >&5
1427 cat conftest.
$ac_ext >&5
1429 libiberty_cv_declare_errno
=yes
1434 echo "$ac_t""$libiberty_cv_declare_errno" 1>&6
1435 if test $libiberty_cv_declare_errno = yes
1436 then cat >> confdefs.h
<<\EOF
1437 #define NEED_DECLARATION_ERRNO 1
1443 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1444 echo "configure:1445: checking for ANSI C header files" >&5
1445 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1448 cat > conftest.
$ac_ext <<EOF
1449 #line 1450 "configure"
1450 #include "confdefs.h"
1456 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1457 { (eval echo configure
:1458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1458 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1459 if test -z "$ac_err"; then
1461 ac_cv_header_stdc
=yes
1464 echo "configure: failed program was:" >&5
1465 cat conftest.
$ac_ext >&5
1467 ac_cv_header_stdc
=no
1471 if test $ac_cv_header_stdc = yes; then
1472 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1473 cat > conftest.
$ac_ext <<EOF
1474 #line 1475 "configure"
1475 #include "confdefs.h"
1478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1479 egrep "memchr" >/dev
/null
2>&1; then
1483 ac_cv_header_stdc
=no
1489 if test $ac_cv_header_stdc = yes; then
1490 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1491 cat > conftest.
$ac_ext <<EOF
1492 #line 1493 "configure"
1493 #include "confdefs.h"
1496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1497 egrep "free" >/dev
/null
2>&1; then
1501 ac_cv_header_stdc
=no
1507 if test $ac_cv_header_stdc = yes; then
1508 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1509 if test "$cross_compiling" = yes; then
1512 cat > conftest.
$ac_ext <<EOF
1513 #line 1514 "configure"
1514 #include "confdefs.h"
1516 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1517 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1518 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1519 int main () { int i; for (i = 0; i < 256; i++)
1520 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1524 if { (eval echo configure
:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1528 echo "configure: failed program was:" >&5
1529 cat conftest.
$ac_ext >&5
1531 ac_cv_header_stdc
=no
1539 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1540 if test $ac_cv_header_stdc = yes; then
1541 cat >> confdefs.h
<<\EOF
1542 #define STDC_HEADERS 1
1547 echo $ac_n "checking for uintptr_t""... $ac_c" 1>&6
1548 echo "configure:1549: checking for uintptr_t" >&5
1549 if eval "test \"`echo '$''{'ac_cv_type_uintptr_t'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1552 cat > conftest.
$ac_ext <<EOF
1553 #line 1554 "configure"
1554 #include "confdefs.h"
1555 #include <sys/types.h>
1561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1562 egrep "(^|[^a-zA-Z_0-9])uintptr_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1564 ac_cv_type_uintptr_t
=yes
1567 ac_cv_type_uintptr_t
=no
1572 echo "$ac_t""$ac_cv_type_uintptr_t" 1>&6
1573 if test $ac_cv_type_uintptr_t = no
; then
1574 cat >> confdefs.h
<<\EOF
1575 #define uintptr_t unsigned long
1581 if test $ac_cv_type_uintptr_t = yes
1583 cat >> confdefs.h
<<\EOF
1584 #define HAVE_UINTPTR_T 1
1589 # This is the list of functions which libiberty will provide if they
1590 # are not available on the host.
1593 funcs
="$funcs atexit"
1594 funcs
="$funcs basename"
1596 funcs
="$funcs bcopy"
1597 funcs
="$funcs bsearch"
1598 funcs
="$funcs bzero"
1599 funcs
="$funcs calloc"
1600 funcs
="$funcs clock"
1602 funcs
="$funcs getcwd"
1603 funcs
="$funcs getpagesize"
1604 funcs
="$funcs index"
1605 funcs
="$funcs insque"
1606 funcs
="$funcs memchr"
1607 funcs
="$funcs memcmp"
1608 funcs
="$funcs memcpy"
1609 funcs
="$funcs memmove"
1610 funcs
="$funcs memset"
1611 funcs
="$funcs mkstemps"
1612 funcs
="$funcs putenv"
1613 funcs
="$funcs random"
1614 funcs
="$funcs rename"
1615 funcs
="$funcs rindex"
1616 funcs
="$funcs setenv"
1617 funcs
="$funcs sigsetmask"
1618 funcs
="$funcs strcasecmp"
1619 funcs
="$funcs strchr"
1620 funcs
="$funcs strdup"
1621 funcs
="$funcs strncasecmp"
1622 funcs
="$funcs strrchr"
1623 funcs
="$funcs strstr"
1624 funcs
="$funcs strtod"
1625 funcs
="$funcs strtol"
1626 funcs
="$funcs strtoul"
1627 funcs
="$funcs tmpnam"
1628 funcs
="$funcs vasprintf"
1629 funcs
="$funcs vfprintf"
1630 funcs
="$funcs vprintf"
1631 funcs
="$funcs vsprintf"
1632 funcs
="$funcs waitpid"
1634 # Also in the old function.def file: alloca, vfork, getopt.
1636 vars
="sys_errlist sys_nerr sys_siglist"
1638 checkfuncs
="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
1640 # These are neither executed nor required, but they help keep
1641 # autoheader happy without adding a bunch of text to acconfig.h.
1642 if test "x" = "y"; then
1643 for ac_func
in asprintf atexit
basename bcmp bcopy bsearch bzero calloc
clock
1645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1646 echo "configure:1647: checking for $ac_func" >&5
1647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1650 cat > conftest.
$ac_ext <<EOF
1651 #line 1652 "configure"
1652 #include "confdefs.h"
1653 /* System header to define __stub macros and hopefully few prototypes,
1654 which can conflict with char $ac_func(); below. */
1656 /* Override any gcc2 internal prototype to avoid an error. */
1657 /* We use char because int might match the return type of a gcc2
1658 builtin and then its argument prototype would still apply. */
1663 /* The GNU C library defines this for functions which it implements
1664 to always fail with ENOSYS. Some functions are actually named
1665 something starting with __ and the normal name is an alias. */
1666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1674 if { (eval echo configure
:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1676 eval "ac_cv_func_$ac_func=yes"
1678 echo "configure: failed program was:" >&5
1679 cat conftest.
$ac_ext >&5
1681 eval "ac_cv_func_$ac_func=no"
1686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1687 echo "$ac_t""yes" 1>&6
1688 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1689 cat >> confdefs.h
<<EOF
1690 #define $ac_tr_func 1
1694 echo "$ac_t""no" 1>&6
1698 for ac_func
in getcwd getpagesize index insque mkstemps memchr memcmp memcpy
1700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1701 echo "configure:1702: checking for $ac_func" >&5
1702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1705 cat > conftest.
$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1708 /* System header to define __stub macros and hopefully few prototypes,
1709 which can conflict with char $ac_func(); below. */
1711 /* Override any gcc2 internal prototype to avoid an error. */
1712 /* We use char because int might match the return type of a gcc2
1713 builtin and then its argument prototype would still apply. */
1718 /* The GNU C library defines this for functions which it implements
1719 to always fail with ENOSYS. Some functions are actually named
1720 something starting with __ and the normal name is an alias. */
1721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1729 if { (eval echo configure
:1730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1731 eval "ac_cv_func_$ac_func=yes"
1733 echo "configure: failed program was:" >&5
1734 cat conftest.
$ac_ext >&5
1736 eval "ac_cv_func_$ac_func=no"
1741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1742 echo "$ac_t""yes" 1>&6
1743 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1744 cat >> confdefs.h
<<EOF
1745 #define $ac_tr_func 1
1749 echo "$ac_t""no" 1>&6
1753 for ac_func
in memmove memset putenv random rename rindex sigsetmask
1755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1756 echo "configure:1757: checking for $ac_func" >&5
1757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1758 echo $ac_n "(cached) $ac_c" 1>&6
1760 cat > conftest.
$ac_ext <<EOF
1761 #line 1762 "configure"
1762 #include "confdefs.h"
1763 /* System header to define __stub macros and hopefully few prototypes,
1764 which can conflict with char $ac_func(); below. */
1766 /* Override any gcc2 internal prototype to avoid an error. */
1767 /* We use char because int might match the return type of a gcc2
1768 builtin and then its argument prototype would still apply. */
1773 /* The GNU C library defines this for functions which it implements
1774 to always fail with ENOSYS. Some functions are actually named
1775 something starting with __ and the normal name is an alias. */
1776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1784 if { (eval echo configure
:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1786 eval "ac_cv_func_$ac_func=yes"
1788 echo "configure: failed program was:" >&5
1789 cat conftest.
$ac_ext >&5
1791 eval "ac_cv_func_$ac_func=no"
1796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1797 echo "$ac_t""yes" 1>&6
1798 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1799 cat >> confdefs.h
<<EOF
1800 #define $ac_tr_func 1
1804 echo "$ac_t""no" 1>&6
1808 for ac_func
in strcasecmp setenv strchr strdup strncasecmp strrchr strstr
1810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1811 echo "configure:1812: checking for $ac_func" >&5
1812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1815 cat > conftest.
$ac_ext <<EOF
1816 #line 1817 "configure"
1817 #include "confdefs.h"
1818 /* System header to define __stub macros and hopefully few prototypes,
1819 which can conflict with char $ac_func(); below. */
1821 /* Override any gcc2 internal prototype to avoid an error. */
1822 /* We use char because int might match the return type of a gcc2
1823 builtin and then its argument prototype would still apply. */
1828 /* The GNU C library defines this for functions which it implements
1829 to always fail with ENOSYS. Some functions are actually named
1830 something starting with __ and the normal name is an alias. */
1831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1839 if { (eval echo configure
:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1841 eval "ac_cv_func_$ac_func=yes"
1843 echo "configure: failed program was:" >&5
1844 cat conftest.
$ac_ext >&5
1846 eval "ac_cv_func_$ac_func=no"
1851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1852 echo "$ac_t""yes" 1>&6
1853 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1854 cat >> confdefs.h
<<EOF
1855 #define $ac_tr_func 1
1859 echo "$ac_t""no" 1>&6
1863 for ac_func
in strtod strtol strtoul tmpnam vasprintf vfprintf vprintf
1865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1866 echo "configure:1867: checking for $ac_func" >&5
1867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 cat > conftest.
$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1873 /* System header to define __stub macros and hopefully few prototypes,
1874 which can conflict with char $ac_func(); below. */
1876 /* Override any gcc2 internal prototype to avoid an error. */
1877 /* We use char because int might match the return type of a gcc2
1878 builtin and then its argument prototype would still apply. */
1883 /* The GNU C library defines this for functions which it implements
1884 to always fail with ENOSYS. Some functions are actually named
1885 something starting with __ and the normal name is an alias. */
1886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1894 if { (eval echo configure
:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1896 eval "ac_cv_func_$ac_func=yes"
1898 echo "configure: failed program was:" >&5
1899 cat conftest.
$ac_ext >&5
1901 eval "ac_cv_func_$ac_func=no"
1906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1907 echo "$ac_t""yes" 1>&6
1908 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1909 cat >> confdefs.h
<<EOF
1910 #define $ac_tr_func 1
1914 echo "$ac_t""no" 1>&6
1918 for ac_func
in vsprintf waitpid getrusage on_exit psignal strerror strsignal
1920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1921 echo "configure:1922: checking for $ac_func" >&5
1922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1925 cat > conftest.
$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1928 /* System header to define __stub macros and hopefully few prototypes,
1929 which can conflict with char $ac_func(); below. */
1931 /* Override any gcc2 internal prototype to avoid an error. */
1932 /* We use char because int might match the return type of a gcc2
1933 builtin and then its argument prototype would still apply. */
1938 /* The GNU C library defines this for functions which it implements
1939 to always fail with ENOSYS. Some functions are actually named
1940 something starting with __ and the normal name is an alias. */
1941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1949 if { (eval echo configure
:1950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1951 eval "ac_cv_func_$ac_func=yes"
1953 echo "configure: failed program was:" >&5
1954 cat conftest.
$ac_ext >&5
1956 eval "ac_cv_func_$ac_func=no"
1961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1962 echo "$ac_t""yes" 1>&6
1963 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1964 cat >> confdefs.h
<<EOF
1965 #define $ac_tr_func 1
1969 echo "$ac_t""no" 1>&6
1973 for ac_func
in sysconf
times sbrk gettimeofday ffs
1975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1976 echo "configure:1977: checking for $ac_func" >&5
1977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1980 cat > conftest.
$ac_ext <<EOF
1981 #line 1982 "configure"
1982 #include "confdefs.h"
1983 /* System header to define __stub macros and hopefully few prototypes,
1984 which can conflict with char $ac_func(); below. */
1986 /* Override any gcc2 internal prototype to avoid an error. */
1987 /* We use char because int might match the return type of a gcc2
1988 builtin and then its argument prototype would still apply. */
1993 /* The GNU C library defines this for functions which it implements
1994 to always fail with ENOSYS. Some functions are actually named
1995 something starting with __ and the normal name is an alias. */
1996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2004 if { (eval echo configure
:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2006 eval "ac_cv_func_$ac_func=yes"
2008 echo "configure: failed program was:" >&5
2009 cat conftest.
$ac_ext >&5
2011 eval "ac_cv_func_$ac_func=no"
2016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2017 echo "$ac_t""yes" 1>&6
2018 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2019 cat >> confdefs.h
<<EOF
2020 #define $ac_tr_func 1
2024 echo "$ac_t""no" 1>&6
2028 cat >> confdefs.h
<<\EOF
2029 #define HAVE_SYS_ERRLIST 1
2032 cat >> confdefs.h
<<\EOF
2033 #define HAVE_SYS_NERR 1
2036 cat >> confdefs.h
<<\EOF
2037 #define HAVE_SYS_SIGLIST 1
2042 # For each of these functions, if the host does not provide the
2043 # function we want to put FN.o in LIBOBJS, and if the host does
2044 # provide the function, we want to define HAVE_FN in config.h.
2049 if test -n "${with_target_subdir}"; then
2051 # We are being configured as a target library. AC_REPLACE_FUNCS
2052 # may not work correctly, because the compiler may not be able to
2053 # link executables. Note that we may still be being configured
2056 # If we are being configured for newlib, we know which functions
2057 # newlib provide and which ones we will be expected to provide.
2059 if test "x${with_newlib}" = "xyes"; then
2060 LIBOBJS
="asprintf.o basename.o insque.o random.o strdup.o vasprintf.o"
2064 asprintf |
basename | insque | random | strdup | vasprintf
)
2067 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2068 cat >> confdefs.h
<<EOF
2076 # newlib doesnt provide any of the variables in $vars, so we
2077 # dont have to check them here.
2079 # Of the functions in $checkfuncs, newlib only has strerror.
2080 cat >> confdefs.h
<<\EOF
2081 #define HAVE_STRERROR 1
2089 # We may wish to install the target headers somewhere.
2090 # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
2091 if test "${enable_install_libiberty+set}" = set; then
2092 enableval
="$enable_install_libiberty"
2093 enable_install_libiberty
=$enableval
2095 enable_install_libiberty
=no
2098 # Option parsed, now set things appropriately.
2099 case x
"$enable_install_libiberty" in
2101 target_header_dir
=libiberty
2107 # This could be sanity-checked in various ways...
2108 target_header_dir
="${enable_install_libiberty}"
2115 # Not a target library, so we set things up to run the test suite.
2116 CHECK
=check-cplus-dem
2124 *-*-cygwin* |
*-*-mingw*)
2125 cat >> confdefs.h
<<\EOF
2126 #define HAVE_SYS_ERRLIST 1
2129 cat >> confdefs.h
<<\EOF
2130 #define HAVE_SYS_NERR 1
2136 if test -z "${setobjs}"; then
2140 # Handle VxWorks configuration specially, since on VxWorks the
2141 # libraries are actually on the target board, not in the file
2143 LIBOBJS
="basename.o getpagesize.o insque.o random.o strcasecmp.o"
2144 LIBOBJS
="$LIBOBJS strncasecmp.o strdup.o vfork.o waitpid.o vasprintf.o"
2147 basename | getpagesize | insque | random | strcasecmp
)
2149 strncasecmp | strdup | vfork | waitpid | vasprintf
)
2152 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2153 cat >> confdefs.h
<<EOF
2161 # VxWorks doesn't provide any of the variables in $vars, so we
2162 # don't have to check them here.
2164 # Of the functions in $checkfuncs, VxWorks only has strerror.
2165 cat >> confdefs.h
<<\EOF
2166 #define HAVE_STRERROR 1
2176 if test -z "${setobjs}"; then
2181 # The Cygwin library actually uses a couple of files from
2182 # libiberty when it is built. If we are building a native
2183 # Cygwin, and we run the tests, we will appear to have these
2184 # files. However, when we go on to build winsup, we will wind up
2185 # with a library which does not have the files, since they should
2186 # have come from libiberty.
2188 # We handle this by removing the functions the winsup library
2189 # provides from our shell variables, so that they appear to be
2192 # DJ - only if we're *building* cygwin, not just building *with* cygwin
2194 if test -n "${with_target_subdir}"
2196 funcs
="`echo $funcs | sed -e 's/random//'`"
2197 LIBOBJS
="$LIBOBJS random.o"
2198 vars
="`echo $vars | sed -e 's/sys_siglist//'`"
2199 checkfuncs
="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
2204 # Under mingw32, sys_nerr and sys_errlist exist, but they are
2205 # macros, so the test below won't find them.
2206 libiberty_cv_var_sys_nerr
=yes
2207 libiberty_cv_var_sys_errlist
=yes
2211 # Under some versions of uwin, vfork is notoriously buggy and the test
2212 # can hang configure; on other versions, vfork exists just as a stub.
2213 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2214 ac_cv_func_vfork_works
=no
2215 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
2216 # macros (actually, these are imported from a DLL, but the end effect
2217 # is the same), so the test below won't find them.
2218 libiberty_cv_var_sys_nerr
=yes
2219 libiberty_cv_var_sys_errlist
=yes
2223 # Under VMS, vfork works very different than on Unix. The standard test
2224 # won't work, and it isn't easily adaptable. It makes more sense to
2226 ac_cv_func_vfork_works
=yes
2231 # We haven't set the list of objects yet. Use the standard autoconf
2232 # tests. This will only work if the compiler works.
2233 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2234 echo "configure:2235: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2237 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2238 ac_cpp
='$CPP $CPPFLAGS'
2239 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2240 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2241 cross_compiling
=$ac_cv_prog_cc_cross
2243 cat > conftest.
$ac_ext << EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2250 if { (eval echo configure
:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2251 ac_cv_prog_cc_works
=yes
2252 # If we can't run a trivial program, we are probably using a cross compiler.
2253 if (.
/conftest
; exit) 2>/dev
/null
; then
2254 ac_cv_prog_cc_cross
=no
2256 ac_cv_prog_cc_cross
=yes
2259 echo "configure: failed program was:" >&5
2260 cat conftest.
$ac_ext >&5
2261 ac_cv_prog_cc_works
=no
2265 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2266 ac_cpp
='$CPP $CPPFLAGS'
2267 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2268 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2269 cross_compiling
=$ac_cv_prog_cc_cross
2271 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2272 if test $ac_cv_prog_cc_works = no
; then
2273 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2275 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2276 echo "configure:2277: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2277 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2278 cross_compiling
=$ac_cv_prog_cc_cross
2280 for ac_func
in $funcs
2282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2283 echo "configure:2284: checking for $ac_func" >&5
2284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2285 echo $ac_n "(cached) $ac_c" 1>&6
2287 cat > conftest.
$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2290 /* System header to define __stub macros and hopefully few prototypes,
2291 which can conflict with char $ac_func(); below. */
2293 /* Override any gcc2 internal prototype to avoid an error. */
2294 /* We use char because int might match the return type of a gcc2
2295 builtin and then its argument prototype would still apply. */
2300 /* The GNU C library defines this for functions which it implements
2301 to always fail with ENOSYS. Some functions are actually named
2302 something starting with __ and the normal name is an alias. */
2303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2311 if { (eval echo configure
:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2313 eval "ac_cv_func_$ac_func=yes"
2315 echo "configure: failed program was:" >&5
2316 cat conftest.
$ac_ext >&5
2318 eval "ac_cv_func_$ac_func=no"
2323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2324 echo "$ac_t""yes" 1>&6
2325 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2326 cat >> confdefs.h
<<EOF
2327 #define $ac_tr_func 1
2331 echo "$ac_t""no" 1>&6
2332 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2337 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2338 echo "configure:2339: checking whether alloca needs Cray hooks" >&5
2339 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2342 cat > conftest.
$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2345 #if defined(CRAY) && ! defined(CRAY2)
2352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2353 egrep "webecray" >/dev
/null
2>&1; then
2364 echo "$ac_t""$ac_cv_os_cray" 1>&6
2365 if test $ac_cv_os_cray = yes; then
2366 for ac_func
in _getb67 GETB67 getb67
; do
2367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2368 echo "configure:2369: checking for $ac_func" >&5
2369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2372 cat > conftest.
$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2375 /* System header to define __stub macros and hopefully few prototypes,
2376 which can conflict with char $ac_func(); below. */
2378 /* Override any gcc2 internal prototype to avoid an error. */
2379 /* We use char because int might match the return type of a gcc2
2380 builtin and then its argument prototype would still apply. */
2385 /* The GNU C library defines this for functions which it implements
2386 to always fail with ENOSYS. Some functions are actually named
2387 something starting with __ and the normal name is an alias. */
2388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2396 if { (eval echo configure
:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2398 eval "ac_cv_func_$ac_func=yes"
2400 echo "configure: failed program was:" >&5
2401 cat conftest.
$ac_ext >&5
2403 eval "ac_cv_func_$ac_func=no"
2408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2409 echo "$ac_t""yes" 1>&6
2410 cat >> confdefs.h
<<EOF
2411 #define CRAY_STACKSEG_END $ac_func
2415 echo "$ac_t""no" 1>&6
2421 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2422 echo "configure:2423: checking stack direction for C alloca" >&5
2423 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 if test "$cross_compiling" = yes; then
2427 ac_cv_c_stack_direction
=0
2429 cat > conftest.
$ac_ext <<EOF
2430 #line 2431 "configure"
2431 #include "confdefs.h"
2432 find_stack_direction ()
2434 static char *addr = 0;
2439 return find_stack_direction ();
2442 return (&dummy > addr) ? 1 : -1;
2446 exit (find_stack_direction() < 0);
2449 if { (eval echo configure
:2450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2451 ac_cv_c_stack_direction
=1
2453 echo "configure: failed program was:" >&5
2454 cat conftest.
$ac_ext >&5
2456 ac_cv_c_stack_direction
=-1
2463 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2464 cat >> confdefs.h
<<EOF
2465 #define STACK_DIRECTION $ac_cv_c_stack_direction
2469 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2470 echo "configure:2471: checking for pid_t" >&5
2471 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2474 cat > conftest.
$ac_ext <<EOF
2475 #line 2476 "configure"
2476 #include "confdefs.h"
2477 #include <sys/types.h>
2483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2484 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2486 ac_cv_type_pid_t
=yes
2494 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2495 if test $ac_cv_type_pid_t = no
; then
2496 cat >> confdefs.h
<<\EOF
2502 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2503 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2504 echo "configure:2505: checking for vfork.h" >&5
2505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 cat > conftest.
$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2513 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2514 { (eval echo configure
:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2515 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2516 if test -z "$ac_err"; then
2518 eval "ac_cv_header_$ac_safe=yes"
2521 echo "configure: failed program was:" >&5
2522 cat conftest.
$ac_ext >&5
2524 eval "ac_cv_header_$ac_safe=no"
2528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 cat >> confdefs.h
<<\EOF
2531 #define HAVE_VFORK_H 1
2535 echo "$ac_t""no" 1>&6
2538 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2539 echo "configure:2540: checking for working vfork" >&5
2540 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2543 if test "$cross_compiling" = yes; then
2544 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2545 echo "configure:2546: checking for vfork" >&5
2546 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2547 echo $ac_n "(cached) $ac_c" 1>&6
2549 cat > conftest.
$ac_ext <<EOF
2550 #line 2551 "configure"
2551 #include "confdefs.h"
2552 /* System header to define __stub macros and hopefully few prototypes,
2553 which can conflict with char vfork(); below. */
2555 /* Override any gcc2 internal prototype to avoid an error. */
2556 /* We use char because int might match the return type of a gcc2
2557 builtin and then its argument prototype would still apply. */
2562 /* The GNU C library defines this for functions which it implements
2563 to always fail with ENOSYS. Some functions are actually named
2564 something starting with __ and the normal name is an alias. */
2565 #if defined (__stub_vfork) || defined (__stub___vfork)
2573 if { (eval echo configure
:2574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2575 eval "ac_cv_func_vfork=yes"
2577 echo "configure: failed program was:" >&5
2578 cat conftest.
$ac_ext >&5
2580 eval "ac_cv_func_vfork=no"
2585 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2586 echo "$ac_t""yes" 1>&6
2589 echo "$ac_t""no" 1>&6
2592 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2594 cat > conftest.
$ac_ext <<EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2597 /* Thanks to Paul Eggert for this test. */
2599 #include <sys/types.h>
2600 #include <sys/stat.h>
2601 #ifdef HAVE_UNISTD_H
2607 /* On some sparc systems, changes by the child to local and incoming
2608 argument registers are propagated back to the parent.
2609 The compiler is told about this with #include <vfork.h>,
2610 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2611 Test for this by using a static variable whose address
2612 is put into a register that is clobbered by the vfork. */
2615 sparc_address_test (int arg)
2617 sparc_address_test (arg) int arg;
2635 pid_t parent = getpid ();
2638 sparc_address_test ();
2643 /* Here is another test for sparc vfork register problems.
2644 This test uses lots of local variables, at least
2645 as many local variables as main has allocated so far
2646 including compiler temporaries. 4 locals are enough for
2647 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2648 A buggy compiler should reuse the register of parent
2649 for one of the local variables, since it will think that
2650 parent can't possibly be used any more in this routine.
2651 Assigning to the local variable will thus munge parent
2652 in the parent process. */
2654 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2655 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2656 /* Convince the compiler that p..p7 are live; otherwise, it might
2657 use the same hardware register for all 8 local variables. */
2658 if (p != p1 || p != p2 || p != p3 || p != p4
2659 || p != p5 || p != p6 || p != p7)
2662 /* On some systems (e.g. IRIX 3.3),
2663 vfork doesn't separate parent from child file descriptors.
2664 If the child closes a descriptor before it execs or exits,
2665 this munges the parent's descriptor as well.
2666 Test for this by closing stdout in the child. */
2667 _exit(close(fileno(stdout)) != 0);
2672 while (wait(&status) != child)
2675 /* Was there some problem with vforking? */
2678 /* Did the child fail? (This shouldn't happen.) */
2681 /* Did the vfork/compiler bug occur? */
2682 || parent != getpid()
2684 /* Did the file descriptor bug occur? */
2685 || fstat(fileno(stdout), &st) != 0
2690 if { (eval echo configure
:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2692 ac_cv_func_vfork_works
=yes
2694 echo "configure: failed program was:" >&5
2695 cat conftest.
$ac_ext >&5
2697 ac_cv_func_vfork_works
=no
2704 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2705 if test $ac_cv_func_vfork_works = no
; then
2706 cat >> confdefs.h
<<\EOF
2712 if test $ac_cv_func_vfork_works = no
; then
2713 LIBOBJS
="$LIBOBJS vfork.o"
2715 # We only need _doprnt if we might use it to implement v*printf.
2716 if test $ac_cv_func_vprintf != yes \
2717 ||
test $ac_cv_func_vfprintf != yes \
2718 ||
test $ac_cv_func_vsprintf != yes; then
2719 for ac_func
in _doprnt
2721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2722 echo "configure:2723: checking for $ac_func" >&5
2723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2726 cat > conftest.
$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2729 /* System header to define __stub macros and hopefully few prototypes,
2730 which can conflict with char $ac_func(); below. */
2732 /* Override any gcc2 internal prototype to avoid an error. */
2733 /* We use char because int might match the return type of a gcc2
2734 builtin and then its argument prototype would still apply. */
2739 /* The GNU C library defines this for functions which it implements
2740 to always fail with ENOSYS. Some functions are actually named
2741 something starting with __ and the normal name is an alias. */
2742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2750 if { (eval echo configure
:2751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2752 eval "ac_cv_func_$ac_func=yes"
2754 echo "configure: failed program was:" >&5
2755 cat conftest.
$ac_ext >&5
2757 eval "ac_cv_func_$ac_func=no"
2762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2763 echo "$ac_t""yes" 1>&6
2764 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2765 cat >> confdefs.h
<<EOF
2766 #define $ac_tr_func 1
2770 echo "$ac_t""no" 1>&6
2771 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2777 for ac_func
in _doprnt
2779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2780 echo "configure:2781: checking for $ac_func" >&5
2781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6
2784 cat > conftest.
$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2787 /* System header to define __stub macros and hopefully few prototypes,
2788 which can conflict with char $ac_func(); below. */
2790 /* Override any gcc2 internal prototype to avoid an error. */
2791 /* We use char because int might match the return type of a gcc2
2792 builtin and then its argument prototype would still apply. */
2797 /* The GNU C library defines this for functions which it implements
2798 to always fail with ENOSYS. Some functions are actually named
2799 something starting with __ and the normal name is an alias. */
2800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2808 if { (eval echo configure
:2809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2810 eval "ac_cv_func_$ac_func=yes"
2812 echo "configure: failed program was:" >&5
2813 cat conftest.
$ac_ext >&5
2815 eval "ac_cv_func_$ac_func=no"
2820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2821 echo "$ac_t""yes" 1>&6
2822 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2823 cat >> confdefs.h
<<EOF
2824 #define $ac_tr_func 1
2828 echo "$ac_t""no" 1>&6
2835 echo $ac_n "checking for $v""... $ac_c" 1>&6
2836 echo "configure:2837: checking for $v" >&5
2837 if eval "test \"`echo '$''{'libiberty_cv_var_$v'+set}'`\" = set"; then
2838 echo $ac_n "(cached) $ac_c" 1>&6
2840 cat > conftest.
$ac_ext <<EOF
2841 #line 2842 "configure"
2842 #include "confdefs.h"
2845 extern int $v []; p = &$v;
2848 if { (eval echo configure
:2849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2850 eval "libiberty_cv_var_$v=yes"
2852 echo "configure: failed program was:" >&5
2853 cat conftest.
$ac_ext >&5
2855 eval "libiberty_cv_var_$v=no"
2860 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
2861 echo "$ac_t""yes" 1>&6
2862 n
=HAVE_
`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2863 cat >> confdefs.h
<<EOF
2868 echo "$ac_t""no" 1>&6
2871 for ac_func
in $checkfuncs
2873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2874 echo "configure:2875: checking for $ac_func" >&5
2875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2878 cat > conftest.
$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2881 /* System header to define __stub macros and hopefully few prototypes,
2882 which can conflict with char $ac_func(); below. */
2884 /* Override any gcc2 internal prototype to avoid an error. */
2885 /* We use char because int might match the return type of a gcc2
2886 builtin and then its argument prototype would still apply. */
2891 /* The GNU C library defines this for functions which it implements
2892 to always fail with ENOSYS. Some functions are actually named
2893 something starting with __ and the normal name is an alias. */
2894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2902 if { (eval echo configure
:2903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2904 eval "ac_cv_func_$ac_func=yes"
2906 echo "configure: failed program was:" >&5
2907 cat conftest.
$ac_ext >&5
2909 eval "ac_cv_func_$ac_func=no"
2914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2915 echo "$ac_t""yes" 1>&6
2916 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2917 cat >> confdefs.h
<<EOF
2918 #define $ac_tr_func 1
2922 echo "$ac_t""no" 1>&6
2928 for ac_hdr
in unistd.h
2930 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2931 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2932 echo "configure:2933: checking for $ac_hdr" >&5
2933 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6
2936 cat > conftest.
$ac_ext <<EOF
2937 #line 2938 "configure"
2938 #include "confdefs.h"
2941 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2942 { (eval echo configure
:2943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2943 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2944 if test -z "$ac_err"; then
2946 eval "ac_cv_header_$ac_safe=yes"
2949 echo "configure: failed program was:" >&5
2950 cat conftest.
$ac_ext >&5
2952 eval "ac_cv_header_$ac_safe=no"
2956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2957 echo "$ac_t""yes" 1>&6
2958 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2959 cat >> confdefs.h
<<EOF
2960 #define $ac_tr_hdr 1
2964 echo "$ac_t""no" 1>&6
2968 for ac_func
in getpagesize
2970 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2971 echo "configure:2972: checking for $ac_func" >&5
2972 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2975 cat > conftest.
$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 /* System header to define __stub macros and hopefully few prototypes,
2979 which can conflict with char $ac_func(); below. */
2981 /* Override any gcc2 internal prototype to avoid an error. */
2982 /* We use char because int might match the return type of a gcc2
2983 builtin and then its argument prototype would still apply. */
2988 /* The GNU C library defines this for functions which it implements
2989 to always fail with ENOSYS. Some functions are actually named
2990 something starting with __ and the normal name is an alias. */
2991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2999 if { (eval echo configure
:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3001 eval "ac_cv_func_$ac_func=yes"
3003 echo "configure: failed program was:" >&5
3004 cat conftest.
$ac_ext >&5
3006 eval "ac_cv_func_$ac_func=no"
3011 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3012 echo "$ac_t""yes" 1>&6
3013 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3014 cat >> confdefs.h
<<EOF
3015 #define $ac_tr_func 1
3019 echo "$ac_t""no" 1>&6
3023 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3024 echo "configure:3025: checking for working mmap" >&5
3025 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6
3028 if test "$cross_compiling" = yes; then
3029 ac_cv_func_mmap_fixed_mapped
=no
3031 cat > conftest.
$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3035 /* Thanks to Mike Haertel and Jim Avera for this test.
3036 Here is a matrix of mmap possibilities:
3037 mmap private not fixed
3038 mmap private fixed at somewhere currently unmapped
3039 mmap private fixed at somewhere already mapped
3040 mmap shared not fixed
3041 mmap shared fixed at somewhere currently unmapped
3042 mmap shared fixed at somewhere already mapped
3043 For private mappings, we should verify that changes cannot be read()
3044 back from the file, nor mmap's back from the file at a different
3045 address. (There have been systems where private was not correctly
3046 implemented like the infamous i386 svr4.0, and systems where the
3047 VM page cache was not coherent with the filesystem buffer cache
3048 like early versions of FreeBSD and possibly contemporary NetBSD.)
3049 For shared mappings, we should conversely verify that changes get
3050 propogated back to all the places they're supposed to be.
3052 Grep wants private fixed already mapped.
3053 The main things grep needs to know about mmap are:
3054 * does it exist and is it safe to write into the mmap'd area
3055 * how to use it (BSD variants) */
3056 #include <sys/types.h>
3058 #include <sys/mman.h>
3060 /* This mess was copied from the GNU getpagesize.h. */
3061 #ifndef HAVE_GETPAGESIZE
3062 # ifdef HAVE_UNISTD_H
3063 # include <unistd.h>
3066 /* Assume that all systems that can run configure have sys/param.h. */
3067 # ifndef HAVE_SYS_PARAM_H
3068 # define HAVE_SYS_PARAM_H 1
3071 # ifdef _SC_PAGESIZE
3072 # define getpagesize() sysconf(_SC_PAGESIZE)
3073 # else /* no _SC_PAGESIZE */
3074 # ifdef HAVE_SYS_PARAM_H
3075 # include <sys/param.h>
3076 # ifdef EXEC_PAGESIZE
3077 # define getpagesize() EXEC_PAGESIZE
3078 # else /* no EXEC_PAGESIZE */
3080 # define getpagesize() NBPG * CLSIZE
3083 # endif /* no CLSIZE */
3084 # else /* no NBPG */
3086 # define getpagesize() NBPC
3087 # else /* no NBPC */
3089 # define getpagesize() PAGESIZE
3090 # endif /* PAGESIZE */
3091 # endif /* no NBPC */
3092 # endif /* no NBPG */
3093 # endif /* no EXEC_PAGESIZE */
3094 # else /* no HAVE_SYS_PARAM_H */
3095 # define getpagesize() 8192 /* punt totally */
3096 # endif /* no HAVE_SYS_PARAM_H */
3097 # endif /* no _SC_PAGESIZE */
3099 #endif /* no HAVE_GETPAGESIZE */
3102 extern "C" { void *malloc(unsigned); }
3110 char *data, *data2, *data3;
3114 pagesize = getpagesize();
3117 * First, make a file with some known garbage in it.
3119 data = malloc(pagesize);
3122 for (i = 0; i < pagesize; ++i)
3123 *(data + i) = rand();
3125 fd = creat("conftestmmap", 0600);
3128 if (write(fd, data, pagesize) != pagesize)
3133 * Next, try to mmap the file at a fixed address which
3134 * already has something else allocated at it. If we can,
3135 * also make sure that we see the same garbage.
3137 fd = open("conftestmmap", O_RDWR);
3140 data2 = malloc(2 * pagesize);
3143 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3144 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3145 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3147 for (i = 0; i < pagesize; ++i)
3148 if (*(data + i) != *(data2 + i))
3152 * Finally, make sure that changes to the mapped area
3153 * do not percolate back to the file as seen by read().
3154 * (This is a bug on some variants of i386 svr4.0.)
3156 for (i = 0; i < pagesize; ++i)
3157 *(data2 + i) = *(data2 + i) + 1;
3158 data3 = malloc(pagesize);
3161 if (read(fd, data3, pagesize) != pagesize)
3163 for (i = 0; i < pagesize; ++i)
3164 if (*(data + i) != *(data3 + i))
3167 unlink("conftestmmap");
3172 if { (eval echo configure
:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3174 ac_cv_func_mmap_fixed_mapped
=yes
3176 echo "configure: failed program was:" >&5
3177 cat conftest.
$ac_ext >&5
3179 ac_cv_func_mmap_fixed_mapped
=no
3186 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3187 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3188 cat >> confdefs.h
<<\EOF
3195 echo $ac_n "checking for working strncmp""... $ac_c" 1>&6
3196 echo "configure:3197: checking for working strncmp" >&5
3197 if eval "test \"`echo '$''{'ac_cv_func_strncmp_works'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3200 if test "$cross_compiling" = yes; then
3201 ac_cv_func_strncmp_works
=no
3203 cat > conftest.
$ac_ext <<EOF
3204 #line 3205 "configure"
3205 #include "confdefs.h"
3207 /* Test by Jim Wilson and Kaveh Ghazi.
3208 Check whether strncmp reads past the end of its string parameters. */
3209 #include <sys/types.h>
3215 #ifdef HAVE_SYS_MMAN_H
3216 #include <sys/mman.h>
3220 #ifdef MAP_ANONYMOUS
3221 #define MAP_ANON MAP_ANONYMOUS
3223 #define MAP_ANON MAP_FILE
3234 #define MAP_LEN 0x10000
3238 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
3242 dev_zero = open ("/dev/zero", O_RDONLY);
3246 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
3247 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
3248 if (p == (char *)-1)
3249 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
3250 MAP_ANON|MAP_PRIVATE, -1, 0);
3251 if (p == (char *)-1)
3255 char *string = "__si_type_info";
3256 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
3257 char *r = (char *) p + 0xe;
3263 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
3268 if { (eval echo configure
:3269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3270 ac_cv_func_strncmp_works
=yes
3272 echo "configure: failed program was:" >&5
3273 cat conftest.
$ac_ext >&5
3275 ac_cv_func_strncmp_works
=no
3280 rm -f core core.
* *.core
3283 echo "$ac_t""$ac_cv_func_strncmp_works" 1>&6
3284 if test $ac_cv_func_strncmp_works = no
; then
3285 LIBOBJS
="$LIBOBJS strncmp.o"
3289 # Install a library built with a cross compiler in $(tooldir) rather
3291 if test -z "${with_cross_host}"; then
3294 INSTALL_DEST
=tooldir
3298 # We need multilib support, but only if configuring for the target.
3300 cat > confcache
<<\EOF
3301 # This file is a shell script that caches the results of configure
3302 # tests run on this system so they can be shared between configure
3303 # scripts and configure runs. It is not useful on other systems.
3304 # If it contains results you don't want to keep, you may remove or edit it.
3306 # By default, configure uses ./config.cache as the cache file,
3307 # creating it if it does not exist already. You can give configure
3308 # the --cache-file=FILE option to use a different cache file; that is
3309 # what configure does when it calls configure scripts in
3310 # subdirectories, so they share the cache.
3311 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3312 # config.status only pays attention to the cache file if you give it the
3313 # --recheck option to rerun configure.
3316 # The following way of writing the cache mishandles newlines in values,
3317 # but we know of no workaround that is simple, portable, and efficient.
3318 # So, don't put newlines in cache variables' values.
3319 # Ultrix sh set writes to stderr and can't be redirected directly,
3320 # and sets the high bit in the cache file unless we assign to the vars.
3322 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3324 # `set' does not quote correctly, so add quotes (double-quote substitution
3325 # turns \\\\ into \\, and sed turns \\ into \).
3327 -e "s/'/'\\\\''/g" \
3328 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3331 # `set' quotes correctly as required by POSIX, so do not add quotes.
3332 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3335 if cmp -s $cache_file confcache
; then
3338 if test -w $cache_file; then
3339 echo "updating cache $cache_file"
3340 cat confcache
> $cache_file
3342 echo "not updating unwritable cache $cache_file"
3347 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3349 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3350 # Let make expand exec_prefix.
3351 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3353 # Any assignment to VPATH causes Sun make to only execute
3354 # the first set of double-colon rules, so remove it if not needed.
3355 # If there is a colon in the path, we need to keep it.
3356 if test "x$srcdir" = x.
; then
3357 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3360 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3362 DEFS
=-DHAVE_CONFIG_H
3364 # Without the "./", some shells look in PATH for config.status.
3365 : ${CONFIG_STATUS=./config.status}
3367 echo creating
$CONFIG_STATUS
3368 rm -f $CONFIG_STATUS
3369 cat > $CONFIG_STATUS <<EOF
3371 # Generated automatically by configure.
3372 # Run this file to recreate the current configuration.
3373 # This directory was configured as follows,
3374 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3376 # $0 $ac_configure_args
3378 # Compiler output produced by configure, useful for debugging
3379 # configure, is in ./config.log if it exists.
3381 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3384 case "\$ac_option" in
3385 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3386 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3387 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3388 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3389 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3391 -help | --help | --hel | --he | --h)
3392 echo "\$ac_cs_usage"; exit 0 ;;
3393 *) echo "\$ac_cs_usage"; exit 1 ;;
3397 ac_given_srcdir=$srcdir
3398 ac_given_INSTALL="$INSTALL"
3400 trap 'rm -fr `echo "Makefile testsuite/Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3402 cat >> $CONFIG_STATUS <<EOF
3404 # Protect against being on the right side of a sed subst in config.status.
3405 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3406 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3410 s%@CFLAGS@%$CFLAGS%g
3411 s%@CPPFLAGS@%$CPPFLAGS%g
3412 s%@CXXFLAGS@%$CXXFLAGS%g
3413 s%@FFLAGS@%$FFLAGS%g
3415 s%@LDFLAGS@%$LDFLAGS%g
3417 s%@exec_prefix@%$exec_prefix%g
3418 s%@prefix@%$prefix%g
3419 s%@program_transform_name@%$program_transform_name%g
3420 s%@bindir@%$bindir%g
3421 s%@sbindir@%$sbindir%g
3422 s%@libexecdir@%$libexecdir%g
3423 s%@datadir@%$datadir%g
3424 s%@sysconfdir@%$sysconfdir%g
3425 s%@sharedstatedir@%$sharedstatedir%g
3426 s%@localstatedir@%$localstatedir%g
3427 s%@libdir@%$libdir%g
3428 s%@includedir@%$includedir%g
3429 s%@oldincludedir@%$oldincludedir%g
3430 s%@infodir@%$infodir%g
3431 s%@mandir@%$mandir%g
3433 s%@NOTMAINT@%$NOTMAINT%g
3434 s%@MAKEINFO@%$MAKEINFO%g
3435 s%@BUILD_INFO@%$BUILD_INFO%g
3437 s%@HAVE_PERL@%$HAVE_PERL%g
3439 s%@host_alias@%$host_alias%g
3440 s%@host_cpu@%$host_cpu%g
3441 s%@host_vendor@%$host_vendor%g
3442 s%@host_os@%$host_os%g
3444 s%@build_alias@%$build_alias%g
3445 s%@build_cpu@%$build_cpu%g
3446 s%@build_vendor@%$build_vendor%g
3447 s%@build_os@%$build_os%g
3449 s%@RANLIB@%$RANLIB%g
3451 s%@ac_libiberty_warn_cflags@%$ac_libiberty_warn_cflags%g
3452 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3453 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3454 s%@INSTALL_DATA@%$INSTALL_DATA%g
3455 /@host_makefile_frag@/r $host_makefile_frag
3456 s%@host_makefile_frag@%%g
3459 s%@target_header_dir@%$target_header_dir%g
3460 s%@LIBOBJS@%$LIBOBJS%g
3461 s%@INSTALL_DEST@%$INSTALL_DEST%g
3466 cat >> $CONFIG_STATUS <<\EOF
3468 # Split the substitutions into bite-sized pieces for seds with
3469 # small command number limits, like on Digital OSF/1 and HP-UX.
3470 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3471 ac_file
=1 # Number of current file.
3472 ac_beg
=1 # First line for current file.
3473 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3476 while $ac_more_lines; do
3477 if test $ac_beg -gt 1; then
3478 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3480 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3482 if test ! -s conftest.s
$ac_file; then
3484 rm -f conftest.s
$ac_file
3486 if test -z "$ac_sed_cmds"; then
3487 ac_sed_cmds
="sed -f conftest.s$ac_file"
3489 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3491 ac_file
=`expr $ac_file + 1`
3493 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3496 if test -z "$ac_sed_cmds"; then
3501 cat >> $CONFIG_STATUS <<EOF
3503 CONFIG_FILES=\${CONFIG_FILES-"Makefile testsuite/Makefile"}
3505 cat >> $CONFIG_STATUS <<\EOF
3506 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3507 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3509 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3510 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3511 *) ac_file_in
="${ac_file}.in" ;;
3514 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3516 # Remove last slash and all that follows it. Not all systems have dirname.
3517 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3518 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3519 # The file is in a subdirectory.
3520 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3521 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3522 # A "../" for each directory in $ac_dir_suffix.
3523 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3525 ac_dir_suffix
= ac_dots
=
3528 case "$ac_given_srcdir" in
3530 if test -z "$ac_dots"; then top_srcdir
=.
3531 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3532 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3534 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3535 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3538 case "$ac_given_INSTALL" in
3539 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3540 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3543 echo creating
"$ac_file"
3545 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3547 *Makefile
*) ac_comsub
="1i\\
3548 # $configure_input" ;;
3552 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3554 s%@configure_input@%$configure_input%g
3555 s%@srcdir@%$srcdir%g
3556 s%@top_srcdir@%$top_srcdir%g
3557 s%@INSTALL@%$INSTALL%g
3558 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3562 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3563 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3565 # ac_d sets the value in "#define NAME VALUE" lines.
3566 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3567 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3570 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3571 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3572 ac_uB
='\([ ]\)%\1#\2define\3'
3575 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3576 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3577 ac_eB
='$%\1#\2define\3'
3581 if test "${CONFIG_HEADERS+set}" != set; then
3583 cat >> $CONFIG_STATUS <<EOF
3584 CONFIG_HEADERS="config.h:config.in"
3586 cat >> $CONFIG_STATUS <<\EOF
3588 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3589 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3591 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3592 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3593 *) ac_file_in
="${ac_file}.in" ;;
3596 echo creating
$ac_file
3598 rm -f conftest.frag conftest.
in conftest.out
3599 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3600 cat $ac_file_inputs > conftest.
in
3604 # Transform confdefs.h into a sed script conftest.vals that substitutes
3605 # the proper values into config.h.in to produce config.h. And first:
3606 # Protect against being on the right side of a sed subst in config.status.
3607 # Protect against being in an unquoted here document in config.status.
3609 cat > conftest.hdr
<<\EOF
3612 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3616 sed -n -f conftest.hdr confdefs.h > conftest.vals
3619 # This sed command replaces #undef with comments. This is necessary, for
3620 # example, in the case of _POSIX_SOURCE, which is predefined and required
3621 # on some systems where configure will not decide to define it.
3622 cat >> conftest.vals <<\EOF
3623 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3626 # Break up conftest.vals because some shells have a limit on
3627 # the size of here documents, and old seds have small limits too.
3632 ac_lines=`grep -c . conftest.vals
`
3633 # grep -c gives empty output for an empty file on some AIX systems.
3634 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3635 # Write a limited-size here document to conftest.frag.
3636 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3637 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3639 sed -f conftest.frag conftest.in > conftest.out
3641 mv conftest.out conftest.in
3643 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3645 mv conftest.tail conftest.vals
3649 cat >> $CONFIG_STATUS <<\EOF
3650 rm -f conftest.frag conftest.h
3651 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3652 cat conftest.in >> conftest.h
3654 if cmp -s $ac_file conftest.h 2>/dev/null; then
3655 echo "$ac_file is unchanged"
3658 # Remove last slash and all that follows it. Not all systems have dirname.
3659 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3660 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3661 # The file is in a subdirectory.
3662 test ! -d "$ac_dir" && mkdir "$ac_dir"
3665 mv conftest.h $ac_file
3670 cat >> $CONFIG_STATUS <<EOF
3674 with_target_subdir=${with_target_subdir}
3675 with_build_subdir=${with_build_subdir}
3676 with_multisubdir=${with_multisubdir}
3677 ac_configure_args="--enable-multilib ${ac_configure_args}"
3678 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3679 libiberty_topdir=${libiberty_topdir}
3682 cat >> $CONFIG_STATUS <<\EOF
3683 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3684 if test -n "$CONFIG_FILES"; then
3685 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
3686 # FIXME: We shouldn't need to set ac_file
3688 . ${libiberty_topdir}/config-ml.in
3693 chmod +x $CONFIG_STATUS
3694 rm -fr confdefs* $ac_clean_files
3695 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1