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