source: trunk/src/binutils/gprof/configure@ 101

Last change on this file since 101 was 101, checked in by bird, 22 years ago

Regenerated configure scripts.

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