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

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

Regenerated configure files after 2.14 join.

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