source: trunk/src/binutils/ld/configure@ 610

Last change on this file since 610 was 101, checked in by bird, 22 years ago

Regenerated configure scripts.

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 158.7 KB
Line 
1#! /bin/sh
2
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.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
16ac_help="$ac_help
17 --enable-static[=PKGS] build static libraries [default=yes]"
18ac_help="$ac_help
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22ac_help="$ac_help
23 --disable-libtool-lock avoid locking (might break parallel builds)"
24ac_help="$ac_help
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
26ac_help="$ac_help
27 --enable-targets alternative target configurations"
28ac_help="$ac_help
29 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
30ac_help="$ac_help
31 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
32ac_help="$ac_help
33 --disable-nls do not use Native Language Support"
34ac_help="$ac_help
35 --with-included-gettext use the GNU gettext library included here"
36ac_help="$ac_help
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
39
40# Initialize some variables set by options.
41# The variables have the same names as the options, with
42# dashes changed to underlines.
43build=NONE
44cache_file=./config.cache
45exec_prefix=NONE
46host=NONE
47no_create=
48nonopt=NONE
49no_recursion=
50prefix=NONE
51program_prefix=NONE
52program_suffix=NONE
53program_transform_name=s,x,x,
54silent=
55site=
56srcdir=
57target=NONE
58verbose=
59x_includes=NONE
60x_libraries=NONE
61bindir='${exec_prefix}/bin'
62sbindir='${exec_prefix}/sbin'
63libexecdir='${exec_prefix}/libexec'
64datadir='${prefix}/share'
65sysconfdir='${prefix}/etc'
66sharedstatedir='${prefix}/com'
67localstatedir='${prefix}/var'
68libdir='${exec_prefix}/lib'
69includedir='${prefix}/include'
70oldincludedir='/usr/include'
71infodir='${prefix}/info'
72mandir='${prefix}/man'
73
74# Initialize some other variables.
75subdirs=
76MFLAGS= MAKEFLAGS=
77SHELL=${CONFIG_SHELL-/bin/sh}
78# Maximum number of lines to put in a shell here document.
79ac_max_here_lines=12
80
81ac_prev=
82for ac_option
83do
84
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
88 ac_prev=
89 continue
90 fi
91
92 case "$ac_option" in
93 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 *) ac_optarg= ;;
95 esac
96
97 # Accept the important Cygnus configure options, so we can diagnose typos.
98
99 case "$ac_option" in
100
101 -bindir | --bindir | --bindi | --bind | --bin | --bi)
102 ac_prev=bindir ;;
103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
104 bindir="$ac_optarg" ;;
105
106 -build | --build | --buil | --bui | --bu)
107 ac_prev=build ;;
108 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
109 build="$ac_optarg" ;;
110
111 -cache-file | --cache-file | --cache-fil | --cache-fi \
112 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
113 ac_prev=cache_file ;;
114 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
115 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
116 cache_file="$ac_optarg" ;;
117
118 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
119 ac_prev=datadir ;;
120 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
121 | --da=*)
122 datadir="$ac_optarg" ;;
123
124 -disable-* | --disable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 fi
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
132
133 -enable-* | --enable-*)
134 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 fi
139 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 case "$ac_option" in
141 *=*) ;;
142 *) ac_optarg=yes ;;
143 esac
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
145
146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
148 | --exec | --exe | --ex)
149 ac_prev=exec_prefix ;;
150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
152 | --exec=* | --exe=* | --ex=*)
153 exec_prefix="$ac_optarg" ;;
154
155 -gas | --gas | --ga | --g)
156 # Obsolete; use --with-gas.
157 with_gas=yes ;;
158
159 -help | --help | --hel | --he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
162 cat << EOF
163Usage: configure [options] [host]
164Options: [defaults in brackets after descriptions]
165Configuration:
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
173 [$ac_default_prefix]
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
175 [same as prefix]
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
180 [PREFIX/share]
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
183 [PREFIX/com]
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
195EOF
196 cat << EOF
197Host type:
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
208EOF
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
211 fi
212 exit 0 ;;
213
214 -host | --host | --hos | --ho)
215 ac_prev=host ;;
216 -host=* | --host=* | --hos=* | --ho=*)
217 host="$ac_optarg" ;;
218
219 -includedir | --includedir | --includedi | --included | --include \
220 | --includ | --inclu | --incl | --inc)
221 ac_prev=includedir ;;
222 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
223 | --includ=* | --inclu=* | --incl=* | --inc=*)
224 includedir="$ac_optarg" ;;
225
226 -infodir | --infodir | --infodi | --infod | --info | --inf)
227 ac_prev=infodir ;;
228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
229 infodir="$ac_optarg" ;;
230
231 -libdir | --libdir | --libdi | --libd)
232 ac_prev=libdir ;;
233 -libdir=* | --libdir=* | --libdi=* | --libd=*)
234 libdir="$ac_optarg" ;;
235
236 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
237 | --libexe | --libex | --libe)
238 ac_prev=libexecdir ;;
239 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
240 | --libexe=* | --libex=* | --libe=*)
241 libexecdir="$ac_optarg" ;;
242
243 -localstatedir | --localstatedir | --localstatedi | --localstated \
244 | --localstate | --localstat | --localsta | --localst \
245 | --locals | --local | --loca | --loc | --lo)
246 ac_prev=localstatedir ;;
247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
248 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
249 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
250 localstatedir="$ac_optarg" ;;
251
252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
253 ac_prev=mandir ;;
254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
255 mandir="$ac_optarg" ;;
256
257 -nfp | --nfp | --nf)
258 # Obsolete; use --without-fp.
259 with_fp=no ;;
260
261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
262 | --no-cr | --no-c)
263 no_create=yes ;;
264
265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267 no_recursion=yes ;;
268
269 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
270 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
271 | --oldin | --oldi | --old | --ol | --o)
272 ac_prev=oldincludedir ;;
273 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
274 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
275 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
276 oldincludedir="$ac_optarg" ;;
277
278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
279 ac_prev=prefix ;;
280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
281 prefix="$ac_optarg" ;;
282
283 -program-prefix | --program-prefix | --program-prefi | --program-pref \
284 | --program-pre | --program-pr | --program-p)
285 ac_prev=program_prefix ;;
286 -program-prefix=* | --program-prefix=* | --program-prefi=* \
287 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
288 program_prefix="$ac_optarg" ;;
289
290 -program-suffix | --program-suffix | --program-suffi | --program-suff \
291 | --program-suf | --program-su | --program-s)
292 ac_prev=program_suffix ;;
293 -program-suffix=* | --program-suffix=* | --program-suffi=* \
294 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
295 program_suffix="$ac_optarg" ;;
296
297 -program-transform-name | --program-transform-name \
298 | --program-transform-nam | --program-transform-na \
299 | --program-transform-n | --program-transform- \
300 | --program-transform | --program-transfor \
301 | --program-transfo | --program-transf \
302 | --program-trans | --program-tran \
303 | --progr-tra | --program-tr | --program-t)
304 ac_prev=program_transform_name ;;
305 -program-transform-name=* | --program-transform-name=* \
306 | --program-transform-nam=* | --program-transform-na=* \
307 | --program-transform-n=* | --program-transform-=* \
308 | --program-transform=* | --program-transfor=* \
309 | --program-transfo=* | --program-transf=* \
310 | --program-trans=* | --program-tran=* \
311 | --progr-tra=* | --program-tr=* | --program-t=*)
312 program_transform_name="$ac_optarg" ;;
313
314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
315 | -silent | --silent | --silen | --sile | --sil)
316 silent=yes ;;
317
318 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
319 ac_prev=sbindir ;;
320 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
321 | --sbi=* | --sb=*)
322 sbindir="$ac_optarg" ;;
323
324 -sharedstatedir | --sharedstatedir | --sharedstatedi \
325 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
326 | --sharedst | --shareds | --shared | --share | --shar \
327 | --sha | --sh)
328 ac_prev=sharedstatedir ;;
329 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
330 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
331 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
332 | --sha=* | --sh=*)
333 sharedstatedir="$ac_optarg" ;;
334
335 -site | --site | --sit)
336 ac_prev=site ;;
337 -site=* | --site=* | --sit=*)
338 site="$ac_optarg" ;;
339
340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341 ac_prev=srcdir ;;
342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
343 srcdir="$ac_optarg" ;;
344
345 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
346 | --syscon | --sysco | --sysc | --sys | --sy)
347 ac_prev=sysconfdir ;;
348 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
349 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
350 sysconfdir="$ac_optarg" ;;
351
352 -target | --target | --targe | --targ | --tar | --ta | --t)
353 ac_prev=target ;;
354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
355 target="$ac_optarg" ;;
356
357 -v | -verbose | --verbose | --verbos | --verbo | --verb)
358 verbose=yes ;;
359
360 -version | --version | --versio | --versi | --vers)
361 echo "configure generated by autoconf version 2.13"
362 exit 0 ;;
363
364 -with-* | --with-*)
365 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 fi
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 case "$ac_option" in
372 *=*) ;;
373 *) ac_optarg=yes ;;
374 esac
375 eval "with_${ac_package}='$ac_optarg'" ;;
376
377 -without-* | --without-*)
378 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 fi
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
385
386 --x)
387 # Obsolete; use --with-x.
388 with_x=yes ;;
389
390 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
391 | --x-incl | --x-inc | --x-in | --x-i)
392 ac_prev=x_includes ;;
393 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
394 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
395 x_includes="$ac_optarg" ;;
396
397 -x-libraries | --x-libraries | --x-librarie | --x-librari \
398 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
399 ac_prev=x_libraries ;;
400 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
401 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
402 x_libraries="$ac_optarg" ;;
403
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405 ;;
406
407 *)
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 fi
411 if test "x$nonopt" != xNONE; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413 fi
414 nonopt="$ac_option"
415 ;;
416
417 esac
418done
419
420if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
422fi
423
424trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425
426# File descriptor usage:
427# 0 standard input
428# 1 file creation
429# 2 errors and warnings
430# 3 some systems may open it to /dev/tty
431# 4 used on the Kubota Titan
432# 6 checking for... messages and results
433# 5 compiler messages saved in config.log
434if test "$silent" = yes; then
435 exec 6>/dev/null
436else
437 exec 6>&1
438fi
439exec 5>./config.log
440
441echo "\
442This file contains any messages produced by compilers while
443running configure, to aid debugging if configure makes a mistake.
444" 1>&5
445
446# Strip out --no-create and --no-recursion so they do not pile up.
447# Also quote any args containing shell metacharacters.
448ac_configure_args=
449for ac_arg
450do
451 case "$ac_arg" in
452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453 | --no-cr | --no-c) ;;
454 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
455 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
459 esac
460done
461
462# NLS nuisances.
463# Only set these to C if already set. These must not be set unconditionally
464# because not all systems understand e.g. LANG=C (notably SCO).
465# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466# Non-C LC_CTYPE values break the ctype check.
467if test "${LANG+set}" = set; then LANG=C; export LANG; fi
468if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
469if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
470if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
471
472# confdefs.h avoids OS command line length limits that DEFS can exceed.
473rm -rf conftest* confdefs.h
474# AIX cpp loses on an empty file, so make sure it contains at least a newline.
475echo > confdefs.h
476
477# A filename unique to this package, relative to the directory that
478# configure is in, which we can look for to find out if srcdir is correct.
479ac_unique_file=ldmain.c
480
481# Find the source files, if location was not specified.
482if test -z "$srcdir"; then
483 ac_srcdir_defaulted=yes
484 # Try the directory containing this script, then its parent.
485 ac_prog=$0
486 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
488 srcdir=$ac_confdir
489 if test ! -r $srcdir/$ac_unique_file; then
490 srcdir=..
491 fi
492else
493 ac_srcdir_defaulted=no
494fi
495if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498 else
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
500 fi
501fi
502srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503
504# Prefer explicitly selected file to automatically selected ones.
505if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE; then
507 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
508 else
509 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
510 fi
511fi
512for ac_site_file in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
515 . "$ac_site_file"
516 fi
517done
518
519if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
521 . $cache_file
522else
523 echo "creating cache $cache_file"
524 > $cache_file
525fi
526
527ac_ext=c
528# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529ac_cpp='$CPP $CPPFLAGS'
530ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532cross_compiling=$ac_cv_prog_cc_cross
533
534ac_exeext=
535ac_objext=o
536if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
539 ac_n= ac_c='
540' ac_t=' '
541 else
542 ac_n=-n ac_c= ac_t=
543 fi
544else
545 ac_n= ac_c='\c' ac_t=
546fi
547
548echo $ac_n "checking for path separator""... $ac_c" 1>&6
549echo "configure:550: checking for path separator" >&5
550# Filter path to get backslahes into forwardslashes
551case "`uname -s 2> /dev/null`" in
552OS/2)
553 PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
554 PATH_IFS=';'
555 ;;
556*)
557 PATH_IFS=':'
558 ;;
559esac
560echo "$ac_t""${PATH_IFS}" 1>&6
561
562echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
563echo "configure:564: checking for Cygwin environment" >&5
564if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
565 echo $ac_n "(cached) $ac_c" 1>&6
566else
567 cat > conftest.$ac_ext <<EOF
568#line 569 "configure"
569#include "confdefs.h"
570
571int main() {
572
573#ifndef __CYGWIN__
574#define __CYGWIN__ __CYGWIN32__
575#endif
576return __CYGWIN__;
577; return 0; }
578EOF
579if { (eval echo configure:580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
580 rm -rf conftest*
581 ac_cv_cygwin=yes
582else
583 echo "configure: failed program was:" >&5
584 cat conftest.$ac_ext >&5
585 rm -rf conftest*
586 ac_cv_cygwin=no
587fi
588rm -f conftest*
589rm -f conftest*
590fi
591
592echo "$ac_t""$ac_cv_cygwin" 1>&6
593CYGWIN=
594test "$ac_cv_cygwin" = yes && CYGWIN=yes
595echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
596echo "configure:597: checking for mingw32 environment" >&5
597if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
598 echo $ac_n "(cached) $ac_c" 1>&6
599else
600 cat > conftest.$ac_ext <<EOF
601#line 602 "configure"
602#include "confdefs.h"
603
604int main() {
605return __MINGW32__;
606; return 0; }
607EOF
608if { (eval echo configure:609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
609 rm -rf conftest*
610 ac_cv_mingw32=yes
611else
612 echo "configure: failed program was:" >&5
613 cat conftest.$ac_ext >&5
614 rm -rf conftest*
615 ac_cv_mingw32=no
616fi
617rm -f conftest*
618rm -f conftest*
619fi
620
621echo "$ac_t""$ac_cv_mingw32" 1>&6
622MINGW32=
623test "$ac_cv_mingw32" = yes && MINGW32=yes
624echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
625echo "configure:626: checking for EMX/OS2 environment" >&5
626if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
627 echo $ac_n "(cached) $ac_c" 1>&6
628else
629 : ${CC=gcc.exe}
630cat > conftest.$ac_ext <<EOF
631#line 632 "configure"
632#include "confdefs.h"
633
634int main() {
635return __EMX__;
636; return 0; }
637EOF
638if { (eval echo configure:639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
639 rm -rf conftest*
640 ac_cv_emxos2=yes
641else
642 echo "configure: failed program was:" >&5
643 cat conftest.$ac_ext >&5
644 rm -rf conftest*
645 ac_cv_emxos2=no
646fi
647rm -f conftest*
648rm -f conftest*
649fi
650
651echo "$ac_t""$ac_cv_emxos2" 1>&6
652if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
653 echo $ac_n "(cached) $ac_c" 1>&6
654else
655 if test "$ac_cv_emxos2" = yes ; then
656 ac_cv_libpre=
657else
658 ac_cv_libpre=lib
659fi
660
661fi
662
663EMXOS2=
664test "$ac_cv_emxos2" = yes && EMXOS2=yes
665
666
667
668echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
669echo "configure:670: checking for executable suffix" >&5
670if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
672else
673 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
674 ac_cv_exeext=.exe
675else
676 rm -f conftest*
677 echo 'int main () { return 0; }' > conftest.$ac_ext
678 ac_cv_exeext=
679 if { (eval echo configure:680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
680 for file in conftest.*; do
681 case $file in
682 *.c | *.o | *.obj) ;;
683 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
684 esac
685 done
686 else
687 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
688 fi
689 rm -f conftest*
690 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
691fi
692fi
693
694EXEEXT=""
695test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
696echo "$ac_t""${ac_cv_exeext}" 1>&6
697ac_exeext=$EXEEXT
698
699
700
701ac_aux_dir=
702for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
703 if test -f $ac_dir/install-sh; then
704 ac_aux_dir=$ac_dir
705 ac_install_sh="$ac_aux_dir/install-sh -c"
706 break
707 elif test -f $ac_dir/install.sh; then
708 ac_aux_dir=$ac_dir
709 ac_install_sh="$ac_aux_dir/install.sh -c"
710 break
711 fi
712done
713if test -z "$ac_aux_dir"; then
714 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
715fi
716ac_config_guess=$ac_aux_dir/config.guess
717ac_config_sub=$ac_aux_dir/config.sub
718ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
719
720
721# Do some error checking and defaulting for the host and target type.
722# The inputs are:
723# configure --host=HOST --target=TARGET --build=BUILD NONOPT
724#
725# The rules are:
726# 1. You are not allowed to specify --host, --target, and nonopt at the
727# same time.
728# 2. Host defaults to nonopt.
729# 3. If nonopt is not specified, then host defaults to the current host,
730# as determined by config.guess.
731# 4. Target and build default to nonopt.
732# 5. If nonopt is not specified, then target and build default to host.
733
734# The aliases save the names the user supplied, while $host etc.
735# will get canonicalized.
736case $host---$target---$nonopt in
737NONE---*---* | *---NONE---* | *---*---NONE) ;;
738*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
739esac
740
741
742# Make sure we can run config.sub.
743if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
744else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
745fi
746
747echo $ac_n "checking host system type""... $ac_c" 1>&6
748echo "configure:749: checking host system type" >&5
749
750host_alias=$host
751case "$host_alias" in
752NONE)
753 case $nonopt in
754 NONE)
755 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
756 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
757 fi ;;
758 *) host_alias=$nonopt ;;
759 esac ;;
760esac
761
762host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
763host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
764host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
765host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
766echo "$ac_t""$host" 1>&6
767
768echo $ac_n "checking target system type""... $ac_c" 1>&6
769echo "configure:770: checking target system type" >&5
770
771target_alias=$target
772case "$target_alias" in
773NONE)
774 case $nonopt in
775 NONE) target_alias=$host_alias ;;
776 *) target_alias=$nonopt ;;
777 esac ;;
778esac
779
780target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
781target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
782target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
783target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
784echo "$ac_t""$target" 1>&6
785
786echo $ac_n "checking build system type""... $ac_c" 1>&6
787echo "configure:788: checking build system type" >&5
788
789build_alias=$build
790case "$build_alias" in
791NONE)
792 case $nonopt in
793 NONE) build_alias=$host_alias ;;
794 *) build_alias=$nonopt ;;
795 esac ;;
796esac
797
798build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
799build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
800build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
801build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
802echo "$ac_t""$build" 1>&6
803
804test "$host_alias" != "$target_alias" &&
805 test "$program_prefix$program_suffix$program_transform_name" = \
806 NONENONEs,x,x, &&
807 program_prefix=${target_alias}-
808
809# Extract the first word of "gcc", so it can be a program name with args.
810set dummy gcc; ac_word=$2
811echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
812echo "configure:813: checking for $ac_word" >&5
813if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
814 echo $ac_n "(cached) $ac_c" 1>&6
815else
816 if test -n "$CC"; then
817 ac_cv_prog_CC="$CC" # Let the user override the test.
818else
819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
820 ac_dummy="$PATH"
821 for ac_dir in $ac_dummy; do
822 test -z "$ac_dir" && ac_dir=.
823 if test -f $ac_dir/$ac_word -o \
824 -f $ac_dir/$ac_word$ac_exeext ; then
825 ac_cv_prog_CC="gcc"
826 break
827 fi
828 done
829 IFS="$ac_save_ifs"
830fi
831fi
832CC="$ac_cv_prog_CC"
833if test -n "$CC"; then
834 echo "$ac_t""$CC" 1>&6
835else
836 echo "$ac_t""no" 1>&6
837fi
838
839if test -z "$CC"; then
840 # Extract the first word of "cc", so it can be a program name with args.
841set dummy cc; ac_word=$2
842echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
843echo "configure:844: checking for $ac_word" >&5
844if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
845 echo $ac_n "(cached) $ac_c" 1>&6
846else
847 if test -n "$CC"; then
848 ac_cv_prog_CC="$CC" # Let the user override the test.
849else
850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
851 ac_prog_rejected=no
852 ac_dummy="$PATH"
853 for ac_dir in $ac_dummy; do
854 test -z "$ac_dir" && ac_dir=.
855 if test -f $ac_dir/$ac_word -o \
856 -f $ac_dir/$ac_word$ac_exeext ; then
857 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
858 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
859 ac_prog_rejected=yes
860 continue
861 fi
862 ac_cv_prog_CC="cc"
863 break
864 fi
865 done
866 IFS="$ac_save_ifs"
867if test $ac_prog_rejected = yes; then
868 # We found a bogon in the path, so make sure we never use it.
869 set dummy $ac_cv_prog_CC
870 shift
871 if test $# -gt 0; then
872 # We chose a different compiler from the bogus one.
873 # However, it has the same basename, so the bogon will be chosen
874 # first if we set CC to just the basename; use the full file name.
875 shift
876 set dummy "$ac_dir/$ac_word" "$@"
877 shift
878 ac_cv_prog_CC="$@"
879 fi
880fi
881fi
882fi
883CC="$ac_cv_prog_CC"
884if test -n "$CC"; then
885 echo "$ac_t""$CC" 1>&6
886else
887 echo "$ac_t""no" 1>&6
888fi
889
890 if test -z "$CC"; then
891 case "`uname -s`" in
892 *win32* | *WIN32*)
893 # Extract the first word of "cl", so it can be a program name with args.
894set dummy cl; ac_word=$2
895echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
896echo "configure:897: checking for $ac_word" >&5
897if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
899else
900 if test -n "$CC"; then
901 ac_cv_prog_CC="$CC" # Let the user override the test.
902else
903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
904 ac_dummy="$PATH"
905 for ac_dir in $ac_dummy; do
906 test -z "$ac_dir" && ac_dir=.
907 if test -f $ac_dir/$ac_word -o \
908 -f $ac_dir/$ac_word$ac_exeext ; then
909 ac_cv_prog_CC="cl"
910 break
911 fi
912 done
913 IFS="$ac_save_ifs"
914fi
915fi
916CC="$ac_cv_prog_CC"
917if test -n "$CC"; then
918 echo "$ac_t""$CC" 1>&6
919else
920 echo "$ac_t""no" 1>&6
921fi
922 ;;
923 esac
924 fi
925 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
926fi
927
928echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
929echo "configure:930: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
930
931ac_ext=c
932# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
933ac_cpp='$CPP $CPPFLAGS'
934ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
935ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
936cross_compiling=$ac_cv_prog_cc_cross
937
938cat > conftest.$ac_ext << EOF
939
940#line 941 "configure"
941#include "confdefs.h"
942
943main(){return(0);}
944EOF
945if { (eval echo configure:946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
946 ac_cv_prog_cc_works=yes
947 # If we can't run a trivial program, we are probably using a cross compiler.
948 if (./conftest; exit) 2>/dev/null; then
949 ac_cv_prog_cc_cross=no
950 else
951 ac_cv_prog_cc_cross=yes
952 fi
953else
954 echo "configure: failed program was:" >&5
955 cat conftest.$ac_ext >&5
956 ac_cv_prog_cc_works=no
957fi
958rm -fr conftest*
959ac_ext=c
960# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
961ac_cpp='$CPP $CPPFLAGS'
962ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
963ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
964cross_compiling=$ac_cv_prog_cc_cross
965
966echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
967if test $ac_cv_prog_cc_works = no; then
968 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
969fi
970echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
971echo "configure:972: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
972echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
973cross_compiling=$ac_cv_prog_cc_cross
974
975echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
976echo "configure:977: checking whether we are using GNU C" >&5
977if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
979else
980 cat > conftest.c <<EOF
981#ifdef __GNUC__
982 yes;
983#endif
984EOF
985if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
986 ac_cv_prog_gcc=yes
987else
988 ac_cv_prog_gcc=no
989fi
990fi
991
992echo "$ac_t""$ac_cv_prog_gcc" 1>&6
993
994if test $ac_cv_prog_gcc = yes; then
995 GCC=yes
996else
997 GCC=
998fi
999
1000ac_test_CFLAGS="${CFLAGS+set}"
1001ac_save_CFLAGS="$CFLAGS"
1002CFLAGS=
1003echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1004echo "configure:1005: checking whether ${CC-cc} accepts -g" >&5
1005if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1007else
1008 echo 'void f(){}' > conftest.c
1009if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1010 ac_cv_prog_cc_g=yes
1011else
1012 ac_cv_prog_cc_g=no
1013fi
1014rm -f conftest*
1015
1016fi
1017
1018echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1019if test "$ac_test_CFLAGS" = set; then
1020 CFLAGS="$ac_save_CFLAGS"
1021elif test $ac_cv_prog_cc_g = yes; then
1022 if test "$GCC" = yes; then
1023 CFLAGS="-g -O2"
1024 else
1025 CFLAGS="-g"
1026 fi
1027else
1028 if test "$GCC" = yes; then
1029 CFLAGS="-O2"
1030 else
1031 CFLAGS=
1032 fi
1033fi
1034
1035echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1036echo "configure:1037: checking for POSIXized ISC" >&5
1037if test -d /etc/conf/kconfig.d &&
1038 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1039then
1040 echo "$ac_t""yes" 1>&6
1041 ISC=yes # If later tests want to check for ISC.
1042 cat >> confdefs.h <<\EOF
1043#define _POSIX_SOURCE 1
1044EOF
1045
1046 if test "$GCC" = yes; then
1047 CC="$CC -posix"
1048 else
1049 CC="$CC -Xp"
1050 fi
1051else
1052 echo "$ac_t""no" 1>&6
1053 ISC=
1054fi
1055
1056
1057BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
1058# Find a good install program. We prefer a C program (faster),
1059# so one script is as good as another. But avoid the broken or
1060# incompatible versions:
1061# SysV /etc/install, /usr/sbin/install
1062# SunOS /usr/etc/install
1063# IRIX /sbin/install
1064# AIX /bin/install
1065# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1066# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1067# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1068# ./install, which can be erroneously created by make from ./install.sh.
1069echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1070echo "configure:1071: checking for a BSD compatible install" >&5
1071if test -z "$INSTALL"; then
1072if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1074else
1075 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
1076 for ac_dir in $PATH; do
1077 # Account for people who put trailing slashes in PATH elements.
1078 case "$ac_dir/" in
1079 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1080 # We reject the install program from OS/2 or W3.1
1081 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
1082 *)
1083 # OSF1 and SCO ODT 3.0 have their own names for install.
1084 # Don't use installbsd from OSF since it installs stuff as root
1085 # by default.
1086 for ac_prog in ginstall scoinst install; do
1087 if test -f $ac_dir/$ac_prog$ac_exeext; then
1088 if test $ac_prog = install &&
1089 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1090 # AIX install. It has an incompatible calling convention.
1091 :
1092 else
1093 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
1094 break 2
1095 fi
1096 fi
1097 done
1098 ;;
1099 esac
1100 done
1101 IFS="$ac_save_IFS"
1102
1103fi
1104 if test "${ac_cv_path_install+set}" = set; then
1105 INSTALL="$ac_cv_path_install"
1106 else
1107 # As a last resort, use the slow shell script. We don't cache a
1108 # path for INSTALL within a source directory, because that will
1109 # break other packages using the cache if that directory is
1110 # removed, or if the path is relative.
1111 INSTALL="$ac_install_sh"
1112 fi
1113fi
1114echo "$ac_t""$INSTALL" 1>&6
1115
1116# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1117# It thinks the first close brace ends the variable substitution.
1118test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1119
1120test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1121
1122test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1123
1124echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1125echo "configure:1126: checking whether build environment is sane" >&5
1126# Just in case
1127sleep 1
1128echo timestamp > conftestfile
1129# Do `set' in a subshell so we don't clobber the current shell's
1130# arguments. Must try -L first in case configure is actually a
1131# symlink; some systems play weird games with the mod time of symlinks
1132# (eg FreeBSD returns the mod time of the symlink's containing
1133# directory).
1134if (
1135 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1136 if test "$*" = "X"; then
1137 # -L didn't work.
1138 set X `ls -t $srcdir/configure conftestfile`
1139 fi
1140 if test "$*" != "X $srcdir/configure conftestfile" \
1141 && test "$*" != "X conftestfile $srcdir/configure"; then
1142
1143 # If neither matched, then we have a broken ls. This can happen
1144 # if, for instance, CONFIG_SHELL is bash and it inherits a
1145 # broken ls alias from the environment. This has actually
1146 # happened. Such a system could not be considered "sane".
1147 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1148alias in your environment" 1>&2; exit 1; }
1149 fi
1150
1151 test "$2" = conftestfile
1152 )
1153then
1154 # Ok.
1155 :
1156else
1157 { echo "configure: error: newly created file is older than distributed files!
1158Check your system clock" 1>&2; exit 1; }
1159fi
1160rm -f conftest*
1161echo "$ac_t""yes" 1>&6
1162if test "$program_transform_name" = s,x,x,; then
1163 program_transform_name=
1164else
1165 # Double any \ or $. echo might interpret backslashes.
1166 cat <<\EOF_SED > conftestsed
1167s,\\,\\\\,g; s,\$,$$,g
1168EOF_SED
1169 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1170 rm -f conftestsed
1171fi
1172test "$program_prefix" != NONE &&
1173 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1174# Use a double $ so make ignores it.
1175test "$program_suffix" != NONE &&
1176 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1177
1178# sed with no file args requires a program.
1179test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1180
1181echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1182echo "configure:1183: checking whether ${MAKE-make} sets \${MAKE}" >&5
1183set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1184if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1186else
1187 cat > conftestmake <<\EOF
1188all:
1189 @echo 'ac_maketemp="${MAKE}"'
1190EOF
1191# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1192eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1193if test -n "$ac_maketemp"; then
1194 eval ac_cv_prog_make_${ac_make}_set=yes
1195else
1196 eval ac_cv_prog_make_${ac_make}_set=no
1197fi
1198rm -f conftestmake
1199fi
1200if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1201 echo "$ac_t""yes" 1>&6
1202 SET_MAKE=
1203else
1204 echo "$ac_t""no" 1>&6
1205 SET_MAKE="MAKE=${MAKE-make}"
1206fi
1207
1208
1209PACKAGE=ld
1210
1211VERSION=${BFD_VERSION}
1212
1213if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1214 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1215fi
1216cat >> confdefs.h <<EOF
1217#define PACKAGE "$PACKAGE"
1218EOF
1219
1220cat >> confdefs.h <<EOF
1221#define VERSION "$VERSION"
1222EOF
1223
1224
1225
1226missing_dir=`cd $ac_aux_dir && pwd`
1227echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1228echo "configure:1229: checking for working aclocal" >&5
1229# Run test in a subshell; some versions of sh will print an error if
1230# an executable is not found, even if stderr is redirected.
1231# Redirect stdin to placate older versions of autoconf. Sigh.
1232if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1233 ACLOCAL=aclocal
1234 echo "$ac_t""found" 1>&6
1235else
1236 ACLOCAL="$missing_dir/missing aclocal"
1237 echo "$ac_t""missing" 1>&6
1238fi
1239
1240echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1241echo "configure:1242: checking for working autoconf" >&5
1242# Run test in a subshell; some versions of sh will print an error if
1243# an executable is not found, even if stderr is redirected.
1244# Redirect stdin to placate older versions of autoconf. Sigh.
1245if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1246 AUTOCONF=autoconf
1247 echo "$ac_t""found" 1>&6
1248else
1249 AUTOCONF="$missing_dir/missing autoconf"
1250 echo "$ac_t""missing" 1>&6
1251fi
1252
1253echo $ac_n "checking for working automake""... $ac_c" 1>&6
1254echo "configure:1255: checking for working automake" >&5
1255# Run test in a subshell; some versions of sh will print an error if
1256# an executable is not found, even if stderr is redirected.
1257# Redirect stdin to placate older versions of autoconf. Sigh.
1258if (automake --version) < /dev/null > /dev/null 2>&1; then
1259 AUTOMAKE=automake
1260 echo "$ac_t""found" 1>&6
1261else
1262 AUTOMAKE="$missing_dir/missing automake"
1263 echo "$ac_t""missing" 1>&6
1264fi
1265
1266echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1267echo "configure:1268: checking for working autoheader" >&5
1268# Run test in a subshell; some versions of sh will print an error if
1269# an executable is not found, even if stderr is redirected.
1270# Redirect stdin to placate older versions of autoconf. Sigh.
1271if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1272 AUTOHEADER=autoheader
1273 echo "$ac_t""found" 1>&6
1274else
1275 AUTOHEADER="$missing_dir/missing autoheader"
1276 echo "$ac_t""missing" 1>&6
1277fi
1278
1279echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1280echo "configure:1281: checking for working makeinfo" >&5
1281# Run test in a subshell; some versions of sh will print an error if
1282# an executable is not found, even if stderr is redirected.
1283# Redirect stdin to placate older versions of autoconf. Sigh.
1284if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1285 MAKEINFO=makeinfo
1286 echo "$ac_t""found" 1>&6
1287else
1288 MAKEINFO="$missing_dir/missing makeinfo"
1289 echo "$ac_t""missing" 1>&6
1290fi
1291
1292
1293
1294# Check whether --enable-shared or --disable-shared was given.
1295if test "${enable_shared+set}" = set; then
1296 enableval="$enable_shared"
1297 p=${PACKAGE-default}
1298case "$enableval" in
1299yes) enable_shared=yes ;;
1300no) enable_shared=no ;;
1301*)
1302 enable_shared=no
1303 # Look at the argument we got. We use all the common list separators.
1304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1305 for pkg in $enableval; do
1306 if test "X$pkg" = "X$p"; then
1307 enable_shared=yes
1308 fi
1309 done
1310 IFS="$ac_save_ifs"
1311 ;;
1312esac
1313else
1314 enable_shared=yes
1315fi
1316
1317# Check whether --enable-static or --disable-static was given.
1318if test "${enable_static+set}" = set; then
1319 enableval="$enable_static"
1320 p=${PACKAGE-default}
1321case "$enableval" in
1322yes) enable_static=yes ;;
1323no) enable_static=no ;;
1324*)
1325 enable_static=no
1326 # Look at the argument we got. We use all the common list separators.
1327 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1328 for pkg in $enableval; do
1329 if test "X$pkg" = "X$p"; then
1330 enable_static=yes
1331 fi
1332 done
1333 IFS="$ac_save_ifs"
1334 ;;
1335esac
1336else
1337 enable_static=yes
1338fi
1339
1340# Check whether --enable-fast-install or --disable-fast-install was given.
1341if test "${enable_fast_install+set}" = set; then
1342 enableval="$enable_fast_install"
1343 p=${PACKAGE-default}
1344case "$enableval" in
1345yes) enable_fast_install=yes ;;
1346no) enable_fast_install=no ;;
1347*)
1348 enable_fast_install=no
1349 # Look at the argument we got. We use all the common list separators.
1350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1351 for pkg in $enableval; do
1352 if test "X$pkg" = "X$p"; then
1353 enable_fast_install=yes
1354 fi
1355 done
1356 IFS="$ac_save_ifs"
1357 ;;
1358esac
1359else
1360 enable_fast_install=yes
1361fi
1362
1363# Check whether --with-gnu-ld or --without-gnu-ld was given.
1364if test "${with_gnu_ld+set}" = set; then
1365 withval="$with_gnu_ld"
1366 test "$withval" = no || with_gnu_ld=yes
1367else
1368 with_gnu_ld=no
1369fi
1370
1371ac_prog=ld
1372if test "$ac_cv_prog_gcc" = yes; then
1373 # Check if gcc -print-prog-name=ld gives a path.
1374 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1375echo "configure:1376: checking for ld used by GCC" >&5
1376 case $host in
1377 *-*-mingw*)
1378 # gcc leaves a trailing carriage return which upsets mingw
1379 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1380 *)
1381 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1382 esac
1383 case "$ac_prog" in
1384 # Accept absolute paths.
1385 [\\/]* | [A-Za-z]:[\\/]*)
1386 re_direlt='/[^/][^/]*/\.\./'
1387 # Canonicalize the path of ld
1388 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1389 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1390 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1391 done
1392 test -z "$LD" && LD="$ac_prog"
1393 ;;
1394 "")
1395 # If it fails, then pretend we aren't using GCC.
1396 ac_prog=ld
1397 ;;
1398 *)
1399 # If it is relative, then search for the first ld in PATH.
1400 with_gnu_ld=unknown
1401 ;;
1402 esac
1403elif test "$with_gnu_ld" = yes; then
1404 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1405echo "configure:1406: checking for GNU ld" >&5
1406else
1407 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1408echo "configure:1409: checking for non-GNU ld" >&5
1409fi
1410if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&6
1412else
1413 if test -z "$LD"; then
1414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1415 for ac_dir in $PATH; do
1416 test -z "$ac_dir" && ac_dir=.
1417 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1418 ac_cv_path_LD="$ac_dir/$ac_prog"
1419 # Check to see if the program is GNU ld. I'd rather use --version,
1420 # but apparently some GNU ld's only accept -v.
1421 # Break only if it was the GNU/non-GNU ld that we prefer.
1422 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1423 test "$with_gnu_ld" != no && break
1424 else
1425 test "$with_gnu_ld" != yes && break
1426 fi
1427 fi
1428 done
1429 IFS="$ac_save_ifs"
1430else
1431 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1432fi
1433fi
1434
1435LD="$ac_cv_path_LD"
1436if test -n "$LD"; then
1437 echo "$ac_t""$LD" 1>&6
1438else
1439 echo "$ac_t""no" 1>&6
1440fi
1441test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1442echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1443echo "configure:1444: checking if the linker ($LD) is GNU ld" >&5
1444if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1445 echo $ac_n "(cached) $ac_c" 1>&6
1446else
1447 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1448if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1449 ac_cv_prog_gnu_ld=yes
1450else
1451 ac_cv_prog_gnu_ld=no
1452fi
1453fi
1454
1455echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1456with_gnu_ld=$ac_cv_prog_gnu_ld
1457
1458
1459echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1460echo "configure:1461: checking for $LD option to reload object files" >&5
1461if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1463else
1464 lt_cv_ld_reload_flag='-r'
1465fi
1466
1467echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1468reload_flag=$lt_cv_ld_reload_flag
1469test -n "$reload_flag" && reload_flag=" $reload_flag"
1470
1471echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1472echo "configure:1473: checking for BSD-compatible nm" >&5
1473if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1475else
1476 if test -n "$NM"; then
1477 # Let the user override the test.
1478 ac_cv_path_NM="$NM"
1479else
1480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1481 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1482 test -z "$ac_dir" && ac_dir=.
1483 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1484 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1485 # Check to see if the nm accepts a BSD-compat flag.
1486 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1487 # nm: unknown option "B" ignored
1488 # Tru64's nm complains that /dev/null is an invalid object file
1489 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1490 ac_cv_path_NM="$tmp_nm -B"
1491 break
1492 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1493 ac_cv_path_NM="$tmp_nm -p"
1494 break
1495 else
1496 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1497 continue # so that we can try to find one that supports BSD flags
1498 fi
1499 fi
1500 done
1501 IFS="$ac_save_ifs"
1502 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1503fi
1504fi
1505
1506NM="$ac_cv_path_NM"
1507echo "$ac_t""$NM" 1>&6
1508
1509echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1510echo "configure:1511: checking whether ln -s works" >&5
1511if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1512 echo $ac_n "(cached) $ac_c" 1>&6
1513else
1514 rm -f conftestdata
1515if ln -s X conftestdata 2>/dev/null
1516then
1517 rm -f conftestdata
1518 ac_cv_prog_LN_S="ln -s"
1519else
1520 echo A > conftestdata;
1521 if ln conftestdata conftestdata2 2>/dev/null; then
1522 ac_cv_prog_LN_S=ln
1523 else
1524 ac_cv_prog_LN_S=cp
1525 fi
1526fi
1527rm -f conftestdata*
1528fi
1529LN_S="$ac_cv_prog_LN_S"
1530if test "$ac_cv_prog_LN_S" = "ln -s"; then
1531 echo "$ac_t""yes" 1>&6
1532else
1533 echo "$ac_t""no" 1>&6
1534fi
1535
1536echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1537echo "configure:1538: checking how to recognise dependant libraries" >&5
1538if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1540else
1541 lt_cv_file_magic_cmd='$MAGIC_CMD'
1542lt_cv_file_magic_test_file=
1543lt_cv_deplibs_check_method='unknown'
1544# Need to set the preceding variable on all platforms that support
1545# interlibrary dependencies.
1546# 'none' -- dependencies not supported.
1547# `unknown' -- same as none, but documents that we really don't know.
1548# 'pass_all' -- all dependencies passed with no checks.
1549# 'test_compile' -- check by making test program.
1550# 'file_magic [regex]' -- check by looking for files in library path
1551# which responds to the $file_magic_cmd with a given egrep regex.
1552# If you have `file' or equivalent on your system and you're not sure
1553# whether `pass_all' will *always* work, you probably want this one.
1554
1555case "$host_os" in
1556aix4*)
1557 lt_cv_deplibs_check_method=pass_all
1558 ;;
1559
1560beos*)
1561 lt_cv_deplibs_check_method=pass_all
1562 ;;
1563
1564bsdi4*)
1565 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1566 lt_cv_file_magic_cmd='/usr/bin/file -L'
1567 lt_cv_file_magic_test_file=/shlib/libc.so
1568 ;;
1569
1570cygwin* | mingw* |pw32*)
1571 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1572 lt_cv_file_magic_cmd='$OBJDUMP -f'
1573 ;;
1574
1575freebsd* )
1576 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1577 case "$host_cpu" in
1578 i*86 )
1579 # Not sure whether the presence of OpenBSD here was a mistake.
1580 # Let's accept both of them until this is cleared up.
1581 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1582 lt_cv_file_magic_cmd=/usr/bin/file
1583 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1584 ;;
1585 esac
1586 else
1587 lt_cv_deplibs_check_method=pass_all
1588 fi
1589 ;;
1590
1591gnu*)
1592 lt_cv_deplibs_check_method=pass_all
1593 ;;
1594
1595hpux10.20*)
1596 # TODO: Does this work for hpux-11 too?
1597 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1598 lt_cv_file_magic_cmd=/usr/bin/file
1599 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1600 ;;
1601
1602irix5* | irix6*)
1603 case "$host_os" in
1604 irix5*)
1605 # this will be overridden with pass_all, but let us keep it just in case
1606 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1607 ;;
1608 *)
1609 case "$LD" in
1610 *-32|*"-32 ") libmagic=32-bit;;
1611 *-n32|*"-n32 ") libmagic=N32;;
1612 *-64|*"-64 ") libmagic=64-bit;;
1613 *) libmagic=never-match;;
1614 esac
1615 # this will be overridden with pass_all, but let us keep it just in case
1616 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1617 ;;
1618 esac
1619 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1620 lt_cv_deplibs_check_method=pass_all
1621 ;;
1622
1623# This must be Linux ELF.
1624linux-gnu*)
1625 case "$host_cpu" in
1626 alpha* | i*86 | powerpc* | sparc* | ia64* )
1627 lt_cv_deplibs_check_method=pass_all ;;
1628 *)
1629 # glibc up to 2.1.1 does not perform some relocations on ARM
1630 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1631 esac
1632 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1633 ;;
1634
1635netbsd*)
1636 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
1637 else
1638 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1639 lt_cv_file_magic_cmd='/usr/bin/file -L'
1640 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1641 fi
1642 ;;
1643
1644osf3* | osf4* | osf5*)
1645 # this will be overridden with pass_all, but let us keep it just in case
1646 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1647 lt_cv_file_magic_test_file=/shlib/libc.so
1648 lt_cv_deplibs_check_method=pass_all
1649 ;;
1650
1651sco3.2v5*)
1652 lt_cv_deplibs_check_method=pass_all
1653 ;;
1654
1655solaris*)
1656 lt_cv_deplibs_check_method=pass_all
1657 lt_cv_file_magic_test_file=/lib/libc.so
1658 ;;
1659
1660sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1661 case "$host_vendor" in
1662 ncr)
1663 lt_cv_deplibs_check_method=pass_all
1664 ;;
1665 motorola)
1666 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1667 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1668 ;;
1669 esac
1670 ;;
1671esac
1672
1673fi
1674
1675echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1676file_magic_cmd=$lt_cv_file_magic_cmd
1677deplibs_check_method=$lt_cv_deplibs_check_method
1678
1679echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1680echo "configure:1681: checking for object suffix" >&5
1681if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1683else
1684 rm -f conftest*
1685echo 'int i = 1;' > conftest.$ac_ext
1686if { (eval echo configure:1687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1687 for ac_file in conftest.*; do
1688 case $ac_file in
1689 *.c) ;;
1690 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1691 esac
1692 done
1693else
1694 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1695fi
1696rm -f conftest*
1697fi
1698
1699echo "$ac_t""$ac_cv_objext" 1>&6
1700OBJEXT=$ac_cv_objext
1701ac_objext=$ac_cv_objext
1702
1703if test $host != $build; then
1704 ac_tool_prefix=${host_alias}-
1705else
1706 ac_tool_prefix=
1707fi
1708
1709# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1710
1711# Only perform the check for file, if the check method requires it
1712case "$deplibs_check_method" in
1713file_magic*)
1714 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1715 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1716echo "configure:1717: checking for ${ac_tool_prefix}file" >&5
1717if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1719else
1720 case "$MAGIC_CMD" in
1721 /*)
1722 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1723 ;;
1724 ?:/*)
1725 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1726 ;;
1727 *)
1728 ac_save_MAGIC_CMD="$MAGIC_CMD"
1729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1730 ac_dummy="/usr/bin:$PATH"
1731 for ac_dir in $ac_dummy; do
1732 test -z "$ac_dir" && ac_dir=.
1733 if test -f $ac_dir/${ac_tool_prefix}file; then
1734 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1735 if test -n "$file_magic_test_file"; then
1736 case "$deplibs_check_method" in
1737 "file_magic "*)
1738 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1739 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1740 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1741 egrep "$file_magic_regex" > /dev/null; then
1742 :
1743 else
1744 cat <<EOF 1>&2
1745
1746*** Warning: the command libtool uses to detect shared libraries,
1747*** $file_magic_cmd, produces output that libtool cannot recognize.
1748*** The result is that libtool may fail to recognize shared libraries
1749*** as such. This will affect the creation of libtool libraries that
1750*** depend on shared libraries, but programs linked with such libtool
1751*** libraries will work regardless of this problem. Nevertheless, you
1752*** may want to report the problem to your system manager and/or to
1753*** bug-libtool@gnu.org
1754
1755EOF
1756 fi ;;
1757 esac
1758 fi
1759 break
1760 fi
1761 done
1762 IFS="$ac_save_ifs"
1763 MAGIC_CMD="$ac_save_MAGIC_CMD"
1764 ;;
1765esac
1766fi
1767
1768MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1769if test -n "$MAGIC_CMD"; then
1770 echo "$ac_t""$MAGIC_CMD" 1>&6
1771else
1772 echo "$ac_t""no" 1>&6
1773fi
1774
1775if test -z "$lt_cv_path_MAGIC_CMD"; then
1776 if test -n "$ac_tool_prefix"; then
1777 echo $ac_n "checking for file""... $ac_c" 1>&6
1778echo "configure:1779: checking for file" >&5
1779if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1781else
1782 case "$MAGIC_CMD" in
1783 /*)
1784 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1785 ;;
1786 ?:/*)
1787 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1788 ;;
1789 *)
1790 ac_save_MAGIC_CMD="$MAGIC_CMD"
1791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1792 ac_dummy="/usr/bin:$PATH"
1793 for ac_dir in $ac_dummy; do
1794 test -z "$ac_dir" && ac_dir=.
1795 if test -f $ac_dir/file; then
1796 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1797 if test -n "$file_magic_test_file"; then
1798 case "$deplibs_check_method" in
1799 "file_magic "*)
1800 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1802 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1803 egrep "$file_magic_regex" > /dev/null; then
1804 :
1805 else
1806 cat <<EOF 1>&2
1807
1808*** Warning: the command libtool uses to detect shared libraries,
1809*** $file_magic_cmd, produces output that libtool cannot recognize.
1810*** The result is that libtool may fail to recognize shared libraries
1811*** as such. This will affect the creation of libtool libraries that
1812*** depend on shared libraries, but programs linked with such libtool
1813*** libraries will work regardless of this problem. Nevertheless, you
1814*** may want to report the problem to your system manager and/or to
1815*** bug-libtool@gnu.org
1816
1817EOF
1818 fi ;;
1819 esac
1820 fi
1821 break
1822 fi
1823 done
1824 IFS="$ac_save_ifs"
1825 MAGIC_CMD="$ac_save_MAGIC_CMD"
1826 ;;
1827esac
1828fi
1829
1830MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1831if test -n "$MAGIC_CMD"; then
1832 echo "$ac_t""$MAGIC_CMD" 1>&6
1833else
1834 echo "$ac_t""no" 1>&6
1835fi
1836
1837 else
1838 MAGIC_CMD=:
1839 fi
1840fi
1841
1842 fi
1843 ;;
1844esac
1845
1846# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1847set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1848echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849echo "configure:1850: checking for $ac_word" >&5
1850if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1852else
1853 if test -n "$RANLIB"; then
1854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1855else
1856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1857 ac_dummy="$PATH"
1858 for ac_dir in $ac_dummy; do
1859 test -z "$ac_dir" && ac_dir=.
1860 if test -f $ac_dir/$ac_word -o \
1861 -f $ac_dir/$ac_word$ac_exeext ; then
1862 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1863 break
1864 fi
1865 done
1866 IFS="$ac_save_ifs"
1867fi
1868fi
1869RANLIB="$ac_cv_prog_RANLIB"
1870if test -n "$RANLIB"; then
1871 echo "$ac_t""$RANLIB" 1>&6
1872else
1873 echo "$ac_t""no" 1>&6
1874fi
1875
1876
1877if test -z "$ac_cv_prog_RANLIB"; then
1878if test -n "$ac_tool_prefix"; then
1879 # Extract the first word of "ranlib", so it can be a program name with args.
1880set dummy ranlib; ac_word=$2
1881echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1882echo "configure:1883: checking for $ac_word" >&5
1883if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1885else
1886 if test -n "$RANLIB"; then
1887 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1888else
1889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1890 ac_dummy="$PATH"
1891 for ac_dir in $ac_dummy; do
1892 test -z "$ac_dir" && ac_dir=.
1893 if test -f $ac_dir/$ac_word -o \
1894 -f $ac_dir/$ac_word$ac_exeext ; then
1895 ac_cv_prog_RANLIB="ranlib"
1896 break
1897 fi
1898 done
1899 IFS="$ac_save_ifs"
1900 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1901fi
1902fi
1903RANLIB="$ac_cv_prog_RANLIB"
1904if test -n "$RANLIB"; then
1905 echo "$ac_t""$RANLIB" 1>&6
1906else
1907 echo "$ac_t""no" 1>&6
1908fi
1909
1910else
1911 RANLIB=":"
1912fi
1913fi
1914
1915# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1916set dummy ${ac_tool_prefix}strip; ac_word=$2
1917echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1918echo "configure:1919: checking for $ac_word" >&5
1919if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1921else
1922 if test -n "$STRIP"; then
1923 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1924else
1925 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1926 ac_dummy="$PATH"
1927 for ac_dir in $ac_dummy; do
1928 test -z "$ac_dir" && ac_dir=.
1929 if test -f $ac_dir/$ac_word -o \
1930 -f $ac_dir/$ac_word$ac_exeext ; then
1931 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1932 break
1933 fi
1934 done
1935 IFS="$ac_save_ifs"
1936fi
1937fi
1938STRIP="$ac_cv_prog_STRIP"
1939if test -n "$STRIP"; then
1940 echo "$ac_t""$STRIP" 1>&6
1941else
1942 echo "$ac_t""no" 1>&6
1943fi
1944
1945
1946if test -z "$ac_cv_prog_STRIP"; then
1947if test -n "$ac_tool_prefix"; then
1948 # Extract the first word of "strip", so it can be a program name with args.
1949set dummy strip; ac_word=$2
1950echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1951echo "configure:1952: checking for $ac_word" >&5
1952if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1954else
1955 if test -n "$STRIP"; then
1956 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1957else
1958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1959 ac_dummy="$PATH"
1960 for ac_dir in $ac_dummy; do
1961 test -z "$ac_dir" && ac_dir=.
1962 if test -f $ac_dir/$ac_word -o \
1963 -f $ac_dir/$ac_word$ac_exeext ; then
1964 ac_cv_prog_STRIP="strip"
1965 break
1966 fi
1967 done
1968 IFS="$ac_save_ifs"
1969 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1970fi
1971fi
1972STRIP="$ac_cv_prog_STRIP"
1973if test -n "$STRIP"; then
1974 echo "$ac_t""$STRIP" 1>&6
1975else
1976 echo "$ac_t""no" 1>&6
1977fi
1978
1979else
1980 STRIP=":"
1981fi
1982fi
1983
1984
1985# Check for any special flags to pass to ltconfig.
1986libtool_flags="--cache-file=$cache_file"
1987test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1988test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1989test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1990test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1991test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1992
1993
1994# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1995if test "${enable_libtool_lock+set}" = set; then
1996 enableval="$enable_libtool_lock"
1997 :
1998fi
1999
2000test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2001test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2002
2003# Check whether --with-pic or --without-pic was given.
2004if test "${with_pic+set}" = set; then
2005 withval="$with_pic"
2006 pic_mode="$withval"
2007else
2008 pic_mode=default
2009fi
2010
2011test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2012test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2013
2014# Some flags need to be propagated to the compiler or linker for good
2015# libtool support.
2016case "$host" in
2017*-*-irix6*)
2018 # Find out which ABI we are using.
2019 echo '#line 2020 "configure"' > conftest.$ac_ext
2020 if { (eval echo configure:2021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2021 case "`/usr/bin/file conftest.o`" in
2022 *32-bit*)
2023 LD="${LD-ld} -32"
2024 ;;
2025 *N32*)
2026 LD="${LD-ld} -n32"
2027 ;;
2028 *64-bit*)
2029 LD="${LD-ld} -64"
2030 ;;
2031 esac
2032 fi
2033 rm -rf conftest*
2034 ;;
2035
2036*-*-sco3.2v5*)
2037 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2038 SAVE_CFLAGS="$CFLAGS"
2039 CFLAGS="$CFLAGS -belf"
2040 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2041echo "configure:2042: checking whether the C compiler needs -belf" >&5
2042if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2044else
2045
2046 ac_ext=c
2047# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2048ac_cpp='$CPP $CPPFLAGS'
2049ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2050ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2051cross_compiling=$ac_cv_prog_cc_cross
2052
2053 cat > conftest.$ac_ext <<EOF
2054#line 2055 "configure"
2055#include "confdefs.h"
2056
2057int main() {
2058
2059; return 0; }
2060EOF
2061if { (eval echo configure:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2062 rm -rf conftest*
2063 lt_cv_cc_needs_belf=yes
2064else
2065 echo "configure: failed program was:" >&5
2066 cat conftest.$ac_ext >&5
2067 rm -rf conftest*
2068 lt_cv_cc_needs_belf=no
2069fi
2070rm -f conftest*
2071 ac_ext=c
2072# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2073ac_cpp='$CPP $CPPFLAGS'
2074ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2075ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2076cross_compiling=$ac_cv_prog_cc_cross
2077
2078fi
2079
2080echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2081 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2082 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2083 CFLAGS="$SAVE_CFLAGS"
2084 fi
2085 ;;
2086
2087
2088esac
2089
2090
2091# Save cache, so that ltconfig can load it
2092cat > confcache <<\EOF
2093# This file is a shell script that caches the results of configure
2094# tests run on this system so they can be shared between configure
2095# scripts and configure runs. It is not useful on other systems.
2096# If it contains results you don't want to keep, you may remove or edit it.
2097#
2098# By default, configure uses ./config.cache as the cache file,
2099# creating it if it does not exist already. You can give configure
2100# the --cache-file=FILE option to use a different cache file; that is
2101# what configure does when it calls configure scripts in
2102# subdirectories, so they share the cache.
2103# Giving --cache-file=/dev/null disables caching, for debugging configure.
2104# config.status only pays attention to the cache file if you give it the
2105# --recheck option to rerun configure.
2106#
2107EOF
2108# The following way of writing the cache mishandles newlines in values,
2109# but we know of no workaround that is simple, portable, and efficient.
2110# So, don't put newlines in cache variables' values.
2111# Ultrix sh set writes to stderr and can't be redirected directly,
2112# and sets the high bit in the cache file unless we assign to the vars.
2113(set) 2>&1 |
2114 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2115 *ac_space=\ *)
2116 # `set' does not quote correctly, so add quotes (double-quote substitution
2117 # turns \\\\ into \\, and sed turns \\ into \).
2118 sed -n \
2119 -e "s/'/'\\\\''/g" \
2120 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2121 ;;
2122 *)
2123 # `set' quotes correctly as required by POSIX, so do not add quotes.
2124 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2125 ;;
2126 esac >> confcache
2127if cmp -s $cache_file confcache; then
2128 :
2129else
2130 if test -w $cache_file; then
2131 echo "updating cache $cache_file"
2132 cat confcache > $cache_file
2133 else
2134 echo "not updating unwritable cache $cache_file"
2135 fi
2136fi
2137rm -f confcache
2138
2139
2140# Actually configure libtool. ac_aux_dir is where install-sh is found.
2141AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2142MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2143LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2144AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2145objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2146deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2147${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2148$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2149|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2150
2151# Reload cache, that may have been modified by ltconfig
2152if test -r "$cache_file"; then
2153 echo "loading cache $cache_file"
2154 . $cache_file
2155else
2156 echo "creating cache $cache_file"
2157 > $cache_file
2158fi
2159
2160
2161# This can be used to rebuild libtool when needed
2162LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2163
2164# Always use our own libtool.
2165LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2166
2167# Redirect the config.log output again, so that the ltconfig log is not
2168# clobbered by the next message.
2169exec 5>>./config.log
2170
2171
2172
2173
2174
2175
2176
2177
2178# Check whether --enable-targets or --disable-targets was given.
2179if test "${enable_targets+set}" = set; then
2180 enableval="$enable_targets"
2181 case "${enableval}" in
2182 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2183 ;;
2184 no) enable_targets= ;;
2185 *) enable_targets=$enableval ;;
2186esac
2187fi
2188# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2189if test "${enable_64_bit_bfd+set}" = set; then
2190 enableval="$enable_64_bit_bfd"
2191 case "${enableval}" in
2192 yes) want64=true ;;
2193 no) want64=false ;;
2194 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2195esac
2196else
2197 want64=false
2198fi
2199
2200build_warnings="-W -Wall"
2201# Check whether --enable-build-warnings or --disable-build-warnings was given.
2202if test "${enable_build_warnings+set}" = set; then
2203 enableval="$enable_build_warnings"
2204 case "${enableval}" in
2205 yes) ;;
2206 no) build_warnings="-w";;
2207 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2208 build_warnings="${build_warnings} ${t}";;
2209 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2210 build_warnings="${t} ${build_warnings}";;
2211 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2212esac
2213if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2214 echo "Setting warning flags = $build_warnings" 6>&1
2215fi
2216fi
2217WARN_CFLAGS=""
2218if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2219 WARN_CFLAGS="${build_warnings}"
2220fi
2221
2222
2223
2224
2225
2226
2227if test -z "$target" ; then
2228 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2229fi
2230if test -z "$host" ; then
2231 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2232fi
2233
2234# host-specific stuff:
2235
2236# Extract the first word of "gcc", so it can be a program name with args.
2237set dummy gcc; ac_word=$2
2238echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2239echo "configure:2240: checking for $ac_word" >&5
2240if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2242else
2243 if test -n "$CC"; then
2244 ac_cv_prog_CC="$CC" # Let the user override the test.
2245else
2246 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2247 ac_dummy="$PATH"
2248 for ac_dir in $ac_dummy; do
2249 test -z "$ac_dir" && ac_dir=.
2250 if test -f $ac_dir/$ac_word -o \
2251 -f $ac_dir/$ac_word$ac_exeext ; then
2252 ac_cv_prog_CC="gcc"
2253 break
2254 fi
2255 done
2256 IFS="$ac_save_ifs"
2257fi
2258fi
2259CC="$ac_cv_prog_CC"
2260if test -n "$CC"; then
2261 echo "$ac_t""$CC" 1>&6
2262else
2263 echo "$ac_t""no" 1>&6
2264fi
2265
2266if test -z "$CC"; then
2267 # Extract the first word of "cc", so it can be a program name with args.
2268set dummy cc; ac_word=$2
2269echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2270echo "configure:2271: checking for $ac_word" >&5
2271if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2272 echo $ac_n "(cached) $ac_c" 1>&6
2273else
2274 if test -n "$CC"; then
2275 ac_cv_prog_CC="$CC" # Let the user override the test.
2276else
2277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2278 ac_prog_rejected=no
2279 ac_dummy="$PATH"
2280 for ac_dir in $ac_dummy; do
2281 test -z "$ac_dir" && ac_dir=.
2282 if test -f $ac_dir/$ac_word -o \
2283 -f $ac_dir/$ac_word$ac_exeext ; then
2284 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
2285 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
2286 ac_prog_rejected=yes
2287 continue
2288 fi
2289 ac_cv_prog_CC="cc"
2290 break
2291 fi
2292 done
2293 IFS="$ac_save_ifs"
2294if test $ac_prog_rejected = yes; then
2295 # We found a bogon in the path, so make sure we never use it.
2296 set dummy $ac_cv_prog_CC
2297 shift
2298 if test $# -gt 0; then
2299 # We chose a different compiler from the bogus one.
2300 # However, it has the same basename, so the bogon will be chosen
2301 # first if we set CC to just the basename; use the full file name.
2302 shift
2303 set dummy "$ac_dir/$ac_word" "$@"
2304 shift
2305 ac_cv_prog_CC="$@"
2306 fi
2307fi
2308fi
2309fi
2310CC="$ac_cv_prog_CC"
2311if test -n "$CC"; then
2312 echo "$ac_t""$CC" 1>&6
2313else
2314 echo "$ac_t""no" 1>&6
2315fi
2316
2317 if test -z "$CC"; then
2318 case "`uname -s`" in
2319 *win32* | *WIN32*)
2320 # Extract the first word of "cl", so it can be a program name with args.
2321set dummy cl; ac_word=$2
2322echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2323echo "configure:2324: checking for $ac_word" >&5
2324if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2326else
2327 if test -n "$CC"; then
2328 ac_cv_prog_CC="$CC" # Let the user override the test.
2329else
2330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2331 ac_dummy="$PATH"
2332 for ac_dir in $ac_dummy; do
2333 test -z "$ac_dir" && ac_dir=.
2334 if test -f $ac_dir/$ac_word -o \
2335 -f $ac_dir/$ac_word$ac_exeext ; then
2336 ac_cv_prog_CC="cl"
2337 break
2338 fi
2339 done
2340 IFS="$ac_save_ifs"
2341fi
2342fi
2343CC="$ac_cv_prog_CC"
2344if test -n "$CC"; then
2345 echo "$ac_t""$CC" 1>&6
2346else
2347 echo "$ac_t""no" 1>&6
2348fi
2349 ;;
2350 esac
2351 fi
2352 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2353fi
2354
2355echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2356echo "configure:2357: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2357
2358ac_ext=c
2359# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2360ac_cpp='$CPP $CPPFLAGS'
2361ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2362ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2363cross_compiling=$ac_cv_prog_cc_cross
2364
2365cat > conftest.$ac_ext << EOF
2366
2367#line 2368 "configure"
2368#include "confdefs.h"
2369
2370main(){return(0);}
2371EOF
2372if { (eval echo configure:2373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2373 ac_cv_prog_cc_works=yes
2374 # If we can't run a trivial program, we are probably using a cross compiler.
2375 if (./conftest; exit) 2>/dev/null; then
2376 ac_cv_prog_cc_cross=no
2377 else
2378 ac_cv_prog_cc_cross=yes
2379 fi
2380else
2381 echo "configure: failed program was:" >&5
2382 cat conftest.$ac_ext >&5
2383 ac_cv_prog_cc_works=no
2384fi
2385rm -fr conftest*
2386ac_ext=c
2387# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2388ac_cpp='$CPP $CPPFLAGS'
2389ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2390ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2391cross_compiling=$ac_cv_prog_cc_cross
2392
2393echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2394if test $ac_cv_prog_cc_works = no; then
2395 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2396fi
2397echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2398echo "configure:2399: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2399echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2400cross_compiling=$ac_cv_prog_cc_cross
2401
2402echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2403echo "configure:2404: checking whether we are using GNU C" >&5
2404if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2406else
2407 cat > conftest.c <<EOF
2408#ifdef __GNUC__
2409 yes;
2410#endif
2411EOF
2412if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2413 ac_cv_prog_gcc=yes
2414else
2415 ac_cv_prog_gcc=no
2416fi
2417fi
2418
2419echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2420
2421if test $ac_cv_prog_gcc = yes; then
2422 GCC=yes
2423else
2424 GCC=
2425fi
2426
2427ac_test_CFLAGS="${CFLAGS+set}"
2428ac_save_CFLAGS="$CFLAGS"
2429CFLAGS=
2430echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2431echo "configure:2432: checking whether ${CC-cc} accepts -g" >&5
2432if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2433 echo $ac_n "(cached) $ac_c" 1>&6
2434else
2435 echo 'void f(){}' > conftest.c
2436if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2437 ac_cv_prog_cc_g=yes
2438else
2439 ac_cv_prog_cc_g=no
2440fi
2441rm -f conftest*
2442
2443fi
2444
2445echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2446if test "$ac_test_CFLAGS" = set; then
2447 CFLAGS="$ac_save_CFLAGS"
2448elif test $ac_cv_prog_cc_g = yes; then
2449 if test "$GCC" = yes; then
2450 CFLAGS="-g -O2"
2451 else
2452 CFLAGS="-g"
2453 fi
2454else
2455 if test "$GCC" = yes; then
2456 CFLAGS="-O2"
2457 else
2458 CFLAGS=
2459 fi
2460fi
2461
2462# Find a good install program. We prefer a C program (faster),
2463# so one script is as good as another. But avoid the broken or
2464# incompatible versions:
2465# SysV /etc/install, /usr/sbin/install
2466# SunOS /usr/etc/install
2467# IRIX /sbin/install
2468# AIX /bin/install
2469# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2470# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2471# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2472# ./install, which can be erroneously created by make from ./install.sh.
2473echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2474echo "configure:2475: checking for a BSD compatible install" >&5
2475if test -z "$INSTALL"; then
2476if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2477 echo $ac_n "(cached) $ac_c" 1>&6
2478else
2479 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
2480 for ac_dir in $PATH; do
2481 # Account for people who put trailing slashes in PATH elements.
2482 case "$ac_dir/" in
2483 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2484 # We reject the install program from OS/2 or W3.1
2485 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
2486 *)
2487 # OSF1 and SCO ODT 3.0 have their own names for install.
2488 # Don't use installbsd from OSF since it installs stuff as root
2489 # by default.
2490 for ac_prog in ginstall scoinst install; do
2491 if test -f $ac_dir/$ac_prog$ac_exeext; then
2492 if test $ac_prog = install &&
2493 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2494 # AIX install. It has an incompatible calling convention.
2495 :
2496 else
2497 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
2498 break 2
2499 fi
2500 fi
2501 done
2502 ;;
2503 esac
2504 done
2505 IFS="$ac_save_IFS"
2506
2507fi
2508 if test "${ac_cv_path_install+set}" = set; then
2509 INSTALL="$ac_cv_path_install"
2510 else
2511 # As a last resort, use the slow shell script. We don't cache a
2512 # path for INSTALL within a source directory, because that will
2513 # break other packages using the cache if that directory is
2514 # removed, or if the path is relative.
2515 INSTALL="$ac_install_sh"
2516 fi
2517fi
2518echo "$ac_t""$INSTALL" 1>&6
2519
2520# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2521# It thinks the first close brace ends the variable substitution.
2522test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2523
2524test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2525
2526test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2527
2528
2529ALL_LINGUAS=
2530echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2531echo "configure:2532: checking how to run the C preprocessor" >&5
2532# On Suns, sometimes $CPP names a directory.
2533if test -n "$CPP" && test -d "$CPP"; then
2534 CPP=
2535fi
2536if test -z "$CPP"; then
2537if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2539else
2540 # This must be in double quotes, not single quotes, because CPP may get
2541 # substituted into the Makefile and "${CC-cc}" will confuse make.
2542 CPP="${CC-cc} -E"
2543 # On the NeXT, cc -E runs the code through the compiler's parser,
2544 # not just through cpp.
2545 cat > conftest.$ac_ext <<EOF
2546#include <sys/types.h>
2547#line 2548 "configure"
2548#include "confdefs.h"
2549#include <assert.h>
2550Syntax Error
2551EOF
2552ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2553{ (eval echo configure:2554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2554ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2555if test -z "$ac_err"; then
2556 :
2557else
2558 echo "$ac_err" >&5
2559 echo "configure: failed program was:" >&5
2560 cat conftest.$ac_ext >&5
2561 rm -rf conftest*
2562 CPP="${CC-cc} -E -traditional-cpp"
2563 cat > conftest.$ac_ext <<EOF
2564#include <sys/types.h>
2565#line 2566 "configure"
2566#include "confdefs.h"
2567#include <assert.h>
2568Syntax Error
2569EOF
2570ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2571{ (eval echo configure:2572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2572ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2573if test -z "$ac_err"; then
2574 :
2575else
2576 echo "$ac_err" >&5
2577 echo "configure: failed program was:" >&5
2578 cat conftest.$ac_ext >&5
2579 rm -rf conftest*
2580 CPP="${CC-cc} -nologo -E"
2581 cat > conftest.$ac_ext <<EOF
2582#include <sys/types.h>
2583#line 2584 "configure"
2584#include "confdefs.h"
2585#include <assert.h>
2586Syntax Error
2587EOF
2588ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2589{ (eval echo configure:2590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2590ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2591if test -z "$ac_err"; then
2592 :
2593else
2594 echo "$ac_err" >&5
2595 echo "configure: failed program was:" >&5
2596 cat conftest.$ac_ext >&5
2597 rm -rf conftest*
2598 CPP=/lib/cpp
2599fi
2600rm -f conftest*
2601fi
2602rm -f conftest*
2603fi
2604rm -f conftest*
2605 ac_cv_prog_CPP="$CPP"
2606fi
2607 CPP="$ac_cv_prog_CPP"
2608else
2609 ac_cv_prog_CPP="$CPP"
2610fi
2611echo "$ac_t""$CPP" 1>&6
2612
2613# Extract the first word of "ranlib", so it can be a program name with args.
2614set dummy ranlib; ac_word=$2
2615echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2616echo "configure:2617: checking for $ac_word" >&5
2617if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2619else
2620 if test -n "$RANLIB"; then
2621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2622else
2623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2624 ac_dummy="$PATH"
2625 for ac_dir in $ac_dummy; do
2626 test -z "$ac_dir" && ac_dir=.
2627 if test -f $ac_dir/$ac_word -o \
2628 -f $ac_dir/$ac_word$ac_exeext ; then
2629 ac_cv_prog_RANLIB="ranlib"
2630 break
2631 fi
2632 done
2633 IFS="$ac_save_ifs"
2634 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2635fi
2636fi
2637RANLIB="$ac_cv_prog_RANLIB"
2638if test -n "$RANLIB"; then
2639 echo "$ac_t""$RANLIB" 1>&6
2640else
2641 echo "$ac_t""no" 1>&6
2642fi
2643
2644echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2645echo "configure:2646: checking for ANSI C header files" >&5
2646if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2648else
2649 cat > conftest.$ac_ext <<EOF
2650#include <sys/types.h>
2651#line 2652 "configure"
2652#include "confdefs.h"
2653#include <stdlib.h>
2654#include <stdarg.h>
2655#include <string.h>
2656#include <float.h>
2657EOF
2658ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2659{ (eval echo configure:2660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2660ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2661if test -z "$ac_err"; then
2662 rm -rf conftest*
2663 ac_cv_header_stdc=yes
2664else
2665 echo "$ac_err" >&5
2666 echo "configure: failed program was:" >&5
2667 cat conftest.$ac_ext >&5
2668 rm -rf conftest*
2669 ac_cv_header_stdc=no
2670fi
2671rm -f conftest*
2672
2673if test $ac_cv_header_stdc = yes; then
2674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2675cat > conftest.$ac_ext <<EOF
2676#line 2677 "configure"
2677#include "confdefs.h"
2678#include <string.h>
2679EOF
2680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2681 egrep "memchr" >/dev/null 2>&1; then
2682 :
2683else
2684 rm -rf conftest*
2685 ac_cv_header_stdc=no
2686fi
2687rm -f conftest*
2688
2689fi
2690
2691if test $ac_cv_header_stdc = yes; then
2692 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2693cat > conftest.$ac_ext <<EOF
2694#line 2695 "configure"
2695#include "confdefs.h"
2696#include <stdlib.h>
2697EOF
2698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2699 egrep "free" >/dev/null 2>&1; then
2700 :
2701else
2702 rm -rf conftest*
2703 ac_cv_header_stdc=no
2704fi
2705rm -f conftest*
2706
2707fi
2708
2709if test $ac_cv_header_stdc = yes; then
2710 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2711if test "$cross_compiling" = yes; then
2712 :
2713else
2714 cat > conftest.$ac_ext <<EOF
2715#line 2716 "configure"
2716#include "confdefs.h"
2717#include <ctype.h>
2718#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2719#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2720#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2721int main () { int i; for (i = 0; i < 256; i++)
2722if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2723exit (0); }
2724
2725EOF
2726if { (eval echo configure:2727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2727then
2728 :
2729else
2730 echo "configure: failed program was:" >&5
2731 cat conftest.$ac_ext >&5
2732 rm -fr conftest*
2733 ac_cv_header_stdc=no
2734fi
2735rm -fr conftest*
2736fi
2737
2738fi
2739fi
2740
2741echo "$ac_t""$ac_cv_header_stdc" 1>&6
2742if test $ac_cv_header_stdc = yes; then
2743 cat >> confdefs.h <<\EOF
2744#define STDC_HEADERS 1
2745EOF
2746
2747fi
2748
2749echo $ac_n "checking for working const""... $ac_c" 1>&6
2750echo "configure:2751: checking for working const" >&5
2751if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2753else
2754 cat > conftest.$ac_ext <<EOF
2755#line 2756 "configure"
2756#include "confdefs.h"
2757
2758int main() {
2759
2760/* Ultrix mips cc rejects this. */
2761typedef int charset[2]; const charset x;
2762/* SunOS 4.1.1 cc rejects this. */
2763char const *const *ccp;
2764char **p;
2765/* NEC SVR4.0.2 mips cc rejects this. */
2766struct point {int x, y;};
2767static struct point const zero = {0,0};
2768/* AIX XL C 1.02.0.0 rejects this.
2769 It does not let you subtract one const X* pointer from another in an arm
2770 of an if-expression whose if-part is not a constant expression */
2771const char *g = "string";
2772ccp = &g + (g ? g-g : 0);
2773/* HPUX 7.0 cc rejects these. */
2774++ccp;
2775p = (char**) ccp;
2776ccp = (char const *const *) p;
2777{ /* SCO 3.2v4 cc rejects this. */
2778 char *t;
2779 char const *s = 0 ? (char *) 0 : (char const *) 0;
2780
2781 *t++ = 0;
2782}
2783{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2784 int x[] = {25, 17};
2785 const int *foo = &x[0];
2786 ++foo;
2787}
2788{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2789 typedef const int *iptr;
2790 iptr p = 0;
2791 ++p;
2792}
2793{ /* AIX XL C 1.02.0.0 rejects this saying
2794 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2795 struct s { int j; const int *ap[3]; };
2796 struct s *b; b->j = 5;
2797}
2798{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2799 const int foo = 10;
2800}
2801
2802; return 0; }
2803EOF
2804if { (eval echo configure:2805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2805 rm -rf conftest*
2806 ac_cv_c_const=yes
2807else
2808 echo "configure: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2810 rm -rf conftest*
2811 ac_cv_c_const=no
2812fi
2813rm -f conftest*
2814fi
2815
2816echo "$ac_t""$ac_cv_c_const" 1>&6
2817if test $ac_cv_c_const = no; then
2818 cat >> confdefs.h <<\EOF
2819#define const
2820EOF
2821
2822fi
2823
2824echo $ac_n "checking for inline""... $ac_c" 1>&6
2825echo "configure:2826: checking for inline" >&5
2826if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2828else
2829 ac_cv_c_inline=no
2830for ac_kw in inline __inline__ __inline; do
2831 cat > conftest.$ac_ext <<EOF
2832#line 2833 "configure"
2833#include "confdefs.h"
2834
2835int main() {
2836} $ac_kw foo() {
2837; return 0; }
2838EOF
2839if { (eval echo configure:2840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2840 rm -rf conftest*
2841 ac_cv_c_inline=$ac_kw; break
2842else
2843 echo "configure: failed program was:" >&5
2844 cat conftest.$ac_ext >&5
2845fi
2846rm -f conftest*
2847done
2848
2849fi
2850
2851echo "$ac_t""$ac_cv_c_inline" 1>&6
2852case "$ac_cv_c_inline" in
2853 inline | yes) ;;
2854 no) cat >> confdefs.h <<\EOF
2855#define inline
2856EOF
2857 ;;
2858 *) cat >> confdefs.h <<EOF
2859#define inline $ac_cv_c_inline
2860EOF
2861 ;;
2862esac
2863
2864echo $ac_n "checking for off_t""... $ac_c" 1>&6
2865echo "configure:2866: checking for off_t" >&5
2866if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2868else
2869 cat > conftest.$ac_ext <<EOF
2870#line 2871 "configure"
2871#include "confdefs.h"
2872#include <sys/types.h>
2873#if STDC_HEADERS
2874#include <stdlib.h>
2875#include <stddef.h>
2876#endif
2877EOF
2878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2879 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2880 rm -rf conftest*
2881 ac_cv_type_off_t=yes
2882else
2883 rm -rf conftest*
2884 ac_cv_type_off_t=no
2885fi
2886rm -f conftest*
2887
2888fi
2889echo "$ac_t""$ac_cv_type_off_t" 1>&6
2890if test $ac_cv_type_off_t = no; then
2891 cat >> confdefs.h <<\EOF
2892#define off_t long
2893EOF
2894
2895fi
2896
2897echo $ac_n "checking for size_t""... $ac_c" 1>&6
2898echo "configure:2899: checking for size_t" >&5
2899if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2901else
2902 cat > conftest.$ac_ext <<EOF
2903#line 2904 "configure"
2904#include "confdefs.h"
2905#include <sys/types.h>
2906#if STDC_HEADERS
2907#include <stdlib.h>
2908#include <stddef.h>
2909#endif
2910EOF
2911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2912 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2913 rm -rf conftest*
2914 ac_cv_type_size_t=yes
2915else
2916 rm -rf conftest*
2917 ac_cv_type_size_t=no
2918fi
2919rm -f conftest*
2920
2921fi
2922echo "$ac_t""$ac_cv_type_size_t" 1>&6
2923if test $ac_cv_type_size_t = no; then
2924 cat >> confdefs.h <<\EOF
2925#define size_t unsigned
2926EOF
2927
2928fi
2929
2930# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2931# for constant arguments. Useless!
2932echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2933echo "configure:2934: checking for working alloca.h" >&5
2934if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2935 echo $ac_n "(cached) $ac_c" 1>&6
2936else
2937 cat > conftest.$ac_ext <<EOF
2938#line 2939 "configure"
2939#include "confdefs.h"
2940#include <alloca.h>
2941int main() {
2942char *p = alloca(2 * sizeof(int));
2943; return 0; }
2944EOF
2945if { (eval echo configure:2946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2946 rm -rf conftest*
2947 ac_cv_header_alloca_h=yes
2948else
2949 echo "configure: failed program was:" >&5
2950 cat conftest.$ac_ext >&5
2951 rm -rf conftest*
2952 ac_cv_header_alloca_h=no
2953fi
2954rm -f conftest*
2955fi
2956
2957echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2958if test $ac_cv_header_alloca_h = yes; then
2959 cat >> confdefs.h <<\EOF
2960#define HAVE_ALLOCA_H 1
2961EOF
2962
2963fi
2964
2965echo $ac_n "checking for alloca""... $ac_c" 1>&6
2966echo "configure:2967: checking for alloca" >&5
2967if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2968 echo $ac_n "(cached) $ac_c" 1>&6
2969else
2970 cat > conftest.$ac_ext <<EOF
2971#line 2972 "configure"
2972#include "confdefs.h"
2973
2974#ifdef __GNUC__
2975# define alloca __builtin_alloca
2976#else
2977# ifdef _MSC_VER
2978# include <malloc.h>
2979# define alloca _alloca
2980# else
2981# if HAVE_ALLOCA_H
2982# include <alloca.h>
2983# else
2984# ifdef _AIX
2985 #pragma alloca
2986# else
2987# ifndef alloca /* predefined by HP cc +Olibcalls */
2988char *alloca ();
2989# endif
2990# endif
2991# endif
2992# endif
2993#endif
2994
2995int main() {
2996char *p = (char *) alloca(1);
2997; return 0; }
2998EOF
2999if { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3000 rm -rf conftest*
3001 ac_cv_func_alloca_works=yes
3002else
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3005 rm -rf conftest*
3006 ac_cv_func_alloca_works=no
3007fi
3008rm -f conftest*
3009fi
3010
3011echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3012if test $ac_cv_func_alloca_works = yes; then
3013 cat >> confdefs.h <<\EOF
3014#define HAVE_ALLOCA 1
3015EOF
3016
3017fi
3018
3019if test $ac_cv_func_alloca_works = no; then
3020 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3021 # that cause trouble. Some versions do not even contain alloca or
3022 # contain a buggy version. If you still want to use their alloca,
3023 # use ar to extract alloca.o from them instead of compiling alloca.c.
3024 ALLOCA=alloca.${ac_objext}
3025 cat >> confdefs.h <<\EOF
3026#define C_ALLOCA 1
3027EOF
3028
3029
3030echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3031echo "configure:3032: checking whether alloca needs Cray hooks" >&5
3032if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3034else
3035 cat > conftest.$ac_ext <<EOF
3036#line 3037 "configure"
3037#include "confdefs.h"
3038#if defined(CRAY) && ! defined(CRAY2)
3039webecray
3040#else
3041wenotbecray
3042#endif
3043
3044EOF
3045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3046 egrep "webecray" >/dev/null 2>&1; then
3047 rm -rf conftest*
3048 ac_cv_os_cray=yes
3049else
3050 rm -rf conftest*
3051 ac_cv_os_cray=no
3052fi
3053rm -f conftest*
3054
3055fi
3056
3057echo "$ac_t""$ac_cv_os_cray" 1>&6
3058if test $ac_cv_os_cray = yes; then
3059for ac_func in _getb67 GETB67 getb67; do
3060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3061echo "configure:3062: checking for $ac_func" >&5
3062if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3064else
3065 cat > conftest.$ac_ext <<EOF
3066#line 3067 "configure"
3067#include "confdefs.h"
3068/* System header to define __stub macros and hopefully few prototypes,
3069 which can conflict with char $ac_func(); below. */
3070#include <assert.h>
3071/* Override any gcc2 internal prototype to avoid an error. */
3072/* We use char because int might match the return type of a gcc2
3073 builtin and then its argument prototype would still apply. */
3074char $ac_func();
3075
3076int main() {
3077
3078/* The GNU C library defines this for functions which it implements
3079 to always fail with ENOSYS. Some functions are actually named
3080 something starting with __ and the normal name is an alias. */
3081#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3082choke me
3083#else
3084$ac_func();
3085#endif
3086
3087; return 0; }
3088EOF
3089if { (eval echo configure:3090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3090 rm -rf conftest*
3091 eval "ac_cv_func_$ac_func=yes"
3092else
3093 echo "configure: failed program was:" >&5
3094 cat conftest.$ac_ext >&5
3095 rm -rf conftest*
3096 eval "ac_cv_func_$ac_func=no"
3097fi
3098rm -f conftest*
3099fi
3100
3101if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3102 echo "$ac_t""yes" 1>&6
3103 cat >> confdefs.h <<EOF
3104#define CRAY_STACKSEG_END $ac_func
3105EOF
3106
3107 break
3108else
3109 echo "$ac_t""no" 1>&6
3110fi
3111
3112done
3113fi
3114
3115echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3116echo "configure:3117: checking stack direction for C alloca" >&5
3117if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3119else
3120 if test "$cross_compiling" = yes; then
3121 ac_cv_c_stack_direction=0
3122else
3123 cat > conftest.$ac_ext <<EOF
3124#line 3125 "configure"
3125#include "confdefs.h"
3126find_stack_direction ()
3127{
3128 static char *addr = 0;
3129 auto char dummy;
3130 if (addr == 0)
3131 {
3132 addr = &dummy;
3133 return find_stack_direction ();
3134 }
3135 else
3136 return (&dummy > addr) ? 1 : -1;
3137}
3138main ()
3139{
3140 exit (find_stack_direction() < 0);
3141}
3142EOF
3143if { (eval echo configure:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3144then
3145 ac_cv_c_stack_direction=1
3146else
3147 echo "configure: failed program was:" >&5
3148 cat conftest.$ac_ext >&5
3149 rm -fr conftest*
3150 ac_cv_c_stack_direction=-1
3151fi
3152rm -fr conftest*
3153fi
3154
3155fi
3156
3157echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3158cat >> confdefs.h <<EOF
3159#define STACK_DIRECTION $ac_cv_c_stack_direction
3160EOF
3161
3162fi
3163
3164for ac_hdr in unistd.h
3165do
3166ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3167echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3168echo "configure:3169: checking for $ac_hdr" >&5
3169if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3170 echo $ac_n "(cached) $ac_c" 1>&6
3171else
3172 cat > conftest.$ac_ext <<EOF
3173#include <sys/types.h>
3174#line 3175 "configure"
3175#include "confdefs.h"
3176#include <$ac_hdr>
3177EOF
3178ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3179{ (eval echo configure:3180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3180ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3181if test -z "$ac_err"; then
3182 rm -rf conftest*
3183 eval "ac_cv_header_$ac_safe=yes"
3184else
3185 echo "$ac_err" >&5
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3188 rm -rf conftest*
3189 eval "ac_cv_header_$ac_safe=no"
3190fi
3191rm -f conftest*
3192fi
3193if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3194 echo "$ac_t""yes" 1>&6
3195 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3196 cat >> confdefs.h <<EOF
3197#define $ac_tr_hdr 1
3198EOF
3199
3200else
3201 echo "$ac_t""no" 1>&6
3202fi
3203done
3204
3205for ac_func in getpagesize
3206do
3207echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3208echo "configure:3209: checking for $ac_func" >&5
3209if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3210 echo $ac_n "(cached) $ac_c" 1>&6
3211else
3212 cat > conftest.$ac_ext <<EOF
3213#line 3214 "configure"
3214#include "confdefs.h"
3215/* System header to define __stub macros and hopefully few prototypes,
3216 which can conflict with char $ac_func(); below. */
3217#include <assert.h>
3218/* Override any gcc2 internal prototype to avoid an error. */
3219/* We use char because int might match the return type of a gcc2
3220 builtin and then its argument prototype would still apply. */
3221char $ac_func();
3222
3223int main() {
3224
3225/* The GNU C library defines this for functions which it implements
3226 to always fail with ENOSYS. Some functions are actually named
3227 something starting with __ and the normal name is an alias. */
3228#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3229choke me
3230#else
3231$ac_func();
3232#endif
3233
3234; return 0; }
3235EOF
3236if { (eval echo configure:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3237 rm -rf conftest*
3238 eval "ac_cv_func_$ac_func=yes"
3239else
3240 echo "configure: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3242 rm -rf conftest*
3243 eval "ac_cv_func_$ac_func=no"
3244fi
3245rm -f conftest*
3246fi
3247
3248if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3249 echo "$ac_t""yes" 1>&6
3250 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3251 cat >> confdefs.h <<EOF
3252#define $ac_tr_func 1
3253EOF
3254
3255else
3256 echo "$ac_t""no" 1>&6
3257fi
3258done
3259
3260echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3261echo "configure:3262: checking for working mmap" >&5
3262if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3263 echo $ac_n "(cached) $ac_c" 1>&6
3264else
3265 if test "$cross_compiling" = yes; then
3266 ac_cv_func_mmap_fixed_mapped=no
3267else
3268 cat > conftest.$ac_ext <<EOF
3269#line 3270 "configure"
3270#include "confdefs.h"
3271
3272/* Thanks to Mike Haertel and Jim Avera for this test.
3273 Here is a matrix of mmap possibilities:
3274 mmap private not fixed
3275 mmap private fixed at somewhere currently unmapped
3276 mmap private fixed at somewhere already mapped
3277 mmap shared not fixed
3278 mmap shared fixed at somewhere currently unmapped
3279 mmap shared fixed at somewhere already mapped
3280 For private mappings, we should verify that changes cannot be read()
3281 back from the file, nor mmap's back from the file at a different
3282 address. (There have been systems where private was not correctly
3283 implemented like the infamous i386 svr4.0, and systems where the
3284 VM page cache was not coherent with the filesystem buffer cache
3285 like early versions of FreeBSD and possibly contemporary NetBSD.)
3286 For shared mappings, we should conversely verify that changes get
3287 propogated back to all the places they're supposed to be.
3288
3289 Grep wants private fixed already mapped.
3290 The main things grep needs to know about mmap are:
3291 * does it exist and is it safe to write into the mmap'd area
3292 * how to use it (BSD variants) */
3293#include <sys/types.h>
3294#include <fcntl.h>
3295#include <sys/mman.h>
3296
3297/* This mess was copied from the GNU getpagesize.h. */
3298#ifndef HAVE_GETPAGESIZE
3299# ifdef HAVE_UNISTD_H
3300# include <unistd.h>
3301# endif
3302
3303/* Assume that all systems that can run configure have sys/param.h. */
3304# ifndef HAVE_SYS_PARAM_H
3305# define HAVE_SYS_PARAM_H 1
3306# endif
3307
3308# ifdef _SC_PAGESIZE
3309# define getpagesize() sysconf(_SC_PAGESIZE)
3310# else /* no _SC_PAGESIZE */
3311# ifdef HAVE_SYS_PARAM_H
3312# include <sys/param.h>
3313# ifdef EXEC_PAGESIZE
3314# define getpagesize() EXEC_PAGESIZE
3315# else /* no EXEC_PAGESIZE */
3316# ifdef NBPG
3317# define getpagesize() NBPG * CLSIZE
3318# ifndef CLSIZE
3319# define CLSIZE 1
3320# endif /* no CLSIZE */
3321# else /* no NBPG */
3322# ifdef NBPC
3323# define getpagesize() NBPC
3324# else /* no NBPC */
3325# ifdef PAGESIZE
3326# define getpagesize() PAGESIZE
3327# endif /* PAGESIZE */
3328# endif /* no NBPC */
3329# endif /* no NBPG */
3330# endif /* no EXEC_PAGESIZE */
3331# else /* no HAVE_SYS_PARAM_H */
3332# define getpagesize() 8192 /* punt totally */
3333# endif /* no HAVE_SYS_PARAM_H */
3334# endif /* no _SC_PAGESIZE */
3335
3336#endif /* no HAVE_GETPAGESIZE */
3337
3338#ifdef __cplusplus
3339extern "C" { void *malloc(unsigned); }
3340#else
3341char *malloc();
3342#endif
3343
3344int
3345main()
3346{
3347 char *data, *data2, *data3;
3348 int i, pagesize;
3349 int fd;
3350
3351 pagesize = getpagesize();
3352
3353 /*
3354 * First, make a file with some known garbage in it.
3355 */
3356 data = malloc(pagesize);
3357 if (!data)
3358 exit(1);
3359 for (i = 0; i < pagesize; ++i)
3360 *(data + i) = rand();
3361 umask(0);
3362 fd = creat("conftestmmap", 0600);
3363 if (fd < 0)
3364 exit(1);
3365 if (write(fd, data, pagesize) != pagesize)
3366 exit(1);
3367 close(fd);
3368
3369 /*
3370 * Next, try to mmap the file at a fixed address which
3371 * already has something else allocated at it. If we can,
3372 * also make sure that we see the same garbage.
3373 */
3374 fd = open("conftestmmap", O_RDWR);
3375 if (fd < 0)
3376 exit(1);
3377 data2 = malloc(2 * pagesize);
3378 if (!data2)
3379 exit(1);
3380 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3381 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3382 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3383 exit(1);
3384 for (i = 0; i < pagesize; ++i)
3385 if (*(data + i) != *(data2 + i))
3386 exit(1);
3387
3388 /*
3389 * Finally, make sure that changes to the mapped area
3390 * do not percolate back to the file as seen by read().
3391 * (This is a bug on some variants of i386 svr4.0.)
3392 */
3393 for (i = 0; i < pagesize; ++i)
3394 *(data2 + i) = *(data2 + i) + 1;
3395 data3 = malloc(pagesize);
3396 if (!data3)
3397 exit(1);
3398 if (read(fd, data3, pagesize) != pagesize)
3399 exit(1);
3400 for (i = 0; i < pagesize; ++i)
3401 if (*(data + i) != *(data3 + i))
3402 exit(1);
3403 close(fd);
3404 unlink("conftestmmap");
3405 exit(0);
3406}
3407
3408EOF
3409if { (eval echo configure:3410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3410then
3411 ac_cv_func_mmap_fixed_mapped=yes
3412else
3413 echo "configure: failed program was:" >&5
3414 cat conftest.$ac_ext >&5
3415 rm -fr conftest*
3416 ac_cv_func_mmap_fixed_mapped=no
3417fi
3418rm -fr conftest*
3419fi
3420
3421fi
3422
3423echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3424if test $ac_cv_func_mmap_fixed_mapped = yes; then
3425 cat >> confdefs.h <<\EOF
3426#define HAVE_MMAP 1
3427EOF
3428
3429fi
3430
3431
3432 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3433unistd.h values.h sys/param.h
3434do
3435ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3436echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3437echo "configure:3438: checking for $ac_hdr" >&5
3438if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3440else
3441 cat > conftest.$ac_ext <<EOF
3442#include <sys/types.h>
3443#line 3444 "configure"
3444#include "confdefs.h"
3445#include <$ac_hdr>
3446EOF
3447ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3448{ (eval echo configure:3449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3449ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3450if test -z "$ac_err"; then
3451 rm -rf conftest*
3452 eval "ac_cv_header_$ac_safe=yes"
3453else
3454 echo "$ac_err" >&5
3455 echo "configure: failed program was:" >&5
3456 cat conftest.$ac_ext >&5
3457 rm -rf conftest*
3458 eval "ac_cv_header_$ac_safe=no"
3459fi
3460rm -f conftest*
3461fi
3462if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3463 echo "$ac_t""yes" 1>&6
3464 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3465 cat >> confdefs.h <<EOF
3466#define $ac_tr_hdr 1
3467EOF
3468
3469else
3470 echo "$ac_t""no" 1>&6
3471fi
3472done
3473
3474 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3475__argz_count __argz_stringify __argz_next
3476do
3477echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3478echo "configure:3479: checking for $ac_func" >&5
3479if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3481else
3482 cat > conftest.$ac_ext <<EOF
3483#line 3484 "configure"
3484#include "confdefs.h"
3485/* System header to define __stub macros and hopefully few prototypes,
3486 which can conflict with char $ac_func(); below. */
3487#include <assert.h>
3488/* Override any gcc2 internal prototype to avoid an error. */
3489/* We use char because int might match the return type of a gcc2
3490 builtin and then its argument prototype would still apply. */
3491char $ac_func();
3492
3493int main() {
3494
3495/* The GNU C library defines this for functions which it implements
3496 to always fail with ENOSYS. Some functions are actually named
3497 something starting with __ and the normal name is an alias. */
3498#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3499choke me
3500#else
3501$ac_func();
3502#endif
3503
3504; return 0; }
3505EOF
3506if { (eval echo configure:3507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3507 rm -rf conftest*
3508 eval "ac_cv_func_$ac_func=yes"
3509else
3510 echo "configure: failed program was:" >&5
3511 cat conftest.$ac_ext >&5
3512 rm -rf conftest*
3513 eval "ac_cv_func_$ac_func=no"
3514fi
3515rm -f conftest*
3516fi
3517
3518if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3519 echo "$ac_t""yes" 1>&6
3520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3521 cat >> confdefs.h <<EOF
3522#define $ac_tr_func 1
3523EOF
3524
3525else
3526 echo "$ac_t""no" 1>&6
3527fi
3528done
3529
3530
3531 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3532 for ac_func in stpcpy
3533do
3534echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3535echo "configure:3536: checking for $ac_func" >&5
3536if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3538else
3539 cat > conftest.$ac_ext <<EOF
3540#line 3541 "configure"
3541#include "confdefs.h"
3542/* System header to define __stub macros and hopefully few prototypes,
3543 which can conflict with char $ac_func(); below. */
3544#include <assert.h>
3545/* Override any gcc2 internal prototype to avoid an error. */
3546/* We use char because int might match the return type of a gcc2
3547 builtin and then its argument prototype would still apply. */
3548char $ac_func();
3549
3550int main() {
3551
3552/* The GNU C library defines this for functions which it implements
3553 to always fail with ENOSYS. Some functions are actually named
3554 something starting with __ and the normal name is an alias. */
3555#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3556choke me
3557#else
3558$ac_func();
3559#endif
3560
3561; return 0; }
3562EOF
3563if { (eval echo configure:3564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3564 rm -rf conftest*
3565 eval "ac_cv_func_$ac_func=yes"
3566else
3567 echo "configure: failed program was:" >&5
3568 cat conftest.$ac_ext >&5
3569 rm -rf conftest*
3570 eval "ac_cv_func_$ac_func=no"
3571fi
3572rm -f conftest*
3573fi
3574
3575if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3576 echo "$ac_t""yes" 1>&6
3577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3578 cat >> confdefs.h <<EOF
3579#define $ac_tr_func 1
3580EOF
3581
3582else
3583 echo "$ac_t""no" 1>&6
3584fi
3585done
3586
3587 fi
3588 if test "${ac_cv_func_stpcpy}" = "yes"; then
3589 cat >> confdefs.h <<\EOF
3590#define HAVE_STPCPY 1
3591EOF
3592
3593 fi
3594
3595 if test $ac_cv_header_locale_h = yes; then
3596 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3597echo "configure:3598: checking for LC_MESSAGES" >&5
3598if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3600else
3601 cat > conftest.$ac_ext <<EOF
3602#line 3603 "configure"
3603#include "confdefs.h"
3604#include <locale.h>
3605int main() {
3606return LC_MESSAGES
3607; return 0; }
3608EOF
3609if { (eval echo configure:3610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3610 rm -rf conftest*
3611 am_cv_val_LC_MESSAGES=yes
3612else
3613 echo "configure: failed program was:" >&5
3614 cat conftest.$ac_ext >&5
3615 rm -rf conftest*
3616 am_cv_val_LC_MESSAGES=no
3617fi
3618rm -f conftest*
3619fi
3620
3621echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3622 if test $am_cv_val_LC_MESSAGES = yes; then
3623 cat >> confdefs.h <<\EOF
3624#define HAVE_LC_MESSAGES 1
3625EOF
3626
3627 fi
3628 fi
3629 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3630echo "configure:3631: checking whether NLS is requested" >&5
3631 # Check whether --enable-nls or --disable-nls was given.
3632if test "${enable_nls+set}" = set; then
3633 enableval="$enable_nls"
3634 USE_NLS=$enableval
3635else
3636 USE_NLS=yes
3637fi
3638
3639 echo "$ac_t""$USE_NLS" 1>&6
3640
3641
3642 USE_INCLUDED_LIBINTL=no
3643
3644 if test "$USE_NLS" = "yes"; then
3645 cat >> confdefs.h <<\EOF
3646#define ENABLE_NLS 1
3647EOF
3648
3649 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3650echo "configure:3651: checking whether included gettext is requested" >&5
3651 # Check whether --with-included-gettext or --without-included-gettext was given.
3652if test "${with_included_gettext+set}" = set; then
3653 withval="$with_included_gettext"
3654 nls_cv_force_use_gnu_gettext=$withval
3655else
3656 nls_cv_force_use_gnu_gettext=no
3657fi
3658
3659 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3660
3661 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3662 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3663 nls_cv_header_intl=
3664 nls_cv_header_libgt=
3665 CATOBJEXT=NONE
3666
3667 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3668echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3669echo "configure:3670: checking for libintl.h" >&5
3670if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3671 echo $ac_n "(cached) $ac_c" 1>&6
3672else
3673 cat > conftest.$ac_ext <<EOF
3674#include <sys/types.h>
3675#line 3676 "configure"
3676#include "confdefs.h"
3677#include <libintl.h>
3678EOF
3679ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3680{ (eval echo configure:3681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3681ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3682if test -z "$ac_err"; then
3683 rm -rf conftest*
3684 eval "ac_cv_header_$ac_safe=yes"
3685else
3686 echo "$ac_err" >&5
3687 echo "configure: failed program was:" >&5
3688 cat conftest.$ac_ext >&5
3689 rm -rf conftest*
3690 eval "ac_cv_header_$ac_safe=no"
3691fi
3692rm -f conftest*
3693fi
3694if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3695 echo "$ac_t""yes" 1>&6
3696 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3697echo "configure:3698: checking for gettext in libc" >&5
3698if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3699 echo $ac_n "(cached) $ac_c" 1>&6
3700else
3701 cat > conftest.$ac_ext <<EOF
3702#line 3703 "configure"
3703#include "confdefs.h"
3704#include <libintl.h>
3705int main() {
3706return (int) gettext ("")
3707; return 0; }
3708EOF
3709if { (eval echo configure:3710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3710 rm -rf conftest*
3711 gt_cv_func_gettext_libc=yes
3712else
3713 echo "configure: failed program was:" >&5
3714 cat conftest.$ac_ext >&5
3715 rm -rf conftest*
3716 gt_cv_func_gettext_libc=no
3717fi
3718rm -f conftest*
3719fi
3720
3721echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3722
3723 if test "$gt_cv_func_gettext_libc" != "yes"; then
3724 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3725echo "configure:3726: checking for bindtextdomain in -lintl" >&5
3726ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3727if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3729else
3730 ac_save_LIBS="$LIBS"
3731LIBS="-lintl $LIBS"
3732cat > conftest.$ac_ext <<EOF
3733#line 3734 "configure"
3734#include "confdefs.h"
3735/* Override any gcc2 internal prototype to avoid an error. */
3736/* We use char because int might match the return type of a gcc2
3737 builtin and then its argument prototype would still apply. */
3738char bindtextdomain();
3739
3740int main() {
3741bindtextdomain()
3742; return 0; }
3743EOF
3744if { (eval echo configure:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3745 rm -rf conftest*
3746 eval "ac_cv_lib_$ac_lib_var=yes"
3747else
3748 echo "configure: failed program was:" >&5
3749 cat conftest.$ac_ext >&5
3750 rm -rf conftest*
3751 eval "ac_cv_lib_$ac_lib_var=no"
3752fi
3753rm -f conftest*
3754LIBS="$ac_save_LIBS"
3755
3756fi
3757if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3758 echo "$ac_t""yes" 1>&6
3759 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3760echo "configure:3761: checking for gettext in libintl" >&5
3761if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3763else
3764 cat > conftest.$ac_ext <<EOF
3765#line 3766 "configure"
3766#include "confdefs.h"
3767
3768int main() {
3769return (int) gettext ("")
3770; return 0; }
3771EOF
3772if { (eval echo configure:3773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3773 rm -rf conftest*
3774 gt_cv_func_gettext_libintl=yes
3775else
3776 echo "configure: failed program was:" >&5
3777 cat conftest.$ac_ext >&5
3778 rm -rf conftest*
3779 gt_cv_func_gettext_libintl=no
3780fi
3781rm -f conftest*
3782fi
3783
3784echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3785else
3786 echo "$ac_t""no" 1>&6
3787fi
3788
3789 fi
3790
3791 if test "$gt_cv_func_gettext_libc" = "yes" \
3792 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3793 cat >> confdefs.h <<\EOF
3794#define HAVE_GETTEXT 1
3795EOF
3796
3797 # Extract the first word of "msgfmt", so it can be a program name with args.
3798set dummy msgfmt; ac_word=$2
3799echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3800echo "configure:3801: checking for $ac_word" >&5
3801if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3802 echo $ac_n "(cached) $ac_c" 1>&6
3803else
3804 case "$MSGFMT" in
3805 /*)
3806 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3807 ;;
3808 *)
3809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
3810 for ac_dir in $PATH; do
3811 test -z "$ac_dir" && ac_dir=.
3812 if test -f $ac_dir/$ac_word; then
3813 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3814 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3815 break
3816 fi
3817 fi
3818 done
3819 IFS="$ac_save_ifs"
3820 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3821 ;;
3822esac
3823fi
3824MSGFMT="$ac_cv_path_MSGFMT"
3825if test -n "$MSGFMT"; then
3826 echo "$ac_t""$MSGFMT" 1>&6
3827else
3828 echo "$ac_t""no" 1>&6
3829fi
3830 if test "$MSGFMT" != "no"; then
3831 for ac_func in dcgettext
3832do
3833echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3834echo "configure:3835: checking for $ac_func" >&5
3835if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3836 echo $ac_n "(cached) $ac_c" 1>&6
3837else
3838 cat > conftest.$ac_ext <<EOF
3839#line 3840 "configure"
3840#include "confdefs.h"
3841/* System header to define __stub macros and hopefully few prototypes,
3842 which can conflict with char $ac_func(); below. */
3843#include <assert.h>
3844/* Override any gcc2 internal prototype to avoid an error. */
3845/* We use char because int might match the return type of a gcc2
3846 builtin and then its argument prototype would still apply. */
3847char $ac_func();
3848
3849int main() {
3850
3851/* The GNU C library defines this for functions which it implements
3852 to always fail with ENOSYS. Some functions are actually named
3853 something starting with __ and the normal name is an alias. */
3854#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3855choke me
3856#else
3857$ac_func();
3858#endif
3859
3860; return 0; }
3861EOF
3862if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3863 rm -rf conftest*
3864 eval "ac_cv_func_$ac_func=yes"
3865else
3866 echo "configure: failed program was:" >&5
3867 cat conftest.$ac_ext >&5
3868 rm -rf conftest*
3869 eval "ac_cv_func_$ac_func=no"
3870fi
3871rm -f conftest*
3872fi
3873
3874if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3875 echo "$ac_t""yes" 1>&6
3876 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3877 cat >> confdefs.h <<EOF
3878#define $ac_tr_func 1
3879EOF
3880
3881else
3882 echo "$ac_t""no" 1>&6
3883fi
3884done
3885
3886 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3887set dummy gmsgfmt; ac_word=$2
3888echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3889echo "configure:3890: checking for $ac_word" >&5
3890if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3891 echo $ac_n "(cached) $ac_c" 1>&6
3892else
3893 case "$GMSGFMT" in
3894 /* | [a-zA-Z]:*)
3895 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3896 ;;
3897 ?:/*)
3898 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3899 ;;
3900 *)
3901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
3902 ac_dummy="$PATH"
3903 for ac_dir in $ac_dummy; do
3904 test -z "$ac_dir" && ac_dir=.
3905 if test -f $ac_dir/$ac_word; then
3906 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3907 break
3908 fi
3909 if test -f $ac_dir/$ac_word$ac_exeext; then
3910 ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
3911 break
3912 fi
3913 done
3914 IFS="$ac_save_ifs"
3915 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3916 ;;
3917esac
3918fi
3919GMSGFMT="$ac_cv_path_GMSGFMT"
3920if test -n "$GMSGFMT"; then
3921 echo "$ac_t""$GMSGFMT" 1>&6
3922else
3923 echo "$ac_t""no" 1>&6
3924fi
3925
3926 # Extract the first word of "xgettext", so it can be a program name with args.
3927set dummy xgettext; ac_word=$2
3928echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3929echo "configure:3930: checking for $ac_word" >&5
3930if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3931 echo $ac_n "(cached) $ac_c" 1>&6
3932else
3933 case "$XGETTEXT" in
3934 /*)
3935 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3936 ;;
3937 *)
3938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
3939 for ac_dir in $PATH; do
3940 test -z "$ac_dir" && ac_dir=.
3941 if test -f $ac_dir/$ac_word; then
3942 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3943 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3944 break
3945 fi
3946 fi
3947 done
3948 IFS="$ac_save_ifs"
3949 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3950 ;;
3951esac
3952fi
3953XGETTEXT="$ac_cv_path_XGETTEXT"
3954if test -n "$XGETTEXT"; then
3955 echo "$ac_t""$XGETTEXT" 1>&6
3956else
3957 echo "$ac_t""no" 1>&6
3958fi
3959
3960 cat > conftest.$ac_ext <<EOF
3961#line 3962 "configure"
3962#include "confdefs.h"
3963
3964int main() {
3965extern int _nl_msg_cat_cntr;
3966 return _nl_msg_cat_cntr
3967; return 0; }
3968EOF
3969if { (eval echo configure:3970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3970 rm -rf conftest*
3971 CATOBJEXT=.gmo
3972 DATADIRNAME=share
3973else
3974 echo "configure: failed program was:" >&5
3975 cat conftest.$ac_ext >&5
3976 rm -rf conftest*
3977 CATOBJEXT=.mo
3978 DATADIRNAME=lib
3979fi
3980rm -f conftest*
3981 INSTOBJEXT=.mo
3982 fi
3983 fi
3984
3985else
3986 echo "$ac_t""no" 1>&6
3987fi
3988
3989
3990
3991 if test "$CATOBJEXT" = "NONE"; then
3992 nls_cv_use_gnu_gettext=yes
3993 fi
3994 fi
3995
3996 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3997 INTLOBJS="\$(GETTOBJS)"
3998 # Extract the first word of "msgfmt", so it can be a program name with args.
3999set dummy msgfmt; ac_word=$2
4000echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4001echo "configure:4002: checking for $ac_word" >&5
4002if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4003 echo $ac_n "(cached) $ac_c" 1>&6
4004else
4005 case "$MSGFMT" in
4006 /*)
4007 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4008 ;;
4009 *)
4010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
4011 for ac_dir in $PATH; do
4012 test -z "$ac_dir" && ac_dir=.
4013 if test -f $ac_dir/$ac_word; then
4014 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4015 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4016 break
4017 fi
4018 fi
4019 done
4020 IFS="$ac_save_ifs"
4021 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4022 ;;
4023esac
4024fi
4025MSGFMT="$ac_cv_path_MSGFMT"
4026if test -n "$MSGFMT"; then
4027 echo "$ac_t""$MSGFMT" 1>&6
4028else
4029 echo "$ac_t""no" 1>&6
4030fi
4031
4032 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4033set dummy gmsgfmt; ac_word=$2
4034echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4035echo "configure:4036: checking for $ac_word" >&5
4036if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4037 echo $ac_n "(cached) $ac_c" 1>&6
4038else
4039 case "$GMSGFMT" in
4040 /* | [a-zA-Z]:*)
4041 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4042 ;;
4043 ?:/*)
4044 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4045 ;;
4046 *)
4047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
4048 ac_dummy="$PATH"
4049 for ac_dir in $ac_dummy; do
4050 test -z "$ac_dir" && ac_dir=.
4051 if test -f $ac_dir/$ac_word; then
4052 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4053 break
4054 fi
4055 if test -f $ac_dir/$ac_word$ac_exeext; then
4056 ac_cv_path_GMSGFMT="$ac_dir/$ac_word$ac_exeext"
4057 break
4058 fi
4059 done
4060 IFS="$ac_save_ifs"
4061 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4062 ;;
4063esac
4064fi
4065GMSGFMT="$ac_cv_path_GMSGFMT"
4066if test -n "$GMSGFMT"; then
4067 echo "$ac_t""$GMSGFMT" 1>&6
4068else
4069 echo "$ac_t""no" 1>&6
4070fi
4071
4072 # Extract the first word of "xgettext", so it can be a program name with args.
4073set dummy xgettext; ac_word=$2
4074echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4075echo "configure:4076: checking for $ac_word" >&5
4076if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4077 echo $ac_n "(cached) $ac_c" 1>&6
4078else
4079 case "$XGETTEXT" in
4080 /*)
4081 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4082 ;;
4083 *)
4084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}"
4085 for ac_dir in $PATH; do
4086 test -z "$ac_dir" && ac_dir=.
4087 if test -f $ac_dir/$ac_word; then
4088 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4089 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4090 break
4091 fi
4092 fi
4093 done
4094 IFS="$ac_save_ifs"
4095 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4096 ;;
4097esac
4098fi
4099XGETTEXT="$ac_cv_path_XGETTEXT"
4100if test -n "$XGETTEXT"; then
4101 echo "$ac_t""$XGETTEXT" 1>&6
4102else
4103 echo "$ac_t""no" 1>&6
4104fi
4105
4106
4107 USE_INCLUDED_LIBINTL=yes
4108 CATOBJEXT=.gmo
4109 INSTOBJEXT=.mo
4110 DATADIRNAME=share
4111 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4112 INTLLIBS=$INTLDEPS
4113 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4114 nls_cv_header_intl=libintl.h
4115 nls_cv_header_libgt=libgettext.h
4116 fi
4117
4118 if test "$XGETTEXT" != ":"; then
4119 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4120 : ;
4121 else
4122 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4123 XGETTEXT=":"
4124 fi
4125 fi
4126
4127 # We need to process the po/ directory.
4128 POSUB=po
4129 else
4130 DATADIRNAME=share
4131 nls_cv_header_intl=libintl.h
4132 nls_cv_header_libgt=libgettext.h
4133 fi
4134
4135 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4136 # because some of the sources are only built for this goal.
4137 if test "$PACKAGE" = gettext; then
4138 USE_NLS=yes
4139 USE_INCLUDED_LIBINTL=yes
4140 fi
4141
4142 for lang in $ALL_LINGUAS; do
4143 GMOFILES="$GMOFILES $lang.gmo"
4144 POFILES="$POFILES $lang.po"
4145 done
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160 if test "x$CATOBJEXT" != "x"; then
4161 if test "x$ALL_LINGUAS" = "x"; then
4162 LINGUAS=
4163 else
4164 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4165echo "configure:4166: checking for catalogs to be installed" >&5
4166 NEW_LINGUAS=
4167 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4168 case "$ALL_LINGUAS" in
4169 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4170 esac
4171 done
4172 LINGUAS=$NEW_LINGUAS
4173 echo "$ac_t""$LINGUAS" 1>&6
4174 fi
4175
4176 if test -n "$LINGUAS"; then
4177 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4178 fi
4179 fi
4180
4181 if test $ac_cv_header_locale_h = yes; then
4182 INCLUDE_LOCALE_H="#include <locale.h>"
4183 else
4184 INCLUDE_LOCALE_H="\
4185/* The system does not provide the header <locale.h>. Take care yourself. */"
4186 fi
4187
4188
4189 if test -f $srcdir/po2tbl.sed.in; then
4190 if test "$CATOBJEXT" = ".cat"; then
4191 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4192echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4193echo "configure:4194: checking for linux/version.h" >&5
4194if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4195 echo $ac_n "(cached) $ac_c" 1>&6
4196else
4197 cat > conftest.$ac_ext <<EOF
4198#include <sys/types.h>
4199#line 4200 "configure"
4200#include "confdefs.h"
4201#include <linux/version.h>
4202EOF
4203ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4204{ (eval echo configure:4205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4205ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4206if test -z "$ac_err"; then
4207 rm -rf conftest*
4208 eval "ac_cv_header_$ac_safe=yes"
4209else
4210 echo "$ac_err" >&5
4211 echo "configure: failed program was:" >&5
4212 cat conftest.$ac_ext >&5
4213 rm -rf conftest*
4214 eval "ac_cv_header_$ac_safe=no"
4215fi
4216rm -f conftest*
4217fi
4218if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4219 echo "$ac_t""yes" 1>&6
4220 msgformat=linux
4221else
4222 echo "$ac_t""no" 1>&6
4223msgformat=xopen
4224fi
4225
4226
4227 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4228 fi
4229 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4230 $srcdir/po2tbl.sed.in > po2tbl.sed
4231 fi
4232
4233 if test "$PACKAGE" = "gettext"; then
4234 GT_NO="#NO#"
4235 GT_YES=
4236 else
4237 GT_NO=
4238 GT_YES="#YES#"
4239 fi
4240
4241
4242
4243 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4244
4245
4246 l=
4247
4248
4249 if test -d $srcdir/po; then
4250 test -d po || mkdir po
4251 if test "x$srcdir" != "x."; then
4252 if test "x`echo $srcdir | sed -e 's@.\:/.*@@' -e 's@/.*@@' `" = "x"; then
4253 posrcprefix="$srcdir/"
4254 else
4255 posrcprefix="../$srcdir/"
4256 fi
4257 else
4258 posrcprefix="../"
4259 fi
4260 rm -f po/POTFILES
4261 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4262 < $srcdir/po/POTFILES.in > po/POTFILES
4263 fi
4264
4265
4266
4267
4268
4269echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4270echo "configure:4271: checking for executable suffix" >&5
4271if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4272 echo $ac_n "(cached) $ac_c" 1>&6
4273else
4274 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4275 ac_cv_exeext=.exe
4276else
4277 rm -f conftest*
4278 echo 'int main () { return 0; }' > conftest.$ac_ext
4279 ac_cv_exeext=
4280 if { (eval echo configure:4281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4281 for file in conftest.*; do
4282 case $file in
4283 *.c | *.o | *.obj) ;;
4284 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4285 esac
4286 done
4287 else
4288 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4289 fi
4290 rm -f conftest*
4291 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4292fi
4293fi
4294
4295EXEEXT=""
4296test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4297echo "$ac_t""${ac_cv_exeext}" 1>&6
4298ac_exeext=$EXEEXT
4299
4300
4301for ac_prog in 'bison -y' byacc
4302do
4303# Extract the first word of "$ac_prog", so it can be a program name with args.
4304set dummy $ac_prog; ac_word=$2
4305echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4306echo "configure:4307: checking for $ac_word" >&5
4307if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4308 echo $ac_n "(cached) $ac_c" 1>&6
4309else
4310 if test -n "$YACC"; then
4311 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4312else
4313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
4314 ac_dummy="$PATH"
4315 for ac_dir in $ac_dummy; do
4316 test -z "$ac_dir" && ac_dir=.
4317 if test -f $ac_dir/$ac_word -o \
4318 -f $ac_dir/$ac_word$ac_exeext ; then
4319 ac_cv_prog_YACC="$ac_prog"
4320 break
4321 fi
4322 done
4323 IFS="$ac_save_ifs"
4324fi
4325fi
4326YACC="$ac_cv_prog_YACC"
4327if test -n "$YACC"; then
4328 echo "$ac_t""$YACC" 1>&6
4329else
4330 echo "$ac_t""no" 1>&6
4331fi
4332
4333test -n "$YACC" && break
4334done
4335test -n "$YACC" || YACC="yacc"
4336
4337missing_dir=`cd $ac_aux_dir && pwd`
4338for ac_prog in flex lex
4339do
4340# Extract the first word of "$ac_prog", so it can be a program name with args.
4341set dummy $ac_prog; ac_word=$2
4342echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4343echo "configure:4344: checking for $ac_word" >&5
4344if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4345 echo $ac_n "(cached) $ac_c" 1>&6
4346else
4347 if test -n "$LEX"; then
4348 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4349else
4350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
4351 ac_dummy="$PATH"
4352 for ac_dir in $ac_dummy; do
4353 test -z "$ac_dir" && ac_dir=.
4354 if test -f $ac_dir/$ac_word -o \
4355 -f $ac_dir/$ac_word$ac_exeext ; then
4356 ac_cv_prog_LEX="$ac_prog"
4357 break
4358 fi
4359 done
4360 IFS="$ac_save_ifs"
4361fi
4362fi
4363LEX="$ac_cv_prog_LEX"
4364if test -n "$LEX"; then
4365 echo "$ac_t""$LEX" 1>&6
4366else
4367 echo "$ac_t""no" 1>&6
4368fi
4369
4370test -n "$LEX" && break
4371done
4372test -n "$LEX" || LEX=""$missing_dir/missing flex""
4373
4374# Extract the first word of "flex", so it can be a program name with args.
4375set dummy flex; ac_word=$2
4376echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4377echo "configure:4378: checking for $ac_word" >&5
4378if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4380else
4381 if test -n "$LEX"; then
4382 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4383else
4384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
4385 ac_dummy="$PATH"
4386 for ac_dir in $ac_dummy; do
4387 test -z "$ac_dir" && ac_dir=.
4388 if test -f $ac_dir/$ac_word -o \
4389 -f $ac_dir/$ac_word$ac_exeext ; then
4390 ac_cv_prog_LEX="flex"
4391 break
4392 fi
4393 done
4394 IFS="$ac_save_ifs"
4395 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
4396fi
4397fi
4398LEX="$ac_cv_prog_LEX"
4399if test -n "$LEX"; then
4400 echo "$ac_t""$LEX" 1>&6
4401else
4402 echo "$ac_t""no" 1>&6
4403fi
4404
4405if test -z "$LEXLIB"
4406then
4407 case "$LEX" in
4408 flex*) ac_lib=fl ;;
4409 *) ac_lib=l ;;
4410 esac
4411 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4412echo "configure:4413: checking for yywrap in -l$ac_lib" >&5
4413ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4414if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4415 echo $ac_n "(cached) $ac_c" 1>&6
4416else
4417 ac_save_LIBS="$LIBS"
4418LIBS="-l$ac_lib $LIBS"
4419cat > conftest.$ac_ext <<EOF
4420#line 4421 "configure"
4421#include "confdefs.h"
4422/* Override any gcc2 internal prototype to avoid an error. */
4423/* We use char because int might match the return type of a gcc2
4424 builtin and then its argument prototype would still apply. */
4425char yywrap();
4426
4427int main() {
4428yywrap()
4429; return 0; }
4430EOF
4431if { (eval echo configure:4432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4432 rm -rf conftest*
4433 eval "ac_cv_lib_$ac_lib_var=yes"
4434else
4435 echo "configure: failed program was:" >&5
4436 cat conftest.$ac_ext >&5
4437 rm -rf conftest*
4438 eval "ac_cv_lib_$ac_lib_var=no"
4439fi
4440rm -f conftest*
4441LIBS="$ac_save_LIBS"
4442
4443fi
4444if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4445 echo "$ac_t""yes" 1>&6
4446 LEXLIB="-l$ac_lib"
4447else
4448 echo "$ac_t""no" 1>&6
4449fi
4450
4451fi
4452
4453echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4454echo "configure:4455: checking lex output file root" >&5
4455if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4457else
4458 # The minimal lex program is just a single line: %%. But some broken lexes
4459# (Solaris, I think it was) want two %% lines, so accommodate them.
4460echo '%%
4461%%' | $LEX
4462if test -f lex.yy.c; then
4463 ac_cv_prog_lex_root=lex.yy
4464elif test -f lexyy.c; then
4465 ac_cv_prog_lex_root=lexyy
4466else
4467 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4468fi
4469fi
4470
4471echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4472LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4473
4474echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4475echo "configure:4476: checking whether yytext is a pointer" >&5
4476if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4477 echo $ac_n "(cached) $ac_c" 1>&6
4478else
4479 # POSIX says lex can declare yytext either as a pointer or an array; the
4480# default is implementation-dependent. Figure out which it is, since
4481# not all implementations provide the %pointer and %array declarations.
4482ac_cv_prog_lex_yytext_pointer=no
4483echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4484ac_save_LIBS="$LIBS"
4485LIBS="$LIBS $LEXLIB"
4486cat > conftest.$ac_ext <<EOF
4487#line 4488 "configure"
4488#include "confdefs.h"
4489`cat $LEX_OUTPUT_ROOT.c`
4490int main() {
4491
4492; return 0; }
4493EOF
4494if { (eval echo configure:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4495 rm -rf conftest*
4496 ac_cv_prog_lex_yytext_pointer=yes
4497else
4498 echo "configure: failed program was:" >&5
4499 cat conftest.$ac_ext >&5
4500fi
4501rm -f conftest*
4502LIBS="$ac_save_LIBS"
4503rm -f "${LEX_OUTPUT_ROOT}.c"
4504
4505fi
4506
4507echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4508if test $ac_cv_prog_lex_yytext_pointer = yes; then
4509 cat >> confdefs.h <<\EOF
4510#define YYTEXT_POINTER 1
4511EOF
4512
4513fi
4514
4515
4516echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4517echo "configure:4518: checking whether to enable maintainer-specific portions of Makefiles" >&5
4518 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4519if test "${enable_maintainer_mode+set}" = set; then
4520 enableval="$enable_maintainer_mode"
4521 USE_MAINTAINER_MODE=$enableval
4522else
4523 USE_MAINTAINER_MODE=no
4524fi
4525
4526 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4527
4528
4529if test $USE_MAINTAINER_MODE = yes; then
4530 MAINTAINER_MODE_TRUE=
4531 MAINTAINER_MODE_FALSE='#'
4532else
4533 MAINTAINER_MODE_TRUE='#'
4534 MAINTAINER_MODE_FALSE=
4535fi
4536 MAINT=$MAINTAINER_MODE_TRUE
4537
4538
4539
4540. ${srcdir}/configure.host
4541
4542
4543
4544
4545
4546
4547for ac_hdr in string.h strings.h stdlib.h unistd.h
4548do
4549ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4550echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4551echo "configure:4552: checking for $ac_hdr" >&5
4552if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4553 echo $ac_n "(cached) $ac_c" 1>&6
4554else
4555 cat > conftest.$ac_ext <<EOF
4556#include <sys/types.h>
4557#line 4558 "configure"
4558#include "confdefs.h"
4559#include <$ac_hdr>
4560EOF
4561ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4562{ (eval echo configure:4563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4563ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4564if test -z "$ac_err"; then
4565 rm -rf conftest*
4566 eval "ac_cv_header_$ac_safe=yes"
4567else
4568 echo "$ac_err" >&5
4569 echo "configure: failed program was:" >&5
4570 cat conftest.$ac_ext >&5
4571 rm -rf conftest*
4572 eval "ac_cv_header_$ac_safe=no"
4573fi
4574rm -f conftest*
4575fi
4576if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4577 echo "$ac_t""yes" 1>&6
4578 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4579 cat >> confdefs.h <<EOF
4580#define $ac_tr_hdr 1
4581EOF
4582
4583else
4584 echo "$ac_t""no" 1>&6
4585fi
4586done
4587
4588for ac_func in sbrk
4589do
4590echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4591echo "configure:4592: checking for $ac_func" >&5
4592if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4593 echo $ac_n "(cached) $ac_c" 1>&6
4594else
4595 cat > conftest.$ac_ext <<EOF
4596#line 4597 "configure"
4597#include "confdefs.h"
4598/* System header to define __stub macros and hopefully few prototypes,
4599 which can conflict with char $ac_func(); below. */
4600#include <assert.h>
4601/* Override any gcc2 internal prototype to avoid an error. */
4602/* We use char because int might match the return type of a gcc2
4603 builtin and then its argument prototype would still apply. */
4604char $ac_func();
4605
4606int main() {
4607
4608/* The GNU C library defines this for functions which it implements
4609 to always fail with ENOSYS. Some functions are actually named
4610 something starting with __ and the normal name is an alias. */
4611#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4612choke me
4613#else
4614$ac_func();
4615#endif
4616
4617; return 0; }
4618EOF
4619if { (eval echo configure:4620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4620 rm -rf conftest*
4621 eval "ac_cv_func_$ac_func=yes"
4622else
4623 echo "configure: failed program was:" >&5
4624 cat conftest.$ac_ext >&5
4625 rm -rf conftest*
4626 eval "ac_cv_func_$ac_func=no"
4627fi
4628rm -f conftest*
4629fi
4630
4631if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4632 echo "$ac_t""yes" 1>&6
4633 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4634 cat >> confdefs.h <<EOF
4635#define $ac_tr_func 1
4636EOF
4637
4638else
4639 echo "$ac_t""no" 1>&6
4640fi
4641done
4642
4643ac_header_dirent=no
4644for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4645do
4646ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4647echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4648echo "configure:4649: checking for $ac_hdr that defines DIR" >&5
4649if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4651else
4652 cat > conftest.$ac_ext <<EOF
4653#line 4654 "configure"
4654#include "confdefs.h"
4655#include <sys/types.h>
4656#include <$ac_hdr>
4657int main() {
4658DIR *dirp = 0;
4659; return 0; }
4660EOF
4661if { (eval echo configure:4662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4662 rm -rf conftest*
4663 eval "ac_cv_header_dirent_$ac_safe=yes"
4664else
4665 echo "configure: failed program was:" >&5
4666 cat conftest.$ac_ext >&5
4667 rm -rf conftest*
4668 eval "ac_cv_header_dirent_$ac_safe=no"
4669fi
4670rm -f conftest*
4671fi
4672if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4673 echo "$ac_t""yes" 1>&6
4674 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4675 cat >> confdefs.h <<EOF
4676#define $ac_tr_hdr 1
4677EOF
4678 ac_header_dirent=$ac_hdr; break
4679else
4680 echo "$ac_t""no" 1>&6
4681fi
4682done
4683# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4684if test $ac_header_dirent = dirent.h; then
4685echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4686echo "configure:4687: checking for opendir in -ldir" >&5
4687ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4688if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4689 echo $ac_n "(cached) $ac_c" 1>&6
4690else
4691 ac_save_LIBS="$LIBS"
4692LIBS="-ldir $LIBS"
4693cat > conftest.$ac_ext <<EOF
4694#line 4695 "configure"
4695#include "confdefs.h"
4696/* Override any gcc2 internal prototype to avoid an error. */
4697/* We use char because int might match the return type of a gcc2
4698 builtin and then its argument prototype would still apply. */
4699char opendir();
4700
4701int main() {
4702opendir()
4703; return 0; }
4704EOF
4705if { (eval echo configure:4706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4706 rm -rf conftest*
4707 eval "ac_cv_lib_$ac_lib_var=yes"
4708else
4709 echo "configure: failed program was:" >&5
4710 cat conftest.$ac_ext >&5
4711 rm -rf conftest*
4712 eval "ac_cv_lib_$ac_lib_var=no"
4713fi
4714rm -f conftest*
4715LIBS="$ac_save_LIBS"
4716
4717fi
4718if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4719 echo "$ac_t""yes" 1>&6
4720 LIBS="$LIBS -ldir"
4721else
4722 echo "$ac_t""no" 1>&6
4723fi
4724
4725else
4726echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4727echo "configure:4728: checking for opendir in -lx" >&5
4728ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4729if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4730 echo $ac_n "(cached) $ac_c" 1>&6
4731else
4732 ac_save_LIBS="$LIBS"
4733LIBS="-lx $LIBS"
4734cat > conftest.$ac_ext <<EOF
4735#line 4736 "configure"
4736#include "confdefs.h"
4737/* Override any gcc2 internal prototype to avoid an error. */
4738/* We use char because int might match the return type of a gcc2
4739 builtin and then its argument prototype would still apply. */
4740char opendir();
4741
4742int main() {
4743opendir()
4744; return 0; }
4745EOF
4746if { (eval echo configure:4747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4747 rm -rf conftest*
4748 eval "ac_cv_lib_$ac_lib_var=yes"
4749else
4750 echo "configure: failed program was:" >&5
4751 cat conftest.$ac_ext >&5
4752 rm -rf conftest*
4753 eval "ac_cv_lib_$ac_lib_var=no"
4754fi
4755rm -f conftest*
4756LIBS="$ac_save_LIBS"
4757
4758fi
4759if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4760 echo "$ac_t""yes" 1>&6
4761 LIBS="$LIBS -lx"
4762else
4763 echo "$ac_t""no" 1>&6
4764fi
4765
4766fi
4767
4768
4769
4770case "${host}" in
4771*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows* | *-*-os2*)
4772 cat >> confdefs.h <<\EOF
4773#define USE_BINARY_FOPEN 1
4774EOF
4775 ;;
4776esac
4777
4778echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4779echo "configure:4780: checking whether strstr must be declared" >&5
4780if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4781 echo $ac_n "(cached) $ac_c" 1>&6
4782else
4783 cat > conftest.$ac_ext <<EOF
4784#line 4785 "configure"
4785#include "confdefs.h"
4786
4787#include <stdio.h>
4788#ifdef HAVE_STRING_H
4789#include <string.h>
4790#else
4791#ifdef HAVE_STRINGS_H
4792#include <strings.h>
4793#endif
4794#endif
4795#ifdef HAVE_STDLIB_H
4796#include <stdlib.h>
4797#endif
4798#ifdef HAVE_UNISTD_H
4799#include <unistd.h>
4800#endif
4801int main() {
4802char *(*pfn) = (char *(*)) strstr
4803; return 0; }
4804EOF
4805if { (eval echo configure:4806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4806 rm -rf conftest*
4807 bfd_cv_decl_needed_strstr=no
4808else
4809 echo "configure: failed program was:" >&5
4810 cat conftest.$ac_ext >&5
4811 rm -rf conftest*
4812 bfd_cv_decl_needed_strstr=yes
4813fi
4814rm -f conftest*
4815fi
4816
4817echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4818if test $bfd_cv_decl_needed_strstr = yes; then
4819 cat >> confdefs.h <<\EOF
4820#define NEED_DECLARATION_STRSTR 1
4821EOF
4822
4823fi
4824
4825echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4826echo "configure:4827: checking whether free must be declared" >&5
4827if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4829else
4830 cat > conftest.$ac_ext <<EOF
4831#line 4832 "configure"
4832#include "confdefs.h"
4833
4834#include <stdio.h>
4835#ifdef HAVE_STRING_H
4836#include <string.h>
4837#else
4838#ifdef HAVE_STRINGS_H
4839#include <strings.h>
4840#endif
4841#endif
4842#ifdef HAVE_STDLIB_H
4843#include <stdlib.h>
4844#endif
4845#ifdef HAVE_UNISTD_H
4846#include <unistd.h>
4847#endif
4848int main() {
4849char *(*pfn) = (char *(*)) free
4850; return 0; }
4851EOF
4852if { (eval echo configure:4853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4853 rm -rf conftest*
4854 bfd_cv_decl_needed_free=no
4855else
4856 echo "configure: failed program was:" >&5
4857 cat conftest.$ac_ext >&5
4858 rm -rf conftest*
4859 bfd_cv_decl_needed_free=yes
4860fi
4861rm -f conftest*
4862fi
4863
4864echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4865if test $bfd_cv_decl_needed_free = yes; then
4866 cat >> confdefs.h <<\EOF
4867#define NEED_DECLARATION_FREE 1
4868EOF
4869
4870fi
4871
4872echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
4873echo "configure:4874: checking whether sbrk must be declared" >&5
4874if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4876else
4877 cat > conftest.$ac_ext <<EOF
4878#line 4879 "configure"
4879#include "confdefs.h"
4880
4881#include <stdio.h>
4882#ifdef HAVE_STRING_H
4883#include <string.h>
4884#else
4885#ifdef HAVE_STRINGS_H
4886#include <strings.h>
4887#endif
4888#endif
4889#ifdef HAVE_STDLIB_H
4890#include <stdlib.h>
4891#endif
4892#ifdef HAVE_UNISTD_H
4893#include <unistd.h>
4894#endif
4895int main() {
4896char *(*pfn) = (char *(*)) sbrk
4897; return 0; }
4898EOF
4899if { (eval echo configure:4900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4900 rm -rf conftest*
4901 bfd_cv_decl_needed_sbrk=no
4902else
4903 echo "configure: failed program was:" >&5
4904 cat conftest.$ac_ext >&5
4905 rm -rf conftest*
4906 bfd_cv_decl_needed_sbrk=yes
4907fi
4908rm -f conftest*
4909fi
4910
4911echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
4912if test $bfd_cv_decl_needed_sbrk = yes; then
4913 cat >> confdefs.h <<\EOF
4914#define NEED_DECLARATION_SBRK 1
4915EOF
4916
4917fi
4918
4919echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4920echo "configure:4921: checking whether getenv must be declared" >&5
4921if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4923else
4924 cat > conftest.$ac_ext <<EOF
4925#line 4926 "configure"
4926#include "confdefs.h"
4927
4928#include <stdio.h>
4929#ifdef HAVE_STRING_H
4930#include <string.h>
4931#else
4932#ifdef HAVE_STRINGS_H
4933#include <strings.h>
4934#endif
4935#endif
4936#ifdef HAVE_STDLIB_H
4937#include <stdlib.h>
4938#endif
4939#ifdef HAVE_UNISTD_H
4940#include <unistd.h>
4941#endif
4942int main() {
4943char *(*pfn) = (char *(*)) getenv
4944; return 0; }
4945EOF
4946if { (eval echo configure:4947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4947 rm -rf conftest*
4948 bfd_cv_decl_needed_getenv=no
4949else
4950 echo "configure: failed program was:" >&5
4951 cat conftest.$ac_ext >&5
4952 rm -rf conftest*
4953 bfd_cv_decl_needed_getenv=yes
4954fi
4955rm -f conftest*
4956fi
4957
4958echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4959if test $bfd_cv_decl_needed_getenv = yes; then
4960 cat >> confdefs.h <<\EOF
4961#define NEED_DECLARATION_GETENV 1
4962EOF
4963
4964fi
4965
4966echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
4967echo "configure:4968: checking whether environ must be declared" >&5
4968if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
4969 echo $ac_n "(cached) $ac_c" 1>&6
4970else
4971 cat > conftest.$ac_ext <<EOF
4972#line 4973 "configure"
4973#include "confdefs.h"
4974
4975#include <stdio.h>
4976#ifdef HAVE_STRING_H
4977#include <string.h>
4978#else
4979#ifdef HAVE_STRINGS_H
4980#include <strings.h>
4981#endif
4982#endif
4983#ifdef HAVE_STDLIB_H
4984#include <stdlib.h>
4985#endif
4986#ifdef HAVE_UNISTD_H
4987#include <unistd.h>
4988#endif
4989int main() {
4990char *(*pfn) = (char *(*)) environ
4991; return 0; }
4992EOF
4993if { (eval echo configure:4994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4994 rm -rf conftest*
4995 bfd_cv_decl_needed_environ=no
4996else
4997 echo "configure: failed program was:" >&5
4998 cat conftest.$ac_ext >&5
4999 rm -rf conftest*
5000 bfd_cv_decl_needed_environ=yes
5001fi
5002rm -f conftest*
5003fi
5004
5005echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
5006if test $bfd_cv_decl_needed_environ = yes; then
5007 cat >> confdefs.h <<\EOF
5008#define NEED_DECLARATION_ENVIRON 1
5009EOF
5010
5011fi
5012
5013
5014# When converting linker scripts into strings for use in emulation
5015# files, use astring.sed if the compiler supports ANSI string
5016# concatenation, or ostring.sed otherwise. This is to support the
5017# broken Microsoft MSVC compiler, which limits the length of string
5018# constants, while still supporting pre-ANSI compilers which do not
5019# support string concatenation.
5020echo $ac_n "checking whether ANSI C string concatenation works""... $ac_c" 1>&6
5021echo "configure:5022: checking whether ANSI C string concatenation works" >&5
5022if eval "test \"`echo '$''{'ld_cv_string_concatenation'+set}'`\" = set"; then
5023 echo $ac_n "(cached) $ac_c" 1>&6
5024else
5025 cat > conftest.$ac_ext <<EOF
5026#line 5027 "configure"
5027#include "confdefs.h"
5028
5029int main() {
5030char *a = "a" "a";
5031; return 0; }
5032EOF
5033if { (eval echo configure:5034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5034 rm -rf conftest*
5035 ld_cv_string_concatenation=yes
5036else
5037 echo "configure: failed program was:" >&5
5038 cat conftest.$ac_ext >&5
5039 rm -rf conftest*
5040 ld_cv_string_concatenation=no
5041fi
5042rm -f conftest*
5043fi
5044
5045echo "$ac_t""$ld_cv_string_concatenation" 1>&6
5046if test "$ld_cv_string_concatenation" = "yes"; then
5047 STRINGIFY=astring.sed
5048else
5049 STRINGIFY=ostring.sed
5050fi
5051
5052
5053# target-specific stuff:
5054
5055all_targets=
5056EMUL=
5057all_emuls=
5058all_emul_extras=
5059all_libpath=
5060
5061rm -f tdirs
5062
5063for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5064do
5065 if test "$targ_alias" = "all"; then
5066 all_targets=true
5067 else
5068 # Canonicalize the secondary target names.
5069 result=`$ac_config_sub $targ_alias 2>/dev/null`
5070 if test -n "$result"; then
5071 targ=$result
5072 else
5073 targ=$targ_alias
5074 fi
5075
5076 . ${srcdir}/configure.tgt
5077
5078 if test "$targ" = "$target"; then
5079 EMUL=$targ_emul
5080 fi
5081
5082 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
5083 case " $all_emuls " in
5084 *" e${i}.o "*) ;;
5085 *)
5086 all_emuls="$all_emuls e${i}.o"
5087 eval result=\$tdir_$i
5088 test -z "$result" && result=$targ_alias
5089 echo tdir_$i=$result >> tdirs
5090 ;;
5091 esac
5092 done
5093
5094 for i in $targ_emul $targ_extra_libpath; do
5095 case " $all_libpath " in
5096 *" ${i} "*) ;;
5097 *)
5098 if test -z "$all_libpath"; then
5099 all_libpath=${i}
5100 else
5101 all_libpath="$all_libpath ${i}"
5102 fi
5103 ;;
5104 esac
5105 done
5106
5107 for i in $targ_extra_ofiles; do
5108 case " $all_emul_extras " in
5109 *" ${i} "*) ;;
5110 *)
5111 all_emul_extras="$all_emul_extras ${i}"
5112 ;;
5113 esac
5114 done
5115 fi
5116done
5117
5118
5119
5120TDIRS=tdirs
5121
5122
5123if test x${all_targets} = xtrue; then
5124 if test x${want64} = xtrue; then
5125 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
5126 else
5127 EMULATION_OFILES='$(ALL_EMULATIONS)'
5128 fi
5129 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
5130else
5131 EMULATION_OFILES=$all_emuls
5132 EMUL_EXTRA_OFILES=$all_emul_extras
5133fi
5134
5135
5136
5137EMULATION_LIBPATH=$all_libpath
5138
5139
5140if test x${enable_static} = xno; then
5141 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
5142else
5143 TESTBFDLIB="../bfd/.libs/libbfd.a"
5144fi
5145
5146
5147target_vendor=${target_vendor=$host_vendor}
5148case "$target_vendor" in
5149 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
5150 *) EXTRA_SHLIB_EXTENSION= ;;
5151esac
5152if test x${EXTRA_SHLIB_EXTENSION} != x ; then
5153 cat >> confdefs.h <<EOF
5154#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
5155EOF
5156
5157fi
5158
5159trap '' 1 2 15
5160cat > confcache <<\EOF
5161# This file is a shell script that caches the results of configure
5162# tests run on this system so they can be shared between configure
5163# scripts and configure runs. It is not useful on other systems.
5164# If it contains results you don't want to keep, you may remove or edit it.
5165#
5166# By default, configure uses ./config.cache as the cache file,
5167# creating it if it does not exist already. You can give configure
5168# the --cache-file=FILE option to use a different cache file; that is
5169# what configure does when it calls configure scripts in
5170# subdirectories, so they share the cache.
5171# Giving --cache-file=/dev/null disables caching, for debugging configure.
5172# config.status only pays attention to the cache file if you give it the
5173# --recheck option to rerun configure.
5174#
5175EOF
5176# The following way of writing the cache mishandles newlines in values,
5177# but we know of no workaround that is simple, portable, and efficient.
5178# So, don't put newlines in cache variables' values.
5179# Ultrix sh set writes to stderr and can't be redirected directly,
5180# and sets the high bit in the cache file unless we assign to the vars.
5181(set) 2>&1 |
5182 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5183 *ac_space=\ *)
5184 # `set' does not quote correctly, so add quotes (double-quote substitution
5185 # turns \\\\ into \\, and sed turns \\ into \).
5186 sed -n \
5187 -e "s/'/'\\\\''/g" \
5188 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5189 ;;
5190 *)
5191 # `set' quotes correctly as required by POSIX, so do not add quotes.
5192 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5193 ;;
5194 esac >> confcache
5195if cmp -s $cache_file confcache; then
5196 :
5197else
5198 if test -w $cache_file; then
5199 echo "updating cache $cache_file"
5200 cat confcache > $cache_file
5201 else
5202 echo "not updating unwritable cache $cache_file"
5203 fi
5204fi
5205rm -f confcache
5206
5207trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5208
5209test "x$prefix" = xNONE && prefix=$ac_default_prefix
5210# Let make expand exec_prefix.
5211test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5212
5213# Any assignment to VPATH causes Sun make to only execute
5214# the first set of double-colon rules, so remove it if not needed.
5215# If there is a colon in the path, we need to keep it.
5216if test "x$srcdir" = x.; then
5217 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5218fi
5219
5220trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5221
5222DEFS=-DHAVE_CONFIG_H
5223
5224# Without the "./", some shells look in PATH for config.status.
5225: ${CONFIG_STATUS=./config.status}
5226
5227echo creating $CONFIG_STATUS
5228rm -f $CONFIG_STATUS
5229cat > $CONFIG_STATUS <<EOF
5230#! /bin/sh
5231# Generated automatically by configure.
5232# Run this file to recreate the current configuration.
5233# This directory was configured as follows,
5234EOF
5235echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
5236cat >> $CONFIG_STATUS <<EOF
5237# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5238#
5239# $0 $ac_configure_args
5240#
5241# Compiler output produced by configure, useful for debugging
5242# configure, is in ./config.log if it exists.
5243
5244ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5245for ac_option
5246do
5247 case "\$ac_option" in
5248 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5249 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5250 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5251 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5252 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5253 exit 0 ;;
5254 -help | --help | --hel | --he | --h)
5255 echo "\$ac_cs_usage"; exit 0 ;;
5256 *) echo "\$ac_cs_usage"; exit 1 ;;
5257 esac
5258done
5259
5260ac_given_srcdir=$srcdir
5261ac_given_INSTALL="$INSTALL"
5262PATHIFS="$PATH_IFS"
5263
5264trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5265EOF
5266cat >> $CONFIG_STATUS <<EOF
5267
5268# Protect against being on the right side of a sed subst in config.status.
5269sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5270 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5271$ac_vpsub
5272$extrasub
5273s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
5274s%@SHELL@%$SHELL%g
5275s%@CFLAGS@%$CFLAGS%g
5276s%@CPPFLAGS@%$CPPFLAGS%g
5277s%@CXXFLAGS@%$CXXFLAGS%g
5278s%@FFLAGS@%$FFLAGS%g
5279s%@DEFS@%$DEFS%g
5280s%@LDFLAGS@%$LDFLAGS%g
5281s%@LIBS@%$LIBS%g
5282s%@exec_prefix@%$exec_prefix%g
5283s%@prefix@%$prefix%g
5284s%@program_transform_name@%$program_transform_name%g
5285s%@bindir@%$bindir%g
5286s%@sbindir@%$sbindir%g
5287s%@libexecdir@%$libexecdir%g
5288s%@datadir@%$datadir%g
5289s%@sysconfdir@%$sysconfdir%g
5290s%@sharedstatedir@%$sharedstatedir%g
5291s%@localstatedir@%$localstatedir%g
5292s%@libdir@%$libdir%g
5293s%@includedir@%$includedir%g
5294s%@oldincludedir@%$oldincludedir%g
5295s%@infodir@%$infodir%g
5296s%@mandir@%$mandir%g
5297s%@PATH_IFS@%$PATH_IFS%g
5298s%@EXEEXT@%$EXEEXT%g
5299s%@host@%$host%g
5300s%@host_alias@%$host_alias%g
5301s%@host_cpu@%$host_cpu%g
5302s%@host_vendor@%$host_vendor%g
5303s%@host_os@%$host_os%g
5304s%@target@%$target%g
5305s%@target_alias@%$target_alias%g
5306s%@target_cpu@%$target_cpu%g
5307s%@target_vendor@%$target_vendor%g
5308s%@target_os@%$target_os%g
5309s%@build@%$build%g
5310s%@build_alias@%$build_alias%g
5311s%@build_cpu@%$build_cpu%g
5312s%@build_vendor@%$build_vendor%g
5313s%@build_os@%$build_os%g
5314s%@CC@%$CC%g
5315s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5316s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5317s%@INSTALL_DATA@%$INSTALL_DATA%g
5318s%@PACKAGE@%$PACKAGE%g
5319s%@VERSION@%$VERSION%g
5320s%@ACLOCAL@%$ACLOCAL%g
5321s%@AUTOCONF@%$AUTOCONF%g
5322s%@AUTOMAKE@%$AUTOMAKE%g
5323s%@AUTOHEADER@%$AUTOHEADER%g
5324s%@MAKEINFO@%$MAKEINFO%g
5325s%@SET_MAKE@%$SET_MAKE%g
5326s%@LN_S@%$LN_S%g
5327s%@OBJEXT@%$OBJEXT%g
5328s%@RANLIB@%$RANLIB%g
5329s%@STRIP@%$STRIP%g
5330s%@LIBTOOL@%$LIBTOOL%g
5331s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5332s%@CPP@%$CPP%g
5333s%@ALLOCA@%$ALLOCA%g
5334s%@USE_NLS@%$USE_NLS%g
5335s%@MSGFMT@%$MSGFMT%g
5336s%@GMSGFMT@%$GMSGFMT%g
5337s%@XGETTEXT@%$XGETTEXT%g
5338s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5339s%@CATALOGS@%$CATALOGS%g
5340s%@CATOBJEXT@%$CATOBJEXT%g
5341s%@DATADIRNAME@%$DATADIRNAME%g
5342s%@GMOFILES@%$GMOFILES%g
5343s%@INSTOBJEXT@%$INSTOBJEXT%g
5344s%@INTLDEPS@%$INTLDEPS%g
5345s%@INTLLIBS@%$INTLLIBS%g
5346s%@INTLOBJS@%$INTLOBJS%g
5347s%@POFILES@%$POFILES%g
5348s%@POSUB@%$POSUB%g
5349s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5350s%@GT_NO@%$GT_NO%g
5351s%@GT_YES@%$GT_YES%g
5352s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5353s%@l@%$l%g
5354s%@YACC@%$YACC%g
5355s%@LEX@%$LEX%g
5356s%@LEXLIB@%$LEXLIB%g
5357s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5358s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5359s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5360s%@MAINT@%$MAINT%g
5361s%@HDEFINES@%$HDEFINES%g
5362s%@HOSTING_CRT0@%$HOSTING_CRT0%g
5363s%@HOSTING_LIBS@%$HOSTING_LIBS%g
5364s%@NATIVE_LIB_DIRS@%$NATIVE_LIB_DIRS%g
5365s%@STRINGIFY@%$STRINGIFY%g
5366s%@EMUL@%$EMUL%g
5367/@TDIRS@/r $TDIRS
5368s%@TDIRS@%%g
5369s%@EMULATION_OFILES@%$EMULATION_OFILES%g
5370s%@EMUL_EXTRA_OFILES@%$EMUL_EXTRA_OFILES%g
5371s%@EMULATION_LIBPATH@%$EMULATION_LIBPATH%g
5372s%@TESTBFDLIB@%$TESTBFDLIB%g
5373
5374CEOF
5375EOF
5376
5377cat >> $CONFIG_STATUS <<\EOF
5378
5379# Split the substitutions into bite-sized pieces for seds with
5380# small command number limits, like on Digital OSF/1 and HP-UX.
5381ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5382ac_file=1 # Number of current file.
5383ac_beg=1 # First line for current file.
5384ac_end=$ac_max_sed_cmds # Line after last line for current file.
5385ac_more_lines=:
5386ac_sed_cmds=""
5387while $ac_more_lines; do
5388 if test $ac_beg -gt 1; then
5389 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5390 else
5391 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5392 fi
5393 if test ! -s conftest.s$ac_file; then
5394 ac_more_lines=false
5395 rm -f conftest.s$ac_file
5396 else
5397 if test -z "$ac_sed_cmds"; then
5398 ac_sed_cmds="sed -f conftest.s$ac_file"
5399 else
5400 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5401 fi
5402 ac_file=`expr $ac_file + 1`
5403 ac_beg=$ac_end
5404 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5405 fi
5406done
5407if test -z "$ac_sed_cmds"; then
5408 ac_sed_cmds=cat
5409fi
5410EOF
5411
5412cat >> $CONFIG_STATUS <<EOF
5413
5414CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
5415EOF
5416cat >> $CONFIG_STATUS <<\EOF
5417for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5418 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5419 case "$ac_file" in
5420 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5421 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5422 *) ac_file_in="${ac_file}.in" ;;
5423 esac
5424
5425 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5426
5427 # Remove last slash and all that follows it. Not all systems have dirname.
5428 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5429 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5430 # The file is in a subdirectory.
5431 test ! -d "$ac_dir" && mkdir "$ac_dir"
5432 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5433 # A "../" for each directory in $ac_dir_suffix.
5434 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5435 else
5436 ac_dir_suffix= ac_dots=
5437 fi
5438
5439 case "$ac_given_srcdir" in
5440 .) srcdir=.
5441 if test -z "$ac_dots"; then top_srcdir=.
5442 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5443 /* | [A-Za-z]:*)
5444 srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5445 *) # Relative path.
5446 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5447 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5448 esac
5449
5450 case "$ac_given_INSTALL" in
5451 [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
5452 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5453 esac
5454
5455 echo creating "$ac_file"
5456 rm -f "$ac_file"
5457 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5458 case "$ac_file" in
5459 *Makefile*) ac_comsub="1i\\
5460# $configure_input" ;;
5461 *) ac_comsub= ;;
5462 esac
5463
5464 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
5465 sed -e "$ac_comsub
5466s%@configure_input@%$configure_input%g
5467s%@srcdir@%$srcdir%g
5468s%@top_srcdir@%$top_srcdir%g
5469s%@INSTALL@%$INSTALL%g
5470" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5471fi; done
5472rm -f conftest.s*
5473
5474# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5475# NAME is the cpp macro being defined and VALUE is the value it is being given.
5476#
5477# ac_d sets the value in "#define NAME VALUE" lines.
5478ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5479ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5480ac_dC='\3'
5481ac_dD='%g'
5482# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5483ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5484ac_uB='\([ ]\)%\1#\2define\3'
5485ac_uC=' '
5486ac_uD='\4%g'
5487# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5488ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5489ac_eB='$%\1#\2define\3'
5490ac_eC=' '
5491ac_eD='%g'
5492
5493if test "${CONFIG_HEADERS+set}" != set; then
5494EOF
5495cat >> $CONFIG_STATUS <<EOF
5496 CONFIG_HEADERS="config.h:config.in"
5497EOF
5498cat >> $CONFIG_STATUS <<\EOF
5499fi
5500for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5501 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5502 case "$ac_file" in
5503 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5504 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5505 *) ac_file_in="${ac_file}.in" ;;
5506 esac
5507
5508 echo creating $ac_file
5509
5510 rm -f conftest.frag conftest.in conftest.out
5511# kso the other way around might work better with drive letters and such.
5512# ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5513 ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
5514 cat $ac_file_inputs > conftest.in
5515
5516EOF
5517
5518# Transform confdefs.h into a sed script conftest.vals that substitutes
5519# the proper values into config.h.in to produce config.h. And first:
5520# Protect against being on the right side of a sed subst in config.status.
5521# Protect against being in an unquoted here document in config.status.
5522rm -f conftest.vals
5523cat > conftest.hdr <<\EOF
5524s/[\\&%]/\\&/g
5525s%[\\$`]%\\&%g
5526s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5527s%ac_d%ac_u%gp
5528s%ac_u%ac_e%gp
5529EOF
5530sed -n -f conftest.hdr confdefs.h > conftest.vals
5531rm -f conftest.hdr
5532
5533# This sed command replaces #undef with comments. This is necessary, for
5534# example, in the case of _POSIX_SOURCE, which is predefined and required
5535# on some systems where configure will not decide to define it.
5536cat >> conftest.vals <<\EOF
5537s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5538EOF
5539
5540# Break up conftest.vals because some shells have a limit on
5541# the size of here documents, and old seds have small limits too.
5542
5543rm -f conftest.tail
5544while :
5545do
5546 ac_lines=`grep -c . conftest.vals`
5547 # grep -c gives empty output for an empty file on some AIX systems.
5548 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5549 # Write a limited-size here document to conftest.frag.
5550 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5551 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5552 echo 'CEOF
5553 sed -f conftest.frag conftest.in > conftest.out
5554 rm -f conftest.in
5555 mv conftest.out conftest.in
5556' >> $CONFIG_STATUS
5557 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5558 rm -f conftest.vals
5559 mv conftest.tail conftest.vals
5560done
5561rm -f conftest.vals
5562
5563cat >> $CONFIG_STATUS <<\EOF
5564 rm -f conftest.frag conftest.h
5565 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5566 cat conftest.in >> conftest.h
5567 rm -f conftest.in
5568 if cmp -s $ac_file conftest.h 2>/dev/null; then
5569 echo "$ac_file is unchanged"
5570 rm -f conftest.h
5571 else
5572 # Remove last slash and all that follows it. Not all systems have dirname.
5573 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5574 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5575 # The file is in a subdirectory.
5576 test ! -d "$ac_dir" && mkdir "$ac_dir"
5577 fi
5578 rm -f $ac_file
5579 mv conftest.h $ac_file
5580 fi
5581fi; done
5582
5583EOF
5584cat >> $CONFIG_STATUS <<EOF
5585
5586
5587EOF
5588cat >> $CONFIG_STATUS <<\EOF
5589test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5590sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5591exit 0
5592EOF
5593chmod +x $CONFIG_STATUS
5594rm -fr confdefs* $ac_clean_files
5595test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5596
Note: See TracBrowser for help on using the repository browser.