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