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