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