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