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