2002-01-27 Daniel Jacobowitz <drow@mvista.com>
[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 1525hpux10.20*|hpux11*)
4867be41
DJ
1526 case $host_cpu in
1527 hppa*)
1528 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1529 lt_cv_file_magic_cmd=/usr/bin/file
1530 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1531 ;;
1532 ia64*)
1533 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1534 lt_cv_file_magic_cmd=/usr/bin/file
1535 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1536 ;;
1537 esac
ac48eca1
AO
1538 ;;
1539
1540irix5* | irix6*)
6be7c12c 1541 case $host_os in
ac48eca1
AO
1542 irix5*)
1543 # this will be overridden with pass_all, but let us keep it just in case
1544 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1545 ;;
1546 *)
6be7c12c 1547 case $LD in
ac48eca1
AO
1548 *-32|*"-32 ") libmagic=32-bit;;
1549 *-n32|*"-n32 ") libmagic=N32;;
1550 *-64|*"-64 ") libmagic=64-bit;;
1551 *) libmagic=never-match;;
1552 esac
1553 # this will be overridden with pass_all, but let us keep it just in case
6be7c12c
AO
1554 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1555 ;;
ac48eca1
AO
1556 esac
1557 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1558 lt_cv_deplibs_check_method=pass_all
1559 ;;
1560
1561# This must be Linux ELF.
17a94bb6 1562linux-gnu*)
6be7c12c
AO
1563 case $host_cpu in
1564 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
1565 lt_cv_deplibs_check_method=pass_all ;;
1566 *)
1567 # glibc up to 2.1.1 does not perform some relocations on ARM
6be7c12c
AO
1568 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1569 esac
ac48eca1
AO
1570 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1571 ;;
1572
1573netbsd*)
6be7c12c
AO
1574 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1575 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 1576 else
6be7c12c 1577 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1
AO
1578 fi
1579 ;;
1580
6be7c12c
AO
1581newsos6)
1582 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1583 lt_cv_file_magic_cmd=/usr/bin/file
1584 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1585 ;;
1586
ac48eca1
AO
1587osf3* | osf4* | osf5*)
1588 # this will be overridden with pass_all, but let us keep it just in case
1589 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1590 lt_cv_file_magic_test_file=/shlib/libc.so
1591 lt_cv_deplibs_check_method=pass_all
1592 ;;
1593
1594sco3.2v5*)
1595 lt_cv_deplibs_check_method=pass_all
1596 ;;
1597
1598solaris*)
1599 lt_cv_deplibs_check_method=pass_all
1600 lt_cv_file_magic_test_file=/lib/libc.so
1601 ;;
1602
6be7c12c
AO
1603sysv5uw[78]* | sysv4*uw2*)
1604 lt_cv_deplibs_check_method=pass_all
1605 ;;
1606
ac48eca1 1607sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6be7c12c 1608 case $host_vendor in
ac48eca1
AO
1609 ncr)
1610 lt_cv_deplibs_check_method=pass_all
1611 ;;
1612 motorola)
6be7c12c
AO
1613 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]'
1614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
1615 ;;
1616 esac
1617 ;;
1618esac
1619
1620fi
1621
1622echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1623file_magic_cmd=$lt_cv_file_magic_cmd
1624deplibs_check_method=$lt_cv_deplibs_check_method
1625
1626echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4867be41 1627echo "configure:1628: checking for object suffix" >&5
ac48eca1
AO
1628if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1630else
1631 rm -f conftest*
1632echo 'int i = 1;' > conftest.$ac_ext
4867be41 1633if { (eval echo configure:1634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ac48eca1
AO
1634 for ac_file in conftest.*; do
1635 case $ac_file in
1636 *.c) ;;
1637 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1638 esac
1639 done
1640else
1641 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1642fi
1643rm -f conftest*
1644fi
1645
1646echo "$ac_t""$ac_cv_objext" 1>&6
1647OBJEXT=$ac_cv_objext
1648ac_objext=$ac_cv_objext
1649
1650
1651
1652echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4867be41 1653echo "configure:1654: checking for executable suffix" >&5
ac48eca1
AO
1654if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1655 echo $ac_n "(cached) $ac_c" 1>&6
1656else
1657 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1658 ac_cv_exeext=.exe
1659else
1660 rm -f conftest*
1661 echo 'int main () { return 0; }' > conftest.$ac_ext
1662 ac_cv_exeext=
4867be41 1663 if { (eval echo configure:1664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
ac48eca1
AO
1664 for file in conftest.*; do
1665 case $file in
3c62831e 1666 *.c | *.o | *.obj) ;;
ac48eca1
AO
1667 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1668 esac
1669 done
1670 else
1671 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1672 fi
1673 rm -f conftest*
1674 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1675fi
1676fi
1677
1678EXEEXT=""
1679test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1680echo "$ac_t""${ac_cv_exeext}" 1>&6
1681ac_exeext=$EXEEXT
1682
1683if test $host != $build; then
1684 ac_tool_prefix=${host_alias}-
1685else
1686 ac_tool_prefix=
1687fi
1688
1689# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1690
1691# Only perform the check for file, if the check method requires it
6be7c12c 1692case $deplibs_check_method in
ac48eca1 1693file_magic*)
d64552c5 1694 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
ac48eca1 1695 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4867be41 1696echo "configure:1697: checking for ${ac_tool_prefix}file" >&5
d64552c5 1697if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
ac48eca1
AO
1698 echo $ac_n "(cached) $ac_c" 1>&6
1699else
6be7c12c 1700 case $MAGIC_CMD in
ac48eca1 1701 /*)
d64552c5 1702 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
1703 ;;
1704 ?:/*)
d64552c5 1705 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
1706 ;;
1707 *)
d64552c5 1708 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
1709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1710 ac_dummy="/usr/bin:$PATH"
1711 for ac_dir in $ac_dummy; do
1712 test -z "$ac_dir" && ac_dir=.
1713 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 1714 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 1715 if test -n "$file_magic_test_file"; then
6be7c12c 1716 case $deplibs_check_method in
ac48eca1
AO
1717 "file_magic "*)
1718 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 1719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
1720 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1721 egrep "$file_magic_regex" > /dev/null; then
1722 :
1723 else
1724 cat <<EOF 1>&2
1725
1726*** Warning: the command libtool uses to detect shared libraries,
1727*** $file_magic_cmd, produces output that libtool cannot recognize.
1728*** The result is that libtool may fail to recognize shared libraries
1729*** as such. This will affect the creation of libtool libraries that
1730*** depend on shared libraries, but programs linked with such libtool
1731*** libraries will work regardless of this problem. Nevertheless, you
1732*** may want to report the problem to your system manager and/or to
1733*** bug-libtool@gnu.org
1734
1735EOF
1736 fi ;;
1737 esac
1738 fi
1739 break
1740 fi
1741 done
1742 IFS="$ac_save_ifs"
d64552c5 1743 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
1744 ;;
1745esac
1746fi
1747
d64552c5
AO
1748MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1749if test -n "$MAGIC_CMD"; then
1750 echo "$ac_t""$MAGIC_CMD" 1>&6
ac48eca1
AO
1751else
1752 echo "$ac_t""no" 1>&6
1753fi
1754
d64552c5 1755if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1
AO
1756 if test -n "$ac_tool_prefix"; then
1757 echo $ac_n "checking for file""... $ac_c" 1>&6
4867be41 1758echo "configure:1759: checking for file" >&5
d64552c5 1759if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
ac48eca1
AO
1760 echo $ac_n "(cached) $ac_c" 1>&6
1761else
6be7c12c 1762 case $MAGIC_CMD in
ac48eca1 1763 /*)
d64552c5 1764 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
1765 ;;
1766 ?:/*)
d64552c5 1767 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
1768 ;;
1769 *)
d64552c5 1770 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
1771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1772 ac_dummy="/usr/bin:$PATH"
1773 for ac_dir in $ac_dummy; do
1774 test -z "$ac_dir" && ac_dir=.
1775 if test -f $ac_dir/file; then
d64552c5 1776 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 1777 if test -n "$file_magic_test_file"; then
6be7c12c 1778 case $deplibs_check_method in
ac48eca1
AO
1779 "file_magic "*)
1780 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 1781 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
1782 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1783 egrep "$file_magic_regex" > /dev/null; then
1784 :
1785 else
1786 cat <<EOF 1>&2
1787
1788*** Warning: the command libtool uses to detect shared libraries,
1789*** $file_magic_cmd, produces output that libtool cannot recognize.
1790*** The result is that libtool may fail to recognize shared libraries
1791*** as such. This will affect the creation of libtool libraries that
1792*** depend on shared libraries, but programs linked with such libtool
1793*** libraries will work regardless of this problem. Nevertheless, you
1794*** may want to report the problem to your system manager and/or to
1795*** bug-libtool@gnu.org
1796
1797EOF
1798 fi ;;
1799 esac
1800 fi
1801 break
1802 fi
1803 done
1804 IFS="$ac_save_ifs"
d64552c5 1805 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
1806 ;;
1807esac
1808fi
1809
d64552c5
AO
1810MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1811if test -n "$MAGIC_CMD"; then
1812 echo "$ac_t""$MAGIC_CMD" 1>&6
ac48eca1
AO
1813else
1814 echo "$ac_t""no" 1>&6
1815fi
1816
1817 else
d64552c5 1818 MAGIC_CMD=:
ac48eca1
AO
1819 fi
1820fi
252b5132 1821
ac48eca1
AO
1822 fi
1823 ;;
5af11cab 1824esac
252b5132 1825
ac48eca1
AO
1826# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1827set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1828echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4867be41 1829echo "configure:1830: checking for $ac_word" >&5
ac48eca1
AO
1830if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1832else
1833 if test -n "$RANLIB"; then
1834 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1835else
1836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1837 ac_dummy="$PATH"
1838 for ac_dir in $ac_dummy; do
1839 test -z "$ac_dir" && ac_dir=.
1840 if test -f $ac_dir/$ac_word; then
1841 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1842 break
1843 fi
1844 done
1845 IFS="$ac_save_ifs"
1846fi
1847fi
1848RANLIB="$ac_cv_prog_RANLIB"
1849if test -n "$RANLIB"; then
1850 echo "$ac_t""$RANLIB" 1>&6
1851else
1852 echo "$ac_t""no" 1>&6
1853fi
1854
1855
1856if test -z "$ac_cv_prog_RANLIB"; then
1857if test -n "$ac_tool_prefix"; then
1858 # Extract the first word of "ranlib", so it can be a program name with args.
1859set dummy ranlib; ac_word=$2
1860echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4867be41 1861echo "configure:1862: checking for $ac_word" >&5
ac48eca1
AO
1862if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1864else
1865 if test -n "$RANLIB"; then
1866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1867else
1868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1869 ac_dummy="$PATH"
1870 for ac_dir in $ac_dummy; do
1871 test -z "$ac_dir" && ac_dir=.
1872 if test -f $ac_dir/$ac_word; then
1873 ac_cv_prog_RANLIB="ranlib"
1874 break
1875 fi
1876 done
1877 IFS="$ac_save_ifs"
1878 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1879fi
1880fi
1881RANLIB="$ac_cv_prog_RANLIB"
1882if test -n "$RANLIB"; then
1883 echo "$ac_t""$RANLIB" 1>&6
1884else
1885 echo "$ac_t""no" 1>&6
1886fi
1887
1888else
1889 RANLIB=":"
1890fi
1891fi
1892
1893# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1894set dummy ${ac_tool_prefix}strip; ac_word=$2
1895echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4867be41 1896echo "configure:1897: checking for $ac_word" >&5
ac48eca1
AO
1897if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1899else
1900 if test -n "$STRIP"; then
1901 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1902else
1903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1904 ac_dummy="$PATH"
1905 for ac_dir in $ac_dummy; do
1906 test -z "$ac_dir" && ac_dir=.
1907 if test -f $ac_dir/$ac_word; then
1908 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1909 break
1910 fi
1911 done
1912 IFS="$ac_save_ifs"
1913fi
1914fi
1915STRIP="$ac_cv_prog_STRIP"
1916if test -n "$STRIP"; then
1917 echo "$ac_t""$STRIP" 1>&6
1918else
1919 echo "$ac_t""no" 1>&6
1920fi
1921
1922
1923if test -z "$ac_cv_prog_STRIP"; then
1924if test -n "$ac_tool_prefix"; then
1925 # Extract the first word of "strip", so it can be a program name with args.
1926set dummy strip; ac_word=$2
1927echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4867be41 1928echo "configure:1929: checking for $ac_word" >&5
ac48eca1
AO
1929if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1931else
1932 if test -n "$STRIP"; then
1933 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1934else
1935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1936 ac_dummy="$PATH"
1937 for ac_dir in $ac_dummy; do
1938 test -z "$ac_dir" && ac_dir=.
1939 if test -f $ac_dir/$ac_word; then
1940 ac_cv_prog_STRIP="strip"
1941 break
1942 fi
1943 done
1944 IFS="$ac_save_ifs"
1945 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1946fi
1947fi
1948STRIP="$ac_cv_prog_STRIP"
1949if test -n "$STRIP"; then
1950 echo "$ac_t""$STRIP" 1>&6
1951else
1952 echo "$ac_t""no" 1>&6
1953fi
1954
1955else
1956 STRIP=":"
1957fi
1958fi
1959
1960
252b5132
RH
1961# Check for any special flags to pass to ltconfig.
1962libtool_flags="--cache-file=$cache_file"
1963test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1964test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1965test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
6be7c12c
AO
1966test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1967test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 1968
5af11cab
AM
1969
1970# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1971if test "${enable_libtool_lock+set}" = set; then
1972 enableval="$enable_libtool_lock"
1973 :
1974fi
1975
1976test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1977test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1978
ac48eca1
AO
1979# Check whether --with-pic or --without-pic was given.
1980if test "${with_pic+set}" = set; then
1981 withval="$with_pic"
1982 pic_mode="$withval"
1983else
1984 pic_mode=default
1985fi
1986
1987test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1988test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1989
252b5132
RH
1990# Some flags need to be propagated to the compiler or linker for good
1991# libtool support.
6be7c12c 1992case $host in
252b5132
RH
1993*-*-irix6*)
1994 # Find out which ABI we are using.
4867be41
DJ
1995 echo '#line 1996 "configure"' > conftest.$ac_ext
1996 if { (eval echo configure:1997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6be7c12c 1997 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
1998 *32-bit*)
1999 LD="${LD-ld} -32"
2000 ;;
2001 *N32*)
2002 LD="${LD-ld} -n32"
2003 ;;
2004 *64-bit*)
2005 LD="${LD-ld} -64"
2006 ;;
2007 esac
2008 fi
2009 rm -rf conftest*
2010 ;;
2011
4867be41
DJ
2012ia64-*-hpux*)
2013 # Find out which ABI we are using.
2014 echo 'int i;' > conftest.$ac_ext
2015 if { (eval echo configure:2016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2016 case "`/usr/bin/file conftest.o`" in
2017 *ELF-32*)
2018 HPUX_IA64_MODE="32"
2019 ;;
2020 *ELF-64*)
2021 HPUX_IA64_MODE="64"
2022 ;;
2023 esac
2024 fi
2025 rm -rf conftest*
2026 ;;
2027
252b5132
RH
2028*-*-sco3.2v5*)
2029 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2030 SAVE_CFLAGS="$CFLAGS"
2031 CFLAGS="$CFLAGS -belf"
2032 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4867be41 2033echo "configure:2034: checking whether the C compiler needs -belf" >&5
252b5132
RH
2034if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2036else
ac48eca1
AO
2037
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
2045 cat > conftest.$ac_ext <<EOF
4867be41 2046#line 2047 "configure"
252b5132
RH
2047#include "confdefs.h"
2048
2049int main() {
2050
2051; return 0; }
2052EOF
4867be41 2053if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
2054 rm -rf conftest*
2055 lt_cv_cc_needs_belf=yes
2056else
2057 echo "configure: failed program was:" >&5
2058 cat conftest.$ac_ext >&5
2059 rm -rf conftest*
2060 lt_cv_cc_needs_belf=no
2061fi
2062rm -f conftest*
ac48eca1
AO
2063 ac_ext=c
2064# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2065ac_cpp='$CPP $CPPFLAGS'
2066ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2067ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2068cross_compiling=$ac_cv_prog_cc_cross
2069
252b5132
RH
2070fi
2071
2072echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2073 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2074 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2075 CFLAGS="$SAVE_CFLAGS"
2076 fi
2077 ;;
2078
252b5132
RH
2079
2080esac
2081
252b5132
RH
2082
2083# Save cache, so that ltconfig can load it
2084cat > confcache <<\EOF
2085# This file is a shell script that caches the results of configure
2086# tests run on this system so they can be shared between configure
2087# scripts and configure runs. It is not useful on other systems.
2088# If it contains results you don't want to keep, you may remove or edit it.
2089#
2090# By default, configure uses ./config.cache as the cache file,
2091# creating it if it does not exist already. You can give configure
2092# the --cache-file=FILE option to use a different cache file; that is
2093# what configure does when it calls configure scripts in
2094# subdirectories, so they share the cache.
2095# Giving --cache-file=/dev/null disables caching, for debugging configure.
2096# config.status only pays attention to the cache file if you give it the
2097# --recheck option to rerun configure.
2098#
2099EOF
2100# The following way of writing the cache mishandles newlines in values,
2101# but we know of no workaround that is simple, portable, and efficient.
2102# So, don't put newlines in cache variables' values.
2103# Ultrix sh set writes to stderr and can't be redirected directly,
2104# and sets the high bit in the cache file unless we assign to the vars.
2105(set) 2>&1 |
2106 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2107 *ac_space=\ *)
2108 # `set' does not quote correctly, so add quotes (double-quote substitution
2109 # turns \\\\ into \\, and sed turns \\ into \).
2110 sed -n \
2111 -e "s/'/'\\\\''/g" \
2112 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2113 ;;
2114 *)
2115 # `set' quotes correctly as required by POSIX, so do not add quotes.
2116 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2117 ;;
2118 esac >> confcache
2119if cmp -s $cache_file confcache; then
2120 :
2121else
2122 if test -w $cache_file; then
2123 echo "updating cache $cache_file"
2124 cat confcache > $cache_file
2125 else
2126 echo "not updating unwritable cache $cache_file"
2127 fi
2128fi
2129rm -f confcache
2130
2131
2132# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 2133AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 2134MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
2135LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2136AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2137objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2138deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 2139${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 2140$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
252b5132
RH
2141|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2142
2143# Reload cache, that may have been modified by ltconfig
2144if test -r "$cache_file"; then
2145 echo "loading cache $cache_file"
2146 . $cache_file
2147else
2148 echo "creating cache $cache_file"
2149 > $cache_file
2150fi
2151
2152
2153# This can be used to rebuild libtool when needed
ac48eca1 2154LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
252b5132
RH
2155
2156# Always use our own libtool.
2157LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2158
2159# Redirect the config.log output again, so that the ltconfig log is not
2160# clobbered by the next message.
2161exec 5>>./config.log
2162
ac48eca1
AO
2163
2164
2165
2166
d64552c5 2167
ac48eca1 2168
252b5132
RH
2169
2170
2171
2172
2173# Extract the first word of "gcc", so it can be a program name with args.
2174set dummy gcc; ac_word=$2
2175echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4867be41 2176echo "configure:2177: checking for $ac_word" >&5
252b5132
RH
2177if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2179else
2180 if test -n "$CC"; then
2181 ac_cv_prog_CC="$CC" # Let the user override the test.
2182else
2183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2184 ac_dummy="$PATH"
2185 for ac_dir in $ac_dummy; do
2186 test -z "$ac_dir" && ac_dir=.
2187 if test -f $ac_dir/$ac_word; then
2188 ac_cv_prog_CC="gcc"
2189 break
2190 fi
2191 done
2192 IFS="$ac_save_ifs"
2193fi
2194fi
2195CC="$ac_cv_prog_CC"
2196if test -n "$CC"; then
2197 echo "$ac_t""$CC" 1>&6
2198else
2199 echo "$ac_t""no" 1>&6
2200fi
2201
2202if test -z "$CC"; then
2203 # Extract the first word of "cc", so it can be a program name with args.
2204set dummy cc; ac_word=$2
2205echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4867be41 2206echo "configure:2207: checking for $ac_word" >&5
252b5132
RH
2207if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2209else
2210 if test -n "$CC"; then
2211 ac_cv_prog_CC="$CC" # Let the user override the test.
2212else
2213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2214 ac_prog_rejected=no
2215 ac_dummy="$PATH"
2216 for ac_dir in $ac_dummy; do
2217 test -z "$ac_dir" && ac_dir=.
2218 if test -f $ac_dir/$ac_word; then
2219 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2220 ac_prog_rejected=yes
2221 continue
2222 fi
2223 ac_cv_prog_CC="cc"
2224 break
2225 fi
2226 done
2227 IFS="$ac_save_ifs"
2228if test $ac_prog_rejected = yes; then
2229 # We found a bogon in the path, so make sure we never use it.
2230 set dummy $ac_cv_prog_CC
2231 shift
2232 if test $# -gt 0; then
2233 # We chose a different compiler from the bogus one.
2234 # However, it has the same basename, so the bogon will be chosen
2235 # first if we set CC to just the basename; use the full file name.
2236 shift
2237 set dummy "$ac_dir/$ac_word" "$@"
2238 shift
2239 ac_cv_prog_CC="$@"
2240 fi
2241fi
2242fi
2243fi
2244CC="$ac_cv_prog_CC"
2245if test -n "$CC"; then
2246 echo "$ac_t""$CC" 1>&6
2247else
2248 echo "$ac_t""no" 1>&6
2249fi
2250
2251 if test -z "$CC"; then
2252 case "`uname -s`" in
2253 *win32* | *WIN32*)
2254 # Extract the first word of "cl", so it can be a program name with args.
2255set dummy cl; ac_word=$2
2256echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4867be41 2257echo "configure:2258: checking for $ac_word" >&5
252b5132
RH
2258if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2260else
2261 if test -n "$CC"; then
2262 ac_cv_prog_CC="$CC" # Let the user override the test.
2263else
2264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2265 ac_dummy="$PATH"
2266 for ac_dir in $ac_dummy; do
2267 test -z "$ac_dir" && ac_dir=.
2268 if test -f $ac_dir/$ac_word; then
2269 ac_cv_prog_CC="cl"
2270 break
2271 fi
2272 done
2273 IFS="$ac_save_ifs"
2274fi
2275fi
2276CC="$ac_cv_prog_CC"
2277if test -n "$CC"; then
2278 echo "$ac_t""$CC" 1>&6
2279else
2280 echo "$ac_t""no" 1>&6
2281fi
2282 ;;
2283 esac
2284 fi
2285 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2286fi
2287
2288echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
4867be41 2289echo "configure:2290: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
252b5132
RH
2290
2291ac_ext=c
2292# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2293ac_cpp='$CPP $CPPFLAGS'
2294ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2295ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2296cross_compiling=$ac_cv_prog_cc_cross
2297
2298cat > conftest.$ac_ext << EOF
2299
4867be41 2300#line 2301 "configure"
252b5132
RH
2301#include "confdefs.h"
2302
2303main(){return(0);}
2304EOF
4867be41 2305if { (eval echo configure:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
2306 ac_cv_prog_cc_works=yes
2307 # If we can't run a trivial program, we are probably using a cross compiler.
2308 if (./conftest; exit) 2>/dev/null; then
2309 ac_cv_prog_cc_cross=no
2310 else
2311 ac_cv_prog_cc_cross=yes
2312 fi
2313else
2314 echo "configure: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2316 ac_cv_prog_cc_works=no
2317fi
2318rm -fr conftest*
2319ac_ext=c
2320# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2321ac_cpp='$CPP $CPPFLAGS'
2322ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2323ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2324cross_compiling=$ac_cv_prog_cc_cross
2325
2326echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2327if test $ac_cv_prog_cc_works = no; then
2328 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2329fi
2330echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
4867be41 2331echo "configure:2332: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
252b5132
RH
2332echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2333cross_compiling=$ac_cv_prog_cc_cross
2334
2335echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
4867be41 2336echo "configure:2337: checking whether we are using GNU C" >&5
252b5132
RH
2337if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2339else
2340 cat > conftest.c <<EOF
2341#ifdef __GNUC__
2342 yes;
2343#endif
2344EOF
4867be41 2345if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
252b5132
RH
2346 ac_cv_prog_gcc=yes
2347else
2348 ac_cv_prog_gcc=no
2349fi
2350fi
2351
2352echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2353
2354if test $ac_cv_prog_gcc = yes; then
2355 GCC=yes
2356else
2357 GCC=
2358fi
2359
2360ac_test_CFLAGS="${CFLAGS+set}"
2361ac_save_CFLAGS="$CFLAGS"
2362CFLAGS=
2363echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
4867be41 2364echo "configure:2365: checking whether ${CC-cc} accepts -g" >&5
252b5132
RH
2365if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2367else
2368 echo 'void f(){}' > conftest.c
2369if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2370 ac_cv_prog_cc_g=yes
2371else
2372 ac_cv_prog_cc_g=no
2373fi
2374rm -f conftest*
2375
2376fi
2377
2378echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2379if test "$ac_test_CFLAGS" = set; then
2380 CFLAGS="$ac_save_CFLAGS"
2381elif test $ac_cv_prog_cc_g = yes; then
2382 if test "$GCC" = yes; then
2383 CFLAGS="-g -O2"
2384 else
2385 CFLAGS="-g"
2386 fi
2387else
2388 if test "$GCC" = yes; then
2389 CFLAGS="-O2"
2390 else
2391 CFLAGS=
2392 fi
2393fi
2394
2395# Find a good install program. We prefer a C program (faster),
2396# so one script is as good as another. But avoid the broken or
2397# incompatible versions:
2398# SysV /etc/install, /usr/sbin/install
2399# SunOS /usr/etc/install
2400# IRIX /sbin/install
2401# AIX /bin/install
2402# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2403# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2404# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2405# ./install, which can be erroneously created by make from ./install.sh.
2406echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4867be41 2407echo "configure:2408: checking for a BSD compatible install" >&5
252b5132
RH
2408if test -z "$INSTALL"; then
2409if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2411else
2412 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2413 for ac_dir in $PATH; do
2414 # Account for people who put trailing slashes in PATH elements.
2415 case "$ac_dir/" in
2416 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2417 *)
2418 # OSF1 and SCO ODT 3.0 have their own names for install.
2419 # Don't use installbsd from OSF since it installs stuff as root
2420 # by default.
2421 for ac_prog in ginstall scoinst install; do
2422 if test -f $ac_dir/$ac_prog; then
2423 if test $ac_prog = install &&
2424 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2425 # AIX install. It has an incompatible calling convention.
2426 :
2427 else
2428 ac_cv_path_install="$ac_dir/$ac_prog -c"
2429 break 2
2430 fi
2431 fi
2432 done
2433 ;;
2434 esac
2435 done
2436 IFS="$ac_save_IFS"
2437
2438fi
2439 if test "${ac_cv_path_install+set}" = set; then
2440 INSTALL="$ac_cv_path_install"
2441 else
2442 # As a last resort, use the slow shell script. We don't cache a
2443 # path for INSTALL within a source directory, because that will
2444 # break other packages using the cache if that directory is
2445 # removed, or if the path is relative.
2446 INSTALL="$ac_install_sh"
2447 fi
2448fi
2449echo "$ac_t""$INSTALL" 1>&6
2450
2451# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2452# It thinks the first close brace ends the variable substitution.
2453test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2454
2455test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2456
2457test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2458
2459
5af11cab
AM
2460for ac_func in setmode
2461do
2462echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4867be41 2463echo "configure:2464: checking for $ac_func" >&5
5af11cab
AM
2464if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2466else
2467 cat > conftest.$ac_ext <<EOF
4867be41 2468#line 2469 "configure"
5af11cab
AM
2469#include "confdefs.h"
2470/* System header to define __stub macros and hopefully few prototypes,
2471 which can conflict with char $ac_func(); below. */
2472#include <assert.h>
2473/* Override any gcc2 internal prototype to avoid an error. */
2474/* We use char because int might match the return type of a gcc2
2475 builtin and then its argument prototype would still apply. */
2476char $ac_func();
2477
2478int main() {
2479
2480/* The GNU C library defines this for functions which it implements
2481 to always fail with ENOSYS. Some functions are actually named
2482 something starting with __ and the normal name is an alias. */
2483#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2484choke me
2485#else
2486$ac_func();
2487#endif
2488
2489; return 0; }
2490EOF
4867be41 2491if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5af11cab
AM
2492 rm -rf conftest*
2493 eval "ac_cv_func_$ac_func=yes"
2494else
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2497 rm -rf conftest*
2498 eval "ac_cv_func_$ac_func=no"
2499fi
2500rm -f conftest*
2501fi
2502
2503if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2504 echo "$ac_t""yes" 1>&6
2505 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2506 cat >> confdefs.h <<EOF
2507#define $ac_tr_func 1
2508EOF
2509
2510else
2511 echo "$ac_t""no" 1>&6
2512fi
2513done
2514
252b5132 2515
be2d1673 2516ALL_LINGUAS="fr tr sv es"
252b5132 2517echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
4867be41 2518echo "configure:2519: checking how to run the C preprocessor" >&5
252b5132
RH
2519# On Suns, sometimes $CPP names a directory.
2520if test -n "$CPP" && test -d "$CPP"; then
2521 CPP=
2522fi
2523if test -z "$CPP"; then
2524if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2525 echo $ac_n "(cached) $ac_c" 1>&6
2526else
2527 # This must be in double quotes, not single quotes, because CPP may get
2528 # substituted into the Makefile and "${CC-cc}" will confuse make.
2529 CPP="${CC-cc} -E"
2530 # On the NeXT, cc -E runs the code through the compiler's parser,
2531 # not just through cpp.
2532 cat > conftest.$ac_ext <<EOF
4867be41 2533#line 2534 "configure"
252b5132
RH
2534#include "confdefs.h"
2535#include <assert.h>
2536Syntax Error
2537EOF
2538ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4867be41 2539{ (eval echo configure:2540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
2540ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2541if test -z "$ac_err"; then
2542 :
2543else
2544 echo "$ac_err" >&5
2545 echo "configure: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2547 rm -rf conftest*
2548 CPP="${CC-cc} -E -traditional-cpp"
2549 cat > conftest.$ac_ext <<EOF
4867be41 2550#line 2551 "configure"
252b5132
RH
2551#include "confdefs.h"
2552#include <assert.h>
2553Syntax Error
2554EOF
2555ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4867be41 2556{ (eval echo configure:2557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
2557ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2558if test -z "$ac_err"; then
2559 :
2560else
2561 echo "$ac_err" >&5
2562 echo "configure: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2564 rm -rf conftest*
2565 CPP="${CC-cc} -nologo -E"
2566 cat > conftest.$ac_ext <<EOF
4867be41 2567#line 2568 "configure"
252b5132
RH
2568#include "confdefs.h"
2569#include <assert.h>
2570Syntax Error
2571EOF
2572ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4867be41 2573{ (eval echo configure:2574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
2574ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2575if test -z "$ac_err"; then
2576 :
2577else
2578 echo "$ac_err" >&5
2579 echo "configure: failed program was:" >&5
2580 cat conftest.$ac_ext >&5
2581 rm -rf conftest*
2582 CPP=/lib/cpp
2583fi
2584rm -f conftest*
2585fi
2586rm -f conftest*
2587fi
2588rm -f conftest*
2589 ac_cv_prog_CPP="$CPP"
2590fi
2591 CPP="$ac_cv_prog_CPP"
2592else
2593 ac_cv_prog_CPP="$CPP"
2594fi
2595echo "$ac_t""$CPP" 1>&6
2596
ac48eca1
AO
2597# Extract the first word of "ranlib", so it can be a program name with args.
2598set dummy ranlib; ac_word=$2
2599echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4867be41 2600echo "configure:2601: checking for $ac_word" >&5
ac48eca1
AO
2601if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2603else
2604 if test -n "$RANLIB"; then
2605 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2606else
2607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2608 ac_dummy="$PATH"
2609 for ac_dir in $ac_dummy; do
2610 test -z "$ac_dir" && ac_dir=.
2611 if test -f $ac_dir/$ac_word; then
2612 ac_cv_prog_RANLIB="ranlib"
2613 break
2614 fi
2615 done
2616 IFS="$ac_save_ifs"
2617 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2618fi
2619fi
2620RANLIB="$ac_cv_prog_RANLIB"
2621if test -n "$RANLIB"; then
2622 echo "$ac_t""$RANLIB" 1>&6
2623else
2624 echo "$ac_t""no" 1>&6
2625fi
2626
252b5132 2627echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4867be41 2628echo "configure:2629: checking for ANSI C header files" >&5
252b5132
RH
2629if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2631else
2632 cat > conftest.$ac_ext <<EOF
4867be41 2633#line 2634 "configure"
252b5132
RH
2634#include "confdefs.h"
2635#include <stdlib.h>
2636#include <stdarg.h>
2637#include <string.h>
2638#include <float.h>
2639EOF
2640ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4867be41 2641{ (eval echo configure:2642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
2642ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2643if test -z "$ac_err"; then
2644 rm -rf conftest*
2645 ac_cv_header_stdc=yes
2646else
2647 echo "$ac_err" >&5
2648 echo "configure: failed program was:" >&5
2649 cat conftest.$ac_ext >&5
2650 rm -rf conftest*
2651 ac_cv_header_stdc=no
2652fi
2653rm -f conftest*
2654
2655if test $ac_cv_header_stdc = yes; then
2656 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2657cat > conftest.$ac_ext <<EOF
4867be41 2658#line 2659 "configure"
252b5132
RH
2659#include "confdefs.h"
2660#include <string.h>
2661EOF
2662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2663 egrep "memchr" >/dev/null 2>&1; then
2664 :
2665else
2666 rm -rf conftest*
2667 ac_cv_header_stdc=no
2668fi
2669rm -f conftest*
2670
2671fi
2672
2673if test $ac_cv_header_stdc = yes; then
2674 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2675cat > conftest.$ac_ext <<EOF
4867be41 2676#line 2677 "configure"
252b5132
RH
2677#include "confdefs.h"
2678#include <stdlib.h>
2679EOF
2680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2681 egrep "free" >/dev/null 2>&1; then
2682 :
2683else
2684 rm -rf conftest*
2685 ac_cv_header_stdc=no
2686fi
2687rm -f conftest*
2688
2689fi
2690
2691if test $ac_cv_header_stdc = yes; then
2692 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2693if test "$cross_compiling" = yes; then
2694 :
2695else
2696 cat > conftest.$ac_ext <<EOF
4867be41 2697#line 2698 "configure"
252b5132
RH
2698#include "confdefs.h"
2699#include <ctype.h>
2700#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2701#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2702#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2703int main () { int i; for (i = 0; i < 256; i++)
2704if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2705exit (0); }
2706
2707EOF
4867be41 2708if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
252b5132
RH
2709then
2710 :
2711else
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2714 rm -fr conftest*
2715 ac_cv_header_stdc=no
2716fi
2717rm -fr conftest*
2718fi
2719
2720fi
2721fi
2722
2723echo "$ac_t""$ac_cv_header_stdc" 1>&6
2724if test $ac_cv_header_stdc = yes; then
2725 cat >> confdefs.h <<\EOF
2726#define STDC_HEADERS 1
2727EOF
2728
2729fi
2730
2731echo $ac_n "checking for working const""... $ac_c" 1>&6
4867be41 2732echo "configure:2733: checking for working const" >&5
252b5132
RH
2733if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2734 echo $ac_n "(cached) $ac_c" 1>&6
2735else
2736 cat > conftest.$ac_ext <<EOF
4867be41 2737#line 2738 "configure"
252b5132
RH
2738#include "confdefs.h"
2739
2740int main() {
2741
2742/* Ultrix mips cc rejects this. */
2743typedef int charset[2]; const charset x;
2744/* SunOS 4.1.1 cc rejects this. */
2745char const *const *ccp;
2746char **p;
2747/* NEC SVR4.0.2 mips cc rejects this. */
2748struct point {int x, y;};
2749static struct point const zero = {0,0};
2750/* AIX XL C 1.02.0.0 rejects this.
2751 It does not let you subtract one const X* pointer from another in an arm
2752 of an if-expression whose if-part is not a constant expression */
2753const char *g = "string";
2754ccp = &g + (g ? g-g : 0);
2755/* HPUX 7.0 cc rejects these. */
2756++ccp;
2757p = (char**) ccp;
2758ccp = (char const *const *) p;
2759{ /* SCO 3.2v4 cc rejects this. */
2760 char *t;
2761 char const *s = 0 ? (char *) 0 : (char const *) 0;
2762
2763 *t++ = 0;
2764}
2765{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2766 int x[] = {25, 17};
2767 const int *foo = &x[0];
2768 ++foo;
2769}
2770{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2771 typedef const int *iptr;
2772 iptr p = 0;
2773 ++p;
2774}
2775{ /* AIX XL C 1.02.0.0 rejects this saying
2776 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2777 struct s { int j; const int *ap[3]; };
2778 struct s *b; b->j = 5;
2779}
2780{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2781 const int foo = 10;
2782}
2783
2784; return 0; }
2785EOF
4867be41 2786if { (eval echo configure:2787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
2787 rm -rf conftest*
2788 ac_cv_c_const=yes
2789else
2790 echo "configure: failed program was:" >&5
2791 cat conftest.$ac_ext >&5
2792 rm -rf conftest*
2793 ac_cv_c_const=no
2794fi
2795rm -f conftest*
2796fi
2797
2798echo "$ac_t""$ac_cv_c_const" 1>&6
2799if test $ac_cv_c_const = no; then
2800 cat >> confdefs.h <<\EOF
2801#define const
2802EOF
2803
2804fi
2805
2806echo $ac_n "checking for inline""... $ac_c" 1>&6
4867be41 2807echo "configure:2808: checking for inline" >&5
252b5132
RH
2808if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2809 echo $ac_n "(cached) $ac_c" 1>&6
2810else
2811 ac_cv_c_inline=no
2812for ac_kw in inline __inline__ __inline; do
2813 cat > conftest.$ac_ext <<EOF
4867be41 2814#line 2815 "configure"
252b5132
RH
2815#include "confdefs.h"
2816
2817int main() {
2818} $ac_kw foo() {
2819; return 0; }
2820EOF
4867be41 2821if { (eval echo configure:2822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
252b5132
RH
2822 rm -rf conftest*
2823 ac_cv_c_inline=$ac_kw; break
2824else
2825 echo "configure: failed program was:" >&5
2826 cat conftest.$ac_ext >&5
2827fi
2828rm -f conftest*
2829done
2830
2831fi
2832
2833echo "$ac_t""$ac_cv_c_inline" 1>&6
2834case "$ac_cv_c_inline" in
2835 inline | yes) ;;
2836 no) cat >> confdefs.h <<\EOF
2837#define inline
2838EOF
2839 ;;
2840 *) cat >> confdefs.h <<EOF
2841#define inline $ac_cv_c_inline
2842EOF
2843 ;;
2844esac
2845
2846echo $ac_n "checking for off_t""... $ac_c" 1>&6
4867be41 2847echo "configure:2848: checking for off_t" >&5
252b5132
RH
2848if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2850else
2851 cat > conftest.$ac_ext <<EOF
4867be41 2852#line 2853 "configure"
252b5132
RH
2853#include "confdefs.h"
2854#include <sys/types.h>
2855#if STDC_HEADERS
2856#include <stdlib.h>
2857#include <stddef.h>
2858#endif
2859EOF
2860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2861 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2862 rm -rf conftest*
2863 ac_cv_type_off_t=yes
2864else
2865 rm -rf conftest*
2866 ac_cv_type_off_t=no
2867fi
2868rm -f conftest*
2869
2870fi
2871echo "$ac_t""$ac_cv_type_off_t" 1>&6
2872if test $ac_cv_type_off_t = no; then
2873 cat >> confdefs.h <<\EOF
2874#define off_t long
2875EOF
2876
2877fi
2878
2879echo $ac_n "checking for size_t""... $ac_c" 1>&6
4867be41 2880echo "configure:2881: checking for size_t" >&5
252b5132
RH
2881if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2883else
2884 cat > conftest.$ac_ext <<EOF
4867be41 2885#line 2886 "configure"
252b5132
RH
2886#include "confdefs.h"
2887#include <sys/types.h>
2888#if STDC_HEADERS
2889#include <stdlib.h>
2890#include <stddef.h>
2891#endif
2892EOF
2893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2894 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2895 rm -rf conftest*
2896 ac_cv_type_size_t=yes
2897else
2898 rm -rf conftest*
2899 ac_cv_type_size_t=no
2900fi
2901rm -f conftest*
2902
2903fi
2904echo "$ac_t""$ac_cv_type_size_t" 1>&6
2905if test $ac_cv_type_size_t = no; then
2906 cat >> confdefs.h <<\EOF
2907#define size_t unsigned
2908EOF
2909
2910fi
2911
2912# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2913# for constant arguments. Useless!
2914echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4867be41 2915echo "configure:2916: checking for working alloca.h" >&5
252b5132
RH
2916if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2918else
2919 cat > conftest.$ac_ext <<EOF
4867be41 2920#line 2921 "configure"
252b5132
RH
2921#include "confdefs.h"
2922#include <alloca.h>
2923int main() {
2924char *p = alloca(2 * sizeof(int));
2925; return 0; }
2926EOF
4867be41 2927if { (eval echo configure:2928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
2928 rm -rf conftest*
2929 ac_cv_header_alloca_h=yes
2930else
2931 echo "configure: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2933 rm -rf conftest*
2934 ac_cv_header_alloca_h=no
2935fi
2936rm -f conftest*
2937fi
2938
2939echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2940if test $ac_cv_header_alloca_h = yes; then
2941 cat >> confdefs.h <<\EOF
2942#define HAVE_ALLOCA_H 1
2943EOF
2944
2945fi
2946
2947echo $ac_n "checking for alloca""... $ac_c" 1>&6
4867be41 2948echo "configure:2949: checking for alloca" >&5
252b5132
RH
2949if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2951else
2952 cat > conftest.$ac_ext <<EOF
4867be41 2953#line 2954 "configure"
252b5132
RH
2954#include "confdefs.h"
2955
2956#ifdef __GNUC__
2957# define alloca __builtin_alloca
2958#else
2959# ifdef _MSC_VER
2960# include <malloc.h>
2961# define alloca _alloca
2962# else
2963# if HAVE_ALLOCA_H
2964# include <alloca.h>
2965# else
2966# ifdef _AIX
2967 #pragma alloca
2968# else
2969# ifndef alloca /* predefined by HP cc +Olibcalls */
2970char *alloca ();
2971# endif
2972# endif
2973# endif
2974# endif
2975#endif
2976
2977int main() {
2978char *p = (char *) alloca(1);
2979; return 0; }
2980EOF
4867be41 2981if { (eval echo configure:2982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
2982 rm -rf conftest*
2983 ac_cv_func_alloca_works=yes
2984else
2985 echo "configure: failed program was:" >&5
2986 cat conftest.$ac_ext >&5
2987 rm -rf conftest*
2988 ac_cv_func_alloca_works=no
2989fi
2990rm -f conftest*
2991fi
2992
2993echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2994if test $ac_cv_func_alloca_works = yes; then
2995 cat >> confdefs.h <<\EOF
2996#define HAVE_ALLOCA 1
2997EOF
2998
2999fi
3000
3001if test $ac_cv_func_alloca_works = no; then
3002 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3003 # that cause trouble. Some versions do not even contain alloca or
3004 # contain a buggy version. If you still want to use their alloca,
3005 # use ar to extract alloca.o from them instead of compiling alloca.c.
3006 ALLOCA=alloca.${ac_objext}
3007 cat >> confdefs.h <<\EOF
3008#define C_ALLOCA 1
3009EOF
3010
3011
3012echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4867be41 3013echo "configure:3014: checking whether alloca needs Cray hooks" >&5
252b5132
RH
3014if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3015 echo $ac_n "(cached) $ac_c" 1>&6
3016else
3017 cat > conftest.$ac_ext <<EOF
4867be41 3018#line 3019 "configure"
252b5132
RH
3019#include "confdefs.h"
3020#if defined(CRAY) && ! defined(CRAY2)
3021webecray
3022#else
3023wenotbecray
3024#endif
3025
3026EOF
3027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3028 egrep "webecray" >/dev/null 2>&1; then
3029 rm -rf conftest*
3030 ac_cv_os_cray=yes
3031else
3032 rm -rf conftest*
3033 ac_cv_os_cray=no
3034fi
3035rm -f conftest*
3036
3037fi
3038
3039echo "$ac_t""$ac_cv_os_cray" 1>&6
3040if test $ac_cv_os_cray = yes; then
3041for ac_func in _getb67 GETB67 getb67; do
3042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4867be41 3043echo "configure:3044: checking for $ac_func" >&5
252b5132
RH
3044if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3045 echo $ac_n "(cached) $ac_c" 1>&6
3046else
3047 cat > conftest.$ac_ext <<EOF
4867be41 3048#line 3049 "configure"
252b5132
RH
3049#include "confdefs.h"
3050/* System header to define __stub macros and hopefully few prototypes,
3051 which can conflict with char $ac_func(); below. */
3052#include <assert.h>
3053/* Override any gcc2 internal prototype to avoid an error. */
3054/* We use char because int might match the return type of a gcc2
3055 builtin and then its argument prototype would still apply. */
3056char $ac_func();
3057
3058int main() {
3059
3060/* The GNU C library defines this for functions which it implements
3061 to always fail with ENOSYS. Some functions are actually named
3062 something starting with __ and the normal name is an alias. */
3063#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3064choke me
3065#else
3066$ac_func();
3067#endif
3068
3069; return 0; }
3070EOF
4867be41 3071if { (eval echo configure:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3072 rm -rf conftest*
3073 eval "ac_cv_func_$ac_func=yes"
3074else
3075 echo "configure: failed program was:" >&5
3076 cat conftest.$ac_ext >&5
3077 rm -rf conftest*
3078 eval "ac_cv_func_$ac_func=no"
3079fi
3080rm -f conftest*
3081fi
3082
3083if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3084 echo "$ac_t""yes" 1>&6
3085 cat >> confdefs.h <<EOF
3086#define CRAY_STACKSEG_END $ac_func
3087EOF
3088
3089 break
3090else
3091 echo "$ac_t""no" 1>&6
3092fi
3093
3094done
3095fi
3096
3097echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4867be41 3098echo "configure:3099: checking stack direction for C alloca" >&5
252b5132
RH
3099if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3101else
3102 if test "$cross_compiling" = yes; then
3103 ac_cv_c_stack_direction=0
3104else
3105 cat > conftest.$ac_ext <<EOF
4867be41 3106#line 3107 "configure"
252b5132
RH
3107#include "confdefs.h"
3108find_stack_direction ()
3109{
3110 static char *addr = 0;
3111 auto char dummy;
3112 if (addr == 0)
3113 {
3114 addr = &dummy;
3115 return find_stack_direction ();
3116 }
3117 else
3118 return (&dummy > addr) ? 1 : -1;
3119}
3120main ()
3121{
3122 exit (find_stack_direction() < 0);
3123}
3124EOF
4867be41 3125if { (eval echo configure:3126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
252b5132
RH
3126then
3127 ac_cv_c_stack_direction=1
3128else
3129 echo "configure: failed program was:" >&5
3130 cat conftest.$ac_ext >&5
3131 rm -fr conftest*
3132 ac_cv_c_stack_direction=-1
3133fi
3134rm -fr conftest*
3135fi
3136
3137fi
3138
3139echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3140cat >> confdefs.h <<EOF
3141#define STACK_DIRECTION $ac_cv_c_stack_direction
3142EOF
3143
3144fi
3145
4867be41 3146for ac_hdr in unistd.h
252b5132
RH
3147do
3148ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3149echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4867be41 3150echo "configure:3151: checking for $ac_hdr" >&5
252b5132
RH
3151if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3153else
3154 cat > conftest.$ac_ext <<EOF
4867be41 3155#line 3156 "configure"
252b5132
RH
3156#include "confdefs.h"
3157#include <$ac_hdr>
3158EOF
3159ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4867be41 3160{ (eval echo configure:3161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
3161ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3162if test -z "$ac_err"; then
3163 rm -rf conftest*
3164 eval "ac_cv_header_$ac_safe=yes"
3165else
3166 echo "$ac_err" >&5
3167 echo "configure: failed program was:" >&5
3168 cat conftest.$ac_ext >&5
3169 rm -rf conftest*
3170 eval "ac_cv_header_$ac_safe=no"
3171fi
3172rm -f conftest*
3173fi
3174if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3175 echo "$ac_t""yes" 1>&6
3176 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3177 cat >> confdefs.h <<EOF
3178#define $ac_tr_hdr 1
3179EOF
3180
3181else
3182 echo "$ac_t""no" 1>&6
3183fi
3184done
3185
3186for ac_func in getpagesize
3187do
3188echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4867be41 3189echo "configure:3190: checking for $ac_func" >&5
252b5132
RH
3190if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3192else
3193 cat > conftest.$ac_ext <<EOF
4867be41 3194#line 3195 "configure"
252b5132
RH
3195#include "confdefs.h"
3196/* System header to define __stub macros and hopefully few prototypes,
3197 which can conflict with char $ac_func(); below. */
3198#include <assert.h>
3199/* Override any gcc2 internal prototype to avoid an error. */
3200/* We use char because int might match the return type of a gcc2
3201 builtin and then its argument prototype would still apply. */
3202char $ac_func();
3203
3204int main() {
3205
3206/* The GNU C library defines this for functions which it implements
3207 to always fail with ENOSYS. Some functions are actually named
3208 something starting with __ and the normal name is an alias. */
3209#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3210choke me
3211#else
3212$ac_func();
3213#endif
3214
3215; return 0; }
3216EOF
4867be41 3217if { (eval echo configure:3218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3218 rm -rf conftest*
3219 eval "ac_cv_func_$ac_func=yes"
3220else
3221 echo "configure: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3223 rm -rf conftest*
3224 eval "ac_cv_func_$ac_func=no"
3225fi
3226rm -f conftest*
3227fi
3228
3229if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3230 echo "$ac_t""yes" 1>&6
3231 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3232 cat >> confdefs.h <<EOF
3233#define $ac_tr_func 1
3234EOF
3235
3236else
3237 echo "$ac_t""no" 1>&6
3238fi
3239done
3240
3241echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4867be41 3242echo "configure:3243: checking for working mmap" >&5
252b5132
RH
3243if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3245else
3246 if test "$cross_compiling" = yes; then
3247 ac_cv_func_mmap_fixed_mapped=no
3248else
3249 cat > conftest.$ac_ext <<EOF
4867be41 3250#line 3251 "configure"
252b5132
RH
3251#include "confdefs.h"
3252
3253/* Thanks to Mike Haertel and Jim Avera for this test.
3254 Here is a matrix of mmap possibilities:
3255 mmap private not fixed
3256 mmap private fixed at somewhere currently unmapped
3257 mmap private fixed at somewhere already mapped
3258 mmap shared not fixed
3259 mmap shared fixed at somewhere currently unmapped
3260 mmap shared fixed at somewhere already mapped
3261 For private mappings, we should verify that changes cannot be read()
3262 back from the file, nor mmap's back from the file at a different
3263 address. (There have been systems where private was not correctly
3264 implemented like the infamous i386 svr4.0, and systems where the
3265 VM page cache was not coherent with the filesystem buffer cache
3266 like early versions of FreeBSD and possibly contemporary NetBSD.)
3267 For shared mappings, we should conversely verify that changes get
3268 propogated back to all the places they're supposed to be.
3269
3270 Grep wants private fixed already mapped.
3271 The main things grep needs to know about mmap are:
3272 * does it exist and is it safe to write into the mmap'd area
3273 * how to use it (BSD variants) */
3274#include <sys/types.h>
3275#include <fcntl.h>
3276#include <sys/mman.h>
3277
3278/* This mess was copied from the GNU getpagesize.h. */
3279#ifndef HAVE_GETPAGESIZE
4867be41
DJ
3280# ifdef HAVE_UNISTD_H
3281# include <unistd.h>
3282# endif
252b5132
RH
3283
3284/* Assume that all systems that can run configure have sys/param.h. */
3285# ifndef HAVE_SYS_PARAM_H
3286# define HAVE_SYS_PARAM_H 1
3287# endif
3288
3289# ifdef _SC_PAGESIZE
3290# define getpagesize() sysconf(_SC_PAGESIZE)
3291# else /* no _SC_PAGESIZE */
3292# ifdef HAVE_SYS_PARAM_H
3293# include <sys/param.h>
3294# ifdef EXEC_PAGESIZE
3295# define getpagesize() EXEC_PAGESIZE
3296# else /* no EXEC_PAGESIZE */
3297# ifdef NBPG
3298# define getpagesize() NBPG * CLSIZE
3299# ifndef CLSIZE
3300# define CLSIZE 1
3301# endif /* no CLSIZE */
3302# else /* no NBPG */
3303# ifdef NBPC
3304# define getpagesize() NBPC
3305# else /* no NBPC */
3306# ifdef PAGESIZE
3307# define getpagesize() PAGESIZE
3308# endif /* PAGESIZE */
3309# endif /* no NBPC */
3310# endif /* no NBPG */
3311# endif /* no EXEC_PAGESIZE */
3312# else /* no HAVE_SYS_PARAM_H */
3313# define getpagesize() 8192 /* punt totally */
3314# endif /* no HAVE_SYS_PARAM_H */
3315# endif /* no _SC_PAGESIZE */
3316
3317#endif /* no HAVE_GETPAGESIZE */
3318
3319#ifdef __cplusplus
3320extern "C" { void *malloc(unsigned); }
3321#else
3322char *malloc();
3323#endif
3324
3325int
3326main()
3327{
3328 char *data, *data2, *data3;
3329 int i, pagesize;
3330 int fd;
3331
3332 pagesize = getpagesize();
3333
3334 /*
3335 * First, make a file with some known garbage in it.
3336 */
3337 data = malloc(pagesize);
3338 if (!data)
3339 exit(1);
3340 for (i = 0; i < pagesize; ++i)
3341 *(data + i) = rand();
3342 umask(0);
3343 fd = creat("conftestmmap", 0600);
3344 if (fd < 0)
3345 exit(1);
3346 if (write(fd, data, pagesize) != pagesize)
3347 exit(1);
3348 close(fd);
3349
3350 /*
3351 * Next, try to mmap the file at a fixed address which
3352 * already has something else allocated at it. If we can,
3353 * also make sure that we see the same garbage.
3354 */
3355 fd = open("conftestmmap", O_RDWR);
3356 if (fd < 0)
3357 exit(1);
3358 data2 = malloc(2 * pagesize);
3359 if (!data2)
3360 exit(1);
3361 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3362 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3363 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3364 exit(1);
3365 for (i = 0; i < pagesize; ++i)
3366 if (*(data + i) != *(data2 + i))
3367 exit(1);
3368
3369 /*
3370 * Finally, make sure that changes to the mapped area
3371 * do not percolate back to the file as seen by read().
3372 * (This is a bug on some variants of i386 svr4.0.)
3373 */
3374 for (i = 0; i < pagesize; ++i)
3375 *(data2 + i) = *(data2 + i) + 1;
3376 data3 = malloc(pagesize);
3377 if (!data3)
3378 exit(1);
3379 if (read(fd, data3, pagesize) != pagesize)
3380 exit(1);
3381 for (i = 0; i < pagesize; ++i)
3382 if (*(data + i) != *(data3 + i))
3383 exit(1);
3384 close(fd);
3385 unlink("conftestmmap");
3386 exit(0);
3387}
3388
3389EOF
4867be41 3390if { (eval echo configure:3391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
252b5132
RH
3391then
3392 ac_cv_func_mmap_fixed_mapped=yes
3393else
3394 echo "configure: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3396 rm -fr conftest*
3397 ac_cv_func_mmap_fixed_mapped=no
3398fi
3399rm -fr conftest*
3400fi
3401
3402fi
3403
3404echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3405if test $ac_cv_func_mmap_fixed_mapped = yes; then
3406 cat >> confdefs.h <<\EOF
3407#define HAVE_MMAP 1
3408EOF
3409
3410fi
3411
3412
3413 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3414unistd.h values.h sys/param.h
3415do
3416ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3417echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4867be41 3418echo "configure:3419: checking for $ac_hdr" >&5
252b5132
RH
3419if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3420 echo $ac_n "(cached) $ac_c" 1>&6
3421else
3422 cat > conftest.$ac_ext <<EOF
4867be41 3423#line 3424 "configure"
252b5132
RH
3424#include "confdefs.h"
3425#include <$ac_hdr>
3426EOF
3427ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4867be41 3428{ (eval echo configure:3429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
3429ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3430if test -z "$ac_err"; then
3431 rm -rf conftest*
3432 eval "ac_cv_header_$ac_safe=yes"
3433else
3434 echo "$ac_err" >&5
3435 echo "configure: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3437 rm -rf conftest*
3438 eval "ac_cv_header_$ac_safe=no"
3439fi
3440rm -f conftest*
3441fi
3442if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3443 echo "$ac_t""yes" 1>&6
3444 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3445 cat >> confdefs.h <<EOF
3446#define $ac_tr_hdr 1
3447EOF
3448
3449else
3450 echo "$ac_t""no" 1>&6
3451fi
3452done
3453
3454 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3455__argz_count __argz_stringify __argz_next
3456do
3457echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4867be41 3458echo "configure:3459: checking for $ac_func" >&5
252b5132
RH
3459if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3461else
3462 cat > conftest.$ac_ext <<EOF
4867be41 3463#line 3464 "configure"
252b5132
RH
3464#include "confdefs.h"
3465/* System header to define __stub macros and hopefully few prototypes,
3466 which can conflict with char $ac_func(); below. */
3467#include <assert.h>
3468/* Override any gcc2 internal prototype to avoid an error. */
3469/* We use char because int might match the return type of a gcc2
3470 builtin and then its argument prototype would still apply. */
3471char $ac_func();
3472
3473int main() {
3474
3475/* The GNU C library defines this for functions which it implements
3476 to always fail with ENOSYS. Some functions are actually named
3477 something starting with __ and the normal name is an alias. */
3478#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3479choke me
3480#else
3481$ac_func();
3482#endif
3483
3484; return 0; }
3485EOF
4867be41 3486if { (eval echo configure:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3487 rm -rf conftest*
3488 eval "ac_cv_func_$ac_func=yes"
3489else
3490 echo "configure: failed program was:" >&5
3491 cat conftest.$ac_ext >&5
3492 rm -rf conftest*
3493 eval "ac_cv_func_$ac_func=no"
3494fi
3495rm -f conftest*
3496fi
3497
3498if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3499 echo "$ac_t""yes" 1>&6
3500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3501 cat >> confdefs.h <<EOF
3502#define $ac_tr_func 1
3503EOF
3504
3505else
3506 echo "$ac_t""no" 1>&6
3507fi
3508done
3509
3510
3511 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3512 for ac_func in stpcpy
3513do
3514echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4867be41 3515echo "configure:3516: checking for $ac_func" >&5
252b5132
RH
3516if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3518else
3519 cat > conftest.$ac_ext <<EOF
4867be41 3520#line 3521 "configure"
252b5132
RH
3521#include "confdefs.h"
3522/* System header to define __stub macros and hopefully few prototypes,
3523 which can conflict with char $ac_func(); below. */
3524#include <assert.h>
3525/* Override any gcc2 internal prototype to avoid an error. */
3526/* We use char because int might match the return type of a gcc2
3527 builtin and then its argument prototype would still apply. */
3528char $ac_func();
3529
3530int main() {
3531
3532/* The GNU C library defines this for functions which it implements
3533 to always fail with ENOSYS. Some functions are actually named
3534 something starting with __ and the normal name is an alias. */
3535#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3536choke me
3537#else
3538$ac_func();
3539#endif
3540
3541; return 0; }
3542EOF
4867be41 3543if { (eval echo configure:3544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3544 rm -rf conftest*
3545 eval "ac_cv_func_$ac_func=yes"
3546else
3547 echo "configure: failed program was:" >&5
3548 cat conftest.$ac_ext >&5
3549 rm -rf conftest*
3550 eval "ac_cv_func_$ac_func=no"
3551fi
3552rm -f conftest*
3553fi
3554
3555if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3556 echo "$ac_t""yes" 1>&6
3557 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3558 cat >> confdefs.h <<EOF
3559#define $ac_tr_func 1
3560EOF
3561
3562else
3563 echo "$ac_t""no" 1>&6
3564fi
3565done
3566
3567 fi
3568 if test "${ac_cv_func_stpcpy}" = "yes"; then
3569 cat >> confdefs.h <<\EOF
3570#define HAVE_STPCPY 1
3571EOF
3572
3573 fi
3574
3575 if test $ac_cv_header_locale_h = yes; then
3576 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4867be41 3577echo "configure:3578: checking for LC_MESSAGES" >&5
252b5132
RH
3578if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3579 echo $ac_n "(cached) $ac_c" 1>&6
3580else
3581 cat > conftest.$ac_ext <<EOF
4867be41 3582#line 3583 "configure"
252b5132
RH
3583#include "confdefs.h"
3584#include <locale.h>
3585int main() {
3586return LC_MESSAGES
3587; return 0; }
3588EOF
4867be41 3589if { (eval echo configure:3590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3590 rm -rf conftest*
3591 am_cv_val_LC_MESSAGES=yes
3592else
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3595 rm -rf conftest*
3596 am_cv_val_LC_MESSAGES=no
3597fi
3598rm -f conftest*
3599fi
3600
3601echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3602 if test $am_cv_val_LC_MESSAGES = yes; then
3603 cat >> confdefs.h <<\EOF
3604#define HAVE_LC_MESSAGES 1
3605EOF
3606
3607 fi
3608 fi
3609 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
4867be41 3610echo "configure:3611: checking whether NLS is requested" >&5
252b5132
RH
3611 # Check whether --enable-nls or --disable-nls was given.
3612if test "${enable_nls+set}" = set; then
3613 enableval="$enable_nls"
3614 USE_NLS=$enableval
3615else
3616 USE_NLS=yes
3617fi
3618
3619 echo "$ac_t""$USE_NLS" 1>&6
3620
3621
3622 USE_INCLUDED_LIBINTL=no
3623
3624 if test "$USE_NLS" = "yes"; then
3625 cat >> confdefs.h <<\EOF
3626#define ENABLE_NLS 1
3627EOF
3628
3629 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
4867be41 3630echo "configure:3631: checking whether included gettext is requested" >&5
252b5132
RH
3631 # Check whether --with-included-gettext or --without-included-gettext was given.
3632if test "${with_included_gettext+set}" = set; then
3633 withval="$with_included_gettext"
3634 nls_cv_force_use_gnu_gettext=$withval
3635else
3636 nls_cv_force_use_gnu_gettext=no
3637fi
3638
3639 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3640
3641 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3642 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3643 nls_cv_header_intl=
3644 nls_cv_header_libgt=
3645 CATOBJEXT=NONE
3646
3647 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3648echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4867be41 3649echo "configure:3650: checking for libintl.h" >&5
252b5132
RH
3650if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3652else
3653 cat > conftest.$ac_ext <<EOF
4867be41 3654#line 3655 "configure"
252b5132
RH
3655#include "confdefs.h"
3656#include <libintl.h>
3657EOF
3658ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4867be41 3659{ (eval echo configure:3660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
3660ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3661if test -z "$ac_err"; then
3662 rm -rf conftest*
3663 eval "ac_cv_header_$ac_safe=yes"
3664else
3665 echo "$ac_err" >&5
3666 echo "configure: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3668 rm -rf conftest*
3669 eval "ac_cv_header_$ac_safe=no"
3670fi
3671rm -f conftest*
3672fi
3673if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3674 echo "$ac_t""yes" 1>&6
3675 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4867be41 3676echo "configure:3677: checking for gettext in libc" >&5
252b5132
RH
3677if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3679else
3680 cat > conftest.$ac_ext <<EOF
4867be41 3681#line 3682 "configure"
252b5132
RH
3682#include "confdefs.h"
3683#include <libintl.h>
3684int main() {
3685return (int) gettext ("")
3686; return 0; }
3687EOF
4867be41 3688if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3689 rm -rf conftest*
3690 gt_cv_func_gettext_libc=yes
3691else
3692 echo "configure: failed program was:" >&5
3693 cat conftest.$ac_ext >&5
3694 rm -rf conftest*
3695 gt_cv_func_gettext_libc=no
3696fi
3697rm -f conftest*
3698fi
3699
3700echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3701
3702 if test "$gt_cv_func_gettext_libc" != "yes"; then
3703 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4867be41 3704echo "configure:3705: checking for bindtextdomain in -lintl" >&5
252b5132
RH
3705ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3706if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3707 echo $ac_n "(cached) $ac_c" 1>&6
3708else
3709 ac_save_LIBS="$LIBS"
3710LIBS="-lintl $LIBS"
3711cat > conftest.$ac_ext <<EOF
4867be41 3712#line 3713 "configure"
252b5132
RH
3713#include "confdefs.h"
3714/* Override any gcc2 internal prototype to avoid an error. */
3715/* We use char because int might match the return type of a gcc2
3716 builtin and then its argument prototype would still apply. */
3717char bindtextdomain();
3718
3719int main() {
3720bindtextdomain()
3721; return 0; }
3722EOF
4867be41 3723if { (eval echo configure:3724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3724 rm -rf conftest*
3725 eval "ac_cv_lib_$ac_lib_var=yes"
3726else
3727 echo "configure: failed program was:" >&5
3728 cat conftest.$ac_ext >&5
3729 rm -rf conftest*
3730 eval "ac_cv_lib_$ac_lib_var=no"
3731fi
3732rm -f conftest*
3733LIBS="$ac_save_LIBS"
3734
3735fi
3736if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3737 echo "$ac_t""yes" 1>&6
3738 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4867be41 3739echo "configure:3740: checking for gettext in libintl" >&5
252b5132
RH
3740if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3741 echo $ac_n "(cached) $ac_c" 1>&6
3742else
3743 cat > conftest.$ac_ext <<EOF
4867be41 3744#line 3745 "configure"
252b5132
RH
3745#include "confdefs.h"
3746
3747int main() {
3748return (int) gettext ("")
3749; return 0; }
3750EOF
4867be41 3751if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3752 rm -rf conftest*
3753 gt_cv_func_gettext_libintl=yes
3754else
3755 echo "configure: failed program was:" >&5
3756 cat conftest.$ac_ext >&5
3757 rm -rf conftest*
3758 gt_cv_func_gettext_libintl=no
3759fi
3760rm -f conftest*
3761fi
3762
3763echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3764else
3765 echo "$ac_t""no" 1>&6
3766fi
3767
3768 fi
3769
3770 if test "$gt_cv_func_gettext_libc" = "yes" \
3771 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3772 cat >> confdefs.h <<\EOF
3773#define HAVE_GETTEXT 1
3774EOF
3775
3776 # Extract the first word of "msgfmt", so it can be a program name with args.
3777set dummy msgfmt; ac_word=$2
3778echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4867be41 3779echo "configure:3780: checking for $ac_word" >&5
252b5132
RH
3780if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3781 echo $ac_n "(cached) $ac_c" 1>&6
3782else
3783 case "$MSGFMT" in
3784 /*)
3785 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3786 ;;
3787 *)
3788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3789 for ac_dir in $PATH; do
3790 test -z "$ac_dir" && ac_dir=.
3791 if test -f $ac_dir/$ac_word; then
3792 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3793 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3794 break
3795 fi
3796 fi
3797 done
3798 IFS="$ac_save_ifs"
3799 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3800 ;;
3801esac
3802fi
3803MSGFMT="$ac_cv_path_MSGFMT"
3804if test -n "$MSGFMT"; then
3805 echo "$ac_t""$MSGFMT" 1>&6
3806else
3807 echo "$ac_t""no" 1>&6
3808fi
3809 if test "$MSGFMT" != "no"; then
3810 for ac_func in dcgettext
3811do
3812echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4867be41 3813echo "configure:3814: checking for $ac_func" >&5
252b5132
RH
3814if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3816else
3817 cat > conftest.$ac_ext <<EOF
4867be41 3818#line 3819 "configure"
252b5132
RH
3819#include "confdefs.h"
3820/* System header to define __stub macros and hopefully few prototypes,
3821 which can conflict with char $ac_func(); below. */
3822#include <assert.h>
3823/* Override any gcc2 internal prototype to avoid an error. */
3824/* We use char because int might match the return type of a gcc2
3825 builtin and then its argument prototype would still apply. */
3826char $ac_func();
3827
3828int main() {
3829
3830/* The GNU C library defines this for functions which it implements
3831 to always fail with ENOSYS. Some functions are actually named
3832 something starting with __ and the normal name is an alias. */
3833#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3834choke me
3835#else
3836$ac_func();
3837#endif
3838
3839; return 0; }
3840EOF
4867be41 3841if { (eval echo configure:3842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3842 rm -rf conftest*
3843 eval "ac_cv_func_$ac_func=yes"
3844else
3845 echo "configure: failed program was:" >&5
3846 cat conftest.$ac_ext >&5
3847 rm -rf conftest*
3848 eval "ac_cv_func_$ac_func=no"
3849fi
3850rm -f conftest*
3851fi
3852
3853if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3854 echo "$ac_t""yes" 1>&6
3855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3856 cat >> confdefs.h <<EOF
3857#define $ac_tr_func 1
3858EOF
3859
3860else
3861 echo "$ac_t""no" 1>&6
3862fi
3863done
3864
3865 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3866set dummy gmsgfmt; ac_word=$2
3867echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4867be41 3868echo "configure:3869: checking for $ac_word" >&5
252b5132
RH
3869if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3871else
3872 case "$GMSGFMT" in
3873 /*)
3874 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3875 ;;
3876 ?:/*)
3877 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3878 ;;
3879 *)
3880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3881 ac_dummy="$PATH"
3882 for ac_dir in $ac_dummy; do
3883 test -z "$ac_dir" && ac_dir=.
3884 if test -f $ac_dir/$ac_word; then
3885 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3886 break
3887 fi
3888 done
3889 IFS="$ac_save_ifs"
3890 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3891 ;;
3892esac
3893fi
3894GMSGFMT="$ac_cv_path_GMSGFMT"
3895if test -n "$GMSGFMT"; then
3896 echo "$ac_t""$GMSGFMT" 1>&6
3897else
3898 echo "$ac_t""no" 1>&6
3899fi
3900
3901 # Extract the first word of "xgettext", so it can be a program name with args.
3902set dummy xgettext; ac_word=$2
3903echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4867be41 3904echo "configure:3905: checking for $ac_word" >&5
252b5132
RH
3905if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3907else
3908 case "$XGETTEXT" in
3909 /*)
3910 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3911 ;;
3912 *)
3913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3914 for ac_dir in $PATH; do
3915 test -z "$ac_dir" && ac_dir=.
3916 if test -f $ac_dir/$ac_word; then
3917 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3918 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3919 break
3920 fi
3921 fi
3922 done
3923 IFS="$ac_save_ifs"
3924 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3925 ;;
3926esac
3927fi
3928XGETTEXT="$ac_cv_path_XGETTEXT"
3929if test -n "$XGETTEXT"; then
3930 echo "$ac_t""$XGETTEXT" 1>&6
3931else
3932 echo "$ac_t""no" 1>&6
3933fi
3934
3935 cat > conftest.$ac_ext <<EOF
4867be41 3936#line 3937 "configure"
252b5132
RH
3937#include "confdefs.h"
3938
3939int main() {
3940extern int _nl_msg_cat_cntr;
3941 return _nl_msg_cat_cntr
3942; return 0; }
3943EOF
4867be41 3944if { (eval echo configure:3945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
252b5132
RH
3945 rm -rf conftest*
3946 CATOBJEXT=.gmo
3947 DATADIRNAME=share
3948else
3949 echo "configure: failed program was:" >&5
3950 cat conftest.$ac_ext >&5
3951 rm -rf conftest*
3952 CATOBJEXT=.mo
3953 DATADIRNAME=lib
3954fi
3955rm -f conftest*
3956 INSTOBJEXT=.mo
3957 fi
3958 fi
3959
3960else
3961 echo "$ac_t""no" 1>&6
3962fi
3963
3964
3965
3966 if test "$CATOBJEXT" = "NONE"; then
3967 nls_cv_use_gnu_gettext=yes
3968 fi
3969 fi
3970
3971 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3972 INTLOBJS="\$(GETTOBJS)"
3973 # Extract the first word of "msgfmt", so it can be a program name with args.
3974set dummy msgfmt; ac_word=$2
3975echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4867be41 3976echo "configure:3977: checking for $ac_word" >&5
252b5132
RH
3977if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3979else
3980 case "$MSGFMT" in
3981 /*)
3982 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3983 ;;
3984 *)
3985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3986 for ac_dir in $PATH; do
3987 test -z "$ac_dir" && ac_dir=.
3988 if test -f $ac_dir/$ac_word; then
3989 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3990 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3991 break
3992 fi
3993 fi
3994 done
3995 IFS="$ac_save_ifs"
3996 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3997 ;;
3998esac
3999fi
4000MSGFMT="$ac_cv_path_MSGFMT"
4001if test -n "$MSGFMT"; then
4002 echo "$ac_t""$MSGFMT" 1>&6
4003else
4004 echo "$ac_t""no" 1>&6
4005fi
4006
4007 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4008set dummy gmsgfmt; ac_word=$2
4009echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4867be41 4010echo "configure:4011: checking for $ac_word" >&5
252b5132
RH
4011if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4012 echo $ac_n "(cached) $ac_c" 1>&6
4013else
4014 case "$GMSGFMT" in
4015 /*)
4016 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4017 ;;
4018 ?:/*)
4019 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4020 ;;
4021 *)
4022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4023 ac_dummy="$PATH"
4024 for ac_dir in $ac_dummy; do
4025 test -z "$ac_dir" && ac_dir=.
4026 if test -f $ac_dir/$ac_word; then
4027 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4028 break
4029 fi
4030 done
4031 IFS="$ac_save_ifs"
4032 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4033 ;;
4034esac
4035fi
4036GMSGFMT="$ac_cv_path_GMSGFMT"
4037if test -n "$GMSGFMT"; then
4038 echo "$ac_t""$GMSGFMT" 1>&6
4039else
4040 echo "$ac_t""no" 1>&6
4041fi
4042
4043 # Extract the first word of "xgettext", so it can be a program name with args.
4044set dummy xgettext; ac_word=$2
4045echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4867be41 4046echo "configure:4047: checking for $ac_word" >&5
252b5132
RH
4047if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4048 echo $ac_n "(cached) $ac_c" 1>&6
4049else
4050 case "$XGETTEXT" in
4051 /*)
4052 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4053 ;;
4054 *)
4055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4056 for ac_dir in $PATH; do
4057 test -z "$ac_dir" && ac_dir=.
4058 if test -f $ac_dir/$ac_word; then
4059 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4060 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4061 break
4062 fi
4063 fi
4064 done
4065 IFS="$ac_save_ifs"
4066 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4067 ;;
4068esac
4069fi
4070XGETTEXT="$ac_cv_path_XGETTEXT"
4071if test -n "$XGETTEXT"; then
4072 echo "$ac_t""$XGETTEXT" 1>&6
4073else
4074 echo "$ac_t""no" 1>&6
4075fi
4076
4077
4078 USE_INCLUDED_LIBINTL=yes
4079 CATOBJEXT=.gmo
4080 INSTOBJEXT=.mo
4081 DATADIRNAME=share
4082 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4083 INTLLIBS=$INTLDEPS
4084 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4085 nls_cv_header_intl=libintl.h
4086 nls_cv_header_libgt=libgettext.h
4087 fi
4088
4089 if test "$XGETTEXT" != ":"; then
4090 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4091 : ;
4092 else
4093 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4094 XGETTEXT=":"
4095 fi
4096 fi
4097
4098 # We need to process the po/ directory.
4099 POSUB=po
4100 else
4101 DATADIRNAME=share
4102 nls_cv_header_intl=libintl.h
4103 nls_cv_header_libgt=libgettext.h
4104 fi
4105
4106 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4107 # because some of the sources are only built for this goal.
4108 if test "$PACKAGE" = gettext; then
4109 USE_NLS=yes
4110 USE_INCLUDED_LIBINTL=yes
4111 fi
4112
4113 for lang in $ALL_LINGUAS; do
4114 GMOFILES="$GMOFILES $lang.gmo"
4115 POFILES="$POFILES $lang.po"
4116 done
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131 if test "x$CATOBJEXT" != "x"; then
4132 if test "x$ALL_LINGUAS" = "x"; then
4133 LINGUAS=
4134 else
4135 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4867be41 4136echo "configure:4137: checking for catalogs to be installed" >&5
252b5132
RH
4137 NEW_LINGUAS=
4138 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4139 case "$ALL_LINGUAS" in
4140 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4141 esac
4142 done
4143 LINGUAS=$NEW_LINGUAS
4144 echo "$ac_t""$LINGUAS" 1>&6
4145 fi
4146
4147 if test -n "$LINGUAS"; then
4148 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4149 fi
4150 fi
4151
4152 if test $ac_cv_header_locale_h = yes; then
4153 INCLUDE_LOCALE_H="#include <locale.h>"
4154 else
4155 INCLUDE_LOCALE_H="\
4156/* The system does not provide the header <locale.h>. Take care yourself. */"
4157 fi
4158
4159
4160 if test -f $srcdir/po2tbl.sed.in; then
4161 if test "$CATOBJEXT" = ".cat"; then
4162 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4163echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4867be41 4164echo "configure:4165: checking for linux/version.h" >&5
252b5132
RH
4165if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4167else
4168 cat > conftest.$ac_ext <<EOF
4867be41 4169#line 4170 "configure"
252b5132
RH
4170#include "confdefs.h"
4171#include <linux/version.h>
4172EOF
4173ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4867be41 4174{ (eval echo configure:4175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
252b5132
RH
4175ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4176if test -z "$ac_err"; then
4177 rm -rf conftest*
4178 eval "ac_cv_header_$ac_safe=yes"
4179else
4180 echo "$ac_err" >&5
4181 echo "configure: failed program was:" >&5
4182 cat conftest.$ac_ext >&5
4183 rm -rf conftest*
4184 eval "ac_cv_header_$ac_safe=no"
4185fi
4186rm -f conftest*
4187fi
4188if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4189 echo "$ac_t""yes" 1>&6
4190 msgformat=linux
4191else
4192 echo "$ac_t""no" 1>&6
4193msgformat=xopen
4194fi
4195
4196
4197 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4198 fi
4199 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4200 $srcdir/po2tbl.sed.in > po2tbl.sed
4201 fi
4202
4203 if test "$PACKAGE" = "gettext"; then
4204 GT_NO="#NO#"
4205 GT_YES=
4206 else
4207 GT_NO=
4208 GT_YES="#YES#"
4209 fi
4210
4211
4212
4213 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4214
4215
4216 l=
4217
4218
fcd8210c 4219 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
4220 test -d po || mkdir po
4221 if test "x$srcdir" != "x."; then
4222 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4223 posrcprefix="$srcdir/"
4224 else
4225 posrcprefix="../$srcdir/"
4226 fi
4227 else
4228 posrcprefix="../"
4229 fi
4230 rm -f po/POTFILES
4231 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4232 < $srcdir/po/POTFILES.in > po/POTFILES
4233 fi
4234
4235
4236echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4867be41 4237echo "configure:4238: checking whether to enable maintainer-specific portions of Makefiles" >&5
252b5132
RH
4238 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4239if test "${enable_maintainer_mode+set}" = set; then
4240 enableval="$enable_maintainer_mode"
4241 USE_MAINTAINER_MODE=$enableval
4242else
4243 USE_MAINTAINER_MODE=no
4244fi
4245
4246 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4247
4248
4249if test $USE_MAINTAINER_MODE = yes; then
4250 MAINTAINER_MODE_TRUE=
4251 MAINTAINER_MODE_FALSE='#'
4252else
4253 MAINTAINER_MODE_TRUE='#'
4254 MAINTAINER_MODE_FALSE=
4255fi
4256 MAINT=$MAINTAINER_MODE_TRUE
4257
4258
252b5132
RH
4259
4260
4261echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4867be41 4262echo "configure:4263: checking for executable suffix" >&5
252b5132
RH
4263if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4264 echo $ac_n "(cached) $ac_c" 1>&6
4265else
4266 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4267 ac_cv_exeext=.exe
4268else
4269 rm -f conftest*
4270 echo 'int main () { return 0; }' > conftest.$ac_ext
4271 ac_cv_exeext=
4867be41 4272 if { (eval echo configure:4273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
252b5132
RH
4273 for file in conftest.*; do
4274 case $file in
3c62831e 4275 *.c | *.o | *.obj) ;;
252b5132
RH
4276 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4277 esac
4278 done
4279 else
4280 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4281 fi
4282 rm -f conftest*
4283 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4284fi
4285fi
4286
4287EXEEXT=""
4288test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4289echo "$ac_t""${ac_cv_exeext}" 1>&6
4290ac_exeext=$EXEEXT
4291
4292
0eee5820
AM
4293for ac_hdr in sys/gmon_out.h
4294do
4295ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4296echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4867be41 4297echo "configure:4298: checking for $ac_hdr" >&5
0eee5820
AM
4298if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4299 echo $ac_n "(cached) $ac_c" 1>&6
4300else
4301 cat > conftest.$ac_ext <<EOF
4867be41 4302#line 4303 "configure"
0eee5820
AM
4303#include "confdefs.h"
4304#include <$ac_hdr>
4305EOF
4306ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4867be41 4307{ (eval echo configure:4308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0eee5820
AM
4308ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4309if test -z "$ac_err"; then
4310 rm -rf conftest*
4311 eval "ac_cv_header_$ac_safe=yes"
4312else
4313 echo "$ac_err" >&5
4314 echo "configure: failed program was:" >&5
4315 cat conftest.$ac_ext >&5
4316 rm -rf conftest*
4317 eval "ac_cv_header_$ac_safe=no"
4318fi
4319rm -f conftest*
4320fi
4321if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4322 echo "$ac_t""yes" 1>&6
4323 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4324 cat >> confdefs.h <<EOF
4325#define $ac_tr_hdr 1
4326EOF
4327
4328else
4329 echo "$ac_t""no" 1>&6
4330fi
4331done
4332
4333
4334echo $ac_n "checking the size of gmon pointers""... $ac_c" 1>&6
4867be41 4335echo "configure:4336: checking the size of gmon pointers" >&5
0eee5820
AM
4336if test "$cross_compiling" = yes; then
4337 gmon_ptr_size=4
4338else
4339 cat > conftest.$ac_ext <<EOF
4867be41 4340#line 4341 "configure"
0eee5820
AM
4341#include "confdefs.h"
4342#include <stdio.h>
4343#include <stdlib.h>
4344#if HAVE_SYS_GMON_OUT_H
4345#include <sys/gmon_out.h>
4346#endif
4347main()
4348{
4349#if HAVE_SYS_GMON_OUT_H
4350 struct gmon_cg_arc_record arc;
4351 FILE *f=fopen("conftestval", "w");
4352 if (!f) exit(1);
4353 fprintf(f, "%d\n", sizeof(arc.from_pc));
4354 exit(0);
4355#else
4356 FILE *f=fopen("conftestval", "w");
4357 if (!f) exit(1);
4358 fprintf(f, "%d\n", (int) sizeof(char *));
4359 exit(1);
4360#endif
4361}
4362EOF
4867be41 4363if { (eval echo configure:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
0eee5820
AM
4364then
4365 gmon_ptr_size=`cat conftestval`
4366else
4367 echo "configure: failed program was:" >&5
4368 cat conftest.$ac_ext >&5
4369 rm -fr conftest*
4370 gmon_ptr_size=4
4371fi
4372rm -fr conftest*
4373fi
4374
4375echo "$ac_t""$gmon_ptr_size" 1>&6
4376
4377cat >> confdefs.h <<EOF
4378#define GMON_PTR_SIZE $gmon_ptr_size
4379EOF
4380
4381
a2d91340
AC
4382build_warnings="-W -Wall"
4383# Check whether --enable-build-warnings or --disable-build-warnings was given.
4384if test "${enable_build_warnings+set}" = set; then
4385 enableval="$enable_build_warnings"
4386 case "${enableval}" in
4387 yes) ;;
4388 no) build_warnings="-w";;
4389 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4390 build_warnings="${build_warnings} ${t}";;
4391 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4392 build_warnings="${t} ${build_warnings}";;
4393 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4394esac
4395if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4396 echo "Setting warning flags = $build_warnings" 6>&1
4397fi
4398fi
4399WARN_CFLAGS=""
4400if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
4401 WARN_CFLAGS="${build_warnings}"
4402fi
4403
4404
252b5132
RH
4405trap '' 1 2 15
4406cat > confcache <<\EOF
4407# This file is a shell script that caches the results of configure
4408# tests run on this system so they can be shared between configure
4409# scripts and configure runs. It is not useful on other systems.
4410# If it contains results you don't want to keep, you may remove or edit it.
4411#
4412# By default, configure uses ./config.cache as the cache file,
4413# creating it if it does not exist already. You can give configure
4414# the --cache-file=FILE option to use a different cache file; that is
4415# what configure does when it calls configure scripts in
4416# subdirectories, so they share the cache.
4417# Giving --cache-file=/dev/null disables caching, for debugging configure.
4418# config.status only pays attention to the cache file if you give it the
4419# --recheck option to rerun configure.
4420#
4421EOF
4422# The following way of writing the cache mishandles newlines in values,
4423# but we know of no workaround that is simple, portable, and efficient.
4424# So, don't put newlines in cache variables' values.
4425# Ultrix sh set writes to stderr and can't be redirected directly,
4426# and sets the high bit in the cache file unless we assign to the vars.
4427(set) 2>&1 |
4428 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4429 *ac_space=\ *)
4430 # `set' does not quote correctly, so add quotes (double-quote substitution
4431 # turns \\\\ into \\, and sed turns \\ into \).
4432 sed -n \
4433 -e "s/'/'\\\\''/g" \
4434 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4435 ;;
4436 *)
4437 # `set' quotes correctly as required by POSIX, so do not add quotes.
4438 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4439 ;;
4440 esac >> confcache
4441if cmp -s $cache_file confcache; then
4442 :
4443else
4444 if test -w $cache_file; then
4445 echo "updating cache $cache_file"
4446 cat confcache > $cache_file
4447 else
4448 echo "not updating unwritable cache $cache_file"
4449 fi
4450fi
4451rm -f confcache
4452
4453trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4454
4455test "x$prefix" = xNONE && prefix=$ac_default_prefix
4456# Let make expand exec_prefix.
4457test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4458
4459# Any assignment to VPATH causes Sun make to only execute
4460# the first set of double-colon rules, so remove it if not needed.
4461# If there is a colon in the path, we need to keep it.
4462if test "x$srcdir" = x.; then
4463 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4464fi
4465
4466trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4467
4468DEFS=-DHAVE_CONFIG_H
4469
4470# Without the "./", some shells look in PATH for config.status.
4471: ${CONFIG_STATUS=./config.status}
4472
4473echo creating $CONFIG_STATUS
4474rm -f $CONFIG_STATUS
4475cat > $CONFIG_STATUS <<EOF
4476#! /bin/sh
4477# Generated automatically by configure.
4478# Run this file to recreate the current configuration.
4479# This directory was configured as follows,
4480# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4481#
4482# $0 $ac_configure_args
4483#
4484# Compiler output produced by configure, useful for debugging
4485# configure, is in ./config.log if it exists.
4486
4487ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4488for ac_option
4489do
4490 case "\$ac_option" in
4491 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4492 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4493 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4494 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4495 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4496 exit 0 ;;
4497 -help | --help | --hel | --he | --h)
4498 echo "\$ac_cs_usage"; exit 0 ;;
4499 *) echo "\$ac_cs_usage"; exit 1 ;;
4500 esac
4501done
4502
4503ac_given_srcdir=$srcdir
4504ac_given_INSTALL="$INSTALL"
4505
4506trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4507EOF
4508cat >> $CONFIG_STATUS <<EOF
4509
4510# Protect against being on the right side of a sed subst in config.status.
4511sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4512 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4513$ac_vpsub
4514$extrasub
4515s%@SHELL@%$SHELL%g
4516s%@CFLAGS@%$CFLAGS%g
4517s%@CPPFLAGS@%$CPPFLAGS%g
4518s%@CXXFLAGS@%$CXXFLAGS%g
4519s%@FFLAGS@%$FFLAGS%g
4520s%@DEFS@%$DEFS%g
4521s%@LDFLAGS@%$LDFLAGS%g
4522s%@LIBS@%$LIBS%g
4523s%@exec_prefix@%$exec_prefix%g
4524s%@prefix@%$prefix%g
4525s%@program_transform_name@%$program_transform_name%g
4526s%@bindir@%$bindir%g
4527s%@sbindir@%$sbindir%g
4528s%@libexecdir@%$libexecdir%g
4529s%@datadir@%$datadir%g
4530s%@sysconfdir@%$sysconfdir%g
4531s%@sharedstatedir@%$sharedstatedir%g
4532s%@localstatedir@%$localstatedir%g
4533s%@libdir@%$libdir%g
4534s%@includedir@%$includedir%g
4535s%@oldincludedir@%$oldincludedir%g
4536s%@infodir@%$infodir%g
4537s%@mandir@%$mandir%g
4538s%@host@%$host%g
4539s%@host_alias@%$host_alias%g
4540s%@host_cpu@%$host_cpu%g
4541s%@host_vendor@%$host_vendor%g
4542s%@host_os@%$host_os%g
4543s%@target@%$target%g
4544s%@target_alias@%$target_alias%g
4545s%@target_cpu@%$target_cpu%g
4546s%@target_vendor@%$target_vendor%g
4547s%@target_os@%$target_os%g
4548s%@build@%$build%g
4549s%@build_alias@%$build_alias%g
4550s%@build_cpu@%$build_cpu%g
4551s%@build_vendor@%$build_vendor%g
4552s%@build_os@%$build_os%g
4553s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4554s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4555s%@INSTALL_DATA@%$INSTALL_DATA%g
4556s%@PACKAGE@%$PACKAGE%g
4557s%@VERSION@%$VERSION%g
4558s%@ACLOCAL@%$ACLOCAL%g
4559s%@AUTOCONF@%$AUTOCONF%g
4560s%@AUTOMAKE@%$AUTOMAKE%g
4561s%@AUTOHEADER@%$AUTOHEADER%g
4562s%@MAKEINFO@%$MAKEINFO%g
4563s%@SET_MAKE@%$SET_MAKE%g
37503931 4564s%@CC@%$CC%g
252b5132 4565s%@LN_S@%$LN_S%g
ac48eca1
AO
4566s%@OBJEXT@%$OBJEXT%g
4567s%@EXEEXT@%$EXEEXT%g
4568s%@RANLIB@%$RANLIB%g
4569s%@STRIP@%$STRIP%g
252b5132
RH
4570s%@LIBTOOL@%$LIBTOOL%g
4571s%@CPP@%$CPP%g
4572s%@ALLOCA@%$ALLOCA%g
4573s%@USE_NLS@%$USE_NLS%g
4574s%@MSGFMT@%$MSGFMT%g
4575s%@GMSGFMT@%$GMSGFMT%g
4576s%@XGETTEXT@%$XGETTEXT%g
4577s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4578s%@CATALOGS@%$CATALOGS%g
4579s%@CATOBJEXT@%$CATOBJEXT%g
4580s%@DATADIRNAME@%$DATADIRNAME%g
4581s%@GMOFILES@%$GMOFILES%g
4582s%@INSTOBJEXT@%$INSTOBJEXT%g
4583s%@INTLDEPS@%$INTLDEPS%g
4584s%@INTLLIBS@%$INTLLIBS%g
4585s%@INTLOBJS@%$INTLOBJS%g
4586s%@POFILES@%$POFILES%g
4587s%@POSUB@%$POSUB%g
4588s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4589s%@GT_NO@%$GT_NO%g
4590s%@GT_YES@%$GT_YES%g
4591s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4592s%@l@%$l%g
4593s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4594s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4595s%@MAINT@%$MAINT%g
a2d91340 4596s%@WARN_CFLAGS@%$WARN_CFLAGS%g
252b5132
RH
4597
4598CEOF
4599EOF
4600
4601cat >> $CONFIG_STATUS <<\EOF
4602
4603# Split the substitutions into bite-sized pieces for seds with
4604# small command number limits, like on Digital OSF/1 and HP-UX.
4605ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4606ac_file=1 # Number of current file.
4607ac_beg=1 # First line for current file.
4608ac_end=$ac_max_sed_cmds # Line after last line for current file.
4609ac_more_lines=:
4610ac_sed_cmds=""
4611while $ac_more_lines; do
4612 if test $ac_beg -gt 1; then
4613 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4614 else
4615 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4616 fi
4617 if test ! -s conftest.s$ac_file; then
4618 ac_more_lines=false
4619 rm -f conftest.s$ac_file
4620 else
4621 if test -z "$ac_sed_cmds"; then
4622 ac_sed_cmds="sed -f conftest.s$ac_file"
4623 else
4624 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4625 fi
4626 ac_file=`expr $ac_file + 1`
4627 ac_beg=$ac_end
4628 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4629 fi
4630done
4631if test -z "$ac_sed_cmds"; then
4632 ac_sed_cmds=cat
4633fi
4634EOF
4635
4636cat >> $CONFIG_STATUS <<EOF
4637
4638CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
4639EOF
4640cat >> $CONFIG_STATUS <<\EOF
4641for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4642 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4643 case "$ac_file" in
4644 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4645 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4646 *) ac_file_in="${ac_file}.in" ;;
4647 esac
4648
4649 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4650
4651 # Remove last slash and all that follows it. Not all systems have dirname.
4652 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4653 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4654 # The file is in a subdirectory.
4655 test ! -d "$ac_dir" && mkdir "$ac_dir"
4656 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4657 # A "../" for each directory in $ac_dir_suffix.
4658 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4659 else
4660 ac_dir_suffix= ac_dots=
4661 fi
4662
4663 case "$ac_given_srcdir" in
4664 .) srcdir=.
4665 if test -z "$ac_dots"; then top_srcdir=.
4666 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4667 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4668 *) # Relative path.
4669 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4670 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4671 esac
4672
4673 case "$ac_given_INSTALL" in
4674 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4675 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4676 esac
4677
4678 echo creating "$ac_file"
4679 rm -f "$ac_file"
4680 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4681 case "$ac_file" in
4682 *Makefile*) ac_comsub="1i\\
4683# $configure_input" ;;
4684 *) ac_comsub= ;;
4685 esac
4686
4687 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4688 sed -e "$ac_comsub
4689s%@configure_input@%$configure_input%g
4690s%@srcdir@%$srcdir%g
4691s%@top_srcdir@%$top_srcdir%g
4692s%@INSTALL@%$INSTALL%g
4693" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4694fi; done
4695rm -f conftest.s*
4696
4697# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4698# NAME is the cpp macro being defined and VALUE is the value it is being given.
4699#
4700# ac_d sets the value in "#define NAME VALUE" lines.
4701ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4702ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4703ac_dC='\3'
4704ac_dD='%g'
4705# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4706ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4707ac_uB='\([ ]\)%\1#\2define\3'
4708ac_uC=' '
4709ac_uD='\4%g'
4710# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4711ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4712ac_eB='$%\1#\2define\3'
4713ac_eC=' '
4714ac_eD='%g'
4715
4716if test "${CONFIG_HEADERS+set}" != set; then
4717EOF
4718cat >> $CONFIG_STATUS <<EOF
4719 CONFIG_HEADERS="gconfig.h:gconfig.in"
4720EOF
4721cat >> $CONFIG_STATUS <<\EOF
4722fi
4723for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4724 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4725 case "$ac_file" in
4726 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4727 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4728 *) ac_file_in="${ac_file}.in" ;;
4729 esac
4730
4731 echo creating $ac_file
4732
4733 rm -f conftest.frag conftest.in conftest.out
4734 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4735 cat $ac_file_inputs > conftest.in
4736
4737EOF
4738
4739# Transform confdefs.h into a sed script conftest.vals that substitutes
4740# the proper values into config.h.in to produce config.h. And first:
4741# Protect against being on the right side of a sed subst in config.status.
4742# Protect against being in an unquoted here document in config.status.
4743rm -f conftest.vals
4744cat > conftest.hdr <<\EOF
4745s/[\\&%]/\\&/g
4746s%[\\$`]%\\&%g
4747s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4748s%ac_d%ac_u%gp
4749s%ac_u%ac_e%gp
4750EOF
4751sed -n -f conftest.hdr confdefs.h > conftest.vals
4752rm -f conftest.hdr
4753
4754# This sed command replaces #undef with comments. This is necessary, for
4755# example, in the case of _POSIX_SOURCE, which is predefined and required
4756# on some systems where configure will not decide to define it.
4757cat >> conftest.vals <<\EOF
4758s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4759EOF
4760
4761# Break up conftest.vals because some shells have a limit on
4762# the size of here documents, and old seds have small limits too.
4763
4764rm -f conftest.tail
4765while :
4766do
4767 ac_lines=`grep -c . conftest.vals`
4768 # grep -c gives empty output for an empty file on some AIX systems.
4769 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4770 # Write a limited-size here document to conftest.frag.
4771 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4772 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4773 echo 'CEOF
4774 sed -f conftest.frag conftest.in > conftest.out
4775 rm -f conftest.in
4776 mv conftest.out conftest.in
4777' >> $CONFIG_STATUS
4778 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4779 rm -f conftest.vals
4780 mv conftest.tail conftest.vals
4781done
4782rm -f conftest.vals
4783
4784cat >> $CONFIG_STATUS <<\EOF
4785 rm -f conftest.frag conftest.h
4786 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4787 cat conftest.in >> conftest.h
4788 rm -f conftest.in
4789 if cmp -s $ac_file conftest.h 2>/dev/null; then
4790 echo "$ac_file is unchanged"
4791 rm -f conftest.h
4792 else
4793 # Remove last slash and all that follows it. Not all systems have dirname.
4794 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4795 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4796 # The file is in a subdirectory.
4797 test ! -d "$ac_dir" && mkdir "$ac_dir"
4798 fi
4799 rm -f $ac_file
4800 mv conftest.h $ac_file
4801 fi
4802fi; done
4803
4804EOF
4805cat >> $CONFIG_STATUS <<EOF
4806
4807
4808EOF
4809cat >> $CONFIG_STATUS <<\EOF
4810test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4811sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
4812exit 0
4813EOF
4814chmod +x $CONFIG_STATUS
4815rm -fr confdefs* $ac_clean_files
4816test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4817
This page took 0.307521 seconds and 4 git commands to generate.