3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=no]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --enable-targets alternative target configurations"
27 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
29 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
31 --enable-maintainer-mode enable make rules and dependencies not useful
32 (and sometimes confusing) to the casual installer"
34 --disable-nls do not use Native Language Support"
36 --with-included-gettext use the GNU gettext library included here"
38 --enable-cgen-maint[=dir] build cgen generated files"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file=./config.cache
53 program_transform_name=s,x,x,
62 bindir='${exec_prefix}/bin'
63 sbindir='${exec_prefix}/sbin'
64 libexecdir='${exec_prefix}/libexec'
65 datadir='${prefix}/share'
66 sysconfdir='${prefix}/etc'
67 sharedstatedir='${prefix}/com'
68 localstatedir='${prefix}/var'
69 libdir='${exec_prefix}/lib'
70 includedir='${prefix}/include'
71 oldincludedir='/usr/include'
72 infodir='${prefix}/info'
73 mandir='${prefix}/man'
75 # Initialize some other variables.
78 SHELL=${CONFIG_SHELL-/bin/sh}
79 # Maximum number of lines to put in a shell here document.
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
94 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98 # Accept the important Cygnus configure options, so we can diagnose typos.
102 -bindir | --bindir | --bindi | --bind | --bin | --bi)
104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
105 bindir="$ac_optarg" ;;
107 -build | --build | --buil | --bui | --bu)
109 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
110 build="$ac_optarg" ;;
112 -cache-file | --cache-file | --cache-fil | --cache-fi \
113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
114 ac_prev=cache_file ;;
115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
117 cache_file="$ac_optarg" ;;
119 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
121 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
123 datadir="$ac_optarg" ;;
125 -disable-* | --disable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
134 -enable-* | --enable-*)
135 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
149 | --exec | --exe | --ex)
150 ac_prev=exec_prefix ;;
151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
153 | --exec=* | --exe=* | --ex=*)
154 exec_prefix="$ac_optarg" ;;
156 -gas | --gas | --ga | --g)
157 # Obsolete; use --with-gas.
160 -help | --help | --hel | --he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --site-file=FILE use FILE as the site file
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
216 -host | --host | --hos | --ho)
218 -host=* | --host=* | --hos=* | --ho=*)
221 -includedir | --includedir | --includedi | --included | --include \
222 | --includ | --inclu | --incl | --inc)
223 ac_prev=includedir ;;
224 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
225 | --includ=* | --inclu=* | --incl=* | --inc=*)
226 includedir="$ac_optarg" ;;
228 -infodir | --infodir | --infodi | --infod | --info | --inf)
230 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
231 infodir="$ac_optarg" ;;
233 -libdir | --libdir | --libdi | --libd)
235 -libdir=* | --libdir=* | --libdi=* | --libd=*)
236 libdir="$ac_optarg" ;;
238 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
239 | --libexe | --libex | --libe)
240 ac_prev=libexecdir ;;
241 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
242 | --libexe=* | --libex=* | --libe=*)
243 libexecdir="$ac_optarg" ;;
245 -localstatedir | --localstatedir | --localstatedi | --localstated \
246 | --localstate | --localstat | --localsta | --localst \
247 | --locals | --local | --loca | --loc | --lo)
248 ac_prev=localstatedir ;;
249 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
250 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
251 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
252 localstatedir="$ac_optarg" ;;
254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
257 mandir="$ac_optarg" ;;
260 # Obsolete; use --without-fp.
263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
273 | --oldin | --oldi | --old | --ol | --o)
274 ac_prev=oldincludedir ;;
275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
278 oldincludedir="$ac_optarg" ;;
280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
283 prefix="$ac_optarg" ;;
285 -program-prefix | --program-prefix | --program-prefi | --program-pref \
286 | --program-pre | --program-pr | --program-p)
287 ac_prev=program_prefix ;;
288 -program-prefix=* | --program-prefix=* | --program-prefi=* \
289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
290 program_prefix="$ac_optarg" ;;
292 -program-suffix | --program-suffix | --program-suffi | --program-suff \
293 | --program-suf | --program-su | --program-s)
294 ac_prev=program_suffix ;;
295 -program-suffix=* | --program-suffix=* | --program-suffi=* \
296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
297 program_suffix="$ac_optarg" ;;
299 -program-transform-name | --program-transform-name \
300 | --program-transform-nam | --program-transform-na \
301 | --program-transform-n | --program-transform- \
302 | --program-transform | --program-transfor \
303 | --program-transfo | --program-transf \
304 | --program-trans | --program-tran \
305 | --progr-tra | --program-tr | --program-t)
306 ac_prev=program_transform_name ;;
307 -program-transform-name=* | --program-transform-name=* \
308 | --program-transform-nam=* | --program-transform-na=* \
309 | --program-transform-n=* | --program-transform-=* \
310 | --program-transform=* | --program-transfor=* \
311 | --program-transfo=* | --program-transf=* \
312 | --program-trans=* | --program-tran=* \
313 | --progr-tra=* | --program-tr=* | --program-t=*)
314 program_transform_name="$ac_optarg" ;;
316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
317 | -silent | --silent | --silen | --sile | --sil)
320 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
322 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
324 sbindir="$ac_optarg" ;;
326 -sharedstatedir | --sharedstatedir | --sharedstatedi \
327 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
328 | --sharedst | --shareds | --shared | --share | --shar \
330 ac_prev=sharedstatedir ;;
331 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
332 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
333 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
335 sharedstatedir="$ac_optarg" ;;
337 -site | --site | --sit)
339 -site=* | --site=* | --sit=*)
342 -site-file | --site-file | --site-fil | --site-fi | --site-f)
344 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
345 sitefile="$ac_optarg" ;;
347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
350 srcdir="$ac_optarg" ;;
352 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
353 | --syscon | --sysco | --sysc | --sys | --sy)
354 ac_prev=sysconfdir ;;
355 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
356 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
357 sysconfdir="$ac_optarg" ;;
359 -target | --target | --targe | --targ | --tar | --ta | --t)
361 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
362 target="$ac_optarg" ;;
364 -v | -verbose | --verbose | --verbos | --verbo | --verb)
367 -version | --version | --versio | --versi | --vers)
368 echo "configure generated by autoconf version 2.13"
372 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* | --without-*)
385 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
394 # Obsolete; use --with-x.
397 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
398 | --x-incl | --x-inc | --x-in | --x-i)
399 ac_prev=x_includes ;;
400 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
401 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
402 x_includes="$ac_optarg" ;;
404 -x-libraries | --x-libraries | --x-librarie | --x-librari \
405 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
406 ac_prev=x_libraries ;;
407 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
408 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
409 x_libraries="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
459 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
460 | --no-cr | --no-c) ;;
461 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
462 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
486 ac_unique_file=z8k-dis.c
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted=yes
491 # Try the directory containing this script, then its parent.
493 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
496 if test ! -r $srcdir/$ac_unique_file; then
500 ac_srcdir_defaulted=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$sitefile"; then
513 if test -z "$CONFIG_SITE"; then
514 if test "x$prefix" != xNONE; then
515 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
517 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
521 CONFIG_SITE="$sitefile"
523 for ac_site_file in $CONFIG_SITE; do
524 if test -r "$ac_site_file"; then
525 echo "loading site script $ac_site_file"
530 if test -r "$cache_file"; then
531 echo "loading cache $cache_file"
534 echo "creating cache $cache_file"
539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
540 ac_cpp='$CPP $CPPFLAGS'
541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
543 cross_compiling=$ac_cv_prog_cc_cross
547 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
548 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
549 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
556 ac_n= ac_c='\c' ac_t=
562 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
563 if test -f $ac_dir/install-sh; then
565 ac_install_sh="$ac_aux_dir/install-sh -c"
567 elif test -f $ac_dir/install.sh; then
569 ac_install_sh="$ac_aux_dir/install.sh -c"
573 if test -z "$ac_aux_dir"; then
574 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
576 ac_config_guess=$ac_aux_dir/config.guess
577 ac_config_sub=$ac_aux_dir/config.sub
578 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
581 # Do some error checking and defaulting for the host and target type.
583 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
586 # 1. You are not allowed to specify --host, --target, and nonopt at the
588 # 2. Host defaults to nonopt.
589 # 3. If nonopt is not specified, then host defaults to the current host,
590 # as determined by config.guess.
591 # 4. Target and build default to nonopt.
592 # 5. If nonopt is not specified, then target and build default to host.
594 # The aliases save the names the user supplied, while $host etc.
595 # will get canonicalized.
596 case $host---$target---$nonopt in
597 NONE---*---* | *---NONE---* | *---*---NONE) ;;
598 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
602 # Make sure we can run config.sub.
603 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
604 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
607 echo $ac_n "checking host system type""... $ac_c" 1>&6
608 echo "configure:609: checking host system type" >&5
611 case "$host_alias" in
615 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
616 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
618 *) host_alias=$nonopt ;;
622 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
623 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
624 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
625 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
626 echo "$ac_t""$host" 1>&6
628 echo $ac_n "checking target system type""... $ac_c" 1>&6
629 echo "configure:630: checking target system type" >&5
632 case "$target_alias" in
635 NONE) target_alias=$host_alias ;;
636 *) target_alias=$nonopt ;;
640 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
641 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
642 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
643 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
644 echo "$ac_t""$target" 1>&6
646 echo $ac_n "checking build system type""... $ac_c" 1>&6
647 echo "configure:648: checking build system type" >&5
650 case "$build_alias" in
653 NONE) build_alias=$host_alias ;;
654 *) build_alias=$nonopt ;;
658 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
659 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
660 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
661 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
662 echo "$ac_t""$build" 1>&6
664 test "$host_alias" != "$target_alias" &&
665 test "$program_prefix$program_suffix$program_transform_name" = \
667 program_prefix=${target_alias}-
669 # Extract the first word of "gcc", so it can be a program name with args.
670 set dummy gcc; ac_word=$2
671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
672 echo "configure:673: checking for $ac_word" >&5
673 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
676 if test -n "$CC"; then
677 ac_cv_prog_CC="$CC" # Let the user override the test.
679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
681 for ac_dir in $ac_dummy; do
682 test -z "$ac_dir" && ac_dir=.
683 if test -f $ac_dir/$ac_word; then
692 if test -n "$CC"; then
693 echo "$ac_t""$CC" 1>&6
695 echo "$ac_t""no" 1>&6
698 if test -z "$CC"; then
699 # Extract the first word of "cc", so it can be a program name with args.
700 set dummy cc; ac_word=$2
701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
702 echo "configure:703: checking for $ac_word" >&5
703 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
704 echo $ac_n "(cached) $ac_c" 1>&6
706 if test -n "$CC"; then
707 ac_cv_prog_CC="$CC" # Let the user override the test.
709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
712 for ac_dir in $ac_dummy; do
713 test -z "$ac_dir" && ac_dir=.
714 if test -f $ac_dir/$ac_word; then
715 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
724 if test $ac_prog_rejected = yes; then
725 # We found a bogon in the path, so make sure we never use it.
726 set dummy $ac_cv_prog_CC
728 if test $# -gt 0; then
729 # We chose a different compiler from the bogus one.
730 # However, it has the same basename, so the bogon will be chosen
731 # first if we set CC to just the basename; use the full file name.
733 set dummy "$ac_dir/$ac_word" "$@"
741 if test -n "$CC"; then
742 echo "$ac_t""$CC" 1>&6
744 echo "$ac_t""no" 1>&6
747 if test -z "$CC"; then
750 # Extract the first word of "cl", so it can be a program name with args.
751 set dummy cl; ac_word=$2
752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
753 echo "configure:754: checking for $ac_word" >&5
754 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
755 echo $ac_n "(cached) $ac_c" 1>&6
757 if test -n "$CC"; then
758 ac_cv_prog_CC="$CC" # Let the user override the test.
760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
762 for ac_dir in $ac_dummy; do
763 test -z "$ac_dir" && ac_dir=.
764 if test -f $ac_dir/$ac_word; then
773 if test -n "$CC"; then
774 echo "$ac_t""$CC" 1>&6
776 echo "$ac_t""no" 1>&6
781 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
784 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
785 echo "configure:786: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
788 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
789 ac_cpp='$CPP $CPPFLAGS'
790 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
791 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
792 cross_compiling=$ac_cv_prog_cc_cross
794 cat > conftest.$ac_ext << EOF
796 #line 797 "configure"
797 #include "confdefs.h"
801 if { (eval echo configure:802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
802 ac_cv_prog_cc_works=yes
803 # If we can't run a trivial program, we are probably using a cross compiler.
804 if (./conftest; exit) 2>/dev/null; then
805 ac_cv_prog_cc_cross=no
807 ac_cv_prog_cc_cross=yes
810 echo "configure: failed program was:" >&5
811 cat conftest.$ac_ext >&5
812 ac_cv_prog_cc_works=no
816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
817 ac_cpp='$CPP $CPPFLAGS'
818 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
819 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
820 cross_compiling=$ac_cv_prog_cc_cross
822 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
823 if test $ac_cv_prog_cc_works = no; then
824 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
826 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
827 echo "configure:828: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
828 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
829 cross_compiling=$ac_cv_prog_cc_cross
831 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
832 echo "configure:833: checking whether we are using GNU C" >&5
833 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
836 cat > conftest.c <<EOF
841 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
848 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
850 if test $ac_cv_prog_gcc = yes; then
856 ac_test_CFLAGS="${CFLAGS+set}"
857 ac_save_CFLAGS="$CFLAGS"
859 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
860 echo "configure:861: checking whether ${CC-cc} accepts -g" >&5
861 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
862 echo $ac_n "(cached) $ac_c" 1>&6
864 echo 'void f(){}' > conftest.c
865 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
874 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
875 if test "$ac_test_CFLAGS" = set; then
876 CFLAGS="$ac_save_CFLAGS"
877 elif test $ac_cv_prog_cc_g = yes; then
878 if test "$GCC" = yes; then
884 if test "$GCC" = yes; then
891 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
892 echo "configure:893: checking for POSIXized ISC" >&5
893 if test -d /etc/conf/kconfig.d &&
894 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
896 echo "$ac_t""yes" 1>&6
897 ISC=yes # If later tests want to check for ISC.
898 cat >> confdefs.h <<\EOF
899 #define _POSIX_SOURCE 1
902 if test "$GCC" = yes; then
908 echo "$ac_t""no" 1>&6
913 # We currently only use the version number for the name of any shared
914 # library. For user convenience, we always use the same version
915 # number that BFD is using.
916 BFD_VERSION=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ ]//g' -e 's/^.*,\(.*\)).*$/\1/p'`
918 # Find a good install program. We prefer a C program (faster),
919 # so one script is as good as another. But avoid the broken or
920 # incompatible versions:
921 # SysV /etc/install, /usr/sbin/install
922 # SunOS /usr/etc/install
925 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
926 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
928 # ./install, which can be erroneously created by make from ./install.sh.
929 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
930 echo "configure:931: checking for a BSD compatible install" >&5
931 if test -z "$INSTALL"; then
932 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
933 echo $ac_n "(cached) $ac_c" 1>&6
935 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
936 for ac_dir in $PATH; do
937 # Account for people who put trailing slashes in PATH elements.
939 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
941 # OSF1 and SCO ODT 3.0 have their own names for install.
942 # Don't use installbsd from OSF since it installs stuff as root
944 for ac_prog in ginstall scoinst install; do
945 if test -f $ac_dir/$ac_prog; then
946 if test $ac_prog = install &&
947 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
948 # AIX install. It has an incompatible calling convention.
951 ac_cv_path_install="$ac_dir/$ac_prog -c"
962 if test "${ac_cv_path_install+set}" = set; then
963 INSTALL="$ac_cv_path_install"
965 # As a last resort, use the slow shell script. We don't cache a
966 # path for INSTALL within a source directory, because that will
967 # break other packages using the cache if that directory is
968 # removed, or if the path is relative.
969 INSTALL="$ac_install_sh"
972 echo "$ac_t""$INSTALL" 1>&6
974 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
975 # It thinks the first close brace ends the variable substitution.
976 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
978 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
980 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
982 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
983 echo "configure:984: checking whether build environment is sane" >&5
986 echo timestamp > conftestfile
987 # Do `set' in a subshell so we don't clobber the current shell's
988 # arguments. Must try -L first in case configure is actually a
989 # symlink; some systems play weird games with the mod time of symlinks
990 # (eg FreeBSD returns the mod time of the symlink's containing
993 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
994 if test "$*" = "X"; then
996 set X `ls -t $srcdir/configure conftestfile`
998 if test "$*" != "X $srcdir/configure conftestfile" \
999 && test "$*" != "X conftestfile $srcdir/configure"; then
1001 # If neither matched, then we have a broken ls. This can happen
1002 # if, for instance, CONFIG_SHELL is bash and it inherits a
1003 # broken ls alias from the environment. This has actually
1004 # happened. Such a system could not be considered "sane".
1005 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1006 alias in your environment" 1>&2; exit 1; }
1009 test "$2" = conftestfile
1015 { echo "configure: error: newly created file is older than distributed files!
1016 Check your system clock" 1>&2; exit 1; }
1019 echo "$ac_t""yes" 1>&6
1020 if test "$program_transform_name" = s,x,x,; then
1021 program_transform_name=
1023 # Double any \ or $. echo might interpret backslashes.
1024 cat <<\EOF_SED > conftestsed
1025 s,\\,\\\\,g; s,\$,$$,g
1027 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1030 test "$program_prefix" != NONE &&
1031 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1032 # Use a double $ so make ignores it.
1033 test "$program_suffix" != NONE &&
1034 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1036 # sed with no file args requires a program.
1037 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1039 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1040 echo "configure:1041: checking whether ${MAKE-make} sets \${MAKE}" >&5
1041 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1042 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1045 cat > conftestmake <<\EOF
1047 @echo 'ac_maketemp="${MAKE}"'
1049 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1050 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1051 if test -n "$ac_maketemp"; then
1052 eval ac_cv_prog_make_${ac_make}_set=yes
1054 eval ac_cv_prog_make_${ac_make}_set=no
1058 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1059 echo "$ac_t""yes" 1>&6
1062 echo "$ac_t""no" 1>&6
1063 SET_MAKE="MAKE=${MAKE-make}"
1069 VERSION=${BFD_VERSION}
1071 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1072 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1074 cat >> confdefs.h <<EOF
1075 #define PACKAGE "$PACKAGE"
1078 cat >> confdefs.h <<EOF
1079 #define VERSION "$VERSION"
1084 missing_dir=`cd $ac_aux_dir && pwd`
1085 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1086 echo "configure:1087: checking for working aclocal" >&5
1087 # Run test in a subshell; some versions of sh will print an error if
1088 # an executable is not found, even if stderr is redirected.
1089 # Redirect stdin to placate older versions of autoconf. Sigh.
1090 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1092 echo "$ac_t""found" 1>&6
1094 ACLOCAL="$missing_dir/missing aclocal"
1095 echo "$ac_t""missing" 1>&6
1098 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1099 echo "configure:1100: checking for working autoconf" >&5
1100 # Run test in a subshell; some versions of sh will print an error if
1101 # an executable is not found, even if stderr is redirected.
1102 # Redirect stdin to placate older versions of autoconf. Sigh.
1103 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1105 echo "$ac_t""found" 1>&6
1107 AUTOCONF="$missing_dir/missing autoconf"
1108 echo "$ac_t""missing" 1>&6
1111 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1112 echo "configure:1113: checking for working automake" >&5
1113 # Run test in a subshell; some versions of sh will print an error if
1114 # an executable is not found, even if stderr is redirected.
1115 # Redirect stdin to placate older versions of autoconf. Sigh.
1116 if (automake --version) < /dev/null > /dev/null 2>&1; then
1118 echo "$ac_t""found" 1>&6
1120 AUTOMAKE="$missing_dir/missing automake"
1121 echo "$ac_t""missing" 1>&6
1124 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1125 echo "configure:1126: checking for working autoheader" >&5
1126 # Run test in a subshell; some versions of sh will print an error if
1127 # an executable is not found, even if stderr is redirected.
1128 # Redirect stdin to placate older versions of autoconf. Sigh.
1129 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1130 AUTOHEADER=autoheader
1131 echo "$ac_t""found" 1>&6
1133 AUTOHEADER="$missing_dir/missing autoheader"
1134 echo "$ac_t""missing" 1>&6
1137 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1138 echo "configure:1139: checking for working makeinfo" >&5
1139 # Run test in a subshell; some versions of sh will print an error if
1140 # an executable is not found, even if stderr is redirected.
1141 # Redirect stdin to placate older versions of autoconf. Sigh.
1142 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1144 echo "$ac_t""found" 1>&6
1146 MAKEINFO="$missing_dir/missing makeinfo"
1147 echo "$ac_t""missing" 1>&6
1152 if test $host != $build; then
1153 ac_tool_prefix=${host_alias}-
1158 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1159 set dummy ${ac_tool_prefix}ar; ac_word=$2
1160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161 echo "configure:1162: checking for $ac_word" >&5
1162 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1165 if test -n "$AR"; then
1166 ac_cv_prog_AR="$AR" # Let the user override the test.
1168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1170 for ac_dir in $ac_dummy; do
1171 test -z "$ac_dir" && ac_dir=.
1172 if test -f $ac_dir/$ac_word; then
1173 ac_cv_prog_AR="${ac_tool_prefix}ar"
1178 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1182 if test -n "$AR"; then
1183 echo "$ac_t""$AR" 1>&6
1185 echo "$ac_t""no" 1>&6
1190 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1191 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1193 echo "configure:1194: checking for $ac_word" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1197 if test -n "$RANLIB"; then
1198 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1202 for ac_dir in $ac_dummy; do
1203 test -z "$ac_dir" && ac_dir=.
1204 if test -f $ac_dir/$ac_word; then
1205 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1212 RANLIB="$ac_cv_prog_RANLIB"
1213 if test -n "$RANLIB"; then
1214 echo "$ac_t""$RANLIB" 1>&6
1216 echo "$ac_t""no" 1>&6
1220 if test -z "$ac_cv_prog_RANLIB"; then
1221 if test -n "$ac_tool_prefix"; then
1222 # Extract the first word of "ranlib", so it can be a program name with args.
1223 set dummy ranlib; ac_word=$2
1224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1225 echo "configure:1226: checking for $ac_word" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 if test -n "$RANLIB"; then
1230 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1234 for ac_dir in $ac_dummy; do
1235 test -z "$ac_dir" && ac_dir=.
1236 if test -f $ac_dir/$ac_word; then
1237 ac_cv_prog_RANLIB="ranlib"
1242 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1245 RANLIB="$ac_cv_prog_RANLIB"
1246 if test -n "$RANLIB"; then
1247 echo "$ac_t""$RANLIB" 1>&6
1249 echo "$ac_t""no" 1>&6
1258 # Check whether --enable-shared or --disable-shared was given.
1259 if test "${enable_shared+set}" = set; then
1260 enableval="$enable_shared"
1261 p=${PACKAGE-default}
1262 case "$enableval" in
1263 yes) enable_shared=yes ;;
1264 no) enable_shared=no ;;
1267 # Look at the argument we got. We use all the common list separators.
1268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1269 for pkg in $enableval; do
1270 if test "X$pkg" = "X$p"; then
1282 # Check whether --enable-static or --disable-static was given.
1283 if test "${enable_static+set}" = set; then
1284 enableval="$enable_static"
1285 p=${PACKAGE-default}
1286 case "$enableval" in
1287 yes) enable_static=yes ;;
1288 no) enable_static=no ;;
1291 # Look at the argument we got. We use all the common list separators.
1292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1293 for pkg in $enableval; do
1294 if test "X$pkg" = "X$p"; then
1305 # Check whether --enable-fast-install or --disable-fast-install was given.
1306 if test "${enable_fast_install+set}" = set; then
1307 enableval="$enable_fast_install"
1308 p=${PACKAGE-default}
1309 case "$enableval" in
1310 yes) enable_fast_install=yes ;;
1311 no) enable_fast_install=no ;;
1313 enable_fast_install=no
1314 # Look at the argument we got. We use all the common list separators.
1315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1316 for pkg in $enableval; do
1317 if test "X$pkg" = "X$p"; then
1318 enable_fast_install=yes
1325 enable_fast_install=yes
1328 # Extract the first word of "ranlib", so it can be a program name with args.
1329 set dummy ranlib; ac_word=$2
1330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1331 echo "configure:1332: checking for $ac_word" >&5
1332 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1335 if test -n "$RANLIB"; then
1336 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1340 for ac_dir in $ac_dummy; do
1341 test -z "$ac_dir" && ac_dir=.
1342 if test -f $ac_dir/$ac_word; then
1343 ac_cv_prog_RANLIB="ranlib"
1348 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1351 RANLIB="$ac_cv_prog_RANLIB"
1352 if test -n "$RANLIB"; then
1353 echo "$ac_t""$RANLIB" 1>&6
1355 echo "$ac_t""no" 1>&6
1358 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1359 if test "${with_gnu_ld+set}" = set; then
1360 withval="$with_gnu_ld"
1361 test "$withval" = no || with_gnu_ld=yes
1367 if test "$ac_cv_prog_gcc" = yes; then
1368 # Check if gcc -print-prog-name=ld gives a path.
1369 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1370 echo "configure:1371: checking for ld used by GCC" >&5
1371 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1373 # Accept absolute paths.
1374 [\\/]* | [A-Za-z]:[\\/]*)
1375 re_direlt='/[^/][^/]*/\.\./'
1376 # Canonicalize the path of ld
1377 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1378 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1379 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1381 test -z "$LD" && LD="$ac_prog"
1384 # If it fails, then pretend we aren't using GCC.
1388 # If it is relative, then search for the first ld in PATH.
1392 elif test "$with_gnu_ld" = yes; then
1393 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1394 echo "configure:1395: checking for GNU ld" >&5
1396 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1397 echo "configure:1398: checking for non-GNU ld" >&5
1399 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1402 if test -z "$LD"; then
1403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1404 for ac_dir in $PATH; do
1405 test -z "$ac_dir" && ac_dir=.
1406 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1407 ac_cv_path_LD="$ac_dir/$ac_prog"
1408 # Check to see if the program is GNU ld. I'd rather use --version,
1409 # but apparently some GNU ld's only accept -v.
1410 # Break only if it was the GNU/non-GNU ld that we prefer.
1411 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1412 test "$with_gnu_ld" != no && break
1414 test "$with_gnu_ld" != yes && break
1420 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1425 if test -n "$LD"; then
1426 echo "$ac_t""$LD" 1>&6
1428 echo "$ac_t""no" 1>&6
1430 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1431 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1432 echo "configure:1433: checking if the linker ($LD) is GNU ld" >&5
1433 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1436 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1437 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1438 ac_cv_prog_gnu_ld=yes
1440 ac_cv_prog_gnu_ld=no
1444 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1447 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1448 echo "configure:1449: checking for BSD-compatible nm" >&5
1449 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1452 if test -n "$NM"; then
1453 # Let the user override the test.
1456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1457 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1458 test -z "$ac_dir" && ac_dir=.
1459 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1460 # Check to see if the nm accepts a BSD-compat flag.
1461 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1462 # nm: unknown option "B" ignored
1463 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1464 ac_cv_path_NM="$ac_dir/nm -B"
1466 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1467 ac_cv_path_NM="$ac_dir/nm -p"
1470 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1471 continue # so that we can try to find one that supports BSD flags
1476 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1481 echo "$ac_t""$NM" 1>&6
1483 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1484 echo "configure:1485: checking whether ln -s works" >&5
1485 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1486 echo $ac_n "(cached) $ac_c" 1>&6
1489 if ln -s X conftestdata 2>/dev/null
1492 ac_cv_prog_LN_S="ln -s"
1497 LN_S="$ac_cv_prog_LN_S"
1498 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1499 echo "$ac_t""yes" 1>&6
1501 echo "$ac_t""no" 1>&6
1505 # Check for any special flags to pass to ltconfig.
1506 libtool_flags="--cache-file=$cache_file"
1507 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1508 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1509 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1510 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1511 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1514 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1515 if test "${enable_libtool_lock+set}" = set; then
1516 enableval="$enable_libtool_lock"
1520 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1521 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1523 # Some flags need to be propagated to the compiler or linker for good
1527 # Find out which ABI we are using.
1528 echo '#line 1529 "configure"' > conftest.$ac_ext
1529 if { (eval echo configure:1530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1530 case "`/usr/bin/file conftest.o`" in
1546 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1547 SAVE_CFLAGS="$CFLAGS"
1548 CFLAGS="$CFLAGS -belf"
1549 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1550 echo "configure:1551: checking whether the C compiler needs -belf" >&5
1551 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1562 if { (eval echo configure:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1564 lt_cv_cc_needs_belf=yes
1566 echo "configure: failed program was:" >&5
1567 cat conftest.$ac_ext >&5
1569 lt_cv_cc_needs_belf=no
1574 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1575 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1576 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1577 CFLAGS="$SAVE_CFLAGS"
1585 # Save cache, so that ltconfig can load it
1586 cat > confcache <<\EOF
1587 # This file is a shell script that caches the results of configure
1588 # tests run on this system so they can be shared between configure
1589 # scripts and configure runs. It is not useful on other systems.
1590 # If it contains results you don't want to keep, you may remove or edit it.
1592 # By default, configure uses ./config.cache as the cache file,
1593 # creating it if it does not exist already. You can give configure
1594 # the --cache-file=FILE option to use a different cache file; that is
1595 # what configure does when it calls configure scripts in
1596 # subdirectories, so they share the cache.
1597 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1598 # config.status only pays attention to the cache file if you give it the
1599 # --recheck option to rerun configure.
1602 # The following way of writing the cache mishandles newlines in values,
1603 # but we know of no workaround that is simple, portable, and efficient.
1604 # So, don't put newlines in cache variables' values.
1605 # Ultrix sh set writes to stderr and can't be redirected directly,
1606 # and sets the high bit in the cache file unless we assign to the vars.
1608 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1610 # `set' does not quote correctly, so add quotes (double-quote substitution
1611 # turns \\\\ into \\, and sed turns \\ into \).
1613 -e "s/'/'\\\\''/g" \
1614 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1617 # `set' quotes correctly as required by POSIX, so do not add quotes.
1618 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1621 if cmp -s $cache_file confcache; then
1624 if test -w $cache_file; then
1625 echo "updating cache $cache_file"
1626 cat confcache > $cache_file
1628 echo "not updating unwritable cache $cache_file"
1634 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1635 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1636 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1637 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1638 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1639 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1640 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1641 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1643 # Reload cache, that may have been modified by ltconfig
1644 if test -r "$cache_file"; then
1645 echo "loading cache $cache_file"
1648 echo "creating cache $cache_file"
1653 # This can be used to rebuild libtool when needed
1654 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1656 # Always use our own libtool.
1657 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1659 # Redirect the config.log output again, so that the ltconfig log is not
1660 # clobbered by the next message.
1661 exec 5>>./config.log
1664 # Check whether --enable-targets or --disable-targets was given.
1665 if test "${enable_targets+set}" = set; then
1666 enableval="$enable_targets"
1667 case "${enableval}" in
1668 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1670 no) enable_targets= ;;
1671 *) enable_targets=$enableval ;;
1674 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1675 if test "${enable_commonbfdlib+set}" = set; then
1676 enableval="$enable_commonbfdlib"
1677 case "${enableval}" in
1678 yes) commonbfdlib=true ;;
1679 no) commonbfdlib=false ;;
1680 *) { echo "configure: error: bad value ${enableval} for opcodes commonbfdlib option" 1>&2; exit 1; } ;;
1684 build_warnings="-W -Wall"
1685 # Check whether --enable-build-warnings or --disable-build-warnings was given.
1686 if test "${enable_build_warnings+set}" = set; then
1687 enableval="$enable_build_warnings"
1688 case "${enableval}" in
1690 no) build_warnings="-w";;
1691 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
1692 build_warnings="${build_warnings} ${t}";;
1693 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
1694 build_warnings="${t} ${build_warnings}";;
1695 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
1697 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
1698 echo "Setting warning flags = $build_warnings" 6>&1
1702 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
1703 WARN_CFLAGS="${build_warnings}"
1711 if test -z "$target" ; then
1712 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1714 if test "$program_transform_name" = s,x,x,; then
1715 program_transform_name=
1717 # Double any \ or $. echo might interpret backslashes.
1718 cat <<\EOF_SED > conftestsed
1719 s,\\,\\\\,g; s,\$,$$,g
1721 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1724 test "$program_prefix" != NONE &&
1725 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1726 # Use a double $ so make ignores it.
1727 test "$program_suffix" != NONE &&
1728 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1730 # sed with no file args requires a program.
1731 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1734 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1735 echo "configure:1736: checking whether to enable maintainer-specific portions of Makefiles" >&5
1736 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1737 if test "${enable_maintainer_mode+set}" = set; then
1738 enableval="$enable_maintainer_mode"
1739 USE_MAINTAINER_MODE=$enableval
1741 USE_MAINTAINER_MODE=no
1744 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1747 if test $USE_MAINTAINER_MODE = yes; then
1748 MAINTAINER_MODE_TRUE=
1749 MAINTAINER_MODE_FALSE='#'
1751 MAINTAINER_MODE_TRUE='#'
1752 MAINTAINER_MODE_FALSE=
1754 MAINT=$MAINTAINER_MODE_TRUE
1757 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1758 echo "configure:1759: checking for Cygwin environment" >&5
1759 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1762 cat > conftest.$ac_ext <<EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1769 #define __CYGWIN__ __CYGWIN32__
1774 if { (eval echo configure:1775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1778 echo "configure: failed program was:" >&5
1779 cat conftest.$ac_ext >&5
1787 echo "$ac_t""$ac_cv_cygwin" 1>&6
1789 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1790 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1791 echo "configure:1792: checking for mingw32 environment" >&5
1792 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1795 cat > conftest.$ac_ext <<EOF
1796 #line 1797 "configure"
1797 #include "confdefs.h"
1803 if { (eval echo configure:1804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1807 echo "configure: failed program was:" >&5
1808 cat conftest.$ac_ext >&5
1816 echo "$ac_t""$ac_cv_mingw32" 1>&6
1818 test "$ac_cv_mingw32" = yes && MINGW32=yes
1821 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1822 echo "configure:1823: checking for executable suffix" >&5
1823 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1826 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1830 echo 'int main () { return 0; }' > conftest.$ac_ext
1832 if { (eval echo configure:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1833 for file in conftest.*; do
1835 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1836 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1840 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1843 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1848 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1849 echo "$ac_t""${ac_cv_exeext}" 1>&6
1853 # host-specific stuff:
1855 # Extract the first word of "gcc", so it can be a program name with args.
1856 set dummy gcc; ac_word=$2
1857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1858 echo "configure:1859: checking for $ac_word" >&5
1859 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1862 if test -n "$CC"; then
1863 ac_cv_prog_CC="$CC" # Let the user override the test.
1865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1867 for ac_dir in $ac_dummy; do
1868 test -z "$ac_dir" && ac_dir=.
1869 if test -f $ac_dir/$ac_word; then
1878 if test -n "$CC"; then
1879 echo "$ac_t""$CC" 1>&6
1881 echo "$ac_t""no" 1>&6
1884 if test -z "$CC"; then
1885 # Extract the first word of "cc", so it can be a program name with args.
1886 set dummy cc; ac_word=$2
1887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1888 echo "configure:1889: checking for $ac_word" >&5
1889 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1892 if test -n "$CC"; then
1893 ac_cv_prog_CC="$CC" # Let the user override the test.
1895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1898 for ac_dir in $ac_dummy; do
1899 test -z "$ac_dir" && ac_dir=.
1900 if test -f $ac_dir/$ac_word; then
1901 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1902 ac_prog_rejected=yes
1910 if test $ac_prog_rejected = yes; then
1911 # We found a bogon in the path, so make sure we never use it.
1912 set dummy $ac_cv_prog_CC
1914 if test $# -gt 0; then
1915 # We chose a different compiler from the bogus one.
1916 # However, it has the same basename, so the bogon will be chosen
1917 # first if we set CC to just the basename; use the full file name.
1919 set dummy "$ac_dir/$ac_word" "$@"
1927 if test -n "$CC"; then
1928 echo "$ac_t""$CC" 1>&6
1930 echo "$ac_t""no" 1>&6
1933 if test -z "$CC"; then
1934 case "`uname -s`" in
1936 # Extract the first word of "cl", so it can be a program name with args.
1937 set dummy cl; ac_word=$2
1938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1939 echo "configure:1940: checking for $ac_word" >&5
1940 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1943 if test -n "$CC"; then
1944 ac_cv_prog_CC="$CC" # Let the user override the test.
1946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1948 for ac_dir in $ac_dummy; do
1949 test -z "$ac_dir" && ac_dir=.
1950 if test -f $ac_dir/$ac_word; then
1959 if test -n "$CC"; then
1960 echo "$ac_t""$CC" 1>&6
1962 echo "$ac_t""no" 1>&6
1967 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1970 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1971 echo "configure:1972: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1974 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1975 ac_cpp='$CPP $CPPFLAGS'
1976 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1977 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1978 cross_compiling=$ac_cv_prog_cc_cross
1980 cat > conftest.$ac_ext << EOF
1982 #line 1983 "configure"
1983 #include "confdefs.h"
1987 if { (eval echo configure:1988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1988 ac_cv_prog_cc_works=yes
1989 # If we can't run a trivial program, we are probably using a cross compiler.
1990 if (./conftest; exit) 2>/dev/null; then
1991 ac_cv_prog_cc_cross=no
1993 ac_cv_prog_cc_cross=yes
1996 echo "configure: failed program was:" >&5
1997 cat conftest.$ac_ext >&5
1998 ac_cv_prog_cc_works=no
2002 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2005 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2006 cross_compiling=$ac_cv_prog_cc_cross
2008 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2009 if test $ac_cv_prog_cc_works = no; then
2010 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2012 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2013 echo "configure:2014: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2014 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2015 cross_compiling=$ac_cv_prog_cc_cross
2017 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2018 echo "configure:2019: checking whether we are using GNU C" >&5
2019 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 cat > conftest.c <<EOF
2027 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2034 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2036 if test $ac_cv_prog_gcc = yes; then
2042 ac_test_CFLAGS="${CFLAGS+set}"
2043 ac_save_CFLAGS="$CFLAGS"
2045 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2046 echo "configure:2047: checking whether ${CC-cc} accepts -g" >&5
2047 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2048 echo $ac_n "(cached) $ac_c" 1>&6
2050 echo 'void f(){}' > conftest.c
2051 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2060 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2061 if test "$ac_test_CFLAGS" = set; then
2062 CFLAGS="$ac_save_CFLAGS"
2063 elif test $ac_cv_prog_cc_g = yes; then
2064 if test "$GCC" = yes; then
2070 if test "$GCC" = yes; then
2079 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2080 echo "configure:2081: checking how to run the C preprocessor" >&5
2081 # On Suns, sometimes $CPP names a directory.
2082 if test -n "$CPP" && test -d "$CPP"; then
2085 if test -z "$CPP"; then
2086 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2087 echo $ac_n "(cached) $ac_c" 1>&6
2089 # This must be in double quotes, not single quotes, because CPP may get
2090 # substituted into the Makefile and "${CC-cc}" will confuse make.
2092 # On the NeXT, cc -E runs the code through the compiler's parser,
2093 # not just through cpp.
2094 cat > conftest.$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2101 { (eval echo configure:2102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2102 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2103 if test -z "$ac_err"; then
2107 echo "configure: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2110 CPP="${CC-cc} -E -traditional-cpp"
2111 cat > conftest.$ac_ext <<EOF
2112 #line 2113 "configure"
2113 #include "confdefs.h"
2117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2118 { (eval echo configure:2119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2120 if test -z "$ac_err"; then
2124 echo "configure: failed program was:" >&5
2125 cat conftest.$ac_ext >&5
2127 CPP="${CC-cc} -nologo -E"
2128 cat > conftest.$ac_ext <<EOF
2129 #line 2130 "configure"
2130 #include "confdefs.h"
2134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2135 { (eval echo configure:2136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2137 if test -z "$ac_err"; then
2141 echo "configure: failed program was:" >&5
2142 cat conftest.$ac_ext >&5
2151 ac_cv_prog_CPP="$CPP"
2153 CPP="$ac_cv_prog_CPP"
2155 ac_cv_prog_CPP="$CPP"
2157 echo "$ac_t""$CPP" 1>&6
2159 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2160 echo "configure:2161: checking for ANSI C header files" >&5
2161 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2164 cat > conftest.$ac_ext <<EOF
2165 #line 2166 "configure"
2166 #include "confdefs.h"
2172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2173 { (eval echo configure:2174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2175 if test -z "$ac_err"; then
2177 ac_cv_header_stdc=yes
2180 echo "configure: failed program was:" >&5
2181 cat conftest.$ac_ext >&5
2183 ac_cv_header_stdc=no
2187 if test $ac_cv_header_stdc = yes; then
2188 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2189 cat > conftest.$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2195 egrep "memchr" >/dev/null 2>&1; then
2199 ac_cv_header_stdc=no
2205 if test $ac_cv_header_stdc = yes; then
2206 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2207 cat > conftest.$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2213 egrep "free" >/dev/null 2>&1; then
2217 ac_cv_header_stdc=no
2223 if test $ac_cv_header_stdc = yes; then
2224 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2225 if test "$cross_compiling" = yes; then
2228 cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2232 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2233 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2235 int main () { int i; for (i = 0; i < 256; i++)
2236 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2240 if { (eval echo configure:2241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2244 echo "configure: failed program was:" >&5
2245 cat conftest.$ac_ext >&5
2247 ac_cv_header_stdc=no
2255 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2256 if test $ac_cv_header_stdc = yes; then
2257 cat >> confdefs.h <<\EOF
2258 #define STDC_HEADERS 1
2263 echo $ac_n "checking for working const""... $ac_c" 1>&6
2264 echo "configure:2265: checking for working const" >&5
2265 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2274 /* Ultrix mips cc rejects this. */
2275 typedef int charset[2]; const charset x;
2276 /* SunOS 4.1.1 cc rejects this. */
2277 char const *const *ccp;
2279 /* NEC SVR4.0.2 mips cc rejects this. */
2280 struct point {int x, y;};
2281 static struct point const zero = {0,0};
2282 /* AIX XL C 1.02.0.0 rejects this.
2283 It does not let you subtract one const X* pointer from another in an arm
2284 of an if-expression whose if-part is not a constant expression */
2285 const char *g = "string";
2286 ccp = &g + (g ? g-g : 0);
2287 /* HPUX 7.0 cc rejects these. */
2290 ccp = (char const *const *) p;
2291 { /* SCO 3.2v4 cc rejects this. */
2293 char const *s = 0 ? (char *) 0 : (char const *) 0;
2297 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2299 const int *foo = &x[0];
2302 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2303 typedef const int *iptr;
2307 { /* AIX XL C 1.02.0.0 rejects this saying
2308 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2309 struct s { int j; const int *ap[3]; };
2310 struct s *b; b->j = 5;
2312 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2318 if { (eval echo configure:2319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2322 echo "configure: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2330 echo "$ac_t""$ac_cv_c_const" 1>&6
2331 if test $ac_cv_c_const = no; then
2332 cat >> confdefs.h <<\EOF
2338 echo $ac_n "checking for inline""... $ac_c" 1>&6
2339 echo "configure:2340: checking for inline" >&5
2340 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2344 for ac_kw in inline __inline__ __inline; do
2345 cat > conftest.$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2353 if { (eval echo configure:2354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2355 ac_cv_c_inline=$ac_kw; break
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2365 echo "$ac_t""$ac_cv_c_inline" 1>&6
2366 case "$ac_cv_c_inline" in
2368 no) cat >> confdefs.h <<\EOF
2372 *) cat >> confdefs.h <<EOF
2373 #define inline $ac_cv_c_inline
2378 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2379 echo "configure:2380: checking for off_t" >&5
2380 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2383 cat > conftest.$ac_ext <<EOF
2384 #line 2385 "configure"
2385 #include "confdefs.h"
2386 #include <sys/types.h>
2392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2393 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2395 ac_cv_type_off_t=yes
2403 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2404 if test $ac_cv_type_off_t = no; then
2405 cat >> confdefs.h <<\EOF
2411 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2412 echo "configure:2413: checking for size_t" >&5
2413 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2416 cat > conftest.$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2419 #include <sys/types.h>
2425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2426 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2428 ac_cv_type_size_t=yes
2431 ac_cv_type_size_t=no
2436 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2437 if test $ac_cv_type_size_t = no; then
2438 cat >> confdefs.h <<\EOF
2439 #define size_t unsigned
2444 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2445 # for constant arguments. Useless!
2446 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2447 echo "configure:2448: checking for working alloca.h" >&5
2448 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2451 cat > conftest.$ac_ext <<EOF
2452 #line 2453 "configure"
2453 #include "confdefs.h"
2456 char *p = alloca(2 * sizeof(int));
2459 if { (eval echo configure:2460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2461 ac_cv_header_alloca_h=yes
2463 echo "configure: failed program was:" >&5
2464 cat conftest.$ac_ext >&5
2466 ac_cv_header_alloca_h=no
2471 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2472 if test $ac_cv_header_alloca_h = yes; then
2473 cat >> confdefs.h <<\EOF
2474 #define HAVE_ALLOCA_H 1
2479 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2480 echo "configure:2481: checking for alloca" >&5
2481 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2484 cat > conftest.$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2489 # define alloca __builtin_alloca
2492 # include <malloc.h>
2493 # define alloca _alloca
2496 # include <alloca.h>
2501 # ifndef alloca /* predefined by HP cc +Olibcalls */
2510 char *p = (char *) alloca(1);
2513 if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2515 ac_cv_func_alloca_works=yes
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2520 ac_cv_func_alloca_works=no
2525 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2526 if test $ac_cv_func_alloca_works = yes; then
2527 cat >> confdefs.h <<\EOF
2528 #define HAVE_ALLOCA 1
2533 if test $ac_cv_func_alloca_works = no; then
2534 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2535 # that cause trouble. Some versions do not even contain alloca or
2536 # contain a buggy version. If you still want to use their alloca,
2537 # use ar to extract alloca.o from them instead of compiling alloca.c.
2538 ALLOCA=alloca.${ac_objext}
2539 cat >> confdefs.h <<\EOF
2544 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2545 echo "configure:2546: checking whether alloca needs Cray hooks" >&5
2546 if eval "test \"`echo '$''{'ac_cv_os_cray'+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 #if defined(CRAY) && ! defined(CRAY2)
2559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2560 egrep "webecray" >/dev/null 2>&1; then
2571 echo "$ac_t""$ac_cv_os_cray" 1>&6
2572 if test $ac_cv_os_cray = yes; then
2573 for ac_func in _getb67 GETB67 getb67; do
2574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2575 echo "configure:2576: checking for $ac_func" >&5
2576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2577 echo $ac_n "(cached) $ac_c" 1>&6
2579 cat > conftest.$ac_ext <<EOF
2580 #line 2581 "configure"
2581 #include "confdefs.h"
2582 /* System header to define __stub macros and hopefully few prototypes,
2583 which can conflict with char $ac_func(); below. */
2585 /* Override any gcc2 internal prototype to avoid an error. */
2586 /* We use char because int might match the return type of a gcc2
2587 builtin and then its argument prototype would still apply. */
2592 /* The GNU C library defines this for functions which it implements
2593 to always fail with ENOSYS. Some functions are actually named
2594 something starting with __ and the normal name is an alias. */
2595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2603 if { (eval echo configure:2604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2605 eval "ac_cv_func_$ac_func=yes"
2607 echo "configure: failed program was:" >&5
2608 cat conftest.$ac_ext >&5
2610 eval "ac_cv_func_$ac_func=no"
2615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2616 echo "$ac_t""yes" 1>&6
2617 cat >> confdefs.h <<EOF
2618 #define CRAY_STACKSEG_END $ac_func
2623 echo "$ac_t""no" 1>&6
2629 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2630 echo "configure:2631: checking stack direction for C alloca" >&5
2631 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2634 if test "$cross_compiling" = yes; then
2635 ac_cv_c_stack_direction=0
2637 cat > conftest.$ac_ext <<EOF
2638 #line 2639 "configure"
2639 #include "confdefs.h"
2640 find_stack_direction ()
2642 static char *addr = 0;
2647 return find_stack_direction ();
2650 return (&dummy > addr) ? 1 : -1;
2654 exit (find_stack_direction() < 0);
2657 if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2659 ac_cv_c_stack_direction=1
2661 echo "configure: failed program was:" >&5
2662 cat conftest.$ac_ext >&5
2664 ac_cv_c_stack_direction=-1
2671 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2672 cat >> confdefs.h <<EOF
2673 #define STACK_DIRECTION $ac_cv_c_stack_direction
2678 for ac_hdr in unistd.h
2680 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2681 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2682 echo "configure:2683: checking for $ac_hdr" >&5
2683 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2686 cat > conftest.$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2692 { (eval echo configure:2693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2694 if test -z "$ac_err"; then
2696 eval "ac_cv_header_$ac_safe=yes"
2699 echo "configure: failed program was:" >&5
2700 cat conftest.$ac_ext >&5
2702 eval "ac_cv_header_$ac_safe=no"
2706 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2707 echo "$ac_t""yes" 1>&6
2708 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2709 cat >> confdefs.h <<EOF
2710 #define $ac_tr_hdr 1
2714 echo "$ac_t""no" 1>&6
2718 for ac_func in getpagesize
2720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2721 echo "configure:2722: checking for $ac_func" >&5
2722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2725 cat > conftest.$ac_ext <<EOF
2726 #line 2727 "configure"
2727 #include "confdefs.h"
2728 /* System header to define __stub macros and hopefully few prototypes,
2729 which can conflict with char $ac_func(); below. */
2731 /* Override any gcc2 internal prototype to avoid an error. */
2732 /* We use char because int might match the return type of a gcc2
2733 builtin and then its argument prototype would still apply. */
2738 /* The GNU C library defines this for functions which it implements
2739 to always fail with ENOSYS. Some functions are actually named
2740 something starting with __ and the normal name is an alias. */
2741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2749 if { (eval echo configure:2750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2751 eval "ac_cv_func_$ac_func=yes"
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2756 eval "ac_cv_func_$ac_func=no"
2761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2762 echo "$ac_t""yes" 1>&6
2763 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2764 cat >> confdefs.h <<EOF
2765 #define $ac_tr_func 1
2769 echo "$ac_t""no" 1>&6
2773 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2774 echo "configure:2775: checking for working mmap" >&5
2775 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2778 if test "$cross_compiling" = yes; then
2779 ac_cv_func_mmap_fixed_mapped=no
2781 cat > conftest.$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2785 /* Thanks to Mike Haertel and Jim Avera for this test.
2786 Here is a matrix of mmap possibilities:
2787 mmap private not fixed
2788 mmap private fixed at somewhere currently unmapped
2789 mmap private fixed at somewhere already mapped
2790 mmap shared not fixed
2791 mmap shared fixed at somewhere currently unmapped
2792 mmap shared fixed at somewhere already mapped
2793 For private mappings, we should verify that changes cannot be read()
2794 back from the file, nor mmap's back from the file at a different
2795 address. (There have been systems where private was not correctly
2796 implemented like the infamous i386 svr4.0, and systems where the
2797 VM page cache was not coherent with the filesystem buffer cache
2798 like early versions of FreeBSD and possibly contemporary NetBSD.)
2799 For shared mappings, we should conversely verify that changes get
2800 propogated back to all the places they're supposed to be.
2802 Grep wants private fixed already mapped.
2803 The main things grep needs to know about mmap are:
2804 * does it exist and is it safe to write into the mmap'd area
2805 * how to use it (BSD variants) */
2806 #include <sys/types.h>
2808 #include <sys/mman.h>
2810 /* This mess was copied from the GNU getpagesize.h. */
2811 #ifndef HAVE_GETPAGESIZE
2812 # ifdef HAVE_UNISTD_H
2813 # include <unistd.h>
2816 /* Assume that all systems that can run configure have sys/param.h. */
2817 # ifndef HAVE_SYS_PARAM_H
2818 # define HAVE_SYS_PARAM_H 1
2821 # ifdef _SC_PAGESIZE
2822 # define getpagesize() sysconf(_SC_PAGESIZE)
2823 # else /* no _SC_PAGESIZE */
2824 # ifdef HAVE_SYS_PARAM_H
2825 # include <sys/param.h>
2826 # ifdef EXEC_PAGESIZE
2827 # define getpagesize() EXEC_PAGESIZE
2828 # else /* no EXEC_PAGESIZE */
2830 # define getpagesize() NBPG * CLSIZE
2833 # endif /* no CLSIZE */
2834 # else /* no NBPG */
2836 # define getpagesize() NBPC
2837 # else /* no NBPC */
2839 # define getpagesize() PAGESIZE
2840 # endif /* PAGESIZE */
2841 # endif /* no NBPC */
2842 # endif /* no NBPG */
2843 # endif /* no EXEC_PAGESIZE */
2844 # else /* no HAVE_SYS_PARAM_H */
2845 # define getpagesize() 8192 /* punt totally */
2846 # endif /* no HAVE_SYS_PARAM_H */
2847 # endif /* no _SC_PAGESIZE */
2849 #endif /* no HAVE_GETPAGESIZE */
2852 extern "C" { void *malloc(unsigned); }
2860 char *data, *data2, *data3;
2864 pagesize = getpagesize();
2867 * First, make a file with some known garbage in it.
2869 data = malloc(pagesize);
2872 for (i = 0; i < pagesize; ++i)
2873 *(data + i) = rand();
2875 fd = creat("conftestmmap", 0600);
2878 if (write(fd, data, pagesize) != pagesize)
2883 * Next, try to mmap the file at a fixed address which
2884 * already has something else allocated at it. If we can,
2885 * also make sure that we see the same garbage.
2887 fd = open("conftestmmap", O_RDWR);
2890 data2 = malloc(2 * pagesize);
2893 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2894 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2895 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2897 for (i = 0; i < pagesize; ++i)
2898 if (*(data + i) != *(data2 + i))
2902 * Finally, make sure that changes to the mapped area
2903 * do not percolate back to the file as seen by read().
2904 * (This is a bug on some variants of i386 svr4.0.)
2906 for (i = 0; i < pagesize; ++i)
2907 *(data2 + i) = *(data2 + i) + 1;
2908 data3 = malloc(pagesize);
2911 if (read(fd, data3, pagesize) != pagesize)
2913 for (i = 0; i < pagesize; ++i)
2914 if (*(data + i) != *(data3 + i))
2917 unlink("conftestmmap");
2922 if { (eval echo configure:2923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2924 ac_cv_func_mmap_fixed_mapped=yes
2926 echo "configure: failed program was:" >&5
2927 cat conftest.$ac_ext >&5
2929 ac_cv_func_mmap_fixed_mapped=no
2936 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2937 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2938 cat >> confdefs.h <<\EOF
2945 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2946 unistd.h values.h sys/param.h
2948 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2949 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2950 echo "configure:2951: checking for $ac_hdr" >&5
2951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2952 echo $ac_n "(cached) $ac_c" 1>&6
2954 cat > conftest.$ac_ext <<EOF
2955 #line 2956 "configure"
2956 #include "confdefs.h"
2959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2960 { (eval echo configure:2961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2962 if test -z "$ac_err"; then
2964 eval "ac_cv_header_$ac_safe=yes"
2967 echo "configure: failed program was:" >&5
2968 cat conftest.$ac_ext >&5
2970 eval "ac_cv_header_$ac_safe=no"
2974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2975 echo "$ac_t""yes" 1>&6
2976 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2977 cat >> confdefs.h <<EOF
2978 #define $ac_tr_hdr 1
2982 echo "$ac_t""no" 1>&6
2986 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2987 __argz_count __argz_stringify __argz_next
2989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2990 echo "configure:2991: checking for $ac_func" >&5
2991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2992 echo $ac_n "(cached) $ac_c" 1>&6
2994 cat > conftest.$ac_ext <<EOF
2995 #line 2996 "configure"
2996 #include "confdefs.h"
2997 /* System header to define __stub macros and hopefully few prototypes,
2998 which can conflict with char $ac_func(); below. */
3000 /* Override any gcc2 internal prototype to avoid an error. */
3001 /* We use char because int might match the return type of a gcc2
3002 builtin and then its argument prototype would still apply. */
3007 /* The GNU C library defines this for functions which it implements
3008 to always fail with ENOSYS. Some functions are actually named
3009 something starting with __ and the normal name is an alias. */
3010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3018 if { (eval echo configure:3019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3020 eval "ac_cv_func_$ac_func=yes"
3022 echo "configure: failed program was:" >&5
3023 cat conftest.$ac_ext >&5
3025 eval "ac_cv_func_$ac_func=no"
3030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3031 echo "$ac_t""yes" 1>&6
3032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3033 cat >> confdefs.h <<EOF
3034 #define $ac_tr_func 1
3038 echo "$ac_t""no" 1>&6
3043 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3044 for ac_func in stpcpy
3046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3047 echo "configure:3048: checking for $ac_func" >&5
3048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3049 echo $ac_n "(cached) $ac_c" 1>&6
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 /* System header to define __stub macros and hopefully few prototypes,
3055 which can conflict with char $ac_func(); below. */
3057 /* Override any gcc2 internal prototype to avoid an error. */
3058 /* We use char because int might match the return type of a gcc2
3059 builtin and then its argument prototype would still apply. */
3064 /* The GNU C library defines this for functions which it implements
3065 to always fail with ENOSYS. Some functions are actually named
3066 something starting with __ and the normal name is an alias. */
3067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3075 if { (eval echo configure:3076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3077 eval "ac_cv_func_$ac_func=yes"
3079 echo "configure: failed program was:" >&5
3080 cat conftest.$ac_ext >&5
3082 eval "ac_cv_func_$ac_func=no"
3087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3088 echo "$ac_t""yes" 1>&6
3089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3090 cat >> confdefs.h <<EOF
3091 #define $ac_tr_func 1
3095 echo "$ac_t""no" 1>&6
3100 if test "${ac_cv_func_stpcpy}" = "yes"; then
3101 cat >> confdefs.h <<\EOF
3102 #define HAVE_STPCPY 1
3107 if test $ac_cv_header_locale_h = yes; then
3108 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3109 echo "configure:3110: checking for LC_MESSAGES" >&5
3110 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 cat > conftest.$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3121 if { (eval echo configure:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3123 am_cv_val_LC_MESSAGES=yes
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3128 am_cv_val_LC_MESSAGES=no
3133 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3134 if test $am_cv_val_LC_MESSAGES = yes; then
3135 cat >> confdefs.h <<\EOF
3136 #define HAVE_LC_MESSAGES 1
3141 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3142 echo "configure:3143: checking whether NLS is requested" >&5
3143 # Check whether --enable-nls or --disable-nls was given.
3144 if test "${enable_nls+set}" = set; then
3145 enableval="$enable_nls"
3151 echo "$ac_t""$USE_NLS" 1>&6
3154 USE_INCLUDED_LIBINTL=no
3156 if test "$USE_NLS" = "yes"; then
3157 cat >> confdefs.h <<\EOF
3158 #define ENABLE_NLS 1
3161 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3162 echo "configure:3163: checking whether included gettext is requested" >&5
3163 # Check whether --with-included-gettext or --without-included-gettext was given.
3164 if test "${with_included_gettext+set}" = set; then
3165 withval="$with_included_gettext"
3166 nls_cv_force_use_gnu_gettext=$withval
3168 nls_cv_force_use_gnu_gettext=no
3171 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3173 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3174 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3176 nls_cv_header_libgt=
3179 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3180 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3181 echo "configure:3182: checking for libintl.h" >&5
3182 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3183 echo $ac_n "(cached) $ac_c" 1>&6
3185 cat > conftest.$ac_ext <<EOF
3186 #line 3187 "configure"
3187 #include "confdefs.h"
3188 #include <libintl.h>
3190 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3191 { (eval echo configure:3192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3192 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3193 if test -z "$ac_err"; then
3195 eval "ac_cv_header_$ac_safe=yes"
3198 echo "configure: failed program was:" >&5
3199 cat conftest.$ac_ext >&5
3201 eval "ac_cv_header_$ac_safe=no"
3205 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3206 echo "$ac_t""yes" 1>&6
3207 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3208 echo "configure:3209: checking for gettext in libc" >&5
3209 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3210 echo $ac_n "(cached) $ac_c" 1>&6
3212 cat > conftest.$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3215 #include <libintl.h>
3217 return (int) gettext ("")
3220 if { (eval echo configure:3221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3222 gt_cv_func_gettext_libc=yes
3224 echo "configure: failed program was:" >&5
3225 cat conftest.$ac_ext >&5
3227 gt_cv_func_gettext_libc=no
3232 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3234 if test "$gt_cv_func_gettext_libc" != "yes"; then
3235 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3236 echo "configure:3237: checking for bindtextdomain in -lintl" >&5
3237 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3239 echo $ac_n "(cached) $ac_c" 1>&6
3241 ac_save_LIBS="$LIBS"
3243 cat > conftest.$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3246 /* Override any gcc2 internal prototype to avoid an error. */
3247 /* We use char because int might match the return type of a gcc2
3248 builtin and then its argument prototype would still apply. */
3249 char bindtextdomain();
3255 if { (eval echo configure:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3257 eval "ac_cv_lib_$ac_lib_var=yes"
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3262 eval "ac_cv_lib_$ac_lib_var=no"
3265 LIBS="$ac_save_LIBS"
3268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3269 echo "$ac_t""yes" 1>&6
3270 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3271 echo "configure:3272: checking for gettext in libintl" >&5
3272 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3273 echo $ac_n "(cached) $ac_c" 1>&6
3275 cat > conftest.$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3280 return (int) gettext ("")
3283 if { (eval echo configure:3284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3285 gt_cv_func_gettext_libintl=yes
3287 echo "configure: failed program was:" >&5
3288 cat conftest.$ac_ext >&5
3290 gt_cv_func_gettext_libintl=no
3295 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3297 echo "$ac_t""no" 1>&6
3302 if test "$gt_cv_func_gettext_libc" = "yes" \
3303 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3304 cat >> confdefs.h <<\EOF
3305 #define HAVE_GETTEXT 1
3308 # Extract the first word of "msgfmt", so it can be a program name with args.
3309 set dummy msgfmt; ac_word=$2
3310 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3311 echo "configure:3312: checking for $ac_word" >&5
3312 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3313 echo $ac_n "(cached) $ac_c" 1>&6
3317 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3321 for ac_dir in $PATH; do
3322 test -z "$ac_dir" && ac_dir=.
3323 if test -f $ac_dir/$ac_word; then
3324 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3325 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3331 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3335 MSGFMT="$ac_cv_path_MSGFMT"
3336 if test -n "$MSGFMT"; then
3337 echo "$ac_t""$MSGFMT" 1>&6
3339 echo "$ac_t""no" 1>&6
3341 if test "$MSGFMT" != "no"; then
3342 for ac_func in dcgettext
3344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3345 echo "configure:3346: checking for $ac_func" >&5
3346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3349 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3352 /* System header to define __stub macros and hopefully few prototypes,
3353 which can conflict with char $ac_func(); below. */
3355 /* Override any gcc2 internal prototype to avoid an error. */
3356 /* We use char because int might match the return type of a gcc2
3357 builtin and then its argument prototype would still apply. */
3362 /* The GNU C library defines this for functions which it implements
3363 to always fail with ENOSYS. Some functions are actually named
3364 something starting with __ and the normal name is an alias. */
3365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3373 if { (eval echo configure:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3375 eval "ac_cv_func_$ac_func=yes"
3377 echo "configure: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3380 eval "ac_cv_func_$ac_func=no"
3385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3386 echo "$ac_t""yes" 1>&6
3387 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3388 cat >> confdefs.h <<EOF
3389 #define $ac_tr_func 1
3393 echo "$ac_t""no" 1>&6
3397 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3398 set dummy gmsgfmt; ac_word=$2
3399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3400 echo "configure:3401: checking for $ac_word" >&5
3401 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3406 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3409 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3414 for ac_dir in $ac_dummy; do
3415 test -z "$ac_dir" && ac_dir=.
3416 if test -f $ac_dir/$ac_word; then
3417 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3422 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3426 GMSGFMT="$ac_cv_path_GMSGFMT"
3427 if test -n "$GMSGFMT"; then
3428 echo "$ac_t""$GMSGFMT" 1>&6
3430 echo "$ac_t""no" 1>&6
3433 # Extract the first word of "xgettext", so it can be a program name with args.
3434 set dummy xgettext; ac_word=$2
3435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3436 echo "configure:3437: checking for $ac_word" >&5
3437 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3442 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3446 for ac_dir in $PATH; do
3447 test -z "$ac_dir" && ac_dir=.
3448 if test -f $ac_dir/$ac_word; then
3449 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3450 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3456 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3460 XGETTEXT="$ac_cv_path_XGETTEXT"
3461 if test -n "$XGETTEXT"; then
3462 echo "$ac_t""$XGETTEXT" 1>&6
3464 echo "$ac_t""no" 1>&6
3467 cat > conftest.$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3472 extern int _nl_msg_cat_cntr;
3473 return _nl_msg_cat_cntr
3476 if { (eval echo configure:3477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3481 echo "configure: failed program was:" >&5
3482 cat conftest.$ac_ext >&5
3493 echo "$ac_t""no" 1>&6
3498 if test "$CATOBJEXT" = "NONE"; then
3499 nls_cv_use_gnu_gettext=yes
3503 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3504 INTLOBJS="\$(GETTOBJS)"
3505 # Extract the first word of "msgfmt", so it can be a program name with args.
3506 set dummy msgfmt; ac_word=$2
3507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3508 echo "configure:3509: checking for $ac_word" >&5
3509 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3510 echo $ac_n "(cached) $ac_c" 1>&6
3514 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3518 for ac_dir in $PATH; do
3519 test -z "$ac_dir" && ac_dir=.
3520 if test -f $ac_dir/$ac_word; then
3521 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3522 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3528 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3532 MSGFMT="$ac_cv_path_MSGFMT"
3533 if test -n "$MSGFMT"; then
3534 echo "$ac_t""$MSGFMT" 1>&6
3536 echo "$ac_t""no" 1>&6
3539 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3540 set dummy gmsgfmt; ac_word=$2
3541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3542 echo "configure:3543: checking for $ac_word" >&5
3543 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3548 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3551 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3556 for ac_dir in $ac_dummy; do
3557 test -z "$ac_dir" && ac_dir=.
3558 if test -f $ac_dir/$ac_word; then
3559 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3564 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3568 GMSGFMT="$ac_cv_path_GMSGFMT"
3569 if test -n "$GMSGFMT"; then
3570 echo "$ac_t""$GMSGFMT" 1>&6
3572 echo "$ac_t""no" 1>&6
3575 # Extract the first word of "xgettext", so it can be a program name with args.
3576 set dummy xgettext; ac_word=$2
3577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3578 echo "configure:3579: checking for $ac_word" >&5
3579 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3584 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3588 for ac_dir in $PATH; do
3589 test -z "$ac_dir" && ac_dir=.
3590 if test -f $ac_dir/$ac_word; then
3591 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3592 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3598 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3602 XGETTEXT="$ac_cv_path_XGETTEXT"
3603 if test -n "$XGETTEXT"; then
3604 echo "$ac_t""$XGETTEXT" 1>&6
3606 echo "$ac_t""no" 1>&6
3610 USE_INCLUDED_LIBINTL=yes
3614 INTLDEPS='$(top_builddir)/../intl/libintl.a'
3616 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3617 nls_cv_header_intl=libintl.h
3618 nls_cv_header_libgt=libgettext.h
3621 if test "$XGETTEXT" != ":"; then
3622 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3625 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3630 # We need to process the po/ directory.
3634 nls_cv_header_intl=libintl.h
3635 nls_cv_header_libgt=libgettext.h
3638 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3639 # because some of the sources are only built for this goal.
3640 if test "$PACKAGE" = gettext; then
3642 USE_INCLUDED_LIBINTL=yes
3645 for lang in $ALL_LINGUAS; do
3646 GMOFILES="$GMOFILES $lang.gmo"
3647 POFILES="$POFILES $lang.po"
3663 if test "x$CATOBJEXT" != "x"; then
3664 if test "x$ALL_LINGUAS" = "x"; then
3667 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3668 echo "configure:3669: checking for catalogs to be installed" >&5
3670 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3671 case "$ALL_LINGUAS" in
3672 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3675 LINGUAS=$NEW_LINGUAS
3676 echo "$ac_t""$LINGUAS" 1>&6
3679 if test -n "$LINGUAS"; then
3680 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3684 if test $ac_cv_header_locale_h = yes; then
3685 INCLUDE_LOCALE_H="#include <locale.h>"
3688 /* The system does not provide the header <locale.h>. Take care yourself. */"
3692 if test -f $srcdir/po2tbl.sed.in; then
3693 if test "$CATOBJEXT" = ".cat"; then
3694 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3695 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3696 echo "configure:3697: checking for linux/version.h" >&5
3697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3700 cat > conftest.$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3703 #include <linux/version.h>
3705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3706 { (eval echo configure:3707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3708 if test -z "$ac_err"; then
3710 eval "ac_cv_header_$ac_safe=yes"
3713 echo "configure: failed program was:" >&5
3714 cat conftest.$ac_ext >&5
3716 eval "ac_cv_header_$ac_safe=no"
3720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3721 echo "$ac_t""yes" 1>&6
3724 echo "$ac_t""no" 1>&6
3729 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
3731 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3732 $srcdir/po2tbl.sed.in > po2tbl.sed
3735 if test "$PACKAGE" = "gettext"; then
3745 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
3751 if test -d $srcdir/po; then
3752 test -d po || mkdir po
3753 if test "x$srcdir" != "x."; then
3754 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3755 posrcprefix="$srcdir/"
3757 posrcprefix="../$srcdir/"
3763 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3764 < $srcdir/po/POTFILES.in > po/POTFILES
3768 . ${srcdir}/../bfd/configure.host
3771 # Find a good install program. We prefer a C program (faster),
3772 # so one script is as good as another. But avoid the broken or
3773 # incompatible versions:
3774 # SysV /etc/install, /usr/sbin/install
3775 # SunOS /usr/etc/install
3776 # IRIX /sbin/install
3778 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3779 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3780 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3781 # ./install, which can be erroneously created by make from ./install.sh.
3782 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3783 echo "configure:3784: checking for a BSD compatible install" >&5
3784 if test -z "$INSTALL"; then
3785 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3788 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3789 for ac_dir in $PATH; do
3790 # Account for people who put trailing slashes in PATH elements.
3792 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3794 # OSF1 and SCO ODT 3.0 have their own names for install.
3795 # Don't use installbsd from OSF since it installs stuff as root
3797 for ac_prog in ginstall scoinst install; do
3798 if test -f $ac_dir/$ac_prog; then
3799 if test $ac_prog = install &&
3800 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3801 # AIX install. It has an incompatible calling convention.
3804 ac_cv_path_install="$ac_dir/$ac_prog -c"
3815 if test "${ac_cv_path_install+set}" = set; then
3816 INSTALL="$ac_cv_path_install"
3818 # As a last resort, use the slow shell script. We don't cache a
3819 # path for INSTALL within a source directory, because that will
3820 # break other packages using the cache if that directory is
3821 # removed, or if the path is relative.
3822 INSTALL="$ac_install_sh"
3825 echo "$ac_t""$INSTALL" 1>&6
3827 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3828 # It thinks the first close brace ends the variable substitution.
3829 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3831 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3833 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3836 for ac_hdr in string.h strings.h stdlib.h
3838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3840 echo "configure:3841: checking for $ac_hdr" >&5
3841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3842 echo $ac_n "(cached) $ac_c" 1>&6
3844 cat > conftest.$ac_ext <<EOF
3845 #line 3846 "configure"
3846 #include "confdefs.h"
3849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3850 { (eval echo configure:3851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3852 if test -z "$ac_err"; then
3854 eval "ac_cv_header_$ac_safe=yes"
3857 echo "configure: failed program was:" >&5
3858 cat conftest.$ac_ext >&5
3860 eval "ac_cv_header_$ac_safe=no"
3864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3865 echo "$ac_t""yes" 1>&6
3866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3867 cat >> confdefs.h <<EOF
3868 #define $ac_tr_hdr 1
3872 echo "$ac_t""no" 1>&6
3878 cgendir='$(srcdir)/../cgen'
3880 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
3881 if test "${enable_cgen_maint+set}" = set; then
3882 enableval="$enable_cgen_maint"
3883 case "${enableval}" in
3884 yes) cgen_maint=yes ;;
3885 no) cgen_maint=no ;;
3887 # argument is cgen install directory (not implemented yet).
3888 # Having a `share' directory might be more appropriate for the .scm,
3891 cgendir=${cgen_maint}/lib/cgen
3897 if test x${cgen_maint} = xyes; then
3899 CGEN_MAINT_FALSE='#'
3908 # Horrible hacks to build DLLs on Windows.
3913 if test "$enable_shared" = "yes"; then
3914 WIN32LDFLAGS="-no-undefined"
3915 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
3922 # target-specific stuff:
3924 # Canonicalize the secondary target names.
3925 if test -n "$enable_targets" ; then
3926 for targ in `echo $enable_targets | sed 's/,/ /g'`
3928 result=`$ac_config_sub $targ 2>/dev/null`
3929 if test -n "$result" ; then
3930 canon_targets="$canon_targets $result"
3932 # Allow targets that config.sub doesn't recognize, like "all".
3933 canon_targets="$canon_targets $targ"
3940 for targ in $target $canon_targets
3942 if test "x$targ" = "xall" ; then
3945 . $srcdir/../bfd/config.bfd
3946 selarchs="$selarchs $targ_archs"
3950 # Utility var, documents generic cgen support files.
3952 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
3954 # We don't do any links based on the target system, just makefile config.
3956 if test x${all_targets} = xfalse ; then
3958 # Target architecture .o files.
3961 for arch in $selarchs
3963 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
3964 archdefs="$archdefs -DARCH_$ad"
3966 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
3967 bfd_alliant_arch) ;;
3968 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
3969 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo" ;;
3970 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
3971 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
3973 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo" ;;
3974 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
3975 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
3976 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
3977 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
3978 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
3979 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
3980 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
3981 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
3982 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
3983 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
3984 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
3985 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
3986 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
3987 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
3988 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
3989 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
3990 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
3991 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
3992 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
3993 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
3994 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
3995 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
3996 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
3997 bfd_pyramid_arch) ;;
3999 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4000 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
4001 bfd_sh_arch) ta="$ta sh-dis.lo" ;;
4002 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
4004 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
4005 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
4006 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
4007 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4008 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4009 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
4010 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
4011 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
4013 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
4016 *) { echo "configure: error: *** unknown target architecture $arch" 1>&2; exit 1; } ;;
4020 if test $using_cgen = yes ; then
4021 ta="$ta $cgen_files"
4024 # Weed out duplicate .o files.
4034 # And duplicate -D flags.
4036 for i in $archdefs ; do
4046 else # all_targets is true
4048 BFD_MACHINES='$(ALL_MACHINES)'
4055 cat > confcache <<\EOF
4056 # This file is a shell script that caches the results of configure
4057 # tests run on this system so they can be shared between configure
4058 # scripts and configure runs. It is not useful on other systems.
4059 # If it contains results you don't want to keep, you may remove or edit it.
4061 # By default, configure uses ./config.cache as the cache file,
4062 # creating it if it does not exist already. You can give configure
4063 # the --cache-file=FILE option to use a different cache file; that is
4064 # what configure does when it calls configure scripts in
4065 # subdirectories, so they share the cache.
4066 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4067 # config.status only pays attention to the cache file if you give it the
4068 # --recheck option to rerun configure.
4071 # The following way of writing the cache mishandles newlines in values,
4072 # but we know of no workaround that is simple, portable, and efficient.
4073 # So, don't put newlines in cache variables' values.
4074 # Ultrix sh set writes to stderr and can't be redirected directly,
4075 # and sets the high bit in the cache file unless we assign to the vars.
4077 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4079 # `set' does not quote correctly, so add quotes (double-quote substitution
4080 # turns \\\\ into \\, and sed turns \\ into \).
4082 -e "s/'/'\\\\''/g" \
4083 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4086 # `set' quotes correctly as required by POSIX, so do not add quotes.
4087 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4090 if cmp -s $cache_file confcache; then
4093 if test -w $cache_file; then
4094 echo "updating cache $cache_file"
4095 cat confcache > $cache_file
4097 echo "not updating unwritable cache $cache_file"
4102 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4104 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4105 # Let make expand exec_prefix.
4106 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4108 # Any assignment to VPATH causes Sun make to only execute
4109 # the first set of double-colon rules, so remove it if not needed.
4110 # If there is a colon in the path, we need to keep it.
4111 if test "x$srcdir" = x.; then
4112 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4115 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4117 DEFS=-DHAVE_CONFIG_H
4119 # Without the "./", some shells look in PATH for config.status.
4120 : ${CONFIG_STATUS=./config.status}
4122 echo creating $CONFIG_STATUS
4123 rm -f $CONFIG_STATUS
4124 cat > $CONFIG_STATUS <<EOF
4126 # Generated automatically by configure.
4127 # Run this file to recreate the current configuration.
4128 # This directory was configured as follows,
4129 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4131 # $0 $ac_configure_args
4133 # Compiler output produced by configure, useful for debugging
4134 # configure, is in ./config.log if it exists.
4136 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4139 case "\$ac_option" in
4140 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4141 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4142 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4143 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4144 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4146 -help | --help | --hel | --he | --h)
4147 echo "\$ac_cs_usage"; exit 0 ;;
4148 *) echo "\$ac_cs_usage"; exit 1 ;;
4152 ac_given_srcdir=$srcdir
4153 ac_given_INSTALL="$INSTALL"
4155 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4157 cat >> $CONFIG_STATUS <<EOF
4159 # Protect against being on the right side of a sed subst in config.status.
4160 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4161 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4165 s%@CFLAGS@%$CFLAGS%g
4166 s%@CPPFLAGS@%$CPPFLAGS%g
4167 s%@CXXFLAGS@%$CXXFLAGS%g
4168 s%@FFLAGS@%$FFLAGS%g
4170 s%@LDFLAGS@%$LDFLAGS%g
4172 s%@exec_prefix@%$exec_prefix%g
4173 s%@prefix@%$prefix%g
4174 s%@program_transform_name@%$program_transform_name%g
4175 s%@bindir@%$bindir%g
4176 s%@sbindir@%$sbindir%g
4177 s%@libexecdir@%$libexecdir%g
4178 s%@datadir@%$datadir%g
4179 s%@sysconfdir@%$sysconfdir%g
4180 s%@sharedstatedir@%$sharedstatedir%g
4181 s%@localstatedir@%$localstatedir%g
4182 s%@libdir@%$libdir%g
4183 s%@includedir@%$includedir%g
4184 s%@oldincludedir@%$oldincludedir%g
4185 s%@infodir@%$infodir%g
4186 s%@mandir@%$mandir%g
4188 s%@host_alias@%$host_alias%g
4189 s%@host_cpu@%$host_cpu%g
4190 s%@host_vendor@%$host_vendor%g
4191 s%@host_os@%$host_os%g
4192 s%@target@%$target%g
4193 s%@target_alias@%$target_alias%g
4194 s%@target_cpu@%$target_cpu%g
4195 s%@target_vendor@%$target_vendor%g
4196 s%@target_os@%$target_os%g
4198 s%@build_alias@%$build_alias%g
4199 s%@build_cpu@%$build_cpu%g
4200 s%@build_vendor@%$build_vendor%g
4201 s%@build_os@%$build_os%g
4203 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4204 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4205 s%@INSTALL_DATA@%$INSTALL_DATA%g
4206 s%@PACKAGE@%$PACKAGE%g
4207 s%@VERSION@%$VERSION%g
4208 s%@ACLOCAL@%$ACLOCAL%g
4209 s%@AUTOCONF@%$AUTOCONF%g
4210 s%@AUTOMAKE@%$AUTOMAKE%g
4211 s%@AUTOHEADER@%$AUTOHEADER%g
4212 s%@MAKEINFO@%$MAKEINFO%g
4213 s%@SET_MAKE@%$SET_MAKE%g
4215 s%@RANLIB@%$RANLIB%g
4217 s%@LIBTOOL@%$LIBTOOL%g
4218 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
4219 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4220 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4222 s%@EXEEXT@%$EXEEXT%g
4224 s%@ALLOCA@%$ALLOCA%g
4225 s%@USE_NLS@%$USE_NLS%g
4226 s%@MSGFMT@%$MSGFMT%g
4227 s%@GMSGFMT@%$GMSGFMT%g
4228 s%@XGETTEXT@%$XGETTEXT%g
4229 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4230 s%@CATALOGS@%$CATALOGS%g
4231 s%@CATOBJEXT@%$CATOBJEXT%g
4232 s%@DATADIRNAME@%$DATADIRNAME%g
4233 s%@GMOFILES@%$GMOFILES%g
4234 s%@INSTOBJEXT@%$INSTOBJEXT%g
4235 s%@INTLDEPS@%$INTLDEPS%g
4236 s%@INTLLIBS@%$INTLLIBS%g
4237 s%@INTLOBJS@%$INTLOBJS%g
4238 s%@POFILES@%$POFILES%g
4240 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4242 s%@GT_YES@%$GT_YES%g
4243 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4245 s%@HDEFINES@%$HDEFINES%g
4246 s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g
4247 s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g
4248 s%@cgendir@%$cgendir%g
4249 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
4250 s%@WIN32LIBADD@%$WIN32LIBADD%g
4251 s%@archdefs@%$archdefs%g
4252 s%@BFD_MACHINES@%$BFD_MACHINES%g
4257 cat >> $CONFIG_STATUS <<\EOF
4259 # Split the substitutions into bite-sized pieces for seds with
4260 # small command number limits, like on Digital OSF/1 and HP-UX.
4261 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4262 ac_file=1 # Number of current file.
4263 ac_beg=1 # First line for current file.
4264 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4267 while $ac_more_lines; do
4268 if test $ac_beg -gt 1; then
4269 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4271 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4273 if test ! -s conftest.s$ac_file; then
4275 rm -f conftest.s$ac_file
4277 if test -z "$ac_sed_cmds"; then
4278 ac_sed_cmds="sed -f conftest.s$ac_file"
4280 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4282 ac_file=`expr $ac_file + 1`
4284 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4287 if test -z "$ac_sed_cmds"; then
4292 cat >> $CONFIG_STATUS <<EOF
4294 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4296 cat >> $CONFIG_STATUS <<\EOF
4297 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4300 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4301 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4302 *) ac_file_in="${ac_file}.in" ;;
4305 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4307 # Remove last slash and all that follows it. Not all systems have dirname.
4308 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4309 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4310 # The file is in a subdirectory.
4311 test ! -d "$ac_dir" && mkdir "$ac_dir"
4312 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4313 # A "../" for each directory in $ac_dir_suffix.
4314 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4316 ac_dir_suffix= ac_dots=
4319 case "$ac_given_srcdir" in
4321 if test -z "$ac_dots"; then top_srcdir=.
4322 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4323 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4325 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4326 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4329 case "$ac_given_INSTALL" in
4330 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4331 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4334 echo creating "$ac_file"
4336 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4338 *Makefile*) ac_comsub="1i\\
4339 # $configure_input" ;;
4343 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4345 s%@configure_input@%$configure_input%g
4346 s%@srcdir@%$srcdir%g
4347 s%@top_srcdir@%$top_srcdir%g
4348 s%@INSTALL@%$INSTALL%g
4349 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4353 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4354 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4356 # ac_d sets the value in "#define NAME VALUE" lines.
4357 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4358 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4361 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4362 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4363 ac_uB='\([ ]\)%\1#\2define\3'
4366 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4367 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4368 ac_eB='$%\1#\2define\3'
4372 if test "${CONFIG_HEADERS+set}" != set; then
4374 cat >> $CONFIG_STATUS <<EOF
4375 CONFIG_HEADERS="config.h:config.in"
4377 cat >> $CONFIG_STATUS <<\EOF
4379 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4380 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4382 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4383 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4384 *) ac_file_in="${ac_file}.in" ;;
4387 echo creating $ac_file
4389 rm -f conftest.frag conftest.in conftest.out
4390 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4391 cat $ac_file_inputs > conftest.in
4395 # Transform confdefs.h into a sed script conftest.vals that substitutes
4396 # the proper values into config.h.in to produce config.h. And first:
4397 # Protect against being on the right side of a sed subst in config.status.
4398 # Protect against being in an unquoted here document in config.status.
4400 cat > conftest.hdr <<\EOF
4403 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4407 sed -n -f conftest.hdr confdefs.h > conftest.vals
4410 # This sed command replaces #undef with comments. This is necessary, for
4411 # example, in the case of _POSIX_SOURCE, which is predefined and required
4412 # on some systems where configure will not decide to define it.
4413 cat >> conftest.vals <<\EOF
4414 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4417 # Break up conftest.vals because some shells have a limit on
4418 # the size of here documents, and old seds have small limits too.
4423 ac_lines=`grep -c . conftest.vals`
4424 # grep -c gives empty output for an empty file on some AIX systems.
4425 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4426 # Write a limited-size here document to conftest.frag.
4427 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4428 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4430 sed -f conftest.frag conftest.in > conftest.out
4432 mv conftest.out conftest.in
4434 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4436 mv conftest.tail conftest.vals
4440 cat >> $CONFIG_STATUS <<\EOF
4441 rm -f conftest.frag conftest.h
4442 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4443 cat conftest.in >> conftest.h
4445 if cmp -s $ac_file conftest.h 2>/dev/null; then
4446 echo "$ac_file is unchanged"
4449 # Remove last slash and all that follows it. Not all systems have dirname.
4450 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4451 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4452 # The file is in a subdirectory.
4453 test ! -d "$ac_dir" && mkdir "$ac_dir"
4456 mv conftest.h $ac_file
4461 cat >> $CONFIG_STATUS <<EOF
4465 cat >> $CONFIG_STATUS <<\EOF
4466 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4467 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4470 chmod +x $CONFIG_STATUS
4471 rm -fr confdefs* $ac_clean_files
4472 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1